jekyll-theme-panda 0.2.2 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ !function(){"use strict";var __webpack_modules__={351:function(t,e,r){var n,o,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=(Object.defineProperty(e,"__esModule",{value:!0}),e.AssistiveMmlHandler=e.AssistiveMmlMathDocumentMixin=e.AssistiveMmlMathItemMixin=e.LimitedMmlVisitor=void 0,r(4474)),i=r(9259),h=r(7233),d=(o=i.SerializedMmlVisitor,a(f,o),f.prototype.getAttributes=function(t){return o.prototype.getAttributes.call(this,t).replace(/ ?id=".*?"/,"")},f);function f(){return null!==o&&o.apply(this,arguments)||this}function m(t){return a(e,r=t),e.prototype.assistiveMml=function(t,e){void 0===e&&(e=!1),this.state()>=p.STATE.ASSISTIVEMML||(this.isEscaped||!t.options.enableAssistiveMml&&!e||(e=t.adaptor,t=t.toMML(this.root).replace(/\n */g,"").replace(/<!--.*?-->/g,""),t=e.firstChild(e.body(e.parse(t,"text/html"))),t=e.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[t]),e.setAttribute(e.firstChild(this.typesetRoot),"aria-hidden","true"),e.setStyle(this.typesetRoot,"position","relative"),e.append(this.typesetRoot,t)),this.state(p.STATE.ASSISTIVEMML))},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}function y(t){var e,i;return a(r,i=t),r.prototype.toMML=function(t){return this.visitor.visitTree(t)},r.prototype.assistiveMml=function(){var t,e;if(!this.processed.isSet("assistive-mml")){try{for(var r=u(this.math),n=r.next();!n.done;n=r.next())n.value.assistiveMml(this)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("assistive-mml")}return this},r.prototype.state=function(t,e){return i.prototype.state.call(this,t,e=void 0===e?!1:e),t<p.STATE.ASSISTIVEMML&&this.processed.clear("assistive-mml"),this},(e=r).OPTIONS=s(s({},t.OPTIONS),{enableAssistiveMml:!0,renderActions:(0,h.expandable)(s(s({},t.OPTIONS.renderActions),{assistiveMml:[p.STATE.ASSISTIVEMML]}))}),e.assistiveStyles={"mjx-assistive-mml":{position:"absolute !important",top:"0px",left:"0px",clip:"rect(1px, 1px, 1px, 1px)",padding:"1px 0px 0px 0px !important",border:"0px !important",display:"block !important",width:"auto !important",overflow:"hidden !important","-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},'mjx-assistive-mml[display="block"]':{width:"100% !important"}},e;function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i.apply(this,c([],l(t),!1))||this,n=r.constructor,o=n.ProcessBits;return o.has("assistive-mml")||o.allocate("assistive-mml"),r.visitor=new d(r.mmlFactory),r.options.MathItem=m(r.options.MathItem),"addStyles"in r&&r.addStyles(n.assistiveStyles),r}}e.LimitedMmlVisitor=d,(0,p.newState)("ASSISTIVEMML",153),e.AssistiveMmlMathItemMixin=m,e.AssistiveMmlMathDocumentMixin=y,e.AssistiveMmlHandler=function(t){return t.documentClass=y(t.documentClass),t}},5282:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=new Map;e.default=r},5445:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__awaiter||function(t,a,s,l){return new(s=s||Promise)(function(r,e){function n(t){try{i(l.next(t))}catch(t){e(t)}}function o(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,o)}i((l=l.apply(t,a||[])).next())})},s=this&&this.__generator||function(n,o){var i,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(r){return function(t){var e=[r,t];if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,a=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!((s=0<(s=l.trys).length&&s[s.length-1])||6!==e[0]&&2!==e[0])){l=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){l.label=e[1];break}if(6===e[0]&&l.label<s[1]){l.label=s[1],s=e;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(e);break}s[2]&&l.ops.pop(),l.trys.pop();continue}e=o.call(n,l)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.sreReady=e.Sre=void 0;var c=i(r(2998)),u=i(r(3362)),p=i(r(9552)),h=i(r(4440)),d=l(r(5897)),f=r(8504),i=i(r(3090)),m=r(1377),y=l(r(5282));(r=l=e.Sre||(e.Sre={})).locales=m.Variables.LOCALES,r.sreReady=c.engineReady,r.setupEngine=c.setupEngine,r.engineSetup=c.engineSetup,r.toEnriched=c.toEnriched,r.toSpeech=c.toSpeech,r.clearspeakPreferences=f.ClearspeakPreferences,r.getHighlighter=i.highlighter,r.getSpeechGenerator=p.generator,r.getWalker=u.walker,r.clearspeakStyle=function(){return h.DOMAIN_TO_STYLES.clearspeak},r.preloadLocales=function(e){return a(this,void 0,void 0,function(){var r;return s(this,function(t){return[2,(r=y.default.get(e))?new Promise(function(t,e){return t(JSON.stringify(r))}):c.localeLoader()(e)]})})},e.sreReady=l.sreReady,d.default.getInstance().delay=!0,e.default=l},444:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLAdaptor=void 0,o=r(5009).AbstractDOMAdaptor,i(a,o),a.prototype.parse=function(t,e){return this.parser.parseFromString(t,e=void 0===e?"text/html":e)},a.prototype.create=function(t,e){return e?this.document.createElementNS(e,t):this.document.createElement(t)},a.prototype.text=function(t){return this.document.createTextNode(t)},a.prototype.head=function(t){return t.head||t},a.prototype.body=function(t){return t.body||t},a.prototype.root=function(t){return t.documentElement||t},a.prototype.doctype=function(t){return t.doctype?"<!DOCTYPE ".concat(t.doctype.name,">"):""},a.prototype.tags=function(t,e,r){r=(r=void 0===r?null:r)?t.getElementsByTagNameNS(r,e):t.getElementsByTagName(e);return Array.from(r)},a.prototype.getElements=function(t,e){var r,n,o=[];try{for(var i=l(t),a=i.next();!a.done;a=i.next()){var s=a.value;"string"==typeof s?o=o.concat(Array.from(this.document.querySelectorAll(s))):Array.isArray(s)||s instanceof this.window.NodeList||s instanceof this.window.HTMLCollection?o=o.concat(Array.from(s)):o.push(s)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},a.prototype.contains=function(t,e){return t.contains(e)},a.prototype.parent=function(t){return t.parentNode},a.prototype.append=function(t,e){return t.appendChild(e)},a.prototype.insert=function(t,e){return this.parent(e).insertBefore(t,e)},a.prototype.remove=function(t){return this.parent(t).removeChild(t)},a.prototype.replace=function(t,e){return this.parent(e).replaceChild(t,e)},a.prototype.clone=function(t){return t.cloneNode(!0)},a.prototype.split=function(t,e){return t.splitText(e)},a.prototype.next=function(t){return t.nextSibling},a.prototype.previous=function(t){return t.previousSibling},a.prototype.firstChild=function(t){return t.firstChild},a.prototype.lastChild=function(t){return t.lastChild},a.prototype.childNodes=function(t){return Array.from(t.childNodes)},a.prototype.childNode=function(t,e){return t.childNodes[e]},a.prototype.kind=function(t){var e=t.nodeType;return 1===e||3===e||8===e?t.nodeName.toLowerCase():""},a.prototype.value=function(t){return t.nodeValue||""},a.prototype.textContent=function(t){return t.textContent},a.prototype.innerHTML=function(t){return t.innerHTML},a.prototype.outerHTML=function(t){return t.outerHTML},a.prototype.serializeXML=function(t){return(new this.window.XMLSerializer).serializeToString(t)},a.prototype.setAttribute=function(t,e,r,n){return(n=void 0===n?null:n)?(e=n.replace(/.*\//,"")+":"+e.replace(/^.*:/,""),t.setAttributeNS(n,e,r)):t.setAttribute(e,r)},a.prototype.getAttribute=function(t,e){return t.getAttribute(e)},a.prototype.removeAttribute=function(t,e){return t.removeAttribute(e)},a.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},a.prototype.allAttributes=function(t){return Array.from(t.attributes).map(function(t){return{name:t.name,value:t.value}})},a.prototype.addClass=function(t,e){t.classList?t.classList.add(e):t.className=(t.className+" "+e).trim()},a.prototype.removeClass=function(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/ /).filter(function(t){return t!==e}).join(" ")},a.prototype.hasClass=function(t,e){return t.classList?t.classList.contains(e):0<=t.className.split(/ /).indexOf(e)},a.prototype.setStyle=function(t,e,r){t.style[e]=r},a.prototype.getStyle=function(t,e){return t.style[e]},a.prototype.allStyles=function(t){return t.style.cssText},a.prototype.insertRules=function(t,e){var r,n;try{for(var o=l(e.reverse()),i=o.next();!i.done;i=o.next()){var a=i.value;try{t.sheet.insertRule(a,0)}catch(t){console.warn("MathJax: can't insert css rule '".concat(a,"': ").concat(t.message))}}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},a.prototype.fontSize=function(t){t=this.window.getComputedStyle(t);return parseFloat(t.fontSize)},a.prototype.fontFamily=function(t){return this.window.getComputedStyle(t).fontFamily||""},a.prototype.nodeSize=function(t,e,r){return void 0===e&&(e=1),(r=void 0===r?!1:r)&&t.getBBox?[(r=t.getBBox()).width/e,r.height/e]:[t.offsetWidth/e,t.offsetHeight/e]},a.prototype.nodeBBox=function(t){t=t.getBoundingClientRect();return{left:t.left,right:t.right,top:t.top,bottom:t.bottom}},a);function a(t){var e=o.call(this,t.document)||this;return e.window=t,e.parser=new t.DOMParser,e}e.HTMLAdaptor=r},6191:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.browserAdaptor=void 0;var n=r(444);e.browserAdaptor=function(){return new n.HTMLAdaptor(window)}},9515:function(t,e,r){var c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=(Object.defineProperty(e,"__esModule",{value:!0}),e.MathJax=e.combineWithMathJax=e.combineDefaults=e.combineConfig=e.isObject=void 0,r(3282));function u(t){return"object"==typeof t&&null!==t}function s(t,e){var r,n;try{for(var o=c(Object.keys(e)),i=o.next();!i.done;i=o.next()){var a=i.value;"__esModule"!==a&&(!u(t[a])||!u(e[a])||e[a]instanceof Promise?null!==e[a]&&void 0!==e[a]&&(t[a]=e[a]):s(t[a],e[a]))}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t}e.isObject=u,e.combineConfig=s,e.combineDefaults=function t(e,r,n){var o,i;e[r]||(e[r]={}),e=e[r];try{for(var a=c(Object.keys(n)),s=a.next();!s.done;s=a.next()){var l=s.value;u(e[l])&&u(n[l])?t(e,l,n[l]):null==e[l]&&null!=n[l]&&(e[l]=n[l])}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return e},e.combineWithMathJax=function(t){return s(e.MathJax,t)},void 0===r.g.MathJax&&(r.g.MathJax={}),r.g.MathJax.version||(r.g.MathJax={version:n.VERSION,_:{},config:r.g.MathJax}),e.MathJax=r.g.MathJax},235:function(t,l,e){var r,n,c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=(Object.defineProperty(l,"__esModule",{value:!0}),l.CONFIG=l.MathJax=l.Loader=l.PathFilters=l.PackageError=l.Package=void 0,e(9515)),u=e(265),i=e(265);Object.defineProperty(l,"Package",{enumerable:!0,get:function(){return i.Package}}),Object.defineProperty(l,"PackageError",{enumerable:!0,get:function(){return i.PackageError}});var a,s,p,e=e(7525);if(l.PathFilters={source:function(t){return l.CONFIG.source.hasOwnProperty(t.name)&&(t.name=l.CONFIG.source[t.name]),!0},normalize:function(t){var e=t.name;return e.match(/^(?:[a-z]+:\/)?\/|[a-z]:\\|\[/i)||(t.name="[mathjax]/"+e.replace(/^\.\//,"")),t.addExtension&&!e.match(/\.[^\/]+$/)&&(t.name+=".js"),!0},prefix:function(t){for(var e;(e=t.name.match(/^\[([^\]]*)\]/))&&l.CONFIG.paths.hasOwnProperty(e[1]);)t.name=l.CONFIG.paths[e[1]]+t.name.substr(e[0].length);return!0}},s=a=l.Loader||(l.Loader={}),p=o.MathJax.version,s.versions=new Map,s.ready=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];0===r.length&&(r=Array.from(u.Package.packages.keys()));var o=[];try{for(var i=c(r),a=i.next();!a.done;a=i.next()){var s=a.value,l=u.Package.packages.get(s)||new u.Package(s,!0);o.push(l.promise)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return Promise.all(o)},s.load=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(0===r.length)return Promise.resolve();var o=[];try{for(var i=c(r),a=i.next();!a.done;a=i.next())!function(t){var e=u.Package.packages.get(t);e||(e=new u.Package(t)).provides(l.CONFIG.provides[t]),e.checkNoLoad(),o.push(e.promise.then(function(){l.CONFIG.versionWarnings&&e.isLoaded&&!s.versions.has(u.Package.resolvePath(t))&&console.warn("No version information available for component ".concat(t))}))}(a.value)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return u.Package.loadAll(),Promise.all(o)},s.preLoad=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=c(r),i=o.next();!i.done;i=o.next()){var a=i.value,s=u.Package.packages.get(a);s||(s=new u.Package(a,!0)).provides(l.CONFIG.provides[a]),s.loaded()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},s.defaultReady=function(){void 0!==l.MathJax.startup&&l.MathJax.config.startup.ready()},s.getRoot=function(){var t,e="//../../es5";return e="undefined"!=typeof document&&(t=document.currentScript||document.getElementById("MathJax-script"))?t.src.replace(/\/[^\/]*$/,""):e},s.checkVersion=function(t,e,r){return s.versions.set(u.Package.resolvePath(t),p),!(!l.CONFIG.versionWarnings||e===p||(console.warn("Component ".concat(t," uses ").concat(e," of MathJax; version in use is ").concat(p)),0))},s.pathFilters=new e.FunctionList,s.pathFilters.add(l.PathFilters.source,0),s.pathFilters.add(l.PathFilters.normalize,10),s.pathFilters.add(l.PathFilters.prefix,20),l.MathJax=o.MathJax,void 0===l.MathJax.loader){(0,o.combineDefaults)(l.MathJax.config,"loader",{paths:{mathjax:a.getRoot()},source:{},dependencies:{},provides:{},load:[],ready:a.defaultReady.bind(a),failed:function(t){return console.log("MathJax(".concat(t.package||"?","): ").concat(t.message))},require:null,pathFilters:[],versionWarnings:!0}),(0,o.combineWithMathJax)({loader:a});try{for(var h=c(l.MathJax.config.loader.pathFilters),d=h.next();!d.done;d=h.next()){var f=d.value;Array.isArray(f)?a.pathFilters.add(f[0],f[1]):a.pathFilters.add(f)}}catch(t){r={error:t}}finally{try{d&&!d.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}}l.CONFIG=l.MathJax.config.loader},265:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},d=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},f=(Object.defineProperty(e,"__esModule",{value:!0}),e.Package=e.PackageError=void 0,r(235)),a=(o=Error,i(s,o),s);function s(t,e){t=o.call(this,t)||this;return t.package=e,t}function m(t,e){void 0===e&&(e=!1),this.isLoaded=!1,this.isLoading=!1,this.hasFailed=!1,this.dependents=[],this.dependencies=[],this.dependencyCount=0,this.provided=[],this.name=t,this.noLoad=e,m.packages.set(t,this),this.promise=this.makePromise(this.makeDependencies())}e.PackageError=a,Object.defineProperty(m.prototype,"canLoad",{get:function(){return 0===this.dependencyCount&&!this.noLoad&&!this.isLoading&&!this.hasFailed},enumerable:!1,configurable:!0}),m.resolvePath=function(t,e){t={name:t,original:t,addExtension:e=void 0===e?!0:e};return f.Loader.pathFilters.execute(t),t.name},m.loadAll=function(){var t,e;try{for(var r=p(this.packages.values()),n=r.next();!n.done;n=r.next()){var o=n.value;o.canLoad&&o.load()}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},m.prototype.makeDependencies=function(){var e,t,r=[],n=m.packages,o=this.noLoad,i=this.name,a=[];f.CONFIG.dependencies.hasOwnProperty(i)?a.push.apply(a,d([],h(f.CONFIG.dependencies[i]),!1)):"core"!==i&&a.push("core");try{for(var s=p(a),l=s.next();!l.done;l=s.next()){var c=l.value,u=n.get(c)||new m(c,o);this.dependencies.indexOf(u)<0&&(u.addDependent(this,o),this.dependencies.push(u),u.isLoaded||(this.dependencyCount++,r.push(u.promise)))}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return r},m.prototype.makePromise=function(t){var r=this,e=new Promise(function(t,e){r.resolve=t,r.reject=e}),n=f.CONFIG[this.name]||{};return n.ready&&(e=e.then(function(t){return n.ready(r.name)})),t.length&&(t.push(e),e=Promise.all(t).then(function(t){return t.join(", ")})),n.failed&&e.catch(function(t){return n.failed(new a(t,r.name))}),e},m.prototype.load=function(){var t;this.isLoaded||this.isLoading||this.noLoad||(this.isLoading=!0,t=m.resolvePath(this.name),f.CONFIG.require?this.loadCustom(t):this.loadScript(t))},m.prototype.loadCustom=function(e){var r=this;try{var t=f.CONFIG.require(e);t instanceof Promise?t.then(function(){return r.checkLoad()}).catch(function(t){return r.failed("Can't load \""+e+'"\n'+t.message.trim())}):this.checkLoad()}catch(e){this.failed(e.message)}},m.prototype.loadScript=function(e){var r=this,t=document.createElement("script");t.src=e,t.charset="UTF-8",t.onload=function(t){return r.checkLoad()},t.onerror=function(t){return r.failed("Can't load \""+e+'"')},document.head.appendChild(t)},m.prototype.loaded=function(){var t,e,r,n;this.isLoaded=!0,this.isLoading=!1;try{for(var o=p(this.dependents),i=o.next();!i.done;i=o.next())i.value.requirementSatisfied()}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}try{for(var a=p(this.provided),s=a.next();!s.done;s=a.next())s.value.loaded()}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}this.resolve(this.name)},m.prototype.failed=function(t){this.hasFailed=!0,this.isLoading=!1,this.reject(new a(t,this.name))},m.prototype.checkLoad=function(){var e=this;((f.CONFIG[this.name]||{}).checkReady||function(){return Promise.resolve()})().then(function(){return e.loaded()}).catch(function(t){return e.failed(t)})},m.prototype.requirementSatisfied=function(){this.dependencyCount&&(this.dependencyCount--,this.canLoad&&this.load())},m.prototype.provides=function(t){var e,r;void 0===t&&(t=[]);try{for(var n=p(t),o=n.next();!o.done;o=n.next()){var i=o.value,a=m.packages.get(i);a||(f.CONFIG.dependencies[i]||(f.CONFIG.dependencies[i]=[]),f.CONFIG.dependencies[i].push(i),(a=new m(i,!0)).isLoading=!0),this.provided.push(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},m.prototype.addDependent=function(t,e){this.dependents.push(t),e||this.checkNoLoad()},m.prototype.checkNoLoad=function(){var t,e;if(this.noLoad){this.noLoad=!1;try{for(var r=p(this.dependencies),n=r.next();!n.done;n=r.next())n.value.checkNoLoad()}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}},m.packages=new Map,e.Package=m},2388:function(t,s,o){var e=this&&this.__assign||function(){return(e=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(s,"__esModule",{value:!0}),s.CONFIG=s.MathJax=s.Startup=void 0;var r,c,a,u,p,h=o(9515),d=o(8666),f=o(7233);function m(t){return a.visitTree(t,c.document)}function y(){a=new s.MathJax._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor,u=s.MathJax._.mathjax.mathjax,c.input=x(),c.output=M(),c.adaptor=O(),c.handler&&u.handlers.unregister(c.handler),c.handler=E(),c.handler&&(u.handlers.register(c.handler),c.document=A())}function g(){c.input&&c.output&&b();var e,t,r=c.output?c.output.name.toLowerCase():"";try{for(var n=l(c.input),o=n.next();!o.done;o=n.next()){var i=o.value,a=i.name.toLowerCase();_(a,i),S(a,i),c.output&&v(a,r,i)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}function b(){s.MathJax.typeset=function(t){c.document.options.elements=t=void 0===t?null:t,c.document.reset(),c.document.render()},s.MathJax.typesetPromise=function(t){return c.document.options.elements=t=void 0===t?null:t,c.document.reset(),u.handleRetriesFor(function(){c.document.render()})},s.MathJax.typesetClear=function(t){(t=void 0===t?null:t)?c.document.clearMathItemsWithin(t):c.document.clear()}}function v(t,e,r){t=t+"2"+e;s.MathJax[t]=function(t,e){return(e=void 0===e?{}:e).format=r.name,c.document.convert(t,e)},s.MathJax[t+"Promise"]=function(t,e){return(e=void 0===e?{}:e).format=r.name,u.handleRetriesFor(function(){return c.document.convert(t,e)})},s.MathJax[e+"Stylesheet"]=function(){return c.output.styleSheet(c.document)},"getMetricsFor"in c.output&&(s.MathJax.getMetricsFor=function(t,e){return c.output.getMetricsFor(t,e)})}function _(t,r){var n=s.MathJax._.core.MathItem.STATE;s.MathJax[t+"2mml"]=function(t,e){return(e=void 0===e?{}:e).end=n.CONVERT,e.format=r.name,m(c.document.convert(t,e))},s.MathJax[t+"2mmlPromise"]=function(t,e){return(e=void 0===e?{}:e).end=n.CONVERT,e.format=r.name,u.handleRetriesFor(function(){return m(c.document.convert(t,e))})}}function S(t,r){s.MathJax[t+"Reset"]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.reset.apply(r,i([],n(t),!1))}}function x(){var e,t,r=[];try{for(var n=l(s.CONFIG.input),o=n.next();!o.done;o=n.next()){var i=o.value,a=c.constructors[i];if(!a)throw Error('Input Jax "'+i+'" is not defined (has it been loaded?)');r.push(new a(s.MathJax.config[i]))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r}function M(){var t=s.CONFIG.output;if(!t)return null;var e=c.constructors[t];if(e)return new e(s.MathJax.config[t]);throw Error('Output Jax "'+t+'" is not defined (has it been loaded?)')}function O(){var t=s.CONFIG.adaptor;if(!t||"none"===t)return null;var e=c.constructors[t];if(e)return e(s.MathJax.config[t]);throw Error('DOMAdaptor "'+t+'" is not defined (has it been loaded?)')}function E(){var e,t,r=s.CONFIG.handler;if(!r||"none"===r||!c.adaptor)return null;var n=c.constructors[r];if(!n)throw Error('Handler "'+r+'" is not defined (has it been loaded?)');var o=new n(c.adaptor,5);try{for(var i=l(p),a=i.next();!a.done;a=i.next())o=a.value.item(o)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return o}function A(t){return u.document((t=void 0===t?null:t)||s.CONFIG.document,e(e({},s.MathJax.config.options),{InputJax:c.input,OutputJax:c.output}))}c=r=s.Startup||(s.Startup={}),p=new d.PrioritizedList,c.constructors={},c.input=[],c.output=null,c.handler=null,c.adaptor=null,c.elements=null,c.document=null,c.promise=new Promise(function(t,e){c.promiseResolve=t,c.promiseReject=e}),c.pagePromise=new Promise(function(t,e){var r,n=o.g.document;n&&n.readyState&&"complete"!==n.readyState&&"interactive"!==n.readyState?(n.defaultView.addEventListener("load",r=function(){return t()},!0),n.defaultView.addEventListener("DOMContentLoaded",r,!0)):t()}),c.toMML=m,c.registerConstructor=function(t,e){c.constructors[t]=e},c.useHandler=function(t,e){void 0===e&&(e=!1),s.CONFIG.handler&&!e||(s.CONFIG.handler=t)},c.useAdaptor=function(t,e){void 0===e&&(e=!1),s.CONFIG.adaptor&&!e||(s.CONFIG.adaptor=t)},c.useInput=function(t,e){void 0===e&&(e=!1),C&&!e||s.CONFIG.input.push(t)},c.useOutput=function(t,e){void 0===e&&(e=!1),s.CONFIG.output&&!e||(s.CONFIG.output=t)},c.extendHandler=function(t,e){p.add(t,e=void 0===e?10:e)},c.defaultReady=function(){y(),g(),c.pagePromise.then(function(){return s.CONFIG.pageReady()}).then(function(){return c.promiseResolve()}).catch(function(t){return c.promiseReject(t)})},c.defaultPageReady=function(){return s.CONFIG.typeset&&s.MathJax.typesetPromise?s.MathJax.typesetPromise(s.CONFIG.elements):Promise.resolve()},c.getComponents=y,c.makeMethods=g,c.makeTypesetMethods=b,c.makeOutputMethods=v,c.makeMmlMethods=_,c.makeResetMethod=S,c.getInputJax=x,c.getOutputJax=M,c.getAdaptor=O,c.getHandler=E,c.getDocument=A,s.MathJax=h.MathJax,void 0===s.MathJax._.startup&&((0,h.combineDefaults)(s.MathJax.config,"startup",{input:[],output:"",handler:null,adaptor:null,document:"undefined"==typeof document?"":document,elements:null,typeset:!0,ready:r.defaultReady.bind(r),pageReady:r.defaultPageReady.bind(r)}),(0,h.combineWithMathJax)({startup:r,options:{}}),s.MathJax.config.startup.invalidOption&&(f.OPTIONS.invalidOption=s.MathJax.config.startup.invalidOption),s.MathJax.config.startup.optionError&&(f.OPTIONS.optionError=s.MathJax.config.startup.optionError)),s.CONFIG=s.MathJax.config.startup;var C=0!==s.CONFIG.input.length},3282:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="3.2.1"},5009:function(t,e){var m=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0,n.prototype.node=function(t,e,r,n){void 0===e&&(e={}),void 0===r&&(r=[]);var o,i,a=this.create(t,n);this.setAttributes(a,e);try{for(var s=m(r),l=s.next();!l.done;l=s.next()){var c=l.value;this.append(a,c)}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return a},n.prototype.setAttributes=function(t,e){var r,n,o,i,a,s;if(e.style&&"string"!=typeof e.style)try{for(var l=m(Object.keys(e.style)),c=l.next();!c.done;c=l.next()){var u=c.value;this.setStyle(t,u.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()}),e.style[u])}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(e.properties)try{for(var p=m(Object.keys(e.properties)),h=p.next();!h.done;h=p.next())t[u=h.value]=e.properties[u]}catch(t){o={error:t}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}try{for(var d=m(Object.keys(e)),f=d.next();!f.done;f=d.next())"style"===(u=f.value)&&"string"!=typeof e.style||"properties"===u||this.setAttribute(t,u,e[u])}catch(t){a={error:t}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}},n.prototype.replace=function(t,e){return this.insert(t,e),this.remove(e),e},n.prototype.childNode=function(t,e){return this.childNodes(t)[e]},n.prototype.allClasses=function(t){t=this.getAttribute(t,"class");return t?t.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]},n);function n(t){this.document=t=void 0===t?null:t}e.AbstractDOMAdaptor=r},3494:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFindMath=void 0;var n=r(7233);function o(t){var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t)}o.OPTIONS={},e.AbstractFindMath=o},3670:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractHandler=void 0,o=r(5722).AbstractMathDocument,i(l,o),l);function s(t,e){void 0===e&&(e=5),this.documentClass=a,this.adaptor=t,this.priority=e}function l(){return null!==o&&o.apply(this,arguments)||this}Object.defineProperty(s.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),s.prototype.handlesDocument=function(t){return!1},s.prototype.create=function(t,e){return new this.documentClass(t,this.adaptor,e)},s.NAME="generic",e.AbstractHandler=s},805:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerList=void 0,o=r(8666).PrioritizedList,i(s,o),s.prototype.register=function(t){return this.add(t,t.priority)},s.prototype.unregister=function(t){this.remove(t)},s.prototype.handlesDocument=function(t){var e,r;try{for(var n=a(this),o=n.next();!o.done;o=n.next()){var i=o.value.item;if(i.handlesDocument(t))return i}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}throw new Error("Can't find handler for document")},s.prototype.document=function(t,e){return void 0===e&&(e=null),this.handlesDocument(t).create(t,e)},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.HandlerList=r},9206:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractInputJax=void 0;var n=r(7233),o=r(7525);function i(t){void 0===t&&(t={}),this.adaptor=null,this.mmlFactory=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t),this.preFilters=new o.FunctionList,this.postFilters=new o.FunctionList}Object.defineProperty(i.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),i.prototype.setAdaptor=function(t){this.adaptor=t},i.prototype.setMmlFactory=function(t){this.mmlFactory=t},i.prototype.initialize=function(){},i.prototype.reset=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},Object.defineProperty(i.prototype,"processStrings",{get:function(){return!0},enumerable:!1,configurable:!0}),i.prototype.findMath=function(t,e){return[]},i.prototype.executeFilters=function(t,e,r,n){e={math:e,document:r,data:n};return t.execute(e),e.data},i.NAME="generic",i.OPTIONS={},e.AbstractInputJax=i},5722:function(t,r,e){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},p=(Object.defineProperty(r,"__esModule",{value:!0}),r.AbstractMathDocument=r.resetAllOptions=r.resetOptions=r.RenderList=void 0,e(7233)),s=e(9206),l=e(2975),c=e(9e3),h=e(4474),d=e(3909),m=e(6751),y=(o=e(8666).PrioritizedList,i(g,o),g.create=function(t){var e,r,n=new this;try{for(var o=f(Object.keys(t)),i=o.next();!i.done;i=o.next()){var a=i.value,s=u(this.action(a,t[a]),2),l=s[0],c=s[1];c&&n.add(l,c)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n},g.action=function(t,e){var r,n,o,i=!0,a=e[0];return o=1===e.length||"boolean"==typeof e[1]?(2===e.length&&(i=e[1]),n=(o=u(this.methodActions(t),2))[0],o[1]):"string"==typeof e[1]?"string"==typeof e[2]?(4===e.length&&(i=e[3]),r=(o=u(e.slice(1),2))[0],o=o[1],n=(r=u(this.methodActions(r,o),2))[0],r[1]):(3===e.length&&(i=e[2]),n=(o=u(this.methodActions(e[1]),2))[0],o[1]):(4===e.length&&(i=e[3]),n=(r=u(e.slice(1),2))[0],r[1]),[{id:t,renderDoc:n,renderMath:o,convert:i},a]},g.methodActions=function(e,r){return void 0===r&&(r=e),[function(t){return e&&t[e](),!1},function(t,e){return r&&t[r](e),!1}]},g.prototype.renderDoc=function(t,e){var r,n;void 0===e&&(e=h.STATE.UNPROCESSED);try{for(var o=f(this.items),i=o.next();!i.done;i=o.next()){var a=i.value;if(a.priority>=e&&a.item.renderDoc(t))return}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},g.prototype.renderMath=function(t,e,r){var n,o;void 0===r&&(r=h.STATE.UNPROCESSED);try{for(var i=f(this.items),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.priority>=r&&s.item.renderMath(t,e))return}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},g.prototype.renderConvert=function(t,e,r){var n,o;void 0===r&&(r=h.STATE.LAST);try{for(var i=f(this.items),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.priority>r)return;if(s.item.convert&&s.item.renderMath(t,e))return}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},g.prototype.findID=function(t){var e,r;try{for(var n=f(this.items),o=n.next();!o.done;o=n.next()){var i=o.value;if(i.item.id===t)return i.item}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},g);function g(){return null!==o&&o.apply(this,arguments)||this}r.RenderList=y,r.resetOptions={all:!1,processed:!1,inputJax:null,outputJax:null},r.resetAllOptions={all:!0,processed:!0,inputJax:[],outputJax:[]};S=s.AbstractInputJax,i(T,S),T.prototype.compile=function(t){return null};var b,v,_,S,x=T,M=(_=l.AbstractOutputJax,i(w,_),w.prototype.typeset=function(t,e){return null},w.prototype.escaped=function(t,e){return null},w),O=(v=c.AbstractMathList,i(C,v),C),e=(b=h.AbstractMathItem,i(A,b),A),s=(Object.defineProperty(E.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:!1,configurable:!0}),E.prototype.addRenderAction=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var t=u(y.action(t,e),2),n=t[0],t=t[1];this.renderActions.add(n,t)},E.prototype.removeRenderAction=function(t){t=this.renderActions.findID(t);t&&this.renderActions.remove(t)},E.prototype.render=function(){return this.renderActions.renderDoc(this),this},E.prototype.rerender=function(t){return void 0===t&&(t=h.STATE.RERENDER),this.state(t-1),this.render(),this},E.prototype.convert=function(t,e){var e=(0,p.userOptions)({format:this.inputJax[0].name,display:!0,end:h.STATE.LAST,em:16,ex:8,containerWidth:null,lineWidth:1e6,scale:1,family:""},e=void 0===e?{}:e),r=e.format,n=e.display,o=e.end,i=e.ex,a=e.em,s=e.containerWidth,l=e.lineWidth,c=e.scale,e=e.family,u=(null===s&&(s=80*i),this.inputJax.reduce(function(t,e){return e.name===r?e:t},null)),t=new this.options.MathItem(t,u,n);return t.start.node=this.adaptor.body(this.document),t.setMetrics(a,i,s,l,c),this.outputJax.options.mtextInheritFont&&(t.outputData.mtextFamily=e),this.outputJax.options.merrorInheritFont&&(t.outputData.merrorFamily=e),t.convert(this,o),t.typesetRoot||t.root},E.prototype.findMath=function(t){return void 0===t&&(t=null),this.processed.set("findMath"),this},E.prototype.compile=function(){var t,e,r,n;if(!this.processed.isSet("compile")){var o=[];try{for(var i=f(this.math),a=i.next();!a.done;a=i.next()){var s=a.value;this.compileMath(s),void 0!==s.inputData.recompile&&o.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}try{for(var l=f(o),c=l.next();!c.done;c=l.next()){var u=(s=c.value).inputData.recompile;s.state(u.state),s.inputData.recompile=u,this.compileMath(s)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}this.processed.set("compile")}return this},E.prototype.compileMath=function(e){try{e.compile(this)}catch(t){if(t.retry||t.restart)throw t;this.options.compileError(this,e,t),e.inputData.error=t}},E.prototype.compileError=function(t,e){t.root=this.mmlFactory.create("math",null,[this.mmlFactory.create("merror",{"data-mjx-error":e.message,title:e.message},[this.mmlFactory.create("mtext",null,[this.mmlFactory.create("text").setText("Math input error")])])]),t.display&&t.root.attributes.set("display","block"),t.inputData.error=e.message},E.prototype.typeset=function(){var t,e;if(!this.processed.isSet("typeset")){try{for(var r=f(this.math),n=r.next();!n.done;n=r.next()){var o=n.value;try{o.typeset(this)}catch(t){if(t.retry||t.restart)throw t;this.options.typesetError(this,o,t),o.outputData.error=t}}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("typeset")}return this},E.prototype.typesetError=function(t,e){t.typesetRoot=this.adaptor.node("mjx-container",{class:"MathJax mjx-output-error",jax:this.outputJax.name},[this.adaptor.node("span",{"data-mjx-error":e.message,title:e.message,style:{color:"red","background-color":"yellow","line-height":"normal"}},[this.adaptor.text("Math output error")])]),t.display&&this.adaptor.setAttributes(t.typesetRoot,{style:{display:"block",margin:"1em 0","text-align":"center"}}),t.outputData.error=e.message},E.prototype.getMetrics=function(){return this.processed.isSet("getMetrics")||(this.outputJax.getMetrics(this),this.processed.set("getMetrics")),this},E.prototype.updateDocument=function(){var t,e;if(!this.processed.isSet("updateDocument")){try{for(var r=f(this.math.reversed()),n=r.next();!n.done;n=r.next())n.value.updateDocument(this)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("updateDocument")}return this},E.prototype.removeFromDocument=function(t){return void 0===t&&(t=!1),this},E.prototype.state=function(t,e){var r,n;void 0===e&&(e=!1);try{for(var o=f(this.math),i=o.next();!i.done;i=o.next())i.value.state(t,e)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t<h.STATE.INSERTED&&this.processed.clear("updateDocument"),t<h.STATE.TYPESET&&(this.processed.clear("typeset"),this.processed.clear("getMetrics")),t<h.STATE.COMPILED&&this.processed.clear("compile"),this},E.prototype.reset=function(e){var t;return void 0===e&&(e={processed:!0}),(e=(0,p.userOptions)(Object.assign({},r.resetOptions),e)).all&&Object.assign(e,r.resetAllOptions),e.processed&&this.processed.reset(),e.inputJax&&this.inputJax.forEach(function(t){return t.reset.apply(t,a([],u(e.inputJax),!1))}),e.outputJax&&(t=this.outputJax).reset.apply(t,a([],u(e.outputJax),!1)),this},E.prototype.clear=function(){return this.reset(),this.math.clear(),this},E.prototype.concat=function(t){return this.math.merge(t),this},E.prototype.clearMathItemsWithin=function(t){var e,t=this.getMathItemsWithin(t);return(e=this.math).remove.apply(e,a([],u(t),!1)),t},E.prototype.getMathItemsWithin=function(t){Array.isArray(t)||(t=[t]);var e,r,n,o,i=this.adaptor,a=[],s=i.getElements(t,this.document);try{t:for(var l=f(this.math),c=l.next();!c.done;c=l.next()){var u=c.value;try{n=void 0;for(var p=f(s),h=p.next();!h.done;h=p.next()){var d=h.value;if(u.start.node&&i.contains(d,u.start.node)){a.push(u);continue t}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}return a},E.KIND="MathDocument",E.OPTIONS={OutputJax:null,InputJax:null,MmlFactory:null,MathList:O,MathItem:e,compileError:function(t,e,r){t.compileError(e,r)},typesetError:function(t,e,r){t.typesetError(e,r)},renderActions:(0,p.expandable)({find:[h.STATE.FINDMATH,"findMath","",!1],compile:[h.STATE.COMPILED],metrics:[h.STATE.METRICS,"getMetrics","",!1],typeset:[h.STATE.TYPESET],update:[h.STATE.INSERTED,"updateDocument",!1]})},E.ProcessBits=(0,m.BitFieldClass)("findMath","compile","getMetrics","typeset","updateDocument"),E);function E(t,e,r){var n=this,o=this.constructor,t=(this.document=t,this.options=(0,p.userOptions)((0,p.defaultOptions)({},o.OPTIONS),r),this.math=new(this.options.MathList||O),this.renderActions=y.create(this.options.renderActions),this.processed=new E.ProcessBits,this.outputJax=this.options.OutputJax||new M,this.options.InputJax||[new x]);Array.isArray(t)||(t=[t]),this.inputJax=t,this.adaptor=e,this.outputJax.setAdaptor(e),this.inputJax.map(function(t){return t.setAdaptor(e)}),this.mmlFactory=this.options.MmlFactory||new d.MmlFactory,this.inputJax.map(function(t){return t.setMmlFactory(n.mmlFactory)}),this.outputJax.initialize(),this.inputJax.map(function(t){return t.initialize()})}function A(){return null!==b&&b.apply(this,arguments)||this}function C(){return null!==v&&v.apply(this,arguments)||this}function w(){return null!==_&&_.apply(this,arguments)||this}function T(){return null!==S&&S.apply(this,arguments)||this}r.AbstractMathDocument=s},4474:function(t,i){function e(t,e,r,n,o){void 0===r&&(r=!0),void 0===n&&(n={i:0,n:0,delim:""}),void 0===o&&(o={i:0,n:0,delim:""}),this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=i.STATE.UNPROCESSED,this.math=t,this.inputJax=e,this.display=r,this.start=n,this.end=o,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}Object.defineProperty(i,"__esModule",{value:!0}),i.newState=i.STATE=i.AbstractMathItem=i.protoItem=void 0,i.protoItem=function(t,e,r,n,o,i,a){return{open:t,math:e,close:r,n:n,start:{n:o},end:{n:i},display:a=void 0===a?null:a}},Object.defineProperty(e.prototype,"isEscaped",{get:function(){return null===this.display},enumerable:!1,configurable:!0}),e.prototype.render=function(t){t.renderActions.renderMath(this,t)},e.prototype.rerender=function(t,e){void 0===e&&(e=i.STATE.RERENDER),this.state()>=e&&this.state(e-1),t.renderActions.renderMath(this,t,e)},e.prototype.convert=function(t,e){void 0===e&&(e=i.STATE.LAST),t.renderActions.renderConvert(this,t,e)},e.prototype.compile=function(t){this.state()<i.STATE.COMPILED&&(this.root=this.inputJax.compile(this,t),this.state(i.STATE.COMPILED))},e.prototype.typeset=function(t){this.state()<i.STATE.TYPESET&&(this.typesetRoot=t.outputJax[this.isEscaped?"escaped":"typeset"](this,t),this.state(i.STATE.TYPESET))},e.prototype.updateDocument=function(t){},e.prototype.removeFromDocument=function(t){},e.prototype.setMetrics=function(t,e,r,n,o){this.metrics={em:t,ex:e,containerWidth:r,lineWidth:n,scale:o}},e.prototype.state=function(t,e){return void 0===e&&(e=!1),null!=(t=void 0===t?null:t)&&(t<i.STATE.INSERTED&&this._state>=i.STATE.INSERTED&&this.removeFromDocument(e),t<i.STATE.TYPESET&&this._state>=i.STATE.TYPESET&&(this.outputData={}),t<i.STATE.COMPILED&&this._state>=i.STATE.COMPILED&&(this.inputData={}),this._state=t),this._state},e.prototype.reset=function(t){this.state(i.STATE.UNPROCESSED,t=void 0===t?!1:t)},i.AbstractMathItem=e,i.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4},i.newState=function(t,e){if(t in i.STATE)throw Error("State "+t+" already exists");i.STATE[t]=e}},9e3:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMathList=void 0,o=r(103).LinkedList,i(a,o),a.prototype.isBefore=function(t,e){return t.start.i<e.start.i||t.start.i===e.start.i&&t.start.n<e.start.n},a);function a(){return null!==o&&o.apply(this,arguments)||this}e.AbstractMathList=r},91:function(t,r){var l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},e=(Object.defineProperty(r,"__esModule",{value:!0}),r.Attributes=r.INHERIT=void 0,r.INHERIT="_inherit_",n.prototype.set=function(t,e){this.attributes[t]=e},n.prototype.setList=function(t){Object.assign(this.attributes,t)},n.prototype.get=function(t){var e=this.attributes[t];return e=e===r.INHERIT?this.global[t]:e},n.prototype.getExplicit=function(t){if(this.attributes.hasOwnProperty(t))return this.attributes[t]},n.prototype.getList=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o={};try{for(var i=l(r),a=i.next();!a.done;a=i.next()){var s=a.value;o[s]=this.get(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return o},n.prototype.setInherited=function(t,e){this.inherited[t]=e},n.prototype.getInherited=function(t){return this.inherited[t]},n.prototype.getDefault=function(t){return this.defaults[t]},n.prototype.isSet=function(t){return this.attributes.hasOwnProperty(t)||this.inherited.hasOwnProperty(t)},n.prototype.hasDefault=function(t){return t in this.defaults},n.prototype.getExplicitNames=function(){return Object.keys(this.attributes)},n.prototype.getInheritedNames=function(){return Object.keys(this.inherited)},n.prototype.getDefaultNames=function(){return Object.keys(this.defaults)},n.prototype.getGlobalNames=function(){return Object.keys(this.global)},n.prototype.getAllAttributes=function(){return this.attributes},n.prototype.getAllInherited=function(){return this.inherited},n.prototype.getAllDefaults=function(){return this.defaults},n.prototype.getAllGlobals=function(){return this.global},n);function n(t,e){this.global=e,this.defaults=Object.create(e),this.inherited=Object.create(this.defaults),this.attributes=Object.create(this.inherited),Object.assign(this.defaults,t)}r.Attributes=e},6336:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.MML=void 0;var n=r(9007),o=r(3233),i=r(450),a=r(3050),s=r(2756),l=r(4770),c=r(6030),u=r(7265),p=r(9878),h=r(6850),d=r(7131),f=r(6145),m=r(1314),y=r(1581),g=r(7238),b=r(5741),v=r(5410),_=r(6661),S=r(9145),x=r(4461),M=r(5184),O=r(6405),E=r(1349),A=r(5022),C=r(4359),w=r(142),T=r(7590),N=r(3985),L=r(9102),P=r(3948),r=r(1334);e.MML=((e={})[o.MmlMath.prototype.kind]=o.MmlMath,e[i.MmlMi.prototype.kind]=i.MmlMi,e[a.MmlMn.prototype.kind]=a.MmlMn,e[s.MmlMo.prototype.kind]=s.MmlMo,e[l.MmlMtext.prototype.kind]=l.MmlMtext,e[c.MmlMspace.prototype.kind]=c.MmlMspace,e[u.MmlMs.prototype.kind]=u.MmlMs,e[p.MmlMrow.prototype.kind]=p.MmlMrow,e[p.MmlInferredMrow.prototype.kind]=p.MmlInferredMrow,e[h.MmlMfrac.prototype.kind]=h.MmlMfrac,e[d.MmlMsqrt.prototype.kind]=d.MmlMsqrt,e[f.MmlMroot.prototype.kind]=f.MmlMroot,e[m.MmlMstyle.prototype.kind]=m.MmlMstyle,e[y.MmlMerror.prototype.kind]=y.MmlMerror,e[g.MmlMpadded.prototype.kind]=g.MmlMpadded,e[b.MmlMphantom.prototype.kind]=b.MmlMphantom,e[v.MmlMfenced.prototype.kind]=v.MmlMfenced,e[_.MmlMenclose.prototype.kind]=_.MmlMenclose,e[S.MmlMaction.prototype.kind]=S.MmlMaction,e[x.MmlMsub.prototype.kind]=x.MmlMsub,e[x.MmlMsup.prototype.kind]=x.MmlMsup,e[x.MmlMsubsup.prototype.kind]=x.MmlMsubsup,e[M.MmlMunder.prototype.kind]=M.MmlMunder,e[M.MmlMover.prototype.kind]=M.MmlMover,e[M.MmlMunderover.prototype.kind]=M.MmlMunderover,e[O.MmlMmultiscripts.prototype.kind]=O.MmlMmultiscripts,e[O.MmlMprescripts.prototype.kind]=O.MmlMprescripts,e[O.MmlNone.prototype.kind]=O.MmlNone,e[E.MmlMtable.prototype.kind]=E.MmlMtable,e[A.MmlMlabeledtr.prototype.kind]=A.MmlMlabeledtr,e[A.MmlMtr.prototype.kind]=A.MmlMtr,e[C.MmlMtd.prototype.kind]=C.MmlMtd,e[w.MmlMaligngroup.prototype.kind]=w.MmlMaligngroup,e[T.MmlMalignmark.prototype.kind]=T.MmlMalignmark,e[N.MmlMglyph.prototype.kind]=N.MmlMglyph,e[L.MmlSemantics.prototype.kind]=L.MmlSemantics,e[L.MmlAnnotation.prototype.kind]=L.MmlAnnotation,e[L.MmlAnnotationXML.prototype.kind]=L.MmlAnnotationXML,e[P.TeXAtom.prototype.kind]=P.TeXAtom,e[r.MathChoice.prototype.kind]=r.MathChoice,e[n.TextNode.prototype.kind]=n.TextNode,e[n.XMLNode.prototype.kind]=n.XMLNode,e)},1759:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MathMLVisitor=void 0,o=r(6325).MmlVisitor,i(a,o),a.prototype.visitTree=function(t,e){e=(this.document=e).createElement("top");return this.visitNode(t,e),this.document=null,e.firstChild},a.prototype.visitTextNode=function(t,e){e.appendChild(this.document.createTextNode(t.getText()))},a.prototype.visitXMLNode=function(t,e){e.appendChild(t.getXML().cloneNode(!0))},a.prototype.visitInferredMrowNode=function(t,e){var r,n;try{for(var o=c(t.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;this.visitNode(a,e)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},a.prototype.visitDefault=function(t,e){var r,n,o=this.document.createElement(t.kind);this.addAttributes(t,o);try{for(var i=c(t.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;this.visitNode(s,o)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}e.appendChild(o)},a.prototype.addAttributes=function(t,e){var r,n,o=t.attributes,i=o.getExplicitNames();try{for(var a=c(i),s=a.next();!s.done;s=a.next()){var l=s.value;e.setAttribute(l,o.getExplicit(l).toString())}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}},a);function a(){var t=null!==o&&o.apply(this,arguments)||this;return t.document=null,t}e.MathMLVisitor=r},3909:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlFactory=void 0,r(7860)),r=r(6336),a=(o=a.AbstractNodeFactory,i(s,o),Object.defineProperty(s.prototype,"MML",{get:function(){return this.node},enumerable:!1,configurable:!0}),s.defaultNodes=r.MML,s);function s(){return null!==o&&o.apply(this,arguments)||this}e.MmlFactory=a},9007:function(t,s,e){var n,l,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},f=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},m=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=(Object.defineProperty(s,"__esModule",{value:!0}),s.XMLNode=s.TextNode=s.AbstractMmlEmptyNode=s.AbstractMmlBaseNode=s.AbstractMmlLayoutNode=s.AbstractMmlTokenNode=s.AbstractMmlNode=s.indentAttributes=s.TEXCLASSNAMES=s.TEXCLASS=void 0,e(91)),e=e(4596),i=(s.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1},s.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"],["","thinmathspace","mediummathspace","thickmathspace"]),a=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]],c=(s.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"],l=e.AbstractNode,r(y,l),y.prototype.copy=function(t){void 0===t&&(t=!1);var e,r,n,o=this.factory.create(this.kind);if(o.properties=d({},this.properties),this.attributes){var i=this.attributes.getAllAttributes();try{for(var a=f(Object.keys(i)),s=a.next();!s.done;s=a.next()){var l=s.value;"id"===l&&!t||o.attributes.set(l,i[l])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(c=a.return)&&c.call(a)}finally{if(e)throw e.error}}}if(this.childNodes&&this.childNodes.length){var c=this.childNodes;1===c.length&&c[0].isInferred&&(c=c[0].childNodes);try{for(var u=f(c),p=u.next();!p.done;p=u.next()){var h=p.value;h?o.appendChild(h.copy()):o.childNodes.push(null)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}return o},Object.defineProperty(y.prototype,"texClass",{get:function(){return this.texclass},set:function(t){this.texclass=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"arity",{get:function(){return 1/0},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"Parent",{get:function(){for(var t=this.parent;t&&t.notParent;)t=t.Parent;return t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),y.prototype.setChildren=function(t){return this.arity<0?this.childNodes[0].setChildren(t):l.prototype.setChildren.call(this,t)},y.prototype.appendChild=function(t){var e,r,n=this;if(this.arity<0)return this.childNodes[0].appendChild(t),t;if(t.isInferred){if(this.arity===1/0)return t.childNodes.forEach(function(t){return l.prototype.appendChild.call(n,t)}),t;var o=t;(t=this.factory.create("mrow")).setChildren(o.childNodes),t.attributes=o.attributes;try{for(var i=f(o.getPropertyNames()),a=i.next();!a.done;a=i.next()){var s=a.value;t.setProperty(s,o.getProperty(s))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}}return l.prototype.appendChild.call(this,t)},y.prototype.replaceChild=function(t,e){return this.arity<0?(this.childNodes[0].replaceChild(t,e),t):l.prototype.replaceChild.call(this,t,e)},y.prototype.core=function(){return this},y.prototype.coreMO=function(){return this},y.prototype.coreIndex=function(){return 0},y.prototype.childPosition=function(){for(var t,e,r=this,n=r.parent;n&&n.notParent;)n=(r=n).parent;if(n){var o=0;try{for(var i=f(n.childNodes),a=i.next();!a.done;a=i.next()){if(a.value===r)return o;o++}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}return null},y.prototype.setTeXclass=function(t){return this.getPrevClass(t),null!=this.texClass?this:t},y.prototype.updateTeXclass=function(t){t&&(this.prevClass=t.prevClass,this.prevLevel=t.prevLevel,t.prevClass=t.prevLevel=null,this.texClass=t.texClass)},y.prototype.getPrevClass=function(t){t&&(this.prevClass=t.texClass,this.prevLevel=t.attributes.get("scriptlevel"))},y.prototype.texSpacing=function(){var t=null!=this.prevClass?this.prevClass:s.TEXCLASS.NONE,e=this.texClass||s.TEXCLASS.ORD;if(t===s.TEXCLASS.NONE||e===s.TEXCLASS.NONE)return"";t===s.TEXCLASS.VCENTER&&(t=s.TEXCLASS.ORD),e===s.TEXCLASS.VCENTER&&(e=s.TEXCLASS.ORD);t=a[t][e];return(0<this.prevLevel||0<this.attributes.get("scriptlevel"))&&0<=t?"":i[Math.abs(t)]},y.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()},y.prototype.setInheritedAttributes=function(t,e,r,n){void 0===t&&(t={}),void 0===e&&(e=!1),void 0===r&&(r=0),void 0===n&&(n=!1);var o,i,a=this.attributes.getAllDefaults();try{for(var s=f(Object.keys(t)),l=s.next();!l.done;l=s.next()){var c,u,p,h=l.value;(a.hasOwnProperty(h)||y.alwaysInherit.hasOwnProperty(h))&&(u=(c=m(t[h],2))[0],p=c[1],((y.noInherit[u]||{})[this.kind]||{})[h]||this.attributes.setInherited(h,p))}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}void 0===this.attributes.getExplicit("displaystyle")&&this.attributes.setInherited("displaystyle",e),void 0===this.attributes.getExplicit("scriptlevel")&&this.attributes.setInherited("scriptlevel",r),n&&this.setProperty("texprimestyle",n);var d=this.arity;if(0<=d&&d!==1/0&&(1===d&&0===this.childNodes.length||1!==d&&this.childNodes.length!==d))if(d<this.childNodes.length)this.childNodes=this.childNodes.slice(0,d);else for(;this.childNodes.length<d;)this.appendChild(this.factory.create("mrow"));this.setChildInheritedAttributes(t,e,r,n)},y.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,i;try{for(var a=f(this.childNodes),s=a.next();!s.done;s=a.next())s.value.setInheritedAttributes(t,e,r,n)}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},y.prototype.addInheritedAttributes=function(t,e){var r,n,o=d({},t);try{for(var i=f(Object.keys(e)),a=i.next();!a.done;a=i.next()){var s=a.value;"displaystyle"!==s&&"scriptlevel"!==s&&"style"!==s&&(o[s]=[this.kind,e[s]])}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},y.prototype.inheritAttributesFrom=function(t){var e=t.attributes,r=e.get("displaystyle"),n=e.get("scriptlevel"),e=e.isSet("mathsize")?{mathsize:["math",e.get("mathsize")]}:{},t=t.getProperty("texprimestyle")||!1;this.setInheritedAttributes(e,r,n,t)},y.prototype.verifyTree=function(t){var e;null!==(t=void 0===t?null:t)&&(this.verifyAttributes(t),e=this.arity,t.checkArity&&0<=e&&e!==1/0&&(1===e&&0===this.childNodes.length||1!==e&&this.childNodes.length!==e)&&this.mError('Wrong number of children for "'+this.kind+'" node',t,!0),this.verifyChildren(t))},y.prototype.verifyAttributes=function(t){var e,r;if(t.checkAttributes){var n=this.attributes,o=[];try{for(var i=f(n.getExplicitNames()),a=i.next();!a.done;a=i.next()){var s=a.value;"data-"===s.substr(0,5)||void 0!==n.getDefault(s)||s.match(/^(?:class|style|id|(?:xlink:)?href)$/)||o.push(s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}o.length&&this.mError("Unknown attributes for "+this.kind+" node: "+o.join(", "),t)}},y.prototype.verifyChildren=function(t){var e,r;try{for(var n=f(this.childNodes),o=n.next();!o.done;o=n.next())o.value.verifyTree(t)}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},y.prototype.mError=function(t,e,r){if(void 0===r&&(r=!1),this.parent&&this.parent.isKind("merror"))return null;var n,o=this.factory.create("merror");return o.attributes.set("data-mjx-message",t),e.fullErrors||r?(r=this.factory.create("mtext"),(n=this.factory.create("text")).setText(e.fullErrors?t:this.kind),r.appendChild(n),o.appendChild(r),this.parent.replaceChild(o,this)):(this.parent.replaceChild(o,this),o.appendChild(this)),o},y.defaults={mathbackground:o.INHERIT,mathcolor:o.INHERIT,mathsize:o.INHERIT,dir:o.INHERIT},y.noInherit={mstyle:{mpadded:{width:!0,height:!0,depth:!0,lspace:!0,voffset:!0},mtable:{width:!0,height:!0,depth:!0,align:!0}},maligngroup:{mrow:{groupalign:!0},mtable:{groupalign:!0}}},y.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0},y.verifyDefaults={checkArity:!0,checkAttributes:!1,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0},y);function y(t,e,r){void 0===e&&(e={}),void 0===r&&(r=[]);var n=l.call(this,t)||this;return n.prevClass=null,n.prevLevel=null,n.texclass=null,n.arity<0&&(n.childNodes=[t.create("inferredMrow")],n.childNodes[0].parent=n),n.setChildren(r),n.attributes=new o.Attributes(t.getNodeClass(n.kind).defaults,t.getNodeClass("math").defaults),n.attributes.setList(e),n}s.AbstractMmlNode=c;r(h,u=c),Object.defineProperty(h.prototype,"isToken",{get:function(){return!0},enumerable:!1,configurable:!0}),h.prototype.getText=function(){var t,e,r="";try{for(var n=f(this.childNodes),o=n.next();!o.done;o=n.next()){var i=o.value;i instanceof O&&(r+=i.getText())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},h.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,i;try{for(var a=f(this.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;l instanceof c&&l.setInheritedAttributes(t,e,r,n)}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},h.prototype.walkTree=function(t,e){var r,n;t(this,e);try{for(var o=f(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;a instanceof c&&a.walkTree(t,e)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return e},h.defaults=d(d({},c.defaults),{mathvariant:"normal",mathsize:o.INHERIT});var u,p=h;function h(){return null!==u&&u.apply(this,arguments)||this}s.AbstractMmlTokenNode=p;r(b,g=c),Object.defineProperty(b.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),b.prototype.core=function(){return this.childNodes[0]},b.prototype.coreMO=function(){return this.childNodes[0].coreMO()},b.prototype.setTeXclass=function(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t},b.defaults=c.defaults;var g,p=b;function b(){return null!==g&&g.apply(this,arguments)||this}s.AbstractMmlLayoutNode=p;r(_,v=c),Object.defineProperty(_.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:!1,configurable:!0}),_.prototype.core=function(){return this.childNodes[0]},_.prototype.coreMO=function(){return this.childNodes[0].coreMO()},_.prototype.setTeXclass=function(t){this.getPrevClass(t),this.texClass=s.TEXCLASS.ORD;var e,r,n=this.childNodes[0];n?this.isEmbellished||n.isKind("mi")?(t=n.setTeXclass(t),this.updateTeXclass(this.core())):(n.setTeXclass(null),t=this):t=this;try{for(var o=f(this.childNodes.slice(1)),i=o.next();!i.done;i=o.next()){var a=i.value;a&&a.setTeXclass(null)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return t},_.defaults=c.defaults;var v,p=_;function _(){return null!==v&&v.apply(this,arguments)||this}s.AbstractMmlBaseNode=p;S=e.AbstractEmptyNode,r(x,S),Object.defineProperty(x.prototype,"isToken",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"isEmbellished",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"isSpacelike",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"linebreakContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasNewLine",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"isInferred",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"notParent",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"texClass",{get:function(){return s.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"prevClass",{get:function(){return s.TEXCLASS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"prevLevel",{get:function(){return 0},enumerable:!1,configurable:!0}),x.prototype.hasSpacingAttributes=function(){return!1},Object.defineProperty(x.prototype,"attributes",{get:function(){return null},enumerable:!1,configurable:!0}),x.prototype.core=function(){return this},x.prototype.coreMO=function(){return this},x.prototype.coreIndex=function(){return 0},x.prototype.childPosition=function(){return 0},x.prototype.setTeXclass=function(t){return t},x.prototype.texSpacing=function(){return""},x.prototype.setInheritedAttributes=function(t,e,r,n){},x.prototype.inheritAttributesFrom=function(t){},x.prototype.verifyTree=function(t){},x.prototype.mError=function(t,e,r){return null};var S,p=x;function x(){return null!==S&&S.apply(this,arguments)||this}s.AbstractMmlEmptyNode=p;r(E,M=p),Object.defineProperty(E.prototype,"kind",{get:function(){return"text"},enumerable:!1,configurable:!0}),E.prototype.getText=function(){return this.text},E.prototype.setText=function(t){return this.text=t,this},E.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())},E.prototype.toString=function(){return this.text};var M,O=E;function E(){var t=null!==M&&M.apply(this,arguments)||this;return t.text="",t}s.TextNode=O;r(C,A=p),Object.defineProperty(C.prototype,"kind",{get:function(){return"XML"},enumerable:!1,configurable:!0}),C.prototype.getXML=function(){return this.xml},C.prototype.setXML=function(t,e){return void 0===e&&(e=null),this.xml=t,this.adaptor=e,this},C.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)},C.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))},C.prototype.toString=function(){return"XML data"};var A,e=C;function C(){var t=null!==A&&A.apply(this,arguments)||this;return t.xml=null,t.adaptor=null,t}s.XMLNode=e},3948:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.TeXAtom=void 0,r(9007)),r=r(2756),i=(o=s.AbstractMmlBaseNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"TeXAtom"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"notParent",{get:function(){return this.childNodes[0]&&1===this.childNodes[0].childNodes.length},enumerable:!1,configurable:!0}),l.prototype.setTeXclass=function(t){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(t)},l.prototype.adjustTeXclass=function(t){return t},l.defaults=a({},s.AbstractMmlBaseNode.defaults),l);function l(t,e,r){t=o.call(this,t,e,r)||this;return t.texclass=s.TEXCLASS.ORD,t.setProperty("texClass",t.texClass),t}(e.TeXAtom=i).prototype.adjustTeXclass=r.MmlMo.prototype.adjustTeXclass},9145:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMaction=void 0,r(9007)),i=(o=r.AbstractMmlNode,i(s,o),Object.defineProperty(s.prototype,"kind",{get:function(){return"maction"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"selected",{get:function(){var t=this.attributes.get("selection"),t=Math.max(1,Math.min(this.childNodes.length,t))-1;return this.childNodes[t]||this.factory.create("mrow")},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isEmbellished",{get:function(){return this.selected.isEmbellished},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isSpacelike",{get:function(){return this.selected.isSpacelike},enumerable:!1,configurable:!0}),s.prototype.core=function(){return this.selected.core()},s.prototype.coreMO=function(){return this.selected.coreMO()},s.prototype.verifyAttributes=function(t){o.prototype.verifyAttributes.call(this,t),"toggle"!==this.attributes.get("actiontype")&&void 0!==this.attributes.getExplicit("selection")&&delete this.attributes.getAllAttributes().selection},s.prototype.setTeXclass=function(t){"tooltip"===this.attributes.get("actiontype")&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);var e=this.selected;return t=e.setTeXclass(t),this.updateTeXclass(e),t},s.prototype.nextToggleSelection=function(){var t=Math.max(1,this.attributes.get("selection")+1);t>this.childNodes.length&&(t=1),this.attributes.set("selection",t)},s.defaults=a(a({},r.AbstractMmlNode.defaults),{actiontype:"toggle",selection:1}),s);function s(){return null!==o&&o.apply(this,arguments)||this}e.MmlMaction=i},142:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMaligngroup=void 0,r(9007)),r=r(91),i=(o=s.AbstractMmlLayoutNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"maligngroup"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),l.prototype.setChildInheritedAttributes=function(t,e,r,n){t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),o.prototype.setChildInheritedAttributes.call(this,t,e,r,n)},l.defaults=a(a({},s.AbstractMmlLayoutNode.defaults),{groupalign:r.INHERIT}),l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MmlMaligngroup=i},7590:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMalignmark=void 0,r(9007)),i=(o=r.AbstractMmlNode,i(s,o),Object.defineProperty(s.prototype,"kind",{get:function(){return"malignmark"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),s.defaults=a(a({},r.AbstractMmlNode.defaults),{edge:"left"}),s);function s(){return null!==o&&o.apply(this,arguments)||this}e.MmlMalignmark=i},3233:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMath=void 0,r(9007)),i=(o=r.AbstractMmlLayoutNode,i(s,o),Object.defineProperty(s.prototype,"kind",{get:function(){return"math"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),s.prototype.setChildInheritedAttributes=function(t,e,r,n){"display"===this.attributes.get("mode")&&this.attributes.setInherited("display","block"),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),e=!!this.attributes.get("displaystyle")||!this.attributes.get("displaystyle")&&"block"===this.attributes.get("display"),this.attributes.setInherited("displaystyle",e),r=this.attributes.get("scriptlevel")||this.constructor.defaults.scriptlevel,o.prototype.setChildInheritedAttributes.call(this,t,e,r,n)},s.defaults=a(a({},r.AbstractMmlLayoutNode.defaults),{mathvariant:"normal",mathsize:"normal",mathcolor:"",mathbackground:"transparent",dir:"ltr",scriptlevel:0,displaystyle:!1,display:"inline",maxwidth:"",overflow:"linebreak",altimg:"","altimg-width":"","altimg-height":"","altimg-valign":"",alttext:"",cdgroup:"",scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:"8px",infixlinebreakstyle:"before",lineleading:"1ex",linebreakmultchar:"⁢",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),s);function s(){return null!==o&&o.apply(this,arguments)||this}e.MmlMath=i},1334:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MathChoice=void 0,r(9007)),i=(o=r.AbstractMmlBaseNode,i(s,o),Object.defineProperty(s.prototype,"kind",{get:function(){return"MathChoice"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"arity",{get:function(){return 4},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),s.prototype.setInheritedAttributes=function(t,e,r,n){var o=e?0:Math.max(0,Math.min(r,2))+1,o=this.childNodes[o]||this.factory.create("mrow");this.parent.replaceChild(o,this),o.setInheritedAttributes(t,e,r,n)},s.defaults=a({},r.AbstractMmlBaseNode.defaults),s);function s(){return null!==o&&o.apply(this,arguments)||this}e.MathChoice=i},6661:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMenclose=void 0,r(9007)),r=(o=s.AbstractMmlNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"menclose"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"linebreakContininer",{get:function(){return!0},enumerable:!1,configurable:!0}),l.prototype.setTeXclass=function(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t},l.defaults=a(a({},s.AbstractMmlNode.defaults),{notation:"longdiv"}),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.ORD,t}e.MmlMenclose=r},1581:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMerror=void 0,r(9007)),r=(o=s.AbstractMmlNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"merror"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),l.defaults=a({},s.AbstractMmlNode.defaults),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.ORD,t}e.MmlMerror=r},5410:function(t,e,r){var n,c,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfenced=void 0,r(9007)),r=(c=p.AbstractMmlNode,o(a,c),Object.defineProperty(a.prototype,"kind",{get:function(){return"mfenced"},enumerable:!1,configurable:!0}),a.prototype.setTeXclass=function(t){this.getPrevClass(t),this.open&&(t=this.open.setTeXclass(t)),this.childNodes[0]&&(t=this.childNodes[0].setTeXclass(t));for(var e=1,r=this.childNodes.length;e<r;e++)this.separators[e-1]&&(t=this.separators[e-1].setTeXclass(t)),this.childNodes[e]&&(t=this.childNodes[e].setTeXclass(t));return this.close&&(t=this.close.setTeXclass(t)),this.updateTeXclass(this.open),t},a.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,i;this.addFakeNodes();try{for(var a=u([this.open,this.close].concat(this.separators)),s=a.next();!s.done;s=a.next()){var l=s.value;l&&l.setInheritedAttributes(t,e,r,n)}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}c.prototype.setChildInheritedAttributes.call(this,t,e,r,n)},a.prototype.addFakeNodes=function(){var t,e,r=this.attributes.getList("open","close","separators"),n=r.open,o=r.close,i=r.separators,n=n.replace(/[ \t\n\r]/g,""),o=o.replace(/[ \t\n\r]/g,""),i=i.replace(/[ \t\n\r]/g,"");if(n&&(this.open=this.fakeNode(n,{fence:!0,form:"prefix"},p.TEXCLASS.OPEN)),i){for(;i.length<this.childNodes.length-1;)i+=i.charAt(i.length-1);var a=0;try{for(var s=u(this.childNodes.slice(1)),l=s.next();!l.done;l=s.next())l.value&&this.separators.push(this.fakeNode(i.charAt(a++)))}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}}o&&(this.close=this.fakeNode(o,{fence:!0,form:"postfix"},p.TEXCLASS.CLOSE))},a.prototype.fakeNode=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r=null);t=this.factory.create("text").setText(t),e=this.factory.create("mo",e,[t]);return e.texClass=r,e.parent=this,e},a.defaults=i(i({},p.AbstractMmlNode.defaults),{open:"(",close:")",separators:","}),a);function a(){var t=null!==c&&c.apply(this,arguments)||this;return t.texclass=p.TEXCLASS.INNER,t.separators=[],t.open=null,t.close=null,t}e.MmlMfenced=r},6850:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMfrac=void 0,r(9007)),i=(o=r.AbstractMmlBaseNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"mfrac"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),l.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=s(this.childNodes),o=n.next();!o.done;o=n.next())o.value.setTeXclass(null)}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},l.prototype.setChildInheritedAttributes=function(t,e,r,n){(!e||0<r)&&r++,this.childNodes[0].setInheritedAttributes(t,!1,r,n),this.childNodes[1].setInheritedAttributes(t,!1,r,!0)},l.defaults=a(a({},r.AbstractMmlBaseNode.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:!1}),l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MmlMfrac=i},3985:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMglyph=void 0,r(9007)),r=(o=s.AbstractMmlTokenNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"mglyph"},enumerable:!1,configurable:!0}),l.prototype.verifyAttributes=function(t){var e=this.attributes.getList("src","fontfamily","index"),r=e.src,n=e.fontfamily,e=e.index;""!==r||""!==n&&""!==e?o.prototype.verifyAttributes.call(this,t):this.mError("mglyph must have either src or fontfamily and index attributes",t,!0)},l.defaults=a(a({},s.AbstractMmlTokenNode.defaults),{alt:"",src:"",index:"",width:"auto",height:"auto",valign:"0em"}),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.ORD,t}e.MmlMglyph=r},450:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMi=void 0,r(9007)),r=(o=s.AbstractMmlTokenNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"mi"},enumerable:!1,configurable:!0}),l.prototype.setInheritedAttributes=function(t,e,r,n){o.prototype.setInheritedAttributes.call(this,t=void 0===t?{}:t,e=void 0===e?!1:e,r=void 0===r?0:r,n=void 0===n?!1:n),this.getText().match(l.singleCharacter)&&!t.mathvariant&&this.attributes.setInherited("mathvariant","italic")},l.prototype.setTeXclass=function(t){this.getPrevClass(t);t=this.getText();return 1<t.length&&t.match(l.operatorName)&&"normal"===this.attributes.get("mathvariant")&&void 0===this.getProperty("autoOP")&&void 0===this.getProperty("texClass")&&(this.texClass=s.TEXCLASS.OP,this.setProperty("autoOP",!0)),this},l.defaults=a({},s.AbstractMmlTokenNode.defaults),l.operatorName=/^[a-z][a-z0-9]*$/i,l.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/,l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.ORD,t}e.MmlMi=r},6405:function(t,e,r){var n,i,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlNone=e.MmlMprescripts=e.MmlMmultiscripts=void 0,r(9007)),r=r(4461),r=(i=r.MmlMsubsup,o(l,i),Object.defineProperty(l.prototype,"kind",{get:function(){return"mmultiscripts"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),l.prototype.setChildInheritedAttributes=function(t,e,r,n){this.childNodes[0].setInheritedAttributes(t,e,r,n);for(var o=!1,i=1,a=0;i<this.childNodes.length;i++){var s,l=this.childNodes[i];l.isKind("mprescripts")?o||(o=!0,i%2!=0)||(s=this.factory.create("mrow"),this.childNodes.splice(i,0,s),s.parent=this,i++):(l.setInheritedAttributes(t,!1,r+1,n||a%2==0),a++)}this.childNodes.length%2==(o?1:0)&&(this.appendChild(this.factory.create("mrow")),this.childNodes[this.childNodes.length-1].setInheritedAttributes(t,!1,r+1,n))},l.prototype.verifyChildren=function(t){for(var e=!1,r=t.fixMmultiscripts,n=0;n<this.childNodes.length;n++){var o=this.childNodes[n];o.isKind("mprescripts")&&(e?o.mError(o.kind+" can only appear once in "+this.kind,t,!0):(e=!0,n%2!=0||r||this.mError("There must be an equal number of prescripts of each type",t)))}this.childNodes.length%2!=(e?1:0)||r||this.mError("There must be an equal number of scripts of each type",t),i.prototype.verifyChildren.call(this,t)},l.defaults=a({},r.MmlMsubsup.defaults),l);function l(){return null!==i&&i.apply(this,arguments)||this}e.MmlMmultiscripts=r;c=s.AbstractMmlNode,o(u,c),Object.defineProperty(u.prototype,"kind",{get:function(){return"mprescripts"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),u.prototype.verifyTree=function(t){c.prototype.verifyTree.call(this,t),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",t,!0)},u.defaults=a({},s.AbstractMmlNode.defaults);var c,r=u;function u(){return null!==c&&c.apply(this,arguments)||this}e.MmlMprescripts=r;p=s.AbstractMmlNode,o(h,p),Object.defineProperty(h.prototype,"kind",{get:function(){return"none"},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),h.prototype.verifyTree=function(t){p.prototype.verifyTree.call(this,t),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",t,!0)},h.defaults=a({},s.AbstractMmlNode.defaults);var p,r=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.MmlNone=r},3050:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMn=void 0,r(9007)),r=(o=s.AbstractMmlTokenNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"mn"},enumerable:!1,configurable:!0}),l.defaults=a({},s.AbstractMmlTokenNode.defaults),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.ORD,t}e.MmlMn=r},2756:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},p=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMo=void 0,r(9007)),d=r(4082),l=r(505),r=(o=s.AbstractMmlTokenNode,i(c,o),Object.defineProperty(c.prototype,"texClass",{get:function(){var t,e,r,n,o;return null===this._texClass?(t=this.getText(),o=(r=p(this.handleExplicitForm(this.getForms()),3))[0],e=r[1],r=r[2],(o=(n=this.constructor.OPTABLE)[o][t]||n[e][t]||n[r][t])?o[2]:s.TEXCLASS.REL):this._texClass},set:function(t){this._texClass=t},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"kind",{get:function(){return"mo"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isEmbellished",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hasNewLine",{get:function(){return"newline"===this.attributes.get("linebreak")},enumerable:!1,configurable:!0}),c.prototype.coreParent=function(){for(var t=this,e=this,r=this.factory.getNodeClass("math");e&&e.isEmbellished&&e.coreMO()===this&&!(e instanceof r);)e=(t=e).parent;return t},c.prototype.coreText=function(t){if(!t)return"";if(t.isEmbellished)return t.coreMO().getText();for(;((t.isKind("mrow")||t.isKind("TeXAtom")&&t.texClass!==s.TEXCLASS.VCENTER||t.isKind("mstyle")||t.isKind("mphantom"))&&1===t.childNodes.length||t.isKind("munderover"))&&t.childNodes[0];)t=t.childNodes[0];return t.isToken?t.getText():""},c.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")},Object.defineProperty(c.prototype,"isAccent",{get:function(){var t,e=!1,r=this.coreParent().parent;return e=r&&(t=r.isKind("mover")?r.childNodes[r.over].coreMO()?"accent":"":r.isKind("munder")?r.childNodes[r.under].coreMO()?"accentunder":"":r.isKind("munderover")?this===r.childNodes[r.over].coreMO()?"accent":this===r.childNodes[r.under].coreMO()?"accentunder":"":"")?void 0!==r.attributes.getExplicit(t)?e:this.attributes.get("accent"):e},enumerable:!1,configurable:!0}),c.prototype.setTeXclass=function(t){var e=this.attributes.getList("form","fence"),r=e.form,e=e.fence;return void 0===this.getProperty("texClass")&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))?null:(e&&this.texClass===s.TEXCLASS.REL&&("prefix"===r&&(this.texClass=s.TEXCLASS.OPEN),"postfix"===r&&(this.texClass=s.TEXCLASS.CLOSE)),this.adjustTeXclass(t))},c.prototype.adjustTeXclass=function(t){var e=this.texClass,r=this.prevClass;if(e===s.TEXCLASS.NONE)return t;if(t?(!t.getProperty("autoOP")||e!==s.TEXCLASS.BIN&&e!==s.TEXCLASS.REL||(r=t.texClass=s.TEXCLASS.ORD),r=this.prevClass=t.texClass||s.TEXCLASS.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):r=this.prevClass=s.TEXCLASS.NONE,e!==s.TEXCLASS.BIN||r!==s.TEXCLASS.NONE&&r!==s.TEXCLASS.BIN&&r!==s.TEXCLASS.OP&&r!==s.TEXCLASS.REL&&r!==s.TEXCLASS.OPEN&&r!==s.TEXCLASS.PUNCT)if(r!==s.TEXCLASS.BIN||e!==s.TEXCLASS.REL&&e!==s.TEXCLASS.CLOSE&&e!==s.TEXCLASS.PUNCT){if(e===s.TEXCLASS.BIN){for(var n=this,o=this.parent;o&&o.parent&&o.isEmbellished&&(1===o.childNodes.length||!o.isKind("mrow")&&o.core()===n);)o=(n=o).parent;o.childNodes[o.childNodes.length-1]===n&&(this.texClass=s.TEXCLASS.ORD)}}else t.texClass=this.prevClass=s.TEXCLASS.ORD;else this.texClass=s.TEXCLASS.ORD;return this},c.prototype.setInheritedAttributes=function(t,e,r,n){o.prototype.setInheritedAttributes.call(this,t=void 0===t?{}:t,e=void 0===e?!1:e,r=void 0===r?0:r,n=void 0===n?!1:n);t=this.getText();this.checkOperatorTable(t),this.checkPseudoScripts(t),this.checkPrimes(t),this.checkMathAccent(t)},c.prototype.checkOperatorTable=function(t){var e,r,n=p(this.handleExplicitForm(this.getForms()),3),o=n[0],i=n[1],n=n[2],a=(this.attributes.setInherited("form",o),this.constructor.OPTABLE),s=a[o][t]||a[i][t]||a[n][t];if(s){void 0===this.getProperty("texClass")&&(this.texClass=s[2]);try{for(var l=h(Object.keys(s[3]||{})),c=l.next();!c.done;c=l.next()){var u=c.value;this.attributes.setInherited(u,s[3][u])}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}this.lspace=(s[0]+1)/18,this.rspace=(s[1]+1)/18}else{o=(0,d.getRange)(t);o&&(void 0===this.getProperty("texClass")&&(this.texClass=o[2]),i=this.constructor.MMLSPACING[o[2]],this.lspace=(i[0]+1)/18,this.rspace=(i[1]+1)/18)}},c.prototype.getForms=function(){for(var t=this,e=this.parent,r=this.Parent;r&&r.isEmbellished;)t=e,e=r.parent,r=r.Parent;if(e&&e.isKind("mrow")&&1!==e.nonSpaceLength()){if(e.firstNonSpace()===t)return["prefix","infix","postfix"];if(e.lastNonSpace()===t)return["postfix","infix","prefix"]}return["infix","prefix","postfix"]},c.prototype.handleExplicitForm=function(t){var e;return t=this.attributes.isSet("form")?[e=this.attributes.get("form")].concat(t.filter(function(t){return t!==e})):t},c.prototype.checkPseudoScripts=function(t){var e=this.constructor.pseudoScripts;t.match(e)&&(e=!(t=this.coreParent().Parent)||!(t.isKind("msubsup")&&!t.isKind("msub")),this.setProperty("pseudoscript",e),e&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0)))},c.prototype.checkPrimes=function(t){var e,r=this.constructor.primes;t.match(r)&&(e=this.constructor.remapPrimes,r=(0,l.unicodeString)((0,l.unicodeChars)(t).map(function(t){return e[t]})),this.setProperty("primes",r))},c.prototype.checkMathAccent=function(t){var e=this.Parent;void 0===this.getProperty("mathaccent")&&e&&e.isKind("munderover")&&((e=e.childNodes[0]).isEmbellished&&e.coreMO()===this||(e=this.constructor.mathaccents,t.match(e)&&this.setProperty("mathaccent",!0)))},c.defaults=a(a({},s.AbstractMmlTokenNode.defaults),{form:"infix",fence:!1,separator:!1,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:!1,symmetric:!1,maxsize:"infinity",minsize:"0em",largeop:!1,movablelimits:!1,accent:!1,linebreak:"auto",lineleading:"1ex",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),c.MMLSPACING=d.MMLSPACING,c.OPTABLE=d.OPTABLE,c.pseudoScripts=new RegExp(["^[\"'*`","ª","°","²-´","¹","º","‘-‟","′-‷⁗","⁰ⁱ","⁴-ⁿ","₀-₎","]+$"].join("")),c.primes=new RegExp(["^[\"'`","‘-‟","]+$"].join("")),c.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},c.mathaccents=new RegExp(["^[","´́ˊ","`̀ˋ","¨̈","~̃˜","¯̄ˉ","˘̆","ˇ̌","^̂ˆ","→⃗","˙̇","˚̊","⃛","⃜","]$"].join("")),c);function c(){var t=null!==o&&o.apply(this,arguments)||this;return t._texClass=null,t.lspace=5/18,t.rspace=5/18,t}e.MmlMo=r},7238:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMpadded=void 0,r(9007)),i=(o=r.AbstractMmlLayoutNode,i(s,o),Object.defineProperty(s.prototype,"kind",{get:function(){return"mpadded"},enumerable:!1,configurable:!0}),s.defaults=a(a({},r.AbstractMmlLayoutNode.defaults),{width:"",height:"",depth:"",lspace:0,voffset:0}),s);function s(){return null!==o&&o.apply(this,arguments)||this}e.MmlMpadded=i},5741:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMphantom=void 0,r(9007)),r=(o=s.AbstractMmlLayoutNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"mphantom"},enumerable:!1,configurable:!0}),l.defaults=a({},s.AbstractMmlLayoutNode.defaults),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.ORD,t}e.MmlMphantom=r},6145:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMroot=void 0,r(9007)),r=(o=s.AbstractMmlNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"mroot"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),l.prototype.setTeXclass=function(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this},l.prototype.setChildInheritedAttributes=function(t,e,r,n){this.childNodes[0].setInheritedAttributes(t,e,r,!0),this.childNodes[1].setInheritedAttributes(t,!1,r+2,n)},l.defaults=a({},s.AbstractMmlNode.defaults),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.ORD,t}e.MmlMroot=r},9878:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlInferredMrow=e.MmlMrow=void 0,r(9007)),r=(o=u.AbstractMmlNode,i(s,o),Object.defineProperty(s.prototype,"kind",{get:function(){return"mrow"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isSpacelike",{get:function(){var t,e;try{for(var r=c(this.childNodes),n=r.next();!n.done;n=r.next())if(!n.value.isSpacelike)return!1}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return!0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isEmbellished",{get:function(){var t,e,r=!1,n=0;try{for(var o=c(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;if(a)if(a.isEmbellished){if(r)return!1;r=!0,this._core=n}else if(!a.isSpacelike)return!1;n++}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return r},enumerable:!1,configurable:!0}),s.prototype.core=function(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core]:this},s.prototype.coreMO=function(){return this.isEmbellished&&null!=this._core?this.childNodes[this._core].coreMO():this},s.prototype.nonSpaceLength=function(){var t,e,r=0;try{for(var n=c(this.childNodes),o=n.next();!o.done;o=n.next()){var i=o.value;i&&!i.isSpacelike&&r++}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},s.prototype.firstNonSpace=function(){var t,e;try{for(var r=c(this.childNodes),n=r.next();!n.done;n=r.next()){var o=n.value;if(o&&!o.isSpacelike)return o}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return null},s.prototype.lastNonSpace=function(){for(var t=this.childNodes.length;0<=--t;){var e=this.childNodes[t];if(e&&!e.isSpacelike)return e}return null},s.prototype.setTeXclass=function(t){var e,r,n,o;if(null!=this.getProperty("open")||null!=this.getProperty("close")){this.getPrevClass(t),t=null;try{for(var i=c(this.childNodes),a=i.next();!a.done;a=i.next())t=a.value.setTeXclass(t)}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}null==this.texClass&&(this.texClass=u.TEXCLASS.INNER)}else{try{for(var s=c(this.childNodes),l=s.next();!l.done;l=s.next())t=l.value.setTeXclass(t)}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}this.childNodes[0]&&this.updateTeXclass(this.childNodes[0])}return t},s.defaults=a({},u.AbstractMmlNode.defaults),s);function s(){var t=null!==o&&o.apply(this,arguments)||this;return t._core=null,t}e.MmlMrow=r;i(p,l=r),Object.defineProperty(p.prototype,"kind",{get:function(){return"inferredMrow"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isInferred",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),p.prototype.toString=function(){return"["+this.childNodes.join(",")+"]"},p.defaults=r.defaults;var l,i=p;function p(){return null!==l&&l.apply(this,arguments)||this}e.MmlInferredMrow=i},7265:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMs=void 0,r(9007)),r=(o=s.AbstractMmlTokenNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"ms"},enumerable:!1,configurable:!0}),l.defaults=a(a({},s.AbstractMmlTokenNode.defaults),{lquote:'"',rquote:'"'}),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.ORD,t}e.MmlMs=r},6030:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMspace=void 0,r(9007)),r=(o=s.AbstractMmlTokenNode,i(l,o),l.prototype.setTeXclass=function(t){return t},Object.defineProperty(l.prototype,"kind",{get:function(){return"mspace"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hasNewline",{get:function(){var t=this.attributes;return null==t.getExplicit("width")&&null==t.getExplicit("height")&&null==t.getExplicit("depth")&&"newline"===t.get("linebreak")},enumerable:!1,configurable:!0}),l.defaults=a(a({},s.AbstractMmlTokenNode.defaults),{width:"0em",height:"0ex",depth:"0ex",linebreak:"auto"}),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.NONE,t}e.MmlMspace=r},7131:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsqrt=void 0,r(9007)),r=(o=s.AbstractMmlNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"msqrt"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),l.prototype.setTeXclass=function(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this},l.prototype.setChildInheritedAttributes=function(t,e,r,n){this.childNodes[0].setInheritedAttributes(t,e,r,!0)},l.defaults=a({},s.AbstractMmlNode.defaults),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.ORD,t}e.MmlMsqrt=r},1314:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMstyle=void 0,r(9007)),r=r(91),i=(o=s.AbstractMmlLayoutNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"mstyle"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"notParent",{get:function(){return this.childNodes[0]&&1===this.childNodes[0].childNodes.length},enumerable:!1,configurable:!0}),l.prototype.setChildInheritedAttributes=function(t,e,r,n){var o=this.attributes.getExplicit("scriptlevel"),o=(null!=o&&((o=o.toString()).match(/^\s*[-+]/)?r+=parseInt(o):r=parseInt(o),n=!1),this.attributes.getExplicit("displaystyle")),o=(null!=o&&(e=!0===o,n=!1),this.attributes.getExplicit("data-cramped"));null!=o&&(n=o),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),this.childNodes[0].setInheritedAttributes(t,e,r,n)},l.defaults=a(a({},s.AbstractMmlLayoutNode.defaults),{scriptlevel:r.INHERIT,displaystyle:r.INHERIT,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:"8px",mathbackground:r.INHERIT,mathcolor:r.INHERIT,dir:r.INHERIT,infixlinebreakstyle:"before"}),l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MmlMstyle=i},4461:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMsup=e.MmlMsub=e.MmlMsubsup=void 0,r(9007)),r=(o=r.AbstractMmlBaseNode,i(s,o),Object.defineProperty(s.prototype,"kind",{get:function(){return"msubsup"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sub",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sup",{get:function(){return 2},enumerable:!1,configurable:!0}),s.prototype.setChildInheritedAttributes=function(t,e,r,n){var o=this.childNodes;o[0].setInheritedAttributes(t,e,r,n),o[1].setInheritedAttributes(t,!1,r+1,n||1===this.sub),o[2]&&o[2].setInheritedAttributes(t,!1,r+1,n||2===this.sub)},s.defaults=a(a({},r.AbstractMmlBaseNode.defaults),{subscriptshift:"",superscriptshift:""}),s);function s(){return null!==o&&o.apply(this,arguments)||this}e.MmlMsubsup=r;i(u,l=r),Object.defineProperty(u.prototype,"kind",{get:function(){return"msub"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),u.defaults=a({},r.defaults);var l,c=u;function u(){return null!==l&&l.apply(this,arguments)||this}e.MmlMsub=c;i(h,p=r),Object.defineProperty(h.prototype,"kind",{get:function(){return"msup"},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"sup",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"sub",{get:function(){return 2},enumerable:!1,configurable:!0}),h.defaults=a({},r.defaults);var p,c=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.MmlMsup=c},1349:function(t,e,r){var n,c,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},m=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtable=void 0,r(9007)),y=r(505),r=(c=u.AbstractMmlNode,o(a,c),Object.defineProperty(a.prototype,"kind",{get:function(){return"mtable"},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),a.prototype.setInheritedAttributes=function(t,e,r,n){var o,i;try{for(var a=m(u.indentAttributes),s=a.next();!s.done;s=a.next()){var l=s.value;t[l]&&this.attributes.setInherited(l,t[l][1]),void 0!==this.attributes.getExplicit(l)&&delete this.attributes.getAllAttributes()[l]}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}c.prototype.setInheritedAttributes.call(this,t,e,r,n)},a.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,i,a,s;try{for(var l=m(this.childNodes),c=l.next();!c.done;c=l.next())(f=c.value).isKind("mtr")||this.replaceChild(this.factory.create("mtr"),f).appendChild(f)}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}r=this.getProperty("scriptlevel")||r,e=!(!this.attributes.getExplicit("displaystyle")&&!this.attributes.getDefault("displaystyle")),t=this.addInheritedAttributes(t,{columnalign:this.attributes.get("columnalign"),rowalign:"center"});var u=this.attributes.getExplicit("data-cramped"),p=(0,y.split)(this.attributes.get("rowalign"));try{for(var h=m(this.childNodes),d=h.next();!d.done;d=h.next()){var f=d.value;t.rowalign[1]=p.shift()||t.rowalign[1],f.setInheritedAttributes(t,e,r,!!u)}}catch(t){a={error:t}}finally{try{d&&!d.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}},a.prototype.verifyChildren=function(t){for(var e=null,r=this.factory,n=0;n<this.childNodes.length;n++){var o,i=this.childNodes[n];i.isKind("mtr")?e=null:(o=i.isKind("mtd"),e?(this.removeChild(i),n--):e=this.replaceChild(r.create("mtr"),i),e.appendChild(o?i:r.create("mtd",{},[i])),t.fixMtables||(i.parent.removeChild(i),i.parent=this,o&&e.appendChild(r.create("mtd")),i=i.mError("Children of "+this.kind+" must be mtr or mlabeledtr",t,o),e.childNodes[e.childNodes.length-1].appendChild(i)))}c.prototype.verifyChildren.call(this,t)},a.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=m(this.childNodes),o=n.next();!o.done;o=n.next())o.value.setTeXclass(null)}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},a.defaults=i(i({},u.AbstractMmlNode.defaults),{align:"axis",rowalign:"baseline",columnalign:"center",groupalign:"{left}",alignmentscope:!0,columnwidth:"auto",width:"auto",rowspacing:"1ex",columnspacing:".8em",rowlines:"none",columnlines:"none",frame:"none",framespacing:"0.4em 0.5ex",equalrows:!1,equalcolumns:!1,displaystyle:!1,side:"right",minlabelspacing:"0.8em"}),a);function a(){var t=null!==c&&c.apply(this,arguments)||this;return t.properties={useHeight:!0},t.texclass=u.TEXCLASS.ORD,t}e.MmlMtable=r},4359:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtd=void 0,r(9007)),r=r(91),i=(o=s.AbstractMmlBaseNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"mtd"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return-1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),l.prototype.verifyChildren=function(t){!this.parent||this.parent.isKind("mtr")?o.prototype.verifyChildren.call(this,t):this.mError(this.kind+" can only be a child of an mtr or mlabeledtr",t,!0)},l.prototype.setTeXclass=function(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this},l.defaults=a(a({},s.AbstractMmlBaseNode.defaults),{rowspan:1,columnspan:1,rowalign:r.INHERIT,columnalign:r.INHERIT,groupalign:r.INHERIT}),l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MmlMtd=i},4770:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMtext=void 0,r(9007)),r=(o=s.AbstractMmlTokenNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"mtext"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isSpacelike",{get:function(){return!0},enumerable:!1,configurable:!0}),l.defaults=a({},s.AbstractMmlTokenNode.defaults),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.texclass=s.TEXCLASS.ORD,t}e.MmlMtext=r},5022:function(t,e,r){var n,a,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},f=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMlabeledtr=e.MmlMtr=void 0,r(9007)),l=r(91),m=r(505),r=(a=s.AbstractMmlNode,o(c,a),Object.defineProperty(c.prototype,"kind",{get:function(){return"mtr"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),c.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,i,a,s;try{for(var l=f(this.childNodes),c=l.next();!c.done;c=l.next())(d=c.value).isKind("mtd")||this.replaceChild(this.factory.create("mtd"),d).appendChild(d)}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}var u=(0,m.split)(this.attributes.get("columnalign"));1===this.arity&&u.unshift(this.parent.attributes.get("side")),t=this.addInheritedAttributes(t,{rowalign:this.attributes.get("rowalign"),columnalign:"center"});try{for(var p=f(this.childNodes),h=p.next();!h.done;h=p.next()){var d=h.value;t.columnalign[1]=u.shift()||t.columnalign[1],d.setInheritedAttributes(t,e,r,n)}}catch(t){a={error:t}}finally{try{h&&!h.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}},c.prototype.verifyChildren=function(t){var e,r;if(!this.parent||this.parent.isKind("mtable")){try{for(var n=f(this.childNodes),o=n.next();!o.done;o=n.next()){var i=o.value;i.isKind("mtd")||(this.replaceChild(this.factory.create("mtd"),i).appendChild(i),t.fixMtables||i.mError("Children of "+this.kind+" must be mtd",t))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}a.prototype.verifyChildren.call(this,t)}else this.mError(this.kind+" can only be a child of an mtable",t,!0)},c.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=f(this.childNodes),o=n.next();!o.done;o=n.next())o.value.setTeXclass(null)}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},c.defaults=i(i({},s.AbstractMmlNode.defaults),{rowalign:l.INHERIT,columnalign:l.INHERIT,groupalign:l.INHERIT}),c);function c(){return null!==a&&a.apply(this,arguments)||this}e.MmlMtr=r;o(p,u=r),Object.defineProperty(p.prototype,"kind",{get:function(){return"mlabeledtr"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0});var u,s=p;function p(){return null!==u&&u.apply(this,arguments)||this}e.MmlMlabeledtr=s},5184:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlMover=e.MmlMunder=e.MmlMunderover=void 0,r(9007)),r=(o=r.AbstractMmlBaseNode,i(s,o),Object.defineProperty(s.prototype,"kind",{get:function(){return"munderover"},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"arity",{get:function(){return 3},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"under",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"over",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"linebreakContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),s.prototype.setChildInheritedAttributes=function(t,e,r,n){var o=this.childNodes,i=(o[0].setInheritedAttributes(t,e,r,n||!!o[this.over]),!(e||!o[0].coreMO().attributes.get("movablelimits"))),a=this.constructor.ACCENTS;o[1].setInheritedAttributes(t,!1,this.getScriptlevel(a[1],i,r),n||1===this.under),this.setInheritedAccent(1,a[1],e,r,n,i),o[2]&&(o[2].setInheritedAttributes(t,!1,this.getScriptlevel(a[2],i,r),n||2===this.under),this.setInheritedAccent(2,a[2],e,r,n,i))},s.prototype.getScriptlevel=function(t,e,r){return!e&&this.attributes.get(t)||r++,r},s.prototype.setInheritedAccent=function(t,e,r,n,o,i){var a,t=this.childNodes[t];null==this.attributes.getExplicit(e)&&t.isEmbellished&&(a=t.coreMO().attributes.get("accent"),this.attributes.setInherited(e,a),a!==this.attributes.getDefault(e)&&t.setInheritedAttributes({},r,this.getScriptlevel(e,i,n),o))},s.defaults=a(a({},r.AbstractMmlBaseNode.defaults),{accent:!1,accentunder:!1,align:"center"}),s.ACCENTS=["","accentunder","accent"],s);function s(){return null!==o&&o.apply(this,arguments)||this}e.MmlMunderover=r;i(u,l=r),Object.defineProperty(u.prototype,"kind",{get:function(){return"munder"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),u.defaults=a({},r.defaults);var l,c=u;function u(){return null!==l&&l.apply(this,arguments)||this}e.MmlMunder=c;i(h,p=r),Object.defineProperty(h.prototype,"kind",{get:function(){return"mover"},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"arity",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"over",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"under",{get:function(){return 2},enumerable:!1,configurable:!0}),h.defaults=a({},r.defaults),h.ACCENTS=["","accent","accentunder"];var p,c=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.MmlMover=c},9102:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlAnnotation=e.MmlAnnotationXML=e.MmlSemantics=void 0,r(9007)),s=(o=r.AbstractMmlBaseNode,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"semantics"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arity",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"notParent",{get:function(){return!0},enumerable:!1,configurable:!0}),l.defaults=a(a({},r.AbstractMmlBaseNode.defaults),{definitionUrl:null,encoding:null}),l);function l(){return null!==o&&o.apply(this,arguments)||this}e.MmlSemantics=s;c=r.AbstractMmlNode,i(u,c),Object.defineProperty(u.prototype,"kind",{get:function(){return"annotation-xml"},enumerable:!1,configurable:!0}),u.prototype.setChildInheritedAttributes=function(){},u.defaults=a(a({},r.AbstractMmlNode.defaults),{definitionUrl:null,encoding:null,cd:"mathmlkeys",name:"",src:null});var c,s=u;function u(){return null!==c&&c.apply(this,arguments)||this}e.MmlAnnotationXML=s;i(h,p=s),Object.defineProperty(h.prototype,"kind",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),h.defaults=a({},s.defaults);var p,r=h;function h(){var t=null!==p&&p.apply(this,arguments)||this;return t.properties={isChars:!0},t}e.MmlAnnotation=r},6325:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlVisitor=void 0,r(3909)),r=(o=r(8823).AbstractVisitor,i(s,o),s.prototype.visitTextNode=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r]},s.prototype.visitXMLNode=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r]},s);function s(t){return t=(t=void 0===t?null:t)||new a.MmlFactory,o.call(this,t)||this}e.MmlVisitor=r},4082:function(t,s,e){var l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=(Object.defineProperty(s,"__esModule",{value:!0}),s.OPTABLE=s.MMLSPACING=s.getRange=s.RANGES=s.MO=s.OPDEF=void 0,e(9007));function r(t,e,r,n){return[t,e,r=void 0===r?o.TEXCLASS.BIN:r,n=void 0===n?null:n]}s.OPDEF=r,s.MO={ORD:r(0,0,o.TEXCLASS.ORD),ORD11:r(1,1,o.TEXCLASS.ORD),ORD21:r(2,1,o.TEXCLASS.ORD),ORD02:r(0,2,o.TEXCLASS.ORD),ORD55:r(5,5,o.TEXCLASS.ORD),NONE:r(0,0,o.TEXCLASS.NONE),OP:r(1,2,o.TEXCLASS.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),OPFIXED:r(1,2,o.TEXCLASS.OP,{largeop:!0,movablelimits:!0}),INTEGRAL:r(0,1,o.TEXCLASS.OP,{largeop:!0,symmetric:!0}),INTEGRAL2:r(1,2,o.TEXCLASS.OP,{largeop:!0,symmetric:!0}),BIN3:r(3,3,o.TEXCLASS.BIN),BIN4:r(4,4,o.TEXCLASS.BIN),BIN01:r(0,1,o.TEXCLASS.BIN),BIN5:r(5,5,o.TEXCLASS.BIN),TALLBIN:r(4,4,o.TEXCLASS.BIN,{stretchy:!0}),BINOP:r(4,4,o.TEXCLASS.BIN,{largeop:!0,movablelimits:!0}),REL:r(5,5,o.TEXCLASS.REL),REL1:r(1,1,o.TEXCLASS.REL,{stretchy:!0}),REL4:r(4,4,o.TEXCLASS.REL),RELSTRETCH:r(5,5,o.TEXCLASS.REL,{stretchy:!0}),RELACCENT:r(5,5,o.TEXCLASS.REL,{accent:!0}),WIDEREL:r(5,5,o.TEXCLASS.REL,{accent:!0,stretchy:!0}),OPEN:r(0,0,o.TEXCLASS.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:r(0,0,o.TEXCLASS.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INNER:r(0,0,o.TEXCLASS.INNER),PUNCT:r(0,3,o.TEXCLASS.PUNCT),ACCENT:r(0,0,o.TEXCLASS.ORD,{accent:!0}),WIDEACCENT:r(0,0,o.TEXCLASS.ORD,{accent:!0,stretchy:!0})},s.RANGES=[[32,127,o.TEXCLASS.REL,"mo"],[160,191,o.TEXCLASS.ORD,"mo"],[192,591,o.TEXCLASS.ORD,"mi"],[688,879,o.TEXCLASS.ORD,"mo"],[880,6688,o.TEXCLASS.ORD,"mi"],[6832,6911,o.TEXCLASS.ORD,"mo"],[6912,7615,o.TEXCLASS.ORD,"mi"],[7616,7679,o.TEXCLASS.ORD,"mo"],[7680,8191,o.TEXCLASS.ORD,"mi"],[8192,8303,o.TEXCLASS.ORD,"mo"],[8304,8351,o.TEXCLASS.ORD,"mo"],[8448,8527,o.TEXCLASS.ORD,"mi"],[8528,8591,o.TEXCLASS.ORD,"mn"],[8592,8703,o.TEXCLASS.REL,"mo"],[8704,8959,o.TEXCLASS.BIN,"mo"],[8960,9215,o.TEXCLASS.ORD,"mo"],[9312,9471,o.TEXCLASS.ORD,"mn"],[9472,10223,o.TEXCLASS.ORD,"mo"],[10224,10239,o.TEXCLASS.REL,"mo"],[10240,10495,o.TEXCLASS.ORD,"mtext"],[10496,10623,o.TEXCLASS.REL,"mo"],[10624,10751,o.TEXCLASS.ORD,"mo"],[10752,11007,o.TEXCLASS.BIN,"mo"],[11008,11055,o.TEXCLASS.ORD,"mo"],[11056,11087,o.TEXCLASS.REL,"mo"],[11088,11263,o.TEXCLASS.ORD,"mo"],[11264,11744,o.TEXCLASS.ORD,"mi"],[11776,11903,o.TEXCLASS.ORD,"mo"],[11904,12255,o.TEXCLASS.ORD,"mi","normal"],[12272,12351,o.TEXCLASS.ORD,"mo"],[12352,42143,o.TEXCLASS.ORD,"mi","normal"],[42192,43055,o.TEXCLASS.ORD,"mi"],[43056,43071,o.TEXCLASS.ORD,"mn"],[43072,55295,o.TEXCLASS.ORD,"mi"],[63744,64255,o.TEXCLASS.ORD,"mi","normal"],[64256,65023,o.TEXCLASS.ORD,"mi"],[65024,65135,o.TEXCLASS.ORD,"mo"],[65136,65791,o.TEXCLASS.ORD,"mi"],[65792,65935,o.TEXCLASS.ORD,"mn"],[65936,74751,o.TEXCLASS.ORD,"mi","normal"],[74752,74879,o.TEXCLASS.ORD,"mn"],[74880,113823,o.TEXCLASS.ORD,"mi","normal"],[113824,119391,o.TEXCLASS.ORD,"mo"],[119648,119679,o.TEXCLASS.ORD,"mn"],[119808,120781,o.TEXCLASS.ORD,"mi"],[120782,120831,o.TEXCLASS.ORD,"mn"],[122624,129023,o.TEXCLASS.ORD,"mo"],[129024,129279,o.TEXCLASS.REL,"mo"],[129280,129535,o.TEXCLASS.ORD,"mo"],[131072,195103,o.TEXCLASS.ORD,"mi","normnal"]],s.getRange=function(t){var e,r,n=t.codePointAt(0);try{for(var o=l(s.RANGES),i=o.next();!i.done;i=o.next()){var a=i.value;if(n<=a[1]){if(n>=a[0])return a;break}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return null},s.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]],s.OPTABLE={prefix:{"(":s.MO.OPEN,"+":s.MO.BIN01,"-":s.MO.BIN01,"[":s.MO.OPEN,"{":s.MO.OPEN,"|":s.MO.OPEN,"||":[0,0,o.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¬":s.MO.ORD21,"±":s.MO.BIN01,"‖":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"‘":[0,0,o.TEXCLASS.OPEN,{fence:!0}],"“":[0,0,o.TEXCLASS.OPEN,{fence:!0}],"ⅅ":s.MO.ORD21,"ⅆ":r(2,0,o.TEXCLASS.ORD),"∀":s.MO.ORD21,"∂":s.MO.ORD21,"∃":s.MO.ORD21,"∄":s.MO.ORD21,"∇":s.MO.ORD21,"∏":s.MO.OP,"∐":s.MO.OP,"∑":s.MO.OP,"−":s.MO.BIN01,"∓":s.MO.BIN01,"√":[1,1,o.TEXCLASS.ORD,{stretchy:!0}],"∛":s.MO.ORD11,"∜":s.MO.ORD11,"∠":s.MO.ORD,"∡":s.MO.ORD,"∢":s.MO.ORD,"∫":s.MO.INTEGRAL,"∬":s.MO.INTEGRAL,"∭":s.MO.INTEGRAL,"∮":s.MO.INTEGRAL,"∯":s.MO.INTEGRAL,"∰":s.MO.INTEGRAL,"∱":s.MO.INTEGRAL,"∲":s.MO.INTEGRAL,"∳":s.MO.INTEGRAL,"⋀":s.MO.OP,"⋁":s.MO.OP,"⋂":s.MO.OP,"⋃":s.MO.OP,"⌈":s.MO.OPEN,"⌊":s.MO.OPEN,"〈":s.MO.OPEN,"❲":s.MO.OPEN,"⟦":s.MO.OPEN,"⟨":s.MO.OPEN,"⟪":s.MO.OPEN,"⟬":s.MO.OPEN,"⟮":s.MO.OPEN,"⦀":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦃":s.MO.OPEN,"⦅":s.MO.OPEN,"⦇":s.MO.OPEN,"⦉":s.MO.OPEN,"⦋":s.MO.OPEN,"⦍":s.MO.OPEN,"⦏":s.MO.OPEN,"⦑":s.MO.OPEN,"⦓":s.MO.OPEN,"⦕":s.MO.OPEN,"⦗":s.MO.OPEN,"⧼":s.MO.OPEN,"⨀":s.MO.OP,"⨁":s.MO.OP,"⨂":s.MO.OP,"⨃":s.MO.OP,"⨄":s.MO.OP,"⨅":s.MO.OP,"⨆":s.MO.OP,"⨇":s.MO.OP,"⨈":s.MO.OP,"⨉":s.MO.OP,"⨊":s.MO.OP,"⨋":s.MO.INTEGRAL2,"⨌":s.MO.INTEGRAL,"⨍":s.MO.INTEGRAL2,"⨎":s.MO.INTEGRAL2,"⨏":s.MO.INTEGRAL2,"⨐":s.MO.OP,"⨑":s.MO.OP,"⨒":s.MO.OP,"⨓":s.MO.OP,"⨔":s.MO.OP,"⨕":s.MO.INTEGRAL2,"⨖":s.MO.INTEGRAL2,"⨗":s.MO.INTEGRAL2,"⨘":s.MO.INTEGRAL2,"⨙":s.MO.INTEGRAL2,"⨚":s.MO.INTEGRAL2,"⨛":s.MO.INTEGRAL2,"⨜":s.MO.INTEGRAL2,"⫼":s.MO.OP,"⫿":s.MO.OP},postfix:{"!!":r(1,0),"!":[1,0,o.TEXCLASS.CLOSE,null],'"':s.MO.ACCENT,"&":s.MO.ORD,")":s.MO.CLOSE,"++":r(0,0),"--":r(0,0),"..":r(0,0),"...":s.MO.ORD,"'":s.MO.ACCENT,"]":s.MO.CLOSE,"^":s.MO.WIDEACCENT,_:s.MO.WIDEACCENT,"`":s.MO.ACCENT,"|":s.MO.CLOSE,"}":s.MO.CLOSE,"~":s.MO.WIDEACCENT,"||":[0,0,o.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"¨":s.MO.ACCENT,"ª":s.MO.ACCENT,"¯":s.MO.WIDEACCENT,"°":s.MO.ORD,"²":s.MO.ACCENT,"³":s.MO.ACCENT,"´":s.MO.ACCENT,"¸":s.MO.ACCENT,"¹":s.MO.ACCENT,"º":s.MO.ACCENT,"ˆ":s.MO.WIDEACCENT,"ˇ":s.MO.WIDEACCENT,"ˉ":s.MO.WIDEACCENT,"ˊ":s.MO.ACCENT,"ˋ":s.MO.ACCENT,"ˍ":s.MO.WIDEACCENT,"˘":s.MO.ACCENT,"˙":s.MO.ACCENT,"˚":s.MO.ACCENT,"˜":s.MO.WIDEACCENT,"˝":s.MO.ACCENT,"˷":s.MO.WIDEACCENT,"̂":s.MO.WIDEACCENT,"̑":s.MO.ACCENT,"϶":s.MO.REL,"‖":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"’":[0,0,o.TEXCLASS.CLOSE,{fence:!0}],"‚":s.MO.ACCENT,"‛":s.MO.ACCENT,"”":[0,0,o.TEXCLASS.CLOSE,{fence:!0}],"„":s.MO.ACCENT,"‟":s.MO.ACCENT,"′":s.MO.ORD,"″":s.MO.ACCENT,"‴":s.MO.ACCENT,"‵":s.MO.ACCENT,"‶":s.MO.ACCENT,"‷":s.MO.ACCENT,"‾":s.MO.WIDEACCENT,"⁗":s.MO.ACCENT,"⃛":s.MO.ACCENT,"⃜":s.MO.ACCENT,"⌉":s.MO.CLOSE,"⌋":s.MO.CLOSE,"〉":s.MO.CLOSE,"⎴":s.MO.WIDEACCENT,"⎵":s.MO.WIDEACCENT,"⏜":s.MO.WIDEACCENT,"⏝":s.MO.WIDEACCENT,"⏞":s.MO.WIDEACCENT,"⏟":s.MO.WIDEACCENT,"⏠":s.MO.WIDEACCENT,"⏡":s.MO.WIDEACCENT,"■":s.MO.BIN3,"□":s.MO.BIN3,"▪":s.MO.BIN3,"▫":s.MO.BIN3,"▭":s.MO.BIN3,"▮":s.MO.BIN3,"▯":s.MO.BIN3,"▰":s.MO.BIN3,"▱":s.MO.BIN3,"▲":s.MO.BIN4,"▴":s.MO.BIN4,"▶":s.MO.BIN4,"▷":s.MO.BIN4,"▸":s.MO.BIN4,"▼":s.MO.BIN4,"▾":s.MO.BIN4,"◀":s.MO.BIN4,"◁":s.MO.BIN4,"◂":s.MO.BIN4,"◄":s.MO.BIN4,"◅":s.MO.BIN4,"◆":s.MO.BIN4,"◇":s.MO.BIN4,"◈":s.MO.BIN4,"◉":s.MO.BIN4,"◌":s.MO.BIN4,"◍":s.MO.BIN4,"◎":s.MO.BIN4,"●":s.MO.BIN4,"◖":s.MO.BIN4,"◗":s.MO.BIN4,"◦":s.MO.BIN4,"♭":s.MO.ORD02,"♮":s.MO.ORD02,"♯":s.MO.ORD02,"❳":s.MO.CLOSE,"⟧":s.MO.CLOSE,"⟩":s.MO.CLOSE,"⟫":s.MO.CLOSE,"⟭":s.MO.CLOSE,"⟯":s.MO.CLOSE,"⦀":[0,0,o.TEXCLASS.ORD,{fence:!0,stretchy:!0}],"⦄":s.MO.CLOSE,"⦆":s.MO.CLOSE,"⦈":s.MO.CLOSE,"⦊":s.MO.CLOSE,"⦌":s.MO.CLOSE,"⦎":s.MO.CLOSE,"⦐":s.MO.CLOSE,"⦒":s.MO.CLOSE,"⦔":s.MO.CLOSE,"⦖":s.MO.CLOSE,"⦘":s.MO.CLOSE,"⧽":s.MO.CLOSE},infix:{"!=":s.MO.BIN4,"#":s.MO.ORD,$:s.MO.ORD,"%":[3,3,o.TEXCLASS.ORD,null],"&&":s.MO.BIN4,"":s.MO.ORD,"*":s.MO.BIN3,"**":r(1,1),"*=":s.MO.BIN4,"+":s.MO.BIN4,"+=":s.MO.BIN4,",":[0,3,o.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"-":s.MO.BIN4,"-=":s.MO.BIN4,"->":s.MO.BIN5,".":[0,3,o.TEXCLASS.PUNCT,{separator:!0}],"/":s.MO.ORD11,"//":r(1,1),"/=":s.MO.BIN4,":":[1,2,o.TEXCLASS.REL,null],":=":s.MO.BIN4,";":[0,3,o.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:!0}],"<":s.MO.REL,"<=":s.MO.BIN5,"<>":r(1,1),"=":s.MO.REL,"==":s.MO.BIN4,">":s.MO.REL,">=":s.MO.BIN5,"?":[1,1,o.TEXCLASS.CLOSE,null],"@":s.MO.ORD11,"\\":s.MO.ORD,"^":s.MO.ORD11,_:s.MO.ORD11,"|":[2,2,o.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"||":[2,2,o.TEXCLASS.BIN,{fence:!0,stretchy:!0,symmetric:!0}],"|||":[2,2,o.TEXCLASS.ORD,{fence:!0,stretchy:!0,symmetric:!0}],"±":s.MO.BIN4,"·":s.MO.BIN4,"×":s.MO.BIN4,"÷":s.MO.BIN4,"ʹ":s.MO.ORD,"̀":s.MO.ACCENT,"́":s.MO.ACCENT,"̃":s.MO.WIDEACCENT,"̄":s.MO.ACCENT,"̆":s.MO.ACCENT,"̇":s.MO.ACCENT,"̈":s.MO.ACCENT,"̌":s.MO.ACCENT,"̲":s.MO.WIDEACCENT,"̸":s.MO.REL4,"―":[0,0,o.TEXCLASS.ORD,{stretchy:!0}],"‗":[0,0,o.TEXCLASS.ORD,{stretchy:!0}],"†":s.MO.BIN3,"‡":s.MO.BIN3,"•":s.MO.BIN4,"…":s.MO.INNER,"⁃":s.MO.BIN4,"⁄":s.MO.TALLBIN,"⁡":s.MO.NONE,"⁢":s.MO.NONE,"⁣":[0,0,o.TEXCLASS.NONE,{linebreakstyle:"after",separator:!0}],"⁤":s.MO.NONE,"⃗":s.MO.ACCENT,"ℑ":s.MO.ORD,"ℓ":s.MO.ORD,"℘":s.MO.ORD,"ℜ":s.MO.ORD,"←":s.MO.WIDEREL,"↑":s.MO.RELSTRETCH,"→":s.MO.WIDEREL,"↓":s.MO.RELSTRETCH,"↔":s.MO.WIDEREL,"↕":s.MO.RELSTRETCH,"↖":s.MO.RELSTRETCH,"↗":s.MO.RELSTRETCH,"↘":s.MO.RELSTRETCH,"↙":s.MO.RELSTRETCH,"↚":s.MO.RELACCENT,"↛":s.MO.RELACCENT,"↜":s.MO.WIDEREL,"↝":s.MO.WIDEREL,"↞":s.MO.WIDEREL,"↟":s.MO.WIDEREL,"↠":s.MO.WIDEREL,"↡":s.MO.RELSTRETCH,"↢":s.MO.WIDEREL,"↣":s.MO.WIDEREL,"↤":s.MO.WIDEREL,"↥":s.MO.RELSTRETCH,"↦":s.MO.WIDEREL,"↧":s.MO.RELSTRETCH,"↨":s.MO.RELSTRETCH,"↩":s.MO.WIDEREL,"↪":s.MO.WIDEREL,"↫":s.MO.WIDEREL,"↬":s.MO.WIDEREL,"↭":s.MO.WIDEREL,"↮":s.MO.RELACCENT,"↯":s.MO.RELSTRETCH,"↰":s.MO.RELSTRETCH,"↱":s.MO.RELSTRETCH,"↲":s.MO.RELSTRETCH,"↳":s.MO.RELSTRETCH,"↴":s.MO.RELSTRETCH,"↵":s.MO.RELSTRETCH,"↶":s.MO.RELACCENT,"↷":s.MO.RELACCENT,"↸":s.MO.REL,"↹":s.MO.WIDEREL,"↺":s.MO.REL,"↻":s.MO.REL,"↼":s.MO.WIDEREL,"↽":s.MO.WIDEREL,"↾":s.MO.RELSTRETCH,"↿":s.MO.RELSTRETCH,"⇀":s.MO.WIDEREL,"⇁":s.MO.WIDEREL,"⇂":s.MO.RELSTRETCH,"⇃":s.MO.RELSTRETCH,"⇄":s.MO.WIDEREL,"⇅":s.MO.RELSTRETCH,"⇆":s.MO.WIDEREL,"⇇":s.MO.WIDEREL,"⇈":s.MO.RELSTRETCH,"⇉":s.MO.WIDEREL,"⇊":s.MO.RELSTRETCH,"⇋":s.MO.WIDEREL,"⇌":s.MO.WIDEREL,"⇍":s.MO.RELACCENT,"⇎":s.MO.RELACCENT,"⇏":s.MO.RELACCENT,"⇐":s.MO.WIDEREL,"⇑":s.MO.RELSTRETCH,"⇒":s.MO.WIDEREL,"⇓":s.MO.RELSTRETCH,"⇔":s.MO.WIDEREL,"⇕":s.MO.RELSTRETCH,"⇖":s.MO.RELSTRETCH,"⇗":s.MO.RELSTRETCH,"⇘":s.MO.RELSTRETCH,"⇙":s.MO.RELSTRETCH,"⇚":s.MO.WIDEREL,"⇛":s.MO.WIDEREL,"⇜":s.MO.WIDEREL,"⇝":s.MO.WIDEREL,"⇞":s.MO.REL,"⇟":s.MO.REL,"⇠":s.MO.WIDEREL,"⇡":s.MO.RELSTRETCH,"⇢":s.MO.WIDEREL,"⇣":s.MO.RELSTRETCH,"⇤":s.MO.WIDEREL,"⇥":s.MO.WIDEREL,"⇦":s.MO.WIDEREL,"⇧":s.MO.RELSTRETCH,"⇨":s.MO.WIDEREL,"⇩":s.MO.RELSTRETCH,"⇪":s.MO.RELSTRETCH,"⇫":s.MO.RELSTRETCH,"⇬":s.MO.RELSTRETCH,"⇭":s.MO.RELSTRETCH,"⇮":s.MO.RELSTRETCH,"⇯":s.MO.RELSTRETCH,"⇰":s.MO.WIDEREL,"⇱":s.MO.REL,"⇲":s.MO.REL,"⇳":s.MO.RELSTRETCH,"⇴":s.MO.RELACCENT,"⇵":s.MO.RELSTRETCH,"⇶":s.MO.WIDEREL,"⇷":s.MO.RELACCENT,"⇸":s.MO.RELACCENT,"⇹":s.MO.RELACCENT,"⇺":s.MO.RELACCENT,"⇻":s.MO.RELACCENT,"⇼":s.MO.RELACCENT,"⇽":s.MO.WIDEREL,"⇾":s.MO.WIDEREL,"⇿":s.MO.WIDEREL,"∁":r(1,2,o.TEXCLASS.ORD),"∅":s.MO.ORD,"∆":s.MO.BIN3,"∈":s.MO.REL,"∉":s.MO.REL,"∊":s.MO.REL,"∋":s.MO.REL,"∌":s.MO.REL,"∍":s.MO.REL,"∎":s.MO.BIN3,"−":s.MO.BIN4,"∓":s.MO.BIN4,"∔":s.MO.BIN4,"∕":s.MO.TALLBIN,"∖":s.MO.BIN4,"∗":s.MO.BIN4,"∘":s.MO.BIN4,"∙":s.MO.BIN4,"∝":s.MO.REL,"∞":s.MO.ORD,"∟":s.MO.REL,"∣":s.MO.REL,"∤":s.MO.REL,"∥":s.MO.REL,"∦":s.MO.REL,"∧":s.MO.BIN4,"∨":s.MO.BIN4,"∩":s.MO.BIN4,"∪":s.MO.BIN4,"∴":s.MO.REL,"∵":s.MO.REL,"∶":s.MO.REL,"∷":s.MO.REL,"∸":s.MO.BIN4,"∹":s.MO.REL,"∺":s.MO.BIN4,"∻":s.MO.REL,"∼":s.MO.REL,"∽":s.MO.REL,"∽̱":s.MO.BIN3,"∾":s.MO.REL,"∿":s.MO.BIN3,"≀":s.MO.BIN4,"≁":s.MO.REL,"≂":s.MO.REL,"≂̸":s.MO.REL,"≃":s.MO.REL,"≄":s.MO.REL,"≅":s.MO.REL,"≆":s.MO.REL,"≇":s.MO.REL,"≈":s.MO.REL,"≉":s.MO.REL,"≊":s.MO.REL,"≋":s.MO.REL,"≌":s.MO.REL,"≍":s.MO.REL,"≎":s.MO.REL,"≎̸":s.MO.REL,"≏":s.MO.REL,"≏̸":s.MO.REL,"≐":s.MO.REL,"≑":s.MO.REL,"≒":s.MO.REL,"≓":s.MO.REL,"≔":s.MO.REL,"≕":s.MO.REL,"≖":s.MO.REL,"≗":s.MO.REL,"≘":s.MO.REL,"≙":s.MO.REL,"≚":s.MO.REL,"≛":s.MO.REL,"≜":s.MO.REL,"≝":s.MO.REL,"≞":s.MO.REL,"≟":s.MO.REL,"≠":s.MO.REL,"≡":s.MO.REL,"≢":s.MO.REL,"≣":s.MO.REL,"≤":s.MO.REL,"≥":s.MO.REL,"≦":s.MO.REL,"≦̸":s.MO.REL,"≧":s.MO.REL,"≨":s.MO.REL,"≩":s.MO.REL,"≪":s.MO.REL,"≪̸":s.MO.REL,"≫":s.MO.REL,"≫̸":s.MO.REL,"≬":s.MO.REL,"≭":s.MO.REL,"≮":s.MO.REL,"≯":s.MO.REL,"≰":s.MO.REL,"≱":s.MO.REL,"≲":s.MO.REL,"≳":s.MO.REL,"≴":s.MO.REL,"≵":s.MO.REL,"≶":s.MO.REL,"≷":s.MO.REL,"≸":s.MO.REL,"≹":s.MO.REL,"≺":s.MO.REL,"≻":s.MO.REL,"≼":s.MO.REL,"≽":s.MO.REL,"≾":s.MO.REL,"≿":s.MO.REL,"≿̸":s.MO.REL,"⊀":s.MO.REL,"⊁":s.MO.REL,"⊂":s.MO.REL,"⊂⃒":s.MO.REL,"⊃":s.MO.REL,"⊃⃒":s.MO.REL,"⊄":s.MO.REL,"⊅":s.MO.REL,"⊆":s.MO.REL,"⊇":s.MO.REL,"⊈":s.MO.REL,"⊉":s.MO.REL,"⊊":s.MO.REL,"⊋":s.MO.REL,"⊌":s.MO.BIN4,"⊍":s.MO.BIN4,"⊎":s.MO.BIN4,"⊏":s.MO.REL,"⊏̸":s.MO.REL,"⊐":s.MO.REL,"⊐̸":s.MO.REL,"⊑":s.MO.REL,"⊒":s.MO.REL,"⊓":s.MO.BIN4,"⊔":s.MO.BIN4,"⊕":s.MO.BIN4,"⊖":s.MO.BIN4,"⊗":s.MO.BIN4,"⊘":s.MO.BIN4,"⊙":s.MO.BIN4,"⊚":s.MO.BIN4,"⊛":s.MO.BIN4,"⊜":s.MO.BIN4,"⊝":s.MO.BIN4,"⊞":s.MO.BIN4,"⊟":s.MO.BIN4,"⊠":s.MO.BIN4,"⊡":s.MO.BIN4,"⊢":s.MO.REL,"⊣":s.MO.REL,"⊤":s.MO.ORD55,"⊥":s.MO.REL,"⊦":s.MO.REL,"⊧":s.MO.REL,"⊨":s.MO.REL,"⊩":s.MO.REL,"⊪":s.MO.REL,"⊫":s.MO.REL,"⊬":s.MO.REL,"⊭":s.MO.REL,"⊮":s.MO.REL,"⊯":s.MO.REL,"⊰":s.MO.REL,"⊱":s.MO.REL,"⊲":s.MO.REL,"⊳":s.MO.REL,"⊴":s.MO.REL,"⊵":s.MO.REL,"⊶":s.MO.REL,"⊷":s.MO.REL,"⊸":s.MO.REL,"⊹":s.MO.REL,"⊺":s.MO.BIN4,"⊻":s.MO.BIN4,"⊼":s.MO.BIN4,"⊽":s.MO.BIN4,"⊾":s.MO.BIN3,"⊿":s.MO.BIN3,"⋄":s.MO.BIN4,"⋅":s.MO.BIN4,"⋆":s.MO.BIN4,"⋇":s.MO.BIN4,"⋈":s.MO.REL,"⋉":s.MO.BIN4,"⋊":s.MO.BIN4,"⋋":s.MO.BIN4,"⋌":s.MO.BIN4,"⋍":s.MO.REL,"⋎":s.MO.BIN4,"⋏":s.MO.BIN4,"⋐":s.MO.REL,"⋑":s.MO.REL,"⋒":s.MO.BIN4,"⋓":s.MO.BIN4,"⋔":s.MO.REL,"⋕":s.MO.REL,"⋖":s.MO.REL,"⋗":s.MO.REL,"⋘":s.MO.REL,"⋙":s.MO.REL,"⋚":s.MO.REL,"⋛":s.MO.REL,"⋜":s.MO.REL,"⋝":s.MO.REL,"⋞":s.MO.REL,"⋟":s.MO.REL,"⋠":s.MO.REL,"⋡":s.MO.REL,"⋢":s.MO.REL,"⋣":s.MO.REL,"⋤":s.MO.REL,"⋥":s.MO.REL,"⋦":s.MO.REL,"⋧":s.MO.REL,"⋨":s.MO.REL,"⋩":s.MO.REL,"⋪":s.MO.REL,"⋫":s.MO.REL,"⋬":s.MO.REL,"⋭":s.MO.REL,"⋮":s.MO.ORD55,"⋯":s.MO.INNER,"⋰":s.MO.REL,"⋱":[5,5,o.TEXCLASS.INNER,null],"⋲":s.MO.REL,"⋳":s.MO.REL,"⋴":s.MO.REL,"⋵":s.MO.REL,"⋶":s.MO.REL,"⋷":s.MO.REL,"⋸":s.MO.REL,"⋹":s.MO.REL,"⋺":s.MO.REL,"⋻":s.MO.REL,"⋼":s.MO.REL,"⋽":s.MO.REL,"⋾":s.MO.REL,"⋿":s.MO.REL,"⌅":s.MO.BIN3,"⌆":s.MO.BIN3,"⌢":s.MO.REL4,"⌣":s.MO.REL4,"〈":s.MO.OPEN,"〉":s.MO.CLOSE,"⎪":s.MO.ORD,"⎯":[0,0,o.TEXCLASS.ORD,{stretchy:!0}],"⎰":s.MO.OPEN,"⎱":s.MO.CLOSE,"─":s.MO.ORD,"△":s.MO.BIN4,"▵":s.MO.BIN4,"▹":s.MO.BIN4,"▽":s.MO.BIN4,"▿":s.MO.BIN4,"◃":s.MO.BIN4,"◯":s.MO.BIN3,"♠":s.MO.ORD,"♡":s.MO.ORD,"♢":s.MO.ORD,"♣":s.MO.ORD,"❘":s.MO.REL,"⟰":s.MO.RELSTRETCH,"⟱":s.MO.RELSTRETCH,"⟵":s.MO.WIDEREL,"⟶":s.MO.WIDEREL,"⟷":s.MO.WIDEREL,"⟸":s.MO.WIDEREL,"⟹":s.MO.WIDEREL,"⟺":s.MO.WIDEREL,"⟻":s.MO.WIDEREL,"⟼":s.MO.WIDEREL,"⟽":s.MO.WIDEREL,"⟾":s.MO.WIDEREL,"⟿":s.MO.WIDEREL,"⤀":s.MO.RELACCENT,"⤁":s.MO.RELACCENT,"⤂":s.MO.RELACCENT,"⤃":s.MO.RELACCENT,"⤄":s.MO.RELACCENT,"⤅":s.MO.RELACCENT,"⤆":s.MO.RELACCENT,"⤇":s.MO.RELACCENT,"⤈":s.MO.REL,"⤉":s.MO.REL,"⤊":s.MO.RELSTRETCH,"⤋":s.MO.RELSTRETCH,"⤌":s.MO.WIDEREL,"⤍":s.MO.WIDEREL,"⤎":s.MO.WIDEREL,"⤏":s.MO.WIDEREL,"⤐":s.MO.WIDEREL,"⤑":s.MO.RELACCENT,"⤒":s.MO.RELSTRETCH,"⤓":s.MO.RELSTRETCH,"⤔":s.MO.RELACCENT,"⤕":s.MO.RELACCENT,"⤖":s.MO.RELACCENT,"⤗":s.MO.RELACCENT,"⤘":s.MO.RELACCENT,"⤙":s.MO.RELACCENT,"⤚":s.MO.RELACCENT,"⤛":s.MO.RELACCENT,"⤜":s.MO.RELACCENT,"⤝":s.MO.RELACCENT,"⤞":s.MO.RELACCENT,"⤟":s.MO.RELACCENT,"⤠":s.MO.RELACCENT,"⤡":s.MO.RELSTRETCH,"⤢":s.MO.RELSTRETCH,"⤣":s.MO.REL,"⤤":s.MO.REL,"⤥":s.MO.REL,"⤦":s.MO.REL,"⤧":s.MO.REL,"⤨":s.MO.REL,"⤩":s.MO.REL,"⤪":s.MO.REL,"⤫":s.MO.REL,"⤬":s.MO.REL,"⤭":s.MO.REL,"⤮":s.MO.REL,"⤯":s.MO.REL,"⤰":s.MO.REL,"⤱":s.MO.REL,"⤲":s.MO.REL,"⤳":s.MO.RELACCENT,"⤴":s.MO.REL,"⤵":s.MO.REL,"⤶":s.MO.REL,"⤷":s.MO.REL,"⤸":s.MO.REL,"⤹":s.MO.REL,"⤺":s.MO.RELACCENT,"⤻":s.MO.RELACCENT,"⤼":s.MO.RELACCENT,"⤽":s.MO.RELACCENT,"⤾":s.MO.REL,"⤿":s.MO.REL,"⥀":s.MO.REL,"⥁":s.MO.REL,"⥂":s.MO.RELACCENT,"⥃":s.MO.RELACCENT,"⥄":s.MO.RELACCENT,"⥅":s.MO.RELACCENT,"⥆":s.MO.RELACCENT,"⥇":s.MO.RELACCENT,"⥈":s.MO.RELACCENT,"⥉":s.MO.REL,"⥊":s.MO.RELACCENT,"⥋":s.MO.RELACCENT,"⥌":s.MO.REL,"⥍":s.MO.REL,"⥎":s.MO.WIDEREL,"⥏":s.MO.RELSTRETCH,"⥐":s.MO.WIDEREL,"⥑":s.MO.RELSTRETCH,"⥒":s.MO.WIDEREL,"⥓":s.MO.WIDEREL,"⥔":s.MO.RELSTRETCH,"⥕":s.MO.RELSTRETCH,"⥖":s.MO.RELSTRETCH,"⥗":s.MO.RELSTRETCH,"⥘":s.MO.RELSTRETCH,"⥙":s.MO.RELSTRETCH,"⥚":s.MO.WIDEREL,"⥛":s.MO.WIDEREL,"⥜":s.MO.RELSTRETCH,"⥝":s.MO.RELSTRETCH,"⥞":s.MO.WIDEREL,"⥟":s.MO.WIDEREL,"⥠":s.MO.RELSTRETCH,"⥡":s.MO.RELSTRETCH,"⥢":s.MO.RELACCENT,"⥣":s.MO.REL,"⥤":s.MO.RELACCENT,"⥥":s.MO.REL,"⥦":s.MO.RELACCENT,"⥧":s.MO.RELACCENT,"⥨":s.MO.RELACCENT,"⥩":s.MO.RELACCENT,"⥪":s.MO.RELACCENT,"⥫":s.MO.RELACCENT,"⥬":s.MO.RELACCENT,"⥭":s.MO.RELACCENT,"⥮":s.MO.RELSTRETCH,"⥯":s.MO.RELSTRETCH,"⥰":s.MO.RELACCENT,"⥱":s.MO.RELACCENT,"⥲":s.MO.RELACCENT,"⥳":s.MO.RELACCENT,"⥴":s.MO.RELACCENT,"⥵":s.MO.RELACCENT,"⥶":s.MO.RELACCENT,"⥷":s.MO.RELACCENT,"⥸":s.MO.RELACCENT,"⥹":s.MO.RELACCENT,"⥺":s.MO.RELACCENT,"⥻":s.MO.RELACCENT,"⥼":s.MO.RELACCENT,"⥽":s.MO.RELACCENT,"⥾":s.MO.REL,"⥿":s.MO.REL,"⦁":s.MO.BIN3,"⦂":s.MO.BIN3,"⦙":s.MO.BIN3,"⦚":s.MO.BIN3,"⦛":s.MO.BIN3,"⦜":s.MO.BIN3,"⦝":s.MO.BIN3,"⦞":s.MO.BIN3,"⦟":s.MO.BIN3,"⦠":s.MO.BIN3,"⦡":s.MO.BIN3,"⦢":s.MO.BIN3,"⦣":s.MO.BIN3,"⦤":s.MO.BIN3,"⦥":s.MO.BIN3,"⦦":s.MO.BIN3,"⦧":s.MO.BIN3,"⦨":s.MO.BIN3,"⦩":s.MO.BIN3,"⦪":s.MO.BIN3,"⦫":s.MO.BIN3,"⦬":s.MO.BIN3,"⦭":s.MO.BIN3,"⦮":s.MO.BIN3,"⦯":s.MO.BIN3,"⦰":s.MO.BIN3,"⦱":s.MO.BIN3,"⦲":s.MO.BIN3,"⦳":s.MO.BIN3,"⦴":s.MO.BIN3,"⦵":s.MO.BIN3,"⦶":s.MO.BIN4,"⦷":s.MO.BIN4,"⦸":s.MO.BIN4,"⦹":s.MO.BIN4,"⦺":s.MO.BIN4,"⦻":s.MO.BIN4,"⦼":s.MO.BIN4,"⦽":s.MO.BIN4,"⦾":s.MO.BIN4,"⦿":s.MO.BIN4,"⧀":s.MO.REL,"⧁":s.MO.REL,"⧂":s.MO.BIN3,"⧃":s.MO.BIN3,"⧄":s.MO.BIN4,"⧅":s.MO.BIN4,"⧆":s.MO.BIN4,"⧇":s.MO.BIN4,"⧈":s.MO.BIN4,"⧉":s.MO.BIN3,"⧊":s.MO.BIN3,"⧋":s.MO.BIN3,"⧌":s.MO.BIN3,"⧍":s.MO.BIN3,"⧎":s.MO.REL,"⧏":s.MO.REL,"⧏̸":s.MO.REL,"⧐":s.MO.REL,"⧐̸":s.MO.REL,"⧑":s.MO.REL,"⧒":s.MO.REL,"⧓":s.MO.REL,"⧔":s.MO.REL,"⧕":s.MO.REL,"⧖":s.MO.BIN4,"⧗":s.MO.BIN4,"⧘":s.MO.BIN3,"⧙":s.MO.BIN3,"⧛":s.MO.BIN3,"⧜":s.MO.BIN3,"⧝":s.MO.BIN3,"⧞":s.MO.REL,"⧟":s.MO.BIN3,"⧠":s.MO.BIN3,"⧡":s.MO.REL,"⧢":s.MO.BIN4,"⧣":s.MO.REL,"⧤":s.MO.REL,"⧥":s.MO.REL,"⧦":s.MO.REL,"⧧":s.MO.BIN3,"⧨":s.MO.BIN3,"⧩":s.MO.BIN3,"⧪":s.MO.BIN3,"⧫":s.MO.BIN3,"⧬":s.MO.BIN3,"⧭":s.MO.BIN3,"⧮":s.MO.BIN3,"⧯":s.MO.BIN3,"⧰":s.MO.BIN3,"⧱":s.MO.BIN3,"⧲":s.MO.BIN3,"⧳":s.MO.BIN3,"⧴":s.MO.REL,"⧵":s.MO.BIN4,"⧶":s.MO.BIN4,"⧷":s.MO.BIN4,"⧸":s.MO.BIN3,"⧹":s.MO.BIN3,"⧺":s.MO.BIN3,"⧻":s.MO.BIN3,"⧾":s.MO.BIN4,"⧿":s.MO.BIN4,"⨝":s.MO.BIN3,"⨞":s.MO.BIN3,"⨟":s.MO.BIN3,"⨠":s.MO.BIN3,"⨡":s.MO.BIN3,"⨢":s.MO.BIN4,"⨣":s.MO.BIN4,"⨤":s.MO.BIN4,"⨥":s.MO.BIN4,"⨦":s.MO.BIN4,"⨧":s.MO.BIN4,"⨨":s.MO.BIN4,"⨩":s.MO.BIN4,"⨪":s.MO.BIN4,"⨫":s.MO.BIN4,"⨬":s.MO.BIN4,"⨭":s.MO.BIN4,"⨮":s.MO.BIN4,"⨯":s.MO.BIN4,"⨰":s.MO.BIN4,"⨱":s.MO.BIN4,"⨲":s.MO.BIN4,"⨳":s.MO.BIN4,"⨴":s.MO.BIN4,"⨵":s.MO.BIN4,"⨶":s.MO.BIN4,"⨷":s.MO.BIN4,"⨸":s.MO.BIN4,"⨹":s.MO.BIN4,"⨺":s.MO.BIN4,"⨻":s.MO.BIN4,"⨼":s.MO.BIN4,"⨽":s.MO.BIN4,"⨾":s.MO.BIN4,"⨿":s.MO.BIN4,"⩀":s.MO.BIN4,"⩁":s.MO.BIN4,"⩂":s.MO.BIN4,"⩃":s.MO.BIN4,"⩄":s.MO.BIN4,"⩅":s.MO.BIN4,"⩆":s.MO.BIN4,"⩇":s.MO.BIN4,"⩈":s.MO.BIN4,"⩉":s.MO.BIN4,"⩊":s.MO.BIN4,"⩋":s.MO.BIN4,"⩌":s.MO.BIN4,"⩍":s.MO.BIN4,"⩎":s.MO.BIN4,"⩏":s.MO.BIN4,"⩐":s.MO.BIN4,"⩑":s.MO.BIN4,"⩒":s.MO.BIN4,"⩓":s.MO.BIN4,"⩔":s.MO.BIN4,"⩕":s.MO.BIN4,"⩖":s.MO.BIN4,"⩗":s.MO.BIN4,"⩘":s.MO.BIN4,"⩙":s.MO.REL,"⩚":s.MO.BIN4,"⩛":s.MO.BIN4,"⩜":s.MO.BIN4,"⩝":s.MO.BIN4,"⩞":s.MO.BIN4,"⩟":s.MO.BIN4,"⩠":s.MO.BIN4,"⩡":s.MO.BIN4,"⩢":s.MO.BIN4,"⩣":s.MO.BIN4,"⩤":s.MO.BIN4,"⩥":s.MO.BIN4,"⩦":s.MO.REL,"⩧":s.MO.REL,"⩨":s.MO.REL,"⩩":s.MO.REL,"⩪":s.MO.REL,"⩫":s.MO.REL,"⩬":s.MO.REL,"⩭":s.MO.REL,"⩮":s.MO.REL,"⩯":s.MO.REL,"⩰":s.MO.REL,"⩱":s.MO.BIN4,"⩲":s.MO.BIN4,"⩳":s.MO.REL,"⩴":s.MO.REL,"⩵":s.MO.REL,"⩶":s.MO.REL,"⩷":s.MO.REL,"⩸":s.MO.REL,"⩹":s.MO.REL,"⩺":s.MO.REL,"⩻":s.MO.REL,"⩼":s.MO.REL,"⩽":s.MO.REL,"⩽̸":s.MO.REL,"⩾":s.MO.REL,"⩾̸":s.MO.REL,"⩿":s.MO.REL,"⪀":s.MO.REL,"⪁":s.MO.REL,"⪂":s.MO.REL,"⪃":s.MO.REL,"⪄":s.MO.REL,"⪅":s.MO.REL,"⪆":s.MO.REL,"⪇":s.MO.REL,"⪈":s.MO.REL,"⪉":s.MO.REL,"⪊":s.MO.REL,"⪋":s.MO.REL,"⪌":s.MO.REL,"⪍":s.MO.REL,"⪎":s.MO.REL,"⪏":s.MO.REL,"⪐":s.MO.REL,"⪑":s.MO.REL,"⪒":s.MO.REL,"⪓":s.MO.REL,"⪔":s.MO.REL,"⪕":s.MO.REL,"⪖":s.MO.REL,"⪗":s.MO.REL,"⪘":s.MO.REL,"⪙":s.MO.REL,"⪚":s.MO.REL,"⪛":s.MO.REL,"⪜":s.MO.REL,"⪝":s.MO.REL,"⪞":s.MO.REL,"⪟":s.MO.REL,"⪠":s.MO.REL,"⪡":s.MO.REL,"⪡̸":s.MO.REL,"⪢":s.MO.REL,"⪢̸":s.MO.REL,"⪣":s.MO.REL,"⪤":s.MO.REL,"⪥":s.MO.REL,"⪦":s.MO.REL,"⪧":s.MO.REL,"⪨":s.MO.REL,"⪩":s.MO.REL,"⪪":s.MO.REL,"⪫":s.MO.REL,"⪬":s.MO.REL,"⪭":s.MO.REL,"⪮":s.MO.REL,"⪯":s.MO.REL,"⪯̸":s.MO.REL,"⪰":s.MO.REL,"⪰̸":s.MO.REL,"⪱":s.MO.REL,"⪲":s.MO.REL,"⪳":s.MO.REL,"⪴":s.MO.REL,"⪵":s.MO.REL,"⪶":s.MO.REL,"⪷":s.MO.REL,"⪸":s.MO.REL,"⪹":s.MO.REL,"⪺":s.MO.REL,"⪻":s.MO.REL,"⪼":s.MO.REL,"⪽":s.MO.REL,"⪾":s.MO.REL,"⪿":s.MO.REL,"⫀":s.MO.REL,"⫁":s.MO.REL,"⫂":s.MO.REL,"⫃":s.MO.REL,"⫄":s.MO.REL,"⫅":s.MO.REL,"⫆":s.MO.REL,"⫇":s.MO.REL,"⫈":s.MO.REL,"⫉":s.MO.REL,"⫊":s.MO.REL,"⫋":s.MO.REL,"⫌":s.MO.REL,"⫍":s.MO.REL,"⫎":s.MO.REL,"⫏":s.MO.REL,"⫐":s.MO.REL,"⫑":s.MO.REL,"⫒":s.MO.REL,"⫓":s.MO.REL,"⫔":s.MO.REL,"⫕":s.MO.REL,"⫖":s.MO.REL,"⫗":s.MO.REL,"⫘":s.MO.REL,"⫙":s.MO.REL,"⫚":s.MO.REL,"⫛":s.MO.REL,"⫝":s.MO.REL,"⫝̸":s.MO.REL,"⫞":s.MO.REL,"⫟":s.MO.REL,"⫠":s.MO.REL,"⫡":s.MO.REL,"⫢":s.MO.REL,"⫣":s.MO.REL,"⫤":s.MO.REL,"⫥":s.MO.REL,"⫦":s.MO.REL,"⫧":s.MO.REL,"⫨":s.MO.REL,"⫩":s.MO.REL,"⫪":s.MO.REL,"⫫":s.MO.REL,"⫬":s.MO.REL,"⫭":s.MO.REL,"⫮":s.MO.REL,"⫯":s.MO.REL,"⫰":s.MO.REL,"⫱":s.MO.REL,"⫲":s.MO.REL,"⫳":s.MO.REL,"⫴":s.MO.BIN4,"⫵":s.MO.BIN4,"⫶":s.MO.BIN4,"⫷":s.MO.REL,"⫸":s.MO.REL,"⫹":s.MO.REL,"⫺":s.MO.REL,"⫻":s.MO.BIN4,"⫽":s.MO.BIN4,"⫾":s.MO.BIN3,"⭅":s.MO.RELSTRETCH,"⭆":s.MO.RELSTRETCH,"〈":s.MO.OPEN,"〉":s.MO.CLOSE,"︷":s.MO.WIDEACCENT,"︸":s.MO.WIDEACCENT}},s.OPTABLE.infix["^"]=s.MO.WIDEREL,s.OPTABLE.infix._=s.MO.WIDEREL,s.OPTABLE.infix["⫝̸"]=s.MO.REL},9259:function(t,n,e){var o,r,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)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=(Object.defineProperty(n,"__esModule",{value:!0}),n.SerializedMmlVisitor=n.toEntity=n.DATAMJX=void 0,e(6325)),l=e(9007),c=e(450),e=(n.DATAMJX="data-mjx-",n.toEntity=function(t){return"&#x"+t.codePointAt(0).toString(16).toUpperCase()+";"},r=s.MmlVisitor,i(p,r),p.prototype.visitTree=function(t){return this.visitNode(t,"")},p.prototype.visitTextNode=function(t,e){return this.quoteHTML(t.getText())},p.prototype.visitXMLNode=function(t,e){return e+t.getSerializedXML()},p.prototype.visitInferredMrowNode=function(t,e){var r,n,o=[];try{for(var i=u(t.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;o.push(this.visitNode(s,e))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o.join("\n")},p.prototype.visitTeXAtomNode=function(t,e){var r=this.childNodeMml(t,e+" ","\n");return e+"<mrow"+this.getAttributes(t)+">"+(r.match(/\S/)?"\n"+r+e:"")+"</mrow>"},p.prototype.visitAnnotationNode=function(t,e){return e+"<annotation"+this.getAttributes(t)+">"+this.childNodeMml(t,"","")+"</annotation>"},p.prototype.visitDefault=function(t,e){var r=t.kind,n=a(t.isToken||0===t.childNodes.length?["",""]:["\n",e],2),o=n[0],n=n[1],i=this.childNodeMml(t,e+" ",o);return e+"<"+r+this.getAttributes(t)+">"+(i.match(/\S/)?o+i+n:"")+"</"+r+">"},p.prototype.childNodeMml=function(t,e,r){var n,o,i="";try{for(var a=u(t.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;i+=this.visitNode(l,e)+r}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},p.prototype.getAttributes=function(t){var e,r,n=[],o=this.constructor.defaultAttributes[t.kind]||{},i=Object.assign({},o,this.getDataAttributes(t),t.attributes.getAllAttributes()),o=this.constructor.variants;i.hasOwnProperty("mathvariant")&&o.hasOwnProperty(i.mathvariant)&&(i.mathvariant=o[i.mathvariant]);try{for(var a=u(Object.keys(i)),s=a.next();!s.done;s=a.next()){var l=s.value,c=String(i[l]);void 0!==c&&n.push(l+'="'+this.quoteHTML(c)+'"')}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return n.length?" "+n.join(" "):""},p.prototype.getDataAttributes=function(t){var e,r={},n=t.attributes.getExplicit("mathvariant"),o=this.constructor.variants,o=(n&&o.hasOwnProperty(n)&&this.setDataAttribute(r,"variant",n),t.getProperty("variantForm")&&this.setDataAttribute(r,"alternate","1"),t.getProperty("pseudoscript")&&this.setDataAttribute(r,"pseudoscript","true"),!1===t.getProperty("autoOP")&&this.setDataAttribute(r,"auto-op","false"),t.getProperty("scriptalign")),n=(o&&this.setDataAttribute(r,"script-align",o),t.getProperty("texClass"));return void 0!==n&&(o=!0,(o=n===l.TEXCLASS.OP&&t.isKind("mi")?!(1<(e=t.getText()).length&&e.match(c.MmlMi.operatorName)):o)&&this.setDataAttribute(r,"texclass",n<0?"NONE":l.TEXCLASSNAMES[n])),t.getProperty("scriptlevel")&&!1===t.getProperty("useHeight")&&this.setDataAttribute(r,"smallmatrix","true"),r},p.prototype.setDataAttribute=function(t,e,r){t[n.DATAMJX+e]=r},p.prototype.quoteHTML=function(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/[\uD800-\uDBFF]./g,n.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,n.toEntity)},p.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},p.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}},p);function p(){return null!==r&&r.apply(this,arguments)||this}n.SerializedMmlVisitor=e},2975:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractOutputJax=void 0;var n=r(7233),o=r(7525);function i(t){void 0===t&&(t={}),this.adaptor=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t),this.postFilters=new o.FunctionList}Object.defineProperty(i.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:!1,configurable:!0}),i.prototype.setAdaptor=function(t){this.adaptor=t},i.prototype.initialize=function(){},i.prototype.reset=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},i.prototype.getMetrics=function(t){},i.prototype.styleSheet=function(t){return null},i.prototype.pageElements=function(t){return null},i.prototype.executeFilters=function(t,e,r,n){e={math:e,document:r,data:n};return t.execute(e),e.data},i.NAME="generic",i.OPTIONS={},e.AbstractOutputJax=i},4574:function(t,e){var a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractFactory=void 0,n.prototype.create=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return(this.node[t]||this.node[this.defaultKind]).apply(void 0,i([],o(e),!1))},n.prototype.setNodeClass=function(t,e){this.nodeMap.set(t,e);var r=this,n=this.nodeMap.get(t);this.node[t]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(n.bind.apply(n,i([void 0,r],o(t),!1)))}},n.prototype.getNodeClass=function(t){return this.nodeMap.get(t)},n.prototype.deleteNodeClass=function(t){this.nodeMap.delete(t),delete this.node[t]},n.prototype.nodeIsKind=function(t,e){return t instanceof this.getNodeClass(e)},n.prototype.getKinds=function(){return Array.from(this.nodeMap.keys())},n.defaultNodes={},n);function n(t){var e,r;void 0===t&&(t=null),this.defaultKind="unknown",this.nodeMap=new Map,this.node={},null===t&&(t=this.constructor.defaultNodes);try{for(var n=a(Object.keys(t)),o=n.next();!o.done;o=n.next()){var i=o.value;this.setNodeClass(i,t[i])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}}e.AbstractFactory=r},4596:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEmptyNode=e.AbstractNode=void 0,Object.defineProperty(i.prototype,"kind",{get:function(){return"unknown"},enumerable:!1,configurable:!0}),i.prototype.setProperty=function(t,e){this.properties[t]=e},i.prototype.getProperty=function(t){return this.properties[t]},i.prototype.getPropertyNames=function(){return Object.keys(this.properties)},i.prototype.getAllProperties=function(){return this.properties},i.prototype.removeProperty=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=l(r),i=o.next();!i.done;i=o.next()){var a=i.value;delete this.properties[a]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},i.prototype.isKind=function(t){return this.factory.nodeIsKind(this,t)},i.prototype.setChildren=function(t){var e,r;this.childNodes=[];try{for(var n=l(t),o=n.next();!o.done;o=n.next()){var i=o.value;this.appendChild(i)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},i.prototype.appendChild=function(t){return this.childNodes.push(t),t.parent=this,t},i.prototype.replaceChild=function(t,e){var r=this.childIndex(e);return null!==r&&((this.childNodes[r]=t).parent=this,e.parent=null),t},i.prototype.removeChild=function(t){var e=this.childIndex(t);return null!==e&&(this.childNodes.splice(e,1),t.parent=null),t},i.prototype.childIndex=function(t){t=this.childNodes.indexOf(t);return-1===t?null:t},i.prototype.copy=function(){var t,e,r=this.factory.create(this.kind);r.properties=a({},this.properties);try{for(var n=l(this.childNodes||[]),o=n.next();!o.done;o=n.next()){var i=o.value;i&&r.appendChild(i.copy())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},i.prototype.findNodes=function(e){var r=[];return this.walkTree(function(t){t.isKind(e)&&r.push(t)}),r},i.prototype.walkTree=function(t,e){var r,n;t(this,e);try{for(var o=l(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;a&&a.walkTree(t,e)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return e},i.prototype.toString=function(){return this.kind+"("+this.childNodes.join(",")+")"},i);function i(t,e,r){var n,o;void 0===e&&(e={}),void 0===r&&(r=[]),this.factory=t,this.parent=null,this.properties={},this.childNodes=[];try{for(var i=l(Object.keys(e)),a=i.next();!a.done;a=i.next()){var s=a.value;this.setProperty(s,e[s])}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}r.length&&this.setChildren(r)}e.AbstractNode=o;r(c,s=o),c.prototype.setChildren=function(t){},c.prototype.appendChild=function(t){return t},c.prototype.replaceChild=function(t,e){return e},c.prototype.childIndex=function(t){return null},c.prototype.walkTree=function(t,e){return t(this,e),e},c.prototype.toString=function(){return this.kind};var s,r=c;function c(){return null!==s&&s.apply(this,arguments)||this}e.AbstractEmptyNode=r},7860:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractNodeFactory=void 0,o=r(4574).AbstractFactory,i(a,o),a.prototype.create=function(t,e,r){return this.node[t](e=void 0===e?{}:e,r=void 0===r?[]:r)},a);function a(){return null!==o&&o.apply(this,arguments)||this}e.AbstractNodeFactory=r},8823:function(t,e,r){var l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},p=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractVisitor=void 0,r(4596));function s(t){var e,r;this.nodeHandlers=new Map;try{for(var n=l(t.getKinds()),o=n.next();!o.done;o=n.next()){var i=o.value,a=this[s.methodName(i)];a&&this.nodeHandlers.set(i,a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}}s.methodName=function(t){return"visit"+(t.charAt(0).toUpperCase()+t.substr(1)).replace(/[^a-z0-9_]/gi,"_")+"Node"},s.prototype.visitTree=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return this.visitNode.apply(this,u([t],c(e),!1))},s.prototype.visitNode=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=this.nodeHandlers.get(t.kind)||this.visitDefault;return n.call.apply(n,u([this,t],c(e),!1))},s.prototype.visitDefault=function(t){for(var e,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(t instanceof p.AbstractNode)try{for(var i=l(t.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;this.visitNode.apply(this,u([s],c(n),!1))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},s.prototype.setNodeHandler=function(t,e){this.nodeHandlers.set(t,e)},s.prototype.removeNodeHandler=function(t){this.nodeHandlers.delete(t)},e.AbstractVisitor=s},8912:function(t,e){function r(t,e){this.factory=t,this.node=e}Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWrapper=void 0,Object.defineProperty(r.prototype,"kind",{get:function(){return this.node.kind},enumerable:!1,configurable:!0}),r.prototype.wrap=function(t){return this.factory.wrap(t)},e.AbstractWrapper=r},3811:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWrapperFactory=void 0,o=r(4574).AbstractFactory,i(l,o),l.prototype.wrap=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return this.create.apply(this,s([t.kind,t],a(e),!1))},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.AbstractWrapperFactory=r},6272:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterHTMLHandler=void 0;var n=r(5713),o=r(3726);e.RegisterHTMLHandler=function(t){t=new o.HTMLHandler(t);return n.mathjax.handlers.register(t),t}},3683:function(t,e,r){var n,i,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},A=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLDocument=void 0,r(5722)),w=r(7233),l=r(3363),c=r(3335),u=r(5138),p=r(4474),r=(i=s.AbstractMathDocument,o(h,i),h.prototype.findPosition=function(t,e,r,n){var o,i,a=this.adaptor;try{for(var s=C(n[t]),l=s.next();!l.done;l=s.next()){var c=l.value,u=A(c,2),p=u[0],h=u[1];if(e<=h&&"#text"===a.kind(p))return{node:p,n:Math.max(e,0),delim:r};e-=h}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return{node:null,n:0,delim:r}},h.prototype.mathItem=function(t,e,r){var n=t.math,o=this.findPosition(t.n,t.start.n,t.open,r),r=this.findPosition(t.n,t.end.n,t.close,r);return new this.options.MathItem(n,e,t.display,o,r)},h.prototype.findMath=function(t){var e,r,n,o,i,a,s,l,c;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,t=(0,w.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},t);try{for(var u=C(this.adaptor.getElements(t.elements,this.document)),p=u.next();!p.done;p=u.next()){var h=p.value,d=A([null,null],2),f=d[0],m=d[1];try{n=void 0;for(var y=C(this.inputJax),g=y.next();!g.done;g=y.next()){var b=g.value,v=new this.options.MathList;if(b.processStrings){null===f&&(f=(i=A(this.domStrings.find(h),2))[0],m=i[1]);try{a=void 0;for(var _=C(b.findMath(f)),S=_.next();!S.done;S=_.next()){var x=S.value;v.push(this.mathItem(x,b,m))}}catch(t){a={error:t}}finally{try{S&&!S.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}}else try{l=void 0;for(var M=C(b.findMath(h)),O=M.next();!O.done;O=M.next()){var x=O.value,E=new this.options.MathItem(x.math,b,x.display,x.start,x.end);v.push(E)}}catch(t){l={error:t}}finally{try{O&&!O.done&&(c=M.return)&&c.call(M)}finally{if(l)throw l.error}}this.math.merge(v)}}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}this.processed.set("findMath")}return this},h.prototype.updateDocument=function(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),i.prototype.updateDocument.call(this),this.processed.set("updateDocument")),this},h.prototype.addPageElements=function(){var t=this.adaptor.body(this.document),e=this.documentPageElements();e&&this.adaptor.append(t,e)},h.prototype.addStyleSheet=function(){var t,e,r=this.documentStyleSheet(),n=this.adaptor;r&&!n.parent(r)&&(t=n.head(this.document),(e=this.findSheet(t,n.getAttribute(r,"id")))?n.replace(r,e):n.append(t,r))},h.prototype.findSheet=function(t,e){var r,n;if(e)try{for(var o=C(this.adaptor.tags(t,"style")),i=o.next();!i.done;i=o.next()){var a=i.value;if(this.adaptor.getAttribute(a,"id")===e)return a}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},h.prototype.removeFromDocument=function(t){var e,r;if(void 0===t&&(t=!1),this.processed.isSet("updateDocument"))try{for(var n=C(this.math),o=n.next();!o.done;o=n.next()){var i=o.value;i.state()>=p.STATE.INSERTED&&i.state(p.STATE.TYPESET,t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this.processed.clear("updateDocument"),this},h.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)},h.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)},h.prototype.addStyles=function(t){this.styles.push(t)},h.prototype.getStyles=function(){return this.styles},h.KIND="HTML",h.OPTIONS=a(a({},s.AbstractMathDocument.OPTIONS),{renderActions:(0,w.expandable)(a(a({},s.AbstractMathDocument.OPTIONS.renderActions),{styles:[p.STATE.INSERTED+1,"","updateStyleSheet",!1]})),MathList:c.HTMLMathList,MathItem:l.HTMLMathItem,DomStrings:null}),h);function h(t,e,r){var n=this,r=A((0,w.separateOptions)(r,u.HTMLDomStrings.OPTIONS),2),o=r[0],r=r[1];return(n=i.call(this,t,e,o)||this).domStrings=n.options.DomStrings||new u.HTMLDomStrings(r),n.domStrings.adaptor=e,n.styles=[],n}e.HTMLDocument=r},5138:function(t,e,r){var a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=(Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLDomStrings=void 0,r(7233));function o(t){void 0===t&&(t=null);var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t),this.init(),this.getPatterns()}o.prototype.init=function(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]},o.prototype.getPatterns=function(){var t=(0,n.makeArray)(this.options.skipHtmlTags),e=(0,n.makeArray)(this.options.ignoreHtmlClass),r=(0,n.makeArray)(this.options.processHtmlClass);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i"),this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+e.join("|")+")(?: |$)"),this.processHtmlClass=new RegExp("(?:^| )(?:"+r+")(?: |$)")},o.prototype.pushString=function(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string="",this.snodes=[]},o.prototype.extendString=function(t,e){this.snodes.push([t,e.length]),this.string+=e},o.prototype.handleText=function(t,e){return e||this.extendString(t,this.adaptor.value(t)),this.adaptor.next(t)},o.prototype.handleTag=function(t,e){return e||(e=this.options.includeHtmlTags[this.adaptor.kind(t)],this.extendString(t,e)),this.adaptor.next(t)},o.prototype.handleContainer=function(t,e){this.pushString();var r=this.adaptor.getAttribute(t,"class")||"",n=this.adaptor.kind(t)||"",o=this.processHtmlClass.exec(r),i=t;return!this.adaptor.firstChild(t)||this.adaptor.getAttribute(t,"data-MJX")||!o&&this.skipHtmlTags.exec(n)?i=this.adaptor.next(t):(this.adaptor.next(t)&&this.stack.push([this.adaptor.next(t),e]),i=this.adaptor.firstChild(t),e=(e||this.ignoreHtmlClass.exec(r))&&!o),[i,e]},o.prototype.handleOther=function(t,e){return this.pushString(),this.adaptor.next(t)},o.prototype.find=function(t){this.init();for(var e=this.adaptor.next(t),r=!1,n=this.options.includeHtmlTags;t&&t!==e;){var o=this.adaptor.kind(t);"#text"===o?t=this.handleText(t,r):n.hasOwnProperty(o)?t=this.handleTag(t,r):o?(t=(o=a(this.handleContainer(t,r),2))[0],r=o[1]):t=this.handleOther(t,r),!t&&this.stack.length&&(this.pushString(),t=(o=a(this.stack.pop(),2))[0],r=o[1])}this.pushString();var i=[this.strings,this.nodes];return this.init(),i},o.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],includeHtmlTags:{br:"\n",wbr:"","#comment":""},ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},e.HTMLDomStrings=o},3726:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLHandler=void 0,r(3670)),s=r(3683),r=(o=a.AbstractHandler,i(l,o),l.prototype.handlesDocument=function(t){var e=this.adaptor;if("string"==typeof t)try{t=e.parse(t,"text/html")}catch(t){}return t instanceof e.window.Document||t instanceof e.window.HTMLElement||t instanceof e.window.DocumentFragment},l.prototype.create=function(t,e){var r,n=this.adaptor;return"string"==typeof t?t=n.parse(t,"text/html"):(t instanceof n.window.HTMLElement||t instanceof n.window.DocumentFragment)&&(r=t,t=n.parse("","text/html"),n.append(n.body(t),r)),o.prototype.create.call(this,t,e)},l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.documentClass=s.HTMLDocument,t}e.HTMLHandler=r},3363:function(t,e,r){var n,i,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLMathItem=void 0,r(4474)),r=(i=a.AbstractMathItem,o(s,i),Object.defineProperty(s.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:!1,configurable:!0}),s.prototype.updateDocument=function(t){if(this.state()<a.STATE.INSERTED){if(this.inputJax.processStrings){var e=this.start.node;if(e===this.end.node)this.end.n&&this.end.n<this.adaptor.value(this.end.node).length&&this.adaptor.split(this.end.node,this.end.n),this.start.n&&(e=this.adaptor.split(this.start.node,this.start.n)),this.adaptor.replace(this.typesetRoot,e);else{for(this.start.n&&(e=this.adaptor.split(e,this.start.n));e!==this.end.node;){var r=this.adaptor.next(e);this.adaptor.remove(e),e=r}this.adaptor.insert(this.typesetRoot,e),this.end.n<this.adaptor.value(e).length&&this.adaptor.split(e,this.end.n),this.adaptor.remove(e)}}else this.adaptor.replace(this.typesetRoot,this.start.node);this.start.node=this.end.node=this.typesetRoot,this.start.n=this.end.n=0,this.state(a.STATE.INSERTED)}},s.prototype.updateStyleSheet=function(t){t.addStyleSheet()},s.prototype.removeFromDocument=function(t){var e,r,n;void 0===t&&(t=!1),this.state()>=a.STATE.TYPESET&&(e=this.adaptor,r=this.start.node,n=e.text(""),t&&(t=this.start.delim+this.math+this.end.delim,n=this.inputJax.processStrings?e.text(t):(t=e.parse(t,"text/html"),e.firstChild(e.body(t)))),e.parent(r)&&e.replace(n,r),this.start.node=this.end.node=n,this.start.n=this.end.n=0)},s);function s(t,e,r,n,o){return i.call(this,t,e,r=void 0===r?!0:r,n=void 0===n?{node:null,n:0,delim:""}:n,o=void 0===o?{node:null,n:0,delim:""}:o)||this}e.HTMLMathItem=r},3335:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.HTMLMathList=void 0,o=r(9e3).AbstractMathList,i(a,o),a);function a(){return null!==o&&o.apply(this,arguments)||this}e.HTMLMathList=r},8462:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(e,"__esModule",{value:!0}),e.TeX=void 0,r(9206)),u=r(7233),p=r(7073),h=l(r(4676)),d=l(r(1256)),f=l(r(8417)),m=l(r(3971)),y=l(r(8562)),g=r(6521),b=r(9899),l=(r(2942),o=c.AbstractInputJax,i(v,o),v.configure=function(t){t=new b.ParserConfiguration(t,["tex"]);return t.init(),t},v.tags=function(t,e){g.TagsFactory.addTags(e.tags),g.TagsFactory.setDefault(t.options.tags),t.tags=g.TagsFactory.getDefault(),t.tags.configuration=t},v.prototype.setMmlFactory=function(t){o.prototype.setMmlFactory.call(this,t),this._parseOptions.nodeFactory.setMmlFactory(t)},Object.defineProperty(v.prototype,"parseOptions",{get:function(){return this._parseOptions},enumerable:!1,configurable:!0}),v.prototype.reset=function(t){this.parseOptions.tags.reset(t=void 0===t?0:t)},v.prototype.compile=function(t,e){this.parseOptions.clear(),this.executeFilters(this.preFilters,t,e,this.parseOptions);var r=t.display;this.latex=t.math,this.parseOptions.tags.startEquation(t);try{var n=new f.default(this.latex,{display:r,isInner:!1},this.parseOptions),o=n.mml(),i=n.stack.global}catch(t){if(!(t instanceof m.default))throw t;this.parseOptions.error=!0,o=this.options.formatError(this,t)}return o=this.parseOptions.nodeFactory.create("node","math",[o]),null!=i&&i.indentalign&&d.default.setAttribute(o,"indentalign",i.indentalign),r&&d.default.setAttribute(o,"display","block"),this.parseOptions.tags.finishEquation(t),this.parseOptions.root=o,this.executeFilters(this.postFilters,t,e,this.parseOptions),this.mathNode=this.parseOptions.root,this.mathNode},v.prototype.findMath=function(t){return this.findTeX.findMath(t)},v.prototype.formatError=function(t){var e=t.message.replace(/\n.*/,"");return this.parseOptions.nodeFactory.create("error",e,t.id,this.latex)},v.NAME="TeX",v.OPTIONS=a(a({},c.AbstractInputJax.OPTIONS),{FindTeX:null,packages:["base"],digits:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,maxBuffer:5120,formatError:function(t,e){return t.formatError(e)}}),v);function v(t){var e=this,t=s((0,u.separateOptions)(t=void 0===t?{}:t,v.OPTIONS,p.FindTeX.OPTIONS),3),r=t[0],n=t[1],t=t[2],n=((e=o.call(this,n)||this).findTeX=e.options.FindTeX||new p.FindTeX(t),e.options.packages),t=e.configuration=v.configure(n),n=e._parseOptions=new y.default(t,[e.options,g.TagsFactory.OPTIONS]);return(0,u.userOptions)(n.options,r),t.config(e),v.tags(n,t),e.postFilters.add(h.default.cleanSubSup,-6),e.postFilters.add(h.default.setInherited,-5),e.postFilters.add(h.default.moveLimits,-4),e.postFilters.add(h.default.cleanStretchy,-3),e.postFilters.add(h.default.cleanAttributes,-2),e.postFilters.add(h.default.combineRelations,-1),e}e.TeX=l},210:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AllPackages=void 0,r(2942),r(8174),r(8021),r(583),r(1186),r(8603),r(6538),r(9499),r(8963),r(3752),r(8227),r(5860),r(6628),r(6648),r(8458),r(5464),r(1428),r(6121),r(3078),r(8901),r(7535),r(6944),r(1496),r(4234),r(4898),r(3168),r(9365),r(1527),r(2307),r(2675),r(1442),r(6841),r(1247),"undefined"!=typeof MathJax&&MathJax.loader&&MathJax.loader.preLoad("[tex]/action","[tex]/ams","[tex]/amscd","[tex]/bbox","[tex]/boldsymbol","[tex]/braket","[tex]/bussproofs","[tex]/cancel","[tex]/cases","[tex]/centernot","[tex]/color","[tex]/colorv2","[tex]/colortbl","[tex]/empheq","[tex]/enclose","[tex]/extpfeil","[tex]/gensymb","[tex]/html","[tex]/mathtools","[tex]/mhchem","[tex]/newcommand","[tex]/noerrors","[tex]/noundefined","[tex]/physics","[tex]/upgreek","[tex]/unicode","[tex]/verb","[tex]/configmacros","[tex]/tagformat","[tex]/textcomp","[tex]/textmacros","[tex]/setoptions"),e.AllPackages=["base","action","ams","amscd","bbox","boldsymbol","braket","bussproofs","cancel","cases","centernot","color","colortbl","empheq","enclose","extpfeil","gensymb","html","mathtools","mhchem","newcommand","noerrors","noundefined","upgreek","unicode","verb","configmacros","tagformat","textcomp","textmacros"]},9899:function(t,e,r){var m=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserConfiguration=e.ConfigurationHandler=e.Configuration=void 0;var n,o,u=r(7233),f=r(2947),g=r(7525),b=r(8666),p=r(6521);function c(t,e,r,n,o,i,a,s,l,c,u,p,h){void 0===e&&(e={}),void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i={}),void 0===a&&(a={}),void 0===s&&(s=[]),void 0===l&&(l=[]),void 0===c&&(c=null),void 0===u&&(u=null),this.name=t,this.handler=e,this.fallback=r,this.items=n,this.tags=o,this.options=i,this.nodes=a,this.preprocessors=s,this.postprocessors=l,this.initMethod=c,this.configMethod=u,this.priority=p,this.parser=h,this.handler=Object.assign({character:[],delimiter:[],macro:[],environment:[]},e)}function i(t,e){var r,n,o,i;void 0===e&&(e=["tex"]),this.initMethod=new g.FunctionList,this.configMethod=new g.FunctionList,this.configurations=new b.PrioritizedList,this.parsers=[],this.handlers=new f.SubHandlers,this.items={},this.tags={},this.options={},this.nodes={},this.parsers=e;try{for(var a=m(t.slice().reverse()),s=a.next();!s.done;s=a.next()){var l=s.value;this.addPackage(l)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}try{for(var c=m(this.configurations),u=c.next();!u.done;u=c.next()){var p=u.value,h=p.item,d=p.priority;this.append(h,d)}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}}c.makeProcessor=function(t,e){return Array.isArray(t)?t:[t,e]},c._create=function(t,e){var r=this,n=(e=void 0===e?{}:e).priority||b.PrioritizedList.DEFAULTPRIORITY,o=e.init?this.makeProcessor(e.init,n):null,i=e.config?this.makeProcessor(e.config,n):null,a=(e.preprocessors||[]).map(function(t){return r.makeProcessor(t,n)}),s=(e.postprocessors||[]).map(function(t){return r.makeProcessor(t,n)}),l=e.parser||"tex";return new c(t,e.handler||{},e.fallback||{},e.items||{},e.tags||{},e.options||{},e.nodes||{},a,s,o,i,n,l)},c.create=function(t,e){e=c._create(t,e=void 0===e?{}:e);return n.set(t,e),e},c.local=function(t){return c._create("",t=void 0===t?{}:t)},Object.defineProperty(c.prototype,"init",{get:function(){return this.initMethod?this.initMethod[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"config",{get:function(){return this.configMethod?this.configMethod[0]:null},enumerable:!1,configurable:!0}),e.Configuration=c,r=n=e.ConfigurationHandler||(e.ConfigurationHandler={}),o=new Map,r.set=function(t,e){o.set(t,e)},r.get=function(t){return o.get(t)},r.keys=function(){return o.keys()},i.prototype.init=function(){this.initMethod.execute(this)},i.prototype.config=function(t){var e,r;this.configMethod.execute(this,t);try{for(var n=m(this.configurations),o=n.next();!o.done;o=n.next()){var i=o.value;this.addFilters(t,i.item)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},i.prototype.addPackage=function(t){var e="string"==typeof t?t:t[0],e=this.getPackage(e);e&&this.configurations.add(e,"string"==typeof t?e.priority:t[1])},i.prototype.add=function(t,e,r){void 0===r&&(r={});var n,o,i=this.getPackage(t),a=(this.append(i),this.configurations.add(i,i.priority),this.init(),e.parseOptions);a.nodeFactory.setCreators(i.nodes);try{for(var s=m(Object.keys(i.items)),l=s.next();!l.done;l=s.next()){var c=l.value;a.itemFactory.setNodeClass(c,i.items[c])}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}p.TagsFactory.addTags(i.tags),(0,u.defaultOptions)(a.options,i.options),(0,u.userOptions)(a.options,r),this.addFilters(e,i),i.config&&i.config(this,e)},i.prototype.getPackage=function(t){var e=n.get(t);if(e&&this.parsers.indexOf(e.parser)<0)throw Error("Package ".concat(t," doesn't target the proper parser"));return e},i.prototype.append=function(t,e){e=e||t.priority,t.initMethod&&this.initMethod.add(t.initMethod[0],t.initMethod[1]),t.configMethod&&this.configMethod.add(t.configMethod[0],t.configMethod[1]),this.handlers.add(t.handler,t.fallback,e),Object.assign(this.items,t.items),Object.assign(this.tags,t.tags),(0,u.defaultOptions)(this.options,t.options),Object.assign(this.nodes,t.nodes)},i.prototype.addFilters=function(t,e){var r,n,o,i;try{for(var a=m(e.preprocessors),s=a.next();!s.done;s=a.next()){var l=y(s.value,2),c=l[0],u=l[1];t.preFilters.add(c,u)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}try{for(var p=m(e.postprocessors),h=p.next();!h.done;h=p.next()){var d=y(h.value,2),f=d[0],u=d[1];t.postFilters.add(f,u)}}catch(t){o={error:t}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}},e.ParserConfiguration=i},4676:function(t,e,r){var g=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,b=r(9007),v=n(r(1256)),n=o=o||{};function i(t,e,r){var n,o,i=[];try{for(var a=g(t.getList("m"+e+r)),s=a.next();!s.done;s=a.next()){var l,c,u=s.value,p=u.childNodes;p[u[e]]&&p[u[r]]||(l=u.parent,c=p[u[e]]?t.nodeFactory.create("node","m"+e,[p[u.base],p[u[e]]]):t.nodeFactory.create("node","m"+r,[p[u.base],p[u[r]]]),v.default.copyAttributes(u,c),l?l.replaceChild(c,u):t.root=c,i.push(u))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}t.removeFromList("m"+e+r,i)}function a(t,e,r){var n,o,i=[];try{for(var a=g(t.getList(e)),s=a.next();!s.done;s=a.next()){var l,c,u,p=s.value;p.attributes.get("displaystyle")||(c=(l=p.childNodes[p.base]).coreMO(),l.getProperty("movablelimits")&&!c.attributes.getExplicit("movablelimits")&&(u=t.nodeFactory.create("node",r,p.childNodes),v.default.copyAttributes(p,u),p.parent?p.parent.replaceChild(u,p):t.root=u,i.push(p)))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}t.removeFromList(e,i)}n.cleanStretchy=function(t){var e,r,n=t.data;try{for(var o=g(n.getList("fixStretchy")),i=o.next();!i.done;i=o.next()){var a,s,l,c=i.value;v.default.getProperty(c,"fixStretchy")&&((a=v.default.getForm(c))&&a[3]&&a[3].stretchy&&v.default.setAttribute(c,"stretchy",!1),s=c.parent,v.default.getTexClass(c)||a&&a[2]||(l=n.nodeFactory.create("node","TeXAtom",[c]),s.replaceChild(l,c),l.inheritAttributesFrom(c)),v.default.removeProperties(c,"fixStretchy"))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},n.cleanAttributes=function(t){t.data.root.walkTree(function(t,e){var r,n,o=t.attributes;if(o){var i=new Set((o.get("mjx-keep-attrs")||"").split(/ /));delete o.getAllAttributes()["mjx-keep-attrs"];try{for(var a=g(o.getExplicitNames()),s=a.next();!s.done;s=a.next()){var l=s.value;i.has(l)||o.attributes[l]!==t.attributes.getInherited(l)||delete o.attributes[l]}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}}},{})},n.combineRelations=function(t){var e,r,n,o,i=[];try{for(var a=g(t.data.getList("mo")),s=a.next();!s.done;s=a.next()){var l=s.value;if(!l.getProperty("relationsCombined")&&l.parent&&(!l.parent||v.default.isType(l.parent,"mrow"))&&v.default.getTexClass(l)===b.TEXCLASS.REL){for(var c=l.parent,u=void 0,p=c.childNodes,h=p.indexOf(l)+1,d=v.default.getProperty(l,"variantForm");h<p.length&&(u=p[h])&&v.default.isType(u,"mo")&&v.default.getTexClass(u)===b.TEXCLASS.REL;){if(d!==v.default.getProperty(u,"variantForm")||!S(l,u)){null==l.attributes.getExplicit("rspace")&&v.default.setAttribute(l,"rspace","0pt"),null==u.attributes.getExplicit("lspace")&&v.default.setAttribute(u,"lspace","0pt");break}v.default.appendChildren(l,v.default.getChildren(u)),_(["stretchy","rspace"],l,u);try{n=void 0;for(var f=g(u.getPropertyNames()),m=f.next();!m.done;m=f.next()){var y=m.value;l.setProperty(y,u.getProperty(y))}}catch(t){n={error:t}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}p.splice(h,1),i.push(u),u.parent=null,u.setProperty("relationsCombined",!0)}l.attributes.setInherited("form",l.getForms()[0])}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}t.data.removeFromList("mo",i)};var _=function(t,e,r){var n=e.attributes,o=r.attributes;t.forEach(function(t){var e=o.getExplicit(t);null!=e&&n.set(t,e)})},S=function(t,e){function r(e,r){return e.getExplicitNames().filter(function(t){return t!==r&&("stretchy"!==t||e.getExplicit("stretchy"))})}var n,o,i=t.attributes,a=e.attributes,e=r(i,"lspace"),s=r(a,"rspace");if(e.length!==s.length)return!1;try{for(var l=g(e),c=l.next();!c.done;c=l.next()){var u=c.value;if(i.getExplicit(u)!==a.getExplicit(u))return!1}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}return!0};n.cleanSubSup=function(t){t=t.data;t.error||(i(t,"sub","sup"),i(t,"under","over"))},n.moveLimits=function(t){t=t.data;a(t,"munderover","msubsup"),a(t,"munder","msub"),a(t,"mover","msup")},n.setInherited=function(t){t.data.root.setInheritedAttributes({},t.math.display,0,!1)},e.default=o},7073:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.FindTeX=void 0,r(3494)),s=r(505),p=r(4474),r=(o=a.AbstractFindMath,i(l,o),l.prototype.getPatterns=function(){var e=this,t=this.options,r=[],n=[],o=[],i=(this.end={},this.env=this.sub=0,1);t.inlineMath.forEach(function(t){return e.addPattern(r,t,!1)}),t.displayMath.forEach(function(t){return e.addPattern(r,t,!0)}),r.length&&n.push(r.sort(s.sortLength).join("|")),t.processEnvironments&&(n.push("\\\\begin\\s*\\{([^}]*)\\}"),this.env=i,i++),t.processEscapes&&o.push("\\\\([\\\\$])"),t.processRefs&&o.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"),o.length&&(n.push("("+o.join("|")+")"),this.sub=i),this.start=new RegExp(n.join("|"),"g"),this.hasPatterns=0<n.length},l.prototype.addPattern=function(t,e,r){var e=u(e,2),n=e[0],e=e[1];t.push((0,s.quotePattern)(n)),this.end[n]=[e,r,this.endPattern(e)]},l.prototype.endPattern=function(t,e){return new RegExp((e||(0,s.quotePattern)(t))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")},l.prototype.findEnd=function(t,e,r,n){for(var o,n=u(n,3),i=n[0],a=n[1],s=n[2],l=s.lastIndex=r.index+r[0].length,c=0;o=s.exec(t);){if((o[1]||o[0])===i&&0===c)return(0,p.protoItem)(r[0],t.substr(l,o.index-l),o[0],e,r.index,o.index+o[0].length,a);"{"===o[0]?c++:"}"===o[0]&&c&&c--}return null},l.prototype.findMathInString=function(t,e,r){var n,o,i,a;for(this.start.lastIndex=0;n=this.start.exec(r);)void 0!==n[this.env]&&this.env?(i="\\\\end\\s*(\\{"+(0,s.quotePattern)(n[this.env])+"\\})",(a=this.findEnd(r,e,n,["{"+n[this.env]+"}",!0,this.endPattern(null,i)]))&&(a.math=a.open+a.math+a.close,a.open=a.close="")):a=void 0!==n[this.sub]&&this.sub?(o=n[this.sub],i=n.index+n[this.sub].length,2===o.length?(0,p.protoItem)("",o.substr(1),"",e,n.index,i):(0,p.protoItem)("",o,"",e,n.index,i,!1)):this.findEnd(r,e,n,this.end[n[0]]),a&&(t.push(a),this.start.lastIndex=a.end.n)},l.prototype.findMath=function(t){var e=[];if(this.hasPatterns)for(var r=0,n=t.length;r<n;r++)this.findMathInString(e,r,t[r]);return e},l.OPTIONS={inlineMath:[["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:!0,processEnvironments:!0,processRefs:!0},l);function l(t){t=o.call(this,t)||this;return t.getPatterns(),t}e.FindTeX=r},2947:function(t,e,r){var c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.SubHandlers=e.SubHandler=e.MapHandler=void 0;var u,n,p=r(8666),o=r(7525),h=(r=u=e.MapHandler||(e.MapHandler={}),n=new Map,r.register=function(t){n.set(t.name,t)},r.getMap=function(t){return n.get(t)},i.prototype.add=function(t,e,r){var n,o;void 0===r&&(r=p.PrioritizedList.DEFAULTPRIORITY);try{for(var i=c(t.slice().reverse()),a=i.next();!a.done;a=i.next()){var s=a.value,l=u.getMap(s);if(!l)return void this.warn("Configuration "+s+" not found! Omitted.");this._configuration.add(l,r)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}e&&this._fallback.add(e,r)},i.prototype.parse=function(t){try{for(var e=c(this._configuration),r=e.next();!r.done;r=e.next()){var n=r.value.item.parse(t);if(n)return n}}catch(t){i={error:t}}finally{try{r&&!r.done&&(o=e.return)&&o.call(e)}finally{if(i)throw i.error}}var o=a(t,2),i=o[0],o=o[1];Array.from(this._fallback)[0].item(i,o)},i.prototype.lookup=function(t){var e=this.applicable(t);return e?e.lookup(t):null},i.prototype.contains=function(t){return!!this.applicable(t)},i.prototype.toString=function(){var t,e,r=[];try{for(var n=c(this._configuration),o=n.next();!o.done;o=n.next()){var i=o.value.item;r.push(i.name)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r.join(", ")},i.prototype.applicable=function(t){var e,r;try{for(var n=c(this._configuration),o=n.next();!o.done;o=n.next()){var i=o.value.item;if(i.contains(t))return i}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},i.prototype.retrieve=function(t){var e,r;try{for(var n=c(this._configuration),o=n.next();!o.done;o=n.next()){var i=o.value.item;if(i.name===t)return i}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},i.prototype.warn=function(t){console.log("TexParser Warning: "+t)},i);function i(){this._configuration=new p.PrioritizedList,this._fallback=new o.FunctionList}function s(){this.map=new Map}e.SubHandler=h,s.prototype.add=function(t,e,r){var n,o;void 0===r&&(r=p.PrioritizedList.DEFAULTPRIORITY);try{for(var i=c(Object.keys(t)),a=i.next();!a.done;a=i.next()){var s=a.value,l=this.get(s);l||(l=new h,this.set(s,l)),l.add(t[s],e[s],r)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},s.prototype.set=function(t,e){this.map.set(t,e)},s.prototype.get=function(t){return this.map.get(t)},s.prototype.retrieve=function(t){var e,r;try{for(var n=c(this.map.values()),o=n.next();!o.done;o=n.next()){var i=o.value.retrieve(t);if(i)return i}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},s.prototype.keys=function(){return this.map.keys()},e.SubHandlers=s},8929:function(t,e,r){var o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.NodeFactory=void 0,n(r(1256)));function s(){this.mmlFactory=null,this.factory={node:s.createNode,token:s.createToken,text:s.createText,error:s.createError}}s.createNode=function(t,e,r,n,o){void 0===r&&(r=[]),void 0===n&&(n={});t=t.mmlFactory.create(e);return t.setChildren(r),o&&t.appendChild(o),a.default.setProperties(t,n),t},s.createToken=function(t,e,r,n){void 0===r&&(r={});n=t.create("text",n=void 0===n?"":n);return t.create("node",e,[],r,n)},s.createText=function(t,e){return null==e?null:t.mmlFactory.create("text").setText(e)},s.createError=function(t,e){var r=t.create("text",e),r=t.create("node","mtext",[],{},r);return t.create("node","merror",[r],{"data-mjx-error":e})},s.prototype.setMmlFactory=function(t){this.mmlFactory=t},s.prototype.set=function(t,e){this.factory[t]=e},s.prototype.setCreators=function(t){for(var e in t)this.set(e,t[e])},s.prototype.create=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=(this.factory[t]||this.factory.node).apply(void 0,i([this,e[0]],o(e.slice(1)),!1));return"node"===t&&this.configuration.addNode(e[0],n),n},s.prototype.get=function(t){return this.factory[t]},e.NodeFactory=s},1256:function(t,e,r){var c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0});var i,l,a=r(9007),u=r(2756);function s(t,e){var r,n;try{for(var o=c(Object.keys(e)),i=o.next();!i.done;i=o.next()){var a=i.value,s=e[a];"texClass"===a?(t.texClass=s,t.setProperty(a,s)):"movablelimits"===a?(t.setProperty("movablelimits",s),(t.isKind("mo")||t.isKind("mstyle"))&&t.attributes.set("movablelimits",s)):"inferred"!==a&&(l.has(a)?t.setProperty(a,s):t.attributes.set(a,s))}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}function p(t,e,r){(t.childNodes[e]=r)&&(r.parent=t)}function h(t,e){return t.isKind(e)}r=i=i||{},l=new Map([["autoOP",!0],["fnOP",!0],["movesupsub",!0],["subsupOK",!0],["texprimestyle",!0],["useHeight",!0],["variantForm",!0],["withDelims",!0],["mathaccent",!0],["open",!0],["close",!0]]),r.createEntity=function(t){return String.fromCodePoint(parseInt(t,16))},r.getChildren=function(t){return t.childNodes},r.getText=function(t){return t.getText()},r.appendChildren=function(t,e){var r,n;try{for(var o=c(e),i=o.next();!i.done;i=o.next()){var a=i.value;t.appendChild(a)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},r.setAttribute=function(t,e,r){t.attributes.set(e,r)},r.setProperty=function(t,e,r){t.setProperty(e,r)},r.setProperties=s,r.getProperty=function(t,e){return t.getProperty(e)},r.getAttribute=function(t,e){return t.attributes.get(e)},r.removeProperties=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t.removeProperty.apply(t,o([],n(e),!1))},r.getChildAt=function(t,e){return t.childNodes[e]},r.setChild=p,r.copyChildren=function(t,e){for(var r=t.childNodes,n=0;n<r.length;n++)p(e,n,r[n])},r.copyAttributes=function(t,e){e.attributes=t.attributes,s(e,t.getAllProperties())},r.isType=h,r.isEmbellished=function(t){return t.isEmbellished},r.getTexClass=function(t){return t.texClass},r.getCoreMO=function(t){return t.coreMO()},r.isNode=function(t){return t instanceof a.AbstractMmlNode||t instanceof a.AbstractMmlEmptyNode},r.isInferred=function(t){return t.isInferred},r.getForm=function(t){var e,r;if(!h(t,"mo"))return null;var n=t,o=n.getForms();try{for(var i=c(o),a=i.next();!a.done;a=i.next()){var s=a.value,l=u.MmlMo.OPTABLE[s][n.getText()];if(l)return l}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return null},e.default=i},5450:function(t,e,r){var i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,s=n(r(1256)),l=r(8317),c=n(r(1130));(n=o=o||{}).variable=function(t,e){var r=c.default.getFontDef(t),n=t.stack.env,n=(n.multiLetterIdentifiers&&""!==n.font&&(e=t.string.substr(t.i-1).match(n.multiLetterIdentifiers)[0],t.i+=e.length-1,r.mathvariant===l.TexConstant.Variant.NORMAL&&n.noAutoOP&&1<e.length&&(r.autoOP=!1)),t.create("token","mi",r,e));t.Push(n)},n.digit=function(t,e){var r,n=t.configuration.options.digits,n=t.string.slice(t.i-1).match(n),o=c.default.getFontDef(t);n?(r=t.create("token","mn",o,n[0].replace(/[{}]/g,"")),t.i+=n[0].length-1):r=t.create("token","mo",o,e),t.Push(r)},n.controlSequence=function(t,e){var r=t.GetCS();t.parse("macro",[t,r])},n.mathchar0mi=function(t,e){var r=e.attributes||{mathvariant:l.TexConstant.Variant.ITALIC},r=t.create("token","mi",r,e.char);t.Push(r)},n.mathchar0mo=function(t,e){var r=e.attributes||{},r=(r.stretchy=!1,t.create("token","mo",r,e.char));s.default.setProperty(r,"fixStretchy",!0),t.configuration.addNode("fixStretchy",r),t.Push(r)},n.mathchar7=function(t,e){var r=e.attributes||{mathvariant:l.TexConstant.Variant.NORMAL},r=(t.stack.env.font&&(r.mathvariant=t.stack.env.font),t.create("token","mi",r,e.char));t.Push(r)},n.delimiter=function(t,e){var r=e.attributes||{},r=Object.assign({fence:!1,stretchy:!1},r),r=t.create("token","mo",r,e.char);t.Push(r)},n.environment=function(t,e,r,n){var o=n[0],e=t.itemFactory.create("begin").setProperties({name:e,end:o}),e=r.apply(void 0,a([t,e],i(n.slice(1)),!1));t.Push(e)},e.default=o},8562:function(t,e,r){var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},a=(Object.defineProperty(e,"__esModule",{value:!0}),i(r(5453))),s=r(8929),l=i(r(1256)),u=r(7233);function p(t,e){void 0===e&&(e=[]),this.options={},this.packageData=new Map,this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.handlers=t.handlers,this.nodeFactory=new s.NodeFactory,(this.nodeFactory.configuration=this).nodeFactory.setCreators(t.nodes),this.itemFactory=new a.default(t.items),this.itemFactory.configuration=this,u.defaultOptions.apply(void 0,o([this.options],n(e),!1)),(0,u.defaultOptions)(this.options,t.options)}p.prototype.pushParser=function(t){this.parsers.unshift(t)},p.prototype.popParser=function(){this.parsers.shift()},Object.defineProperty(p.prototype,"parser",{get:function(){return this.parsers[0]},enumerable:!1,configurable:!0}),p.prototype.clear=function(){this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.tags.resetTag()},p.prototype.addNode=function(t,e){var r;(this.nodeLists[t]||(this.nodeLists[t]=[])).push(e),e.kind!==t&&(r=((r=l.default.getProperty(e,"in-lists")||"")?r.split(/,/):[]).concat(t).join(","),l.default.setProperty(e,"in-lists",r))},p.prototype.getList=function(t){var e,r,n=this.nodeLists[t]||[],o=[];try{for(var i=c(n),a=i.next();!a.done;a=i.next()){var s=a.value;this.inTree(s)&&o.push(s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return this.nodeLists[t]=o},p.prototype.removeFromList=function(t,e){var r,n,o=this.nodeLists[t]||[];try{for(var i=c(e),a=i.next();!a.done;a=i.next()){var s=a.value,l=o.indexOf(s);0<=l&&o.splice(l,1)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},p.prototype.inTree=function(t){for(;t&&t!==this.root;)t=t.parent;return!!t},e.default=p},1130:function(t,e,r){var c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,a,i,s,l,p=r(9007),h=n(r(1256)),d=n(r(8417)),f=n(r(3971)),m=r(5368);function y(t,e){var r,t=t.match((e=void 0===e?!1:e)?l:s);return t?(e=[t[1].replace(/,/,"."),t[4],t[0].length],e=c(e,3),t=e[0],r=e[1],e=e[2],"mu"!==r?[t,r,e]:[g(i[r](parseFloat(t||"1"))).slice(0,-2),"em",e]):[null,null,0]}function g(t){return Math.abs(t)<6e-4?"0em":t.toFixed(3).replace(/\.?0+$/,"")+"em"}function b(t,e,r){var n="{\\big"+r+" "+(e="{"!==e&&"}"!==e?e:"\\"+e)+"}";return new d.default("\\mathchoice"+("{\\bigg"+r+" "+e+"}")+n+n+n,{},t).mml()}function v(t,e,r){e=e.replace(/^\s+/,m.entities.nbsp).replace(/\s+$/,m.entities.nbsp);e=t.create("text",e);return t.create("node","mtext",[],r,e)}function _(t,e,r){if(r.match(/^[a-z]/i)&&e.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(e+=" "),e.length+r.length>t.configuration.options.maxBuffer)throw new f.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?");return e+r}function S(t,e){for(;0<e;)t=t.trim().slice(1,-1),e--;return t.trim()}function x(t,e){for(var r=t.length,n=0,o="",i=0,a=0,s=!0,l=!1;i<r;){var c=t[i++];switch(c){case" ":break;case"{":s?a++:(l=!1,n<a&&(a=n)),n++;break;case"}":n&&n--,(s||l)&&(a--,l=!0),s=!1;break;default:if(!n&&-1!==e.indexOf(c))return[l?"true":S(o,a),c,t.slice(i)];l=s=!1}o+=c}if(n)throw new f.default("ExtraOpenMissingClose","Extra open brace or missing close brace");return[l?"true":S(o,a),"",t.slice(i)]}a=o=o||{},i={em:function(t){return t},ex:function(t){return.43*t},pt:function(t){return t/10},pc:function(t){return 1.2*t},px:function(t){return 7.2*t/72},in:function(t){return 7.2*t},cm:function(t){return 7.2*t/2.54},mm:function(t){return 7.2*t/25.4},mu:function(t){return t/18}},n="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))",r="(pt|em|ex|mu|px|mm|cm|in|pc)",s=RegExp("^\\s*"+n+"\\s*"+r+"\\s*$"),l=RegExp("^\\s*"+n+"\\s*"+r+" ?"),a.matchDimen=y,a.dimen2em=function(t){var t=c(y(t),2),e=t[0],t=t[1],e=parseFloat(e||"1"),t=i[t];return t?t(e):0},a.Em=g,a.cols=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.map(g).join(" ")},a.fenced=function(t,e,r,n,o,i){void 0===o&&(o=""),void 0===i&&(i="");var a=t.nodeFactory,s=a.create("node","mrow",[],{open:e,close:n,texClass:p.TEXCLASS.INNER});return e=o?new d.default("\\"+o+"l"+e,t.parser.stack.env,t).mml():(e=a.create("text",e),a.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:p.TEXCLASS.OPEN},e)),h.default.appendChildren(s,[e,r]),e=o?new d.default("\\"+o+"r"+n,t.parser.stack.env,t).mml():(r=a.create("text",n),a.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:p.TEXCLASS.CLOSE},r)),i&&e.attributes.set("mathcolor",i),h.default.appendChildren(s,[e]),s},a.fixedFence=function(t,e,r,n){var o=t.nodeFactory.create("node","mrow",[],{open:e,close:n,texClass:p.TEXCLASS.ORD});return e&&h.default.appendChildren(o,[b(t,e,"l")]),h.default.isType(r,"mrow")?h.default.appendChildren(o,h.default.getChildren(r)):h.default.appendChildren(o,[r]),n&&h.default.appendChildren(o,[b(t,n,"r")]),o},a.mathPalette=b,a.fixInitialMO=function(t,e){for(var r=0,n=e.length;r<n;r++){var o=e[r];if(o&&!h.default.isType(o,"mspace")&&(!h.default.isType(o,"TeXAtom")||h.default.getChildren(o)[0]&&h.default.getChildren(h.default.getChildren(o)[0]).length)){(h.default.isEmbellished(o)||h.default.isType(o,"TeXAtom")&&h.default.getTexClass(o)===p.TEXCLASS.REL)&&(o=t.nodeFactory.create("node","mi"),e.unshift(o));break}}},a.internalMath=function(t,e,r,n){if(t.configuration.options.internalMath)return t.configuration.options.internalMath(t,e,r,n);var o,i,a,n=n||t.stack.env.font,s=n?{mathvariant:n}:{},l=[],c=0,u=0,p="",h=0;if(e.match(/\\?[${}\\]|\\\(|\\(eq)?ref\s*\{/)){for(;c<e.length;)"$"===(o=e.charAt(c++))?"$"===p&&0===h?(i=t.create("node","TeXAtom",[new d.default(e.slice(u,c-1),{},t.configuration).mml()]),l.push(i),p="",u=c):""===p&&(u<c-1&&l.push(v(t,e.slice(u,c-1),s)),p="$",u=c):"{"===o&&""!==p?h++:"}"===o?"}"===p&&0===h?(a=new d.default(e.slice(u,c),{},t.configuration).mml(),i=t.create("node","TeXAtom",[a],s),l.push(i),p="",u=c):""!==p&&h&&h--:"\\"===o&&(""===p&&e.substr(c).match(/^(eq)?ref\s*\{/)?(a=RegExp["$&"].length,u<c-1&&l.push(v(t,e.slice(u,c-1),s)),p="}",u=c-1,c+=a):"("===(o=e.charAt(c++))&&""===p?(u<c-2&&l.push(v(t,e.slice(u,c-2),s)),p=")",u=c):")"===o&&")"===p&&0===h?(i=t.create("node","TeXAtom",[new d.default(e.slice(u,c-2),{},t.configuration).mml()]),l.push(i),p="",u=c):o.match(/[${}\\]/)&&""===p&&(c--,e=e.substr(0,c-1)+e.substr(c)));if(""!==p)throw new f.default("MathNotTerminated","Math not terminated in text box")}return u<e.length&&l.push(v(t,e.slice(u),s)),null!=r?l=[t.create("node","mstyle",l,{displaystyle:!1,scriptlevel:r})]:1<l.length&&(l=[t.create("node","mrow",l)]),l},a.internalText=v,a.underOver=function(t,e,r,n,o){a.checkMovableLimits(e),h.default.isType(e,"munderover")&&h.default.isEmbellished(e)&&(h.default.setProperties(h.default.getCoreMO(e),{lspace:0,rspace:0}),i=t.create("node","mo",[],{rspace:0}),e=t.create("node","mrow",[i,e]));var i=t.create("node","munderover",[e]),e=(h.default.setChild(i,"over"===n?i.over:i.under,r),i);return o&&(e=t.create("node","TeXAtom",[i],{texClass:p.TEXCLASS.OP,movesupsub:!0})),h.default.setProperty(e,"subsupOK",!0),e},a.checkMovableLimits=function(t){var e=h.default.isType(t,"mo")?h.default.getForm(t):null;(h.default.getProperty(t,"movablelimits")||e&&e[3]&&e[3].movablelimits)&&h.default.setProperties(t,{movablelimits:!1})},a.trimSpaces=function(t){if("string"!=typeof t)return t;var e=t.trim();return e.match(/\\$/)&&t.match(/ $/)&&(e+=" "),e},a.setArrayAlign=function(t,e){return"t"===(e=a.trimSpaces(e||""))?t.arraydef.align="baseline 1":"b"===e?t.arraydef.align="baseline -1":"c"===e?t.arraydef.align="axis":e&&(t.arraydef.align=e),t},a.substituteArgs=function(t,e,r){for(var n="",o="",i=0;i<r.length;){var a=r.charAt(i++);if("\\"===a)n+=a+r.charAt(i++);else if("#"===a)if("#"===(a=r.charAt(i++)))n+=a;else{if(!a.match(/[1-9]/)||parseInt(a,10)>e.length)throw new f.default("IllegalMacroParam","Illegal macro parameter reference");o=_(t,_(t,o,n),e[parseInt(a,10)-1]),n=""}else n+=a}return _(t,o,n)},a.addArgs=_,a.checkMaxMacros=function(t,e){if(void 0===e&&(e=!0),!(++t.macroCount<=t.configuration.options.maxMacros))throw e?new f.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is here a recursive macro call?"):new f.default("MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?")},a.checkEqnEnv=function(t){if(t.stack.global.eqnenv)throw new f.default("ErroneousNestingEq","Erroneous nesting of equation structures");t.stack.global.eqnenv=!0},a.copyNode=function(t,e){var t=t.copy(),s=e.configuration;return t.walkTree(function(t){s.addNode(t.kind,t);var e,r,n=(t.getProperty("in-lists")||"").split(/,/);try{for(var o=u(n),i=o.next();!i.done;i=o.next()){var a=i.value;a&&s.addNode(a,t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}),t},a.MmlFilterAttribute=function(t,e,r){return r},a.getFontDef=function(t){t=t.stack.env.font;return t?{mathvariant:t}:{}},a.keyvalOptions=function(i,t,e){void 0===t&&(t=null),void 0===e&&(e=!1);var r,n,o=function(){for(var t,e,r,n={},o=i;o;)e=(t=c(x(o,["=",","]),3))[0],r=t[1],o=t[2],"="===r?(r=(t=c(x(o,[","]),3))[0],t[1],o=t[2],r="false"===r||"true"===r?JSON.parse(r):r,n[e]=r):e&&(n[e]=!0);return n}();if(t)try{for(var a=u(Object.keys(o)),s=a.next();!s.done;s=a.next()){var l=s.value;if(!t.hasOwnProperty(l)){if(e)throw new f.default("InvalidOption","Invalid option: %1",l);delete o[l]}}}catch(i){r={error:i}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},e.default=o},9497:function(t,e,r){var u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},d=(Object.defineProperty(e,"__esModule",{value:!0}),n(r(1256)));function o(t,e,r){this._factory=t,this._env=e,this.global={},this.stack=[],this.global={isInner:r},this.stack=[this._factory.create("start",this.global)],e&&(this.stack[0].env=e),this.env=this.stack[0].env}Object.defineProperty(o.prototype,"env",{get:function(){return this._env},set:function(t){this._env=t},enumerable:!1,configurable:!0}),o.prototype.Push=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=u(r),i=o.next();!i.done;i=o.next()){var a,s,l,c=i.value;c&&((a=d.default.isNode(c)?this._factory.create("mml",c):c).global=this.global,l=(s=p(this.stack.length?this.Top().checkItem(a):[null,!0],2))[0],s[1]&&(l?(this.Pop(),this.Push.apply(this,h([],p(l),!1))):(this.stack.push(a),a.env?(a.copyEnv&&Object.assign(a.env,this.env),this.env=a.env):a.env=this.env)))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},o.prototype.Pop=function(){var t=this.stack.pop();return t.isOpen||delete t.env,this.env=this.stack.length?this.Top().env:{},t},o.prototype.Top=function(t){return this.stack.length<(t=void 0===t?1:t)?null:this.stack[this.stack.length-t]},o.prototype.Prev=function(t){var e=this.Top();return t?e.First:e.Pop()},o.prototype.toString=function(){return"stack[\n "+this.stack.join("\n ")+"\n]"},e.default=o},8292:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(e,"__esModule",{value:!0}),e.BaseItem=e.MmlStack=void 0,l(r(3971))),l=(Object.defineProperty(u.prototype,"nodes",{get:function(){return this._nodes},enumerable:!1,configurable:!0}),u.prototype.Push=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];(t=this._nodes).push.apply(t,a([],i(e),!1))},u.prototype.Pop=function(){return this._nodes.pop()},Object.defineProperty(u.prototype,"First",{get:function(){return this._nodes[this.Size()-1]},set:function(t){this._nodes[this.Size()-1]=t},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"Last",{get:function(){return this._nodes[0]},set:function(t){this._nodes[0]=t},enumerable:!1,configurable:!0}),u.prototype.Peek=function(t){return null==t&&(t=1),this._nodes.slice(this.Size()-t)},u.prototype.Size=function(){return this._nodes.length},u.prototype.Clear=function(){this._nodes=[]},u.prototype.toMml=function(t,e){return void 0===t&&(t=!0),1!==this._nodes.length||e?this.create("node",t?"inferredMrow":"mrow",this._nodes,{}):this.First},u.prototype.create=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(e=this.factory.configuration.nodeFactory).create.apply(e,a([t],i(r),!1))},u);function u(t){this._nodes=t}e.MmlStack=l;o(h,p=l),Object.defineProperty(h.prototype,"kind",{get:function(){return"base"},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"env",{get:function(){return this._env},set:function(t){this._env=t},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"copyEnv",{get:function(){return!0},enumerable:!1,configurable:!0}),h.prototype.getProperty=function(t){return this._properties[t]},h.prototype.setProperty=function(t,e){return this._properties[t]=e,this},Object.defineProperty(h.prototype,"isOpen",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isClose",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isFinal",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.isKind=function(t){return t===this.kind},h.prototype.checkItem=function(t){if(t.isKind("over")&&this.isOpen&&(t.setProperty("num",this.toMml(!1)),this.Clear()),t.isKind("cell")&&this.isOpen){if(t.getProperty("linebreak"))return h.fail;throw new c.default("Misplaced","Misplaced %1",t.getName())}var e,r;if(t.isClose&&this.getErrors(t.kind))throw e=(r=i(this.getErrors(t.kind),2))[0],r=r[1],new c.default(e,r,t.getName());return t.isFinal?(this.Push(t.First),h.fail):h.success},h.prototype.clearEnv=function(){var t,e;try{for(var r=s(Object.keys(this.env)),n=r.next();!n.done;n=r.next()){var o=n.value;delete this.env[o]}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},h.prototype.setProperties=function(t){return Object.assign(this._properties,t),this},h.prototype.getName=function(){return this.getProperty("name")},h.prototype.toString=function(){return this.kind+"["+this.nodes.join("; ")+"]"},h.prototype.getErrors=function(t){return(this.constructor.errors||{})[t]||h.errors[t]},h.fail=[null,!1],h.success=[null,!0],h.errors={end:["MissingBeginExtraEnd","Missing \\begin{%1} or extra \\end{%1}"],close:["ExtraCloseMissingOpen","Extra close brace or missing open brace"],right:["MissingLeftExtraRight","Missing \\left or extra \\right"],middle:["ExtraMiddle","Extra \\middle"]};var p,r=h;function h(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=p.call(this,e)||this;return n.factory=t,n.global={},n._properties={},n.isOpen&&(n._env={}),n}e.BaseItem=r},5453:function(t,e,r){var n,o,i,a=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=(Object.defineProperty(e,"__esModule",{value:!0}),r(8292)),r=r(4574),s=(i=s.BaseItem,a(c,i),c),a=(o=r.AbstractFactory,a(l,o),l.DefaultStackItems=((r={})[s.prototype.kind]=s,r),l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.defaultKind="dummy",t.configuration=null,t}function c(){return null!==i&&i.apply(this,arguments)||this}e.default=a},8803:function(t,e){function r(t,e,r){this._symbol=t,this._char=e,this._attributes=r}function n(t,e,r){void 0===r&&(r=[]),this._symbol=t,this._func=e,this._args=r}Object.defineProperty(e,"__esModule",{value:!0}),e.Macro=e.Symbol=void 0,Object.defineProperty(r.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"char",{get:function(){return this._char},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"attributes",{get:function(){return this._attributes},enumerable:!1,configurable:!0}),e.Symbol=r,Object.defineProperty(n.prototype,"symbol",{get:function(){return this._symbol},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"func",{get:function(){return this._func},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"args",{get:function(){return this._args},enumerable:!1,configurable:!0}),e.Macro=n},9140:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},m=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},y=(Object.defineProperty(e,"__esModule",{value:!0}),e.EnvironmentMap=e.CommandMap=e.MacroMap=e.DelimiterMap=e.CharacterMap=e.AbstractParseMap=e.RegExpMap=e.AbstractSymbolMap=e.parseResult=void 0,r(8803)),a=r(2947);function s(t){return void 0===t||t}e.parseResult=s;Object.defineProperty(l.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),l.prototype.parserFor=function(t){return this.contains(t)?this.parser:null},l.prototype.parse=function(t){var t=f(t,2),e=t[0],t=t[1],r=this.parserFor(t),t=this.lookup(t);return r&&t?s(r(e,t)):null},Object.defineProperty(l.prototype,"parser",{get:function(){return this._parser},set:function(t){this._parser=t},enumerable:!1,configurable:!0});r=l;function l(t,e){this._name=t,this._parser=e,a.MapHandler.register(this)}e.AbstractSymbolMap=r;o(p,c=r),p.prototype.contains=function(t){return this._regExp.test(t)},p.prototype.lookup=function(t){return this.contains(t)?t:null};var c,u=p;function p(t,e,r){t=c.call(this,t,e)||this;return t._regExp=r,t}e.RegExpMap=u;o(d,h=r),d.prototype.lookup=function(t){return this.map.get(t)},d.prototype.contains=function(t){return this.map.has(t)},d.prototype.add=function(t,e){this.map.set(t,e)},d.prototype.remove=function(t){this.map.delete(t)};var h,u=d;function d(){var t=null!==h&&h.apply(this,arguments)||this;return t.map=new Map,t}e.AbstractParseMap=u;o(b,g=u);var g,r=b;function b(t,e,r){var n,o,i=g.call(this,t,e)||this;try{for(var a=m(Object.keys(r)),s=a.next();!s.done;s=a.next()){var l=s.value,c=r[l],u=f("string"==typeof c?[c,null]:c,2),p=u[0],h=u[1],d=new y.Symbol(l,p,h);i.add(l,d)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}e.CharacterMap=r;o(_,v=r),_.prototype.parse=function(t){var t=f(t,2),e=t[0],t=t[1];return v.prototype.parse.call(this,[e,"\\"+t])};var v,r=_;function _(){return null!==v&&v.apply(this,arguments)||this}e.DelimiterMap=r;o(x,S=u),x.prototype.parserFor=function(t){t=this.lookup(t);return t?t.func:null},x.prototype.parse=function(t){var t=f(t,2),e=t[0],t=t[1],r=this.lookup(t),t=this.parserFor(t);return r&&t?s(t.apply(void 0,i([e,r.symbol],f(r.args),!1))):null};var S,r=x;function x(t,e,r){var n,o,i=S.call(this,t,null)||this;try{for(var a=m(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,c=e[l],u=f("string"==typeof c?[c]:c),p=u[0],h=u.slice(1),d=new y.Macro(l,r[p],h);i.add(l,d)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i}e.MacroMap=r;o(O,M=r),O.prototype.parse=function(t){var t=f(t,2),e=t[0],t=t[1],r=this.lookup(t),n=this.parserFor(t);if(!r||!n)return null;var o=e.currentCS,t=(e.currentCS="\\"+t,n.apply(void 0,i([e,"\\"+r.symbol],f(r.args),!1)));return e.currentCS=o,s(t)};var M,u=O;function O(){return null!==M&&M.apply(this,arguments)||this}e.CommandMap=u;o(A,E=r),A.prototype.parse=function(t){var t=f(t,2),e=t[0],t=t[1],r=this.lookup(t),t=this.parserFor(t);return r&&t?s(this.parser(e,r.symbol,t,r.args)):null};var E,u=A;function A(t,e,r,n){t=E.call(this,t,r,n)||this;return t.parser=e,t}e.EnvironmentMap=u},6521:function(t,e,r){function n(t,e){void 0===e&&(e=""),this.tag=t=void 0===t?"???":t,this.id=e}function o(t,e,r,n,o,i,a,s){void 0===e&&(e=!1),void 0===r&&(r=!1),void 0===n&&(n=null),void 0===o&&(o=""),void 0===i&&(i=""),void 0===a&&(a=!1),void 0===s&&(s=""),this.env=t=void 0===t?"":t,this.taggable=e,this.defaultTags=r,this.tag=n,this.tagId=o,this.tagFormat=i,this.noTag=a,this.labelId=s}var i,a=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(e,"__esModule",{value:!0}),e.TagsFactory=e.AllTags=e.NoTags=e.AbstractTags=e.TagInfo=e.Label=void 0,l(r(8417))),l=(e.Label=n,e.TagInfo=o,u.prototype.start=function(t,e,r){this.currentTag&&this.stack.push(this.currentTag),this.currentTag=new o(t,e,r)},Object.defineProperty(u.prototype,"env",{get:function(){return this.currentTag.env},enumerable:!1,configurable:!0}),u.prototype.end=function(){this.history.push(this.currentTag),this.currentTag=this.stack.pop()},u.prototype.tag=function(t,e){this.currentTag.tag=t,this.currentTag.tagFormat=e?t:this.formatTag(t),this.currentTag.noTag=!1},u.prototype.notag=function(){this.tag("",!0),this.currentTag.noTag=!0},Object.defineProperty(u.prototype,"noTag",{get:function(){return this.currentTag.noTag},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"label",{get:function(){return this.currentTag.labelId},set:function(t){this.currentTag.labelId=t},enumerable:!1,configurable:!0}),u.prototype.formatUrl=function(t,e){return e+"#"+encodeURIComponent(t)},u.prototype.formatTag=function(t){return"("+t+")"},u.prototype.formatId=function(t){return"mjx-eqn:"+t.replace(/\s/g,"_")},u.prototype.formatNumber=function(t){return t.toString()},u.prototype.autoTag=function(){null==this.currentTag.tag&&(this.counter++,this.tag(this.formatNumber(this.counter),!1))},u.prototype.clearTag=function(){this.label="",this.tag(null,!0),this.currentTag.tagId=""},u.prototype.getTag=function(t){if(t=void 0===t?!1:t)return this.autoTag(),this.makeTag();t=this.currentTag;return t.taggable&&!t.noTag&&(t.defaultTags&&this.autoTag(),t.tag)?this.makeTag():null},u.prototype.resetTag=function(){this.history=[],this.redo=!1,this.refUpdate=!1,this.clearTag()},u.prototype.reset=function(t){void 0===t&&(t=0),this.resetTag(),this.counter=this.allCounter=t,this.allLabels={},this.allIds={}},u.prototype.startEquation=function(t){this.history=[],this.stack=[],this.clearTag(),this.currentTag=new o("",void 0,void 0),this.labels={},this.ids={},this.counter=this.allCounter,this.redo=!1;t=t.inputData.recompile;t&&(this.refUpdate=!0,this.counter=t.counter)},u.prototype.finishEquation=function(t){this.redo&&(t.inputData.recompile={state:t.state(),counter:this.allCounter}),this.refUpdate||(this.allCounter=this.counter),Object.assign(this.allIds,this.ids),Object.assign(this.allLabels,this.labels)},u.prototype.finalize=function(t,e){if(!e.display||this.currentTag.env||null==this.currentTag.tag)return t;e=this.makeTag();return this.enTag(t,e)},u.prototype.makeId=function(){this.currentTag.tagId=this.formatId(this.configuration.options.useLabelIds&&this.label||this.currentTag.tag)},u.prototype.makeTag=function(){this.makeId(),this.label&&(this.labels[this.label]=new n(this.currentTag.tag,this.currentTag.tagId));var t=new c.default("\\text{"+this.currentTag.tagFormat+"}",{},this.configuration).mml();return this.configuration.nodeFactory.create("node","mtd",[t],{id:this.currentTag.tagId})},u);function u(){this.counter=0,this.allCounter=0,this.configuration=null,this.ids={},this.allIds={},this.labels={},this.allLabels={},this.redo=!1,this.refUpdate=!1,this.currentTag=new o,this.history=[],this.stack=[],this.enTag=function(t,e){var r=this.configuration.nodeFactory,t=r.create("node","mtd",[t]),e=r.create("node","mlabeledtr",[e,t]);return r.create("node","mtable",[e],{side:this.configuration.options.tagSide,minlabelspacing:this.configuration.options.tagIndent,displaystyle:!0})}}e.AbstractTags=l;a(h,p=l),h.prototype.autoTag=function(){},h.prototype.getTag=function(){return this.currentTag.tag?p.prototype.getTag.call(this):null};var p,r=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.NoTags=r;a(g,d=l),g.prototype.finalize=function(t,e){if(!e.display||this.history.find(function(t){return t.taggable}))return t;e=this.getTag(!0);return this.enTag(t,e)};var d,f,m,y,a=g;function g(){return null!==d&&d.apply(this,arguments)||this}e.AllTags=a,f=e.TagsFactory||(e.TagsFactory={}),m=new Map([["none",r],["all",a]]),y="none",f.OPTIONS={tags:y,tagSide:"right",tagIndent:"0.8em",useLabelIds:!0,ignoreDuplicateLabels:!1},f.add=function(t,e){m.set(t,e)},f.addTags=function(t){var e,r;try{for(var n=s(Object.keys(t)),o=n.next();!o.done;o=n.next()){var i=o.value;f.add(i,t[i])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},f.create=function(t){t=m.get(t)||m.get(y);if(t)return new t;throw Error("Unknown tags class")},f.setDefault=function(t){y=t},f.getDefault=function(){return f.create(y)}},8317:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.TexConstant=void 0,(e=e.TexConstant||(e.TexConstant={})).Variant={NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALLIGRAPHIC:"-tex-calligraphic",BOLDCALLIGRAPHIC:"-tex-bold-calligraphic",OLDSTYLE:"-tex-oldstyle",BOLDOLDSTYLE:"-tex-bold-oldstyle",MATHITALIC:"-tex-mathit"},e.Form={PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},e.LineBreak={AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},e.LineBreakStyle={BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"},e.IndentAlign={LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"},e.IndentShift={INDENTSHIFT:"indentshift"},e.LineThickness={THIN:"thin",MEDIUM:"medium",THICK:"thick"},e.Notation={LONGDIV:"longdiv",ACTUARIAL:"actuarial",PHASORANGLE:"phasorangle",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",NORTHEASTARROW:"northeastarrow",MADRUWB:"madruwb",UPDIAGONALARROW:"updiagonalarrow"},e.Align={TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"},e.Lines={NONE:"none",SOLID:"solid",DASHED:"dashed"},e.Side={LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},e.Width={AUTO:"auto",FIT:"fit"},e.Actiontype={TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},e.Overflow={LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},e.Unit={EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"}},3971:function(t,e){function a(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];this.id=t,this.message=a.processString(e,r)}Object.defineProperty(e,"__esModule",{value:!0}),a.processString=function(t,e){for(var r=t.split(a.pattern),n=1,o=r.length;n<o;n+=2){var i=r[n].charAt(0);"0"<=i&&i<="9"?(r[n]=e[parseInt(r[n],10)-1],"number"==typeof r[n]&&(r[n]=r[n].toString())):"{"===i&&("0"<=(i=r[n].substr(1))&&i<="9"?(r[n]=e[parseInt(r[n].substr(1,r[n].length-2),10)-1],"number"==typeof r[n]&&(r[n]=r[n].toString())):r[n].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/)&&(r[n]="%"+r[n])),null==r[n]&&(r[n]="???")}return r.join("")},a.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g,e.default=a},8417:function(t,e,r){var u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},a=(Object.defineProperty(e,"__esModule",{value:!0}),n(r(1130))),p=n(r(9497)),s=n(r(3971)),l=r(9007);function c(t,e,r){var n,o;this._string=t,this.configuration=r,this.macroCount=0,this.i=0,this.currentCS="";var i,r=e.hasOwnProperty("isInner"),a=e.isInner;if(delete e.isInner,e){i={};try{for(var s=u(Object.keys(e)),l=s.next();!l.done;l=s.next()){var c=l.value;i[c]=e[c]}}catch(t){n={error:t}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}this.configuration.pushParser(this),this.stack=new p.default(this.itemFactory,i,!r||a),this.Parse(),this.Push(this.itemFactory.create("stop"))}Object.defineProperty(c.prototype,"options",{get:function(){return this.configuration.options},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"itemFactory",{get:function(){return this.configuration.itemFactory},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"tags",{get:function(){return this.configuration.tags},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"string",{get:function(){return this._string},set:function(t){this._string=t},enumerable:!1,configurable:!0}),c.prototype.parse=function(t,e){return this.configuration.handlers.get(t).parse(e)},c.prototype.lookup=function(t,e){return this.configuration.handlers.get(t).lookup(e)},c.prototype.contains=function(t,e){return this.configuration.handlers.get(t).contains(e)},c.prototype.toString=function(){var t,e,r="";try{for(var n=u(Array.from(this.configuration.handlers.keys())),o=n.next();!o.done;o=n.next()){var i=o.value;r+=i+": "+this.configuration.handlers.get(i)+"\n"}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},c.prototype.Parse=function(){for(var t;this.i<this.string.length;)t=this.getCodePoint(),this.i+=t.length,this.parse("character",[this,t])},c.prototype.Push=function(t){t instanceof l.AbstractMmlNode&&t.isInferred?this.PushAll(t.childNodes):this.stack.Push(t)},c.prototype.PushAll=function(t){var e,r;try{for(var n=u(t),o=n.next();!o.done;o=n.next()){var i=o.value;this.stack.Push(i)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},c.prototype.mml=function(){if(!this.stack.Top().isKind("mml"))return null;var t=this.stack.Top().First;return this.configuration.popParser(),t},c.prototype.convertDelimiter=function(t){t=this.lookup("delimiter",t);return t?t.char:null},c.prototype.getCodePoint=function(){var t=this.string.codePointAt(this.i);return void 0===t?"":String.fromCodePoint(t)},c.prototype.nextIsSpace=function(){return!!this.string.charAt(this.i).match(/\s/)},c.prototype.GetNext=function(){for(;this.nextIsSpace();)this.i++;return this.getCodePoint()},c.prototype.GetCS=function(){var t=this.string.slice(this.i).match(/^(([a-z]+) ?|[\uD800-\uDBFF].|.)/i);return t?(this.i+=t[0].length,t[2]||t[1]):(this.i++," ")},c.prototype.GetArgument=function(t,e){switch(this.GetNext()){case"":if(e)return null;throw new s.default("MissingArgFor","Missing argument for %1",this.currentCS);case"}":if(e)return null;throw new s.default("ExtraCloseMissingOpen","Extra close brace or missing open brace");case"\\":return this.i++,"\\"+this.GetCS();case"{":for(var r=++this.i,n=1;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"\\":this.i++;break;case"{":n++;break;case"}":if(0==--n)return this.string.slice(r,this.i-1)}throw new s.default("MissingCloseBrace","Missing close brace")}var o=this.getCodePoint();return this.i+=o.length,o},c.prototype.GetBrackets=function(t,e){if("["!==this.GetNext())return e;for(var r=++this.i,n=0;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"{":n++;break;case"\\":this.i++;break;case"}":if(n--<=0)throw new s.default("ExtraCloseLooking","Extra close brace while looking for %1","']'");break;case"]":if(0===n)return this.string.slice(r,this.i-1)}throw new s.default("MissingCloseBracket","Could not find closing ']' for argument to %1",this.currentCS)},c.prototype.GetDelimiter=function(t,e){var r=this.GetNext();if(this.i+=r.length,this.i<=this.string.length&&("\\"===r?r+=this.GetCS():"{"===r&&e&&(this.i--,r=this.GetArgument(t).trim()),this.contains("delimiter",r)))return this.convertDelimiter(r);throw new s.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},c.prototype.GetDimen=function(t){if("{"===this.GetNext()){var e=this.GetArgument(t),t=o(a.default.matchDimen(e),2),r=t[0],n=t[1];if(r)return r+n}else{e=this.string.slice(this.i),t=o(a.default.matchDimen(e,!0),3),e=(r=t[0],n=t[1],t[2]);if(r)return this.i+=e,r+n}throw new s.default("MissingDimOrUnits","Missing dimension or its units for %1",this.currentCS)},c.prototype.GetUpTo=function(t,e){for(;this.nextIsSpace();)this.i++;for(var r=this.i,n=0;this.i<this.string.length;){var o=this.i,i=this.GetNext();switch(this.i+=i.length,i){case"\\":i+=this.GetCS();break;case"{":n++;break;case"}":if(0===n)throw new s.default("ExtraCloseLooking","Extra close brace while looking for %1",e);n--}if(0===n&&i===e)return this.string.slice(r,o)}throw new s.default("TokenNotFoundForCommand","Could not find %1 for %2",e,this.currentCS)},c.prototype.ParseArg=function(t){return new c(this.GetArgument(t),this.stack.env,this.configuration).mml()},c.prototype.ParseUpTo=function(t,e){return new c(this.GetUpTo(t,e),this.stack.env,this.configuration).mml()},c.prototype.GetDelimiterArg=function(t){t=a.default.trimSpaces(this.GetArgument(t));if(""===t)return null;if(this.contains("delimiter",t))return t;throw new s.default("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)},c.prototype.GetStar=function(){var t="*"===this.GetNext();return t&&this.i++,t},c.prototype.create=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(e=this.configuration.nodeFactory).create.apply(e,i([t],o(r),!1))},e.default=c},8174:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.ActionConfiguration=e.ActionMethods=void 0,r(9899)),i=n(r(8417)),a=r(9140),n=n(r(7693));e.ActionMethods={},e.ActionMethods.Macro=n.default.Macro,e.ActionMethods.Toggle=function(t,e){for(var r,n=[];"\\endtoggle"!==(r=t.GetArgument(e));)n.push(new i.default(r,t.stack.env,t.configuration).mml());t.Push(t.create("node","maction",n,{actiontype:"toggle"}))},e.ActionMethods.Mathtip=function(t,e){var r=t.ParseArg(e),e=t.ParseArg(e);t.Push(t.create("node","maction",[r,e],{actiontype:"tooltip"}))},new a.CommandMap("action-macros",{toggle:"Toggle",mathtip:"Mathtip",texttip:["Macro","\\mathtip{#1}{\\text{#2}}",2]},e.ActionMethods),e.ActionConfiguration=o.Configuration.create("action",{handler:{macro:["action-macros"]}})},8021:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.AmsConfiguration=e.AmsTags=void 0,r(9899)),s=r(2790),l=r(6521),c=r(4387),u=(r(7379),r(9140)),r=(o=l.AbstractTags,i(p,o),p);function p(){return null!==o&&o.apply(this,arguments)||this}e.AmsTags=r,e.AmsConfiguration=a.Configuration.create("ams",{handler:{character:["AMSmath-operatorLetter"],delimiter:["AMSsymbols-delimiter","AMSmath-delimiter"],macro:["AMSsymbols-mathchar0mi","AMSsymbols-mathchar0mo","AMSsymbols-delimiter","AMSsymbols-macros","AMSmath-mathchar0mo","AMSmath-macros","AMSmath-delimiter"],environment:["AMSmath-environment"]},items:((l={})[s.MultlineItem.prototype.kind]=s.MultlineItem,l[s.FlalignItem.prototype.kind]=s.FlalignItem,l),tags:{ams:r},init:function(t){new u.CommandMap(c.NEW_OPS,{},{}),t.append(a.Configuration.local({handler:{macro:[c.NEW_OPS]},priority:-1}))},config:function(t,e){e.parseOptions.options.multlineWidth&&(e.parseOptions.options.ams.multlineWidth=e.parseOptions.options.multlineWidth),delete e.parseOptions.options.multlineWidth},options:{multlineWidth:"",ams:{multlineWidth:"100%",multlineIndent:"1em"}}})},2790:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.FlalignItem=e.MultlineItem=void 0,r(1181)),c=s(r(1130)),u=s(r(1256)),p=s(r(3971)),h=r(8317),s=(o=l.ArrayItem,i(d,o),Object.defineProperty(d.prototype,"kind",{get:function(){return"multline"},enumerable:!1,configurable:!0}),d.prototype.EndEntry=function(){this.table.length&&c.default.fixInitialMO(this.factory.configuration,this.nodes);var t=this.getProperty("shove"),t=this.create("node","mtd",this.nodes,t?{columnalign:t}:{});this.setProperty("shove",null),this.row.push(t),this.Clear()},d.prototype.EndRow=function(){if(1!==this.row.length)throw new p.default("MultlineRowsOneCol","The rows within the %1 environment must have exactly one column","multline");var t=this.create("node","mtr",this.row);this.table.push(t),this.row=[]},d.prototype.EndTable=function(){var t,e,r;o.prototype.EndTable.call(this),this.table.length&&(r=this.table.length-1,t=-1,u.default.getAttribute(u.default.getChildren(this.table[0])[0],"columnalign")||u.default.setAttribute(u.default.getChildren(this.table[0])[0],"columnalign",h.TexConstant.Align.LEFT),u.default.getAttribute(u.default.getChildren(this.table[r])[0],"columnalign")||u.default.setAttribute(u.default.getChildren(this.table[r])[0],"columnalign",h.TexConstant.Align.RIGHT),(r=this.factory.configuration.tags.getTag())&&(t=this.arraydef.side===h.TexConstant.Align.LEFT?0:this.table.length-1,e=this.table[t],r=this.create("node","mlabeledtr",[r].concat(u.default.getChildren(e))),u.default.copyAttributes(e,r),this.table[t]=r)),this.factory.configuration.tags.end()},d);function d(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t=o.call(this,t)||this;return t.factory.configuration.tags.start("multline",!0,e[0]),t}e.MultlineItem=s;f=l.EqnArrayItem,i(m,f),Object.defineProperty(m.prototype,"kind",{get:function(){return"flalign"},enumerable:!1,configurable:!0}),m.prototype.EndEntry=function(){f.prototype.EndEntry.call(this);var t=this.getProperty("xalignat");if(t&&this.row.length>t)throw new p.default("XalignOverflow","Extra %1 in row of %2","&",this.name)},m.prototype.EndRow=function(){for(var t,e=this.row,r=this.getProperty("xalignat");e.length<r;)e.push(this.create("node","mtd"));for(this.row=[],this.padded&&this.row.push(this.create("node","mtd"));t=e.shift();)this.row.push(t),(t=e.shift())&&this.row.push(t),(e.length||this.padded)&&this.row.push(this.create("node","mtd"));this.row.length>this.maxrow&&(this.maxrow=this.row.length),f.prototype.EndRow.call(this);var n,o=this.table[this.table.length-1];this.getProperty("zeroWidthLabel")&&o.isKind("mlabeledtr")&&(o=u.default.getChildren(o)[0],n=this.factory.configuration.options.tagSide,n=a({width:0},"right"===n?{lspace:"-1width"}:{}),n=this.create("node","mpadded",u.default.getChildren(o),n),o.setChildren([n]))},m.prototype.EndTable=function(){f.prototype.EndTable.call(this),this.center&&this.maxrow<=2&&(delete this.arraydef.width,delete this.global.indentalign)};var f,r=m;function m(t,e,r,n,o){t=f.call(this,t)||this;return t.name=e,t.numbered=r,t.padded=n,t.center=o,t.factory.configuration.tags.start(e,r,r),t}e.FlalignItem=r},7379:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),r(4387)),i=i(r(9140)),s=r(8317),l=a(r(5450)),a=a(r(1130)),c=r(9007),r=r(6010);new i.CharacterMap("AMSmath-mathchar0mo",l.default.mathchar0mo,{iiiint:["⨌",{texClass:c.TEXCLASS.OP}]}),new i.RegExpMap("AMSmath-operatorLetter",e.AmsMethods.operatorLetter,/[-*]/i),new i.CommandMap("AMSmath-macros",{mathring:["Accent","02DA"],nobreakspace:"Tilde",negmedspace:["Spacer",r.MATHSPACE.negativemediummathspace],negthickspace:["Spacer",r.MATHSPACE.negativethickmathspace],idotsint:["MultiIntegral","\\int\\cdots\\int"],dddot:["Accent","20DB"],ddddot:["Accent","20DC"],sideset:"SideSet",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",eqref:["HandleRef",!0],substack:["Macro","\\begin{subarray}{c}#1\\end{subarray}",1],injlim:["NamedOp","inj&thinsp;lim"],projlim:["NamedOp","proj&thinsp;lim"],varliminf:["Macro","\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:["Macro","\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:["Macro","\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}"],varprojlim:["Macro","\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}"],DeclareMathOperator:"HandleDeclareOp",operatorname:"HandleOperatorName",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac:["Genfrac","","","","1"],dfrac:["Genfrac","","","","0"],binom:["Genfrac","(",")","0",""],tbinom:["Genfrac","(",")","0","1"],dbinom:["Genfrac","(",")","0","0"],cfrac:"CFrac",shoveleft:["HandleShove",s.TexConstant.Align.LEFT],shoveright:["HandleShove",s.TexConstant.Align.RIGHT],xrightarrow:["xArrow",8594,5,10],xleftarrow:["xArrow",8592,10,5]},e.AmsMethods),new i.EnvironmentMap("AMSmath-environment",l.default.environment,{"equation*":["Equation",null,!1],"eqnarray*":["EqnArray",null,!1,!0,"rcl",a.default.cols(0,r.MATHSPACE.thickmathspace),".5em"],align:["EqnArray",null,!0,!0,"rl",a.default.cols(0,2)],"align*":["EqnArray",null,!1,!0,"rl",a.default.cols(0,2)],multline:["Multline",null,!0],"multline*":["Multline",null,!1],split:["EqnArray",null,!1,!1,"rl",a.default.cols(0)],gather:["EqnArray",null,!0,!0,"c"],"gather*":["EqnArray",null,!1,!0,"c"],alignat:["AlignAt",null,!0,!0],"alignat*":["AlignAt",null,!1,!0],alignedat:["AlignAt",null,!1,!1],aligned:["AmsEqnArray",null,null,null,"rl",a.default.cols(0,2),".5em","D"],gathered:["AmsEqnArray",null,null,null,"c",null,".5em","D"],xalignat:["XalignAt",null,!0,!0],"xalignat*":["XalignAt",null,!1,!0],xxalignat:["XalignAt",null,!1,!1],flalign:["FlalignArray",null,!0,!1,!0,"rlc","auto auto fit"],"flalign*":["FlalignArray",null,!1,!1,!0,"rlc","auto auto fit"],subarray:["Array",null,null,null,null,a.default.cols(0),"0.1em","S",1],smallmatrix:["Array",null,null,null,"c",a.default.cols(1/3),".2em","S",1],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"]},e.AmsMethods),new i.DelimiterMap("AMSmath-delimiter",l.default.delimiter,{"\\lvert":["|",{texClass:c.TEXCLASS.OPEN}],"\\rvert":["|",{texClass:c.TEXCLASS.CLOSE}],"\\lVert":["‖",{texClass:c.TEXCLASS.OPEN}],"\\rVert":["‖",{texClass:c.TEXCLASS.CLOSE}]}),new i.CharacterMap("AMSsymbols-mathchar0mi",l.default.mathchar0mi,{digamma:"ϝ",varkappa:"ϰ",varGamma:["Γ",{mathvariant:s.TexConstant.Variant.ITALIC}],varDelta:["Δ",{mathvariant:s.TexConstant.Variant.ITALIC}],varTheta:["Θ",{mathvariant:s.TexConstant.Variant.ITALIC}],varLambda:["Λ",{mathvariant:s.TexConstant.Variant.ITALIC}],varXi:["Ξ",{mathvariant:s.TexConstant.Variant.ITALIC}],varPi:["Π",{mathvariant:s.TexConstant.Variant.ITALIC}],varSigma:["Σ",{mathvariant:s.TexConstant.Variant.ITALIC}],varUpsilon:["Υ",{mathvariant:s.TexConstant.Variant.ITALIC}],varPhi:["Φ",{mathvariant:s.TexConstant.Variant.ITALIC}],varPsi:["Ψ",{mathvariant:s.TexConstant.Variant.ITALIC}],varOmega:["Ω",{mathvariant:s.TexConstant.Variant.ITALIC}],beth:"ℶ",gimel:"ℷ",daleth:"ℸ",backprime:["‵",{variantForm:!0}],hslash:"ℏ",varnothing:["∅",{variantForm:!0}],blacktriangle:"▴",triangledown:["▽",{variantForm:!0}],blacktriangledown:"▾",square:"◻",Box:"◻",blacksquare:"◼",lozenge:"◊",Diamond:"◊",blacklozenge:"⧫",circledS:["Ⓢ",{mathvariant:s.TexConstant.Variant.NORMAL}],bigstar:"★",sphericalangle:"∢",measuredangle:"∡",nexists:"∄",complement:"∁",mho:"℧",eth:["ð",{mathvariant:s.TexConstant.Variant.NORMAL}],Finv:"Ⅎ",diagup:"╱",Game:"⅁",diagdown:"╲",Bbbk:["k",{mathvariant:s.TexConstant.Variant.DOUBLESTRUCK}],yen:"¥",circledR:"®",checkmark:"✓",maltese:"✠"}),new i.CharacterMap("AMSsymbols-mathchar0mo",l.default.mathchar0mo,{dotplus:"∔",ltimes:"⋉",smallsetminus:["∖",{variantForm:!0}],rtimes:"⋊",Cap:"⋒",doublecap:"⋒",leftthreetimes:"⋋",Cup:"⋓",doublecup:"⋓",rightthreetimes:"⋌",barwedge:"⊼",curlywedge:"⋏",veebar:"⊻",curlyvee:"⋎",doublebarwedge:"⩞",boxminus:"⊟",circleddash:"⊝",boxtimes:"⊠",circledast:"⊛",boxdot:"⊡",circledcirc:"⊚",boxplus:"⊞",centerdot:["⋅",{variantForm:!0}],divideontimes:"⋇",intercal:"⊺",leqq:"≦",geqq:"≧",leqslant:"⩽",geqslant:"⩾",eqslantless:"⪕",eqslantgtr:"⪖",lesssim:"≲",gtrsim:"≳",lessapprox:"⪅",gtrapprox:"⪆",approxeq:"≊",lessdot:"⋖",gtrdot:"⋗",lll:"⋘",llless:"⋘",ggg:"⋙",gggtr:"⋙",lessgtr:"≶",gtrless:"≷",lesseqgtr:"⋚",gtreqless:"⋛",lesseqqgtr:"⪋",gtreqqless:"⪌",doteqdot:"≑",Doteq:"≑",eqcirc:"≖",risingdotseq:"≓",circeq:"≗",fallingdotseq:"≒",triangleq:"≜",backsim:"∽",thicksim:["∼",{variantForm:!0}],backsimeq:"⋍",thickapprox:["≈",{variantForm:!0}],subseteqq:"⫅",supseteqq:"⫆",Subset:"⋐",Supset:"⋑",sqsubset:"⊏",sqsupset:"⊐",preccurlyeq:"≼",succcurlyeq:"≽",curlyeqprec:"⋞",curlyeqsucc:"⋟",precsim:"≾",succsim:"≿",precapprox:"⪷",succapprox:"⪸",vartriangleleft:"⊲",lhd:"⊲",vartriangleright:"⊳",rhd:"⊳",trianglelefteq:"⊴",unlhd:"⊴",trianglerighteq:"⊵",unrhd:"⊵",vDash:["⊨",{variantForm:!0}],Vdash:"⊩",Vvdash:"⊪",smallsmile:["⌣",{variantForm:!0}],shortmid:["∣",{variantForm:!0}],smallfrown:["⌢",{variantForm:!0}],shortparallel:["∥",{variantForm:!0}],bumpeq:"≏",between:"≬",Bumpeq:"≎",pitchfork:"⋔",varpropto:["∝",{variantForm:!0}],backepsilon:"∍",blacktriangleleft:"◂",blacktriangleright:"▸",therefore:"∴",because:"∵",eqsim:"≂",vartriangle:["△",{variantForm:!0}],Join:"⋈",nless:"≮",ngtr:"≯",nleq:"≰",ngeq:"≱",nleqslant:["⪇",{variantForm:!0}],ngeqslant:["⪈",{variantForm:!0}],nleqq:["≰",{variantForm:!0}],ngeqq:["≱",{variantForm:!0}],lneq:"⪇",gneq:"⪈",lneqq:"≨",gneqq:"≩",lvertneqq:["≨",{variantForm:!0}],gvertneqq:["≩",{variantForm:!0}],lnsim:"⋦",gnsim:"⋧",lnapprox:"⪉",gnapprox:"⪊",nprec:"⊀",nsucc:"⊁",npreceq:["⋠",{variantForm:!0}],nsucceq:["⋡",{variantForm:!0}],precneqq:"⪵",succneqq:"⪶",precnsim:"⋨",succnsim:"⋩",precnapprox:"⪹",succnapprox:"⪺",nsim:"≁",ncong:"≇",nshortmid:["∤",{variantForm:!0}],nshortparallel:["∦",{variantForm:!0}],nmid:"∤",nparallel:"∦",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",ntriangleleft:"⋪",ntriangleright:"⋫",ntrianglelefteq:"⋬",ntrianglerighteq:"⋭",nsubseteq:"⊈",nsupseteq:"⊉",nsubseteqq:["⊈",{variantForm:!0}],nsupseteqq:["⊉",{variantForm:!0}],subsetneq:"⊊",supsetneq:"⊋",varsubsetneq:["⊊",{variantForm:!0}],varsupsetneq:["⊋",{variantForm:!0}],subsetneqq:"⫋",supsetneqq:"⫌",varsubsetneqq:["⫋",{variantForm:!0}],varsupsetneqq:["⫌",{variantForm:!0}],leftleftarrows:"⇇",rightrightarrows:"⇉",leftrightarrows:"⇆",rightleftarrows:"⇄",Lleftarrow:"⇚",Rrightarrow:"⇛",twoheadleftarrow:"↞",twoheadrightarrow:"↠",leftarrowtail:"↢",rightarrowtail:"↣",looparrowleft:"↫",looparrowright:"↬",leftrightharpoons:"⇋",rightleftharpoons:["⇌",{variantForm:!0}],curvearrowleft:"↶",curvearrowright:"↷",circlearrowleft:"↺",circlearrowright:"↻",Lsh:"↰",Rsh:"↱",upuparrows:"⇈",downdownarrows:"⇊",upharpoonleft:"↿",upharpoonright:"↾",downharpoonleft:"⇃",restriction:"↾",multimap:"⊸",downharpoonright:"⇂",leftrightsquigarrow:"↭",rightsquigarrow:"⇝",leadsto:"⇝",dashrightarrow:"⇢",dashleftarrow:"⇠",nleftarrow:"↚",nrightarrow:"↛",nLeftarrow:"⇍",nRightarrow:"⇏",nleftrightarrow:"↮",nLeftrightarrow:"⇎"}),new i.DelimiterMap("AMSsymbols-delimiter",l.default.delimiter,{"\\ulcorner":"⌜","\\urcorner":"⌝","\\llcorner":"⌞","\\lrcorner":"⌟"}),new i.CommandMap("AMSsymbols-macros",{implies:["Macro","\\;\\Longrightarrow\\;"],impliedby:["Macro","\\;\\Longleftarrow\\;"]},e.AmsMethods)},4387:function(t,u,e){var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},p=(Object.defineProperty(u,"__esModule",{value:!0}),u.NEW_OPS=u.AmsMethods=void 0,r(e(1130))),n=r(e(5450)),l=r(e(1256)),i=e(8317),a=r(e(8417)),h=r(e(3971)),c=e(8803),d=r(e(7693)),f=e(9007);function m(t){if(!t||t.isInferred&&0===t.childNodes.length)return[null,null];if(t.isKind("msubsup")&&y(t))return[t,null];var e=l.default.getChildAt(t,0);return t.isInferred&&e&&y(e)?(t.childNodes.splice(0,1),[e,t]):[null,t]}function y(t){t=t.childNodes[0];return t&&t.isKind("mi")&&""===t.getText()}u.AmsMethods={},u.AmsMethods.AmsEqnArray=function(t,e,r,n,o,i,a){var s=t.GetBrackets("\\begin{"+e.getName()+"}"),t=d.default.EqnArray(t,e,r,n,o,i,a);return p.default.setArrayAlign(t,s)},u.AmsMethods.AlignAt=function(t,e,r,n){var o,i=e.getName(),a="",s=[];if(n||(o=t.GetBrackets("\\begin{"+i+"}")),(c=t.GetArgument("\\begin{"+i+"}")).match(/[^0-9]/))throw new h.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+i+"}");for(var l=parseInt(c,10);0<l;)a+="rl",s.push("0em 0em"),l--;i=s.join(" ");if(n)return u.AmsMethods.EqnArray(t,e,r,n,a,i);var c=u.AmsMethods.EqnArray(t,e,r,n,a,i);return p.default.setArrayAlign(c,o)},u.AmsMethods.Multline=function(t,e,r){t.Push(e),p.default.checkEqnEnv(t);e=t.itemFactory.create("multline",r,t.stack);return e.arraydef={displaystyle:!0,rowspacing:".5em",columnspacing:"100%",width:t.options.ams.multlineWidth,side:t.options.tagSide,minlabelspacing:t.options.tagIndent,framespacing:t.options.ams.multlineIndent+" 0",frame:"","data-width-includes-label":!0},e},u.AmsMethods.XalignAt=function(t,e,r,n){var o=t.GetArgument("\\begin{"+e.getName()+"}");if(o.match(/[^0-9]/))throw new h.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+e.getName()+"}");t=u.AmsMethods.FlalignArray(t,e,r,n,!1,n?"crl":"rlc",n?"fit auto auto":"auto auto fit",!0);return t.setProperty("xalignat",2*parseInt(o)),t},u.AmsMethods.FlalignArray=function(t,e,r,n,o,i,a,s){void 0===s&&(s=!1),t.Push(e),p.default.checkEqnEnv(t),i=i.split("").join(" ").replace(/r/g,"right").replace(/l/g,"left").replace(/c/g,"center");e=t.itemFactory.create("flalign",e.getName(),r,n,o,t.stack);return e.arraydef={width:"100%",displaystyle:!0,columnalign:i,columnspacing:"0em",columnwidth:a,rowspacing:"3pt",side:t.options.tagSide,minlabelspacing:s?"0":t.options.tagIndent,"data-width-includes-label":!0},e.setProperty("zeroWidthLabel",s),e},u.NEW_OPS="ams-declare-ops",u.AmsMethods.HandleDeclareOp=function(t,e){var r=t.GetStar()?"*":"",n=p.default.trimSpaces(t.GetArgument(e)),e=("\\"===n.charAt(0)&&(n=n.substr(1)),t.GetArgument(e));t.configuration.handlers.retrieve(u.NEW_OPS).add(n,new c.Macro(n,u.AmsMethods.Macro,["\\operatorname".concat(r,"{").concat(e,"}")]))},u.AmsMethods.HandleOperatorName=function(t,e){var r,n=t.GetStar(),e=p.default.trimSpaces(t.GetArgument(e)),e=new a.default(e,o(o({},t.stack.env),{font:i.TexConstant.Variant.NORMAL,multiLetterIdentifiers:/^[-*a-z]+/i,operatorLetters:!0}),t.configuration).mml();e.isKind("mi")||(e=t.create("node","TeXAtom",[e])),l.default.setProperties(e,{movesupsub:n,movablelimits:!0,texClass:f.TEXCLASS.OP}),n||(n=t.GetNext(),r=t.i,"\\"===n&&++t.i&&"limits"!==t.GetCS()&&(t.i=r)),t.Push(e)},u.AmsMethods.SideSet=function(t,e){var r=s(m(t.ParseArg(e)),2),n=r[0],r=r[1],o=s(m(t.ParseArg(e)),2),i=o[0],o=o[1],e=t.ParseArg(e),a=e,e=(n&&(r?n.replaceChild(t.create("node","mphantom",[t.create("node","mpadded",[p.default.copyNode(e,t)],{width:0})]),l.default.getChildAt(n,0)):(a=t.create("node","mmultiscripts",[e]),i&&l.default.appendChildren(a,[l.default.getChildAt(i,1)||t.create("node","none"),l.default.getChildAt(i,2)||t.create("node","none")]),l.default.setProperty(a,"scriptalign","left"),l.default.appendChildren(a,[t.create("node","mprescripts"),l.default.getChildAt(n,1)||t.create("node","none"),l.default.getChildAt(n,2)||t.create("node","none")]))),i&&a===e&&(i.replaceChild(e,l.default.getChildAt(i,0)),a=i),t.create("node","TeXAtom",[],{texClass:f.TEXCLASS.OP,movesupsub:!0,movablelimits:!0}));r&&(n&&e.appendChild(n),e.appendChild(r)),e.appendChild(a),o&&e.appendChild(o),t.Push(e)},u.AmsMethods.operatorLetter=function(t,e){return!!t.stack.env.operatorLetters&&n.default.variable(t,e)},u.AmsMethods.MultiIntegral=function(t,e,r){var n,o=t.GetNext();"\\"===o&&(n=t.i,o=t.GetArgument(e),t.i=n,"\\limits"===o&&(r="\\idotsint"===e?"\\!\\!\\mathop{\\,\\,"+r+"}":"\\!\\!\\!\\mathop{\\,\\,\\,"+r+"}")),t.string=r+" "+t.string.slice(t.i),t.i=0},u.AmsMethods.xArrow=function(t,e,r,n,o){var o={width:"+"+p.default.Em((n+o)/18),lspace:p.default.Em(n/18)},n=t.GetBrackets(e),e=t.ParseArg(e),i=t.create("node","mspace",[],{depth:".25em"}),r=t.create("token","mo",{stretchy:!0,texClass:f.TEXCLASS.REL},String.fromCodePoint(r)),r=t.create("node","mstyle",[r],{scriptlevel:0}),r=t.create("node","munderover",[r]),e=t.create("node","mpadded",[e,i],o);l.default.setAttribute(e,"voffset","-.2em"),l.default.setAttribute(e,"height","-.2em"),l.default.setChild(r,r.over,e),n&&(i=new a.default(n,t.stack.env,t.configuration).mml(),n=t.create("node","mspace",[],{height:".75em"}),e=t.create("node","mpadded",[i,n],o),l.default.setAttribute(e,"voffset",".15em"),l.default.setAttribute(e,"depth","-.15em"),l.default.setChild(r,r.under,e)),l.default.setProperty(r,"subsupOK",!0),t.Push(r)},u.AmsMethods.HandleShove=function(t,e,r){var n=t.stack.Top();if("multline"!==n.kind)throw new h.default("CommandOnlyAllowedInEnv","%1 only allowed in %2 environment",t.currentCS,"multline");if(n.Size())throw new h.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",t.currentCS);n.setProperty("shove",r)},u.AmsMethods.CFrac=function(t,e){var r=p.default.trimSpaces(t.GetBrackets(e,"")),n=t.GetArgument(e),e=t.GetArgument(e),o={l:i.TexConstant.Align.LEFT,r:i.TexConstant.Align.RIGHT,"":""},n=new a.default("\\strut\\textstyle{"+n+"}",t.stack.env,t.configuration).mml(),e=new a.default("\\strut\\textstyle{"+e+"}",t.stack.env,t.configuration).mml(),n=t.create("node","mfrac",[n,e]);if(null==(r=o[r]))throw new h.default("IllegalAlign","Illegal alignment specified in %1",t.currentCS);r&&l.default.setProperties(n,{numalign:r,denomalign:r}),t.Push(n)},u.AmsMethods.Genfrac=function(t,e,r,n,o,i){null==r&&(r=t.GetDelimiterArg(e)),null==n&&(n=t.GetDelimiterArg(e)),null==o&&(o=t.GetArgument(e)),null==i&&(i=p.default.trimSpaces(t.GetArgument(e)));var a=t.ParseArg(e),e=t.ParseArg(e),a=t.create("node","mfrac",[a,e]);if(""!==o&&l.default.setAttribute(a,"linethickness",o),(r||n)&&(l.default.setProperty(a,"withDelims",!0),a=p.default.fixedFence(t.configuration,r,a,n)),""!==i){e=parseInt(i,10),o=["D","T","S","SS"][e];if(null==o)throw new h.default("BadMathStyleFor","Bad math style for %1",t.currentCS);a=t.create("node","mstyle",[a]),"D"===o?l.default.setProperties(a,{displaystyle:!0,scriptlevel:0}):l.default.setProperties(a,{displaystyle:!1,scriptlevel:e-1})}t.Push(a)},u.AmsMethods.HandleTag=function(t,e){if(!t.tags.currentTag.taggable&&t.tags.env)throw new h.default("CommandNotAllowedInEnv","%1 not allowed in %2 environment",t.currentCS,t.tags.env);if(t.tags.currentTag.tag)throw new h.default("MultipleCommand","Multiple %1",t.currentCS);var r=t.GetStar(),e=p.default.trimSpaces(t.GetArgument(e));t.tags.tag(e,r)},u.AmsMethods.HandleNoTag=d.default.HandleNoTag,u.AmsMethods.HandleRef=d.default.HandleRef,u.AmsMethods.Macro=d.default.Macro,u.AmsMethods.Accent=d.default.Accent,u.AmsMethods.Tilde=d.default.Tilde,u.AmsMethods.Array=d.default.Array,u.AmsMethods.Spacer=d.default.Spacer,u.AmsMethods.NamedOp=d.default.NamedOp,u.AmsMethods.EqnArray=d.default.EqnArray,u.AmsMethods.Equation=d.default.Equation},583:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AmsCdConfiguration=void 0;var n=r(9899);r(8289),e.AmsCdConfiguration=n.Configuration.create("amscd",{handler:{character:["amscd_special"],macro:["amscd_macros"],environment:["amscd_environment"]},options:{amscd:{colspace:"5pt",rowspace:"5pt",harrowsize:"2.75em",varrowsize:"1.75em",hideHorizontalLabels:!1}}})},8289:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),i(r(9140))),i=a(r(5450)),a=a(r(7819));new e.EnvironmentMap("amscd_environment",i.default.environment,{CD:"CD"},a.default),new e.CommandMap("amscd_macros",{minCDarrowwidth:"minCDarrowwidth",minCDarrowheight:"minCDarrowheight"},a.default),new e.MacroMap("amscd_special",{"@":"arrow"},a.default)},7819:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},p=(Object.defineProperty(e,"__esModule",{value:!0}),n(r(8417))),h=r(2942),d=r(9007),f=n(r(1256)),m={CD:function(t,e){t.Push(e);var e=t.itemFactory.create("array"),r=t.configuration.options.amscd;return e.setProperties({minw:t.stack.env.CD_minw||r.harrowsize,minh:t.stack.env.CD_minh||r.varrowsize}),e.arraydef={columnalign:"center",columnspacing:r.colspace,rowspacing:r.rowspace,displaystyle:!0},e},arrow:function(t,e){var r=t.string.charAt(t.i);if(!r.match(/[><VA.|=]/))return(0,h.Other)(t,e);t.i++;var n=t.stack.Top();n.isKind("array")&&!n.Size()||(m.cell(t,e),n=t.stack.Top());for(var o=n.table.length%2==1,i=(n.row.length+(o?0:1))%2;i;)m.cell(t,e),i--;var a,s,l,c,o={minsize:n.getProperty("minw"),stretchy:!0},u={minsize:n.getProperty("minh"),stretchy:!0,symmetric:!0,lspace:0,rspace:0};"."!==r&&("|"===r?c=t.create("token","mo",u,"∥"):"="===r?c=t.create("token","mo",o,"="):(a={">":"→","<":"←",V:"↓",A:"↑"}[r],s=t.GetUpTo(e+r,r),l=t.GetUpTo(e+r,r),">"===r||"<"===r?(c=t.create("token","mo",o,a),((s=s||"\\kern "+n.getProperty("minw"))||l)&&(r={width:"+.67em",lspace:".33em"},c=t.create("node","munderover",[c]),s&&(o=new p.default(s,t.stack.env,t.configuration).mml(),n=t.create("node","mpadded",[o],r),f.default.setAttribute(n,"voffset",".1em"),f.default.setChild(c,c.over,n)),l&&(o=new p.default(l,t.stack.env,t.configuration).mml(),f.default.setChild(c,c.under,t.create("node","mpadded",[o],r))),t.configuration.options.amscd.hideHorizontalLabels&&(c=t.create("node","mpadded",c,{depth:0,height:".67em"})))):(c=n=t.create("token","mo",u,a),(s||l)&&(c=t.create("node","mrow"),s&&f.default.appendChildren(c,[new p.default("\\scriptstyle\\llap{"+s+"}",t.stack.env,t.configuration).mml()]),n.texClass=d.TEXCLASS.ORD,f.default.appendChildren(c,[n]),l&&f.default.appendChildren(c,[new p.default("\\scriptstyle\\rlap{"+l+"}",t.stack.env,t.configuration).mml()]))))),c&&t.Push(c),m.cell(t,e)},cell:function(t,e){var r=t.stack.Top();(r.table||[]).length%2==0&&0===(r.row||[]).length&&t.Push(t.create("node","mpadded",[],{height:"8.5pt",depth:"2pt"})),t.Push(t.itemFactory.create("cell").setProperties({isEntry:!0,name:e}))},minCDarrowwidth:function(t,e){t.stack.env.CD_minw=t.GetDimen(e)},minCDarrowheight:function(t,e){t.stack.env.CD_minh=t.GetDimen(e)}};e.default=m},1275:function(t,e,r){var E=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},A=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=(Object.defineProperty(e,"__esModule",{value:!0}),e.AutoloadConfiguration=void 0,r(9899)),o=r(9140),C=r(8803),w=r(7741),y=r(265),i=r(7233);function T(t,e,r,n){var o,i,a,s;if(y.Package.packages.has(t.options.require.prefix+r)){var l=t.options.autoload[r],l=E(2===l.length&&Array.isArray(l[0])?l:[l,[]],2),c=l[0],l=l[1];try{for(var u=A(c),p=u.next();!p.done;p=u.next()){var h=p.value;N.remove(h)}}catch(t){o={error:t}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}try{for(var d=A(l),f=d.next();!f.done;f=d.next()){var m=f.value;L.remove(m)}}catch(t){a={error:t}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}t.string=(n?e+" ":"\\begin{"+e.slice(1)+"}")+t.string.slice(t.i),t.i=0}(0,w.RequireLoad)(t,r)}var N=new o.CommandMap("autoload-macros",{},{}),L=new o.CommandMap("autoload-environments",{},{});e.AutoloadConfiguration=n.Configuration.create("autoload",{handler:{macro:["autoload-macros"],environment:["autoload-environments"]},options:{autoload:(0,i.expandable)({action:["toggle","mathtip","texttip"],amscd:[[],["CD"]],bbox:["bbox"],boldsymbol:["boldsymbol"],braket:["bra","ket","braket","set","Bra","Ket","Braket","Set","ketbra","Ketbra"],bussproofs:[[],["prooftree"]],cancel:["cancel","bcancel","xcancel","cancelto"],color:["color","definecolor","textcolor","colorbox","fcolorbox"],enclose:["enclose"],extpfeil:["xtwoheadrightarrow","xtwoheadleftarrow","xmapsto","xlongequal","xtofrom","Newextarrow"],html:["href","class","style","cssId"],mhchem:["ce","pu"],newcommand:["newcommand","renewcommand","newenvironment","renewenvironment","def","let"],unicode:["unicode"],verb:["verb"]})},config:function(t,e){var r,n,o,i,a,s,l=e.parseOptions,c=l.handlers.get("macro"),u=l.handlers.get("environment"),p=l.options.autoload;l.packageData.set("autoload",{Autoload:T});try{for(var h=A(Object.keys(p)),d=h.next();!d.done;d=h.next()){var f=d.value,m=p[f],y=E(2===m.length&&Array.isArray(m[0])?m:[m,[]],2),g=y[0],b=y[1];try{o=void 0;for(var v=A(g),_=v.next();!_.done;_=v.next()){var S=_.value;c.lookup(S)&&"color"!==S||N.add(S,new C.Macro(S,T,[f,!0]))}}catch(t){o={error:t}}finally{try{_&&!_.done&&(i=v.return)&&i.call(v)}finally{if(o)throw o.error}}try{a=void 0;for(var x=A(b),M=x.next();!M.done;M=x.next()){var O=M.value;u.lookup(O)||L.add(O,new C.Macro(O,T,[f,!1]))}}catch(t){a={error:t}}finally{try{M&&!M.done&&(s=x.return)&&s.call(x)}finally{if(a)throw a.error}}}}catch(t){r={error:t}}finally{try{d&&!d.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}l.packageData.get("require")||w.RequireConfiguration.config(t,e)},init:function(t){t.options.require||(0,i.defaultOptions)(t.options,w.RequireConfiguration.options)},priority:10})},2942:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return a(e,t),e},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.BaseConfiguration=e.BaseTags=e.Other=void 0,r(9899)),p=r(2947),h=l(r(3971)),d=l(r(1256)),l=r(9140),s=s(r(1181)),f=r(6521),m=(r(1267),r(4082));function y(t,e){var r=t.stack.env.font?{mathvariant:t.stack.env.font}:{},n=p.MapHandler.getMap("remap").lookup(e),o=(0,m.getRange)(e),i=o?o[3]:"mo",r=t.create("token",i,r,n?n.char:e);o[4]&&r.attributes.set("mathvariant",o[4]),"mo"===i&&(d.default.setProperty(r,"fixStretchy",!0),t.configuration.addNode("fixStretchy",r)),t.Push(r)}new l.CharacterMap("remap",null,{"-":"−","*":"∗","`":"‘"}),e.Other=y;g=f.AbstractTags,o(b,g);var g,r=b;function b(){return null!==g&&g.apply(this,arguments)||this}e.BaseTags=r,e.BaseConfiguration=u.Configuration.create("base",{handler:{character:["command","special","letter","digit"],delimiter:["delimiter"],macro:["delimiter","macros","mathchar0mi","mathchar0mo","mathchar7"],environment:["environment"]},fallback:{character:y,macro:function(t,e){throw new h.default("UndefinedControlSequence","Undefined control sequence %1","\\"+e)},environment:function(t,e){throw new h.default("UnknownEnv","Unknown environment '%1'",e)}},items:((l={})[s.StartItem.prototype.kind]=s.StartItem,l[s.StopItem.prototype.kind]=s.StopItem,l[s.OpenItem.prototype.kind]=s.OpenItem,l[s.CloseItem.prototype.kind]=s.CloseItem,l[s.PrimeItem.prototype.kind]=s.PrimeItem,l[s.SubsupItem.prototype.kind]=s.SubsupItem,l[s.OverItem.prototype.kind]=s.OverItem,l[s.LeftItem.prototype.kind]=s.LeftItem,l[s.Middle.prototype.kind]=s.Middle,l[s.RightItem.prototype.kind]=s.RightItem,l[s.BeginItem.prototype.kind]=s.BeginItem,l[s.EndItem.prototype.kind]=s.EndItem,l[s.StyleItem.prototype.kind]=s.StyleItem,l[s.PositionItem.prototype.kind]=s.PositionItem,l[s.CellItem.prototype.kind]=s.CellItem,l[s.MmlItem.prototype.kind]=s.MmlItem,l[s.FnItem.prototype.kind]=s.FnItem,l[s.NotItem.prototype.kind]=s.NotItem,l[s.NonscriptItem.prototype.kind]=s.NonscriptItem,l[s.DotsItem.prototype.kind]=s.DotsItem,l[s.ArrayItem.prototype.kind]=s.ArrayItem,l[s.EqnArrayItem.prototype.kind]=s.EqnArrayItem,l[s.EquationItem.prototype.kind]=s.EquationItem,l),options:{maxMacros:1e3,baseURL:"undefined"==typeof document||0===document.getElementsByTagName("base").length?"":String(document.location).replace(/#.*$/,"")},tags:{base:r},postprocessors:[[function(t){var e,r,n=t.data;try{for(var o=c(n.getList("nonscript")),i=o.next();!i.done;i=o.next()){var a,s,l=i.value;0<l.attributes.get("scriptlevel")?((a=l.parent).childNodes.splice(a.childIndex(l),1),n.removeFromList(l.kind,[l]),l.isKind("mrow")&&(s=l.childNodes[0],n.removeFromList("mstyle",[s]),n.removeFromList("mspace",s.childNodes[0].childNodes))):l.isKind("mrow")&&(l.parent.replaceChild(l.childNodes[0],l),n.removeFromList("mrow",[l]))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},-4]]})},1181:function(j,t,e){var B,r,n=this&&this.__extends||(B=function(t,e){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}B(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},D=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},F=(Object.defineProperty(t,"__esModule",{value:!0}),t.EquationItem=t.EqnArrayItem=t.ArrayItem=t.DotsItem=t.NonscriptItem=t.NotItem=t.FnItem=t.MmlItem=t.CellItem=t.PositionItem=t.StyleItem=t.EndItem=t.BeginItem=t.RightItem=t.Middle=t.LeftItem=t.OverItem=t.SubsupItem=t.PrimeItem=t.CloseItem=t.OpenItem=t.StopItem=t.StartItem=void 0,e(2947)),H=e(5368),a=e(9007),s=i(e(3971)),l=i(e(1130)),c=i(e(1256)),u=e(8292),i=(r=u.BaseItem,n(p,r),Object.defineProperty(p.prototype,"kind",{get:function(){return"start"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),p.prototype.checkItem=function(t){var e;return t.isKind("stop")?(e=this.toMml(),this.global.isInner||(e=this.factory.configuration.tags.finalize(e,this.env)),[[this.factory.create("mml",e)],!0]):r.prototype.checkItem.call(this,t)},p);function p(t,e){t=r.call(this,t)||this;return t.global=e,t}t.StartItem=i;h=u.BaseItem,n(d,h),Object.defineProperty(d.prototype,"kind",{get:function(){return"stop"},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0});var h,e=d;function d(){return null!==h&&h.apply(this,arguments)||this}t.StopItem=e;f=u.BaseItem,n(m,f),Object.defineProperty(m.prototype,"kind",{get:function(){return"open"},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),m.prototype.checkItem=function(t){var e;return t.isKind("close")?(e=this.toMml(),e=this.create("node","TeXAtom",[e]),[[this.factory.create("mml",e)],!0]):f.prototype.checkItem.call(this,t)},m.errors=Object.assign(Object.create(u.BaseItem.errors),{stop:["ExtraOpenMissingClose","Extra open brace or missing close brace"]});var f,i=m;function m(){return null!==f&&f.apply(this,arguments)||this}t.OpenItem=i;y=u.BaseItem,n(g,y),Object.defineProperty(g.prototype,"kind",{get:function(){return"close"},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0});var y,e=g;function g(){return null!==y&&y.apply(this,arguments)||this}t.CloseItem=e;b=u.BaseItem,n(v,b),Object.defineProperty(v.prototype,"kind",{get:function(){return"prime"},enumerable:!1,configurable:!0}),v.prototype.checkItem=function(t){var e=o(this.Peek(2),2),r=e[0],e=e[1];return!c.default.isType(r,"msubsup")||c.default.isType(r,"msup")?[[this.create("node","msup",[r,e]),t],!0]:(c.default.setChild(r,r.sup,e),[[r,t],!0])};var b,i=v;function v(){return null!==b&&b.apply(this,arguments)||this}t.PrimeItem=i;_=u.BaseItem,n(S,_),Object.defineProperty(S.prototype,"kind",{get:function(){return"subsup"},enumerable:!1,configurable:!0}),S.prototype.checkItem=function(t){if(t.isKind("open")||t.isKind("left"))return u.BaseItem.success;var e,r=this.First,n=this.getProperty("position");if(t.isKind("mml"))return this.getProperty("primes")&&(2!==n?c.default.setChild(r,2,this.getProperty("primes")):(c.default.setProperty(this.getProperty("primes"),"variantForm",!0),e=this.create("node","mrow",[this.getProperty("primes"),t.First]),t.First=e)),c.default.setChild(r,n,t.First),null!=this.getProperty("movesupsub")&&c.default.setProperty(r,"movesupsub",this.getProperty("movesupsub")),[[this.factory.create("mml",r)],!0];if(_.prototype.checkItem.call(this,t)[1])throw e=this.getErrors(["","sub","sup"][n]),new(s.default.bind.apply(s.default,D([void 0,e[0],e[1]],o(e.splice(2)),!1)));return null},S.errors=Object.assign(Object.create(u.BaseItem.errors),{stop:["MissingScript","Missing superscript or subscript argument"],sup:["MissingOpenForSup","Missing open brace for superscript"],sub:["MissingOpenForSub","Missing open brace for subscript"]});var _,e=S;function S(){return null!==_&&_.apply(this,arguments)||this}t.SubsupItem=e;x=u.BaseItem,n(M,x),Object.defineProperty(M.prototype,"kind",{get:function(){return"over"},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0}),M.prototype.checkItem=function(t){if(t.isKind("over"))throw new s.default("AmbiguousUseOf","Ambiguous use of %1",t.getName());var e;return t.isClose?(e=this.create("node","mfrac",[this.getProperty("num"),this.toMml(!1)]),null!=this.getProperty("thickness")&&c.default.setAttribute(e,"linethickness",this.getProperty("thickness")),(this.getProperty("open")||this.getProperty("close"))&&(c.default.setProperty(e,"withDelims",!0),e=l.default.fixedFence(this.factory.configuration,this.getProperty("open"),e,this.getProperty("close"))),[[this.factory.create("mml",e),t],!0]):x.prototype.checkItem.call(this,t)},M.prototype.toString=function(){return"over["+this.getProperty("num")+" / "+this.nodes.join("; ")+"]"};var x,i=M;function M(t){t=x.call(this,t)||this;return t.setProperty("name","\\over"),t}t.OverItem=i;O=u.BaseItem,n(E,O),Object.defineProperty(E.prototype,"kind",{get:function(){return"left"},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),E.prototype.checkItem=function(t){return t.isKind("right")?[[this.factory.create("mml",l.default.fenced(this.factory.configuration,this.getProperty("delim"),this.toMml(),t.getProperty("delim"),"",t.getProperty("color")))],!0]:t.isKind("middle")?(e={stretchy:!0},t.getProperty("color")&&(e.mathcolor=t.getProperty("color")),this.Push(this.create("node","TeXAtom",[],{texClass:a.TEXCLASS.CLOSE}),this.create("token","mo",e,t.getProperty("delim")),this.create("node","TeXAtom",[],{texClass:a.TEXCLASS.OPEN})),this.env={},[[this],!0]):O.prototype.checkItem.call(this,t);var e},E.errors=Object.assign(Object.create(u.BaseItem.errors),{stop:["ExtraLeftMissingRight","Extra \\left or missing \\right"]});var O,e=E;function E(t,e){t=O.call(this,t)||this;return t.setProperty("delim",e),t}t.LeftItem=e;q=u.BaseItem,n(A,q),Object.defineProperty(A.prototype,"kind",{get:function(){return"middle"},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0});var q,i=A;function A(t,e,r){t=q.call(this,t)||this;return t.setProperty("delim",e),r&&t.setProperty("color",r),t}t.Middle=i;U=u.BaseItem,n(G,U),Object.defineProperty(G.prototype,"kind",{get:function(){return"right"},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0});var U,e=G;function G(t,e,r){t=U.call(this,t)||this;return t.setProperty("delim",e),r&&t.setProperty("color",r),t}t.RightItem=e;C=u.BaseItem,n(w,C),Object.defineProperty(w.prototype,"kind",{get:function(){return"begin"},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),w.prototype.checkItem=function(t){if(t.isKind("end")){if(t.getName()!==this.getName())throw new s.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),t.getName());return this.getProperty("end")?u.BaseItem.fail:[[this.factory.create("mml",this.toMml())],!0]}if(t.isKind("stop"))throw new s.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return C.prototype.checkItem.call(this,t)};var C,i=w;function w(){return null!==C&&C.apply(this,arguments)||this}t.BeginItem=i;V=u.BaseItem,n(X,V),Object.defineProperty(X.prototype,"kind",{get:function(){return"end"},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0});var V,e=X;function X(){return null!==V&&V.apply(this,arguments)||this}t.EndItem=e;T=u.BaseItem,n(W,T),Object.defineProperty(W.prototype,"kind",{get:function(){return"style"},enumerable:!1,configurable:!0}),W.prototype.checkItem=function(t){if(!t.isClose)return T.prototype.checkItem.call(this,t);var e=this.create("node","mstyle",this.nodes,this.getProperty("styles"));return[[this.factory.create("mml",e),t],!0]};var T,i=W;function W(){return null!==T&&T.apply(this,arguments)||this}t.StyleItem=i;N=u.BaseItem,n(z,N),Object.defineProperty(z.prototype,"kind",{get:function(){return"position"},enumerable:!1,configurable:!0}),z.prototype.checkItem=function(t){if(t.isClose)throw new s.default("MissingBoxFor","Missing box for %1",this.getName());if(t.isFinal){var e=t.toMml();switch(this.getProperty("move")){case"vertical":return e=this.create("node","mpadded",[e],{height:this.getProperty("dh"),depth:this.getProperty("dd"),voffset:this.getProperty("dh")}),[[this.factory.create("mml",e)],!0];case"horizontal":return[[this.factory.create("mml",this.getProperty("left")),t,this.factory.create("mml",this.getProperty("right"))],!0]}}return N.prototype.checkItem.call(this,t)};var N,e=z;function z(){return null!==N&&N.apply(this,arguments)||this}t.PositionItem=e;$=u.BaseItem,n(J,$),Object.defineProperty(J.prototype,"kind",{get:function(){return"cell"},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isClose",{get:function(){return!0},enumerable:!1,configurable:!0});var $,i=J;function J(){return null!==$&&$.apply(this,arguments)||this}t.CellItem=i;K=u.BaseItem,n(Y,K),Object.defineProperty(Y.prototype,"isFinal",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(Y.prototype,"kind",{get:function(){return"mml"},enumerable:!1,configurable:!0});var K,e=Y;function Y(){return null!==K&&K.apply(this,arguments)||this}t.MmlItem=e;L=u.BaseItem,n(Z,L),Object.defineProperty(Z.prototype,"kind",{get:function(){return"fn"},enumerable:!1,configurable:!0}),Z.prototype.checkItem=function(t){var e=this.First;if(e){if(t.isOpen)return u.BaseItem.success;if(!t.isKind("fn")){var r=t.First;if(!t.isKind("mml")||!r)return[[e,t],!0];if(c.default.isType(r,"mstyle")&&r.childNodes.length&&c.default.isType(r.childNodes[0].childNodes[0],"mspace")||c.default.isType(r,"mspace"))return[[e,t],!0];c.default.isEmbellished(r)&&(r=c.default.getCoreMO(r));r=c.default.getForm(r);if(null!=r&&[0,0,1,1,0,1,1,0,0,0][r[2]])return[[e,t],!0]}return[[e,this.create("token","mo",{texClass:a.TEXCLASS.NONE},H.entities.ApplyFunction),t],!0]}return L.prototype.checkItem.apply(this,arguments)};var L,i=Z;function Z(){return null!==L&&L.apply(this,arguments)||this}t.FnItem=i;Q=u.BaseItem,n(tt,Q),Object.defineProperty(tt.prototype,"kind",{get:function(){return"not"},enumerable:!1,configurable:!0}),tt.prototype.checkItem=function(t){var e;if(t.isKind("open")||t.isKind("left"))return u.BaseItem.success;if(t.isKind("mml")&&(c.default.isType(t.First,"mo")||c.default.isType(t.First,"mi")||c.default.isType(t.First,"mtext"))&&(e=t.First,1===(n=c.default.getText(e)).length&&!c.default.getProperty(e,"movesupsub")&&1===c.default.getChildren(e).length))return this.remap.contains(n)?(r=this.create("text",this.remap.lookup(n).char),c.default.setChild(e,0,r)):(r=this.create("text","̸"),c.default.appendChildren(e,[r])),[[t],!0];var r=this.create("text","⧸"),n=this.create("node","mtext",[],{},r),r=this.create("node","mpadded",[n],{width:0});return[[e=this.create("node","TeXAtom",[r],{texClass:a.TEXCLASS.REL}),t],!0]};var Q,e=tt;function tt(){var t=null!==Q&&Q.apply(this,arguments)||this;return t.remap=F.MapHandler.getMap("not_remap"),t}t.NotItem=e;et=u.BaseItem,n(rt,et),Object.defineProperty(rt.prototype,"kind",{get:function(){return"nonscript"},enumerable:!1,configurable:!0}),rt.prototype.checkItem=function(t){var e;return t.isKind("mml")&&1===t.Size()&&(e=(e=t.First).isKind("mstyle")&&e.notParent?c.default.getChildren(c.default.getChildren(e)[0])[0]:e).isKind("mspace")&&(e!==t.First&&(e=this.create("node","mrow",[t.Pop()]),t.Push(e)),this.factory.configuration.addNode("nonscript",t.First)),[[t],!0]};var et,i=rt;function rt(){return null!==et&&et.apply(this,arguments)||this}t.NonscriptItem=i;nt=u.BaseItem,n(ot,nt),Object.defineProperty(ot.prototype,"kind",{get:function(){return"dots"},enumerable:!1,configurable:!0}),ot.prototype.checkItem=function(t){if(t.isKind("open")||t.isKind("left"))return u.BaseItem.success;var e=this.getProperty("ldots"),r=t.First;return t.isKind("mml")&&c.default.isEmbellished(r)&&((r=c.default.getTexClass(c.default.getCoreMO(r)))!==a.TEXCLASS.BIN&&r!==a.TEXCLASS.REL||(e=this.getProperty("cdots"))),[[e,t],!0]};var nt,e=ot;function ot(){return null!==nt&&nt.apply(this,arguments)||this}t.DotsItem=e;P=u.BaseItem,n(I,P),Object.defineProperty(I.prototype,"kind",{get:function(){return"array"},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"copyEnv",{get:function(){return!1},enumerable:!1,configurable:!0}),I.prototype.checkItem=function(t){if(!t.isClose||t.isKind("over"))return P.prototype.checkItem.call(this,t);if(t.getProperty("isEntry"))return this.EndEntry(),this.clearEnv(),u.BaseItem.fail;if(t.getProperty("isCR"))return this.EndEntry(),this.EndRow(),this.clearEnv(),u.BaseItem.fail;this.EndTable(),this.clearEnv();var e=this.factory.create("mml",this.createMml());if(this.getProperty("requireClose")){if(t.isKind("close"))return[[e],!0];throw new s.default("MissingCloseBrace","Missing close brace")}return[[e,t],!0]},I.prototype.createMml=function(){var t=this.arraydef.scriptlevel,e=(delete this.arraydef.scriptlevel,this.create("node","mtable",this.table,this.arraydef));return t&&e.setProperty("scriptlevel",t),4===this.frame.length?c.default.setAttribute(e,"frame",this.dashed?"dashed":"solid"):this.frame.length&&(this.arraydef.rowlines&&(this.arraydef.rowlines=this.arraydef.rowlines.replace(/none( none)+$/,"none")),c.default.setAttribute(e,"frame",""),e=this.create("node","menclose",[e],{notation:this.frame.join(" ")}),"none"===(this.arraydef.columnlines||"none")&&"none"===(this.arraydef.rowlines||"none")||c.default.setAttribute(e,"data-padding",0)),e=this.getProperty("open")||this.getProperty("close")?l.default.fenced(this.factory.configuration,this.getProperty("open"),e,this.getProperty("close")):e},I.prototype.EndEntry=function(){var t=this.create("node","mtd",this.nodes);this.hfill.length&&(0===this.hfill[0]&&c.default.setAttribute(t,"columnalign","right"),this.hfill[this.hfill.length-1]===this.Size()&&c.default.setAttribute(t,"columnalign",c.default.getAttribute(t,"columnalign")?"center":"left")),this.row.push(t),this.Clear(),this.hfill=[]},I.prototype.EndRow=function(){var t=this.getProperty("isNumbered")&&3===this.row.length?(this.row.unshift(this.row.pop()),this.create("node","mlabeledtr",this.row)):this.create("node","mtr",this.row);this.table.push(t),this.row=[]},I.prototype.EndTable=function(){(this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.checkLines()},I.prototype.checkLines=function(){var t;if(this.arraydef.rowlines&&((t=this.arraydef.rowlines.split(/ /)).length===this.table.length?(this.frame.push("bottom"),t.pop(),this.arraydef.rowlines=t.join(" ")):t.length<this.table.length-1&&(this.arraydef.rowlines+=" none")),this.getProperty("rowspacing")){for(var e=this.arraydef.rowspacing.split(/ /);e.length<this.table.length;)e.push(this.getProperty("rowspacing")+"em");this.arraydef.rowspacing=e.join(" ")}},I.prototype.addRowSpacing=function(t){if(this.arraydef.rowspacing){var e,r=this.arraydef.rowspacing.split(/ /);this.getProperty("rowspacing")||(e=l.default.dimen2em(r[0]),this.setProperty("rowspacing",e));for(var n=this.getProperty("rowspacing");r.length<this.table.length;)r.push(l.default.Em(n));r[this.table.length-1]=l.default.Em(Math.max(0,n+l.default.dimen2em(t))),this.arraydef.rowspacing=r.join(" ")}};var P,i=I;function I(){var t=null!==P&&P.apply(this,arguments)||this;return t.table=[],t.row=[],t.frame=[],t.hfill=[],t.arraydef={},t.dashed=!1,t}t.ArrayItem=i;n(k,it=i),Object.defineProperty(k.prototype,"kind",{get:function(){return"eqnarray"},enumerable:!1,configurable:!0}),k.prototype.EndEntry=function(){this.row.length&&l.default.fixInitialMO(this.factory.configuration,this.nodes);var t=this.create("node","mtd",this.nodes);this.row.push(t),this.Clear()},k.prototype.EndRow=function(){this.row.length>this.maxrow&&(this.maxrow=this.row.length);var t="mtr",e=this.factory.configuration.tags.getTag(),e=(e&&(this.row=[e].concat(this.row),t="mlabeledtr"),this.factory.configuration.tags.clearTag(),this.create("node",t,this.row));this.table.push(e),this.row=[]},k.prototype.EndTable=function(){it.prototype.EndTable.call(this),this.factory.configuration.tags.end(),this.extendArray("columnalign",this.maxrow),this.extendArray("columnwidth",this.maxrow),this.extendArray("columnspacing",this.maxrow-1)},k.prototype.extendArray=function(t,e){if(this.arraydef[t]){var r=this.arraydef[t].split(/ /),n=D([],o(r),!1);if(1<n.length){for(;n.length<e;)n.push.apply(n,D([],o(r),!1));this.arraydef[t]=n.slice(0,e).join(" ")}}};var it,e=k;function k(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t=it.call(this,t)||this;return t.maxrow=0,t.factory.configuration.tags.start(e[0],e[2],e[1]),t}t.EqnArrayItem=e;at=u.BaseItem,n(R,at),Object.defineProperty(R.prototype,"kind",{get:function(){return"equation"},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),R.prototype.checkItem=function(t){var e,r;if(t.isKind("end"))return e=this.toMml(),r=this.factory.configuration.tags.getTag(),this.factory.configuration.tags.end(),[[r?this.factory.configuration.tags.enTag(e,r):e,t],!0];if(t.isKind("stop"))throw new s.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return at.prototype.checkItem.call(this,t)};var at,i=R;function R(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t=at.call(this,t)||this;return t.factory.configuration.tags.start("equation",!0,e[0]),t}t.EquationItem=i},1267:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),i(r(9140))),i=r(8317),s=a(r(7693)),l=a(r(5450)),a=a(r(1130)),c=r(9007),r=r(6010);new e.RegExpMap("letter",l.default.variable,/[a-z]/i),new e.RegExpMap("digit",l.default.digit,/[0-9.,]/),new e.RegExpMap("command",l.default.controlSequence,/^\\/),new e.MacroMap("special",{"{":"Open","}":"Close","~":"Tilde","^":"Superscript",_:"Subscript"," ":"Space","\t":"Space","\r":"Space","\n":"Space","'":"Prime","%":"Comment","&":"Entry","#":"Hash"," ":"Space","’":"Prime"},s.default),new e.CharacterMap("mathchar0mi",l.default.mathchar0mi,{alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ϵ",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigma:"σ",tau:"τ",upsilon:"υ",phi:"ϕ",chi:"χ",psi:"ψ",omega:"ω",varepsilon:"ε",vartheta:"ϑ",varpi:"ϖ",varrho:"ϱ",varsigma:"ς",varphi:"φ",S:["§",{mathvariant:i.TexConstant.Variant.NORMAL}],aleph:["ℵ",{mathvariant:i.TexConstant.Variant.NORMAL}],hbar:["ℏ",{variantForm:!0}],imath:"ı",jmath:"ȷ",ell:"ℓ",wp:["℘",{mathvariant:i.TexConstant.Variant.NORMAL}],Re:["ℜ",{mathvariant:i.TexConstant.Variant.NORMAL}],Im:["ℑ",{mathvariant:i.TexConstant.Variant.NORMAL}],partial:["∂",{mathvariant:i.TexConstant.Variant.ITALIC}],infty:["∞",{mathvariant:i.TexConstant.Variant.NORMAL}],prime:["′",{variantForm:!0}],emptyset:["∅",{mathvariant:i.TexConstant.Variant.NORMAL}],nabla:["∇",{mathvariant:i.TexConstant.Variant.NORMAL}],top:["⊤",{mathvariant:i.TexConstant.Variant.NORMAL}],bot:["⊥",{mathvariant:i.TexConstant.Variant.NORMAL}],angle:["∠",{mathvariant:i.TexConstant.Variant.NORMAL}],triangle:["△",{mathvariant:i.TexConstant.Variant.NORMAL}],backslash:["∖",{mathvariant:i.TexConstant.Variant.NORMAL}],forall:["∀",{mathvariant:i.TexConstant.Variant.NORMAL}],exists:["∃",{mathvariant:i.TexConstant.Variant.NORMAL}],neg:["¬",{mathvariant:i.TexConstant.Variant.NORMAL}],lnot:["¬",{mathvariant:i.TexConstant.Variant.NORMAL}],flat:["♭",{mathvariant:i.TexConstant.Variant.NORMAL}],natural:["♮",{mathvariant:i.TexConstant.Variant.NORMAL}],sharp:["♯",{mathvariant:i.TexConstant.Variant.NORMAL}],clubsuit:["♣",{mathvariant:i.TexConstant.Variant.NORMAL}],diamondsuit:["♢",{mathvariant:i.TexConstant.Variant.NORMAL}],heartsuit:["♡",{mathvariant:i.TexConstant.Variant.NORMAL}],spadesuit:["♠",{mathvariant:i.TexConstant.Variant.NORMAL}]}),new e.CharacterMap("mathchar0mo",l.default.mathchar0mo,{surd:"√",coprod:["∐",{texClass:c.TEXCLASS.OP,movesupsub:!0}],bigvee:["⋁",{texClass:c.TEXCLASS.OP,movesupsub:!0}],bigwedge:["⋀",{texClass:c.TEXCLASS.OP,movesupsub:!0}],biguplus:["⨄",{texClass:c.TEXCLASS.OP,movesupsub:!0}],bigcap:["⋂",{texClass:c.TEXCLASS.OP,movesupsub:!0}],bigcup:["⋃",{texClass:c.TEXCLASS.OP,movesupsub:!0}],int:["∫",{texClass:c.TEXCLASS.OP}],intop:["∫",{texClass:c.TEXCLASS.OP,movesupsub:!0,movablelimits:!0}],iint:["∬",{texClass:c.TEXCLASS.OP}],iiint:["∭",{texClass:c.TEXCLASS.OP}],prod:["∏",{texClass:c.TEXCLASS.OP,movesupsub:!0}],sum:["∑",{texClass:c.TEXCLASS.OP,movesupsub:!0}],bigotimes:["⨂",{texClass:c.TEXCLASS.OP,movesupsub:!0}],bigoplus:["⨁",{texClass:c.TEXCLASS.OP,movesupsub:!0}],bigodot:["⨀",{texClass:c.TEXCLASS.OP,movesupsub:!0}],oint:["∮",{texClass:c.TEXCLASS.OP}],bigsqcup:["⨆",{texClass:c.TEXCLASS.OP,movesupsub:!0}],smallint:["∫",{largeop:!1}],triangleleft:"◃",triangleright:"▹",bigtriangleup:"△",bigtriangledown:"▽",wedge:"∧",land:"∧",vee:"∨",lor:"∨",cap:"∩",cup:"∪",ddagger:"‡",dagger:"†",sqcap:"⊓",sqcup:"⊔",uplus:"⊎",amalg:"⨿",diamond:"⋄",bullet:"∙",wr:"≀",div:"÷",divsymbol:"÷",odot:["⊙",{largeop:!1}],oslash:["⊘",{largeop:!1}],otimes:["⊗",{largeop:!1}],ominus:["⊖",{largeop:!1}],oplus:["⊕",{largeop:!1}],mp:"∓",pm:"±",circ:"∘",bigcirc:"◯",setminus:"∖",cdot:"⋅",ast:"∗",times:"×",star:"⋆",propto:"∝",sqsubseteq:"⊑",sqsupseteq:"⊒",parallel:"∥",mid:"∣",dashv:"⊣",vdash:"⊢",leq:"≤",le:"≤",geq:"≥",ge:"≥",lt:"<",gt:">",succ:"≻",prec:"≺",approx:"≈",succeq:"⪰",preceq:"⪯",supset:"⊃",subset:"⊂",supseteq:"⊇",subseteq:"⊆",in:"∈",ni:"∋",notin:"∉",owns:"∋",gg:"≫",ll:"≪",sim:"∼",simeq:"≃",perp:"⊥",equiv:"≡",asymp:"≍",smile:"⌣",frown:"⌢",ne:"≠",neq:"≠",cong:"≅",doteq:"≐",bowtie:"⋈",models:"⊨",notChar:"⧸",Leftrightarrow:"⇔",Leftarrow:"⇐",Rightarrow:"⇒",leftrightarrow:"↔",leftarrow:"←",gets:"←",rightarrow:"→",to:["→",{accent:!1}],mapsto:"↦",leftharpoonup:"↼",leftharpoondown:"↽",rightharpoonup:"⇀",rightharpoondown:"⇁",nearrow:"↗",searrow:"↘",nwarrow:"↖",swarrow:"↙",rightleftharpoons:"⇌",hookrightarrow:"↪",hookleftarrow:"↩",longleftarrow:"⟵",Longleftarrow:"⟸",longrightarrow:"⟶",Longrightarrow:"⟹",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",ldots:"…",cdots:"⋯",vdots:"⋮",ddots:"⋱",dotsc:"…",dotsb:"⋯",dotsm:"⋯",dotsi:"⋯",dotso:"…",ldotp:[".",{texClass:c.TEXCLASS.PUNCT}],cdotp:["⋅",{texClass:c.TEXCLASS.PUNCT}],colon:[":",{texClass:c.TEXCLASS.PUNCT}]}),new e.CharacterMap("mathchar7",l.default.mathchar7,{Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω",_:"_","#":"#",$:"$","%":"%","&":"&",And:"&"}),new e.DelimiterMap("delimiter",l.default.delimiter,{"(":"(",")":")","[":"[","]":"]","<":"⟨",">":"⟩","\\lt":"⟨","\\gt":"⟩","/":"/","|":["|",{texClass:c.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"⎰","\\rmoustache":"⎱","\\lgroup":"⟮","\\rgroup":"⟯","\\arrowvert":"⏐","\\Arrowvert":"‖","\\bracevert":"⎪","\\Vert":["‖",{texClass:c.TEXCLASS.ORD}],"\\|":["‖",{texClass:c.TEXCLASS.ORD}],"\\vert":["|",{texClass:c.TEXCLASS.ORD}],"\\uparrow":"↑","\\downarrow":"↓","\\updownarrow":"↕","\\Uparrow":"⇑","\\Downarrow":"⇓","\\Updownarrow":"⇕","\\backslash":"\\","\\rangle":"⟩","\\langle":"⟨","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"⌉","\\lceil":"⌈","\\rfloor":"⌋","\\lfloor":"⌊","\\lbrack":"[","\\rbrack":"]"}),new e.CommandMap("macros",{displaystyle:["SetStyle","D",!0,0],textstyle:["SetStyle","T",!1,0],scriptstyle:["SetStyle","S",!1,1],scriptscriptstyle:["SetStyle","SS",!1,2],rm:["SetFont",i.TexConstant.Variant.NORMAL],mit:["SetFont",i.TexConstant.Variant.ITALIC],oldstyle:["SetFont",i.TexConstant.Variant.OLDSTYLE],cal:["SetFont",i.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont",i.TexConstant.Variant.MATHITALIC],bf:["SetFont",i.TexConstant.Variant.BOLD],bbFont:["SetFont",i.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",i.TexConstant.Variant.SCRIPT],frak:["SetFont",i.TexConstant.Variant.FRAKTUR],sf:["SetFont",i.TexConstant.Variant.SANSSERIF],tt:["SetFont",i.TexConstant.Variant.MONOSPACE],mathrm:["MathFont",i.TexConstant.Variant.NORMAL],mathup:["MathFont",i.TexConstant.Variant.NORMAL],mathnormal:["MathFont",""],mathbf:["MathFont",i.TexConstant.Variant.BOLD],mathbfup:["MathFont",i.TexConstant.Variant.BOLD],mathit:["MathFont",i.TexConstant.Variant.MATHITALIC],mathbfit:["MathFont",i.TexConstant.Variant.BOLDITALIC],mathbb:["MathFont",i.TexConstant.Variant.DOUBLESTRUCK],Bbb:["MathFont",i.TexConstant.Variant.DOUBLESTRUCK],mathfrak:["MathFont",i.TexConstant.Variant.FRAKTUR],mathbffrak:["MathFont",i.TexConstant.Variant.BOLDFRAKTUR],mathscr:["MathFont",i.TexConstant.Variant.SCRIPT],mathbfscr:["MathFont",i.TexConstant.Variant.BOLDSCRIPT],mathsf:["MathFont",i.TexConstant.Variant.SANSSERIF],mathsfup:["MathFont",i.TexConstant.Variant.SANSSERIF],mathbfsf:["MathFont",i.TexConstant.Variant.BOLDSANSSERIF],mathbfsfup:["MathFont",i.TexConstant.Variant.BOLDSANSSERIF],mathsfit:["MathFont",i.TexConstant.Variant.SANSSERIFITALIC],mathbfsfit:["MathFont",i.TexConstant.Variant.SANSSERIFBOLDITALIC],mathtt:["MathFont",i.TexConstant.Variant.MONOSPACE],mathcal:["MathFont",i.TexConstant.Variant.CALLIGRAPHIC],mathbfcal:["MathFont",i.TexConstant.Variant.BOLDCALLIGRAPHIC],symrm:["MathFont",i.TexConstant.Variant.NORMAL],symup:["MathFont",i.TexConstant.Variant.NORMAL],symnormal:["MathFont",""],symbf:["MathFont",i.TexConstant.Variant.BOLD],symbfup:["MathFont",i.TexConstant.Variant.BOLD],symit:["MathFont",i.TexConstant.Variant.ITALIC],symbfit:["MathFont",i.TexConstant.Variant.BOLDITALIC],symbb:["MathFont",i.TexConstant.Variant.DOUBLESTRUCK],symfrak:["MathFont",i.TexConstant.Variant.FRAKTUR],symbffrak:["MathFont",i.TexConstant.Variant.BOLDFRAKTUR],symscr:["MathFont",i.TexConstant.Variant.SCRIPT],symbfscr:["MathFont",i.TexConstant.Variant.BOLDSCRIPT],symsf:["MathFont",i.TexConstant.Variant.SANSSERIF],symsfup:["MathFont",i.TexConstant.Variant.SANSSERIF],symbfsf:["MathFont",i.TexConstant.Variant.BOLDSANSSERIF],symbfsfup:["MathFont",i.TexConstant.Variant.BOLDSANSSERIF],symsfit:["MathFont",i.TexConstant.Variant.SANSSERIFITALIC],symbfsfit:["MathFont",i.TexConstant.Variant.SANSSERIFBOLDITALIC],symtt:["MathFont",i.TexConstant.Variant.MONOSPACE],symcal:["MathFont",i.TexConstant.Variant.CALLIGRAPHIC],symbfcal:["MathFont",i.TexConstant.Variant.BOLDCALLIGRAPHIC],textrm:["HBox",null,i.TexConstant.Variant.NORMAL],textup:["HBox",null,i.TexConstant.Variant.NORMAL],textnormal:["HBox"],textit:["HBox",null,i.TexConstant.Variant.ITALIC],textbf:["HBox",null,i.TexConstant.Variant.BOLD],textsf:["HBox",null,i.TexConstant.Variant.SANSSERIF],texttt:["HBox",null,i.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],arcsin:"NamedFn",arccos:"NamedFn",arctan:"NamedFn",arg:"NamedFn",cos:"NamedFn",cosh:"NamedFn",cot:"NamedFn",coth:"NamedFn",csc:"NamedFn",deg:"NamedFn",det:"NamedOp",dim:"NamedFn",exp:"NamedFn",gcd:"NamedOp",hom:"NamedFn",inf:"NamedOp",ker:"NamedFn",lg:"NamedFn",lim:"NamedOp",liminf:["NamedOp","lim&thinsp;inf"],limsup:["NamedOp","lim&thinsp;sup"],ln:"NamedFn",log:"NamedFn",max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:"NamedFn",sin:"NamedFn",sinh:"NamedFn",sup:"NamedOp",tan:"NamedFn",tanh:"NamedFn",limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","2015"],underline:["UnderOver","2015"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",overunderset:"Overunderset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],stackbin:["Macro","\\mathbin{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"LeftRight",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",r.MATHSPACE.thinmathspace],":":["Spacer",r.MATHSPACE.mediummathspace],">":["Spacer",r.MATHSPACE.mediummathspace],";":["Spacer",r.MATHSPACE.thickmathspace],"!":["Spacer",r.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",r.MATHSPACE.thinmathspace],negthinspace:["Spacer",r.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],nonscript:"Nonscript",big:["MakeBig",c.TEXCLASS.ORD,.85],Big:["MakeBig",c.TEXCLASS.ORD,1.15],bigg:["MakeBig",c.TEXCLASS.ORD,1.45],Bigg:["MakeBig",c.TEXCLASS.ORD,1.75],bigl:["MakeBig",c.TEXCLASS.OPEN,.85],Bigl:["MakeBig",c.TEXCLASS.OPEN,1.15],biggl:["MakeBig",c.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",c.TEXCLASS.OPEN,1.75],bigr:["MakeBig",c.TEXCLASS.CLOSE,.85],Bigr:["MakeBig",c.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",c.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",c.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",c.TEXCLASS.REL,.85],Bigm:["MakeBig",c.TEXCLASS.REL,1.15],biggm:["MakeBig",c.TEXCLASS.REL,1.45],Biggm:["MakeBig",c.TEXCLASS.REL,1.75],mathord:["TeXAtom",c.TEXCLASS.ORD],mathop:["TeXAtom",c.TEXCLASS.OP],mathopen:["TeXAtom",c.TEXCLASS.OPEN],mathclose:["TeXAtom",c.TEXCLASS.CLOSE],mathbin:["TeXAtom",c.TEXCLASS.BIN],mathrel:["TeXAtom",c.TEXCLASS.REL],mathpunct:["TeXAtom",c.TEXCLASS.PUNCT],mathinner:["TeXAtom",c.TEXCLASS.INNER],vcenter:["TeXAtom",c.TEXCLASS.VCENTER],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],framebox:"FrameBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em",null,!0],eqalign:["Matrix",null,null,"right left",(0,r.em)(r.MATHSPACE.thickmathspace),".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:["CrLaTeX",!0],hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",(0,r.em)(r.MATHSPACE.thickmathspace),".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",(0,r.em)(r.MATHSPACE.thickmathspace),".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="thickmathspace" rspace="thickmathspace"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde"," ":"Tilde",begin:"BeginEnd",end:"BeginEnd",label:"HandleLabel",ref:"HandleRef",nonumber:"HandleNoTag",mathchoice:"MathChoice",mmlToken:"MmlToken"},s.default),new e.EnvironmentMap("environment",l.default.environment,{array:["AlignedArray"],equation:["Equation",null,!0],eqnarray:["EqnArray",null,!0,!0,"rcl",a.default.cols(0,r.MATHSPACE.thickmathspace),".5em"]},s.default),new e.CharacterMap("not_remap",null,{"←":"↚","→":"↛","↔":"↮","⇐":"⇍","⇒":"⇏","⇔":"⇎","∈":"∉","∋":"∌","∣":"∤","∥":"∦","∼":"≁","~":"≁","≃":"≄","≅":"≇","≈":"≉","≍":"≭","=":"≠","≡":"≢","<":"≮",">":"≯","≤":"≰","≥":"≱","≲":"≴","≳":"≵","≶":"≸","≷":"≹","≺":"⊀","≻":"⊁","⊂":"⊄","⊃":"⊅","⊆":"⊈","⊇":"⊉","⊢":"⊬","⊨":"⊭","⊩":"⊮","⊫":"⊯","≼":"⋠","≽":"⋡","⊑":"⋢","⊒":"⋣","⊲":"⋪","⊳":"⋫","⊴":"⋬","⊵":"⋭","∃":"∄"})},7693:function(t,e,r){var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(e,"__esModule",{value:!0}),a(r(1181))),u=l(r(1256)),p=l(r(3971)),h=l(r(8417)),d=r(8317),f=l(r(1130)),m=r(9007),y=r(6521),g=r(6010),b=r(5368),v=r(7233),_={},S={fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1};function x(t,e){var r,n=t.stack.env,o=n.inRoot,e=(n.inRoot=!0,new h.default(e,n,t.configuration)),i=e.mml(),e=e.stack.global;return(e.leftRoot||e.upRoot)&&(r={},e.leftRoot&&(r.width=e.leftRoot),e.upRoot&&(r.voffset=e.upRoot,r.height=e.upRoot),i=t.create("node","mpadded",[i],r)),n.inRoot=o,i}_.Open=function(t,e){t.Push(t.itemFactory.create("open"))},_.Close=function(t,e){t.Push(t.itemFactory.create("close"))},_.Tilde=function(t,e){t.Push(t.create("token","mtext",{},b.entities.nbsp))},_.Space=function(t,e){},_.Superscript=function(t,e){t.GetNext().match(/\d/)&&(t.string=t.string.substr(0,t.i+1)+" "+t.string.substr(t.i+1));var r,n,o=t.stack.Top(),o=(o.isKind("prime")?(n=(o=s(o.Peek(2),2))[0],r=o[1],t.stack.Pop()):(n=t.stack.Prev())||(n=t.create("token","mi",{},"")),u.default.getProperty(n,"movesupsub")),i=u.default.isType(n,"msubsup")?n.sup:n.over;if(u.default.isType(n,"msubsup")&&!u.default.isType(n,"msup")&&u.default.getChildAt(n,n.sup)||u.default.isType(n,"munderover")&&!u.default.isType(n,"mover")&&u.default.getChildAt(n,n.over)&&!u.default.getProperty(n,"subsupOK"))throw new p.default("DoubleExponent","Double exponent: use braces to clarify");u.default.isType(n,"msubsup")&&!u.default.isType(n,"msup")||(i=o?(n=u.default.isType(n,"munderover")&&!u.default.isType(n,"mover")&&!u.default.getChildAt(n,n.over)?n:t.create("node","munderover",[n],{movesupsub:!0})).over:(n=t.create("node","msubsup",[n])).sup),t.Push(t.itemFactory.create("subsup",n).setProperties({position:i,primes:r,movesupsub:o}))},_.Subscript=function(t,e){t.GetNext().match(/\d/)&&(t.string=t.string.substr(0,t.i+1)+" "+t.string.substr(t.i+1));var r,n,o=t.stack.Top(),o=(o.isKind("prime")?(n=(o=s(o.Peek(2),2))[0],r=o[1],t.stack.Pop()):(n=t.stack.Prev())||(n=t.create("token","mi",{},"")),u.default.getProperty(n,"movesupsub")),i=u.default.isType(n,"msubsup")?n.sub:n.under;if(u.default.isType(n,"msubsup")&&!u.default.isType(n,"msup")&&u.default.getChildAt(n,n.sub)||u.default.isType(n,"munderover")&&!u.default.isType(n,"mover")&&u.default.getChildAt(n,n.under)&&!u.default.getProperty(n,"subsupOK"))throw new p.default("DoubleSubscripts","Double subscripts: use braces to clarify");u.default.isType(n,"msubsup")&&!u.default.isType(n,"msup")||(i=o?(n=u.default.isType(n,"munderover")&&!u.default.isType(n,"mover")&&!u.default.getChildAt(n,n.under)?n:t.create("node","munderover",[n],{movesupsub:!0})).under:(n=t.create("node","msubsup",[n])).sub),t.Push(t.itemFactory.create("subsup",n).setProperties({position:i,primes:r,movesupsub:o}))},_.Prime=function(t,e){var r=(r=t.stack.Prev())||t.create("node","mi");if(u.default.isType(r,"msubsup")&&!u.default.isType(r,"msup")&&u.default.getChildAt(r,r.sup))throw new p.default("DoubleExponentPrime","Prime causes double exponent: use braces to clarify");var n="";for(t.i--;n+=b.entities.prime,t.i++,"'"===(e=t.GetNext())||e===b.entities.rsquo;);var n=["","′","″","‴","⁗"][n.length]||n,o=t.create("token","mo",{variantForm:!0},n);t.Push(t.itemFactory.create("prime",r,o))},_.Comment=function(t,e){for(;t.i<t.string.length&&"\n"!==t.string.charAt(t.i);)t.i++},_.Hash=function(t,e){throw new p.default("CantUseHash1","You can't use 'macro parameter character #' in math mode")},_.MathFont=function(t,e,r){e=t.GetArgument(e),e=new h.default(e,i(i({},t.stack.env),{font:r,multiLetterIdentifiers:/^[a-zA-Z]+/,noAutoOP:!0}),t.configuration).mml();t.Push(t.create("node","TeXAtom",[e]))},_.SetFont=function(t,e,r){t.stack.env.font=r},_.SetStyle=function(t,e,r,n,o){t.stack.env.style=r,t.stack.env.level=o,t.Push(t.itemFactory.create("style").setProperty("styles",{displaystyle:n,scriptlevel:o}))},_.SetSize=function(t,e,r){t.stack.env.size=r,t.Push(t.itemFactory.create("style").setProperty("styles",{mathsize:(0,g.em)(r)}))},_.Spacer=function(t,e,r){r=t.create("node","mspace",[],{width:(0,g.em)(r)}),r=t.create("node","mstyle",[r],{scriptlevel:0});t.Push(r)},_.LeftRight=function(t,e){var r=e.substr(1);t.Push(t.itemFactory.create(r,t.GetDelimiter(e),t.stack.env.color))},_.NamedFn=function(t,e,r){r=r||e.substr(1);e=t.create("token","mi",{texClass:m.TEXCLASS.OP},r);t.Push(t.itemFactory.create("fn",e))},_.NamedOp=function(t,e,r){r=(r=r||e.substr(1)).replace(/&thinsp;/," ");e=t.create("token","mo",{movablelimits:!0,movesupsub:!0,form:d.TexConstant.Form.PREFIX,texClass:m.TEXCLASS.OP},r);t.Push(e)},_.Limits=function(t,e,r){var n=t.stack.Prev(!0);if(!n||u.default.getTexClass(u.default.getCoreMO(n))!==m.TEXCLASS.OP&&null==u.default.getProperty(n,"movesupsub"))throw new p.default("MisplacedLimits","%1 is allowed only on operators",t.currentCS);var o,i=t.stack.Top();u.default.isType(n,"munderover")&&!r?(o=t.create("node","msubsup"),u.default.copyChildren(n,o),n=i.Last=o):u.default.isType(n,"msubsup")&&r&&(o=t.create("node","munderover"),u.default.copyChildren(n,o),n=i.Last=o),u.default.setProperty(n,"movesupsub",!!r),u.default.setProperties(u.default.getCoreMO(n),{movablelimits:!1}),(u.default.getAttribute(n,"movablelimits")||u.default.getProperty(n,"movablelimits"))&&u.default.setProperties(n,{movablelimits:!1})},_.Over=function(t,e,r,n){var o=t.itemFactory.create("over").setProperty("name",t.currentCS);r||n?(o.setProperty("open",r),o.setProperty("close",n)):e.match(/withdelims$/)&&(o.setProperty("open",t.GetDelimiter(e)),o.setProperty("close",t.GetDelimiter(e))),e.match(/^\\above/)?o.setProperty("thickness",t.GetDimen(e)):(e.match(/^\\atop/)||r||n)&&o.setProperty("thickness",0),t.Push(o)},_.Frac=function(t,e){var r=t.ParseArg(e),e=t.ParseArg(e),r=t.create("node","mfrac",[r,e]);t.Push(r)},_.Sqrt=function(t,e){var r=t.GetBrackets(e),e=t.GetArgument(e),e=("\\frac"===e&&(e+="{"+t.GetArgument(e)+"}{"+t.GetArgument(e)+"}"),new h.default(e,t.stack.env,t.configuration).mml()),e=r?t.create("node","mroot",[e,x(t,r)]):t.create("node","msqrt",[e]);t.Push(e)},_.Root=function(t,e){var r=t.GetUpTo(e,"\\of"),e=t.ParseArg(e),e=t.create("node","mroot",[e,x(t,r)]);t.Push(e)},_.MoveRoot=function(t,e,r){if(!t.stack.env.inRoot)throw new p.default("MisplacedMoveRoot","%1 can appear only within a root",t.currentCS);if(t.stack.global[r])throw new p.default("MultipleMoveRoot","Multiple use of %1",t.currentCS);e=t.GetArgument(e);if(!e.match(/-?[0-9]+/))throw new p.default("IntegerArg","The argument to %1 must be an integer",t.currentCS);"-"!==(e=parseInt(e,10)/15+"em").substr(0,1)&&(e="+"+e),t.stack.global[r]=e},_.Accent=function(t,e,r,n){var e=t.ParseArg(e),o=i(i({},f.default.getFontDef(t)),{accent:!0,mathaccent:!0}),r=u.default.createEntity(r),o=t.create("token","mo",o,r),r=(u.default.setAttribute(o,"stretchy",!!n),u.default.isEmbellished(e)?u.default.getCoreMO(e):e),n=((u.default.isType(r,"mo")||u.default.getProperty(r,"movablelimits"))&&u.default.setProperties(r,{movablelimits:!1}),t.create("node","munderover")),r=(u.default.setChild(n,0,e),u.default.setChild(n,1,null),u.default.setChild(n,2,o),t.create("node","TeXAtom",[n]));t.Push(r)},_.UnderOver=function(t,e,r,n){var r=u.default.createEntity(r),r=t.create("token","mo",{stretchy:!0,accent:!0},r),o="o"===e.charAt(1)?"over":"under",e=t.ParseArg(e);t.Push(f.default.underOver(t,e,r,o,n))},_.Overset=function(t,e){var r=t.ParseArg(e),e=t.ParseArg(e),e=(f.default.checkMovableLimits(e),r.isKind("mo")&&u.default.setAttribute(r,"accent",!1),t.create("node","mover",[e,r]));t.Push(e)},_.Underset=function(t,e){var r=t.ParseArg(e),e=t.ParseArg(e),e=(f.default.checkMovableLimits(e),r.isKind("mo")&&u.default.setAttribute(r,"accent",!1),t.create("node","munder",[e,r],{accentunder:!1}));t.Push(e)},_.Overunderset=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e),e=t.ParseArg(e),e=(f.default.checkMovableLimits(e),r.isKind("mo")&&u.default.setAttribute(r,"accent",!1),n.isKind("mo")&&u.default.setAttribute(n,"accent",!1),t.create("node","munderover",[e,n,r],{accent:!1,accentunder:!1}));t.Push(e)},_.TeXAtom=function(t,e,r){var n,o,i={texClass:r};r=r===m.TEXCLASS.OP?(i.movesupsub=i.movablelimits=!0,o=(o=(r=t.GetArgument(e)).match(/^\s*\\rm\s+([a-zA-Z0-9 ]+)$/))?(i.mathvariant=d.TexConstant.Variant.NORMAL,t.create("token","mi",i,o[1])):(n=new h.default(r,t.stack.env,t.configuration).mml(),t.create("node","TeXAtom",[n],i)),t.itemFactory.create("fn",o)):(n=t.ParseArg(e),t.create("node","TeXAtom",[n],i)),t.Push(r)},_.MmlToken=function(t,e){var r,n=t.GetArgument(e),o=t.GetBrackets(e,"").replace(/^\s+/,""),e=t.GetArgument(e),i={},a=[];try{r=t.create("node",n)}catch(t){r=null}if(!r||!r.isToken)throw new p.default("NotMathMLToken","%1 is not a token element",n);for(;""!==o;){var s=o.match(/^([a-z]+)\s*=\s*('[^']*'|"[^"]*"|[^ ,]*)\s*,?\s*/i);if(!s)throw new p.default("InvalidMathMLAttr","Invalid MathML attribute: %1",o);if(!r.attributes.hasDefault(s[1])&&!S[s[1]])throw new p.default("UnknownAttrForElement","%1 is not a recognized attribute for %2",s[1],n);var l=f.default.MmlFilterAttribute(t,s[1],s[2].replace(/^(['"])(.*)\1$/,"$2"));l&&("true"===l.toLowerCase()?l=!0:"false"===l.toLowerCase()&&(l=!1),i[s[1]]=l,a.push(s[1])),o=o.substr(s[0].length)}a.length&&(i["mjx-keep-attrs"]=a.join(" "));e=t.create("text",e);r.appendChild(e),u.default.setProperties(r,i),t.Push(r)},_.Strut=function(t,e){var r=t.create("node","mrow"),r=t.create("node","mpadded",[r],{height:"8.6pt",depth:"3pt",width:0});t.Push(r)},_.Phantom=function(t,e,r,n){e=t.create("node","mphantom",[t.ParseArg(e)]),(r||n)&&(e=t.create("node","mpadded",[e]),n&&(u.default.setAttribute(e,"height",0),u.default.setAttribute(e,"depth",0)),r&&u.default.setAttribute(e,"width",0)),n=t.create("node","TeXAtom",[e]);t.Push(n)},_.Smash=function(t,e){var r=f.default.trimSpaces(t.GetBrackets(e,"")),n=t.create("node","mpadded",[t.ParseArg(e)]);switch(r){case"b":u.default.setAttribute(n,"depth",0);break;case"t":u.default.setAttribute(n,"height",0);break;default:u.default.setAttribute(n,"height",0),u.default.setAttribute(n,"depth",0)}e=t.create("node","TeXAtom",[n]);t.Push(e)},_.Lap=function(t,e){var r=t.create("node","mpadded",[t.ParseArg(e)],{width:0}),e=("\\llap"===e&&u.default.setAttribute(r,"lspace","-1width"),t.create("node","TeXAtom",[r]));t.Push(e)},_.RaiseLower=function(t,e){var r=t.GetDimen(e),n=t.itemFactory.create("position").setProperties({name:t.currentCS,move:"vertical"});"-"===r.charAt(0)&&(r=r.slice(1),e="raise"===e.substr(1)?"\\lower":"\\raise"),"\\lower"===e?(n.setProperty("dh","-"+r),n.setProperty("dd","+"+r)):(n.setProperty("dh","+"+r),n.setProperty("dd","-"+r)),t.Push(n)},_.MoveLeftRight=function(t,e){var r=t.GetDimen(e),n="-"===r.charAt(0)?r.slice(1):"-"+r;"\\moveleft"===e&&(e=r,r=n,n=e),t.Push(t.itemFactory.create("position").setProperties({name:t.currentCS,move:"horizontal",left:t.create("node","mspace",[],{width:r}),right:t.create("node","mspace",[],{width:n})}))},_.Hskip=function(t,e){e=t.create("node","mspace",[],{width:t.GetDimen(e)});t.Push(e)},_.Nonscript=function(t,e){t.Push(t.itemFactory.create("nonscript"))},_.Rule=function(t,e,r){e={width:t.GetDimen(e),height:t.GetDimen(e),depth:t.GetDimen(e)},"blank"!==r&&(e.mathbackground=t.stack.env.color||"black"),r=t.create("node","mspace",[],e);t.Push(r)},_.rule=function(t,e){var r=t.GetBrackets(e),n=t.GetDimen(e),e=t.GetDimen(e),n=t.create("node","mspace",[],{width:n,height:e,mathbackground:t.stack.env.color||"black"});r&&(n=t.create("node","mpadded",[n],{voffset:r}),r.match(/^\-/)?(u.default.setAttribute(n,"height",r),u.default.setAttribute(n,"depth","+"+r.substr(1))):u.default.setAttribute(n,"height","+"+r)),t.Push(n)},_.MakeBig=function(t,e,r,n){n=String(n*=1.411764705882353).replace(/(\.\d\d\d).+/,"$1")+"em",e=t.GetDelimiter(e,!0),n=t.create("token","mo",{minsize:n,maxsize:n,fence:!0,stretchy:!0,symmetric:!0},e),e=t.create("node","TeXAtom",[n],{texClass:r});t.Push(e)},_.BuildRel=function(t,e){var r=t.ParseUpTo(e,"\\over"),e=t.ParseArg(e),n=t.create("node","munderover"),e=(u.default.setChild(n,0,e),u.default.setChild(n,1,null),u.default.setChild(n,2,r),t.create("node","TeXAtom",[n],{texClass:m.TEXCLASS.REL}));t.Push(e)},_.HBox=function(t,e,r,n){t.PushAll(f.default.internalMath(t,t.GetArgument(e),r,n))},_.FBox=function(t,e){e=f.default.internalMath(t,t.GetArgument(e)),e=t.create("node","menclose",e,{notation:"box"});t.Push(e)},_.FrameBox=function(t,e){var r=t.GetBrackets(e),n=t.GetBrackets(e)||"c",e=f.default.internalMath(t,t.GetArgument(e)),r=(r&&(e=[t.create("node","mpadded",e,{width:r,"data-align":(0,v.lookup)(n,{l:"left",r:"right"},"center")})]),t.create("node","TeXAtom",[t.create("node","menclose",e,{notation:"box"})],{texClass:m.TEXCLASS.ORD}));t.Push(r)},_.Not=function(t,e){t.Push(t.itemFactory.create("not"))},_.Dots=function(t,e){var r=u.default.createEntity("2026"),n=u.default.createEntity("22EF"),r=t.create("token","mo",{stretchy:!1},r),n=t.create("token","mo",{stretchy:!1},n);t.Push(t.itemFactory.create("dots").setProperties({ldots:r,cdots:n}))},_.Matrix=function(t,e,r,n,o,i,a,s,l,c){var u=t.GetNext();if(""===u)throw new p.default("MissingArgFor","Missing argument for %1",t.currentCS);"{"===u?t.i++:(t.string=u+"}"+t.string.slice(t.i+1),t.i=0);u=t.itemFactory.create("array").setProperty("requireClose",!0);u.arraydef={rowspacing:a||"4pt",columnspacing:i||"1em"},l&&u.setProperty("isCases",!0),c&&(u.setProperty("isNumbered",!0),u.arraydef.side=c),(r||n)&&(u.setProperty("open",r),u.setProperty("close",n)),"D"===s&&(u.arraydef.displaystyle=!0),null!=o&&(u.arraydef.columnalign=o),t.Push(u)},_.Entry=function(t,e){t.Push(t.itemFactory.create("cell").setProperties({isEntry:!0,name:e}));var e=t.stack.Top(),r=e.getProperty("casesEnv");if(e.getProperty("isCases")||r){for(var n=t.string,o=0,i=-1,a=t.i,s=n.length,l=r?new RegExp("^\\\\end\\s*\\{".concat(r.replace(/\*/,"\\*"),"\\}")):null;a<s;){var c=n.charAt(a);if("{"===c)o++,a++;else if("}"===c)0===o?s=0:(0==--o&&i<0&&(i=a-t.i),a++);else{if("&"===c&&0===o)throw new p.default("ExtraAlignTab","Extra alignment tab in \\cases text");"\\"===c?(c=n.substr(a)).match(/^((\\cr)[^a-zA-Z]|\\\\)/)||l&&c.match(l)?s=0:a+=2:a++}}e=n.substr(t.i,a-t.i);e.match(/^\s*\\text[^a-zA-Z]/)&&i===e.replace(/\s+$/,"").length-1||(r=f.default.internalMath(t,f.default.trimSpaces(e),0),t.PushAll(r),t.i=a)}},_.Cr=function(t,e){t.Push(t.itemFactory.create("cell").setProperties({isCR:!0,name:e}))},_.CrLaTeX=function(t,e,r){if(!(r=void 0===r?!1:r)&&("*"===t.string.charAt(t.i)&&t.i++,"["===t.string.charAt(t.i))){var r=t.GetBrackets(e,""),n=s(f.default.matchDimen(r),2),o=n[0],n=n[1];if(r&&!o)throw new p.default("BracketMustBeDimension","Bracket argument to %1 must be a dimension",t.currentCS);o=o+n}t.Push(t.itemFactory.create("cell").setProperties({isCR:!0,name:e,linebreak:!0}));var i,r=t.stack.Top();r instanceof c.ArrayItem?o&&r.addRowSpacing(o):(o&&(i=t.create("node","mspace",[],{depth:o}),t.Push(i)),i=t.create("node","mspace",[],{linebreak:d.TexConstant.LineBreak.NEWLINE}),t.Push(i))},_.HLine=function(t,e,r){null==r&&(r="solid");var n=t.stack.Top();if(!(n instanceof c.ArrayItem)||n.Size())throw new p.default("Misplaced","Misplaced %1",t.currentCS);if(n.table.length){for(var o=n.arraydef.rowlines?n.arraydef.rowlines.split(/ /):[];o.length<n.table.length;)o.push("none");o[n.table.length-1]=r,n.arraydef.rowlines=o.join(" ")}else n.frame.push("top")},_.HFill=function(t,e){var r=t.stack.Top();if(!(r instanceof c.ArrayItem))throw new p.default("UnsupportedHFill","Unsupported use of %1",t.currentCS);r.hfill.push(r.Size())},_.BeginEnd=function(t,e){var r=t.GetArgument(e);if(r.match(/\\/i))throw new p.default("InvalidEnv","Invalid environment name '%1'",r);var n=t.configuration.handlers.get("environment").lookup(r);if(n&&"\\end"===e){if(!n.args[0])return e=t.itemFactory.create("end").setProperty("name",r),void t.Push(e);t.stack.env.closing=r}f.default.checkMaxMacros(t,!1),t.parse("environment",[t,r])},_.Array=function(t,e,r,n,o,i,a,s,l){var c=("c"+(o=o||t.GetArgument("\\begin{"+e.getName()+"}"))).replace(/[^clr|:]/g,"").replace(/[^|:]([|:])+/g,"$1"),u=(o=(o=o.replace(/[^clr]/g,"").split("").join(" ")).replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center"),t.itemFactory.create("array"));return u.arraydef={columnalign:o,columnspacing:i||"1em",rowspacing:a||"4pt"},c.match(/[|:]/)&&(c.charAt(0).match(/[|:]/)&&(u.frame.push("left"),u.dashed=":"===c.charAt(0)),c.charAt(c.length-1).match(/[|:]/)&&u.frame.push("right"),c=c.substr(1,c.length-2),u.arraydef.columnlines=c.split("").join(" ").replace(/[^|: ]/g,"none").replace(/\|/g,"solid").replace(/:/g,"dashed")),r&&u.setProperty("open",t.convertDelimiter(r)),n&&u.setProperty("close",t.convertDelimiter(n)),"'"===(s||"").charAt(1)&&(u.arraydef["data-cramped"]=!0,s=s.charAt(0)),"D"===s?u.arraydef.displaystyle=!0:s&&(u.arraydef.displaystyle=!1),"S"===s&&(u.arraydef.scriptlevel=1),l&&(u.arraydef.useHeight=!1),t.Push(e),u},_.AlignedArray=function(t,e){var r=t.GetBrackets("\\begin{"+e.getName()+"}"),t=_.Array(t,e);return f.default.setArrayAlign(t,r)},_.Equation=function(t,e,r){return t.Push(e),f.default.checkEqnEnv(t),t.itemFactory.create("equation",r).setProperty("name",e.getName())},_.EqnArray=function(t,e,r,n,o,i){t.Push(e),n&&f.default.checkEqnEnv(t),o=(o=o.replace(/[^clr]/g,"").split("").join(" ")).replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center");e=t.itemFactory.create("eqnarray",e.getName(),r,n,t.stack.global);return e.arraydef={displaystyle:!0,columnalign:o,columnspacing:i||"1em",rowspacing:"3pt",side:t.options.tagSide,minlabelspacing:t.options.tagIndent},e},_.HandleNoTag=function(t,e){t.tags.notag()},_.HandleLabel=function(t,e){e=t.GetArgument(e);if(""!==e&&!t.tags.refUpdate){if(t.tags.label)throw new p.default("MultipleCommand","Multiple %1",t.currentCS);if(t.tags.label=e,(t.tags.allLabels[e]||t.tags.labels[e])&&!t.options.ignoreDuplicateLabels)throw new p.default("MultipleLabel","Label '%1' multiply defined",e);t.tags.labels[e]=new y.Label}},_.HandleRef=function(t,e,r){var e=t.GetArgument(e),e=t.tags.allLabels[e]||t.tags.labels[e],n=(e||(t.tags.refUpdate||(t.tags.redo=!0),e=new y.Label),e.tag),r=(r&&(n=t.tags.formatTag(n)),t.create("node","mrow",f.default.internalMath(t,n),{href:t.tags.formatUrl(e.id,t.options.baseURL),class:"MathJax_ref"}));t.Push(r)},_.Macro=function(t,e,r,n,o){if(n){var i,a=[];null!=o&&(i=t.GetBrackets(e),a.push(null==i?o:i));for(var s=a.length;s<n;s++)a.push(t.GetArgument(e));r=f.default.substituteArgs(t,a,r)}t.string=f.default.addArgs(t,r,t.string.slice(t.i)),t.i=0,f.default.checkMaxMacros(t)},_.MathChoice=function(t,e){var r=t.ParseArg(e),n=t.ParseArg(e),o=t.ParseArg(e),e=t.ParseArg(e);t.Push(t.create("node","MathChoice",[r,n,o,e]))},e.default=_},1186:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.BboxConfiguration=e.BboxMethods=void 0,r(9899)),i=r(9140),d=n(r(3971)),f=(e.BboxMethods={},e.BboxMethods.BBox=function(t,e){for(var r,n,o,i=t.GetBrackets(e,""),a=t.ParseArg(e),s=i.split(/,/),l=0,c=s.length;l<c;l++){var u=s[l].trim(),p=u.match(/^(\.\d+|\d+(\.\d*)?)(pt|em|ex|mu|px|in|cm|mm)$/);if(p){if(r)throw new d.default("MultipleBBoxProperty","%1 specified twice in %2","Padding",e);var h=m(p[1]+p[3]);h&&(r={height:"+"+h,depth:"+"+h,lspace:h,width:"+"+2*parseInt(p[1],10)+p[3]})}else if(u.match(/^([a-z0-9]+|\#[0-9a-f]{6}|\#[0-9a-f]{3})$/i)){if(n)throw new d.default("MultipleBBoxProperty","%1 specified twice in %2","Background",e);n=u}else if(u.match(/^[-a-z]+:/i)){if(o)throw new d.default("MultipleBBoxProperty","%1 specified twice in %2","Style",e);o=f(u)}else if(""!==u)throw new d.default("InvalidBBoxProperty",'"%1" doesn\'t look like a color, a padding dimension, or a style',u)}r&&(a=t.create("node","mpadded",[a],r)),(n||o)&&(r={},n&&Object.assign(r,{mathbackground:n}),o&&Object.assign(r,{style:o}),a=t.create("node","mstyle",[a],r)),t.Push(a)},function(t){return t}),m=function(t){return t};new i.CommandMap("bbox",{bbox:"BBox"},e.BboxMethods),e.BboxConfiguration=o.Configuration.create("bbox",{handler:{macro:["bbox"]}})},8603:function(t,e,r){var s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.BoldsymbolConfiguration=e.rewriteBoldTokens=e.createBoldToken=e.BoldsymbolMethods=void 0,r(9899)),l=n(r(1256)),c=r(8317),n=r(9140),i=r(8929),u={};function a(t,e,r,n){r=i.NodeFactory.createToken(t,e,r,n);return"mtext"!==e&&t.configuration.parser.stack.env.boldsymbol&&(l.default.setProperty(r,"fixBold",!0),t.configuration.addNode("fixBold",r)),r}function p(t){var e,r;try{for(var n=s(t.data.getList("fixBold")),o=n.next();!o.done;o=n.next()){var i,a=o.value;l.default.getProperty(a,"fixBold")&&(null==(i=l.default.getAttribute(a,"mathvariant"))?l.default.setAttribute(a,"mathvariant",c.TexConstant.Variant.BOLD):l.default.setAttribute(a,"mathvariant",u[i]||i),l.default.removeProperties(a,"fixBold"))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}}u[c.TexConstant.Variant.NORMAL]=c.TexConstant.Variant.BOLD,u[c.TexConstant.Variant.ITALIC]=c.TexConstant.Variant.BOLDITALIC,u[c.TexConstant.Variant.FRAKTUR]=c.TexConstant.Variant.BOLDFRAKTUR,u[c.TexConstant.Variant.SCRIPT]=c.TexConstant.Variant.BOLDSCRIPT,u[c.TexConstant.Variant.SANSSERIF]=c.TexConstant.Variant.BOLDSANSSERIF,u["-tex-calligraphic"]="-tex-bold-calligraphic",u["-tex-oldstyle"]="-tex-bold-oldstyle",u["-tex-mathit"]=c.TexConstant.Variant.BOLDITALIC,e.BoldsymbolMethods={},e.BoldsymbolMethods.Boldsymbol=function(t,e){var r=t.stack.env.boldsymbol,e=(t.stack.env.boldsymbol=!0,t.ParseArg(e));t.stack.env.boldsymbol=r,t.Push(e)},new n.CommandMap("boldsymbol",{boldsymbol:"Boldsymbol"},e.BoldsymbolMethods),e.createBoldToken=a,e.rewriteBoldTokens=p,e.BoldsymbolConfiguration=o.Configuration.create("boldsymbol",{handler:{macro:["boldsymbol"]},nodes:{token:a},postprocessors:[p]})},6538:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.BraketConfiguration=void 0;var n=r(9899),o=r(7191);r(2608),e.BraketConfiguration=n.Configuration.create("braket",{handler:{character:["Braket-characters"],macro:["Braket-macros"]},items:((r={})[o.BraketItem.prototype.kind]=o.BraketItem,r)})},7191:function(t,e,r){var n,i,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.BraketItem=void 0,r(8292)),l=r(9007),c=a(r(1130)),a=(i=s.BaseItem,o(u,i),Object.defineProperty(u.prototype,"kind",{get:function(){return"braket"},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),u.prototype.checkItem=function(t){return t.isKind("close")?[[this.factory.create("mml",this.toMml())],!0]:t.isKind("mml")?(this.Push(t.toMml()),this.getProperty("single")?[[this.toMml()],!0]:s.BaseItem.fail):i.prototype.checkItem.call(this,t)},u.prototype.toMml=function(){var t=i.prototype.toMml.call(this),e=this.getProperty("open"),r=this.getProperty("close");if(this.getProperty("stretchy"))return c.default.fenced(this.factory.configuration,e,t,r);var n={fence:!0,stretchy:!1,symmetric:!0,texClass:l.TEXCLASS.OPEN},o=this.create("token","mo",n,e),n=(n.texClass=l.TEXCLASS.CLOSE,this.create("token","mo",n,r));return this.create("node","mrow",[o,t,n],{open:e,close:r,texClass:l.TEXCLASS.INNER})},u);function u(){return null!==i&&i.apply(this,arguments)||this}e.BraketItem=a},2608:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),r(9140)),n=n(r(8667));new e.CommandMap("Braket-macros",{bra:["Macro","{\\langle {#1} \\vert}",1],ket:["Macro","{\\vert {#1} \\rangle}",1],braket:["Braket","⟨","⟩",!1,1/0],set:["Braket","{","}",!1,1],Bra:["Macro","{\\left\\langle {#1} \\right\\vert}",1],Ket:["Macro","{\\left\\vert {#1} \\right\\rangle}",1],Braket:["Braket","⟨","⟩",!0,1/0],Set:["Braket","{","}",!0,1],ketbra:["Macro","{\\vert {#1} \\rangle\\langle {#2} \\vert}",2],Ketbra:["Macro","{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}",2],"|":"Bar"},n.default),new e.MacroMap("Braket-characters",{"|":"Bar"},n.default)},8667:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),n(r(7693))),i=r(9007),l=n(r(3971)),n={};n.Macro=o.default.Macro,n.Braket=function(t,e,r,n,o,i){var a=t.GetNext();if(""===a)throw new l.default("MissingArgFor","Missing argument for %1",t.currentCS);var s=!0;"{"===a&&(t.i++,s=!1),t.Push(t.itemFactory.create("braket").setProperties({barmax:i,barcount:0,open:r,close:n,stretchy:o,single:s}))},n.Bar=function(t,e){var r,e="|"===e?"|":"∥",n=t.stack.Top();"braket"!==n.kind||n.getProperty("barcount")>=n.getProperty("barmax")?(r=t.create("token","mo",{texClass:i.TEXCLASS.ORD,stretchy:!1},e),t.Push(r)):("|"===e&&"|"===t.GetNext()&&(t.i++,e="∥"),n.getProperty("stretchy")?(r=t.create("node","TeXAtom",[],{texClass:i.TEXCLASS.CLOSE}),t.Push(r),n.setProperty("barcount",n.getProperty("barcount")+1),r=t.create("token","mo",{stretchy:!0,braketbar:!0},e),t.Push(r),r=t.create("node","TeXAtom",[],{texClass:i.TEXCLASS.OPEN}),t.Push(r)):(n=t.create("token","mo",{stretchy:!1,braketbar:!0},e),t.Push(n)))},e.default=n},9499:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.BussproofsConfiguration=void 0;var n=r(9899),o=r(3980),i=r(1933);r(8620),e.BussproofsConfiguration=n.Configuration.create("bussproofs",{handler:{macro:["Bussproofs-macros"],environment:["Bussproofs-environments"]},items:((r={})[o.ProofTreeItem.prototype.kind]=o.ProofTreeItem,r),preprocessors:[[i.saveDocument,1]],postprocessors:[[i.clearDocument,3],[i.makeBsprAttributes,2],[i.balanceRules,1]]})},3980:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),l=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&a(e,t,r);return s(e,t),e},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.ProofTreeItem=void 0,c(r(3971))),p=r(8292),h=c(r(9497)),d=l(r(1933)),c=(o=p.BaseItem,i(f,o),Object.defineProperty(f.prototype,"kind",{get:function(){return"proofTree"},enumerable:!1,configurable:!0}),f.prototype.checkItem=function(t){var e;if(t.isKind("end")&&"prooftree"===t.getName())return e=this.toMml(),d.setProperty(e,"proof",!0),[[this.factory.create("mml",e),t],!0];if(t.isKind("stop"))throw new u.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return this.innerStack.Push(t),p.BaseItem.fail},f.prototype.toMml=function(){var t=o.prototype.toMml.call(this),e=this.innerStack.Top();if(e.isKind("start")&&!e.Size())return t;this.innerStack.Push(this.factory.create("stop"));e=this.innerStack.Top().toMml();return this.create("node","mrow",[e,t],{})},f);function f(){var t=null!==o&&o.apply(this,arguments)||this;return t.leftLabel=null,t.rigthLabel=null,t.innerStack=new h.default(t.factory,{},!0),t}e.ProofTreeItem=c},8620:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),n(r(4934))),n=n(r(5450)),r=r(9140);new r.CommandMap("Bussproofs-macros",{AxiomC:"Axiom",UnaryInfC:["Inference",1],BinaryInfC:["Inference",2],TrinaryInfC:["Inference",3],QuaternaryInfC:["Inference",4],QuinaryInfC:["Inference",5],RightLabel:["Label","right"],LeftLabel:["Label","left"],AXC:"Axiom",UIC:["Inference",1],BIC:["Inference",2],TIC:["Inference",3],RL:["Label","right"],LL:["Label","left"],noLine:["SetLine","none",!1],singleLine:["SetLine","solid",!1],solidLine:["SetLine","solid",!1],dashedLine:["SetLine","dashed",!1],alwaysNoLine:["SetLine","none",!0],alwaysSingleLine:["SetLine","solid",!0],alwaysSolidLine:["SetLine","solid",!0],alwaysDashedLine:["SetLine","dashed",!0],rootAtTop:["RootAtTop",!0],alwaysRootAtTop:["RootAtTop",!0],rootAtBottom:["RootAtTop",!1],alwaysRootAtBottom:["RootAtTop",!1],fCenter:"FCenter",Axiom:"AxiomF",UnaryInf:["InferenceF",1],BinaryInf:["InferenceF",2],TrinaryInf:["InferenceF",3],QuaternaryInf:["InferenceF",4],QuinaryInf:["InferenceF",5]},e.default),new r.EnvironmentMap("Bussproofs-environments",n.default.environment,{prooftree:["Prooftree",null,!1]},e.default)},4934:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(e,"__esModule",{value:!0}),l(r(3971))),u=l(r(8417)),p=l(r(1130)),h=i(r(1933)),l={Prooftree:function(t,e){return t.Push(e),t.itemFactory.create("proofTree").setProperties({name:e.getName(),line:"solid",currentLine:"solid",rootAtTop:!1})},Axiom:function(t,e){var r=t.stack.Top();if("proofTree"!==r.kind)throw new c.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");t=d(t,t.GetArgument(e));h.setProperty(t,"axiom",!0),r.Push(t)}},d=function(t,e){e=p.default.internalMath(t,p.default.trimSpaces(e),0);if(!e[0].childNodes[0].childNodes.length)return t.create("node","mrow",[]);var r=t.create("node","mspace",[],{width:".5ex"}),n=t.create("node","mspace",[],{width:".5ex"});return t.create("node","mrow",s(s([r],a(e),!1),[n],!1))};function f(t,e,r,n,o,i,a){var s,l,c,u,e=t.create("node","mtr",[t.create("node","mtd",[e],{})],{}),r=t.create("node","mtr",[t.create("node","mtd",r,{})],{}),e=t.create("node","mtable",a?[r,e]:[e,r],{align:"top 2",rowlines:i,framespacing:"0 0"});if(h.setProperty(e,"inferenceRule",a?"up":"down"),n&&(s=t.create("node","mpadded",[n],{height:"+.5em",width:"+.5em",voffset:"-.15em"}),h.setProperty(s,"prooflabel","left")),o&&(l=t.create("node","mpadded",[o],{height:"+.5em",width:"+.5em",voffset:"-.15em"}),h.setProperty(l,"prooflabel","right")),n&&o)c=[s,e,l],u="both";else if(n)c=[s,e],u="left";else{if(!o)return e;c=[e,l],u="right"}return e=t.create("node","mrow",c),h.setProperty(e,"labelledRule",u),e}function m(t,e){if("$"!==t.GetNext())throw new c.default("IllegalUseOfCommand","Use of %1 does not match it's definition.",e);t.i++;var r=t.GetUpTo(e,"$");if(-1===r.indexOf("\\fCenter"))throw new c.default("IllegalUseOfCommand","Missing \\fCenter in %1.",e);var e=a(r.split("\\fCenter"),2),r=e[0],e=e[1],r=new u.default(r,t.stack.env,t.configuration).mml(),e=new u.default(e,t.stack.env,t.configuration).mml(),n=new u.default("\\fCenter",t.stack.env,t.configuration).mml(),r=t.create("node","mtd",[r],{}),n=t.create("node","mtd",[n],{}),e=t.create("node","mtd",[e],{}),r=t.create("node","mtr",[r,n,e],{}),n=t.create("node","mtable",[r],{columnspacing:".5ex",columnalign:"center 2"});return h.setProperty(n,"sequent",!0),t.configuration.addNode("sequent",r),n}l.Inference=function(t,e,r){var n=t.stack.Top();if("proofTree"!==n.kind)throw new c.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");if(n.Size()<r)throw new c.default("BadProofTree","Proof tree badly specified.");for(var o=n.getProperty("rootAtTop"),i=1!==r||n.Peek()[0].childNodes.length?r:0,a=[];a.length&&a.unshift(t.create("node","mtd",[],{})),a.unshift(t.create("node","mtd",[n.Pop()],{rowalign:o?"top":"bottom"})),0<--r;);var s=t.create("node","mtr",a,{}),s=t.create("node","mtable",[s],{framespacing:"0 0"}),e=d(t,t.GetArgument(e)),l=n.getProperty("currentLine"),s=(l!==n.getProperty("line")&&n.setProperty("currentLine",n.getProperty("line")),f(t,s,[e],n.getProperty("left"),n.getProperty("right"),l,o));n.setProperty("left",null),n.setProperty("right",null),h.setProperty(s,"inference",i),t.configuration.addNode("inference",s),n.Push(s)},l.Label=function(t,e,r){var n=t.stack.Top();if("proofTree"!==n.kind)throw new c.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");e=p.default.internalMath(t,t.GetArgument(e),0),t=1<e.length?t.create("node","mrow",e,{}):e[0];n.setProperty(r,t)},l.SetLine=function(t,e,r,n){t=t.stack.Top();if("proofTree"!==t.kind)throw new c.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");t.setProperty("currentLine",r),n&&t.setProperty("line",r)},l.RootAtTop=function(t,e,r){t=t.stack.Top();if("proofTree"!==t.kind)throw new c.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");t.setProperty("rootAtTop",r)},l.AxiomF=function(t,e){var r=t.stack.Top();if("proofTree"!==r.kind)throw new c.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");t=m(t,e);h.setProperty(t,"axiom",!0),r.Push(t)},l.FCenter=function(t,e){},l.InferenceF=function(t,e,r){var n=t.stack.Top();if("proofTree"!==n.kind)throw new c.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.");if(n.Size()<r)throw new c.default("BadProofTree","Proof tree badly specified.");for(var o=n.getProperty("rootAtTop"),i=1!==r||n.Peek()[0].childNodes.length?r:0,a=[];a.length&&a.unshift(t.create("node","mtd",[],{})),a.unshift(t.create("node","mtd",[n.Pop()],{rowalign:o?"top":"bottom"})),0<--r;);var s=t.create("node","mtr",a,{}),s=t.create("node","mtable",[s],{framespacing:"0 0"}),e=m(t,e),l=n.getProperty("currentLine"),s=(l!==n.getProperty("line")&&n.setProperty("currentLine",n.getProperty("line")),f(t,s,[e],n.getProperty("left"),n.getProperty("right"),l,o));n.setProperty("left",null),n.setProperty("right",null),h.setProperty(s,"inference",i),t.configuration.addNode("inference",s),n.Push(s)},e.default=l},1933:function(t,B,e){function D(t,e){return t.childNodes["up"===e?1:0].childNodes[0].childNodes[0].childNodes[0].childNodes[0]}function F(t){return $(t,0)}function H(t){for(;t&&null==(0,B.getProperty)(t,"inference");)t=t.parent;return t}function q(t,e){void 0===e&&(e=!1);var r=z(t),n=J(r,(0,B.getProperty)(r,"inferenceRule"));return K(t,r,e)+(s(r)-s(n))/2}function U(t,e,r,n){void 0===n&&(n=!1),((0,B.getProperty)(e,"inferenceRule")||(0,B.getProperty)(e,"labelledRule"))&&(o=t.nodeFactory.create("node","mrow"),e.parent.replaceChild(o,e),o.setChildren([e]),i(e,o),e=o);var o=n?e.childNodes.length-1:0,o=e.childNodes[o];X.default.isType(o,"mspace")?X.default.setAttribute(o,"width",a.default.Em(a.default.dimen2em(X.default.getAttribute(o,"width"))+r)):(o=t.nodeFactory.create("node","mspace",[],{width:a.default.Em(r)}),n?e.appendChild(o):(o.parent=e).childNodes.unshift(o))}var G=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},V=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},X=(Object.defineProperty(B,"__esModule",{value:!0}),B.clearDocument=B.saveDocument=B.makeBsprAttributes=B.removeProperty=B.getProperty=B.setProperty=B.balanceRules=void 0,r(e(1256))),a=r(e(1130)),n=null,W=null,s=function(t){return W.root=t,n.outputJax.getBBox(W,n).w},z=function(t){for(var e=0;t&&!X.default.isType(t,"mtable");){if(X.default.isType(t,"text"))return null;X.default.isType(t,"mrow")?(t=t.childNodes[0],e=0):(t=t.parent.childNodes[e],e++)}return t},$=function(t,e){return t.childNodes[e].childNodes[0].childNodes[0]},J=function(t,e){return t.childNodes["up"===e?0:1].childNodes[0].childNodes[0].childNodes[0]},K=function(t,e,r){void 0===r&&(r=!1);var n=0;if(t===e)return n;if(t!==e.parent&&(o=t.childNodes,i=r?o.length-1:0,X.default.isType(o[i],"mspace")&&(n+=s(o[i])),t=e.parent),t===e)return n;var o=t.childNodes,i=r?o.length-1:0;return o[i]!==e&&(n+=s(o[i])),n},i=function(r,n){["inference","proof","maxAdjust","labelledRule"].forEach(function(t){var e=(0,B.getProperty)(r,t);null!=e&&((0,B.setProperty)(n,t,e),(0,B.removeProperty)(r,t))})},Y=function(t,e,r,n,o){var i,t=t.nodeFactory.create("node","mspace",[],{width:a.default.Em(o)});"left"===n?(i=e.childNodes[r].childNodes[0],(t.parent=i).childNodes.unshift(t)):e.childNodes[r].appendChild(t),(0,B.setProperty)(e.parent,"sequentAdjust_"+n,o)},Z=function(t,e){var r=s(t.childNodes[2]),n=s(e.childNodes[2]);return[s(t.childNodes[0])-s(e.childNodes[0]),r-n]},o=(B.balanceRules=function(t){W=new t.document.options.MathItem("",null,t.math.display);var e,r,n=t.data,o=n,i=o.nodeLists.sequent;if(i)for(var a=i.length-1,s=void 0;s=i[a];a--)if((0,B.getProperty)(s,"sequentProcessed"))(0,B.removeProperty)(s,"sequentProcessed");else{var l=[],c=H(s);if(1===(0,B.getProperty)(c,"inference")){for(l.push(s);1===(0,B.getProperty)(c,"inference");){var c=z(c),u=F(D(c,(0,B.getProperty)(c,"inferenceRule"))),p=(0,B.getProperty)(u,"inferenceRule")?J(u,(0,B.getProperty)(u,"inferenceRule")):u;(0,B.getProperty)(p,"sequent")&&(s=p.childNodes[0],l.push(s),(0,B.setProperty)(s,"sequentProcessed",!0)),c=u}y=g=y=m=f=void 0;for(var h=o,d=l,f=d.pop();d.length;){var m=d.pop(),y=G(Z(f,m),2),g=y[0],y=y[1];(0,B.getProperty)(f.parent,"axiom")&&(Y(h,g<0?f:m,0,"left",Math.abs(g)),Y(h,y<0?f:m,2,"right",Math.abs(y))),f=m}}}var b,v=n.nodeLists.inference||[];try{for(var _=V(v),S=_.next();!S.done;S=_.next()){var x,M,O,E,A,C,w,T,N,L=S.value,j=(0,B.getProperty)(L,"proof"),P=z(L),I=D(P,(0,B.getProperty)(P,"inferenceRule")),k=F(I),R=(!(0,B.getProperty)(k,"inference")||(x=q(k))&&(U(n,k,-x),M=K(L,P,!1),U(n,L,x-M)),$(I,I.childNodes.length-1));null!=(0,B.getProperty)(R,"inference")&&(O=q(R,!0),U(n,R,-O,!0),E=K(L,P,!0),C=void(null!=(A=(0,B.getProperty)(L,"maxAdjust"))&&(O=Math.max(O,A))),!j&&(C=function(t){for(;t&&!X.default.isType(t,"mtd");)t=t.parent;return t}(L))?(w=(b=C).parent.childNodes[b.parent.childNodes.indexOf(b)+1])?(T=n.nodeFactory.create("node","mspace",[],{width:O-E+"em"}),w.appendChild(T),L.removeProperty("maxAdjust")):(N=H(C))&&(O=(0,B.getProperty)(N,"maxAdjust")?Math.max((0,B.getProperty)(N,"maxAdjust"),O):O,(0,B.setProperty)(N,"maxAdjust",O)):U(n,(0,B.getProperty)(L,"proof")?L:L.parent,O-E,!0))}}catch(t){e={error:t}}finally{try{S&&!S.done&&(r=_.return)&&r.call(_)}finally{if(e)throw e.error}}},(r={}).bspr_maxAdjust=!0,r);B.setProperty=function(t,e,r){X.default.setProperty(t,"bspr_"+e,r)},B.getProperty=function(t,e){return X.default.getProperty(t,"bspr_"+e)},B.removeProperty=function(t,e){t.removeProperty("bspr_"+e)},B.makeBsprAttributes=function(t){t.data.root.walkTree(function(e,t){var r=[];e.getPropertyNames().forEach(function(t){!o[t]&&t.match(RegExp("^bspr_"))&&r.push(t+":"+e.getProperty(t))}),r.length&&X.default.setAttribute(e,"semantics",r.join(";"))})},B.saveDocument=function(t){if(!("getBBox"in(n=t.document).outputJax))throw Error("The bussproofs extension requires an output jax with a getBBox() method")},B.clearDocument=function(t){n=null}},8963:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.CancelConfiguration=e.CancelMethods=void 0,r(9899)),i=r(8317),a=r(9140),s=n(r(1130)),l=r(1428);e.CancelMethods={},e.CancelMethods.Cancel=function(t,e,r){var n=t.GetBrackets(e,""),e=t.ParseArg(e),n=s.default.keyvalOptions(n,l.ENCLOSE_OPTIONS);n.notation=r,t.Push(t.create("node","menclose",[e],n))},e.CancelMethods.CancelTo=function(t,e){var r=t.GetBrackets(e,""),n=t.ParseArg(e),e=t.ParseArg(e),r=s.default.keyvalOptions(r,l.ENCLOSE_OPTIONS);r.notation=[i.TexConstant.Notation.UPDIAGONALSTRIKE,i.TexConstant.Notation.UPDIAGONALARROW,i.TexConstant.Notation.NORTHEASTARROW].join(" "),n=t.create("node","mpadded",[n],{depth:"-.1em",height:"+.1em",voffset:".1em"}),t.Push(t.create("node","msup",[t.create("node","menclose",[e],r),n]))},new a.CommandMap("cancel",{cancel:["Cancel",i.TexConstant.Notation.UPDIAGONALSTRIKE],bcancel:["Cancel",i.TexConstant.Notation.DOWNDIAGONALSTRIKE],xcancel:["Cancel",i.TexConstant.Notation.UPDIAGONALSTRIKE+" "+i.TexConstant.Notation.DOWNDIAGONALSTRIKE],cancelto:"CancelTo"},e.CancelMethods),e.CancelConfiguration=o.Configuration.create("cancel",{handler:{macro:["cancel"]}})},3752:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.CasesConfiguration=e.CasesMethods=e.CasesTags=e.CasesBeginItem=void 0,r(9899)),l=r(9140),c=a(r(1130)),u=a(r(7693)),p=a(r(3971)),a=r(1181),h=r(8021),d=r(6471),r=(o=a.BeginItem,i(f,o),Object.defineProperty(f.prototype,"kind",{get:function(){return"cases-begin"},enumerable:!1,configurable:!0}),f.prototype.checkItem=function(t){return t.isKind("end")&&t.getName()===this.getName()&&this.getProperty("end")?(this.setProperty("end",!1),[[],!0]):o.prototype.checkItem.call(this,t)},f);function f(){return null!==o&&o.apply(this,arguments)||this}e.CasesBeginItem=r;m=h.AmsTags,i(y,m),y.prototype.start=function(t,e,r){this.subcounter=0,m.prototype.start.call(this,t,e,r)},y.prototype.autoTag=function(){null==this.currentTag.tag&&("subnumcases"===this.currentTag.env?(0===this.subcounter&&this.counter++,this.subcounter++,this.tag(this.formatNumber(this.counter,this.subcounter),!1)):(0!==this.subcounter&&"numcases-left"===this.currentTag.env||this.counter++,this.tag(this.formatNumber(this.counter),!1)))},y.prototype.formatNumber=function(t,e){return void 0===e&&(e=null),t.toString()+(null===e?"":String.fromCharCode(96+e))};var m,a=y;function y(){var t=null!==m&&m.apply(this,arguments)||this;return t.subcounter=0,t}e.CasesTags=a,e.CasesMethods={NumCases:function(t,e){var r,n;if(t.stack.env.closing===e.getName())return delete t.stack.env.closing,t.Push(t.itemFactory.create("end").setProperty("name",e.getName())),o=(n=t.stack.Top()).Last,r=c.default.copyNode(o,t),n=n.getProperty("left"),d.EmpheqUtil.left(o,r,n+"\\empheqlbrace\\,",t,"numcases-left"),t.Push(t.itemFactory.create("end").setProperty("name",e.getName())),null;n=t.GetArgument("\\begin{"+e.getName()+"}"),e.setProperty("left",n);var o=u.default.EqnArray(t,e,!0,!0,"ll");return o.arraydef.displaystyle=!1,o.arraydef.rowspacing=".2em",o.setProperty("numCases",!0),t.Push(e),o},Entry:function(t,e){if(!t.stack.Top().getProperty("numCases"))return u.default.Entry(t,e);t.Push(t.itemFactory.create("cell").setProperties({isEntry:!0,name:e}));for(var r=t.string,n=0,o=t.i,i=r.length;o<i;){var a=r.charAt(o);if("{"===a)n++,o++;else if("}"===a){if(0===n)break;n--,o++}else{if("&"===a&&0===n)throw new p.default("ExtraCasesAlignTab","Extra alignment tab in text for numcase environment");if("\\"===a&&0===n){a=(r.slice(o+1).match(/^[a-z]+|./i)||[])[0];if("\\"===a||"cr"===a||"end"===a||"label"===a)break;o+=a.length}else o++}}e=r.substr(t.i,o-t.i).replace(/^\s*/,"");t.PushAll(c.default.internalMath(t,e,0)),t.i=o}},new l.EnvironmentMap("cases-env",d.EmpheqUtil.environment,{numcases:["NumCases","cases"],subnumcases:["NumCases","cases"]},e.CasesMethods),new l.MacroMap("cases-macros",{"&":"Entry"},e.CasesMethods),e.CasesConfiguration=s.Configuration.create("cases",{handler:{environment:["cases-env"],character:["cases-macros"]},items:((h={})[r.prototype.kind]=r,h),tags:{cases:a}})},8227:function(t,e,r){var l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.CenternotConfiguration=e.filterCenterOver=void 0,r(9899)),i=n(r(8417)),c=n(r(1256)),a=r(9140),n=n(r(7693));function s(t){var e,r,n=t.data;try{for(var o=l(n.getList("centerOver")),i=o.next();!i.done;i=o.next()){var a=i.value,s=c.default.getTexClass(a.childNodes[0].childNodes[0]);null!==s&&c.default.setProperties(a.parent.parent.parent.parent.parent.parent,{texClass:s})}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}new a.CommandMap("centernot",{centerOver:"CenterOver",centernot:["Macro","\\centerOver{#1}{{⧸}}",1]},{CenterOver:function(t,e){var r="{"+t.GetArgument(e)+"}",e=t.ParseArg(e),n=new i.default(r,t.stack.env,t.configuration).mml(),r=t.create("node","TeXAtom",[new i.default(r,t.stack.env,t.configuration).mml(),t.create("node","mpadded",[t.create("node","mpadded",[e],{width:0,lspace:"-.5width"}),t.create("node","mphantom",[n])],{width:0,lspace:"-.5width"})]);t.configuration.addNode("centerOver",n),t.Push(r)},Macro:n.default.Macro}),e.filterCenterOver=s,e.CenternotConfiguration=o.Configuration.create("centernot",{handler:{macro:["centernot"]},postprocessors:[s]})},5860:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorConfiguration=void 0;var n=r(9140),o=r(9899),i=r(2784),a=r(4207);new n.CommandMap("color",{color:"Color",textcolor:"TextColor",definecolor:"DefineColor",colorbox:"ColorBox",fcolorbox:"FColorBox"},i.ColorMethods),e.ColorConfiguration=o.Configuration.create("color",{handler:{macro:["color"]},options:{color:{padding:"5px",borderWidth:"2px"}},config:function(t,e){e.parseOptions.packageData.set("color",{model:new a.ColorModel})}})},7960:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.COLORS=void 0,e.COLORS=new Map([["Apricot","#FBB982"],["Aquamarine","#00B5BE"],["Bittersweet","#C04F17"],["Black","#221E1F"],["Blue","#2D2F92"],["BlueGreen","#00B3B8"],["BlueViolet","#473992"],["BrickRed","#B6321C"],["Brown","#792500"],["BurntOrange","#F7921D"],["CadetBlue","#74729A"],["CarnationPink","#F282B4"],["Cerulean","#00A2E3"],["CornflowerBlue","#41B0E4"],["Cyan","#00AEEF"],["Dandelion","#FDBC42"],["DarkOrchid","#A4538A"],["Emerald","#00A99D"],["ForestGreen","#009B55"],["Fuchsia","#8C368C"],["Goldenrod","#FFDF42"],["Gray","#949698"],["Green","#00A64F"],["GreenYellow","#DFE674"],["JungleGreen","#00A99A"],["Lavender","#F49EC4"],["LimeGreen","#8DC73E"],["Magenta","#EC008C"],["Mahogany","#A9341F"],["Maroon","#AF3235"],["Melon","#F89E7B"],["MidnightBlue","#006795"],["Mulberry","#A93C93"],["NavyBlue","#006EB8"],["OliveGreen","#3C8031"],["Orange","#F58137"],["OrangeRed","#ED135A"],["Orchid","#AF72B0"],["Peach","#F7965A"],["Periwinkle","#7977B8"],["PineGreen","#008B72"],["Plum","#92268F"],["ProcessBlue","#00B0F0"],["Purple","#99479B"],["RawSienna","#974006"],["Red","#ED1B23"],["RedOrange","#F26035"],["RedViolet","#A1246B"],["Rhodamine","#EF559F"],["RoyalBlue","#0071BC"],["RoyalPurple","#613F99"],["RubineRed","#ED017D"],["Salmon","#F69289"],["SeaGreen","#3FBC9D"],["Sepia","#671800"],["SkyBlue","#46C5DD"],["SpringGreen","#C6DC67"],["Tan","#DA9D76"],["TealBlue","#00AEB3"],["Thistle","#D883B7"],["Turquoise","#00B4CE"],["Violet","#58429B"],["VioletRed","#EF58A0"],["White","#FFFFFF"],["WildStrawberry","#EE2967"],["Yellow","#FFF200"],["YellowGreen","#98CC70"],["YellowOrange","#FAA21A"]])},2784:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.ColorMethods=void 0,n(r(1256))),s=n(r(1130));function l(t){var e="+".concat(t),r=t.replace(/^.*?([a-z]*)$/,"$1"),n=2*parseFloat(e);return{width:"+".concat(n).concat(r),height:e,depth:e,lspace:t}}e.ColorMethods={},e.ColorMethods.Color=function(t,e){var r=t.GetBrackets(e,""),e=t.GetArgument(e),r=t.configuration.packageData.get("color").model.getColor(r,e),e=t.itemFactory.create("style").setProperties({styles:{mathcolor:r}});t.stack.env.color=r,t.Push(e)},e.ColorMethods.TextColor=function(t,e){var r=t.GetBrackets(e,""),n=t.GetArgument(e),r=t.configuration.packageData.get("color").model.getColor(r,n),n=t.stack.env.color,e=(t.stack.env.color=r,t.ParseArg(e)),n=(n?t.stack.env.color=n:delete t.stack.env.color,t.create("node","mstyle",[e],{mathcolor:r}));t.Push(n)},e.ColorMethods.DefineColor=function(t,e){var r=t.GetArgument(e),n=t.GetArgument(e),e=t.GetArgument(e);t.configuration.packageData.get("color").model.defineColor(n,r,e)},e.ColorMethods.ColorBox=function(t,e){var r=t.GetArgument(e),e=s.default.internalMath(t,t.GetArgument(e)),n=t.configuration.packageData.get("color").model,e=t.create("node","mpadded",e,{mathbackground:n.getColor("named",r)});a.default.setProperties(e,l(t.options.color.padding)),t.Push(e)},e.ColorMethods.FColorBox=function(t,e){var r=t.GetArgument(e),n=t.GetArgument(e),e=s.default.internalMath(t,t.GetArgument(e)),o=t.options.color,i=t.configuration.packageData.get("color").model,e=t.create("node","mpadded",e,{mathbackground:i.getColor("named",n),style:"border: ".concat(o.borderWidth," solid ").concat(i.getColor("named",r))});a.default.setProperties(e,l(o.padding)),t.Push(e)}},4207:function(t,e,r){var u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},p=(Object.defineProperty(e,"__esModule",{value:!0}),e.ColorModel=void 0,n(r(3971))),o=r(7960),i=new Map;function a(){this.userColors=new Map}a.prototype.normalizeColor=function(t,e){if(!t||"named"===t)return e;if(i.has(t))return i.get(t)(e);throw new p.default("UndefinedColorModel","Color model '%1' not defined",t)},a.prototype.getColor=function(t,e){return t&&"named"!==t?this.normalizeColor(t,e):this.getColorByName(e)},a.prototype.getColorByName=function(t){return this.userColors.has(t)?this.userColors.get(t):o.COLORS.has(t)?o.COLORS.get(t):t},a.prototype.defineColor=function(t,e,r){t=this.normalizeColor(t,r);this.userColors.set(e,t)},e.ColorModel=a,i.set("rgb",function(t){var e,r,n=t.trim().split(/\s*,\s*/),o="#";if(3!==n.length)throw new p.default("ModelArg1","Color values for the %1 model require 3 numbers","rgb");try{for(var i=u(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(!s.match(/^(\d+(\.\d*)?|\.\d+)$/))throw new p.default("InvalidDecimalNumber","Invalid decimal number");var l=parseFloat(s);if(l<0||1<l)throw new p.default("ModelArg2","Color values for the %1 model must be between %2 and %3","rgb","0","1");var c=Math.floor(255*l).toString(16);o+=c=c.length<2?"0"+c:c}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return o}),i.set("RGB",function(t){var e,r,n=t.trim().split(/\s*,\s*/),o="#";if(3!==n.length)throw new p.default("ModelArg1","Color values for the %1 model require 3 numbers","RGB");try{for(var i=u(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(!s.match(/^\d+$/))throw new p.default("InvalidNumber","Invalid number");var l=parseInt(s);if(255<l)throw new p.default("ModelArg2","Color values for the %1 model must be between %2 and %3","RGB","0","255");var c=l.toString(16);o+=c=c.length<2?"0"+c:c}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return o}),i.set("gray",function(t){if(!t.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/))throw new p.default("InvalidDecimalNumber","Invalid decimal number");t=parseFloat(t);if(t<0||1<t)throw new p.default("ModelArg2","Color values for the %1 model must be between %2 and %3","gray","0","1");t=Math.floor(255*t).toString(16);return t.length<2&&(t="0"+t),"#".concat(t).concat(t).concat(t)})},6648:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.ColortblConfiguration=e.ColorArrayItem=void 0,r(1181)),l=r(9899),c=r(9140),u=a(r(3971)),p=(o=s.ArrayItem,i(h,o),h.prototype.EndEntry=function(){o.prototype.EndEntry.call(this);var t=this.row[this.row.length-1],e=this.color.cell||this.color.row||this.color.col[this.row.length-1];e&&(t.attributes.set("mathbackground",e),this.color.cell="",this.hasColor=!0)},h.prototype.EndRow=function(){o.prototype.EndRow.call(this),this.color.row=""},h.prototype.createMml=function(){var t=o.prototype.createMml.call(this),e=t.isKind("mrow")?t.childNodes[1]:t;return e.isKind("menclose")&&(e=e.childNodes[0].childNodes[0]),this.hasColor&&"none"===e.attributes.get("frame")&&e.attributes.set("frame",""),t},h);function h(){var t=null!==o&&o.apply(this,arguments)||this;return t.color={cell:"",row:"",col:[]},t.hasColor=!1,t}e.ColorArrayItem=p,new c.CommandMap("colortbl",{cellcolor:["TableColor","cell"],rowcolor:["TableColor","row"],columncolor:["TableColor","col"]},{TableColor:function(t,e,r){var n=t.configuration.packageData.get("color").model,o=t.GetBrackets(e,""),n=n.getColor(o,t.GetArgument(e)),o=t.stack.Top();if(!(o instanceof p))throw new u.default("UnsupportedTableColor","Unsupported use of %1",t.currentCS);if("col"===r){if(o.table.length)throw new u.default("ColumnColorNotTop","%1 must be in the top row",e);o.color.col[o.row.length]=n,t.GetBrackets(e,"")&&t.GetBrackets(e,"")}else if(o.color[r]=n,"row"===r&&(o.Size()||o.row.length))throw new u.default("RowColorNotFirst","%1 must be at the beginning of a row",e)}}),e.ColortblConfiguration=l.Configuration.create("colortbl",{handler:{macro:["colortbl"]},items:{array:p},priority:10,config:[function(t,e){e.parseOptions.packageData.has("color")||l.ConfigurationHandler.get("color").config(t,e)},10]})},6628:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorConfiguration=e.ColorV2Methods=void 0;var n=r(9140),r=r(9899);e.ColorV2Methods={Color:function(t,e){var r=t.GetArgument(e),n=t.stack.env.color,e=(t.stack.env.color=r,t.ParseArg(e)),n=(n?t.stack.env.color=n:delete t.stack.env.color,t.create("node","mstyle",[e],{mathcolor:r}));t.Push(n)}},new n.CommandMap("colorv2",{color:"Color"},e.ColorV2Methods),e.ColorConfiguration=r.Configuration.create("colorv2",{handler:{macro:["colorv2"]}})},8458:function(t,e,r){var _=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigMacrosConfiguration=void 0,r(9899)),i=r(7233),a=r(9140),s=n(r(5450)),S=r(8803),x=n(r(1110)),n=r(6793),M="configmacros-map",O="configmacros-env-map";e.ConfigMacrosConfiguration=o.Configuration.create("configmacros",{init:function(t){new a.CommandMap(M,{},{}),new a.EnvironmentMap(O,s.default.environment,{},{}),t.append(o.Configuration.local({handler:{macro:[M],environment:[O]},priority:3}))},config:function(t,e){var r,n,o=e,i=o.parseOptions.handlers.retrieve(M),a=o.parseOptions.options.macros;try{for(var s=_(Object.keys(a)),l=s.next();!l.done;l=s.next()){var c=l.value,u="string"==typeof a[c]?[a[c]]:a[c],p=Array.isArray(u[2])?new S.Macro(c,x.default.MacroWithTemplate,u.slice(0,2).concat(u[2])):new S.Macro(c,x.default.Macro,u);i.add(c,p)}}catch(o){r={error:o}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}var h,d,f=e,m=f.parseOptions.handlers.retrieve(O),y=f.parseOptions.options.environments;try{for(var g=_(Object.keys(y)),b=g.next();!b.done;b=g.next()){var v=b.value;m.add(v,new S.Macro(v,x.default.BeginEnv,[!0].concat(y[v])))}}catch(f){h={error:f}}finally{try{b&&!b.done&&(d=g.return)&&d.call(g)}finally{if(h)throw h.error}}},items:((r={})[n.BeginEnvItem.prototype.kind]=n.BeginEnvItem,r),options:{macros:(0,i.expandable)({}),environments:(0,i.expandable)({})}})},5464:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.EmpheqConfiguration=e.EmpheqMethods=e.EmpheqBeginItem=void 0,r(9899)),c=r(9140),u=s(r(1130)),p=s(r(3971)),s=r(1181),h=r(6471),r=(o=s.BeginItem,i(d,o),Object.defineProperty(d.prototype,"kind",{get:function(){return"empheq-begin"},enumerable:!1,configurable:!0}),d.prototype.checkItem=function(t){return t.isKind("end")&&t.getName()===this.getName()&&this.setProperty("end",!1),o.prototype.checkItem.call(this,t)},d);function d(){return null!==o&&o.apply(this,arguments)||this}e.EmpheqBeginItem=r,e.EmpheqMethods={Empheq:function(t,e){if(t.stack.env.closing===e.getName()){delete t.stack.env.closing,t.Push(t.itemFactory.create("end").setProperty("name",t.stack.global.empheq)),t.stack.global.empheq="";var r=t.stack.Top();h.EmpheqUtil.adjustTable(r,t),t.Push(t.itemFactory.create("end").setProperty("name","empheq"))}else{u.default.checkEqnEnv(t),delete t.stack.global.eqnenv;var r=t.GetBrackets("\\begin{"+e.getName()+"}")||"",n=a((t.GetArgument("\\begin{"+e.getName()+"}")||"").split(/=/),2),o=n[0],n=n[1];if(!h.EmpheqUtil.checkEnv(o))throw new p.default("UnknownEnv",'Unknown environment "%1"',o);r&&e.setProperties(h.EmpheqUtil.splitOptions(r,{left:1,right:1})),t.stack.global.empheq=o,t.string="\\begin{"+o+"}"+(n?"{"+n+"}":"")+t.string.slice(t.i),t.i=0,t.Push(e)}},EmpheqMO:function(t,e,r){t.Push(t.create("token","mo",{},r))},EmpheqDelim:function(t,e){e=t.GetDelimiter(e);t.Push(t.create("token","mo",{stretchy:!0,symmetric:!0},e))}},new c.EnvironmentMap("empheq-env",h.EmpheqUtil.environment,{empheq:["Empheq","empheq"]},e.EmpheqMethods),new c.CommandMap("empheq-macros",{empheqlbrace:["EmpheqMO","{"],empheqrbrace:["EmpheqMO","}"],empheqlbrack:["EmpheqMO","["],empheqrbrack:["EmpheqMO","]"],empheqlangle:["EmpheqMO","⟨"],empheqrangle:["EmpheqMO","⟩"],empheqlparen:["EmpheqMO","("],empheqrparen:["EmpheqMO",")"],empheqlvert:["EmpheqMO","|"],empheqrvert:["EmpheqMO","|"],empheqlVert:["EmpheqMO","‖"],empheqrVert:["EmpheqMO","‖"],empheqlfloor:["EmpheqMO","⌊"],empheqrfloor:["EmpheqMO","⌋"],empheqlceil:["EmpheqMO","⌈"],empheqrceil:["EmpheqMO","⌉"],empheqbiglbrace:["EmpheqMO","{"],empheqbigrbrace:["EmpheqMO","}"],empheqbiglbrack:["EmpheqMO","["],empheqbigrbrack:["EmpheqMO","]"],empheqbiglangle:["EmpheqMO","⟨"],empheqbigrangle:["EmpheqMO","⟩"],empheqbiglparen:["EmpheqMO","("],empheqbigrparen:["EmpheqMO",")"],empheqbiglvert:["EmpheqMO","|"],empheqbigrvert:["EmpheqMO","|"],empheqbiglVert:["EmpheqMO","‖"],empheqbigrVert:["EmpheqMO","‖"],empheqbiglfloor:["EmpheqMO","⌊"],empheqbigrfloor:["EmpheqMO","⌋"],empheqbiglceil:["EmpheqMO","⌈"],empheqbigrceil:["EmpheqMO","⌉"],empheql:"EmpheqDelim",empheqr:"EmpheqDelim",empheqbigl:"EmpheqDelim",empheqbigr:"EmpheqDelim"},e.EmpheqMethods),e.EmpheqConfiguration=l.Configuration.create("empheq",{handler:{macro:["empheq-macros"],environment:["empheq-env"]},items:((s={})[r.prototype.kind]=r,s)})},6471:function(t,l,e){var i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},h=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(l,"__esModule",{value:!0}),l.EmpheqUtil=void 0,r(e(1130))),d=r(e(8417));l.EmpheqUtil={environment:function(t,e,r,n){var o=n[0],e=t.itemFactory.create(o+"-begin").setProperties({name:e,end:o});t.Push(r.apply(void 0,a([t,e],i(n.slice(1)),!1)))},splitOptions:function(t,e){return s.default.keyvalOptions(t,e=void 0===e?null:e,!0)},columnCount:function(t){var e,r,n=0;try{for(var o=h(t.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value,s=a.childNodes.length-(a.isKind("mlabeledtr")?1:0);n<s&&(n=s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n},cellBlock:function(t,e,r,n){var o,i,a=r.create("node","mpadded",[],{height:0,depth:0,voffset:"-1height"}),s=new d.default(t,r.stack.env,r.configuration),l=s.mml();n&&s.configuration.tags.label&&(s.configuration.tags.currentTag.env=n,s.configuration.tags.getTag(!0));try{for(var c=h(l.isInferred?l.childNodes:[l]),u=c.next();!u.done;u=c.next()){var p=u.value;a.appendChild(p)}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return a.appendChild(r.create("node","mphantom",[r.create("node","mpadded",[e],{width:0})])),a},topRowTable:function(t,e){var r=s.default.copyNode(t,e);return r.setChildren(r.childNodes.slice(0,1)),r.attributes.set("align","baseline 1"),t.factory.create("mphantom",{},[e.create("node","mpadded",[r],{width:0})])},rowspanCell:function(t,e,r,n,o){t.appendChild(n.create("node","mpadded",[this.cellBlock(e,s.default.copyNode(r,n),n,o),this.topRowTable(r,n)],{height:0,depth:0,voffset:"height"}))},left:function(t,e,r,n,o){var i,a;void 0===o&&(o=""),t.attributes.set("columnalign","right "+(t.attributes.get("columnalign")||"")),t.attributes.set("columnspacing","0em "+(t.attributes.get("columnspacing")||""));try{for(var s=h(t.childNodes.slice(0).reverse()),l=s.next();!l.done;l=s.next()){var c=l.value,u=n.create("node","mtd");c.childNodes.unshift(u),(u.parent=c).isKind("mlabeledtr")&&(c.childNodes[0]=c.childNodes[1],c.childNodes[1]=u)}}catch(t){i={error:t}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}this.rowspanCell(u,r,e,n,o)},right:function(t,e,r,n,o){void 0===o&&(o=""),0===t.childNodes.length&&t.appendChild(n.create("node","mtr"));for(var i=l.EmpheqUtil.columnCount(t),a=t.childNodes[0];a.childNodes.length<i;)a.appendChild(n.create("node","mtd"));var s=a.appendChild(n.create("node","mtd"));l.EmpheqUtil.rowspanCell(s,r,e,n,o),t.attributes.set("columnalign",(t.attributes.get("columnalign")||"").split(/ /).slice(0,i).join(" ")+" left"),t.attributes.set("columnspacing",(t.attributes.get("columnspacing")||"").split(/ /).slice(0,i-1).join(" ")+" 0em")},adjustTable:function(t,e){var r,n=t.getProperty("left"),o=t.getProperty("right");(n||o)&&(t=t.Last,r=s.default.copyNode(t,e),n&&this.left(t,r,n,e),o&&this.right(t,r,o,e))},allowEnv:{equation:!0,align:!0,gather:!0,flalign:!0,alignat:!0,multline:!0},checkEnv:function(t){return this.allowEnv.hasOwnProperty(t.replace(/\*$/,""))||!1}}},1428:function(t,o,e){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},n=(Object.defineProperty(o,"__esModule",{value:!0}),o.EncloseConfiguration=o.EncloseMethods=o.ENCLOSE_OPTIONS=void 0,e(9899)),i=e(9140),a=r(e(1130));o.ENCLOSE_OPTIONS={"data-arrowhead":1,color:1,mathcolor:1,background:1,mathbackground:1,"data-padding":1,"data-thickness":1},o.EncloseMethods={},o.EncloseMethods.Enclose=function(t,e){var r=t.GetArgument(e).replace(/,/g," "),n=t.GetBrackets(e,""),e=t.ParseArg(e),n=a.default.keyvalOptions(n,o.ENCLOSE_OPTIONS);n.notation=r,t.Push(t.create("node","menclose",[e],n))},new i.CommandMap("enclose",{enclose:"Enclose"},o.EncloseMethods),o.EncloseConfiguration=n.Configuration.create("enclose",{handler:{macro:["enclose"]}})},6121:function(t,i,e){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},n=(Object.defineProperty(i,"__esModule",{value:!0}),i.ExtpfeilConfiguration=i.ExtpfeilMethods=void 0,e(9899)),o=e(9140),a=e(4387),s=r(e(5579)),l=e(1496),c=r(e(3971));i.ExtpfeilMethods={},i.ExtpfeilMethods.xArrow=a.AmsMethods.xArrow,i.ExtpfeilMethods.NewExtArrow=function(t,e){var r=t.GetArgument(e),n=t.GetArgument(e),o=t.GetArgument(e);if(!r.match(/^\\([a-z]+|.)$/i))throw new c.default("NewextarrowArg1","First argument to %1 must be a control sequence name",e);if(!n.match(/^(\d+),(\d+)$/))throw new c.default("NewextarrowArg2","Second argument to %1 must be two integers separated by a comma",e);if(!o.match(/^(\d+|0x[0-9A-F]+)$/i))throw new c.default("NewextarrowArg3","Third argument to %1 must be a unicode character number",e);r=r.substr(1),e=n.split(",");s.default.addMacro(t,r,i.ExtpfeilMethods.xArrow,[parseInt(o),parseInt(e[0]),parseInt(e[1])])},new o.CommandMap("extpfeil",{xtwoheadrightarrow:["xArrow",8608,12,16],xtwoheadleftarrow:["xArrow",8606,17,13],xmapsto:["xArrow",8614,6,7],xlongequal:["xArrow",61,7,7],xtofrom:["xArrow",8644,12,12],Newextarrow:"NewExtArrow"},i.ExtpfeilMethods),i.ExtpfeilConfiguration=n.Configuration.create("extpfeil",{handler:{macro:["extpfeil"]},init:function(t){l.NewcommandConfiguration.init(t)}})},3078:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.GensymbConfiguration=void 0;var n=r(9899),o=r(8317);new(r(9140).CharacterMap)("gensymb-symbols",function(t,e){var r=e.attributes||{},r=(r.mathvariant=o.TexConstant.Variant.NORMAL,r.class="MathML-Unit",t.create("token","mi",r,e.char));t.Push(r)},{ohm:"Ω",degree:"°",celsius:"℃",perthousand:"‰",micro:"µ"}),e.GensymbConfiguration=n.Configuration.create("gensymb",{handler:{macro:["gensymb-symbols"]}})},8901:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlConfiguration=void 0,r(9899)),i=r(9140),n=n(r(332));new i.CommandMap("html_macros",{href:"Href",class:"Class",style:"Style",cssId:"Id"},n.default),e.HtmlConfiguration=o.Configuration.create("html",{handler:{macro:["html_macros"]}})},332:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),n(r(1256))),i=function(t,e){e=t.ParseArg(e);if(!o.default.isInferred(e))return e;var r=o.default.getChildren(e);if(1===r.length)return r[0];r=t.create("node","mrow");return o.default.copyChildren(e,r),o.default.copyAttributes(e,r),r};e.default={Href:function(t,e){var r=t.GetArgument(e),e=i(t,e);o.default.setAttribute(e,"href",r),t.Push(e)},Class:function(t,e){var r=t.GetArgument(e),e=i(t,e),n=o.default.getAttribute(e,"class");o.default.setAttribute(e,"class",r=n?n+" "+r:r),t.Push(e)},Style:function(t,e){var r=t.GetArgument(e),e=i(t,e),n=o.default.getAttribute(e,"style");n&&(";"!==r.charAt(r.length-1)&&(r+=";"),r=n+" "+r),o.default.setAttribute(e,"style",r),t.Push(e)},Id:function(t,e){var r=t.GetArgument(e),e=i(t,e);o.default.setAttribute(e,"id",r),t.Push(e)}}},7535:function(t,e,r){var n,b=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},i=(Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsConfiguration=e.fixPrescripts=e.PAIREDDELIMS=void 0,r(9899)),a=r(9140),v=o(r(1256)),o=r(7233),c=(r(2448),r(836)),u=r(1503),r=r(6224);function s(t){var e,r,n,o,i,a,s=t.data;try{for(var l=b(s.getList("mmultiscripts")),c=l.next();!c.done;c=l.next()){var u=c.value;if(u.getProperty("fixPrescript")){var p=v.default.getChildren(u),h=0;try{n=void 0;for(var d=b([1,2]),f=d.next();!f.done;f=d.next())p[g=f.value]||(v.default.setChild(u,g,s.nodeFactory.create("node","none")),h++)}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}try{i=void 0;for(var m=b([4,5]),y=m.next();!y.done;y=m.next()){var g=y.value;v.default.isType(p[g],"mrow")&&0===v.default.getChildren(p[g]).length&&v.default.setChild(u,g,s.nodeFactory.create("node","none"))}}catch(t){i={error:t}}finally{try{y&&!y.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}2===h&&p.splice(1,2)}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}}e.PAIREDDELIMS="mathtools-paired-delims",e.fixPrescripts=s,e.MathtoolsConfiguration=i.Configuration.create("mathtools",{handler:{macro:["mathtools-macros","mathtools-delimiters"],environment:["mathtools-environments"],delimiter:["mathtools-delimiters"],character:["mathtools-characters"]},items:((n={})[r.MultlinedItem.prototype.kind]=r.MultlinedItem,n),init:function(t){new a.CommandMap(e.PAIREDDELIMS,{},{}),t.append(i.Configuration.local({handler:{macro:[e.PAIREDDELIMS]},priority:-5}))},config:function(t,e){var r,n,o=e.parseOptions,i=o.options.mathtools.pairedDelimiters;try{for(var a=b(Object.keys(i)),s=a.next();!s.done;s=a.next()){var l=s.value;c.MathtoolsUtil.addPairedDelims(o,l,i[l])}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}(0,u.MathtoolsTagFormat)(t,e)},postprocessors:[[s,-6]],options:{mathtools:{multlinegap:"1em","multlined-pos":"c","firstline-afterskip":"","lastline-preskip":"","smallmatrix-align":"c",shortvdotsadjustabove:".2em",shortvdotsadjustbelow:".2em",centercolon:!1,"centercolon-offset":".04em","thincolon-dx":"-.04em","thincolon-dw":"-.08em","use-unicode":!1,"prescript-sub-format":"","prescript-sup-format":"","prescript-arg-format":"","allow-mathtoolsset":!0,pairedDelimiters:(0,o.expandable)({}),tagforms:(0,o.expandable)({})}}})},6224:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.MultlinedItem=void 0,r(2790)),l=a(r(1256)),c=r(8317),a=(o=s.MultlineItem,i(u,o),Object.defineProperty(u.prototype,"kind",{get:function(){return"multlined"},enumerable:!1,configurable:!0}),u.prototype.EndTable=function(){var t,e,r;(this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),1<this.table.length&&(r=(t=this.factory.configuration.options.mathtools).multlinegap,e=t["firstline-afterskip"]||r,t=t["lastline-preskip"]||r,r=l.default.getChildren(this.table[0])[0],l.default.getAttribute(r,"columnalign")!==c.TexConstant.Align.RIGHT&&r.appendChild(this.create("node","mspace",[],{width:e})),r=l.default.getChildren(this.table[this.table.length-1])[0],l.default.getAttribute(r,"columnalign")!==c.TexConstant.Align.LEFT&&((e=l.default.getChildren(r)[0]).childNodes.unshift(null),r=this.create("node","mspace",[],{width:t}),l.default.setChild(e,0,r))),o.prototype.EndTable.call(this)},u);function u(){return null!==o&&o.apply(this,arguments)||this}e.MultlinedItem=a},2448:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),n(r(5450))),n=r(9140),o=r(8317),r=r(643);new n.CommandMap("mathtools-macros",{shoveleft:["HandleShove",o.TexConstant.Align.LEFT],shoveright:["HandleShove",o.TexConstant.Align.RIGHT],xleftrightarrow:["xArrow",8596,10,10],xLeftarrow:["xArrow",8656,12,7],xRightarrow:["xArrow",8658,7,12],xLeftrightarrow:["xArrow",8660,12,12],xhookleftarrow:["xArrow",8617,10,5],xhookrightarrow:["xArrow",8618,5,10],xmapsto:["xArrow",8614,10,10],xrightharpoondown:["xArrow",8641,5,10],xleftharpoondown:["xArrow",8637,10,5],xrightleftharpoons:["xArrow",8652,10,10],xrightharpoonup:["xArrow",8640,5,10],xleftharpoonup:["xArrow",8636,10,5],xleftrightharpoons:["xArrow",8651,10,10],mathllap:["MathLap","l",!1],mathrlap:["MathLap","r",!1],mathclap:["MathLap","c",!1],clap:["MtLap","c"],textllap:["MtLap","l"],textrlap:["MtLap","r"],textclap:["MtLap","c"],cramped:"Cramped",crampedllap:["MathLap","l",!0],crampedrlap:["MathLap","r",!0],crampedclap:["MathLap","c",!0],crampedsubstack:["Macro","\\begin{crampedsubarray}{c}#1\\end{crampedsubarray}",1],mathmbox:"MathMBox",mathmakebox:"MathMakeBox",overbracket:"UnderOverBracket",underbracket:"UnderOverBracket",refeq:"HandleRef",MoveEqLeft:["Macro","\\hspace{#1em}&\\hspace{-#1em}",1,"2"],Aboxed:"Aboxed",ArrowBetweenLines:"ArrowBetweenLines",vdotswithin:"VDotsWithin",shortvdotswithin:"ShortVDotsWithin",MTFlushSpaceAbove:"FlushSpaceAbove",MTFlushSpaceBelow:"FlushSpaceBelow",DeclarePairedDelimiter:"DeclarePairedDelimiter",DeclarePairedDelimiterX:"DeclarePairedDelimiterX",DeclarePairedDelimiterXPP:"DeclarePairedDelimiterXPP",DeclarePairedDelimiters:"DeclarePairedDelimiter",DeclarePairedDelimitersX:"DeclarePairedDelimiterX",DeclarePairedDelimitersXPP:"DeclarePairedDelimiterXPP",centercolon:["CenterColon",!0,!0],ordinarycolon:["CenterColon",!1],MTThinColon:["CenterColon",!0,!0,!0],coloneqq:["Relation",":=","≔"],Coloneqq:["Relation","::=","⩴"],coloneq:["Relation",":-"],Coloneq:["Relation","::-"],eqqcolon:["Relation","=:","≕"],Eqqcolon:["Relation","=::"],eqcolon:["Relation","-:","∹"],Eqcolon:["Relation","-::"],colonapprox:["Relation",":\\approx"],Colonapprox:["Relation","::\\approx"],colonsim:["Relation",":\\sim"],Colonsim:["Relation","::\\sim"],dblcolon:["Relation","::","∷"],nuparrow:["NArrow","↑",".06em"],ndownarrow:["NArrow","↓",".25em"],bigtimes:["Macro","\\mathop{\\Large\\kern-.1em\\boldsymbol{\\times}\\kern-.1em}"],splitfrac:["SplitFrac",!1],splitdfrac:["SplitFrac",!0],xmathstrut:"XMathStrut",prescript:"Prescript",newtagform:["NewTagForm",!1],renewtagform:["NewTagForm",!0],usetagform:"UseTagForm",adjustlimits:["MacroWithTemplate","\\mathop{{#1}\\vphantom{{#3}}}_{{#2}\\vphantom{{#4}}}\\mathop{{#3}\\vphantom{{#1}}}_{{#4}\\vphantom{{#2}}}",4,,"_",,"_"],mathtoolsset:"SetOptions"},r.MathtoolsMethods),new n.EnvironmentMap("mathtools-environments",e.default.environment,{dcases:["Array",null,"\\{","","ll",null,".2em","D"],rcases:["Array",null,"","\\}","ll",null,".2em"],drcases:["Array",null,"","\\}","ll",null,".2em","D"],"dcases*":["Cases",null,"{","","D"],"rcases*":["Cases",null,"","}"],"drcases*":["Cases",null,"","}","D"],"cases*":["Cases",null,"{",""],"matrix*":["MtMatrix",null,null,null],"pmatrix*":["MtMatrix",null,"(",")"],"bmatrix*":["MtMatrix",null,"[","]"],"Bmatrix*":["MtMatrix",null,"\\{","\\}"],"vmatrix*":["MtMatrix",null,"\\vert","\\vert"],"Vmatrix*":["MtMatrix",null,"\\Vert","\\Vert"],"smallmatrix*":["MtSmallMatrix",null,null,null],psmallmatrix:["MtSmallMatrix",null,"(",")","c"],"psmallmatrix*":["MtSmallMatrix",null,"(",")"],bsmallmatrix:["MtSmallMatrix",null,"[","]","c"],"bsmallmatrix*":["MtSmallMatrix",null,"[","]"],Bsmallmatrix:["MtSmallMatrix",null,"\\{","\\}","c"],"Bsmallmatrix*":["MtSmallMatrix",null,"\\{","\\}"],vsmallmatrix:["MtSmallMatrix",null,"\\vert","\\vert","c"],"vsmallmatrix*":["MtSmallMatrix",null,"\\vert","\\vert"],Vsmallmatrix:["MtSmallMatrix",null,"\\Vert","\\Vert","c"],"Vsmallmatrix*":["MtSmallMatrix",null,"\\Vert","\\Vert"],crampedsubarray:["Array",null,null,null,null,"0em","0.1em","S'",1],multlined:"MtMultlined",spreadlines:["SpreadLines",!0],lgathered:["AmsEqnArray",null,null,null,"l",null,".5em","D"],rgathered:["AmsEqnArray",null,null,null,"r",null,".5em","D"]},r.MathtoolsMethods),new n.DelimiterMap("mathtools-delimiters",e.default.delimiter,{"\\lparen":"(","\\rparen":")"}),new n.CommandMap("mathtools-characters",{":":["CenterColon",!0]},r.MathtoolsMethods)},643:function(t,i,e){var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},f=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},m=(Object.defineProperty(i,"__esModule",{value:!0}),i.MathtoolsMethods=void 0,r(e(1130))),n=e(4387),o=r(e(7693)),l=r(e(8417)),p=r(e(3971)),h=r(e(1256)),a=e(9007),c=e(6010),d=e(7233),y=r(e(5579)),r=r(e(1110)),g=e(836);i.MathtoolsMethods={MtMatrix:function(t,e,r,n){var o=t.GetBrackets("\\begin{".concat(e.getName(),"}"),"c");return i.MathtoolsMethods.Array(t,e,r,n,o)},MtSmallMatrix:function(t,e,r,n,o){return o=o||t.GetBrackets("\\begin{".concat(e.getName(),"}"),t.options.mathtools["smallmatrix-align"]),i.MathtoolsMethods.Array(t,e,r,n,o,m.default.Em(1/3),".2em","S",1)},MtMultlined:function(t,e){var r="\\begin{".concat(e.getName(),"}"),n=t.GetBrackets(r,t.options.mathtools["multlined-pos"]||"c"),r=n?t.GetBrackets(r,""):"",o=(n&&!n.match(/^[cbt]$/)&&(r=(o=f([n,r],2))[0],n=o[1]),t.Push(e),t.itemFactory.create("multlined",t,e));return o.arraydef={displaystyle:!0,rowspacing:".5em",width:r||"auto",columnwidth:"100%"},m.default.setArrayAlign(o,n||"c")},HandleShove:function(t,e,r){var n=t.stack.Top();if("multline"!==n.kind&&"multlined"!==n.kind)throw new p.default("CommandInMultlined","%1 can only appear within the multline or multlined environments",e);if(n.Size())throw new p.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",e);n.setProperty("shove",r);var o,n=t.GetBrackets(e),e=t.ParseArg(e);n&&(o=t.create("node","mrow",[]),n=t.create("node","mspace",[],{width:n}),"left"===r?(o.appendChild(n),o.appendChild(e)):(o.appendChild(e),o.appendChild(n)),e=o),t.Push(e)},SpreadLines:function(t,e){var r,n;if(t.stack.env.closing===e.getName()){delete t.stack.env.closing;var o=t.stack.Pop(),i=o.toMml(),a=o.getProperty("spread");if(i.isInferred)try{for(var s=u(h.default.getChildren(i)),l=s.next();!l.done;l=s.next()){var c=l.value;g.MathtoolsUtil.spreadLines(c,a)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}else g.MathtoolsUtil.spreadLines(i,a);t.Push(i)}else a=t.GetDimen("\\begin{".concat(e.getName(),"}")),e.setProperty("spread",a),t.Push(e)},Cases:function(t,e,r,n,o){var i=t.itemFactory.create("array").setProperty("casesEnv",e.getName());return i.arraydef={rowspacing:".2em",columnspacing:"1em",columnalign:"left"},"D"===o&&(i.arraydef.displaystyle=!0),i.setProperties({open:r,close:n}),t.Push(e),i},MathLap:function(t,e,r,n){var o=t.GetBrackets(e,"").trim(),e=t.create("node","mstyle",[t.create("node","mpadded",[t.ParseArg(e)],s({width:0},"r"===r?{}:{lspace:"l"===r?"-1width":"-.5width"}))],{"data-cramped":n});g.MathtoolsUtil.setDisplayLevel(e,o),t.Push(t.create("node","TeXAtom",[e]))},Cramped:function(t,e){var r=t.GetBrackets(e,"").trim(),e=t.ParseArg(e),e=t.create("node","mstyle",[e],{"data-cramped":!0});g.MathtoolsUtil.setDisplayLevel(e,r),t.Push(e)},MtLap:function(t,e,r){e=m.default.internalMath(t,t.GetArgument(e),0),e=t.create("node","mpadded",e,{width:0});"r"!==r&&h.default.setAttribute(e,"lspace","l"===r?"-1width":"-.5width"),t.Push(e)},MathMakeBox:function(t,e){var r=t.GetBrackets(e),n=t.GetBrackets(e,"c"),e=t.create("node","mpadded",[t.ParseArg(e)]),r=(r&&h.default.setAttribute(e,"width",r),(0,d.lookup)(n,{c:"center",r:"right"},""));r&&h.default.setAttribute(e,"data-align",r),t.Push(e)},MathMBox:function(t,e){t.Push(t.create("node","mrow",[t.ParseArg(e)]))},UnderOverBracket:function(t,e){var r=(0,c.length2em)(t.GetBrackets(e,".1em"),.1),n=t.GetBrackets(e,".2em"),o=t.GetArgument(e),e=f("o"===e.charAt(1)?["over","accent","bottom"]:["under","accentunder","top"],3),i=e[0],a=e[1],e=e[2],r=(0,c.em)(r),s=new l.default(o,t.stack.env,t.configuration).mml(),o=new l.default(o,t.stack.env,t.configuration).mml(),o=t.create("node","mpadded",[t.create("node","mphantom",[o])],{style:"border: ".concat(r," solid; border-").concat(e,": none"),height:n,depth:0}),r=m.default.underOver(t,s,o,i,!0),e=h.default.getChildAt(h.default.getChildAt(r,0),0);h.default.setAttribute(e,a,!0),t.Push(r)},Aboxed:function(t,e){var r=g.MathtoolsUtil.checkAlignment(t,e),r=(r.row.length%2==1&&r.row.push(t.create("node","mtd",[])),t.GetArgument(e)),n=t.string.substr(t.i),r=(t.string=r+"&&\\endAboxed",t.i=0,t.GetUpTo(e,"&")),o=t.GetUpTo(e,"&"),e=(t.GetUpTo(e,"\\endAboxed"),m.default.substituteArgs(t,[r,o],"\\rlap{\\boxed{#1{}#2}}\\kern.267em\\phantom{#1}&\\phantom{{}#2}\\kern.267em"));t.string=e+n,t.i=0},ArrowBetweenLines:function(t,e){var r=g.MathtoolsUtil.checkAlignment(t,e);if(r.Size()||r.row.length)throw new p.default("BetweenLines","%1 must be on a row by itself",e);var n=t.GetStar(),e=t.GetBrackets(e,"\\Updownarrow");n&&(r.EndEntry(),r.EndEntry());n=new l.default(n?"\\quad"+e:e+"\\quad",t.stack.env,t.configuration).mml();t.Push(n),r.EndEntry(),r.EndRow()},VDotsWithin:function(t,e){var r=t.stack.Top(),r=r.getProperty("flushspaceabove")===r.table.length,e="\\mmlToken{mi}{}"+t.GetArgument(e)+"\\mmlToken{mi}{}",e=new l.default(e,t.stack.env,t.configuration).mml(),r=t.create("node","mpadded",[t.create("node","mpadded",[t.create("node","mo",[t.create("text","⋮")])],s({width:0,lspace:"-.5width"},r?{height:"-.6em",voffset:"-.18em"}:{})),t.create("node","mphantom",[e])],{lspace:".5width"});t.Push(r)},ShortVDotsWithin:function(t,e){var r=t.stack.Top(),n=t.GetStar();i.MathtoolsMethods.FlushSpaceAbove(t,"\\MTFlushSpaceAbove"),n||r.EndEntry(),i.MathtoolsMethods.VDotsWithin(t,"\\vdotswithin"),n&&r.EndEntry(),i.MathtoolsMethods.FlushSpaceBelow(t,"\\MTFlushSpaceBelow")},FlushSpaceAbove:function(t,e){e=g.MathtoolsUtil.checkAlignment(t,e);e.setProperty("flushspaceabove",e.table.length),e.addRowSpacing("-"+t.options.mathtools.shortvdotsadjustabove)},FlushSpaceBelow:function(t,e){e=g.MathtoolsUtil.checkAlignment(t,e);e.Size()&&e.EndEntry(),e.EndRow(),e.addRowSpacing("-"+t.options.mathtools.shortvdotsadjustbelow)},PairedDelimiters:function(r,t,e,n,o,i,a,s){void 0===o&&(o="#1"),void 0===i&&(i=1),void 0===a&&(a=""),void 0===s&&(s="");var l=r.GetStar(),c=l?"":r.GetBrackets(t),u=f(l?["\\left","\\right"]:c?[c+"l",c+"r"]:["",""],2),p=u[0],u=u[1],l=l?"\\middle":c||"";if(i){for(var h=[],d=h.length;d<i;d++)h.push(r.GetArgument(t));a=m.default.substituteArgs(r,h,a),o=m.default.substituteArgs(r,h,o),s=m.default.substituteArgs(r,h,s)}o=o.replace(/\\delimsize/g,l),r.string=[a,p,e,o,u,n,s,r.string.substr(r.i)].reduce(function(t,e){return m.default.addArgs(r,t,e)},""),r.i=0,m.default.checkMaxMacros(r)},DeclarePairedDelimiter:function(t,e){var r=y.default.GetCsNameArgument(t,e),n=t.GetArgument(e),e=t.GetArgument(e);g.MathtoolsUtil.addPairedDelims(t.configuration,r,[n,e])},DeclarePairedDelimiterX:function(t,e){var r=y.default.GetCsNameArgument(t,e),n=y.default.GetArgCount(t,e),o=t.GetArgument(e),i=t.GetArgument(e),e=t.GetArgument(e);g.MathtoolsUtil.addPairedDelims(t.configuration,r,[o,i,e,n])},DeclarePairedDelimiterXPP:function(t,e){var r=y.default.GetCsNameArgument(t,e),n=y.default.GetArgCount(t,e),o=t.GetArgument(e),i=t.GetArgument(e),a=t.GetArgument(e),s=t.GetArgument(e),e=t.GetArgument(e);g.MathtoolsUtil.addPairedDelims(t.configuration,r,[i,a,e,n,o,s])},CenterColon:function(t,e,r,n,o){void 0===n&&(n=!1),void 0===o&&(o=!1);var i=t.options.mathtools,a=t.create("token","mo",{},":");r&&(i.centercolon||n)&&(r=i["centercolon-offset"],a=t.create("node","mpadded",[a],s({voffset:r,height:"+".concat(r),depth:"-".concat(r)},o?{width:i["thincolon-dw"],lspace:i["thincolon-dx"]}:{}))),t.Push(a)},Relation:function(t,e,r,n){t.options.mathtools["use-unicode"]&&n?t.Push(t.create("token","mo",{texClass:a.TEXCLASS.REL},n)):(r="\\mathrel{"+r.replace(/:/g,"\\MTThinColon").replace(/-/g,"\\mathrel{-}")+"}",t.string=m.default.addArgs(t,r,t.string.substr(t.i)),t.i=0)},NArrow:function(t,e,r,n){t.Push(t.create("node","TeXAtom",[t.create("token","mtext",{},r),t.create("node","mpadded",[t.create("node","mpadded",[t.create("node","menclose",[t.create("node","mspace",[],{height:".2em",depth:0,width:".4em"})],{notation:"updiagonalstrike","data-thickness":".05em","data-padding":0})],{width:0,lspace:"-.5width",voffset:n}),t.create("node","mphantom",[t.create("token","mtext",{},r)])],{width:0,lspace:"-.5width"})],{texClass:a.TEXCLASS.REL}))},SplitFrac:function(t,e,r){var n=t.ParseArg(e),e=t.ParseArg(e);t.Push(t.create("node","mstyle",[t.create("node","mfrac",[t.create("node","mstyle",[n,t.create("token","mi"),t.create("token","mspace",{width:"1em"})],{scriptlevel:0}),t.create("node","mstyle",[t.create("token","mspace",{width:"1em"}),t.create("token","mi"),e],{scriptlevel:0})],{linethickness:0,numalign:"left",denomalign:"right"})],{displaystyle:r,scriptlevel:0}))},XMathStrut:function(t,e){var r=t.GetBrackets(e),n=t.GetArgument(e),n=g.MathtoolsUtil.plusOrMinus(e,n),r=g.MathtoolsUtil.plusOrMinus(e,r||n);t.Push(t.create("node","TeXAtom",[t.create("node","mpadded",[t.create("node","mphantom",[t.create("token","mo",{stretchy:!1},"(")])],{width:0,height:n+"height",depth:r+"depth"})],{texClass:a.TEXCLASS.ORD}))},Prescript:function(t,e){var r=g.MathtoolsUtil.getScript(t,e,"sup"),n=g.MathtoolsUtil.getScript(t,e,"sub"),e=g.MathtoolsUtil.getScript(t,e,"arg");h.default.isType(r,"none")&&h.default.isType(n,"none")?t.Push(e):(e=t.create("node","mmultiscripts",[e]),h.default.getChildren(e).push(null,null),h.default.appendChildren(e,[t.create("node","mprescripts"),n,r]),e.setProperty("fixPrescript",!0),t.Push(e))},NewTagForm:function(t,e,r){void 0===r&&(r=!1);var n=t.tags;if(!("mtFormats"in n))throw new p.default("TagsNotMT","%1 can only be used with ams or mathtools tags",e);var o=t.GetArgument(e).trim();if(!o)throw new p.default("InvalidTagFormID","Tag form name can't be empty");var i=t.GetBrackets(e,""),a=t.GetArgument(e),t=t.GetArgument(e);if(!r&&n.mtFormats.has(o))throw new p.default("DuplicateTagForm","Duplicate tag form: %1",o);n.mtFormats.set(o,[a,t,i])},UseTagForm:function(t,e){var r=t.tags;if(!("mtFormats"in r))throw new p.default("TagsNotMT","%1 can only be used with ams or mathtools tags",e);t=t.GetArgument(e).trim();if(t){if(!r.mtFormats.has(t))throw new p.default("UndefinedTagForm","Undefined tag form: %1",t);r.mtCurrent=r.mtFormats.get(t)}else r.mtCurrent=null},SetOptions:function(t,e){var r,n,o=t.options.mathtools;if(!o["allow-mathtoolsset"])throw new p.default("ForbiddenMathtoolsSet","%1 is disabled",e);var i={},e=(Object.keys(o).forEach(function(t){"pariedDelimiters"!==t&&"tagforms"!==t&&"allow-mathtoolsset"!==t&&(i[t]=1)}),t.GetArgument(e)),a=m.default.keyvalOptions(e,i,!0);try{for(var s=u(Object.keys(a)),l=s.next();!l.done;l=s.next()){var c=l.value;o[c]=a[c]}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}},Array:o.default.Array,Macro:o.default.Macro,xArrow:n.AmsMethods.xArrow,HandleRef:n.AmsMethods.HandleRef,AmsEqnArray:n.AmsMethods.AmsEqnArray,MacroWithTemplate:r.default.MacroWithTemplate}},1503:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsTagFormat=void 0,a(r(3971))),p=r(6521),h=0;e.MathtoolsTagFormat=function(t,s){var l,e=s.parseOptions.options.tags,t=("base"!==e&&t.tags.hasOwnProperty(e)&&p.TagsFactory.add(e,t.tags[e]),l=p.TagsFactory.create(s.parseOptions.options.tags).constructor,o(r,l),r.prototype.formatTag=function(t){var e,r,n;return this.mtCurrent?(e=(n=i(this.mtCurrent,3))[0],r=n[1],((n=n[2])?"".concat(e).concat(n,"{").concat(t,"}"):"".concat(e).concat(t)).concat(r)):l.prototype.formatTag.call(this,t)},r),e="MathtoolsTags-"+ ++h;function r(){var e,t,r=l.call(this)||this,n=(r.mtFormats=new Map,r.mtCurrent=null,s.parseOptions.options.mathtools.tagforms);try{for(var o=c(Object.keys(n)),i=o.next();!i.done;i=o.next()){var a=i.value;if(!Array.isArray(n[a])||3!==n[a].length)throw new u.default("InvalidTagFormDef",'The tag form definition for "%1" should be an array fo three strings',a);r.mtFormats.set(a,n[a])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r}p.TagsFactory.add(e,t),s.parseOptions.options.tags=e}},836:function(t,e,r){var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},i=(Object.defineProperty(e,"__esModule",{value:!0}),e.MathtoolsUtil=void 0,r(1181)),a=o(r(1130)),s=o(r(8417)),l=o(r(3971)),c=r(8803),u=r(7233),p=r(643),h=r(7535);e.MathtoolsUtil={setDisplayLevel:function(t,e){var r;e&&(r=(e=n((0,u.lookup)(e,{"\\displaystyle":[!0,0],"\\textstyle":[!1,0],"\\scriptstyle":[!1,1],"\\scriptscriptstyle":[!1,2]},[null,null]),2))[0],e=e[1],null!==r&&(t.attributes.set("displaystyle",r),t.attributes.set("scriptlevel",e)))},checkAlignment:function(t,e){t=t.stack.Top();if(t.kind!==i.EqnArrayItem.prototype.kind)throw new l.default("NotInAlignment","%1 can only be used in aligment environments",e);return t},addPairedDelims:function(t,e,r){t.handlers.retrieve(h.PAIREDDELIMS).add(e,new c.Macro(e,p.MathtoolsMethods.PairedDelimiters,r))},spreadLines:function(t,e){var r,n;t.isKind("mtable")&&(n=(n=t.attributes.get("rowspacing"))?(r=a.default.dimen2em(e),n.split(/ /).map(function(t){return a.default.Em(Math.max(0,a.default.dimen2em(t)+r))}).join(" ")):e,t.attributes.set("rowspacing",n))},plusOrMinus:function(t,e){if((e=e.trim()).match(/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)$/))return e.match(/^[-+]/)?e:"+"+e;throw new l.default("NotANumber","Argument to %1 is not a number",t)},getScript:function(t,e,r){e=a.default.trimSpaces(t.GetArgument(e));if(""===e)return t.create("node","none");r=t.options.mathtools["prescript-".concat(r,"-format")];return r&&(e="".concat(r,"{").concat(e,"}")),new s.default(e,t.stack.env,t.configuration).mml()}}},6944:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.MhchemConfiguration=void 0,r(9899)),i=r(9140),a=n(r(3971)),n=n(r(7693)),s=r(4387),l=r(7718),r={};r.Macro=n.default.Macro,r.xArrow=s.AmsMethods.xArrow,r.Machine=function(t,e,r){var n,e=t.GetArgument(e);try{n=l.mhchemParser.toTex(e,r)}catch(t){throw new a.default(t[0],t[1])}t.string=n+t.string.substr(t.i),t.i=0},new i.CommandMap("mhchem",{ce:["Machine","ce"],pu:["Machine","pu"],longrightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longRightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{\\leftharpoondown}}"],longLeftrightharpoons:["Macro","\\stackrel{\\textstyle\\vphantom{{-}}{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longleftrightarrows:["Macro","\\stackrel{\\longrightarrow}{\\smash{\\longleftarrow}\\Rule{0px}{.25em}{0px}}"],tripledash:["Macro","\\vphantom{-}\\raise2mu{\\kern2mu\\tiny\\text{-}\\kern1mu\\text{-}\\kern1mu\\text{-}\\kern2mu}"],xleftrightarrow:["xArrow",8596,6,6],xrightleftharpoons:["xArrow",8652,5,7],xRightleftharpoons:["xArrow",8652,5,7],xLeftrightharpoons:["xArrow",8652,5,7]},r),e.MhchemConfiguration=o.Configuration.create("mhchem",{handler:{macro:["mhchem"]}})},1496:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.NewcommandConfiguration=void 0,r(9899)),l=r(6793),c=a(r(5579)),u=(r(5117),a(r(5450))),p=i(r(9140));e.NewcommandConfiguration=s.Configuration.create("newcommand",{handler:{macro:["Newcommand-macros"]},items:((a={})[l.BeginEnvItem.prototype.kind]=l.BeginEnvItem,a),options:{maxMacros:1e3},init:function(t){new p.DelimiterMap(c.default.NEW_DELIMITER,u.default.delimiter,{}),new p.CommandMap(c.default.NEW_COMMAND,{},{}),new p.EnvironmentMap(c.default.NEW_ENVIRONMENT,u.default.environment,{},{}),t.append(s.Configuration.local({handler:{character:[],delimiter:[c.default.NEW_DELIMITER],macro:[c.default.NEW_DELIMITER,c.default.NEW_COMMAND],environment:[c.default.NEW_ENVIRONMENT]},priority:-1}))}})},6793:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.BeginEnvItem=void 0,a(r(3971))),a=(o=r(8292).BaseItem,i(l,o),Object.defineProperty(l.prototype,"kind",{get:function(){return"beginEnv"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),l.prototype.checkItem=function(t){if(t.isKind("end")){if(t.getName()!==this.getName())throw new s.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),t.getName());return[[this.factory.create("mml",this.toMml())],!0]}if(t.isKind("stop"))throw new s.default("EnvMissingEnd","Missing \\end{%1}",this.getName());return o.prototype.checkItem.call(this,t)},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.BeginEnvItem=a},5117:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),n(r(1110)));new(r(9140).CommandMap)("Newcommand-macros",{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"},e.default)},1110:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(e,"__esModule",{value:!0}),a(r(3971))),s=i(r(9140)),i=a(r(7693)),u=a(r(1130)),p=a(r(5579)),l={NewCommand:function(t,e){var r=p.default.GetCsNameArgument(t,e),n=p.default.GetArgCount(t,e),o=t.GetBrackets(e),e=t.GetArgument(e);p.default.addMacro(t,r,l.Macro,[e,n,o])},NewEnvironment:function(t,e){var r=u.default.trimSpaces(t.GetArgument(e)),n=p.default.GetArgCount(t,e),o=t.GetBrackets(e),i=t.GetArgument(e),e=t.GetArgument(e);p.default.addEnvironment(t,r,l.BeginEnv,[!0,i,e,n,o])},MacroDef:function(t,e){var r=p.default.GetCSname(t,e),n=p.default.GetTemplate(t,e,"\\"+r),e=t.GetArgument(e);n instanceof Array?p.default.addMacro(t,r,l.MacroWithTemplate,[e].concat(n)):p.default.addMacro(t,r,l.Macro,[e,n])},Let:function(t,e){var r=p.default.GetCSname(t,e),n=t.GetNext(),o=("="===n&&(t.i++,n=t.GetNext()),t.configuration.handlers);if("\\"!==n){t.i++;var i=o.get("delimiter").lookup(n);i?p.default.addDelimiter(t,"\\"+r,i.char,i.attributes):p.default.addMacro(t,r,l.Macro,[n])}else if(e=p.default.GetCSname(t,e),i=o.get("delimiter").lookup("\\"+e))p.default.addDelimiter(t,"\\"+r,i.char,i.attributes);else{var a=o.get("macro").applicable(e);if(a){if(a instanceof s.MacroMap)return n=a.lookup(e),void p.default.addMacro(t,r,n.func,n.args,n.symbol);i=a.lookup(e),o=p.default.disassembleSymbol(r,i);p.default.addMacro(t,r,function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=p.default.assembleSymbol(r);return a.parser(t,o)},o)}}},MacroWithTemplate:function(t,e,r,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=parseInt(n,10);if(a){var s=[];if(t.GetNext(),o[0]&&!p.default.MatchParam(t,o[0]))throw new c.default("MismatchUseDef","Use of %1 doesn't match its definition",e);for(var l=0;l<a;l++)s.push(p.default.GetParameter(t,e,o[l+1]));r=u.default.substituteArgs(t,s,r)}t.string=u.default.addArgs(t,r,t.string.slice(t.i)),t.i=0,u.default.checkMaxMacros(t)},BeginEnv:function(t,e,r,n,o,i){if(e.getProperty("end")&&t.stack.env.closing===e.getName())return delete t.stack.env.closing,a=t.string.slice(t.i),t.string=n,t.i=0,t.Parse(),t.string=a,t.i=0,t.itemFactory.create("end").setProperty("name",e.getName());if(o){var a,s=[];null!=i&&(a=t.GetBrackets("\\begin{"+e.getName()+"}"),s.push(null==a?i:a));for(var l=s.length;l<o;l++)s.push(t.GetArgument("\\begin{"+e.getName()+"}"));r=u.default.substituteArgs(t,s,r),n=u.default.substituteArgs(t,[],n)}return t.string=u.default.addArgs(t,r,t.string.slice(t.i)),t.i=0,t.itemFactory.create("beginEnv").setProperty("name",e.getName())}};l.Macro=i.default.Macro,e.default=l},5579:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o,i,a=n(r(1130)),s=n(r(3971)),l=r(8803);function c(t,e){return t.string.substr(t.i,e.length)!==e||e.match(/\\[a-z]+$/i)&&t.string.charAt(t.i+e.length).match(/[a-z]/i)?0:(t.i+=e.length,1)}(i=o=o||{}).disassembleSymbol=function(t,e){var r=[t,e.char];if(e.attributes)for(var n in e.attributes)r.push(n),r.push(e.attributes[n]);return r},i.assembleSymbol=function(t){for(var e=t[0],r=t[1],n={},o=2;o<t.length;o+=2)n[t[o]]=t[o+1];return new l.Symbol(e,r,n)},i.GetCSname=function(t,e){if("\\"!==t.GetNext())throw new s.default("MissingCS","%1 must be followed by a control sequence",e);return a.default.trimSpaces(t.GetArgument(e)).substr(1)},i.GetCsNameArgument=function(t,e){t=a.default.trimSpaces(t.GetArgument(e));if((t="\\"===t.charAt(0)?t.substr(1):t).match(/^(.|[a-z]+)$/i))return t;throw new s.default("IllegalControlSequenceName","Illegal control sequence name for %1",e)},i.GetArgCount=function(t,e){t=t.GetBrackets(e);if(t&&!(t=a.default.trimSpaces(t)).match(/^[0-9]+$/))throw new s.default("IllegalParamNumber","Illegal number of parameters specified in %1",e);return t},i.GetTemplate=function(t,e,r){for(var n=t.GetNext(),o=[],i=0,a=t.i;t.i<t.string.length;){if("#"===(n=t.GetNext())){if(a!==t.i&&(o[i]=t.string.substr(a,t.i-a)),!(n=t.string.charAt(++t.i)).match(/^[1-9]$/))throw new s.default("CantUseHash2","Illegal use of # in template for %1",r);if(parseInt(n)!==++i)throw new s.default("SequentialParam","Parameters for %1 must be numbered sequentially",r);a=t.i+1}else if("{"===n)return a!==t.i&&(o[i]=t.string.substr(a,t.i-a)),0<o.length?[i.toString()].concat(o):i;t.i++}throw new s.default("MissingReplacementString","Missing replacement string for definition of %1",e)},i.GetParameter=function(t,e,r){if(null==r)return t.GetArgument(e);for(var n=t.i,o=0,i=0;t.i<t.string.length;){var a=t.string.charAt(t.i);if("{"===a)t.i===n&&(i=1),t.GetArgument(e),o=t.i-n;else{if(c(t,r))return i&&(n++,o-=2),t.string.substr(n,o);"\\"===a?(t.i++,o++,i=0,(a=t.string.substr(t.i).match(/[a-z]+|./i))&&(t.i+=a[0].length,o=t.i-n)):(t.i++,o++,i=0)}}throw new s.default("RunawayArgument","Runaway argument for %1?",e)},i.MatchParam=c,i.addDelimiter=function(t,e,r,n){t.configuration.handlers.retrieve(i.NEW_DELIMITER).add(e,new l.Symbol(e,r,n))},i.addMacro=function(t,e,r,n,o){void 0===o&&(o=""),t.configuration.handlers.retrieve(i.NEW_COMMAND).add(e,new l.Macro(o||e,r,n))},i.addEnvironment=function(t,e,r,n){t.configuration.handlers.retrieve(i.NEW_ENVIRONMENT).add(e,new l.Macro(e,r,n))},i.NEW_DELIMITER="new-Delimiter",i.NEW_COMMAND="new-Command",i.NEW_ENVIRONMENT="new-Environment",e.default=o},4234:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.NoErrorsConfiguration=void 0;r=r(9899);e.NoErrorsConfiguration=r.Configuration.create("noerrors",{nodes:{error:function(t,e,r,n){n=t.create("token","mtext",{},n.replace(/\n/g," "));return t.create("node","merror",[n],{"data-mjx-error":e,title:e})}}})},4898:function(t,e,r){var c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.NoUndefinedConfiguration=void 0,r(9899));e.NoUndefinedConfiguration=r.Configuration.create("noundefined",{fallback:{macro:function(t,e){var r,n,e=t.create("text","\\"+e),o=t.options.noundefined||{},i={};try{for(var a=c(["color","background","size"]),s=a.next();!s.done;s=a.next()){var l=s.value;o[l]&&(i["math"+l]=o[l])}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}t.Push(t.create("node","mtext",[],i,e))}},options:{noundefined:{color:"red",background:"",size:""}},priority:3})},3168:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.PhysicsConfiguration=void 0;var n=r(9899),o=r(2612);r(3847),e.PhysicsConfiguration=n.Configuration.create("physics",{handler:{macro:["Physics-automatic-bracing-macros","Physics-vector-macros","Physics-vector-mo","Physics-vector-mi","Physics-derivative-macros","Physics-expressions-macros","Physics-quick-quad-macros","Physics-bra-ket-macros","Physics-matrix-macros"],character:["Physics-characters"],environment:["Physics-aux-envs"]},items:((r={})[o.AutoOpen.prototype.kind]=o.AutoOpen,r),options:{physics:{italicdiff:!1,arrowdel:!1}}})},2612:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.AutoOpen=void 0,r(8292)),l=a(r(1130)),c=a(r(1256)),u=a(r(8417)),a=(o=s.BaseItem,i(p,o),Object.defineProperty(p.prototype,"kind",{get:function(){return"auto open"},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isOpen",{get:function(){return!0},enumerable:!1,configurable:!0}),p.prototype.toMml=function(){var t=this.factory.configuration.parser,e=this.getProperty("right"),r=(this.getProperty("smash")&&(r=o.prototype.toMml.call(this),r=t.create("node","mpadded",[r],{height:0,depth:0}),this.Clear(),this.Push(t.create("node","TeXAtom",[r]))),e&&this.Push(new u.default(e,t.stack.env,t.configuration).mml()),l.default.fenced(this.factory.configuration,this.getProperty("open"),o.prototype.toMml.call(this),this.getProperty("close"),this.getProperty("big")));return c.default.removeProperties(r,"open","close","texClass"),r},p.prototype.checkItem=function(t){t.isKind("mml")&&1===t.Size()&&(e=t.toMml()).isKind("mo")&&e.getText()===this.getProperty("open")&&this.openCount++;var e=t.getProperty("autoclose");return e&&e===this.getProperty("close")&&!this.openCount--?this.getProperty("ignore")?(this.Clear(),[[],!0]):[[this.toMml()],!0]:o.prototype.checkItem.call(this,t)},p.errors=Object.assign(Object.create(s.BaseItem.errors),{stop:["ExtraOrMissingDelims","Extra open or missing close delimiter"]}),p);function p(){var t=null!==o&&o.apply(this,arguments)||this;return t.openCount=0,t}e.AutoOpen=a},3847:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),r(9140)),o=n(r(7157)),i=r(8317),n=n(r(5450)),r=r(9007);new e.CommandMap("Physics-automatic-bracing-macros",{quantity:"Quantity",qty:"Quantity",pqty:["Quantity","(",")",!0],bqty:["Quantity","[","]",!0],vqty:["Quantity","|","|",!0],Bqty:["Quantity","\\{","\\}",!0],absolutevalue:["Quantity","|","|",!0],abs:["Quantity","|","|",!0],norm:["Quantity","\\|","\\|",!0],evaluated:"Eval",eval:"Eval",order:["Quantity","(",")",!0,"O",i.TexConstant.Variant.CALLIGRAPHIC],commutator:"Commutator",comm:"Commutator",anticommutator:["Commutator","\\{","\\}"],acomm:["Commutator","\\{","\\}"],poissonbracket:["Commutator","\\{","\\}"],pb:["Commutator","\\{","\\}"]},o.default),new e.CharacterMap("Physics-vector-mo",n.default.mathchar0mo,{dotproduct:["⋅",{mathvariant:i.TexConstant.Variant.BOLD}],vdot:["⋅",{mathvariant:i.TexConstant.Variant.BOLD}],crossproduct:"×",cross:"×",cp:"×",gradientnabla:["∇",{mathvariant:i.TexConstant.Variant.BOLD}]}),new e.CharacterMap("Physics-vector-mi",n.default.mathchar0mi,{real:["ℜ",{mathvariant:i.TexConstant.Variant.NORMAL}],imaginary:["ℑ",{mathvariant:i.TexConstant.Variant.NORMAL}]}),new e.CommandMap("Physics-vector-macros",{vnabla:"Vnabla",vectorbold:"VectorBold",vb:"VectorBold",vectorarrow:["StarMacro",1,"\\vec{\\vb","{#1}}"],va:["StarMacro",1,"\\vec{\\vb","{#1}}"],vectorunit:["StarMacro",1,"\\hat{\\vb","{#1}}"],vu:["StarMacro",1,"\\hat{\\vb","{#1}}"],gradient:["OperatorApplication","\\vnabla","(","["],grad:["OperatorApplication","\\vnabla","(","["],divergence:["VectorOperator","\\vnabla\\vdot","(","["],div:["VectorOperator","\\vnabla\\vdot","(","["],curl:["VectorOperator","\\vnabla\\crossproduct","(","["],laplacian:["OperatorApplication","\\nabla^2","(","["]},o.default),new e.CommandMap("Physics-expressions-macros",{sin:"Expression",sinh:"Expression",arcsin:"Expression",asin:"Expression",cos:"Expression",cosh:"Expression",arccos:"Expression",acos:"Expression",tan:"Expression",tanh:"Expression",arctan:"Expression",atan:"Expression",csc:"Expression",csch:"Expression",arccsc:"Expression",acsc:"Expression",sec:"Expression",sech:"Expression",arcsec:"Expression",asec:"Expression",cot:"Expression",coth:"Expression",arccot:"Expression",acot:"Expression",exp:["Expression",!1],log:"Expression",ln:"Expression",det:["Expression",!1],Pr:["Expression",!1],tr:["Expression",!1],trace:["Expression",!1,"tr"],Tr:["Expression",!1],Trace:["Expression",!1,"Tr"],rank:"NamedFn",erf:["Expression",!1],Residue:["Macro","\\mathrm{Res}"],Res:["OperatorApplication","\\Residue","(","[","{"],principalvalue:["OperatorApplication","{\\cal P}"],pv:["OperatorApplication","{\\cal P}"],PV:["OperatorApplication","{\\rm P.V.}"],Re:["OperatorApplication","\\mathrm{Re}","{"],Im:["OperatorApplication","\\mathrm{Im}","{"],sine:["NamedFn","sin"],hypsine:["NamedFn","sinh"],arcsine:["NamedFn","arcsin"],asine:["NamedFn","asin"],cosine:["NamedFn","cos"],hypcosine:["NamedFn","cosh"],arccosine:["NamedFn","arccos"],acosine:["NamedFn","acos"],tangent:["NamedFn","tan"],hyptangent:["NamedFn","tanh"],arctangent:["NamedFn","arctan"],atangent:["NamedFn","atan"],cosecant:["NamedFn","csc"],hypcosecant:["NamedFn","csch"],arccosecant:["NamedFn","arccsc"],acosecant:["NamedFn","acsc"],secant:["NamedFn","sec"],hypsecant:["NamedFn","sech"],arcsecant:["NamedFn","arcsec"],asecant:["NamedFn","asec"],cotangent:["NamedFn","cot"],hypcotangent:["NamedFn","coth"],arccotangent:["NamedFn","arccot"],acotangent:["NamedFn","acot"],exponential:["NamedFn","exp"],logarithm:["NamedFn","log"],naturallogarithm:["NamedFn","ln"],determinant:["NamedFn","det"],Probability:["NamedFn","Pr"]},o.default),new e.CommandMap("Physics-quick-quad-macros",{qqtext:"Qqtext",qq:"Qqtext",qcomma:["Macro","\\qqtext*{,}"],qc:["Macro","\\qqtext*{,}"],qcc:["Qqtext","c.c."],qif:["Qqtext","if"],qthen:["Qqtext","then"],qelse:["Qqtext","else"],qotherwise:["Qqtext","otherwise"],qunless:["Qqtext","unless"],qgiven:["Qqtext","given"],qusing:["Qqtext","using"],qassume:["Qqtext","assume"],qsince:["Qqtext","since"],qlet:["Qqtext","let"],qfor:["Qqtext","for"],qall:["Qqtext","all"],qeven:["Qqtext","even"],qodd:["Qqtext","odd"],qinteger:["Qqtext","integer"],qand:["Qqtext","and"],qor:["Qqtext","or"],qas:["Qqtext","as"],qin:["Qqtext","in"]},o.default),new e.CommandMap("Physics-derivative-macros",{diffd:"DiffD",flatfrac:["Macro","\\left.#1\\middle/#2\\right.",2],differential:["Differential","\\diffd"],dd:["Differential","\\diffd"],variation:["Differential","\\delta"],var:["Differential","\\delta"],derivative:["Derivative",2,"\\diffd"],dv:["Derivative",2,"\\diffd"],partialderivative:["Derivative",3,"\\partial"],pderivative:["Derivative",3,"\\partial"],pdv:["Derivative",3,"\\partial"],functionalderivative:["Derivative",2,"\\delta"],fderivative:["Derivative",2,"\\delta"],fdv:["Derivative",2,"\\delta"]},o.default),new e.CommandMap("Physics-bra-ket-macros",{bra:"Bra",ket:"Ket",innerproduct:"BraKet",ip:"BraKet",braket:"BraKet",outerproduct:"KetBra",dyad:"KetBra",ketbra:"KetBra",op:"KetBra",expectationvalue:"Expectation",expval:"Expectation",ev:"Expectation",matrixelement:"MatrixElement",matrixel:"MatrixElement",mel:"MatrixElement"},o.default),new e.CommandMap("Physics-matrix-macros",{matrixquantity:"MatrixQuantity",mqty:"MatrixQuantity",pmqty:["Macro","\\mqty(#1)",1],Pmqty:["Macro","\\mqty*(#1)",1],bmqty:["Macro","\\mqty[#1]",1],vmqty:["Macro","\\mqty|#1|",1],smallmatrixquantity:["MatrixQuantity",!0],smqty:["MatrixQuantity",!0],spmqty:["Macro","\\smqty(#1)",1],sPmqty:["Macro","\\smqty*(#1)",1],sbmqty:["Macro","\\smqty[#1]",1],svmqty:["Macro","\\smqty|#1|",1],matrixdeterminant:["Macro","\\vmqty{#1}",1],mdet:["Macro","\\vmqty{#1}",1],smdet:["Macro","\\svmqty{#1}",1],identitymatrix:"IdentityMatrix",imat:"IdentityMatrix",xmatrix:"XMatrix",xmat:"XMatrix",zeromatrix:["Macro","\\xmat{0}{#1}{#2}",2],zmat:["Macro","\\xmat{0}{#1}{#2}",2],paulimatrix:"PauliMatrix",pmat:"PauliMatrix",diagonalmatrix:"DiagonalMatrix",dmat:"DiagonalMatrix",antidiagonalmatrix:["DiagonalMatrix",!0],admat:["DiagonalMatrix",!0]},o.default),new e.EnvironmentMap("Physics-aux-envs",n.default.environment,{smallmatrix:["Array",null,null,null,"c","0.333em",".2em","S",1]},o.default),new e.MacroMap("Physics-characters",{"|":["AutoClose",r.TEXCLASS.ORD],")":"AutoClose","]":"AutoClose"},o.default)},7157:function(t,e,r){var i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),n(r(7693))),m=n(r(8417)),d=n(r(3971)),f=r(9007),y=n(r(1130)),g=n(r(1256)),a=r(8929),n={},b={"(":")","[":"]","{":"}","|":"|"},v=/^(b|B)i(g{1,2})$/,s=(n.Quantity=function(t,e,r,n,o,i,a){void 0===r&&(r="("),void 0===n&&(n=")"),void 0===i&&(i=""),void 0===a&&(a="");var s,l=!!(o=void 0===o?!1:o)&&t.GetStar(),c=t.GetNext(),u=t.i,p=null;if("\\"===c){if(t.i++,!(p=t.GetCS()).match(v))return s=t.create("node","mrow"),t.Push(y.default.fenced(t.configuration,r,s,n)),void(t.i=u);c=t.GetNext()}var h=b[c];if(o&&"{"!==c)throw new d.default("MissingArgFor","Missing argument for %1",t.currentCS);if(h)return i&&(i=t.create("token","mi",{texClass:f.TEXCLASS.OP},i),a&&g.default.setAttribute(i,"mathvariant",a),t.Push(t.itemFactory.create("fn",i))),"{"===c?(a=t.GetArgument(e),c=o?r:"\\{",h=o?n:"\\}",void t.Push(new m.default(a=l?c+" "+a+" "+h:p?"\\"+p+"l"+c+" "+a+" \\"+p+"r"+h:"\\left"+c+" "+a+" \\right"+h,t.stack.env,t.configuration).mml())):(o&&(c=r,h=n),t.i++,void t.Push(t.itemFactory.create("auto open").setProperties({open:c,close:h,big:p})));s=t.create("node","mrow"),t.Push(y.default.fenced(t.configuration,r,s,n)),t.i=u},n.Eval=function(t,e){var r=t.GetStar(),n=t.GetNext();if("{"!==n){if("("===n||"["===n)return t.i++,void t.Push(t.itemFactory.create("auto open").setProperties({open:n,close:"|",smash:r,right:"\\vphantom{\\int}"}));throw new d.default("MissingArgFor","Missing argument for %1",t.currentCS)}n=t.GetArgument(e),e="\\left. "+(r?"\\smash{"+n+"}":n)+" \\vphantom{\\int}\\right|";t.string=t.string.slice(0,t.i)+e+t.string.slice(t.i)},n.Commutator=function(t,e,r,n){void 0===r&&(r="["),void 0===n&&(n="]");var o=t.GetStar(),i=t.GetNext(),a=null;if("\\"===i){if(t.i++,!(a=t.GetCS()).match(v))throw new d.default("MissingArgFor","Missing argument for %1",t.currentCS);i=t.GetNext()}if("{"!==i)throw new d.default("MissingArgFor","Missing argument for %1",t.currentCS);i=t.GetArgument(e)+","+t.GetArgument(e),i=o?r+" "+i+" "+n:a?"\\"+a+"l"+r+" "+i+" \\"+a+"r"+n:"\\left"+r+" "+i+" \\right"+n;t.Push(new m.default(i,t.stack.env,t.configuration).mml())},[65,90]),l=[97,122],c=[913,937],u=[945,969],p=[48,57];function h(t,e){return t>=e[0]&&t<=e[1]}function _(t,e,r,n){var o=t.configuration.parser,t=a.NodeFactory.createToken(t,e,r,n),e=n.codePointAt(0);return 1===n.length&&!o.stack.env.font&&o.stack.env.vectorFont&&(h(e,s)||h(e,l)||h(e,c)||h(e,p)||h(e,u)&&o.stack.env.vectorStar||g.default.getAttribute(t,"accent"))&&g.default.setAttribute(t,"mathvariant",o.stack.env.vectorFont),t}n.VectorBold=function(t,e){var r=t.GetStar(),e=t.GetArgument(e),n=t.configuration.nodeFactory.get("token"),o=t.stack.env.font,r=(delete t.stack.env.font,t.configuration.nodeFactory.set("token",_),t.stack.env.vectorFont=r?"bold-italic":"bold",t.stack.env.vectorStar=r,new m.default(e,t.stack.env,t.configuration).mml());o&&(t.stack.env.font=o),delete t.stack.env.vectorFont,delete t.stack.env.vectorStar,t.configuration.nodeFactory.set("token",n),t.Push(r)},n.StarMacro=function(t,e,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var i=t.GetStar(),a=[];if(r)for(var s=a.length;s<r;s++)a.push(t.GetArgument(e));i=n.join(i?"*":""),i=y.default.substituteArgs(t,a,i);t.string=y.default.addArgs(t,i,t.string.slice(t.i)),t.i=0,y.default.checkMaxMacros(t)};function S(t,e,r,n,o){if(n=new m.default(n,t.stack.env,t.configuration).mml(),t.Push(t.itemFactory.create(e,n)),e=t.GetNext(),n=b[e]){o=-1!==o.indexOf(e);if("{"===e)return r=(o?"\\left\\{":"")+" "+t.GetArgument(r)+" "+(o?"\\right\\}":""),t.string=r+t.string.slice(t.i),t.i=0;o&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:e,close:n})))}}function x(t,e,r){var t=i(t,3),n=t[0],o=t[1],t=t[2];return e&&r?"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(o,"}\\middle\\vert{").concat(t,"}\\right\\rangle"):e?"\\langle{".concat(n,"}\\vert{").concat(o,"}\\vert{").concat(t,"}\\rangle"):"\\left\\langle{".concat(n,"}\\right\\vert{").concat(o,"}\\left\\vert{").concat(t,"}\\right\\rangle")}n.OperatorApplication=function(t,e,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];S(t,"fn",e,r,n)},n.VectorOperator=function(t,e,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];S(t,"mml",e,r,n)},n.Expression=function(t,e,r,n){void 0===r&&(r=!0),n=(n=void 0===n?"":n)||e.slice(1);r=r?t.GetBrackets(e):null,e=t.create("token","mi",{texClass:f.TEXCLASS.OP},n);r&&(n=new m.default(r,t.stack.env,t.configuration).mml(),e=t.create("node","msup",[e,n])),t.Push(t.itemFactory.create("fn",e)),"("===t.GetNext()&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")"})))},n.Qqtext=function(t,e,r){r=(t.GetStar()?"":"\\quad")+"\\text{"+(r||t.GetArgument(e))+"}\\quad ";t.string=t.string.slice(0,t.i)+r+t.string.slice(t.i)},n.Differential=function(t,e,r){var n,o=t.GetBrackets(e),o=null!=o?"^{"+o+"}":" ",i="("===t.GetNext(),a="{"===t.GetNext(),r=r+o;i||a?a?(r+=t.GetArgument(e),n=new m.default(r,t.stack.env,t.configuration).mml(),t.Push(t.create("node","TeXAtom",[n],{texClass:f.TEXCLASS.OP}))):(t.Push(new m.default(r,t.stack.env,t.configuration).mml()),t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")"}))):(r+=t.GetArgument(e,!0)||"",n=new m.default(r,t.stack.env,t.configuration).mml(),t.Push(n))},n.Derivative=function(t,e,r,n){var o=t.GetStar(),i=t.GetBrackets(e),a=1,s=[];for(s.push(t.GetArgument(e));"{"===t.GetNext()&&a<r;)s.push(t.GetArgument(e)),a++;var l=!1,c=" ",u=" ";2<r&&2<s.length?(c="^{"+(s.length-1)+"}",l=!0):null!=i&&(2<r&&1<s.length&&(l=!0),u=c="^{"+i+"}");for(var p,i=o?"\\flatfrac":"\\frac",o=1<s.length?s[0]:"",h=1<s.length?s[1]:s[0],d="",f=2;p=s[f];f++)d+=n+" "+p;t.Push(new m.default(i+"{"+n+c+o+"}{"+n+" "+h+u+" "+d+"}",t.stack.env,t.configuration).mml()),"("===t.GetNext()&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")",ignore:l})))},n.Bra=function(t,e){var r,n,o=t.GetStar(),e=t.GetArgument(e),i="",a=!1,s=!1,l=("\\"===t.GetNext()&&(r=t.i,t.i++,n=t.GetCS(),(l=t.lookup("macro",n))&&"ket"===l.symbol?(a=!0,r=t.i,s=t.GetStar(),"{"===t.GetNext()?i=t.GetArgument(n,!0):(t.i=r,s=!1)):t.i=r),a?o||s?"\\langle{".concat(e,"}\\vert{").concat(i,"}\\rangle"):"\\left\\langle{".concat(e,"}\\middle\\vert{").concat(i,"}\\right\\rangle"):o||s?"\\langle{".concat(e,"}\\vert"):"\\left\\langle{".concat(e,"}\\right\\vert{").concat(i,"}"));t.Push(new m.default(l,t.stack.env,t.configuration).mml())},n.Ket=function(t,e){var r=t.GetStar(),e=t.GetArgument(e),r=r?"\\vert{".concat(e,"}\\rangle"):"\\left\\vert{".concat(e,"}\\right\\rangle");t.Push(new m.default(r,t.stack.env,t.configuration).mml())},n.BraKet=function(t,e){var r=t.GetStar(),n=t.GetArgument(e),o=null,e=null==(o="{"===t.GetNext()?t.GetArgument(e,!0):o)?r?"\\langle{".concat(n,"}\\vert{").concat(n,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(n,"}\\right\\rangle"):r?"\\langle{".concat(n,"}\\vert{").concat(o,"}\\rangle"):"\\left\\langle{".concat(n,"}\\middle\\vert{").concat(o,"}\\right\\rangle");t.Push(new m.default(e,t.stack.env,t.configuration).mml())},n.KetBra=function(t,e){var r=t.GetStar(),n=t.GetArgument(e),o=null,e=null==(o="{"===t.GetNext()?t.GetArgument(e,!0):o)?r?"\\vert{".concat(n,"}\\rangle\\!\\langle{").concat(n,"}\\vert"):"\\left\\vert{".concat(n,"}\\middle\\rangle\\!\\middle\\langle{").concat(n,"}\\right\\vert"):r?"\\vert{".concat(n,"}\\rangle\\!\\langle{").concat(o,"}\\vert"):"\\left\\vert{".concat(n,"}\\middle\\rangle\\!\\middle\\langle{").concat(o,"}\\right\\vert");t.Push(new m.default(e,t.stack.env,t.configuration).mml())},n.Expectation=function(t,e){var r=t.GetStar(),n=r&&t.GetStar(),o=t.GetArgument(e),i=null,e=("{"===t.GetNext()&&(i=t.GetArgument(e,!0)),o&&i?x([i,o,i],r,n):r?"\\langle {".concat(o,"} \\rangle"):"\\left\\langle {".concat(o,"} \\right\\rangle"));t.Push(new m.default(e,t.stack.env,t.configuration).mml())},n.MatrixElement=function(t,e){var r=t.GetStar(),n=r&&t.GetStar(),e=x([t.GetArgument(e),t.GetArgument(e),t.GetArgument(e)],r,n);t.Push(new m.default(e,t.stack.env,t.configuration).mml())},n.MatrixQuantity=function(t,e,r){var n=t.GetStar(),r=r?"smallmatrix":"array",o="",i="",a="";switch(t.GetNext()){case"{":o=t.GetArgument(e);break;case"(":t.i++,i=n?"\\lgroup":"(",a=n?"\\rgroup":")",o=t.GetUpTo(e,")");break;case"[":t.i++,i="[",o=t.GetUpTo(e,a="]");break;case"|":t.i++,o=t.GetUpTo(e,a=i="|");break;default:i="(",a=")"}t.Push(new m.default((i?"\\left":"")+i+"\\begin{"+r+"}{} "+o+"\\end{"+r+"}"+(i?"\\right":"")+a,t.stack.env,t.configuration).mml())},n.IdentityMatrix=function(t,e){var e=t.GetArgument(e),r=parseInt(e,10);if(isNaN(r))throw new d.default("InvalidNumber","Invalid number");if(r<=1)return t.string="1"+t.string.slice(t.i),void(t.i=0);for(var n=Array(r).fill("0"),o=[],i=0;i<r;i++){var a=n.slice();a[i]="1",o.push(a.join(" & "))}t.string=o.join("\\\\ ")+t.string.slice(t.i),t.i=0},n.XMatrix=function(t,e){var r=t.GetStar(),n=t.GetArgument(e),o=t.GetArgument(e),e=t.GetArgument(e),i=parseInt(o,10),a=parseInt(e,10);if(isNaN(i)||isNaN(a)||a.toString()!==e||i.toString()!==o)throw new d.default("InvalidNumber","Invalid number");i=i<1?1:i,a=a<1?1:a;if(!r)return s=Array(a).fill(n).join(" & "),e=Array(i).fill(s).join("\\\\ "),t.string=e+t.string.slice(t.i),void(t.i=0);o="";if(1===i&&1===a)o=n;else if(1===i){for(var s=[],l=1;l<=a;l++)s.push("".concat(n,"_{").concat(l,"}"));o=s.join(" & ")}else if(1===a){for(s=[],l=1;l<=i;l++)s.push("".concat(n,"_{").concat(l,"}"));o=s.join("\\\\ ")}else{for(var c=[],l=1;l<=i;l++){s=[];for(var u=1;u<=a;u++)s.push("".concat(n,"_{{").concat(l,"}{").concat(u,"}}"));c.push(s.join(" & "))}o=c.join("\\\\ ")}t.string=o+t.string.slice(t.i),t.i=0},n.PauliMatrix=function(t,e){var e=t.GetArgument(e),r=e.slice(1);switch(e[0]){case"0":r+=" 1 & 0\\\\ 0 & 1";break;case"1":case"x":r+=" 0 & 1\\\\ 1 & 0";break;case"2":case"y":r+=" 0 & -i\\\\ i & 0";break;case"3":case"z":r+=" 1 & 0\\\\ 0 & -1"}t.string=r+t.string.slice(t.i),t.i=0},n.DiagonalMatrix=function(t,e,r){if("{"===t.GetNext()){var n=t.i,o=(t.GetArgument(e),t.i);t.i=n+1;for(var i=[],a="",s=t.i;s<o;){try{a=t.GetUpTo(e,",")}catch(e){t.i=o,i.push(t.string.slice(s,o-1));break}if(t.i>=o){i.push(t.string.slice(s,o));break}s=t.i,i.push(a)}t.string=function(t,e){for(var r=t.length,n=[],o=0;o<r;o++)n.push(Array(e?r-o:o+1).join("&")+"\\mqty{"+t[o]+"}");return n.join("\\\\ ")}(i,r)+t.string.slice(o),t.i=0}},n.AutoClose=function(t,e,r){var n=t.create("token","mo",{stretchy:!1},e),n=t.itemFactory.create("mml",n).setProperties({autoclose:e});t.Push(n)},n.Vnabla=function(t,e){var r=t.options.physics.arrowdel?"\\vec{\\gradientnabla}":"{\\gradientnabla}";return t.Push(new m.default(r,t.stack.env,t.configuration).mml())},n.DiffD=function(t,e){var r=t.options.physics.italicdiff?"d":"{\\rm d}";return t.Push(new m.default(r,t.stack.env,t.configuration).mml())},n.Macro=o.default.Macro,n.NamedFn=o.default.NamedFn,n.Array=o.default.Array,e.default=n},7741:function(t,e,r){var h=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},d=(Object.defineProperty(e,"__esModule",{value:!0}),e.RequireConfiguration=e.options=e.RequireMethods=e.RequireLoad=void 0,r(9899)),a=r(9140),s=i(r(3971)),i=r(9515),l=r(265),f=r(235),m=r(5713),r=r(7233),y=i.MathJax.config;function c(t,e){var r=t.options.require,n=r.allow,o=("["===e.substr(0,1)?"":r.prefix)+e;if(!(n.hasOwnProperty(o)?n[o]:n.hasOwnProperty(e)?n[e]:r.defaultAllow))throw new s.default("BadRequire",'Extension "%1" is not allowed to be loaded',o);l.Package.packages.has(o)?function t(e,r){var n=e.parseOptions.options.require,o=e.parseOptions.packageData.get("require").required,n=r.substr(n.prefix.length);if(o.indexOf(n)<0){o.push(n);var i=e;void 0===(o=f.CONFIG.dependencies[r])&&(o=[]);var a,s,l=i.parseOptions.options.require.prefix;try{for(var c=h(o),u=c.next();!u.done;u=c.next()){var p=u.value;p.substr(0,l.length)===l&&t(i,p)}}catch(i){a={error:i}}finally{try{u&&!u.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}(o=d.ConfigurationHandler.get(n))&&(s=y[r]||{},o.options&&1===Object.keys(o.options).length&&o.options[n]&&((a={})[n]=s,s=a),e.configuration.add(n,e,s),r=e.parseOptions.packageData.get("require").configured,o.preprocessors.length&&!r.has(n)&&(r.set(n,!0),m.mathjax.retryAfter(Promise.resolve())))}}(t.configuration.packageData.get("require").jax,o):m.mathjax.retryAfter(f.Loader.load(o))}e.RequireLoad=c,e.RequireMethods={Require:function(t,e){var r=t.GetArgument(e);if(r.match(/[^_a-zA-Z0-9]/)||""===r)throw new s.default("BadPackageName","Argument for %1 is not a valid package name",e);c(t,r)}},e.options={require:{allow:(0,r.expandable)({base:!1,"all-packages":!1,autoload:!1,configmacros:!1,tagformat:!1,setoptions:!1}),defaultAllow:!0,prefix:"tex"}},new a.CommandMap("require",{require:"Require"},e.RequireMethods),e.RequireConfiguration=d.Configuration.create("require",{handler:{macro:["require"]},config:function(t,e){e.parseOptions.packageData.set("require",{jax:e,required:o([],n(e.options.packages),!1),configured:new Map});var e=e.parseOptions.options.require,r=e.prefix;if(r.match(/[^_a-zA-Z0-9]/))throw Error("Illegal characters used in \\require prefix");f.CONFIG.paths[r]||(f.CONFIG.paths[r]="[mathjax]/input/tex/extensions"),e.prefix="["+r+"]/"},options:e.options})},9365:function(t,e,r){var u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.SetOptionsConfiguration=e.SetOptionsUtil=void 0,r(9899)),i=r(9140),a=n(r(3971)),p=n(r(1130)),s=r(8803),l=n(r(7693)),c=r(7233),h=(e.SetOptionsUtil={filterPackage:function(t,e){if("tex"!==e&&!o.ConfigurationHandler.get(e))throw new a.default("NotAPackage","Not a defined package: %1",e);var t=t.options.setoptions,r=t.allowOptions[e];if(void 0===r&&!t.allowPackageDefault||!1===r)throw new a.default("PackageNotSettable",'Options can\'t be set for package "%1"',e);return!0},filterOption:function(t,e,r){var n=t.options.setoptions,o=n.allowOptions[e]||{},o=o.hasOwnProperty(r)&&!(0,c.isObject)(o[r])?o[r]:null;if(!1===o||null===o&&!n.allowOptionsDefault)throw new a.default("OptionNotSettable",'Option "%1" is not allowed to be set',r);if(null!=(o="tex"===e?t.options:t.options[e])&&o.hasOwnProperty(r))return!0;throw"tex"===e?new a.default("InvalidTexOption",'Invalid TeX option "%1"',r):new a.default("InvalidOptionKey",'Invalid option "%1" for package "%2"',r,e)},filterValue:function(t,e,r,n){return n}},new i.CommandMap("setoptions",{setOptions:"SetOptions"},{SetOptions:function(t,e){var r,n,o=t.GetBrackets(e)||"tex",i=p.default.keyvalOptions(t.GetArgument(e)),a=t.options.setoptions;if(a.filterPackage(t,o))try{for(var s=u(Object.keys(i)),l=s.next();!l.done;l=s.next()){var c=l.value;a.filterOption(t,o,c)&&(("tex"===o?t.options:t.options[o])[c]=a.filterValue(t,o,c,i[c]))}}catch(t){r={error:t}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}}));e.SetOptionsConfiguration=o.Configuration.create("setoptions",{handler:{macro:["setoptions"]},config:function(t,e){e=e.parseOptions.handlers.get("macro").lookup("require");e&&(h.add("Require",new s.Macro("Require",e._func)),h.add("require",new s.Macro("require",l.default.Macro,["\\Require{#2}\\setOptions[#2]{#1}",2,""])))},priority:3,options:{setoptions:{filterPackage:e.SetOptionsUtil.filterPackage,filterOption:e.SetOptionsUtil.filterOption,filterValue:e.SetOptionsUtil.filterValue,allowPackageDefault:!0,allowOptionsDefault:!0,allowOptions:(0,c.expandable)({tex:{FindTeX:!1,formatError:!1,package:!1,baseURL:!1,tags:!1,maxBuffer:!1,maxMaxros:!1,macros:!1,environments:!1},setoptions:!1,autoload:!1,require:!1,configmacros:!1,tagformat:!1})}}})},1527:function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.TagFormatConfiguration=e.tagformatConfig=void 0,r(9899)),a=r(6521),s=0;function l(t,r){var e,n=r.parseOptions.options.tags,t=("base"!==n&&t.tags.hasOwnProperty(n)&&a.TagsFactory.add(n,t.tags[n]),e=a.TagsFactory.create(r.parseOptions.options.tags).constructor,i(o,e),o.prototype.formatNumber=function(t){return r.parseOptions.options.tagformat.number(t)},o.prototype.formatTag=function(t){return r.parseOptions.options.tagformat.tag(t)},o.prototype.formatId=function(t){return r.parseOptions.options.tagformat.id(t)},o.prototype.formatUrl=function(t,e){return r.parseOptions.options.tagformat.url(t,e)},o),n="configTags-"+ ++s;function o(){return null!==e&&e.apply(this,arguments)||this}a.TagsFactory.add(n,t),r.parseOptions.options.tags=n}e.tagformatConfig=l,e.TagFormatConfiguration=o.Configuration.create("tagformat",{config:[l,10],options:{tagformat:{number:function(t){return t.toString()},tag:function(t){return"("+t+")"},id:function(t){return"mjx-eqn:"+t.replace(/\s/g,"_")},url:function(t,e){return e+"#"+encodeURIComponent(t)}}}})},2307:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.TextcompConfiguration=void 0;var n=r(9899);r(9906),e.TextcompConfiguration=n.Configuration.create("textcomp",{handler:{macro:["textcomp-macros"]}})},9906:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},e=(Object.defineProperty(e,"__esModule",{value:!0}),r(9140)),o=r(8317),i=r(58),a=n(r(1130)),s=r(8728);new e.CommandMap("textcomp-macros",{textasciicircum:["Insert","^"],textasciitilde:["Insert","~"],textasteriskcentered:["Insert","*"],textbackslash:["Insert","\\"],textbar:["Insert","|"],textbraceleft:["Insert","{"],textbraceright:["Insert","}"],textbullet:["Insert","•"],textdagger:["Insert","†"],textdaggerdbl:["Insert","‡"],textellipsis:["Insert","…"],textemdash:["Insert","—"],textendash:["Insert","–"],textexclamdown:["Insert","¡"],textgreater:["Insert",">"],textless:["Insert","<"],textordfeminine:["Insert","ª"],textordmasculine:["Insert","º"],textparagraph:["Insert","¶"],textperiodcentered:["Insert","·"],textquestiondown:["Insert","¿"],textquotedblleft:["Insert","“"],textquotedblright:["Insert","”"],textquoteleft:["Insert","‘"],textquoteright:["Insert","’"],textsection:["Insert","§"],textunderscore:["Insert","_"],textvisiblespace:["Insert","␣"],textacutedbl:["Insert","˝"],textasciiacute:["Insert","´"],textasciibreve:["Insert","˘"],textasciicaron:["Insert","ˇ"],textasciidieresis:["Insert","¨"],textasciimacron:["Insert","¯"],textgravedbl:["Insert","˵"],texttildelow:["Insert","˷"],textbaht:["Insert","฿"],textcent:["Insert","¢"],textcolonmonetary:["Insert","₡"],textcurrency:["Insert","¤"],textdollar:["Insert","$"],textdong:["Insert","₫"],texteuro:["Insert","€"],textflorin:["Insert","ƒ"],textguarani:["Insert","₲"],textlira:["Insert","₤"],textnaira:["Insert","₦"],textpeso:["Insert","₱"],textsterling:["Insert","£"],textwon:["Insert","₩"],textyen:["Insert","¥"],textcircledP:["Insert","℗"],textcompwordmark:["Insert","‌"],textcopyleft:["Insert","🄯"],textcopyright:["Insert","©"],textregistered:["Insert","®"],textservicemark:["Insert","℠"],texttrademark:["Insert","™"],textbardbl:["Insert","‖"],textbigcircle:["Insert","◯"],textblank:["Insert","␢"],textbrokenbar:["Insert","¦"],textdiscount:["Insert","⁒"],textestimated:["Insert","℮"],textinterrobang:["Insert","‽"],textinterrobangdown:["Insert","⸘"],textmusicalnote:["Insert","♪"],textnumero:["Insert","№"],textopenbullet:["Insert","◦"],textpertenthousand:["Insert","‱"],textperthousand:["Insert","‰"],textrecipe:["Insert","℞"],textreferencemark:["Insert","※"],textlangle:["Insert","〈"],textrangle:["Insert","〉"],textlbrackdbl:["Insert","⟦"],textrbrackdbl:["Insert","⟧"],textlquill:["Insert","⁅"],textrquill:["Insert","⁆"],textcelsius:["Insert","℃"],textdegree:["Insert","°"],textdiv:["Insert","÷"],textdownarrow:["Insert","↓"],textfractionsolidus:["Insert","⁄"],textleftarrow:["Insert","←"],textlnot:["Insert","¬"],textmho:["Insert","℧"],textminus:["Insert","−"],textmu:["Insert","µ"],textohm:["Insert","Ω"],textonehalf:["Insert","½"],textonequarter:["Insert","¼"],textonesuperior:["Insert","¹"],textpm:["Insert","±"],textrightarrow:["Insert","→"],textsurd:["Insert","√"],textthreequarters:["Insert","¾"],textthreesuperior:["Insert","³"],texttimes:["Insert","×"],texttwosuperior:["Insert","²"],textuparrow:["Insert","↑"],textborn:["Insert","*"],textdied:["Insert","†"],textdivorced:["Insert","⚮"],textmarried:["Insert","⚭"],textcentoldstyle:["Insert","¢",o.TexConstant.Variant.OLDSTYLE],textdollaroldstyle:["Insert","$",o.TexConstant.Variant.OLDSTYLE],textzerooldstyle:["Insert","0",o.TexConstant.Variant.OLDSTYLE],textoneoldstyle:["Insert","1",o.TexConstant.Variant.OLDSTYLE],texttwooldstyle:["Insert","2",o.TexConstant.Variant.OLDSTYLE],textthreeoldstyle:["Insert","3",o.TexConstant.Variant.OLDSTYLE],textfouroldstyle:["Insert","4",o.TexConstant.Variant.OLDSTYLE],textfiveoldstyle:["Insert","5",o.TexConstant.Variant.OLDSTYLE],textsixoldstyle:["Insert","6",o.TexConstant.Variant.OLDSTYLE],textsevenoldstyle:["Insert","7",o.TexConstant.Variant.OLDSTYLE],texteightoldstyle:["Insert","8",o.TexConstant.Variant.OLDSTYLE],textnineoldstyle:["Insert","9",o.TexConstant.Variant.OLDSTYLE]},{Insert:function(t,e,r,n){if(t instanceof s.TextParser){if(!n)return void i.TextMacrosMethods.Insert(t,e,r);t.saveText()}t.Push(a.default.internalText(t,r,n?{mathvariant:n}:{}))}})},2675:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.TextMacrosConfiguration=e.TextBaseConfiguration=void 0,r(9899)),i=n(r(8562)),a=r(6521),n=r(1181),s=r(8728),l=r(58);function c(t,e,r,n){var o=t.configuration.packageData.get("textmacros");return t instanceof s.TextParser||(o.texParser=t),[new s.TextParser(e,n?{mathvariant:n}:{},o.parseOptions,r).mml()]}r(8376),e.TextBaseConfiguration=o.Configuration.create("text-base",{parser:"text",handler:{character:["command","text-special"],macro:["text-macros"]},fallback:{character:function(t,e){t.text+=e},macro:function(t,e){var r=t.texParser,n=r.lookup("macro",e);n&&n._func!==l.TextMacrosMethods.Macro&&t.Error("MathMacro","%1 is only supported in math mode","\\"+e),r.parse("macro",[t,e])}},items:((r={})[n.StartItem.prototype.kind]=n.StartItem,r[n.StopItem.prototype.kind]=n.StopItem,r[n.MmlItem.prototype.kind]=n.MmlItem,r[n.StyleItem.prototype.kind]=n.StyleItem,r)}),e.TextMacrosConfiguration=o.Configuration.create("textmacros",{config:function(t,e){var r=new o.ParserConfiguration(e.parseOptions.options.textmacros.packages,["tex","text"]),n=(r.init(),new i.default(r,[]));n.options=e.parseOptions.options,r.config(e),a.TagsFactory.addTags(r.tags),n.tags=a.TagsFactory.getDefault(),(n.tags.configuration=n).packageData=e.parseOptions.packageData,n.packageData.set("textmacros",{parseOptions:n,jax:e,texParser:null}),n.options.internalMath=c},preprocessors:[function(t){t=t.data.packageData.get("textmacros");t.parseOptions.nodeFactory.setMmlFactory(t.jax.mmlFactory)}],options:{textmacros:{packages:["text-base"]}}})},8376:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});var e=r(9140),n=r(8317),o=r(58),r=r(6010);new e.MacroMap("text-special",{$:"Math","%":"Comment","^":"MathModeOnly",_:"MathModeOnly","&":"Misplaced","#":"Misplaced","~":"Tilde"," ":"Space","\t":"Space","\r":"Space","\n":"Space"," ":"Tilde","{":"OpenBrace","}":"CloseBrace","`":"OpenQuote","'":"CloseQuote"},o.TextMacrosMethods),new e.CommandMap("text-macros",{"(":"Math",$:"SelfQuote",_:"SelfQuote","%":"SelfQuote","{":"SelfQuote","}":"SelfQuote"," ":"SelfQuote","&":"SelfQuote","#":"SelfQuote","\\":"SelfQuote","'":["Accent","´"],"’":["Accent","´"],"`":["Accent","`"],"‘":["Accent","`"],"^":["Accent","^"],'"':["Accent","¨"],"~":["Accent","~"],"=":["Accent","¯"],".":["Accent","˙"],u:["Accent","˘"],v:["Accent","ˇ"],emph:"Emph",rm:["SetFont",n.TexConstant.Variant.NORMAL],mit:["SetFont",n.TexConstant.Variant.ITALIC],oldstyle:["SetFont",n.TexConstant.Variant.OLDSTYLE],cal:["SetFont",n.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",n.TexConstant.Variant.BOLD],bbFont:["SetFont",n.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",n.TexConstant.Variant.SCRIPT],frak:["SetFont",n.TexConstant.Variant.FRAKTUR],sf:["SetFont",n.TexConstant.Variant.SANSSERIF],tt:["SetFont",n.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],Bbb:["Macro","{\\bbFont #1}",1],textnormal:["Macro","{\\rm #1}",1],textup:["Macro","{\\rm #1}",1],textrm:["Macro","{\\rm #1}",1],textit:["Macro","{\\it #1}",1],textbf:["Macro","{\\bf #1}",1],textsf:["Macro","{\\sf #1}",1],texttt:["Macro","{\\tt #1}",1],dagger:["Insert","†"],ddagger:["Insert","‡"],S:["Insert","§"],",":["Spacer",r.MATHSPACE.thinmathspace],":":["Spacer",r.MATHSPACE.mediummathspace],">":["Spacer",r.MATHSPACE.mediummathspace],";":["Spacer",r.MATHSPACE.thickmathspace],"!":["Spacer",r.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",r.MATHSPACE.thinmathspace],negthinspace:["Spacer",r.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],color:"CheckAutoload",textcolor:"CheckAutoload",colorbox:"CheckAutoload",fcolorbox:"CheckAutoload",href:"CheckAutoload",style:"CheckAutoload",class:"CheckAutoload",cssId:"CheckAutoload",unicode:"CheckAutoload",ref:["HandleRef",!1],eqref:["HandleRef",!0]},o.TextMacrosMethods)},58:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.TextMacrosMethods=void 0,n(r(8417))),i=r(4542),n=n(r(7693));e.TextMacrosMethods={Comment:function(t,e){for(;t.i<t.string.length&&"\n"!==t.string.charAt(t.i);)t.i++;t.i++},Math:function(t,e){t.saveText();for(var r,n,o,i=t.i,a=0;n=t.GetNext();)switch(r=t.i++,n){case"\\":")"===t.GetCS()&&(n="\\(");case"$":if(0===a&&e===n)return o=t.texParser.configuration,o=new s.default(t.string.substr(i,r-i),t.stack.env,o).mml(),void t.PushMath(o);break;case"{":a++;break;case"}":0===a&&t.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace"),a--}t.Error("MathNotTerminated","Math-mode is not properly terminated")},MathModeOnly:function(t,e){t.Error("MathModeOnly","'%1' allowed only in math mode",e)},Misplaced:function(t,e){t.Error("Misplaced","'%1' can not be used here",e)},OpenBrace:function(t,e){var r=t.stack.env;t.envStack.push(r),t.stack.env=Object.assign({},r)},CloseBrace:function(t,e){t.envStack.length?(t.saveText(),t.stack.env=t.envStack.pop()):t.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace")},OpenQuote:function(t,e){t.string.charAt(t.i)===e?(t.text+="“",t.i++):t.text+="‘"},CloseQuote:function(t,e){t.string.charAt(t.i)===e?(t.text+="”",t.i++):t.text+="’"},Tilde:function(t,e){t.text+=" "},Space:function(t,e){for(t.text+=" ";t.GetNext().match(/\s/);)t.i++},SelfQuote:function(t,e){t.text+=e.substr(1)},Insert:function(t,e,r){t.text+=r},Accent:function(t,e,r){e=t.ParseArg(e),r=t.create("token","mo",{},r);t.addAttributes(r),t.Push(t.create("node","mover",[e,r]))},Emph:function(t,e){var r="-tex-mathit"===t.stack.env.mathvariant?"normal":"-tex-mathit";t.Push(t.ParseTextArg(e,{mathvariant:r}))},SetFont:function(t,e,r){t.saveText(),t.stack.env.mathvariant=r},SetSize:function(t,e,r){t.saveText(),t.stack.env.mathsize=r},CheckAutoload:function(t,e){var r=t.configuration.packageData.get("autoload"),n=t.texParser,o=(e=e.slice(1),n.lookup("macro",e));if(!o||r&&o._func===r.Autoload){if(n.parse("macro",[n,e]),!o)return;(0,i.retryAfter)(Promise.resolve())}n.parse("macro",[t,e])},Macro:n.default.Macro,Spacer:n.default.Spacer,Hskip:n.default.Hskip,rule:n.default.rule,Rule:n.default.Rule,HandleRef:n.default.HandleRef}},8728:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.TextParser=void 0,c(r(8417))),p=c(r(3971)),h=c(r(1130)),d=r(9007),f=c(r(1256)),m=r(1181),c=(o=u.default,i(y,o),Object.defineProperty(y.prototype,"texParser",{get:function(){return this.configuration.packageData.get("textmacros").texParser},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"tags",{get:function(){return this.texParser.tags},enumerable:!1,configurable:!0}),y.prototype.mml=function(){return null!=this.level?this.create("node","mstyle",this.nodes,{displaystyle:!1,scriptlevel:this.level}):1===this.nodes.length?this.nodes[0]:this.create("node","mrow",this.nodes)},y.prototype.Parse=function(){this.text="",this.nodes=[],this.envStack=[],o.prototype.Parse.call(this)},y.prototype.saveText=function(){var t;this.text&&(t=this.stack.env.mathvariant,t=h.default.internalText(this,this.text,t?{mathvariant:t}:{}),this.text="",this.Push(t))},y.prototype.Push=function(t){if(this.text&&this.saveText(),t instanceof m.StopItem)return o.prototype.Push.call(this,t);t instanceof m.StyleItem?this.stack.env.mathcolor=this.stack.env.color:t instanceof d.AbstractMmlNode&&(this.addAttributes(t),this.nodes.push(t))},y.prototype.PushMath=function(t){var e,r,n=this.stack.env;t.isKind("TeXAtom")||(t=this.create("node","TeXAtom",[t]));try{for(var o=s(["mathsize","mathcolor"]),i=o.next();!i.done;i=o.next()){var a=i.value;n[a]&&!t.attributes.getExplicit(a)&&(t.isToken||t.isKind("mstyle")||(t=this.create("node","mstyle",[t])),f.default.setAttribute(t,a,n[a]))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}t.isInferred&&(t=this.create("node","mrow",t.childNodes)),this.nodes.push(t)},y.prototype.addAttributes=function(t){var e,r,n=this.stack.env;if(t.isToken)try{for(var o=s(["mathsize","mathcolor","mathvariant"]),i=o.next();!i.done;i=o.next()){var a=i.value;n[a]&&!t.attributes.getExplicit(a)&&f.default.setAttribute(t,a,n[a])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},y.prototype.ParseTextArg=function(t,e){return new y(this.GetArgument(t),e=Object.assign(Object.assign({},this.stack.env),e),this.configuration).mml()},y.prototype.ParseArg=function(t){return new y(this.GetArgument(t),this.stack.env,this.configuration).mml()},y.prototype.Error=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];throw new(p.default.bind.apply(p.default,l([void 0,t,e],a(r),!1)))},y);function y(t,e,r,n){t=o.call(this,t,e,r)||this;return t.level=n,t}e.TextParser=c},6841:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.UnicodeConfiguration=e.UnicodeMethods=void 0,r(9899)),a=n(r(3971)),i=r(9140),s=n(r(1130)),l=n(r(1256)),c=r(5368),u=(e.UnicodeMethods={},{});e.UnicodeMethods.Unicode=function(t,e){var r=t.GetBrackets(e),n=null,o=null,r=(r&&(o=r.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)?(n=r.replace(/ /g,"").split(/,/),t.GetBrackets(e)):r),s.default.trimSpaces(t.GetArgument(e)).replace(/^0x/,"x"));if(!r.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))throw new a.default("BadUnicode","Argument to \\unicode must be a number");var e=parseInt(r.match(/^x/)?"0"+r:r),n=(u[e]?o=o||u[e][2]:u[e]=[800,200,o,e],n&&(u[e][0]=Math.floor(1e3*parseFloat(n[0])),u[e][1]=Math.floor(1e3*parseFloat(n[1]))),t.stack.env.font),i={},e=(o?(u[e][2]=i.fontfamily=o.replace(/'/g,"'"),n&&(n.match(/bold/)&&(i.fontweight="bold"),n.match(/italic|-mathit/)&&(i.fontstyle="italic"))):n&&(i.mathvariant=n),t.create("token","mtext",i,(0,c.numeric)(r)));l.default.setProperty(e,"unicode",!0),t.Push(e)},new i.CommandMap("unicode",{unicode:"Unicode"},e.UnicodeMethods),e.UnicodeConfiguration=o.Configuration.create("unicode",{handler:{macro:["unicode"]}})},1442:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.UpgreekConfiguration=void 0;var n=r(9899),o=r(9140),i=r(8317);new o.CharacterMap("upgreek",function(t,e){var r=e.attributes||{},r=(r.mathvariant=i.TexConstant.Variant.NORMAL,t.create("token","mi",r,e.char));t.Push(r)},{upalpha:"α",upbeta:"β",upgamma:"γ",updelta:"δ",upepsilon:"ϵ",upzeta:"ζ",upeta:"η",uptheta:"θ",upiota:"ι",upkappa:"κ",uplambda:"λ",upmu:"μ",upnu:"ν",upxi:"ξ",upomicron:"ο",uppi:"π",uprho:"ρ",upsigma:"σ",uptau:"τ",upupsilon:"υ",upphi:"ϕ",upchi:"χ",uppsi:"ψ",upomega:"ω",upvarepsilon:"ε",upvartheta:"ϑ",upvarpi:"ϖ",upvarrho:"ϱ",upvarsigma:"ς",upvarphi:"φ",Upgamma:"Γ",Updelta:"Δ",Uptheta:"Θ",Uplambda:"Λ",Upxi:"Ξ",Uppi:"Π",Upsigma:"Σ",Upupsilon:"Υ",Upphi:"Φ",Uppsi:"Ψ",Upomega:"Ω"}),e.UpgreekConfiguration=n.Configuration.create("upgreek",{handler:{macro:["upgreek"]}})},1247:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},o=(Object.defineProperty(e,"__esModule",{value:!0}),e.VerbConfiguration=e.VerbMethods=void 0,r(9899)),i=r(8317),a=r(9140),s=n(r(3971));e.VerbMethods={},e.VerbMethods.Verb=function(t,e){var r=t.GetNext(),n=++t.i;if(""===r)throw new s.default("MissingArgFor","Missing argument for %1",e);for(;t.i<t.string.length&&t.string.charAt(t.i)!==r;)t.i++;if(t.i===t.string.length)throw new s.default("NoClosingDelim","Can't find closing delimiter for %1",t.currentCS);e=t.string.slice(n,t.i).replace(/ /g," ");t.i++,t.Push(t.create("token","mtext",{mathvariant:i.TexConstant.Variant.MONOSPACE},e))},new a.CommandMap("verb",{verb:"Verb"},e.VerbMethods),e.VerbConfiguration=o.Configuration.create("verb",{handler:{macro:["verb"]}})},5713:function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.mathjax=void 0;var n=e(3282),o=e(805),e=e(4542);r.mathjax={version:n.VERSION,handlers:new o.HandlerList,document:function(t,e){return r.mathjax.handlers.document(t,e)},handleRetriesFor:e.handleRetriesFor,retryAfter:e.retryAfter,asyncLoad:null}},50:function(t,e,r){var n,s,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),l=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&a(e,t,r);return l(e,t),e},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTML=void 0,r(3055)),h=r(4139),d=r(9261),f=r(6797),m=r(2760),y=c(r(6010)),g=r(505),c=(s=p.CommonOutputJax,o(b,s),b.prototype.escaped=function(t,e){return this.setDocument(e),this.html("span",{},[this.text(t.math)])},b.prototype.styleSheet=function(t){if(this.chtmlStyles)return this.options.adaptiveCSS&&(e=new h.CssStyles,this.addWrapperStyles(e),this.updateFontStyles(e),this.adaptor.insertRules(this.chtmlStyles,e.getStyleRules())),this.chtmlStyles;var e=this.chtmlStyles=s.prototype.styleSheet.call(this,t);return this.adaptor.setAttribute(e,"id",b.STYLESHEETID),this.wrapperUsage.update(),e},b.prototype.updateFontStyles=function(t){t.addStyles(this.font.updateStyles({}))},b.prototype.addWrapperStyles=function(t){var e,r;if(this.options.adaptiveCSS)try{for(var n=u(this.wrapperUsage.update()),o=n.next();!o.done;o=n.next()){var i=o.value,a=this.factory.getNodeClass(i);a&&this.addClassStyles(a,t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}else s.prototype.addWrapperStyles.call(this,t)},b.prototype.addClassStyles=function(t,e){var r,n=t;n.autoStyle&&"unknown"!==n.kind&&e.addStyles(((r={})["mjx-"+n.kind]={display:"inline-block","text-align":"left"},r)),this.wrapperUsage.add(n.kind),s.prototype.addClassStyles.call(this,t,e)},b.prototype.processMath=function(t,e){this.factory.wrap(t).toCHTML(e)},b.prototype.clearCache=function(){this.cssStyles.clear(),this.font.clearCache(),this.wrapperUsage.clear(),this.chtmlStyles=null},b.prototype.reset=function(){this.clearCache()},b.prototype.unknownText=function(t,e,r){void 0===r&&(r=null);var n={},o=100/this.math.metrics.scale;return 100!=o&&(n["font-size"]=this.fixed(o,1)+"%",n.padding=y.em(75/o)+" 0 "+y.em(20/o)+" 0"),"-explicitFont"!==e&&(1!==(o=(0,g.unicodeChars)(t)).length||o[0]<119808||120831<o[0])&&this.cssFontStyles(this.font.getCssFont(e),n),null!==r&&(o=this.math.metrics,n.width=Math.round(r*o.em*o.scale)+"px"),this.html("mjx-utext",{variant:e,style:n},[this.text(t)])},b.prototype.measureTextNode=function(t){var e=this.adaptor,t=e.clone(t),r=(e.setStyle(t,"font-family",e.getStyle(t,"font-family").replace(/MJXZERO, /g,"")),this.html("mjx-measure-text",{style:{position:"absolute","white-space":"nowrap"}},[t])),t=(e.append(e.parent(this.math.start.node),this.container),e.append(this.container,r),e.nodeSize(t,this.math.metrics.em)[0]/this.math.metrics.scale);return e.remove(this.container),e.remove(r),{w:t,h:.75,d:.2}},b.NAME="CHTML",b.OPTIONS=i(i({},p.CommonOutputJax.OPTIONS),{adaptiveCSS:!0,matchFontHeight:!0}),b.commonStyles={'mjx-container[jax="CHTML"]':{"line-height":0},'mjx-container [space="1"]':{"margin-left":".111em"},'mjx-container [space="2"]':{"margin-left":".167em"},'mjx-container [space="3"]':{"margin-left":".222em"},'mjx-container [space="4"]':{"margin-left":".278em"},'mjx-container [space="5"]':{"margin-left":".333em"},'mjx-container [rspace="1"]':{"margin-right":".111em"},'mjx-container [rspace="2"]':{"margin-right":".167em"},'mjx-container [rspace="3"]':{"margin-right":".222em"},'mjx-container [rspace="4"]':{"margin-right":".278em"},'mjx-container [rspace="5"]':{"margin-right":".333em"},'mjx-container [size="s"]':{"font-size":"70.7%"},'mjx-container [size="ss"]':{"font-size":"50%"},'mjx-container [size="Tn"]':{"font-size":"60%"},'mjx-container [size="sm"]':{"font-size":"85%"},'mjx-container [size="lg"]':{"font-size":"120%"},'mjx-container [size="Lg"]':{"font-size":"144%"},'mjx-container [size="LG"]':{"font-size":"173%"},'mjx-container [size="hg"]':{"font-size":"207%"},'mjx-container [size="HG"]':{"font-size":"249%"},'mjx-container [width="full"]':{width:"100%"},"mjx-box":{display:"inline-block"},"mjx-block":{display:"block"},"mjx-itable":{display:"inline-table"},"mjx-row":{display:"table-row"},"mjx-row > *":{display:"table-cell"},"mjx-mtext":{display:"inline-block"},"mjx-mstyle":{display:"inline-block"},"mjx-merror":{display:"inline-block",color:"red","background-color":"yellow"},"mjx-mphantom":{visibility:"hidden"},"_::-webkit-full-page-media, _:future, :root mjx-container":{"will-change":"opacity"}},b.STYLESHEETID="MJX-CHTML-styles",b);function b(t){t=s.call(this,t=void 0===t?null:t,d.CHTMLWrapperFactory,m.TeXFont)||this;return t.chtmlStyles=null,t.font.adaptiveCSS(t.options.adaptiveCSS),t.wrapperUsage=new f.Usage,t}e.CHTML=c},8042:function(t,e,r){var n,c,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),a=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||i(e,t,r)},v=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},d=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.AddCSS=e.CHTMLFontData=void 0,r(5884)),s=r(6797),p=r(6010),a=(a(r(5884),e),c=l.FontData,o(h,c),h.charOptions=function(t,e){return c.charOptions.call(this,t,e)},h.prototype.adaptiveCSS=function(t){this.options.adaptiveCSS=t},h.prototype.clearCache=function(){this.options.adaptiveCSS&&(this.charUsage.clear(),this.delimUsage.clear())},h.prototype.createVariant=function(t,e,r){c.prototype.createVariant.call(this,t,e=void 0===e?null:e,r=void 0===r?null:r);e=this.constructor;this.variant[t].classes=e.defaultVariantClasses[t],this.variant[t].letter=e.defaultVariantLetters[t]},h.prototype.defineChars=function(t,e){c.prototype.defineChars.call(this,t,e);var r,n,o=this.variant[t].letter;try{for(var i=v(Object.keys(e)),a=i.next();!a.done;a=i.next()){var s=a.value,l=h.charOptions(e,parseInt(s));void 0===l.f&&(l.f=o)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},Object.defineProperty(h.prototype,"styles",{get:function(){var t=this.constructor,e=u({},t.defaultStyles);return this.addFontURLs(e,t.defaultFonts,this.options.fontURL),this.options.adaptiveCSS?this.updateStyles(e):this.allStyles(e),e},enumerable:!1,configurable:!0}),h.prototype.updateStyles=function(t){var e,r,n,o;try{for(var i=v(this.delimUsage.update()),a=i.next();!a.done;a=i.next()){var s=a.value;this.addDelimiterStyles(t,s,this.delimiters[s])}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}try{for(var l=v(this.charUsage.update()),c=l.next();!c.done;c=l.next()){var u=d(c.value,2),p=u[0],h=(s=u[1],this.variant[p]);this.addCharStyles(t,h.letter,s,h.chars[s])}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}return t},h.prototype.allStyles=function(t){var e,r,n,o,i,a;try{for(var s=v(Object.keys(this.delimiters)),l=s.next();!l.done;l=s.next()){var c=l.value,u=parseInt(c);this.addDelimiterStyles(t,u,this.delimiters[u])}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}try{for(var p=v(Object.keys(this.variant)),h=p.next();!h.done;h=p.next()){var d=h.value,f=this.variant[d],m=f.letter;try{i=void 0;for(var y=v(Object.keys(f.chars)),g=y.next();!g.done;g=y.next()){var c=g.value,u=parseInt(c),b=f.chars[u];(b[3]||{}).smp||(b.length<4&&(b[3]={}),this.addCharStyles(t,m,u,b))}}catch(t){i={error:t}}finally{try{g&&!g.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}},h.prototype.addFontURLs=function(t,e,r){var n,o;try{for(var i=v(Object.keys(e)),a=i.next();!a.done;a=i.next()){var s=a.value,l=u({},e[s]);l.src=l.src.replace(/%%URL%%/,r),t[s]=l}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},h.prototype.addDelimiterStyles=function(t,e,r){var n=this.charSelector(e);r.c&&r.c!==e&&(t[".mjx-stretched mjx-c"+(n=this.charSelector(r.c))+"::before"]={content:this.charContent(r.c)}),r.stretch&&(1===r.dir?this.addDelimiterVStyles(t,n,r):this.addDelimiterHStyles(t,n,r))},h.prototype.addDelimiterVStyles=function(t,e,r){var n=r.HDW,r=d(r.stretch,4),o=r[0],i=r[1],a=r[2],r=r[3],o=this.addDelimiterVPart(t,e,"beg",o,n),i=(this.addDelimiterVPart(t,e,"ext",i,n),this.addDelimiterVPart(t,e,"end",a,n)),a={};r&&(r=this.addDelimiterVPart(t,e,"mid",r,n),a.height="50%",t["mjx-stretchy-v"+e+" > mjx-mid"]={"margin-top":this.em(-r/2),"margin-bottom":this.em(-r/2)}),o&&(a["border-top-width"]=this.em0(o-.03)),i&&(a["border-bottom-width"]=this.em0(i-.03),t["mjx-stretchy-v"+e+" > mjx-end"]={"margin-top":this.em(-i)}),Object.keys(a).length&&(t["mjx-stretchy-v"+e+" > mjx-ext"]=a)},h.prototype.addDelimiterVPart=function(t,e,r,n,o){if(!n)return 0;var i=this.getDelimiterData(n),a=(o[2]-i[2])/2,n={content:this.charContent(n)};return"ext"!==r?n.padding=this.padding(i,a):(n.width=this.em0(o[2]),a&&(n["padding-left"]=this.em0(a))),t["mjx-stretchy-v"+e+" mjx-"+r+" mjx-c::before"]=n,i[0]+i[1]},h.prototype.addDelimiterHStyles=function(t,e,r){var n=d(r.stretch,4),o=n[0],i=n[1],a=n[2],n=n[3],r=r.HDW;this.addDelimiterHPart(t,e,"beg",o,r),this.addDelimiterHPart(t,e,"ext",i,r),this.addDelimiterHPart(t,e,"end",a,r),n&&(this.addDelimiterHPart(t,e,"mid",n,r),t["mjx-stretchy-h"+e+" > mjx-ext"]={width:"50%"})},h.prototype.addDelimiterHPart=function(t,e,r,n,o){var i;n&&((i={content:(i=this.getDelimiterData(n)[3])&&i.c?'"'+i.c+'"':this.charContent(n)}).padding=this.padding(o,0,-o[2]),t["mjx-stretchy-h"+e+" mjx-"+r+" mjx-c::before"]=i)},h.prototype.addCharStyles=function(t,e,r,n){var o=n[3],e=void 0!==o.f?o.f:e;t["mjx-c"+this.charSelector(r)+(e?".TEX-"+e:"")+"::before"]={padding:this.padding(n,0,o.ic||0),content:null!=o.c?'"'+o.c+'"':this.charContent(r)}},h.prototype.getDelimiterData=function(t){return this.getChar("-smallop",t)},h.prototype.em=function(t){return(0,p.em)(t)},h.prototype.em0=function(t){return(0,p.em)(Math.max(0,t))},h.prototype.padding=function(t,e,r){var t=d(t,3),n=t[0],o=t[1];return[n,t[2]+(r=void 0===r?0:r),o,e=void 0===e?0:e].map(this.em0).join(" ")},h.prototype.charContent=function(t){return'"'+(32<=t&&t<=126&&34!==t&&39!==t&&92!==t?String.fromCharCode(t):"\\"+t.toString(16).toUpperCase())+'"'},h.prototype.charSelector=function(t){return".mjx-c"+t.toString(16).toUpperCase()},h.OPTIONS=u(u({},l.FontData.OPTIONS),{fontURL:"js/output/chtml/fonts/tex-woff-v2"}),h.JAX="CHTML",h.defaultVariantClasses={},h.defaultVariantLetters={},h.defaultStyles={"mjx-c::before":{display:"block",width:0}},h.defaultFonts={"@font-face /* 0 */":{"font-family":"MJXZERO",src:'url("%%URL%%/MathJax_Zero.woff") format("woff")'}},h);function h(){var t=null!==c&&c.apply(this,arguments)||this;return t.charUsage=new s.Usage,t.delimUsage=new s.Usage,t}e.CHTMLFontData=a,e.AddCSS=function(t,e){var r,n;try{for(var o=v(Object.keys(e)),i=o.next();!i.done;i=o.next()){var a=i.value,s=parseInt(a);Object.assign(l.FontData.charOptions(t,s),e[s])}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return t}},8270:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.Arrow=e.DiagonalArrow=e.DiagonalStrike=e.Border2=e.Border=e.RenderElement=void 0,i(r(5552)));a(r(5552),e),e.RenderElement=function(o,i){return void 0===i&&(i=""),function(t,e){var r,n=t.adjustBorder(t.html("mjx-"+o));i&&(r=t.getOffset(i),t.thickness===l.THICKNESS&&!r||(r="translate".concat(i,"(").concat(t.em(t.thickness/2-r),")"),t.adaptor.setStyle(n,"transform",r))),t.adaptor.append(t.chtml,n)}},e.Border=function(r){return l.CommonBorder(function(t,e){t.adaptor.setStyle(e,"border-"+r,t.em(t.thickness)+" solid")})(r)},e.Border2=function(t,n,o){return l.CommonBorder2(function(t,e){var r=t.em(t.thickness)+" solid";t.adaptor.setStyle(e,"border-"+n,r),t.adaptor.setStyle(e,"border-"+o,r)})(t,n,o)},e.DiagonalStrike=function(t,a){return l.CommonDiagonalStrike(function(i){return function(t,e){var r=t.getBBox(),n=r.w,o=r.h,r=r.d,n=s(t.getArgMod(n,o+r),2),o=n[0],r=n[1],n=a*t.thickness/2,r=t.adjustBorder(t.html(i,{style:{width:t.em(r),transform:"rotate("+t.fixed(-a*o)+"rad) translateY("+n+"em)"}}));t.adaptor.append(t.chtml,r)}})(t)},e.DiagonalArrow=function(t){return l.CommonDiagonalArrow(function(t,e){t.adaptor.append(t.chtml,e)})(t)},e.Arrow=function(t){return l.CommonArrow(function(t,e){t.adaptor.append(t.chtml,e)})(t)}},6797:function(t,e){function r(){this.used=new Set,this.needsUpdate=[]}Object.defineProperty(e,"__esModule",{value:!0}),e.Usage=void 0,r.prototype.add=function(t){var e=JSON.stringify(t);this.used.has(e)||this.needsUpdate.push(t),this.used.add(e)},r.prototype.has=function(t){return this.used.has(JSON.stringify(t))},r.prototype.clear=function(){this.used.clear(),this.needsUpdate=[]},r.prototype.update=function(){var t=this.needsUpdate;return this.needsUpdate=[],t},e.Usage=r},5355:function(t,u,e){var n,r,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return a(e,t),e},f=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=(Object.defineProperty(u,"__esModule",{value:!0}),u.CHTMLWrapper=u.SPACE=u.FONTSIZE=void 0,s(e(6010))),l=e(7519),c=e(6469),s=(u.FONTSIZE={"70.7%":"s","70%":"s","50%":"ss","60%":"Tn","85%":"sm","120%":"lg","144%":"Lg","173%":"LG","207%":"hg","249%":"HG"},u.SPACE=((e={})[s.em(2/18)]="1",e[s.em(3/18)]="2",e[s.em(4/18)]="3",e[s.em(5/18)]="4",e[s.em(6/18)]="5",e),r=l.CommonWrapper,o(m,r),m.prototype.toCHTML=function(t){var e,r,n=this.standardCHTMLnode(t);try{for(var o=f(this.childNodes),i=o.next();!i.done;i=o.next())i.value.toCHTML(n)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},m.prototype.standardCHTMLnode=function(t){this.markUsed();t=this.createCHTMLnode(t);return this.handleStyles(),this.handleVariant(),this.handleScale(),this.handleColor(),this.handleSpace(),this.handleAttributes(),this.handlePWidth(),t},m.prototype.markUsed=function(){this.jax.wrapperUsage.add(this.kind)},m.prototype.createCHTMLnode=function(t){var e=this.node.attributes.get("href");return e&&(t=this.adaptor.append(t,this.html("a",{href:e}))),this.chtml=this.adaptor.append(t,this.html("mjx-"+this.node.kind)),this.chtml},m.prototype.handleStyles=function(){var t;this.styles&&(t=this.styles.cssText)&&(this.adaptor.setAttribute(this.chtml,"style",t),(t=this.styles.get("font-family"))&&this.adaptor.setStyle(this.chtml,"font-family","MJXZERO, "+t))},m.prototype.handleVariant=function(){this.node.isToken&&"-explicitFont"!==this.variant&&this.adaptor.setAttribute(this.chtml,"class",(this.font.getVariant(this.variant)||this.font.getVariant("normal")).classes)},m.prototype.handleScale=function(){this.setScale(this.chtml,this.bbox.rscale)},m.prototype.setScale=function(t,e){var e=Math.abs(e-1)<.001?1:e;return t&&1!==e&&(e=this.percent(e),u.FONTSIZE[e]?this.adaptor.setAttribute(t,"size",u.FONTSIZE[e]):this.adaptor.setStyle(t,"fontSize",e)),t},m.prototype.handleSpace=function(){var e,t;try{for(var r=f([[this.bbox.L,"space","marginLeft"],[this.bbox.R,"rspace","marginRight"]]),n=r.next();!n.done;n=r.next()){var o,i=n.value,a=p(i,3),s=a[0],l=a[1],c=a[2];s&&(o=this.em(s),u.SPACE[o]?this.adaptor.setAttribute(this.chtml,l,u.SPACE[o]):this.adaptor.setStyle(this.chtml,c,o))}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},m.prototype.handleColor=function(){var t=this.node.attributes,e=t.getExplicit("mathcolor"),r=t.getExplicit("color"),n=t.getExplicit("mathbackground"),t=t.getExplicit("background");(e||r)&&this.adaptor.setStyle(this.chtml,"color",e||r),(n||t)&&this.adaptor.setStyle(this.chtml,"backgroundColor",n||t)},m.prototype.handleAttributes=function(){var t,e,r,n,o=this.node.attributes,i=o.getAllDefaults(),a=m.skipAttributes;try{for(var s=f(o.getExplicitNames()),l=s.next();!l.done;l=s.next()){var c=l.value;!1!==a[c]&&(c in i||a[c]||this.adaptor.hasAttribute(this.chtml,c))||this.adaptor.setAttribute(this.chtml,c,o.getExplicit(c))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}if(o.get("class")){var u=o.get("class").trim().split(/ +/);try{for(var p=f(u),h=p.next();!h.done;h=p.next()){var d=h.value;this.adaptor.addClass(this.chtml,d)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}}},m.prototype.handlePWidth=function(){this.bbox.pwidth&&(this.bbox.pwidth===c.BBox.fullWidth?this.adaptor.setAttribute(this.chtml,"width","full"):this.adaptor.setStyle(this.chtml,"width",this.bbox.pwidth))},m.prototype.setIndent=function(t,e,r){var n,o=this.adaptor;"center"!==e&&"left"!==e||(n=this.getBBox().L,o.setStyle(t,"margin-left",this.em(r+n))),"center"!==e&&"right"!==e||(n=this.getBBox().R,o.setStyle(t,"margin-right",this.em(-r+n)))},m.prototype.drawBBox=function(){var t=this.getBBox(),e=t.w,r=t.h,n=t.d,t=t.R,t=this.html("mjx-box",{style:{opacity:.25,"margin-left":this.em(-e-t)}},[this.html("mjx-box",{style:{height:this.em(r),width:this.em(e),"background-color":"red"}}),this.html("mjx-box",{style:{height:this.em(n),width:this.em(e),"margin-left":this.em(-e),"vertical-align":this.em(-n),"background-color":"green"}})]),r=this.chtml||this.parent.chtml,e=this.adaptor.getAttribute(r,"size"),n=(e&&this.adaptor.setAttribute(t,"size",e),this.adaptor.getStyle(r,"fontSize"));n&&this.adaptor.setStyle(t,"fontSize",n),this.adaptor.append(this.adaptor.parent(r),t),this.adaptor.setStyle(r,"backgroundColor","#FFEE00")},m.prototype.html=function(t,e,r){return this.jax.html(t,e=void 0===e?{}:e,r=void 0===r?[]:r)},m.prototype.text=function(t){return this.jax.text(t)},m.prototype.char=function(t){return this.font.charSelector(t).substr(1)},m.kind="unknown",m.autoStyle=!0,m);function m(){var t=null!==r&&r.apply(this,arguments)||this;return t.chtml=null,t}u.CHTMLWrapper=s},9261:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLWrapperFactory=void 0,r(4420)),r=r(9086),a=(o=a.CommonWrapperFactory,i(s,o),s.defaultNodes=r.CHTMLWrappers,s);function s(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLWrapperFactory=a},9086:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLWrappers=void 0;var n=r(5355),o=r(804),i=r(1653),a=r(6287),s=r(6460),l=r(4597),c=r(1259),u=r(2970),p=r(5964),h=r(8147),d=r(4798),f=r(2275),m=r(9063),y=r(5610),g=r(8776),b=r(4300),v=r(6590),_=r(6781),S=r(8002),x=r(3571),M=r(7056),O=r(8102),E=r(6911),A=r(421),C=r(95),r=r(1148);e.CHTMLWrappers=((e={})[o.CHTMLmath.kind]=o.CHTMLmath,e[d.CHTMLmrow.kind]=d.CHTMLmrow,e[d.CHTMLinferredMrow.kind]=d.CHTMLinferredMrow,e[i.CHTMLmi.kind]=i.CHTMLmi,e[a.CHTMLmo.kind]=a.CHTMLmo,e[s.CHTMLmn.kind]=s.CHTMLmn,e[l.CHTMLms.kind]=l.CHTMLms,e[c.CHTMLmtext.kind]=c.CHTMLmtext,e[u.CHTMLmspace.kind]=u.CHTMLmspace,e[p.CHTMLmpadded.kind]=p.CHTMLmpadded,e[h.CHTMLmenclose.kind]=h.CHTMLmenclose,e[m.CHTMLmfrac.kind]=m.CHTMLmfrac,e[y.CHTMLmsqrt.kind]=y.CHTMLmsqrt,e[g.CHTMLmroot.kind]=g.CHTMLmroot,e[b.CHTMLmsub.kind]=b.CHTMLmsub,e[b.CHTMLmsup.kind]=b.CHTMLmsup,e[b.CHTMLmsubsup.kind]=b.CHTMLmsubsup,e[v.CHTMLmunder.kind]=v.CHTMLmunder,e[v.CHTMLmover.kind]=v.CHTMLmover,e[v.CHTMLmunderover.kind]=v.CHTMLmunderover,e[_.CHTMLmmultiscripts.kind]=_.CHTMLmmultiscripts,e[f.CHTMLmfenced.kind]=f.CHTMLmfenced,e[S.CHTMLmtable.kind]=S.CHTMLmtable,e[x.CHTMLmtr.kind]=x.CHTMLmtr,e[x.CHTMLmlabeledtr.kind]=x.CHTMLmlabeledtr,e[M.CHTMLmtd.kind]=M.CHTMLmtd,e[O.CHTMLmaction.kind]=O.CHTMLmaction,e[E.CHTMLmglyph.kind]=E.CHTMLmglyph,e[A.CHTMLsemantics.kind]=A.CHTMLsemantics,e[A.CHTMLannotation.kind]=A.CHTMLannotation,e[A.CHTMLannotationXML.kind]=A.CHTMLannotationXML,e[A.CHTMLxml.kind]=A.CHTMLxml,e[C.CHTMLTeXAtom.kind]=C.CHTMLTeXAtom,e[r.CHTMLTextNode.kind]=r.CHTMLTextNode,e[n.CHTMLWrapper.kind]=n.CHTMLWrapper,e)},95:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLTeXAtom=void 0,r(5355)),s=r(9800),l=r(3948),c=r(9007),r=(o=(0,s.CommonTeXAtomMixin)(a.CHTMLWrapper),i(u,o),u.prototype.toCHTML=function(t){var e;o.prototype.toCHTML.call(this,t),this.adaptor.setAttribute(this.chtml,"texclass",c.TEXCLASSNAMES[this.node.texClass]),this.node.texClass===c.TEXCLASS.VCENTER&&(t=((e=(t=this.childNodes[0].getBBox()).h)+t.d)/2+this.font.params.axis_height-e,this.adaptor.setStyle(this.chtml,"verticalAlign",this.em(t)))},u.kind=l.TeXAtom.prototype.kind,u);function u(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLTeXAtom=r},1148:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),h=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLTextNode=void 0,r(9007)),s=r(5355),r=(o=(0,r(1160).CommonTextNodeMixin)(s.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){this.markUsed();var e,r,n=this.adaptor,o=this.parent.variant,i=this.node.getText();if(0!==i.length)if("-explicitFont"===o)n.append(t,this.jax.unknownText(i,o,this.getBBox().w));else{i=this.remappedText(i,o);try{for(var a=h(i),s=a.next();!s.done;s=a.next()){var l=s.value,c=this.getVariantChar(o,l)[3],u=c.f?" TEX-"+c.f:"",p=c.unknown?this.jax.unknownText(String.fromCodePoint(l),o):this.html("mjx-c",{class:this.char(l)+u});n.append(t,p),c.unknown||this.font.charUsage.add([o,l])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}}},l.kind=a.TextNode.prototype.kind,l.autoStyle=!1,l.styles={"mjx-c":{display:"inline-block"},"mjx-utext":{display:"inline-block",padding:".75em 0 .2em 0"}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLTextNode=r},8102:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmaction=void 0,r(5355)),s=r(1956),l=r(1956),r=r(9145),s=(o=(0,s.CommonMactionMixin)(a.CHTMLWrapper),i(c,o),c.prototype.toCHTML=function(t){t=this.standardCHTMLnode(t);this.selected.toCHTML(t),this.action(this,this.data)},c.prototype.setEventHandler=function(t,e){this.chtml.addEventListener(t,e)},c.kind=r.MmlMaction.prototype.kind,c.styles={"mjx-maction":{position:"relative"},"mjx-maction > mjx-tool":{display:"none",position:"absolute",bottom:0,right:0,width:0,height:0,"z-index":500},"mjx-tool > mjx-tip":{display:"inline-block",padding:".2em",border:"1px solid #888","font-size":"70%","background-color":"#F8F8F8",color:"black","box-shadow":"2px 2px 5px #AAAAAA"},"mjx-maction[toggle]":{cursor:"pointer"},"mjx-status":{display:"block",position:"fixed",left:"1em",bottom:"1em","min-width":"25%",padding:".2em .4em",border:"1px solid #888","font-size":"90%","background-color":"#F8F8F8",color:"black"}},c.actions=new Map([["toggle",[function(t,e){t.adaptor.setAttribute(t.chtml,"toggle",t.node.attributes.get("selection"));var r=t.factory.jax.math,n=t.factory.jax.document,o=t.node;t.setEventHandler("click",function(t){r.end.node||(r.start.node=r.end.node=r.typesetRoot,r.start.n=r.end.n=0),o.nextToggleSelection(),r.rerender(n),t.stopPropagation()})},{}]],["tooltip",[function(r,n){var t,o,i,e=r.childNodes[1];e&&(e.node.isKind("mtext")?(t=e.node.getText(),r.adaptor.setAttribute(r.chtml,"title",t)):(o=r.adaptor,i=o.append(r.chtml,r.html("mjx-tool",{style:{bottom:r.em(-r.dy),right:r.em(-r.dx)}},[r.html("mjx-tip")])),e.toCHTML(o.firstChild(i)),r.setEventHandler("mouseover",function(t){n.stopTimers(r,n);var e=setTimeout(function(){return o.setStyle(i,"display","block")},n.postDelay);n.hoverTimer.set(r,e),t.stopPropagation()}),r.setEventHandler("mouseout",function(t){n.stopTimers(r,n);var e=setTimeout(function(){return o.setStyle(i,"display","")},n.clearDelay);n.clearTimer.set(r,e),t.stopPropagation()})))},l.TooltipData]],["statusline",[function(r,n){var o,i,t=r.childNodes[1];t&&t.node.isKind("mtext")&&(o=r.adaptor,i=t.node.getText(),o.setAttribute(r.chtml,"statusline",i),r.setEventHandler("mouseover",function(t){var e;null===n.status&&(e=o.body(o.document),n.status=o.append(e,r.html("mjx-status",{},[r.text(i)]))),t.stopPropagation()}),r.setEventHandler("mouseout",function(t){n.status&&(o.remove(n.status),n.status=null),t.stopPropagation()}))},{status:null}]]]),c);function c(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmaction=s},804:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmath=void 0,r(5355)),l=r(7490),c=r(3233),u=r(6469),r=(o=(0,l.CommonMathMixin)(a.CHTMLWrapper),i(p,o),p.prototype.toCHTML=function(t){o.prototype.toCHTML.call(this,t);var e=this.chtml,r=this.adaptor;"block"===this.node.attributes.get("display")?(r.setAttribute(e,"display","true"),r.setAttribute(t,"display","true"),this.handleDisplay(t)):this.handleInline(t),r.addClass(e,"MJX-TEX")},p.prototype.handleDisplay=function(t){var e,r,n,o=this.adaptor,i=s(this.getAlignShift(),2),a=i[0],i=i[1];"center"!==a&&o.setAttribute(t,"justify",a),this.bbox.pwidth===u.BBox.fullWidth?(o.setAttribute(t,"width","full"),this.jax.table&&(n=(r=this.jax.table.getOuterBBox()).L,e=r.w,r=r.R,"right"===a?r=Math.max(r||-i,-i):"left"===a?n=Math.max(n||i,i):"center"===a&&(e+=2*Math.abs(i)),n=this.em(Math.max(0,n+e+r)),o.setStyle(t,"min-width",n),o.setStyle(this.jax.table.chtml,"min-width",n))):this.setIndent(this.chtml,a,i)},p.prototype.handleInline=function(t){var e=this.adaptor,r=e.getStyle(this.chtml,"margin-right");r&&(e.setStyle(this.chtml,"margin-right",""),e.setStyle(t,"margin-right",r),e.setStyle(t,"width","0"))},p.prototype.setChildPWidths=function(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!0),!!this.parent&&o.prototype.setChildPWidths.call(this,t,e,r)},p.kind=c.MmlMath.prototype.kind,p.styles={"mjx-math":{"line-height":0,"text-align":"left","text-indent":0,"font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","letter-spacing":"normal","border-collapse":"collapse","word-wrap":"normal","word-spacing":"normal","white-space":"nowrap",direction:"ltr",padding:"1px 0"},'mjx-container[jax="CHTML"][display="true"]':{display:"block","text-align":"center",margin:"1em 0"},'mjx-container[jax="CHTML"][display="true"][width="full"]':{display:"flex"},'mjx-container[jax="CHTML"][display="true"] mjx-math':{padding:0},'mjx-container[jax="CHTML"][justify="left"]':{"text-align":"left"},'mjx-container[jax="CHTML"][justify="right"]':{"text-align":"right"}},p);function p(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmath=r},8147:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return a(e,t),e},g=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmenclose=void 0,r(5355)),c=r(7313),b=s(r(8270)),s=r(6661),r=r(6010);function d(t,e){return Math.atan2(t,e).toFixed(3).replace(/\.?0+$/,"")}var u,p=d(b.ARROWDX,b.ARROWY),c=(u=(0,c.CommonMencloseMixin)(l.CHTMLWrapper),o(f,u),f.prototype.toCHTML=function(t){var e,r,n,o,i=this.adaptor,a=this.standardCHTMLnode(t),s=i.append(a,this.html("mjx-box"));this.renderChild?this.renderChild(this,s):this.childNodes[0].toCHTML(s);try{for(var l=g(Object.keys(this.notations)),c=l.next();!c.done;c=l.next()){var u=c.value,p=this.notations[u];p.renderChild||p.renderer(this,s)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}var h=this.getPadding();try{for(var d=g(b.sideNames),f=d.next();!f.done;f=d.next()){var m=f.value,y=b.sideIndex[m];0<h[y]&&i.setStyle(s,"padding-"+m,this.em(h[y]))}}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}},f.prototype.arrow=function(t,e,r,n,o){void 0===n&&(n=""),void 0===o&&(o=0);var i=this.getBBox().w,a={width:this.em(t)},i=(i!==t&&(a.left=this.em((i-t)/2)),e&&(a.transform="rotate("+this.fixed(e)+"rad)"),this.html("mjx-arrow",{style:a},[this.html("mjx-aline"),this.html("mjx-rthead"),this.html("mjx-rbhead")]));return r&&(this.adaptor.append(i,this.html("mjx-lthead")),this.adaptor.append(i,this.html("mjx-lbhead")),this.adaptor.setAttribute(i,"double","true")),this.adjustArrow(i,r),this.moveArrow(i,n,o),i},f.prototype.adjustArrow=function(t,e){var r,n,o,i,a,s,l,c=this,u=this.thickness,p=this.arrowhead;p.x===b.ARROWX&&p.y===b.ARROWY&&p.dx===b.ARROWDX&&u===b.THICKNESS||(r=(n=h([u*p.x,u*p.y].map(function(t){return c.em(t)}),2))[0],n=n[1],o=d(p.dx,p.y),i=(t=h(this.adaptor.childNodes(t),5))[0],a=t[1],s=t[2],l=t[3],t=t[4],this.adjustHead(a,[n,"0","1px",r],o),this.adjustHead(s,["1px","0",n,r],"-"+o),this.adjustHead(l,[n,r,"1px","0"],"-"+o),this.adjustHead(t,["1px",r,n,"0"],o),this.adjustLine(i,u,p.x,e))},f.prototype.adjustHead=function(t,e,r){t&&(this.adaptor.setStyle(t,"border-width",e.join(" ")),this.adaptor.setStyle(t,"transform","skewX("+r+"rad)"))},f.prototype.adjustLine=function(t,e,r,n){this.adaptor.setStyle(t,"borderTop",this.em(e)+" solid"),this.adaptor.setStyle(t,"top",this.em(-e/2)),this.adaptor.setStyle(t,"right",this.em(e*(r-1))),n&&this.adaptor.setStyle(t,"left",this.em(e*(r-1)))},f.prototype.moveArrow=function(t,e,r){var n;r&&(n=this.adaptor.getStyle(t,"transform"),this.adaptor.setStyle(t,"transform","translate".concat(e,"(").concat(this.em(-r),")").concat(n?" "+n:"")))},f.prototype.adjustBorder=function(t){return this.thickness!==b.THICKNESS&&this.adaptor.setStyle(t,"borderWidth",this.em(this.thickness)),t},f.prototype.adjustThickness=function(t){return this.thickness!==b.THICKNESS&&this.adaptor.setStyle(t,"strokeWidth",this.fixed(this.thickness)),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.em=function(t){return u.prototype.em.call(this,t)},f.kind=s.MmlMenclose.prototype.kind,f.styles={"mjx-menclose":{position:"relative"},"mjx-menclose > mjx-dstrike":{display:"inline-block",left:0,top:0,position:"absolute","border-top":b.SOLID,"transform-origin":"top left"},"mjx-menclose > mjx-ustrike":{display:"inline-block",left:0,bottom:0,position:"absolute","border-top":b.SOLID,"transform-origin":"bottom left"},"mjx-menclose > mjx-hstrike":{"border-top":b.SOLID,position:"absolute",left:0,right:0,bottom:"50%",transform:"translateY("+(0,r.em)(b.THICKNESS/2)+")"},"mjx-menclose > mjx-vstrike":{"border-left":b.SOLID,position:"absolute",top:0,bottom:0,right:"50%",transform:"translateX("+(0,r.em)(b.THICKNESS/2)+")"},"mjx-menclose > mjx-rbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:b.SOLID,"border-radius":(0,r.em)(b.THICKNESS+b.PADDING)},"mjx-menclose > mjx-cbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:b.SOLID,"border-radius":"50%"},"mjx-menclose > mjx-arrow":{position:"absolute",left:0,bottom:"50%",height:0,width:0},"mjx-menclose > mjx-arrow > *":{display:"block",position:"absolute","transform-origin":"bottom","border-left":(0,r.em)(b.THICKNESS*b.ARROWX)+" solid","border-right":0,"box-sizing":"border-box"},"mjx-menclose > mjx-arrow > mjx-aline":{left:0,top:(0,r.em)(-b.THICKNESS/2),right:(0,r.em)(b.THICKNESS*(b.ARROWX-1)),height:0,"border-top":(0,r.em)(b.THICKNESS)+" solid","border-left":0},"mjx-menclose > mjx-arrow[double] > mjx-aline":{left:(0,r.em)(b.THICKNESS*(b.ARROWX-1)),height:0},"mjx-menclose > mjx-arrow > mjx-rthead":{transform:"skewX("+p+"rad)",right:0,bottom:"-1px","border-bottom":"1px solid transparent","border-top":(0,r.em)(b.THICKNESS*b.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-rbhead":{transform:"skewX(-"+p+"rad)","transform-origin":"top",right:0,top:"-1px","border-top":"1px solid transparent","border-bottom":(0,r.em)(b.THICKNESS*b.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lthead":{transform:"skewX(-"+p+"rad)",left:0,bottom:"-1px","border-left":0,"border-right":(0,r.em)(b.THICKNESS*b.ARROWX)+" solid","border-bottom":"1px solid transparent","border-top":(0,r.em)(b.THICKNESS*b.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lbhead":{transform:"skewX("+p+"rad)","transform-origin":"top",left:0,top:"-1px","border-left":0,"border-right":(0,r.em)(b.THICKNESS*b.ARROWX)+" solid","border-top":"1px solid transparent","border-bottom":(0,r.em)(b.THICKNESS*b.ARROWY)+" solid transparent"},"mjx-menclose > dbox":{position:"absolute",top:0,bottom:0,left:(0,r.em)(-1.5*b.PADDING),width:(0,r.em)(3*b.PADDING),border:(0,r.em)(b.THICKNESS)+" solid","border-radius":"50%","clip-path":"inset(0 0 0 "+(0,r.em)(1.5*b.PADDING)+")","box-sizing":"border-box"}},f.notations=new Map([b.Border("top"),b.Border("right"),b.Border("bottom"),b.Border("left"),b.Border2("actuarial","top","right"),b.Border2("madruwb","bottom","right"),b.DiagonalStrike("up",1),b.DiagonalStrike("down",-1),["horizontalstrike",{renderer:b.RenderElement("hstrike","Y"),bbox:function(t){return[0,t.padding,0,t.padding]}}],["verticalstrike",{renderer:b.RenderElement("vstrike","X"),bbox:function(t){return[t.padding,0,t.padding,0]}}],["box",{renderer:function(t,e){t.adaptor.setStyle(e,"border",t.em(t.thickness)+" solid")},bbox:b.fullBBox,border:b.fullBorder,remove:"left right top bottom"}],["roundedbox",{renderer:b.RenderElement("rbox"),bbox:b.fullBBox}],["circle",{renderer:b.RenderElement("cbox"),bbox:b.fullBBox}],["phasorangle",{renderer:function(t,e){var r=t.getBBox(),n=r.h,r=r.d,n=h(t.getArgMod(1.75*t.padding,n+r),2),r=n[0],n=n[1],o=t.thickness*Math.sin(r)*.9,e=(t.adaptor.setStyle(e,"border-bottom",t.em(t.thickness)+" solid"),t.adjustBorder(t.html("mjx-ustrike",{style:{width:t.em(n),transform:"translateX("+t.em(o)+") rotate("+t.fixed(-r)+"rad)"}})));t.adaptor.append(t.chtml,e)},bbox:function(t){var e=t.padding/2,t=t.thickness;return[2*e,e,e+t,3*e+t]},border:function(t){return[0,0,t.thickness,0]},remove:"bottom"}],b.Arrow("up"),b.Arrow("down"),b.Arrow("left"),b.Arrow("right"),b.Arrow("updown"),b.Arrow("leftright"),b.DiagonalArrow("updiagonal"),b.DiagonalArrow("northeast"),b.DiagonalArrow("southeast"),b.DiagonalArrow("northwest"),b.DiagonalArrow("southwest"),b.DiagonalArrow("northeastsouthwest"),b.DiagonalArrow("northwestsoutheast"),["longdiv",{renderer:function(t,e){var r=t.adaptor,e=(r.setStyle(e,"border-top",t.em(t.thickness)+" solid"),r.append(t.chtml,t.html("dbox"))),n=t.thickness,o=t.padding;n!==b.THICKNESS&&r.setStyle(e,"border-width",t.em(n)),o!==b.PADDING&&(r.setStyle(e,"left",t.em(-1.5*o)),r.setStyle(e,"width",t.em(3*o)),r.setStyle(e,"clip-path","inset(0 0 0 "+t.em(1.5*o)+")"))},bbox:function(t){var e=t.padding,t=t.thickness;return[e+t,e,e,2*e+t/2]}}],["radical",{renderer:function(e,t){e.msqrt.toCHTML(t);t=e.sqrtTRBL();e.adaptor.setStyle(e.msqrt.chtml,"margin",t.map(function(t){return e.em(-t)}).join(" "))},init:function(t){t.msqrt=t.createMsqrt(t.childNodes[0])},bbox:function(t){return t.sqrtTRBL()},renderChild:!0}]]),f);function f(){return null!==u&&u.apply(this,arguments)||this}e.CHTMLmenclose=c},2275:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmfenced=void 0,r(5355)),s=r(7555),r=r(5410),s=(o=(0,s.CommonMfencedMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){t=this.standardCHTMLnode(t);this.mrow.toCHTML(t)},l.kind=r.MmlMfenced.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmfenced=s},9063:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),d=this&&this.__assign||function(){return(d=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmfrac=void 0,r(5355)),s=r(2688),r=r(6850),s=(o=(0,s.CommonMfracMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){this.standardCHTMLnode(t);var t=this.node.attributes.getList("linethickness","bevelled"),e=t.linethickness,t=t.bevelled,r=this.isDisplay();t?this.makeBevelled(r):0===(t=this.length2em(String(e),.06))?this.makeAtop(r):this.makeFraction(r,t)},l.prototype.makeFraction=function(t,e){var r,n,o,i,a=this.node.attributes.getList("numalign","denomalign"),s=a.numalign,a=a.denomalign,l=t?{type:"d"}:{},c=this.node.getProperty("withDelims")?d(d({},l),{delims:"true"}):d({},l),s="center"!==s?{align:s}:{},a="center"!==a?{align:a}:{},u=d({},l),p=d({},l),h=this.font.params;.06!==e&&(h=h.axis_height,r=this.em(e),n=(i=this.getTUV(t,e)).T,o=i.u,i=i.v,t=(t?this.em(3*e):r)+" -.1em",l.style={height:r,"border-top":r+" solid",margin:t},e=this.em(Math.max(0,o)),p.style={height:e,"vertical-align":"-"+e},u.style={height:this.em(Math.max(0,i))},c.style={"vertical-align":this.em(h-n)}),this.adaptor.append(this.chtml,this.html("mjx-frac",c,[r=this.html("mjx-num",s,[this.html("mjx-nstrut",p)]),this.html("mjx-dbox",{},[this.html("mjx-dtable",{},[this.html("mjx-line",l),this.html("mjx-row",{},[t=this.html("mjx-den",a,[this.html("mjx-dstrut",u)])])])])])),this.childNodes[0].toCHTML(r),this.childNodes[1].toCHTML(t)},l.prototype.makeAtop=function(t){var e=this.node.attributes.getList("numalign","denomalign"),r=e.numalign,e=e.denomalign,n=t?{type:"d",atop:!0}:{atop:!0},n=this.node.getProperty("withDelims")?d(d({},n),{delims:!0}):d({},n),r="center"!==r?{align:r}:{},e="center"!==e?{align:e}:{},t=this.getUVQ(t),o=t.v,t=t.q;r.style={"padding-bottom":this.em(t)},n.style={"vertical-align":this.em(-o)},this.adaptor.append(this.chtml,this.html("mjx-frac",n,[t=this.html("mjx-num",r),o=this.html("mjx-den",e)])),this.childNodes[0].toCHTML(t),this.childNodes[1].toCHTML(o)},l.prototype.makeBevelled=function(t){var e=this.adaptor,r=(e.setAttribute(this.chtml,"bevelled","ture"),e.append(this.chtml,this.html("mjx-num"))),n=(this.childNodes[0].toCHTML(r),this.bevel.toCHTML(this.chtml),e.append(this.chtml,this.html("mjx-den"))),t=(this.childNodes[1].toCHTML(n),this.getBevelData(t)),o=t.u,i=t.v,a=t.delta,s=t.nbox,t=t.dbox,r=(o&&e.setStyle(r,"verticalAlign",this.em(o/s.scale)),i&&e.setStyle(n,"verticalAlign",this.em(i/t.scale)),this.em(-a/2));e.setStyle(this.bevel.chtml,"marginLeft",r),e.setStyle(this.bevel.chtml,"marginRight",r)},l.kind=r.MmlMfrac.prototype.kind,l.styles={"mjx-frac":{display:"inline-block","vertical-align":"0.17em",padding:"0 .22em"},'mjx-frac[type="d"]':{"vertical-align":".04em"},"mjx-frac[delims]":{padding:"0 .1em"},"mjx-frac[atop]":{padding:"0 .12em"},"mjx-frac[atop][delims]":{padding:"0"},"mjx-dtable":{display:"inline-table",width:"100%"},"mjx-dtable > *":{"font-size":"2000%"},"mjx-dbox":{display:"block","font-size":"5%"},"mjx-num":{display:"block","text-align":"center"},"mjx-den":{display:"block","text-align":"center"},"mjx-mfrac[bevelled] > mjx-num":{display:"inline-block"},"mjx-mfrac[bevelled] > mjx-den":{display:"inline-block"},'mjx-den[align="right"], mjx-num[align="right"]':{"text-align":"right"},'mjx-den[align="left"], mjx-num[align="left"]':{"text-align":"left"},"mjx-nstrut":{display:"inline-block",height:".054em",width:0,"vertical-align":"-.054em"},'mjx-nstrut[type="d"]':{height:".217em","vertical-align":"-.217em"},"mjx-dstrut":{display:"inline-block",height:".505em",width:0},'mjx-dstrut[type="d"]':{height:".726em"},"mjx-line":{display:"block","box-sizing":"border-box","min-height":"1px",height:".06em","border-top":".06em solid",margin:".06em -.1em",overflow:"hidden"},'mjx-line[type="d"]':{margin:".18em -.1em"}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmfrac=s},6911:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmglyph=void 0,r(5355)),s=r(5636),r=r(3985),s=(o=(0,s.CommonMglyphMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){var e,r,n,t=this.standardCHTMLnode(t);this.charWrapper?this.charWrapper.toCHTML(t):(n=(e=this.node.attributes.getList("src","alt")).src,e=e.alt,r={width:this.em(this.width),height:this.em(this.height)},this.valign&&(r.verticalAlign=this.em(this.valign)),n=this.html("img",{src:n,style:r,alt:e,title:e}),this.adaptor.append(t,n))},l.kind=r.MmlMglyph.prototype.kind,l.styles={"mjx-mglyph > img":{display:"inline-block",border:0,padding:0}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmglyph=s},1653:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmi=void 0,r(5355)),s=r(5723),r=r(450),s=(o=(0,s.CommonMiMixin)(a.CHTMLWrapper),i(l,o),l.kind=r.MmlMi.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmi=s},6781:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmmultiscripts=void 0,r(4300)),l=r(8009),c=r(6405),u=r(505),r=(o=(0,l.CommonMmultiscriptsMixin)(a.CHTMLmsubsup),i(p,o),p.prototype.toCHTML=function(t){var e,t=this.standardCHTMLnode(t),r=this.scriptData,n=this.node.getProperty("scriptalign")||"right left",n=s((0,u.split)(n+" "+n),2),o=n[0],n=n[1],i=this.combinePrePost(r.sub,r.psub),a=this.combinePrePost(r.sup,r.psup),i=s(this.getUVQ(i,a),2),a=i[0],i=i[1];r.numPrescripts&&(e=this.addScripts(a,-i,!0,r.psub,r.psup,this.firstPrescript,r.numPrescripts),"right"!==o&&this.adaptor.setAttribute(e,"script-align",o)),this.childNodes[0].toCHTML(t),r.numScripts&&(e=this.addScripts(a,-i,!1,r.sub,r.sup,1,r.numScripts),"left"!==n&&this.adaptor.setAttribute(e,"script-align",n))},p.prototype.addScripts=function(t,e,r,n,o,i,a){for(var s=this.adaptor,o=t-o.d+(e-n.h),e=t<0&&0===e?n.h+t:t,n=0<o?{style:{height:this.em(o)}}:{},t=e?{style:{"vertical-align":this.em(e)}}:{},l=this.html("mjx-row"),o=this.html("mjx-row",n),c=this.html("mjx-row"),e="mjx-"+(r?"pre":"")+"scripts",u=i+2*a;i<u;)this.childNodes[i++].toCHTML(s.append(c,this.html("mjx-cell"))),this.childNodes[i++].toCHTML(s.append(l,this.html("mjx-cell")));return s.append(this.chtml,this.html(e,t,[l,o,c]))},p.kind=c.MmlMmultiscripts.prototype.kind,p.styles={"mjx-prescripts":{display:"inline-table","padding-left":".05em"},"mjx-scripts":{display:"inline-table","padding-right":".05em"},"mjx-prescripts > mjx-row > mjx-cell":{"text-align":"right"},'[script-align="left"] > mjx-row > mjx-cell':{"text-align":"left"},'[script-align="center"] > mjx-row > mjx-cell':{"text-align":"center"},'[script-align="right"] > mjx-row > mjx-cell':{"text-align":"right"}},p);function p(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmmultiscripts=r},6460:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmn=void 0,r(5355)),s=r(5023),r=r(3050),s=(o=(0,s.CommonMnMixin)(a.CHTMLWrapper),i(l,o),l.kind=r.MmlMn.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmn=s},6287:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmo=void 0,r(5355)),l=r(7096),r=r(2756),a=(o=(0,l.CommonMoMixin)(a.CHTMLWrapper),i(s,o),s.prototype.toCHTML=function(t){var e,r,n=this.node.attributes,o=n.get("symmetric")&&2!==this.stretch.dir,i=0!==this.stretch.dir,a=(i&&null===this.size&&this.getStretchedVariant([]),this.standardCHTMLnode(t));if(i&&this.size<0)this.stretchHTML(a);else{!o&&!n.get("largeop")||"0"!==(i=this.em(this.getCenterOffset()))&&this.adaptor.setStyle(a,"verticalAlign",i),this.node.getProperty("mathaccent")&&(this.adaptor.setStyle(a,"width","0"),this.adaptor.setStyle(a,"margin-left",this.em(this.getAccentOffset())));try{for(var s=c(this.childNodes),l=s.next();!l.done;l=s.next())l.value.toCHTML(a)}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}}},s.prototype.stretchHTML=function(t){var e=this.getText().codePointAt(0),r=(this.font.delimUsage.add(e),this.childNodes[0].markUsed(),this.stretch),n=r.stretch,o=[],n=(n[0]&&o.push(this.html("mjx-beg",{},[this.html("mjx-c")])),o.push(this.html("mjx-ext",{},[this.html("mjx-c")])),4===n.length&&o.push(this.html("mjx-mid",{},[this.html("mjx-c")]),this.html("mjx-ext",{},[this.html("mjx-c")])),n[2]&&o.push(this.html("mjx-end",{},[this.html("mjx-c")])),{}),i=this.bbox,a=i.h,s=i.d,i=i.w,a=(1===r.dir?(o.push(this.html("mjx-mark")),n.height=this.em(a+s),n.verticalAlign=this.em(-s)):n.width=this.em(i),l.DirectionVH[r.dir]),s={class:this.char(r.c||e),style:n},i=this.html("mjx-stretchy-"+a,s,o);this.adaptor.append(t,i)},s.kind=r.MmlMo.prototype.kind,s.styles={"mjx-stretchy-h":{display:"inline-table",width:"100%"},"mjx-stretchy-h > *":{display:"table-cell",width:0},"mjx-stretchy-h > * > mjx-c":{display:"inline-block",transform:"scalex(1.0000001)"},"mjx-stretchy-h > * > mjx-c::before":{display:"inline-block",width:"initial"},"mjx-stretchy-h > mjx-ext":{"/* IE */ overflow":"hidden","/* others */ overflow":"clip visible",width:"100%"},"mjx-stretchy-h > mjx-ext > mjx-c::before":{transform:"scalex(500)"},"mjx-stretchy-h > mjx-ext > mjx-c":{width:0},"mjx-stretchy-h > mjx-beg > mjx-c":{"margin-right":"-.1em"},"mjx-stretchy-h > mjx-end > mjx-c":{"margin-left":"-.1em"},"mjx-stretchy-v":{display:"inline-block"},"mjx-stretchy-v > *":{display:"block"},"mjx-stretchy-v > mjx-beg":{height:0},"mjx-stretchy-v > mjx-end > mjx-c":{display:"block"},"mjx-stretchy-v > * > mjx-c":{transform:"scaley(1.0000001)","transform-origin":"left center",overflow:"hidden"},"mjx-stretchy-v > mjx-ext":{display:"block",height:"100%","box-sizing":"border-box",border:"0px solid transparent","/* IE */ overflow":"hidden","/* others */ overflow":"visible clip"},"mjx-stretchy-v > mjx-ext > mjx-c::before":{width:"initial","box-sizing":"border-box"},"mjx-stretchy-v > mjx-ext > mjx-c":{transform:"scaleY(500) translateY(.075em)",overflow:"visible"},"mjx-mark":{display:"inline-block",height:"0px"}},s);function s(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmo=a},5964:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},y=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmpadded=void 0,r(5355)),s=r(6898),r=r(7238),s=(o=(0,s.CommonMpaddedMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){var e,r,n=this.standardCHTMLnode(t),o=[],i={},a=m(this.getDimens(),9),s=a[2],l=a[3],c=a[4],u=a[5],p=a[6],h=a[7],a=a[8];u&&(i.width=this.em(s+u)),(l||c)&&(i.margin=this.em(l)+" 0 "+this.em(c)),(p+a||h)&&(i.position="relative",s=this.html("mjx-rbox",{style:{left:this.em(p+a),top:this.em(-h),"max-width":i.width}}),p+a&&this.childNodes[0].getBBox().pwidth&&(this.adaptor.setAttribute(s,"width","full"),this.adaptor.setStyle(s,"left",this.em(p))),o.push(s)),n=this.adaptor.append(n,this.html("mjx-block",{style:i},o));try{for(var d=y(this.childNodes),f=d.next();!f.done;f=d.next())f.value.toCHTML(o[0]||n)}catch(t){e={error:t}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(e)throw e.error}}},l.kind=r.MmlMpadded.prototype.kind,l.styles={"mjx-mpadded":{display:"inline-block"},"mjx-rbox":{display:"inline-block",position:"relative"}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmpadded=s},8776:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmroot=void 0,r(5610)),l=r(6991),r=r(6145),l=(o=(0,l.CommonMrootMixin)(s.CHTMLmsqrt),i(c,o),c.prototype.addRoot=function(t,e,r,n){e.toCHTML(t);e=a(this.getRootDimens(r,n),3),r=e[0],n=e[1],e=e[2];this.adaptor.setStyle(t,"verticalAlign",this.em(n)),this.adaptor.setStyle(t,"width",this.em(r)),e&&this.adaptor.setStyle(this.adaptor.firstChild(t),"paddingLeft",this.em(e))},c.kind=r.MmlMroot.prototype.kind,c);function c(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmroot=l},4798:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLinferredMrow=e.CHTMLmrow=void 0,r(5355)),s=r(8411),c=r(8411),r=r(9878),s=(o=(0,s.CommonMrowMixin)(a.CHTMLWrapper),i(u,o),u.prototype.toCHTML=function(t){var e,r,n=this.node.isInferred?this.chtml=t:this.standardCHTMLnode(t),o=!1;try{for(var i=l(this.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value;s.toCHTML(n),s.bbox.w<0&&(o=!0)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}o&&(r=this.getBBox().w)&&(this.adaptor.setStyle(n,"width",this.em(Math.max(0,r))),r<0&&this.adaptor.setStyle(n,"marginRight",this.em(r)))},u.kind=r.MmlMrow.prototype.kind,u);function u(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmrow=s;p=(0,c.CommonInferredMrowMixin)(s),i(h,p),h.kind=r.MmlInferredMrow.prototype.kind;var p,a=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.CHTMLinferredMrow=a},4597:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLms=void 0,r(5355)),s=r(4126),r=r(7265),s=(o=(0,s.CommonMsMixin)(a.CHTMLWrapper),i(l,o),l.kind=r.MmlMs.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLms=s},2970:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmspace=void 0,r(5355)),s=r(258),r=r(6030),s=(o=(0,s.CommonMspaceMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){var t=this.standardCHTMLnode(t),e=this.getBBox(),r=e.w,n=e.h,e=e.d;r<0&&(this.adaptor.setStyle(t,"marginRight",this.em(r)),r=0),r&&this.adaptor.setStyle(t,"width",this.em(r)),(n=Math.max(0,n+e))&&this.adaptor.setStyle(t,"height",this.em(Math.max(0,n))),e&&this.adaptor.setStyle(t,"verticalAlign",this.em(-e))},l.kind=r.MmlMspace.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmspace=s},5610:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmsqrt=void 0,r(5355)),s=r(4093),r=r(7131),s=(o=(0,s.CommonMsqrtMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){var e,r,n=this.childNodes[this.surd],o=this.childNodes[this.base],i=n.getBBox(),a=o.getOuterBBox(),s=c(this.getPQ(i),2)[1],l=this.font.params.rule_thickness,a=a.h+s+l,l=this.standardCHTMLnode(t),s=(null!=this.root&&(e=this.adaptor.append(l,this.html("mjx-root")),r=this.childNodes[this.root]),this.adaptor.append(l,this.html("mjx-sqrt",{},[t=this.html("mjx-surd"),l=this.html("mjx-box",{style:{paddingTop:this.em(s)}})])));this.addRoot(e,r,i,a),n.toCHTML(t),o.toCHTML(l),n.size<0&&this.adaptor.addClass(s,"mjx-tall")},l.prototype.addRoot=function(t,e,r,n){},l.kind=r.MmlMsqrt.prototype.kind,l.styles={"mjx-root":{display:"inline-block","white-space":"nowrap"},"mjx-surd":{display:"inline-block","vertical-align":"top"},"mjx-sqrt":{display:"inline-block","padding-top":".07em"},"mjx-sqrt > mjx-box":{"border-top":".07em solid"},"mjx-sqrt.mjx-tall > mjx-box":{"padding-left":".3em","margin-left":"-.3em"}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmsqrt=s},4300:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmsubsup=e.CHTMLmsup=e.CHTMLmsub=void 0,r(8650)),l=r(905),c=r(905),u=r(905),r=r(4461),l=(o=(0,l.CommonMsubMixin)(a.CHTMLscriptbase),i(p,o),p.kind=r.MmlMsub.prototype.kind,p);function p(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmsub=l;h=(0,c.CommonMsupMixin)(a.CHTMLscriptbase),i(d,h),d.kind=r.MmlMsup.prototype.kind;var h,l=d;function d(){return null!==h&&h.apply(this,arguments)||this}e.CHTMLmsup=l;f=(0,u.CommonMsubsupMixin)(a.CHTMLscriptbase),i(m,f),m.prototype.toCHTML=function(t){var e=this.adaptor,t=this.standardCHTMLnode(t),r=s([this.baseChild,this.supChild,this.subChild],3),n=r[0],o=r[1],r=r[2],i=s(this.getUVQ(),3),a=i[1],i=i[2],a={"vertical-align":this.em(a)},n=(n.toCHTML(t),e.append(t,this.html("mjx-script",{style:a}))),t=(o.toCHTML(n),e.append(n,this.html("mjx-spacer",{style:{"margin-top":this.em(i)}})),r.toCHTML(n),this.getAdjustedIc());t&&e.setStyle(o.chtml,"marginLeft",this.em(t/o.bbox.rscale)),this.baseRemoveIc&&e.setStyle(n,"marginLeft",this.em(-this.baseIc))},m.kind=r.MmlMsubsup.prototype.kind,m.styles={"mjx-script":{display:"inline-block","padding-right":".05em","padding-left":".033em"},"mjx-script > mjx-spacer":{display:"block"}};var f,c=m;function m(){return null!==f&&f.apply(this,arguments)||this}e.CHTMLmsubsup=c},8002:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmtable=void 0,r(5355)),l=r(6237),c=r(1349),u=r(505),r=(o=(0,l.CommonMtableMixin)(a.CHTMLWrapper),i(p,o),p.prototype.getAlignShift=function(){var t=o.prototype.getAlignShift.call(this);return this.isTop||(t[1]=0),t},p.prototype.toCHTML=function(t){var e,r,n=this.standardCHTMLnode(t);this.adaptor.append(n,this.html("mjx-table",{},[this.itable]));try{for(var o=g(this.childNodes),i=o.next();!i.done;i=o.next())i.value.toCHTML(this.itable)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}this.padRows(),this.handleColumnSpacing(),this.handleColumnLines(),this.handleColumnWidths(),this.handleRowSpacing(),this.handleRowLines(),this.handleRowHeights(),this.handleFrame(),this.handleWidth(),this.handleLabels(),this.handleAlign(),this.handleJustify(),this.shiftColor()},p.prototype.shiftColor=function(){var t=this.adaptor,e=t.getStyle(this.chtml,"backgroundColor");e&&(t.setStyle(this.chtml,"backgroundColor",""),t.setStyle(this.itable,"backgroundColor",e))},p.prototype.padRows=function(){var t,e,r=this.adaptor;try{for(var n=g(r.childNodes(this.itable)),o=n.next();!o.done;o=n.next())for(var i=o.value;r.childNodes(i).length<this.numCols;)r.append(i,this.html("mjx-mtd",{extra:!0}))}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},p.prototype.handleColumnSpacing=function(){var t,e,r,n,o=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,i=this.getEmHalfSpacing(this.fSpace[0],this.cSpace,o),a=this.frame;try{for(var s=g(this.tableRows),l=s.next();!l.done;l=s.next()){var c=l.value,u=0;try{r=void 0;for(var p=g(c.tableCells),h=p.next();!h.done;h=p.next()){var d=h.value,f=i[u++],m=i[u],y=d?d.chtml:this.adaptor.childNodes(c.chtml)[u];(1<u&&"0.4em"!==f||a&&1===u)&&this.adaptor.setStyle(y,"paddingLeft",f),(u<this.numCols&&"0.4em"!==m||a&&u===this.numCols)&&this.adaptor.setStyle(y,"paddingRight",m)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}},p.prototype.handleColumnLines=function(){var t,e,r,n;if("none"!==this.node.attributes.get("columnlines")){var o=this.getColumnAttributes("columnlines");try{for(var i=g(this.childNodes),a=i.next();!a.done;a=i.next()){var s=a.value,l=0;try{r=void 0;for(var c=g(this.adaptor.childNodes(s.chtml).slice(1)),u=c.next();!u.done;u=c.next()){var p=u.value,h=o[l++];"none"!==h&&this.adaptor.setStyle(p,"borderLeft",".07em "+h)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}}},p.prototype.handleColumnWidths=function(){var t,e,r,n;try{for(var o=g(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value,s=0;try{r=void 0;for(var l=g(this.adaptor.childNodes(a.chtml)),c=l.next();!c.done;c=l.next()){var u,p=c.value,h=this.cWidths[s++];null!==h&&(u="number"==typeof h?this.em(h):h,this.adaptor.setStyle(p,"width",u),this.adaptor.setStyle(p,"maxWidth",u),this.adaptor.setStyle(p,"minWidth",u))}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},p.prototype.handleRowSpacing=function(){var t,e,r,n,o=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,i=this.getEmHalfSpacing(this.fSpace[1],this.rSpace,o),a=this.frame,s=0;try{for(var l=g(this.childNodes),c=l.next();!c.done;c=l.next()){var u=c.value,p=i[s++],h=i[s];try{r=void 0;for(var d=g(u.childNodes),f=d.next();!f.done;f=d.next()){var m=f.value;(1<s&&"0.215em"!==p||a&&1===s)&&this.adaptor.setStyle(m.chtml,"paddingTop",p),(s<this.numRows&&"0.215em"!==h||a&&s===this.numRows)&&this.adaptor.setStyle(m.chtml,"paddingBottom",h)}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}},p.prototype.handleRowLines=function(){var t,e,r,n;if("none"!==this.node.attributes.get("rowlines")){var o=this.getRowAttributes("rowlines"),i=0;try{for(var a=g(this.childNodes.slice(1)),s=a.next();!s.done;s=a.next()){var l=s.value,c=o[i++];if("none"!==c)try{r=void 0;for(var u=g(this.adaptor.childNodes(l.chtml)),p=u.next();!p.done;p=u.next()){var h=p.value;this.adaptor.setStyle(h,"borderTop",".07em "+c)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}}},p.prototype.handleRowHeights=function(){this.node.attributes.get("equalrows")&&this.handleEqualRows()},p.prototype.handleEqualRows=function(){for(var t=this.getRowHalfSpacing(),e=this.getTableData(),r=e.H,n=e.D,o=e.NH,i=e.ND,a=this.getEqualRowHeight(),s=0;s<this.numRows;s++){var l=this.childNodes[s];this.setRowHeight(l,a+t[s]+t[s+1]+this.rLines[s]),a!==o[s]+i[s]&&this.setRowBaseline(l,a,(a-r[s]+n[s])/2)}},p.prototype.setRowHeight=function(t,e){this.adaptor.setStyle(t.chtml,"height",this.em(e))},p.prototype.setRowBaseline=function(t,e,r){var n,o,i=t.node.attributes.get("rowalign");try{for(var a=g(t.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;if(this.setCellBaseline(l,i,e,r))break}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},p.prototype.setCellBaseline=function(t,e,r,n){var o=t.node.attributes.get("rowalign");if("baseline"===o||"axis"===o){var o=this.adaptor,i=o.lastChild(t.chtml),r=(o.setStyle(i,"height",this.em(r)),o.setStyle(i,"verticalAlign",this.em(-n)),t.parent);if(!(r.node.isKind("mlabeledtr")&&t===r.childNodes[0]||"baseline"!==e&&"axis"!==e))return!0}return!1},p.prototype.handleFrame=function(){this.frame&&this.fLine&&this.adaptor.setStyle(this.itable,"border",".07em "+this.node.attributes.get("frame"))},p.prototype.handleWidth=function(){var t=this.adaptor,e=this.getBBox(),r=e.w,n=e.L,e=e.R,o=(t.setStyle(this.chtml,"minWidth",this.em(n+r+e)),this.node.attributes.get("width"));if((0,u.isPercent)(o))t.setStyle(this.chtml,"width",""),t.setAttribute(this.chtml,"width","full");else if(!this.hasLabels){if("auto"===o)return;o=this.em(this.length2em(o)+2*this.fLine)}var i=t.firstChild(this.chtml);t.setStyle(i,"width",o),t.setStyle(i,"minWidth",this.em(r)),(n||e)&&(t.setStyle(this.chtml,"margin",""),o=this.node.attributes.get("data-width-includes-label")?"padding":"margin",n===e?t.setStyle(i,o,"0 "+this.em(e)):t.setStyle(i,o,"0 "+this.em(e)+" 0 "+this.em(n))),t.setAttribute(this.itable,"width","full")},p.prototype.handleAlign=function(){var t=s(this.getAlignmentRow(),2),e=t[0],t=t[1];null===t?"axis"!==e&&this.adaptor.setAttribute(this.chtml,"align",e):(t=this.getVerticalPosition(t,e),this.adaptor.setAttribute(this.chtml,"align","top"),this.adaptor.setStyle(this.chtml,"verticalAlign",this.em(t)))},p.prototype.handleJustify=function(){var t=this.getAlignShift()[0];"center"!==t&&this.adaptor.setAttribute(this.chtml,"justify",t)},p.prototype.handleLabels=function(){var t,e,r;this.hasLabels&&(e=this.labels,t=this.node.attributes,r=this.adaptor,t=t.get("side"),r.setAttribute(this.chtml,"side",t),r.setAttribute(e,"align",t),r.setStyle(e,t,"0"),t=(e=s(this.addLabelPadding(t),2))[0],(e=e[1])&&(r=r.firstChild(this.chtml),this.setIndent(r,t,e)),this.updateRowHeights(),this.addLabelSpacing())},p.prototype.addLabelPadding=function(t){var e,r,n,o=s(this.getPadAlignShift(t),3),i=o[1],o=o[2],a={};return"right"!==t||this.node.attributes.get("data-width-includes-label")||(t=this.node.attributes.get("width"),e=(n=this.getBBox()).w,r=n.L,n=n.R,a.style={width:(0,u.isPercent)(t)?"calc("+t+" + "+this.em(r+n)+")":this.em(r+e+n)}),this.adaptor.append(this.chtml,this.html("mjx-labels",a,[this.labels])),[i,o]},p.prototype.updateRowHeights=function(){for(var t=this.getTableData(),e=t.H,r=t.D,n=t.NH,o=t.ND,i=this.getRowHalfSpacing(),a=0;a<this.numRows;a++){var s=this.childNodes[a];this.setRowHeight(s,e[a]+r[a]+i[a]+i[a+1]+this.rLines[a]),e[a]!==n[a]||r[a]!==o[a]?this.setRowBaseline(s,e[a]+r[a],r[a]):s.node.isKind("mlabeledtr")&&this.setCellBaseline(s.childNodes[0],"",e[a]+r[a],r[a])}},p.prototype.addLabelSpacing=function(){for(var t=this.adaptor,e=this.node.attributes.get("equalrows"),r=this.getTableData(),n=r.H,o=r.D,i=e?this.getEqualRowHeight():0,a=this.getRowHalfSpacing(),s=this.fLine,l=t.firstChild(this.labels),c=0;c<this.numRows;c++)this.childNodes[c].node.isKind("mlabeledtr")?(s&&t.insert(this.html("mjx-mtr",{style:{height:this.em(s)}}),l),t.setStyle(l,"height",this.em((e?i:n[c]+o[c])+a[c]+a[c+1])),l=t.next(l),s=this.rLines[c]):s+=a[c]+(e?i:n[c]+o[c])+a[c+1]+this.rLines[c]},p.kind=c.MmlMtable.prototype.kind,p.styles={"mjx-mtable":{"vertical-align":".25em","text-align":"center",position:"relative","box-sizing":"border-box","border-spacing":0,"border-collapse":"collapse"},'mjx-mstyle[size="s"] mjx-mtable':{"vertical-align":".354em"},"mjx-labels":{position:"absolute",left:0,top:0},"mjx-table":{display:"inline-block","vertical-align":"-.5ex","box-sizing":"border-box"},"mjx-table > mjx-itable":{"vertical-align":"middle","text-align":"left","box-sizing":"border-box"},"mjx-labels > mjx-itable":{position:"absolute",top:0},'mjx-mtable[justify="left"]':{"text-align":"left"},'mjx-mtable[justify="right"]':{"text-align":"right"},'mjx-mtable[justify="left"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="left"][side="right"]':{"padding-left":"0 ! important"},'mjx-mtable[justify="right"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="right"][side="right"]':{"padding-left":"0 ! important"},"mjx-mtable[align]":{"vertical-align":"baseline"},'mjx-mtable[align="top"] > mjx-table':{"vertical-align":"top"},'mjx-mtable[align="bottom"] > mjx-table':{"vertical-align":"bottom"},'mjx-mtable[side="right"] mjx-labels':{"min-width":"100%"}},p);function p(t,e,r){t=o.call(this,t,e,r=void 0===r?null:r)||this;return t.itable=t.html("mjx-itable"),t.labels=t.html("mjx-itable"),t}e.CHTMLmtable=r},7056:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmtd=void 0,r(5355)),s=r(5164),r=r(4359),s=(o=(0,s.CommonMtdMixin)(a.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){o.prototype.toCHTML.call(this,t);var t=this.node.attributes.get("rowalign"),e=this.node.attributes.get("columnalign");t!==this.parent.node.attributes.get("rowalign")&&this.adaptor.setAttribute(this.chtml,"rowalign",t),"center"===e||"mlabeledtr"===this.parent.kind&&this===this.parent.childNodes[0]&&e===this.parent.parent.node.attributes.get("side")||this.adaptor.setStyle(this.chtml,"textAlign",e),this.parent.parent.node.getProperty("useHeight")&&this.adaptor.append(this.chtml,this.html("mjx-tstrut"))},l.kind=r.MmlMtd.prototype.kind,l.styles={"mjx-mtd":{display:"table-cell","text-align":"center",padding:".215em .4em"},"mjx-mtd:first-child":{"padding-left":0},"mjx-mtd:last-child":{"padding-right":0},"mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd":{"padding-top":0},"mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd":{"padding-bottom":0},"mjx-tstrut":{display:"inline-block",height:"1em","vertical-align":"-.25em"},'mjx-labels[align="left"] > mjx-mtr > mjx-mtd':{"text-align":"left"},'mjx-labels[align="right"] > mjx-mtr > mjx-mtd':{"text-align":"right"},"mjx-mtd[extra]":{padding:0},'mjx-mtd[rowalign="top"]':{"vertical-align":"top"},'mjx-mtd[rowalign="center"]':{"vertical-align":"middle"},'mjx-mtd[rowalign="bottom"]':{"vertical-align":"bottom"},'mjx-mtd[rowalign="baseline"]':{"vertical-align":"baseline"},'mjx-mtd[rowalign="axis"]':{"vertical-align":".25em"}},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmtd=s},1259:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmtext=void 0,r(5355)),s=r(6319),r=r(4770),s=(o=(0,s.CommonMtextMixin)(a.CHTMLWrapper),i(l,o),l.kind=r.MmlMtext.prototype.kind,l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmtext=s},3571:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmlabeledtr=e.CHTMLmtr=void 0,r(5355)),s=r(5766),l=r(5766),r=r(5022),c=(o=(0,s.CommonMtrMixin)(a.CHTMLWrapper),i(u,o),u.prototype.toCHTML=function(t){o.prototype.toCHTML.call(this,t);t=this.node.attributes.get("rowalign");"baseline"!==t&&this.adaptor.setAttribute(this.chtml,"rowalign",t)},u.kind=r.MmlMtr.prototype.kind,u.styles={"mjx-mtr":{display:"table-row"},'mjx-mtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}},u);function u(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLmtr=c;p=(0,l.CommonMlabeledtrMixin)(c),i(h,p),h.prototype.toCHTML=function(t){p.prototype.toCHTML.call(this,t);var e,t=this.adaptor.firstChild(this.chtml);t&&(this.adaptor.remove(t),e=this.node.attributes.get("rowalign"),e=this.html("mjx-mtr","baseline"!==e&&"axis"!==e?{rowalign:e}:{},[t]),this.adaptor.append(this.parent.labels,e))},h.prototype.markUsed=function(){p.prototype.markUsed.call(this),this.jax.wrapperUsage.add(c.kind)},h.kind=r.MmlMlabeledtr.prototype.kind,h.styles={"mjx-mlabeledtr":{display:"table-row"},'mjx-mlabeledtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mlabeledtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mlabeledtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mlabeledtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mlabeledtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}};var p,s=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.CHTMLmlabeledtr=s},6590:function(t,e,r){var n,a,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLmunderover=e.CHTMLmover=e.CHTMLmunder=void 0,r(4300)),s=r(1971),l=r(1971),c=r(1971),r=r(5184),s=(a=(0,s.CommonMunderMixin)(i.CHTMLmsub),o(u,a),u.prototype.toCHTML=function(t){if(this.hasMovableLimits())return a.prototype.toCHTML.call(this,t),void this.adaptor.setAttribute(this.chtml,"limits","false");this.chtml=this.standardCHTMLnode(t);var t=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-base")),e=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-under")),r=(this.baseChild.toCHTML(t),this.scriptChild.toCHTML(e),this.baseChild.getOuterBBox()),n=this.scriptChild.getOuterBBox(),o=this.getUnderKV(r,n)[0],i=this.isLineBelow?0:this.getDelta(!0);this.adaptor.setStyle(e,"paddingTop",this.em(o)),this.setDeltaW([t,e],this.getDeltaW([r,n],[0,-i])),this.adjustUnderDepth(e,n)},u.kind=r.MmlMunder.prototype.kind,u.styles={"mjx-over":{"text-align":"left"},'mjx-munder:not([limits="false"])':{display:"inline-table"},"mjx-munder > mjx-row":{"text-align":"left"},"mjx-under":{"padding-bottom":".1em"}},u);function u(){return null!==a&&a.apply(this,arguments)||this}e.CHTMLmunder=s;p=(0,l.CommonMoverMixin)(i.CHTMLmsup),o(h,p),h.prototype.toCHTML=function(t){if(this.hasMovableLimits())return p.prototype.toCHTML.call(this,t),void this.adaptor.setAttribute(this.chtml,"limits","false");this.chtml=this.standardCHTMLnode(t);var t=this.adaptor.append(this.chtml,this.html("mjx-over")),e=this.adaptor.append(this.chtml,this.html("mjx-base")),r=(this.scriptChild.toCHTML(t),this.baseChild.toCHTML(e),this.scriptChild.getOuterBBox()),n=this.baseChild.getOuterBBox(),o=(this.adjustBaseHeight(e,n),this.getOverKU(n,r)[0]),i=this.isLineAbove?0:this.getDelta();this.adaptor.setStyle(t,"paddingBottom",this.em(o)),this.setDeltaW([e,t],this.getDeltaW([n,r],[0,i])),this.adjustOverDepth(t,r)},h.kind=r.MmlMover.prototype.kind,h.styles={'mjx-mover:not([limits="false"])':{"padding-top":".1em"},'mjx-mover:not([limits="false"]) > *':{display:"block","text-align":"left"}};var p,s=h;function h(){return null!==p&&p.apply(this,arguments)||this}e.CHTMLmover=s;d=(0,c.CommonMunderoverMixin)(i.CHTMLmsubsup),o(f,d),f.prototype.toCHTML=function(t){if(this.hasMovableLimits())return d.prototype.toCHTML.call(this,t),void this.adaptor.setAttribute(this.chtml,"limits","false");this.chtml=this.standardCHTMLnode(t);var t=this.adaptor.append(this.chtml,this.html("mjx-over")),e=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-box")),this.html("mjx-munder")),r=this.adaptor.append(this.adaptor.append(e,this.html("mjx-row")),this.html("mjx-base")),e=this.adaptor.append(this.adaptor.append(e,this.html("mjx-row")),this.html("mjx-under")),n=(this.overChild.toCHTML(t),this.baseChild.toCHTML(r),this.underChild.toCHTML(e),this.overChild.getOuterBBox()),o=this.baseChild.getOuterBBox(),i=this.underChild.getOuterBBox(),a=(this.adjustBaseHeight(r,o),this.getOverKU(o,n)[0]),s=this.getUnderKV(o,i)[0],l=this.getDelta();this.adaptor.setStyle(t,"paddingBottom",this.em(a)),this.adaptor.setStyle(e,"paddingTop",this.em(s)),this.setDeltaW([r,e,t],this.getDeltaW([o,i,n],[0,this.isLineBelow?0:-l,this.isLineAbove?0:l])),this.adjustOverDepth(t,n),this.adjustUnderDepth(e,i)},f.prototype.markUsed=function(){d.prototype.markUsed.call(this),this.jax.wrapperUsage.add(i.CHTMLmsubsup.kind)},f.kind=r.MmlMunderover.prototype.kind,f.styles={'mjx-munderover:not([limits="false"])':{"padding-top":".1em"},'mjx-munderover:not([limits="false"]) > *':{display:"block"}};var d,l=f;function f(){return null!==d&&d.apply(this,arguments)||this}e.CHTMLmunderover=l},8650:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLscriptbase=void 0,r(5355)),r=(o=(0,r(167).CommonScriptbaseMixin)(s.CHTMLWrapper),i(l,o),l.prototype.toCHTML=function(t){this.chtml=this.standardCHTMLnode(t);var t=a(this.getOffset(),2),e=t[0],t=t[1],e=e-(this.baseRemoveIc?this.baseIc:0),t={"vertical-align":this.em(t)};e&&(t["margin-left"]=this.em(e)),this.baseChild.toCHTML(this.chtml),this.scriptChild.toCHTML(this.adaptor.append(this.chtml,this.html("mjx-script",{style:t})))},l.prototype.setDeltaW=function(t,e){for(var r=0;r<e.length;r++)e[r]&&this.adaptor.setStyle(t[r],"paddingLeft",this.em(e[r]))},l.prototype.adjustOverDepth=function(t,e){0<=e.d||this.adaptor.setStyle(t,"marginBottom",this.em(e.d*e.rscale))},l.prototype.adjustUnderDepth=function(t,e){var r,n;if(!(0<=e.d)){var o=this.adaptor,e=this.em(e.d),i=this.html("mjx-box",{style:{"margin-bottom":e,"vertical-align":e}});try{for(var a=c(o.childNodes(o.firstChild(t))),s=a.next();!s.done;s=a.next()){var l=s.value;o.append(i,l)}}catch(t){r={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}o.append(o.firstChild(t),i)}},l.prototype.adjustBaseHeight=function(t,e){var r;this.node.attributes.get("accent")&&(r=this.font.params.x_height*e.scale,e.h<r&&(this.adaptor.setStyle(t,"paddingTop",this.em(r-e.h)),e.h=r))},l.kind="scriptbase",l);function l(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLscriptbase=r},421:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CHTMLxml=e.CHTMLannotationXML=e.CHTMLannotation=e.CHTMLsemantics=void 0,r(5355)),s=r(5806),l=r(9102),r=r(9007),s=(o=(0,s.CommonSemanticsMixin)(a.CHTMLWrapper),i(c,o),c.prototype.toCHTML=function(t){t=this.standardCHTMLnode(t);this.childNodes.length&&this.childNodes[0].toCHTML(t)},c.kind=l.MmlSemantics.prototype.kind,c);function c(){return null!==o&&o.apply(this,arguments)||this}e.CHTMLsemantics=s;u=a.CHTMLWrapper,i(p,u),p.prototype.toCHTML=function(t){u.prototype.toCHTML.call(this,t)},p.prototype.computeBBox=function(){return this.bbox},p.kind=l.MmlAnnotation.prototype.kind;var u,s=p;function p(){return null!==u&&u.apply(this,arguments)||this}e.CHTMLannotation=s;h=a.CHTMLWrapper,i(d,h),d.kind=l.MmlAnnotationXML.prototype.kind,d.styles={"mjx-annotation-xml":{"font-family":"initial","line-height":"normal"}};var h,s=d;function d(){return null!==h&&h.apply(this,arguments)||this}e.CHTMLannotationXML=s;f=a.CHTMLWrapper,i(m,f),m.prototype.toCHTML=function(t){this.chtml=this.adaptor.append(t,this.adaptor.clone(this.node.getXML()))},m.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var e=this.jax.measureXMLnode(this.node.getXML()),r=e.w,n=e.h,e=e.d;t.w=r,t.h=n,t.d=e},m.prototype.getStyles=function(){},m.prototype.getScale=function(){},m.prototype.getVariant=function(){},m.kind=r.XMLNode.prototype.kind,m.autoStyle=!1;var f,l=m;function m(){return null!==f&&f.apply(this,arguments)||this}e.CHTMLxml=l},2760:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.TeXFont=void 0,r(8042)),l=r(5920),c=r(4005),u=r(1015),p=r(4515),h=r(6555),d=r(2183),f=r(3490),m=r(9056),y=r(3019),g=r(2713),b=r(7517),v=r(4182),_=r(2679),S=r(5469),x=r(7563),M=r(9409),O=r(775),E=r(9551),A=r(7907),C=r(9659),w=r(98),T=r(6275),N=r(6530),L=r(4409),P=r(5292),r=r(9124),l=(o=(0,l.CommonTeXFontMixin)(s.CHTMLFontData),i(I,o),I.defaultCssFamilyPrefix="MJXZERO",I.defaultVariantClasses={normal:"mjx-n",bold:"mjx-b",italic:"mjx-i","bold-italic":"mjx-b mjx-i","double-struck":"mjx-ds mjx-b",fraktur:"mjx-fr","bold-fraktur":"mjx-fr mjx-b",script:"mjx-sc mjx-i","bold-script":"mjx-sc mjx-b mjx-i","sans-serif":"mjx-ss","bold-sans-serif":"mjx-ss mjx-b","sans-serif-italic":"mjx-ss mjx-i","sans-serif-bold-italic":"mjx-ss mjx-b mjx-i",monospace:"mjx-ty","-smallop":"mjx-sop","-largeop":"mjx-lop","-size3":"mjx-s3","-size4":"mjx-s4","-tex-calligraphic":"mjx-cal mjx-i","-tex-bold-calligraphic":"mjx-cal mjx-b","-tex-mathit":"mjx-mit mjx-i","-tex-oldstyle":"mjx-os","-tex-bold-oldstyle":"mjx-os mjx-b","-tex-variant":"mjx-var"},I.defaultVariantLetters={normal:"",bold:"B",italic:"MI","bold-italic":"BI","double-struck":"A",fraktur:"FR","bold-fraktur":"FRB",script:"SC","bold-script":"SCB","sans-serif":"SS","bold-sans-serif":"SSB","sans-serif-italic":"SSI","sans-serif-bold-italic":"SSBI",monospace:"T","-smallop":"S1","-largeop":"S2","-size3":"S3","-size4":"S4","-tex-calligraphic":"C","-tex-bold-calligraphic":"CB","-tex-mathit":"MI","-tex-oldstyle":"C","-tex-bold-oldstyle":"CB","-tex-variant":"A"},I.defaultDelimiters=r.delimiters,I.defaultChars={normal:g.normal,bold:u.bold,italic:f.italic,"bold-italic":c.boldItalic,"double-struck":p.doubleStruck,fraktur:d.fraktur,"bold-fraktur":h.frakturBold,script:M.script,"bold-script":x.scriptBold,"sans-serif":S.sansSerif,"bold-sans-serif":v.sansSerifBold,"sans-serif-italic":_.sansSerifItalic,"sans-serif-bold-italic":b.sansSerifBoldItalic,monospace:y.monospace,"-smallop":O.smallop,"-largeop":m.largeop,"-size3":N.texSize3,"-size4":L.texSize4,"-tex-calligraphic":A.texCalligraphic,"-tex-bold-calligraphic":E.texCalligraphicBold,"-tex-mathit":C.texMathit,"-tex-oldstyle":T.texOldstyle,"-tex-bold-oldstyle":w.texOldstyleBold,"-tex-variant":P.texVariant},I.defaultStyles=a(a({},s.CHTMLFontData.defaultStyles),{".MJX-TEX":{"font-family":"MJXZERO, MJXTEX"},".TEX-B":{"font-family":"MJXZERO, MJXTEX-B"},".TEX-I":{"font-family":"MJXZERO, MJXTEX-I"},".TEX-MI":{"font-family":"MJXZERO, MJXTEX-MI"},".TEX-BI":{"font-family":"MJXZERO, MJXTEX-BI"},".TEX-S1":{"font-family":"MJXZERO, MJXTEX-S1"},".TEX-S2":{"font-family":"MJXZERO, MJXTEX-S2"},".TEX-S3":{"font-family":"MJXZERO, MJXTEX-S3"},".TEX-S4":{"font-family":"MJXZERO, MJXTEX-S4"},".TEX-A":{"font-family":"MJXZERO, MJXTEX-A"},".TEX-C":{"font-family":"MJXZERO, MJXTEX-C"},".TEX-CB":{"font-family":"MJXZERO, MJXTEX-CB"},".TEX-FR":{"font-family":"MJXZERO, MJXTEX-FR"},".TEX-FRB":{"font-family":"MJXZERO, MJXTEX-FRB"},".TEX-SS":{"font-family":"MJXZERO, MJXTEX-SS"},".TEX-SSB":{"font-family":"MJXZERO, MJXTEX-SSB"},".TEX-SSI":{"font-family":"MJXZERO, MJXTEX-SSI"},".TEX-SC":{"font-family":"MJXZERO, MJXTEX-SC"},".TEX-T":{"font-family":"MJXZERO, MJXTEX-T"},".TEX-V":{"font-family":"MJXZERO, MJXTEX-V"},".TEX-VB":{"font-family":"MJXZERO, MJXTEX-VB"},"mjx-stretchy-v mjx-c, mjx-stretchy-h mjx-c":{"font-family":"MJXZERO, MJXTEX-S1, MJXTEX-S4, MJXTEX, MJXTEX-A ! important"}}),I.defaultFonts=a(a({},s.CHTMLFontData.defaultFonts),{"@font-face /* 1 */":{"font-family":"MJXTEX",src:'url("%%URL%%/MathJax_Main-Regular.woff") format("woff")'},"@font-face /* 2 */":{"font-family":"MJXTEX-B",src:'url("%%URL%%/MathJax_Main-Bold.woff") format("woff")'},"@font-face /* 3 */":{"font-family":"MJXTEX-I",src:'url("%%URL%%/MathJax_Math-Italic.woff") format("woff")'},"@font-face /* 4 */":{"font-family":"MJXTEX-MI",src:'url("%%URL%%/MathJax_Main-Italic.woff") format("woff")'},"@font-face /* 5 */":{"font-family":"MJXTEX-BI",src:'url("%%URL%%/MathJax_Math-BoldItalic.woff") format("woff")'},"@font-face /* 6 */":{"font-family":"MJXTEX-S1",src:'url("%%URL%%/MathJax_Size1-Regular.woff") format("woff")'},"@font-face /* 7 */":{"font-family":"MJXTEX-S2",src:'url("%%URL%%/MathJax_Size2-Regular.woff") format("woff")'},"@font-face /* 8 */":{"font-family":"MJXTEX-S3",src:'url("%%URL%%/MathJax_Size3-Regular.woff") format("woff")'},"@font-face /* 9 */":{"font-family":"MJXTEX-S4",src:'url("%%URL%%/MathJax_Size4-Regular.woff") format("woff")'},"@font-face /* 10 */":{"font-family":"MJXTEX-A",src:'url("%%URL%%/MathJax_AMS-Regular.woff") format("woff")'},"@font-face /* 11 */":{"font-family":"MJXTEX-C",src:'url("%%URL%%/MathJax_Calligraphic-Regular.woff") format("woff")'},"@font-face /* 12 */":{"font-family":"MJXTEX-CB",src:'url("%%URL%%/MathJax_Calligraphic-Bold.woff") format("woff")'},"@font-face /* 13 */":{"font-family":"MJXTEX-FR",src:'url("%%URL%%/MathJax_Fraktur-Regular.woff") format("woff")'},"@font-face /* 14 */":{"font-family":"MJXTEX-FRB",src:'url("%%URL%%/MathJax_Fraktur-Bold.woff") format("woff")'},"@font-face /* 15 */":{"font-family":"MJXTEX-SS",src:'url("%%URL%%/MathJax_SansSerif-Regular.woff") format("woff")'},"@font-face /* 16 */":{"font-family":"MJXTEX-SSB",src:'url("%%URL%%/MathJax_SansSerif-Bold.woff") format("woff")'},"@font-face /* 17 */":{"font-family":"MJXTEX-SSI",src:'url("%%URL%%/MathJax_SansSerif-Italic.woff") format("woff")'},"@font-face /* 18 */":{"font-family":"MJXTEX-SC",src:'url("%%URL%%/MathJax_Script-Regular.woff") format("woff")'},"@font-face /* 19 */":{"font-family":"MJXTEX-T",src:'url("%%URL%%/MathJax_Typewriter-Regular.woff") format("woff")'},"@font-face /* 20 */":{"font-family":"MJXTEX-V",src:'url("%%URL%%/MathJax_Vector-Regular.woff") format("woff")'},"@font-face /* 21 */":{"font-family":"MJXTEX-VB",src:'url("%%URL%%/MathJax_Vector-Bold.woff") format("woff")'}}),I);function I(){return null!==o&&o.apply(this,arguments)||this}e.TeXFont=l},4005:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.boldItalic=void 0;var n=r(8042),r=r(5887);e.boldItalic=(0,n.AddCSS)(r.boldItalic,{305:{f:"B"},567:{f:"B"},8260:{c:"/"},8710:{c:"\\394"},10744:{c:"/"}})},1015:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.bold=void 0;var n=r(8042),r=r(1103);e.bold=(0,n.AddCSS)(r.bold,{183:{c:"\\22C5"},305:{f:""},567:{f:""},697:{c:"\\2032"},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8407:{c:"\\2192",f:"VB"},8602:{c:"\\2190\\338"},8603:{c:"\\2192\\338"},8622:{c:"\\2194\\338"},8653:{c:"\\21D0\\338"},8654:{c:"\\21D4\\338"},8655:{c:"\\21D2\\338"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8740:{c:"\\2223\\338"},8742:{c:"\\2225\\338"},8769:{c:"\\223C\\338"},8772:{c:"\\2243\\338"},8775:{c:"\\2245\\338"},8777:{c:"\\2248\\338"},8802:{c:"\\2261\\338"},8813:{c:"\\224D\\338"},8814:{c:"<\\338"},8815:{c:">\\338"},8816:{c:"\\2264\\338"},8817:{c:"\\2265\\338"},8832:{c:"\\227A\\338"},8833:{c:"\\227B\\338"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{c:"\\2286\\338"},8841:{c:"\\2287\\338"},8876:{c:"\\22A2\\338"},8877:{c:"\\22A8\\338"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9653:{c:"\\25B3"},9663:{c:"\\25BD"},10072:{c:"\\2223"},10744:{c:"/",f:"BI"},10799:{c:"\\D7"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},4515:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.doubleStruck=void 0;var n=r(6001);Object.defineProperty(e,"doubleStruck",{enumerable:!0,get:function(){return n.doubleStruck}})},6555:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.frakturBold=void 0;var n=r(8042),r=r(3696);e.frakturBold=(0,n.AddCSS)(r.frakturBold,{8260:{c:"/"}})},2183:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.fraktur=void 0;var n=r(8042),r=r(9587);e.fraktur=(0,n.AddCSS)(r.fraktur,{8260:{c:"/"}})},3490:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.italic=void 0;var n=r(8042),r=r(8348);e.italic=(0,n.AddCSS)(r.italic,{47:{f:"I"},989:{c:"\\E008",f:"A"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/",f:"I"},8710:{c:"\\394",f:"I"},10744:{c:"/",f:"I"}})},9056:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.largeop=void 0;var n=r(8042),r=r(1376);e.largeop=(0,n.AddCSS)(r.largeop,{8214:{f:"S1"},8260:{c:"/"},8593:{f:"S1"},8595:{f:"S1"},8657:{f:"S1"},8659:{f:"S1"},8739:{f:"S1"},8741:{f:"S1"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},10072:{c:"\\2223",f:"S1"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},3019:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.monospace=void 0;var n=r(8042),r=r(1439);e.monospace=(0,n.AddCSS)(r.monospace,{697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8215:{c:"_"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8710:{c:"\\394"}})},2713:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.normal=void 0;var n=r(8042),r=r(331);e.normal=(0,n.AddCSS)(r.normal,{163:{f:"MI"},165:{f:"A"},174:{f:"A"},183:{c:"\\22C5"},240:{f:"A"},697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8192:{c:""},8193:{c:""},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8203:{c:""},8204:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8245:{f:"A"},8246:{c:"\\2035\\2035",f:"A"},8247:{c:"\\2035\\2035\\2035",f:"A"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8288:{c:""},8289:{c:""},8290:{c:""},8291:{c:""},8292:{c:""},8407:{c:"\\2192",f:"V"},8450:{c:"C",f:"A"},8459:{c:"H",f:"SC"},8460:{c:"H",f:"FR"},8461:{c:"H",f:"A"},8462:{c:"h",f:"I"},8463:{f:"A"},8464:{c:"I",f:"SC"},8465:{c:"I",f:"FR"},8466:{c:"L",f:"SC"},8469:{c:"N",f:"A"},8473:{c:"P",f:"A"},8474:{c:"Q",f:"A"},8475:{c:"R",f:"SC"},8476:{c:"R",f:"FR"},8477:{c:"R",f:"A"},8484:{c:"Z",f:"A"},8486:{c:"\\3A9"},8487:{f:"A"},8488:{c:"Z",f:"FR"},8492:{c:"B",f:"SC"},8493:{c:"C",f:"FR"},8496:{c:"E",f:"SC"},8497:{c:"F",f:"SC"},8498:{f:"A"},8499:{c:"M",f:"SC"},8502:{f:"A"},8503:{f:"A"},8504:{f:"A"},8513:{f:"A"},8602:{f:"A"},8603:{f:"A"},8606:{f:"A"},8608:{f:"A"},8610:{f:"A"},8611:{f:"A"},8619:{f:"A"},8620:{f:"A"},8621:{f:"A"},8622:{f:"A"},8624:{f:"A"},8625:{f:"A"},8630:{f:"A"},8631:{f:"A"},8634:{f:"A"},8635:{f:"A"},8638:{f:"A"},8639:{f:"A"},8642:{f:"A"},8643:{f:"A"},8644:{f:"A"},8646:{f:"A"},8647:{f:"A"},8648:{f:"A"},8649:{f:"A"},8650:{f:"A"},8651:{f:"A"},8653:{f:"A"},8654:{f:"A"},8655:{f:"A"},8666:{f:"A"},8667:{f:"A"},8669:{f:"A"},8672:{f:"A"},8674:{f:"A"},8705:{f:"A"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8717:{f:"A"},8719:{f:"S1"},8720:{f:"S1"},8721:{f:"S1"},8724:{f:"A"},8737:{f:"A"},8738:{f:"A"},8740:{f:"A"},8742:{f:"A"},8748:{f:"S1"},8749:{f:"S1"},8750:{f:"S1"},8756:{f:"A"},8757:{f:"A"},8765:{f:"A"},8769:{f:"A"},8770:{f:"A"},8772:{c:"\\2243\\338"},8775:{c:"\\2246",f:"A"},8777:{c:"\\2248\\338"},8778:{f:"A"},8782:{f:"A"},8783:{f:"A"},8785:{f:"A"},8786:{f:"A"},8787:{f:"A"},8790:{f:"A"},8791:{f:"A"},8796:{f:"A"},8802:{c:"\\2261\\338"},8806:{f:"A"},8807:{f:"A"},8808:{f:"A"},8809:{f:"A"},8812:{f:"A"},8813:{c:"\\224D\\338"},8814:{f:"A"},8815:{f:"A"},8816:{f:"A"},8817:{f:"A"},8818:{f:"A"},8819:{f:"A"},8820:{c:"\\2272\\338"},8821:{c:"\\2273\\338"},8822:{f:"A"},8823:{f:"A"},8824:{c:"\\2276\\338"},8825:{c:"\\2277\\338"},8828:{f:"A"},8829:{f:"A"},8830:{f:"A"},8831:{f:"A"},8832:{f:"A"},8833:{f:"A"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{f:"A"},8841:{f:"A"},8842:{f:"A"},8843:{f:"A"},8847:{f:"A"},8848:{f:"A"},8858:{f:"A"},8859:{f:"A"},8861:{f:"A"},8862:{f:"A"},8863:{f:"A"},8864:{f:"A"},8865:{f:"A"},8873:{f:"A"},8874:{f:"A"},8876:{f:"A"},8877:{f:"A"},8878:{f:"A"},8879:{f:"A"},8882:{f:"A"},8883:{f:"A"},8884:{f:"A"},8885:{f:"A"},8888:{f:"A"},8890:{f:"A"},8891:{f:"A"},8892:{f:"A"},8896:{f:"S1"},8897:{f:"S1"},8898:{f:"S1"},8899:{f:"S1"},8903:{f:"A"},8905:{f:"A"},8906:{f:"A"},8907:{f:"A"},8908:{f:"A"},8909:{f:"A"},8910:{f:"A"},8911:{f:"A"},8912:{f:"A"},8913:{f:"A"},8914:{f:"A"},8915:{f:"A"},8916:{f:"A"},8918:{f:"A"},8919:{f:"A"},8920:{f:"A"},8921:{f:"A"},8922:{f:"A"},8923:{f:"A"},8926:{f:"A"},8927:{f:"A"},8928:{f:"A"},8929:{f:"A"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},8934:{f:"A"},8935:{f:"A"},8936:{f:"A"},8937:{f:"A"},8938:{f:"A"},8939:{f:"A"},8940:{f:"A"},8941:{f:"A"},8965:{c:"\\22BC",f:"A"},8966:{c:"\\2A5E",f:"A"},8988:{c:"\\250C",f:"A"},8989:{c:"\\2510",f:"A"},8990:{c:"\\2514",f:"A"},8991:{c:"\\2518",f:"A"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},9416:{f:"A"},9484:{f:"A"},9488:{f:"A"},9492:{f:"A"},9496:{f:"A"},9585:{f:"A"},9586:{f:"A"},9632:{f:"A"},9633:{f:"A"},9642:{c:"\\25A0",f:"A"},9650:{f:"A"},9652:{c:"\\25B2",f:"A"},9653:{c:"\\25B3"},9654:{f:"A"},9656:{c:"\\25B6",f:"A"},9660:{f:"A"},9662:{c:"\\25BC",f:"A"},9663:{c:"\\25BD"},9664:{f:"A"},9666:{c:"\\25C0",f:"A"},9674:{f:"A"},9723:{c:"\\25A1",f:"A"},9724:{c:"\\25A0",f:"A"},9733:{f:"A"},10003:{f:"A"},10016:{f:"A"},10072:{c:"\\2223"},10731:{f:"A"},10744:{c:"/",f:"I"},10752:{f:"S1"},10753:{f:"S1"},10754:{f:"S1"},10756:{f:"S1"},10758:{f:"S1"},10764:{c:"\\222C\\222C",f:"S1"},10799:{c:"\\D7"},10846:{f:"A"},10877:{f:"A"},10878:{f:"A"},10885:{f:"A"},10886:{f:"A"},10887:{f:"A"},10888:{f:"A"},10889:{f:"A"},10890:{f:"A"},10891:{f:"A"},10892:{f:"A"},10901:{f:"A"},10902:{f:"A"},10933:{f:"A"},10934:{f:"A"},10935:{f:"A"},10936:{f:"A"},10937:{f:"A"},10938:{f:"A"},10949:{f:"A"},10950:{f:"A"},10955:{f:"A"},10956:{f:"A"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57350:{f:"A"},57351:{f:"A"},57352:{f:"A"},57353:{f:"A"},57356:{f:"A"},57357:{f:"A"},57358:{f:"A"},57359:{f:"A"},57360:{f:"A"},57361:{f:"A"},57366:{f:"A"},57367:{f:"A"},57368:{f:"A"},57369:{f:"A"},57370:{f:"A"},57371:{f:"A"},119808:{c:"A",f:"B"},119809:{c:"B",f:"B"},119810:{c:"C",f:"B"},119811:{c:"D",f:"B"},119812:{c:"E",f:"B"},119813:{c:"F",f:"B"},119814:{c:"G",f:"B"},119815:{c:"H",f:"B"},119816:{c:"I",f:"B"},119817:{c:"J",f:"B"},119818:{c:"K",f:"B"},119819:{c:"L",f:"B"},119820:{c:"M",f:"B"},119821:{c:"N",f:"B"},119822:{c:"O",f:"B"},119823:{c:"P",f:"B"},119824:{c:"Q",f:"B"},119825:{c:"R",f:"B"},119826:{c:"S",f:"B"},119827:{c:"T",f:"B"},119828:{c:"U",f:"B"},119829:{c:"V",f:"B"},119830:{c:"W",f:"B"},119831:{c:"X",f:"B"},119832:{c:"Y",f:"B"},119833:{c:"Z",f:"B"},119834:{c:"a",f:"B"},119835:{c:"b",f:"B"},119836:{c:"c",f:"B"},119837:{c:"d",f:"B"},119838:{c:"e",f:"B"},119839:{c:"f",f:"B"},119840:{c:"g",f:"B"},119841:{c:"h",f:"B"},119842:{c:"i",f:"B"},119843:{c:"j",f:"B"},119844:{c:"k",f:"B"},119845:{c:"l",f:"B"},119846:{c:"m",f:"B"},119847:{c:"n",f:"B"},119848:{c:"o",f:"B"},119849:{c:"p",f:"B"},119850:{c:"q",f:"B"},119851:{c:"r",f:"B"},119852:{c:"s",f:"B"},119853:{c:"t",f:"B"},119854:{c:"u",f:"B"},119855:{c:"v",f:"B"},119856:{c:"w",f:"B"},119857:{c:"x",f:"B"},119858:{c:"y",f:"B"},119859:{c:"z",f:"B"},119860:{c:"A",f:"I"},119861:{c:"B",f:"I"},119862:{c:"C",f:"I"},119863:{c:"D",f:"I"},119864:{c:"E",f:"I"},119865:{c:"F",f:"I"},119866:{c:"G",f:"I"},119867:{c:"H",f:"I"},119868:{c:"I",f:"I"},119869:{c:"J",f:"I"},119870:{c:"K",f:"I"},119871:{c:"L",f:"I"},119872:{c:"M",f:"I"},119873:{c:"N",f:"I"},119874:{c:"O",f:"I"},119875:{c:"P",f:"I"},119876:{c:"Q",f:"I"},119877:{c:"R",f:"I"},119878:{c:"S",f:"I"},119879:{c:"T",f:"I"},119880:{c:"U",f:"I"},119881:{c:"V",f:"I"},119882:{c:"W",f:"I"},119883:{c:"X",f:"I"},119884:{c:"Y",f:"I"},119885:{c:"Z",f:"I"},119886:{c:"a",f:"I"},119887:{c:"b",f:"I"},119888:{c:"c",f:"I"},119889:{c:"d",f:"I"},119890:{c:"e",f:"I"},119891:{c:"f",f:"I"},119892:{c:"g",f:"I"},119894:{c:"i",f:"I"},119895:{c:"j",f:"I"},119896:{c:"k",f:"I"},119897:{c:"l",f:"I"},119898:{c:"m",f:"I"},119899:{c:"n",f:"I"},119900:{c:"o",f:"I"},119901:{c:"p",f:"I"},119902:{c:"q",f:"I"},119903:{c:"r",f:"I"},119904:{c:"s",f:"I"},119905:{c:"t",f:"I"},119906:{c:"u",f:"I"},119907:{c:"v",f:"I"},119908:{c:"w",f:"I"},119909:{c:"x",f:"I"},119910:{c:"y",f:"I"},119911:{c:"z",f:"I"},119912:{c:"A",f:"BI"},119913:{c:"B",f:"BI"},119914:{c:"C",f:"BI"},119915:{c:"D",f:"BI"},119916:{c:"E",f:"BI"},119917:{c:"F",f:"BI"},119918:{c:"G",f:"BI"},119919:{c:"H",f:"BI"},119920:{c:"I",f:"BI"},119921:{c:"J",f:"BI"},119922:{c:"K",f:"BI"},119923:{c:"L",f:"BI"},119924:{c:"M",f:"BI"},119925:{c:"N",f:"BI"},119926:{c:"O",f:"BI"},119927:{c:"P",f:"BI"},119928:{c:"Q",f:"BI"},119929:{c:"R",f:"BI"},119930:{c:"S",f:"BI"},119931:{c:"T",f:"BI"},119932:{c:"U",f:"BI"},119933:{c:"V",f:"BI"},119934:{c:"W",f:"BI"},119935:{c:"X",f:"BI"},119936:{c:"Y",f:"BI"},119937:{c:"Z",f:"BI"},119938:{c:"a",f:"BI"},119939:{c:"b",f:"BI"},119940:{c:"c",f:"BI"},119941:{c:"d",f:"BI"},119942:{c:"e",f:"BI"},119943:{c:"f",f:"BI"},119944:{c:"g",f:"BI"},119945:{c:"h",f:"BI"},119946:{c:"i",f:"BI"},119947:{c:"j",f:"BI"},119948:{c:"k",f:"BI"},119949:{c:"l",f:"BI"},119950:{c:"m",f:"BI"},119951:{c:"n",f:"BI"},119952:{c:"o",f:"BI"},119953:{c:"p",f:"BI"},119954:{c:"q",f:"BI"},119955:{c:"r",f:"BI"},119956:{c:"s",f:"BI"},119957:{c:"t",f:"BI"},119958:{c:"u",f:"BI"},119959:{c:"v",f:"BI"},119960:{c:"w",f:"BI"},119961:{c:"x",f:"BI"},119962:{c:"y",f:"BI"},119963:{c:"z",f:"BI"},119964:{c:"A",f:"SC"},119966:{c:"C",f:"SC"},119967:{c:"D",f:"SC"},119970:{c:"G",f:"SC"},119973:{c:"J",f:"SC"},119974:{c:"K",f:"SC"},119977:{c:"N",f:"SC"},119978:{c:"O",f:"SC"},119979:{c:"P",f:"SC"},119980:{c:"Q",f:"SC"},119982:{c:"S",f:"SC"},119983:{c:"T",f:"SC"},119984:{c:"U",f:"SC"},119985:{c:"V",f:"SC"},119986:{c:"W",f:"SC"},119987:{c:"X",f:"SC"},119988:{c:"Y",f:"SC"},119989:{c:"Z",f:"SC"},120068:{c:"A",f:"FR"},120069:{c:"B",f:"FR"},120071:{c:"D",f:"FR"},120072:{c:"E",f:"FR"},120073:{c:"F",f:"FR"},120074:{c:"G",f:"FR"},120077:{c:"J",f:"FR"},120078:{c:"K",f:"FR"},120079:{c:"L",f:"FR"},120080:{c:"M",f:"FR"},120081:{c:"N",f:"FR"},120082:{c:"O",f:"FR"},120083:{c:"P",f:"FR"},120084:{c:"Q",f:"FR"},120086:{c:"S",f:"FR"},120087:{c:"T",f:"FR"},120088:{c:"U",f:"FR"},120089:{c:"V",f:"FR"},120090:{c:"W",f:"FR"},120091:{c:"X",f:"FR"},120092:{c:"Y",f:"FR"},120094:{c:"a",f:"FR"},120095:{c:"b",f:"FR"},120096:{c:"c",f:"FR"},120097:{c:"d",f:"FR"},120098:{c:"e",f:"FR"},120099:{c:"f",f:"FR"},120100:{c:"g",f:"FR"},120101:{c:"h",f:"FR"},120102:{c:"i",f:"FR"},120103:{c:"j",f:"FR"},120104:{c:"k",f:"FR"},120105:{c:"l",f:"FR"},120106:{c:"m",f:"FR"},120107:{c:"n",f:"FR"},120108:{c:"o",f:"FR"},120109:{c:"p",f:"FR"},120110:{c:"q",f:"FR"},120111:{c:"r",f:"FR"},120112:{c:"s",f:"FR"},120113:{c:"t",f:"FR"},120114:{c:"u",f:"FR"},120115:{c:"v",f:"FR"},120116:{c:"w",f:"FR"},120117:{c:"x",f:"FR"},120118:{c:"y",f:"FR"},120119:{c:"z",f:"FR"},120120:{c:"A",f:"A"},120121:{c:"B",f:"A"},120123:{c:"D",f:"A"},120124:{c:"E",f:"A"},120125:{c:"F",f:"A"},120126:{c:"G",f:"A"},120128:{c:"I",f:"A"},120129:{c:"J",f:"A"},120130:{c:"K",f:"A"},120131:{c:"L",f:"A"},120132:{c:"M",f:"A"},120134:{c:"O",f:"A"},120138:{c:"S",f:"A"},120139:{c:"T",f:"A"},120140:{c:"U",f:"A"},120141:{c:"V",f:"A"},120142:{c:"W",f:"A"},120143:{c:"X",f:"A"},120144:{c:"Y",f:"A"},120172:{c:"A",f:"FRB"},120173:{c:"B",f:"FRB"},120174:{c:"C",f:"FRB"},120175:{c:"D",f:"FRB"},120176:{c:"E",f:"FRB"},120177:{c:"F",f:"FRB"},120178:{c:"G",f:"FRB"},120179:{c:"H",f:"FRB"},120180:{c:"I",f:"FRB"},120181:{c:"J",f:"FRB"},120182:{c:"K",f:"FRB"},120183:{c:"L",f:"FRB"},120184:{c:"M",f:"FRB"},120185:{c:"N",f:"FRB"},120186:{c:"O",f:"FRB"},120187:{c:"P",f:"FRB"},120188:{c:"Q",f:"FRB"},120189:{c:"R",f:"FRB"},120190:{c:"S",f:"FRB"},120191:{c:"T",f:"FRB"},120192:{c:"U",f:"FRB"},120193:{c:"V",f:"FRB"},120194:{c:"W",f:"FRB"},120195:{c:"X",f:"FRB"},120196:{c:"Y",f:"FRB"},120197:{c:"Z",f:"FRB"},120198:{c:"a",f:"FRB"},120199:{c:"b",f:"FRB"},120200:{c:"c",f:"FRB"},120201:{c:"d",f:"FRB"},120202:{c:"e",f:"FRB"},120203:{c:"f",f:"FRB"},120204:{c:"g",f:"FRB"},120205:{c:"h",f:"FRB"},120206:{c:"i",f:"FRB"},120207:{c:"j",f:"FRB"},120208:{c:"k",f:"FRB"},120209:{c:"l",f:"FRB"},120210:{c:"m",f:"FRB"},120211:{c:"n",f:"FRB"},120212:{c:"o",f:"FRB"},120213:{c:"p",f:"FRB"},120214:{c:"q",f:"FRB"},120215:{c:"r",f:"FRB"},120216:{c:"s",f:"FRB"},120217:{c:"t",f:"FRB"},120218:{c:"u",f:"FRB"},120219:{c:"v",f:"FRB"},120220:{c:"w",f:"FRB"},120221:{c:"x",f:"FRB"},120222:{c:"y",f:"FRB"},120223:{c:"z",f:"FRB"},120224:{c:"A",f:"SS"},120225:{c:"B",f:"SS"},120226:{c:"C",f:"SS"},120227:{c:"D",f:"SS"},120228:{c:"E",f:"SS"},120229:{c:"F",f:"SS"},120230:{c:"G",f:"SS"},120231:{c:"H",f:"SS"},120232:{c:"I",f:"SS"},120233:{c:"J",f:"SS"},120234:{c:"K",f:"SS"},120235:{c:"L",f:"SS"},120236:{c:"M",f:"SS"},120237:{c:"N",f:"SS"},120238:{c:"O",f:"SS"},120239:{c:"P",f:"SS"},120240:{c:"Q",f:"SS"},120241:{c:"R",f:"SS"},120242:{c:"S",f:"SS"},120243:{c:"T",f:"SS"},120244:{c:"U",f:"SS"},120245:{c:"V",f:"SS"},120246:{c:"W",f:"SS"},120247:{c:"X",f:"SS"},120248:{c:"Y",f:"SS"},120249:{c:"Z",f:"SS"},120250:{c:"a",f:"SS"},120251:{c:"b",f:"SS"},120252:{c:"c",f:"SS"},120253:{c:"d",f:"SS"},120254:{c:"e",f:"SS"},120255:{c:"f",f:"SS"},120256:{c:"g",f:"SS"},120257:{c:"h",f:"SS"},120258:{c:"i",f:"SS"},120259:{c:"j",f:"SS"},120260:{c:"k",f:"SS"},120261:{c:"l",f:"SS"},120262:{c:"m",f:"SS"},120263:{c:"n",f:"SS"},120264:{c:"o",f:"SS"},120265:{c:"p",f:"SS"},120266:{c:"q",f:"SS"},120267:{c:"r",f:"SS"},120268:{c:"s",f:"SS"},120269:{c:"t",f:"SS"},120270:{c:"u",f:"SS"},120271:{c:"v",f:"SS"},120272:{c:"w",f:"SS"},120273:{c:"x",f:"SS"},120274:{c:"y",f:"SS"},120275:{c:"z",f:"SS"},120276:{c:"A",f:"SSB"},120277:{c:"B",f:"SSB"},120278:{c:"C",f:"SSB"},120279:{c:"D",f:"SSB"},120280:{c:"E",f:"SSB"},120281:{c:"F",f:"SSB"},120282:{c:"G",f:"SSB"},120283:{c:"H",f:"SSB"},120284:{c:"I",f:"SSB"},120285:{c:"J",f:"SSB"},120286:{c:"K",f:"SSB"},120287:{c:"L",f:"SSB"},120288:{c:"M",f:"SSB"},120289:{c:"N",f:"SSB"},120290:{c:"O",f:"SSB"},120291:{c:"P",f:"SSB"},120292:{c:"Q",f:"SSB"},120293:{c:"R",f:"SSB"},120294:{c:"S",f:"SSB"},120295:{c:"T",f:"SSB"},120296:{c:"U",f:"SSB"},120297:{c:"V",f:"SSB"},120298:{c:"W",f:"SSB"},120299:{c:"X",f:"SSB"},120300:{c:"Y",f:"SSB"},120301:{c:"Z",f:"SSB"},120302:{c:"a",f:"SSB"},120303:{c:"b",f:"SSB"},120304:{c:"c",f:"SSB"},120305:{c:"d",f:"SSB"},120306:{c:"e",f:"SSB"},120307:{c:"f",f:"SSB"},120308:{c:"g",f:"SSB"},120309:{c:"h",f:"SSB"},120310:{c:"i",f:"SSB"},120311:{c:"j",f:"SSB"},120312:{c:"k",f:"SSB"},120313:{c:"l",f:"SSB"},120314:{c:"m",f:"SSB"},120315:{c:"n",f:"SSB"},120316:{c:"o",f:"SSB"},120317:{c:"p",f:"SSB"},120318:{c:"q",f:"SSB"},120319:{c:"r",f:"SSB"},120320:{c:"s",f:"SSB"},120321:{c:"t",f:"SSB"},120322:{c:"u",f:"SSB"},120323:{c:"v",f:"SSB"},120324:{c:"w",f:"SSB"},120325:{c:"x",f:"SSB"},120326:{c:"y",f:"SSB"},120327:{c:"z",f:"SSB"},120328:{c:"A",f:"SSI"},120329:{c:"B",f:"SSI"},120330:{c:"C",f:"SSI"},120331:{c:"D",f:"SSI"},120332:{c:"E",f:"SSI"},120333:{c:"F",f:"SSI"},120334:{c:"G",f:"SSI"},120335:{c:"H",f:"SSI"},120336:{c:"I",f:"SSI"},120337:{c:"J",f:"SSI"},120338:{c:"K",f:"SSI"},120339:{c:"L",f:"SSI"},120340:{c:"M",f:"SSI"},120341:{c:"N",f:"SSI"},120342:{c:"O",f:"SSI"},120343:{c:"P",f:"SSI"},120344:{c:"Q",f:"SSI"},120345:{c:"R",f:"SSI"},120346:{c:"S",f:"SSI"},120347:{c:"T",f:"SSI"},120348:{c:"U",f:"SSI"},120349:{c:"V",f:"SSI"},120350:{c:"W",f:"SSI"},120351:{c:"X",f:"SSI"},120352:{c:"Y",f:"SSI"},120353:{c:"Z",f:"SSI"},120354:{c:"a",f:"SSI"},120355:{c:"b",f:"SSI"},120356:{c:"c",f:"SSI"},120357:{c:"d",f:"SSI"},120358:{c:"e",f:"SSI"},120359:{c:"f",f:"SSI"},120360:{c:"g",f:"SSI"},120361:{c:"h",f:"SSI"},120362:{c:"i",f:"SSI"},120363:{c:"j",f:"SSI"},120364:{c:"k",f:"SSI"},120365:{c:"l",f:"SSI"},120366:{c:"m",f:"SSI"},120367:{c:"n",f:"SSI"},120368:{c:"o",f:"SSI"},120369:{c:"p",f:"SSI"},120370:{c:"q",f:"SSI"},120371:{c:"r",f:"SSI"},120372:{c:"s",f:"SSI"},120373:{c:"t",f:"SSI"},120374:{c:"u",f:"SSI"},120375:{c:"v",f:"SSI"},120376:{c:"w",f:"SSI"},120377:{c:"x",f:"SSI"},120378:{c:"y",f:"SSI"},120379:{c:"z",f:"SSI"},120432:{c:"A",f:"T"},120433:{c:"B",f:"T"},120434:{c:"C",f:"T"},120435:{c:"D",f:"T"},120436:{c:"E",f:"T"},120437:{c:"F",f:"T"},120438:{c:"G",f:"T"},120439:{c:"H",f:"T"},120440:{c:"I",f:"T"},120441:{c:"J",f:"T"},120442:{c:"K",f:"T"},120443:{c:"L",f:"T"},120444:{c:"M",f:"T"},120445:{c:"N",f:"T"},120446:{c:"O",f:"T"},120447:{c:"P",f:"T"},120448:{c:"Q",f:"T"},120449:{c:"R",f:"T"},120450:{c:"S",f:"T"},120451:{c:"T",f:"T"},120452:{c:"U",f:"T"},120453:{c:"V",f:"T"},120454:{c:"W",f:"T"},120455:{c:"X",f:"T"},120456:{c:"Y",f:"T"},120457:{c:"Z",f:"T"},120458:{c:"a",f:"T"},120459:{c:"b",f:"T"},120460:{c:"c",f:"T"},120461:{c:"d",f:"T"},120462:{c:"e",f:"T"},120463:{c:"f",f:"T"},120464:{c:"g",f:"T"},120465:{c:"h",f:"T"},120466:{c:"i",f:"T"},120467:{c:"j",f:"T"},120468:{c:"k",f:"T"},120469:{c:"l",f:"T"},120470:{c:"m",f:"T"},120471:{c:"n",f:"T"},120472:{c:"o",f:"T"},120473:{c:"p",f:"T"},120474:{c:"q",f:"T"},120475:{c:"r",f:"T"},120476:{c:"s",f:"T"},120477:{c:"t",f:"T"},120478:{c:"u",f:"T"},120479:{c:"v",f:"T"},120480:{c:"w",f:"T"},120481:{c:"x",f:"T"},120482:{c:"y",f:"T"},120483:{c:"z",f:"T"},120488:{c:"A",f:"B"},120489:{c:"B",f:"B"},120490:{c:"\\393",f:"B"},120491:{c:"\\394",f:"B"},120492:{c:"E",f:"B"},120493:{c:"Z",f:"B"},120494:{c:"H",f:"B"},120495:{c:"\\398",f:"B"},120496:{c:"I",f:"B"},120497:{c:"K",f:"B"},120498:{c:"\\39B",f:"B"},120499:{c:"M",f:"B"},120500:{c:"N",f:"B"},120501:{c:"\\39E",f:"B"},120502:{c:"O",f:"B"},120503:{c:"\\3A0",f:"B"},120504:{c:"P",f:"B"},120506:{c:"\\3A3",f:"B"},120507:{c:"T",f:"B"},120508:{c:"\\3A5",f:"B"},120509:{c:"\\3A6",f:"B"},120510:{c:"X",f:"B"},120511:{c:"\\3A8",f:"B"},120512:{c:"\\3A9",f:"B"},120513:{c:"\\2207",f:"B"},120546:{c:"A",f:"I"},120547:{c:"B",f:"I"},120548:{c:"\\393",f:"I"},120549:{c:"\\394",f:"I"},120550:{c:"E",f:"I"},120551:{c:"Z",f:"I"},120552:{c:"H",f:"I"},120553:{c:"\\398",f:"I"},120554:{c:"I",f:"I"},120555:{c:"K",f:"I"},120556:{c:"\\39B",f:"I"},120557:{c:"M",f:"I"},120558:{c:"N",f:"I"},120559:{c:"\\39E",f:"I"},120560:{c:"O",f:"I"},120561:{c:"\\3A0",f:"I"},120562:{c:"P",f:"I"},120564:{c:"\\3A3",f:"I"},120565:{c:"T",f:"I"},120566:{c:"\\3A5",f:"I"},120567:{c:"\\3A6",f:"I"},120568:{c:"X",f:"I"},120569:{c:"\\3A8",f:"I"},120570:{c:"\\3A9",f:"I"},120572:{c:"\\3B1",f:"I"},120573:{c:"\\3B2",f:"I"},120574:{c:"\\3B3",f:"I"},120575:{c:"\\3B4",f:"I"},120576:{c:"\\3B5",f:"I"},120577:{c:"\\3B6",f:"I"},120578:{c:"\\3B7",f:"I"},120579:{c:"\\3B8",f:"I"},120580:{c:"\\3B9",f:"I"},120581:{c:"\\3BA",f:"I"},120582:{c:"\\3BB",f:"I"},120583:{c:"\\3BC",f:"I"},120584:{c:"\\3BD",f:"I"},120585:{c:"\\3BE",f:"I"},120586:{c:"\\3BF",f:"I"},120587:{c:"\\3C0",f:"I"},120588:{c:"\\3C1",f:"I"},120589:{c:"\\3C2",f:"I"},120590:{c:"\\3C3",f:"I"},120591:{c:"\\3C4",f:"I"},120592:{c:"\\3C5",f:"I"},120593:{c:"\\3C6",f:"I"},120594:{c:"\\3C7",f:"I"},120595:{c:"\\3C8",f:"I"},120596:{c:"\\3C9",f:"I"},120597:{c:"\\2202"},120598:{c:"\\3F5",f:"I"},120599:{c:"\\3D1",f:"I"},120600:{c:"\\E009",f:"A"},120601:{c:"\\3D5",f:"I"},120602:{c:"\\3F1",f:"I"},120603:{c:"\\3D6",f:"I"},120604:{c:"A",f:"BI"},120605:{c:"B",f:"BI"},120606:{c:"\\393",f:"BI"},120607:{c:"\\394",f:"BI"},120608:{c:"E",f:"BI"},120609:{c:"Z",f:"BI"},120610:{c:"H",f:"BI"},120611:{c:"\\398",f:"BI"},120612:{c:"I",f:"BI"},120613:{c:"K",f:"BI"},120614:{c:"\\39B",f:"BI"},120615:{c:"M",f:"BI"},120616:{c:"N",f:"BI"},120617:{c:"\\39E",f:"BI"},120618:{c:"O",f:"BI"},120619:{c:"\\3A0",f:"BI"},120620:{c:"P",f:"BI"},120622:{c:"\\3A3",f:"BI"},120623:{c:"T",f:"BI"},120624:{c:"\\3A5",f:"BI"},120625:{c:"\\3A6",f:"BI"},120626:{c:"X",f:"BI"},120627:{c:"\\3A8",f:"BI"},120628:{c:"\\3A9",f:"BI"},120630:{c:"\\3B1",f:"BI"},120631:{c:"\\3B2",f:"BI"},120632:{c:"\\3B3",f:"BI"},120633:{c:"\\3B4",f:"BI"},120634:{c:"\\3B5",f:"BI"},120635:{c:"\\3B6",f:"BI"},120636:{c:"\\3B7",f:"BI"},120637:{c:"\\3B8",f:"BI"},120638:{c:"\\3B9",f:"BI"},120639:{c:"\\3BA",f:"BI"},120640:{c:"\\3BB",f:"BI"},120641:{c:"\\3BC",f:"BI"},120642:{c:"\\3BD",f:"BI"},120643:{c:"\\3BE",f:"BI"},120644:{c:"\\3BF",f:"BI"},120645:{c:"\\3C0",f:"BI"},120646:{c:"\\3C1",f:"BI"},120647:{c:"\\3C2",f:"BI"},120648:{c:"\\3C3",f:"BI"},120649:{c:"\\3C4",f:"BI"},120650:{c:"\\3C5",f:"BI"},120651:{c:"\\3C6",f:"BI"},120652:{c:"\\3C7",f:"BI"},120653:{c:"\\3C8",f:"BI"},120654:{c:"\\3C9",f:"BI"},120655:{c:"\\2202",f:"B"},120656:{c:"\\3F5",f:"BI"},120657:{c:"\\3D1",f:"BI"},120658:{c:"\\E009",f:"A"},120659:{c:"\\3D5",f:"BI"},120660:{c:"\\3F1",f:"BI"},120661:{c:"\\3D6",f:"BI"},120662:{c:"A",f:"SSB"},120663:{c:"B",f:"SSB"},120664:{c:"\\393",f:"SSB"},120665:{c:"\\394",f:"SSB"},120666:{c:"E",f:"SSB"},120667:{c:"Z",f:"SSB"},120668:{c:"H",f:"SSB"},120669:{c:"\\398",f:"SSB"},120670:{c:"I",f:"SSB"},120671:{c:"K",f:"SSB"},120672:{c:"\\39B",f:"SSB"},120673:{c:"M",f:"SSB"},120674:{c:"N",f:"SSB"},120675:{c:"\\39E",f:"SSB"},120676:{c:"O",f:"SSB"},120677:{c:"\\3A0",f:"SSB"},120678:{c:"P",f:"SSB"},120680:{c:"\\3A3",f:"SSB"},120681:{c:"T",f:"SSB"},120682:{c:"\\3A5",f:"SSB"},120683:{c:"\\3A6",f:"SSB"},120684:{c:"X",f:"SSB"},120685:{c:"\\3A8",f:"SSB"},120686:{c:"\\3A9",f:"SSB"},120782:{c:"0",f:"B"},120783:{c:"1",f:"B"},120784:{c:"2",f:"B"},120785:{c:"3",f:"B"},120786:{c:"4",f:"B"},120787:{c:"5",f:"B"},120788:{c:"6",f:"B"},120789:{c:"7",f:"B"},120790:{c:"8",f:"B"},120791:{c:"9",f:"B"},120802:{c:"0",f:"SS"},120803:{c:"1",f:"SS"},120804:{c:"2",f:"SS"},120805:{c:"3",f:"SS"},120806:{c:"4",f:"SS"},120807:{c:"5",f:"SS"},120808:{c:"6",f:"SS"},120809:{c:"7",f:"SS"},120810:{c:"8",f:"SS"},120811:{c:"9",f:"SS"},120812:{c:"0",f:"SSB"},120813:{c:"1",f:"SSB"},120814:{c:"2",f:"SSB"},120815:{c:"3",f:"SSB"},120816:{c:"4",f:"SSB"},120817:{c:"5",f:"SSB"},120818:{c:"6",f:"SSB"},120819:{c:"7",f:"SSB"},120820:{c:"8",f:"SSB"},120821:{c:"9",f:"SSB"},120822:{c:"0",f:"T"},120823:{c:"1",f:"T"},120824:{c:"2",f:"T"},120825:{c:"3",f:"T"},120826:{c:"4",f:"T"},120827:{c:"5",f:"T"},120828:{c:"6",f:"T"},120829:{c:"7",f:"T"},120830:{c:"8",f:"T"},120831:{c:"9",f:"T"}})},7517:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBoldItalic=void 0;var n=r(8042),r=r(4886);e.sansSerifBoldItalic=(0,n.AddCSS)(r.sansSerifBoldItalic,{305:{f:"SSB"},567:{f:"SSB"}})},4182:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBold=void 0;var n=r(8042),r=r(4471);e.sansSerifBold=(0,n.AddCSS)(r.sansSerifBold,{8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},2679:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifItalic=void 0;var n=r(8042),r=r(5181);e.sansSerifItalic=(0,n.AddCSS)(r.sansSerifItalic,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},5469:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerif=void 0;var n=r(8042),r=r(3526);e.sansSerif=(0,n.AddCSS)(r.sansSerif,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},7563:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.scriptBold=void 0;var n=r(5649);Object.defineProperty(e,"scriptBold",{enumerable:!0,get:function(){return n.scriptBold}})},9409:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.script=void 0;var n=r(7153);Object.defineProperty(e,"script",{enumerable:!0,get:function(){return n.script}})},775:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.smallop=void 0;var n=r(8042),r=r(5745);e.smallop=(0,n.AddCSS)(r.smallop,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},10072:{c:"\\2223"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},9551:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphicBold=void 0;var n=r(8042),r=r(1411);e.texCalligraphicBold=(0,n.AddCSS)(r.texCalligraphicBold,{305:{f:"B"},567:{f:"B"}})},7907:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphic=void 0;var n=r(6384);Object.defineProperty(e,"texCalligraphic",{enumerable:!0,get:function(){return n.texCalligraphic}})},9659:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texMathit=void 0;var n=r(6041);Object.defineProperty(e,"texMathit",{enumerable:!0,get:function(){return n.texMathit}})},98:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyleBold=void 0;var n=r(8199);Object.defineProperty(e,"texOldstyleBold",{enumerable:!0,get:function(){return n.texOldstyleBold}})},6275:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyle=void 0;var n=r(9848);Object.defineProperty(e,"texOldstyle",{enumerable:!0,get:function(){return n.texOldstyle}})},6530:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texSize3=void 0;var n=r(8042),r=r(7906);e.texSize3=(0,n.AddCSS)(r.texSize3,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},4409:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texSize4=void 0;var n=r(8042),r=r(2644);e.texSize4=(0,n.AddCSS)(r.texSize4,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57685:{c:"\\E153\\E152"},57686:{c:"\\E151\\E150"}})},5292:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.texVariant=void 0;var n=r(8042),r=r(4926);e.texVariant=(0,n.AddCSS)(r.texVariant,{1008:{c:"\\E009"},8463:{f:""},8740:{c:"\\E006"},8742:{c:"\\E007"},8808:{c:"\\E00C"},8809:{c:"\\E00D"},8816:{c:"\\E011"},8817:{c:"\\E00E"},8840:{c:"\\E016"},8841:{c:"\\E018"},8842:{c:"\\E01A"},8843:{c:"\\E01B"},10887:{c:"\\E010"},10888:{c:"\\E00F"},10955:{c:"\\E017"},10956:{c:"\\E019"}})},5884:function(t,e,r){var h=this&&this.__assign||function(){return(h=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},_=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},d=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},S=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},f=(Object.defineProperty(e,"__esModule",{value:!0}),e.FontData=e.NOSTRETCH=e.H=e.V=void 0,r(7233)),r=(e.V=1,e.H=2,e.NOSTRETCH={dir:0},n.charOptions=function(t,e){t=t[e];return 3===t.length&&(t[3]={}),t[3]},Object.defineProperty(n.prototype,"styles",{get:function(){return this._styles},set:function(t){this._styles=t},enumerable:!1,configurable:!0}),n.prototype.createVariant=function(t,e,r){void 0===r&&(r=null);e={linked:[],chars:(e=void 0===e?null:e)?Object.create(this.variant[e].chars):{}};r&&this.variant[r]&&(Object.assign(e.chars,this.variant[r].chars),this.variant[r].linked.push(e.chars),e.chars=Object.create(e.chars)),this.remapSmpChars(e.chars,t),this.variant[t]=e},n.prototype.remapSmpChars=function(t,e){var r,n,o,i,a=this.constructor;if(a.VariantSmp[e]){var s=a.SmpRemap,l=[null,null,a.SmpRemapGreekU,a.SmpRemapGreekL];try{for(var c=S(a.SmpRanges),u=c.next();!u.done;u=c.next()){var p=_(u.value,3),h=p[0],d=p[1],f=p[2],m=a.VariantSmp[e][h];if(m){for(var y,g=d;g<=f;g++)930!==g&&(y=m+g-d,t[g]=this.smpChar(s[y]||y));if(l[h])try{o=void 0;for(var b=S(Object.keys(l[h]).map(function(t){return parseInt(t)})),v=b.next();!v.done;v=b.next())t[g=v.value]=this.smpChar(m+l[h][g])}catch(t){o={error:t}}finally{try{v&&!v.done&&(i=b.return)&&i.call(b)}finally{if(o)throw o.error}}}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}"bold"===e&&(t[988]=this.smpChar(120778),t[989]=this.smpChar(120779))},n.prototype.smpChar=function(t){return[,,,{smp:t}]},n.prototype.createVariants=function(t){var e,r;try{for(var n=S(t),o=n.next();!o.done;o=n.next()){var i=o.value;this.createVariant(i[0],i[1],i[2])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},n.prototype.defineChars=function(t,e){var r,n,o=this.variant[t];Object.assign(o.chars,e);try{for(var i=S(o.linked),a=i.next();!a.done;a=i.next()){var s=a.value;Object.assign(s,e)}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},n.prototype.defineDelimiters=function(t){Object.assign(this.delimiters,t)},n.prototype.defineRemap=function(t,e){this.remapChars.hasOwnProperty(t)||(this.remapChars[t]={}),Object.assign(this.remapChars[t],e)},n.prototype.getDelimiter=function(t){return this.delimiters[t]},n.prototype.getSizeVariant=function(t,e){return this.delimiters[t].variants&&(e=this.delimiters[t].variants[e]),this.sizeVariants[e]},n.prototype.getStretchVariant=function(t,e){return this.stretchVariants[this.delimiters[t].stretchv?this.delimiters[t].stretchv[e]:0]},n.prototype.getChar=function(t,e){return this.variant[t].chars[e]},n.prototype.getVariant=function(t){return this.variant[t]},n.prototype.getCssFont=function(t){return this.cssFontMap[t]||["serif",!1,!1]},n.prototype.getFamily=function(t){return this.cssFamilyPrefix?this.cssFamilyPrefix+", "+t:t},n.prototype.getRemappedChar=function(t,e){return(this.remapChars[t]||{})[e]},n.OPTIONS={unknownFamily:"serif"},n.JAX="common",n.NAME="",n.defaultVariants=[["normal"],["bold","normal"],["italic","normal"],["bold-italic","italic","bold"],["double-struck","bold"],["fraktur","normal"],["bold-fraktur","bold","fraktur"],["script","italic"],["bold-script","bold-italic","script"],["sans-serif","normal"],["bold-sans-serif","bold","sans-serif"],["sans-serif-italic","italic","sans-serif"],["sans-serif-bold-italic","bold-italic","bold-sans-serif"],["monospace","normal"]],n.defaultCssFonts={normal:["unknown",!1,!1],bold:["unknown",!1,!0],italic:["unknown",!0,!1],"bold-italic":["unknown",!0,!0],"double-struck":["unknown",!1,!0],fraktur:["unknown",!1,!1],"bold-fraktur":["unknown",!1,!0],script:["cursive",!1,!1],"bold-script":["cursive",!1,!0],"sans-serif":["sans-serif",!1,!1],"bold-sans-serif":["sans-serif",!1,!0],"sans-serif-italic":["sans-serif",!0,!1],"sans-serif-bold-italic":["sans-serif",!0,!0],monospace:["monospace",!1,!1]},n.defaultCssFamilyPrefix="",n.VariantSmp={bold:[119808,119834,120488,120514,120782],italic:[119860,119886,120546,120572],"bold-italic":[119912,119938,120604,120630],script:[119964,119990],"bold-script":[120016,120042],fraktur:[120068,120094],"double-struck":[120120,120146,,,120792],"bold-fraktur":[120172,120198],"sans-serif":[120224,120250,,,120802],"bold-sans-serif":[120276,120302,120662,120688,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406,120720,120746],monospace:[120432,120458,,,120822]},n.SmpRanges=[[0,65,90],[1,97,122],[2,913,937],[3,945,969],[4,48,57]],n.SmpRemap={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},n.SmpRemapGreekU={8711:25,1012:17},n.SmpRemapGreekL={977:27,981:29,982:31,1008:28,1009:30,1013:26,8706:25},n.defaultAccentMap={768:"ˋ",769:"ˊ",770:"ˆ",771:"˜",772:"ˉ",774:"˘",775:"˙",776:"¨",778:"˚",780:"ˇ",8594:"⃗",8242:"'",8243:"''",8244:"'''",8245:"`",8246:"``",8247:"```",8279:"''''",8400:"↼",8401:"⇀",8406:"←",8417:"↔",8432:"*",8411:"...",8412:"....",8428:"⇁",8429:"↽",8430:"←",8431:"→"},n.defaultMoMap={45:"−"},n.defaultMnMap={45:"−"},n.defaultParams={x_height:.442,quad:1,num1:.676,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,sup_drop:.386,sub_drop:.05,delim1:2.39,delim2:1,axis_height:.25,rule_thickness:.06,big_op_spacing1:.111,big_op_spacing2:.167,big_op_spacing3:.2,big_op_spacing4:.6,big_op_spacing5:.1,surd_height:.075,scriptspace:.05,nulldelimiterspace:.12,delimiterfactor:901,delimitershortfall:.3,min_rule_thickness:1.25,separation_factor:1.75,extra_ic:.033},n.defaultDelimiters={},n.defaultChars={},n.defaultSizeVariants=[],n.defaultStretchVariants=[],n);function n(t){void 0===t&&(t=null),this.variant={},this.delimiters={},this.cssFontMap={},this.remapChars={},this.skewIcFactor=.75;var e,r,n,o,i=this.constructor;this.options=(0,f.userOptions)((0,f.defaultOptions)({},i.OPTIONS),t),this.params=h({},i.defaultParams),this.sizeVariants=d([],_(i.defaultSizeVariants),!1),this.stretchVariants=d([],_(i.defaultStretchVariants),!1),this.cssFontMap=h({},i.defaultCssFonts);try{for(var a=S(Object.keys(this.cssFontMap)),s=a.next();!s.done;s=a.next()){var l=s.value;"unknown"===this.cssFontMap[l][0]&&(this.cssFontMap[l][0]=this.options.unknownFamily)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}this.cssFamilyPrefix=i.defaultCssFamilyPrefix,this.createVariants(i.defaultVariants),this.defineDelimiters(i.defaultDelimiters);try{for(var c=S(Object.keys(i.defaultChars)),u=c.next();!u.done;u=c.next()){var p=u.value;this.defineChars(p,i.defaultChars[p])}}catch(t){n={error:t}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}this.defineRemap("accent",i.defaultAccentMap),this.defineRemap("mo",i.defaultMoMap),this.defineRemap("mn",i.defaultMnMap)}e.FontData=r},5552:function(t,c){var u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(c,"__esModule",{value:!0}),c.CommonArrow=c.CommonDiagonalArrow=c.CommonDiagonalStrike=c.CommonBorder2=c.CommonBorder=c.arrowBBox=c.diagonalArrowDef=c.arrowDef=c.arrowBBoxW=c.arrowBBoxHD=c.arrowHead=c.fullBorder=c.fullPadding=c.fullBBox=c.sideNames=c.sideIndex=c.SOLID=c.PADDING=c.THICKNESS=c.ARROWY=c.ARROWDX=c.ARROWX=void 0,c.ARROWX=4,c.ARROWDX=1,c.ARROWY=2,c.THICKNESS=.067,c.PADDING=.2,c.SOLID=c.THICKNESS+"em solid",c.sideIndex={top:0,right:1,bottom:2,left:3},c.sideNames=Object.keys(c.sideIndex),c.fullBBox=function(t){return new Array(4).fill(t.thickness+t.padding)},c.fullPadding=function(t){return new Array(4).fill(t.padding)},c.fullBorder=function(t){return new Array(4).fill(t.thickness)},c.arrowHead=function(t){return Math.max(t.padding,t.thickness*(t.arrowhead.x+t.arrowhead.dx+1))},c.arrowBBoxHD=function(t,e){var r,n;return t.childNodes[0]&&(r=(n=t.childNodes[0].getBBox()).h,n=n.d,e[0]=e[2]=Math.max(0,t.thickness*t.arrowhead.y-(r+n)/2)),e},c.arrowBBoxW=function(t,e){var r;return t.childNodes[0]&&(r=t.childNodes[0].getBBox().w,e[1]=e[3]=Math.max(0,t.thickness*t.arrowhead.y-r/2)),e},c.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"]},c.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"]},c.arrowBBox={up:function(t){return(0,c.arrowBBoxW)(t,[(0,c.arrowHead)(t),0,t.padding,0])},down:function(t){return(0,c.arrowBBoxW)(t,[t.padding,0,(0,c.arrowHead)(t),0])},right:function(t){return(0,c.arrowBBoxHD)(t,[0,(0,c.arrowHead)(t),0,t.padding])},left:function(t){return(0,c.arrowBBoxHD)(t,[0,t.padding,0,(0,c.arrowHead)(t)])},updown:function(t){return(0,c.arrowBBoxW)(t,[(0,c.arrowHead)(t),0,(0,c.arrowHead)(t),0])},leftright:function(t){return(0,c.arrowBBoxHD)(t,[0,(0,c.arrowHead)(t),0,(0,c.arrowHead)(t)])}},c.CommonBorder=function(e){return function(t){var r=c.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}}]}},c.CommonBorder2=function(i){return function(t,e,r){var n=c.sideIndex[e],o=c.sideIndex[r];return[t,{renderer:i,bbox:function(t){var t=t.thickness+t.padding,e=[0,0,0,0];return e[n]=e[o]=t,e},border:function(t){var e=[0,0,0,0];return e[n]=e[o]=t.thickness,e},remove:e+" "+r}]}},c.CommonDiagonalStrike=function(r){return function(t){var e="mjx-"+t.charAt(0)+"strike";return[t+"diagonalstrike",{renderer:r(e),bbox:c.fullBBox}]}},c.CommonDiagonalArrow=function(s){return function(t){var e=u(c.diagonalArrowDef[t],4),o=e[0],i=e[1],a=e[2];return[t+"arrow",{renderer:function(t,e){var r=u(t.arrowAW(),2),n=r[0],r=r[1],r=t.arrow(r,o*(n-i),a);s(t,r)},bbox:function(t){var e=t.arrowData(),r=e.a,n=e.x,e=e.y,o=u([t.arrowhead.x,t.arrowhead.y,t.arrowhead.dx],3),i=o[0],a=o[1],o=o[2],i=u(t.getArgMod(i+o,a),2),o=i[0],a=i[1],i=e+(r<o?t.thickness*a*Math.sin(o-r):0),e=n+(o>Math.PI/2-r?t.thickness*a*Math.sin(o+r-Math.PI/2):0);return[i,e,i,e]},remove:e[3]}]}},c.CommonArrow=function(l){return function(t){var e=u(c.arrowDef[t],4),i=e[0],a=e[1],s=e[2],e=e[3];return[t+"arrow",{renderer:function(t,e){var r=t.getBBox(),n=r.w,o=r.h,r=r.d,o=u(s?[o+r,"X"]:[n,"Y"],2),r=o[0],n=o[1],o=t.getOffset(n),r=t.arrow(r,i,a,n,o);l(t,r)},bbox:c.arrowBBox[t],remove:e}]}}},3055:function(t,e,r){var n,i,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},T=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonOutputJax=void 0,r(2975)),N=r(4474),c=r(7233),u=r(6010),p=r(8054),h=r(4139),r=(i=l.AbstractOutputJax,o(d,i),d.prototype.typeset=function(t,e){this.setDocument(e);var r=this.createNode();return this.toDOM(t,r,e),r},d.prototype.createNode=function(){var t=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:t})},d.prototype.setScale=function(t){var e=this.math.metrics.scale*this.options.scale;1!=e&&this.adaptor.setStyle(t,"fontSize",(0,u.percent)(e))},d.prototype.toDOM=function(t,e,r){this.setDocument(r=void 0===r?null: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)},d.prototype.getBBox=function(t,e){this.setDocument(e),(this.math=t).root.setTeXclass(null),this.nodeMap=new Map;e=this.factory.wrap(t.root).getOuterBBox();return this.nodeMap=null,e},d.prototype.getMetrics=function(t){this.setDocument(t);var e,r,n=this.adaptor,o=this.getMetricMaps(t);try{for(var i=T(t.math),a=i.next();!a.done;a=i.next()){var s,l,c,u,p,h,d,f=a.value,m=n.parent(f.start.node);f.state()<N.STATE.METRICS&&m&&(l=(s=o[f.display?1:0].get(m)).em,c=s.ex,u=s.containerWidth,p=s.lineWidth,h=s.scale,d=s.family,f.setMetrics(l,c,u,p,h),this.options.mtextInheritFont&&(f.outputData.mtextFamily=d),this.options.merrorInheritFont&&(f.outputData.merrorFamily=d),f.state(N.STATE.METRICS))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}},d.prototype.getMetricsFor=function(t,e){var r=this.options.mtextInheritFont||this.options.merrorInheritFont,t=this.getTestElement(t,e),e=this.measureMetrics(t,r);return this.adaptor.remove(t),e},d.prototype.getMetricMaps=function(t){var e,r,n,o,i,a,s,l,c,u,p=this.adaptor,h=[new Map,new Map];try{for(var d=T(t.math),f=d.next();!f.done;f=d.next()){var m,y=f.value;(O=p.parent(y.start.node))&&y.state()<N.STATE.METRICS&&((m=h[y.display?1:0]).has(O)||m.set(O,this.getTestElement(O,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 g=this.options.mtextInheritFont||this.options.merrorInheritFont,b=[new Map,new Map];try{for(var v=T(b.keys()),_=v.next();!_.done;_=v.next()){var S=_.value;try{i=void 0;for(var x=T(h[S].keys()),M=x.next();!M.done;M=x.next()){var O=M.value;b[S].set(O,this.measureMetrics(h[S].get(O),g))}}catch(t){i={error:t}}finally{try{M&&!M.done&&(a=x.return)&&a.call(x)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{_&&!_.done&&(o=v.return)&&o.call(v)}finally{if(n)throw n.error}}try{for(var E=T(b.keys()),A=E.next();!A.done;A=E.next()){S=A.value;try{c=void 0;for(var C=T(h[S].values()),w=C.next();!w.done;w=C.next())O=w.value,p.remove(O)}catch(t){c={error:t}}finally{try{w&&!w.done&&(u=C.return)&&u.call(C)}finally{if(c)throw c.error}}}}catch(t){s={error:t}}finally{try{A&&!A.done&&(l=E.return)&&l.call(E)}finally{if(s)throw s.error}}return b},d.prototype.getTestElement=function(t,e){var r,n=this.adaptor;return this.testInline||(this.testInline=this.html("mjx-test",{style:{display:"inline-block",width:"100%","font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","text-indent":0,"text-transform":"none","letter-spacing":"normal","word-spacing":"normal",overflow:"hidden",height:"1px","margin-right":"-1px"}},[this.html("mjx-left-box",{style:{display:"inline-block",width:0,float:"left"}}),this.html("mjx-ex-box",{style:{position:"absolute",overflow:"hidden",width:"1px",height:"60ex"}}),this.html("mjx-right-box",{style:{display:"inline-block",width:0,float:"right"}})]),this.testDisplay=n.clone(this.testInline),n.setStyle(this.testDisplay,"display","table"),n.setStyle(this.testDisplay,"margin-right",""),n.setStyle(n.firstChild(this.testDisplay),"display","none"),r=n.lastChild(this.testDisplay),n.setStyle(r,"display","table-cell"),n.setStyle(r,"width","10000em"),n.setStyle(r,"float","")),n.append(t,n.clone(e?this.testDisplay:this.testInline))},d.prototype.measureMetrics=function(t,e){var r=this.adaptor,e=e?r.fontFamily(t):"",n=r.fontSize(t),o=s(r.nodeSize(r.childNode(t,1)),2),i=o[0],o=o[1],o=i?o/60:n*this.options.exFactor;return{em:n,ex:o,containerWidth:i?"table"===r.getStyle(t,"display")?r.nodeSize(r.lastChild(t))[0]-1:r.nodeBBox(r.lastChild(t)).left-r.nodeBBox(r.firstChild(t)).left-2:1e6,lineWidth:1e6,scale:Math.max(this.options.minScale,this.options.matchFontHeight?o/this.font.params.x_height/n:1),family:e}},d.prototype.styleSheet=function(t){var e,r;if(this.setDocument(t),this.cssStyles.clear(),this.cssStyles.addStyles(this.constructor.commonStyles),"getStyles"in t)try{for(var n=T(t.getStyles()),o=n.next();!o.done;o=n.next()){var i=o.value;this.cssStyles.addStyles(i)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this.addWrapperStyles(this.cssStyles),this.addFontStyles(this.cssStyles),this.html("style",{id:"MJX-styles"},[this.text("\n"+this.cssStyles.cssText+"\n")])},d.prototype.addFontStyles=function(t){t.addStyles(this.font.styles)},d.prototype.addWrapperStyles=function(t){var e,r;try{for(var n=T(this.factory.getKinds()),o=n.next();!o.done;o=n.next()){var i=o.value;this.addClassStyles(this.factory.getNodeClass(i),t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},d.prototype.addClassStyles=function(t,e){e.addStyles(t.styles)},d.prototype.setDocument=function(t){t&&(this.document=t,this.adaptor.document=t.document)},d.prototype.html=function(t,e,r,n){return this.adaptor.node(t,e=void 0===e?{}:e,r=void 0===r?[]:r,n)},d.prototype.text=function(t){return this.adaptor.text(t)},d.prototype.fixed=function(t,e){return void 0===e&&(e=3),Math.abs(t)<6e-4?"0":t.toFixed(e).replace(/\.?0+$/,"")},d.prototype.measureText=function(t,e,r){void 0===r&&(r=["",!1,!1]);var n,o=this.unknownText(t,e);return"-explicitFont"===e&&(n=this.cssFontStyles(r),this.adaptor.setAttributes(o,{style:n})),this.measureTextNodeWithCache(o,t,e,r)},d.prototype.measureTextNodeWithCache=function(t,e,r,n){void 0===n&&(n=["",!1,!1]),"-explicitFont"===r&&(r=[n[0],n[1]?"T":"F",n[2]?"T":"F",""].join("-")),this.unknownCache.has(r)||this.unknownCache.set(r,new Map);n=this.unknownCache.get(r),r=n.get(e);if(r)return r;r=this.measureTextNode(t);return n.set(e,r),r},d.prototype.measureXMLnode=function(t){var e=this.adaptor,t=this.html("mjx-xml-block",{style:{display:"inline-block"}},[e.clone(t)]),r=this.html("mjx-baseline",{style:{display:"inline-block",width:0,height:0}}),n=this.html("mjx-measure-xml",{style:{position:"absolute",display:"inline-block","font-family":"initial","line-height":"normal"}},[r,t]),o=(e.append(e.parent(this.math.start.node),this.container),e.append(this.container,n),this.math.metrics.em*this.math.metrics.scale),t=e.nodeBBox(t),i=t.left,a=t.right,s=t.bottom,t=t.top,a=(a-i)/o,i=(e.nodeBBox(r).top-t)/o,r=(s-t)/o-i;return e.remove(this.container),e.remove(n),{w:a,h:i,d:r}},d.prototype.cssFontStyles=function(t,e){void 0===e&&(e={});var t=s(t,3),r=t[0],n=t[1],t=t[2];return e["font-family"]=this.font.getFamily(r),n&&(e["font-style"]="italic"),t&&(e["font-weight"]="bold"),e},d.prototype.getFontData=function(t){return t=t||new p.Styles,[this.font.getFamily(t.get("font-family")),"italic"===t.get("font-style"),"bold"===t.get("font-weight")]},d.NAME="Common",d.OPTIONS=a(a({},l.AbstractOutputJax.OPTIONS),{scale:1,minScale:.5,mtextInheritFont:!1,merrorInheritFont:!1,mtextFont:"",merrorFont:"serif",mathmlSpacing:!1,skipAttributes:{},exFactor:.5,displayAlign:"center",displayIndent:"0",wrapperFactory:null,font:null,cssStyles:null}),d.commonStyles={},d);function d(t,e,r){void 0===e&&(e=null);var n=this,t=s((0,c.separateOptions)(t=void 0===t?null:t,(r=void 0===r?null:r).OPTIONS),2),o=t[0],t=t[1];return(n=i.call(this,o)||this).factory=n.options.wrapperFactory||new e,(n.factory.jax=n).cssStyles=n.options.cssStyles||new h.CssStyles,n.font=n.options.font||new r(t),n.unknownCache=new Map,n}e.CommonOutputJax=r},7519:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return a(e,t),e},p=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},c=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonWrapper=void 0,r(8912)),u=r(9007),d=r(505),f=s(r(6010)),m=r(8054),y=r(6469),g=r(5884),b=2/18;function v(t,e){return t?e<b?0:b:e}_=c.AbstractWrapper,o(S,_),Object.defineProperty(S.prototype,"jax",{get:function(){return this.factory.jax},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"adaptor",{get:function(){return this.factory.jax.adaptor},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"metrics",{get:function(){return this.factory.jax.math.metrics},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"fixesPWidth",{get:function(){return!this.node.notParent&&!this.node.isToken},enumerable:!1,configurable:!0}),S.prototype.wrap=function(t,e){var r=this.factory.wrap(t,(e=void 0===e?null:e)||this);return e&&e.childNodes.push(r),this.jax.nodeMap.set(t,r),r},S.prototype.getBBox=function(t){if(this.bboxComputed)return this.bbox;var e=(t=void 0===t?!0:t)?this.bbox:y.BBox.zero();return this.computeBBox(e),this.bboxComputed=t,e},S.prototype.getOuterBBox=function(t){var e,r,n=this.getBBox(t=void 0===t?!0:t);if(!this.styles)return n;var o=new y.BBox;Object.assign(o,n);try{for(var i=p(y.BBox.StyleAdjust),a=i.next();!a.done;a=i.next()){var s=h(a.value,2),l=s[0],c=s[1],u=this.styles.get(l);u&&(o[c]+=this.length2em(u,1,o.rscale))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return o},S.prototype.computeBBox=function(t,e){var r,n;void 0===e&&(e=!1),t.empty();try{for(var o=p(this.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value;t.append(a.getOuterBBox())}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.clean(),this.fixesPWidth&&this.setChildPWidths(e)&&this.computeBBox(t,!0)},S.prototype.setChildPWidths=function(t,e,r){var n,o;if(void 0===e&&(e=null),t)return!1;(r=void 0===r?!0:r)&&(this.bbox.pwidth="");var i=!1;try{for(var a=p(this.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value,c=l.getOuterBBox();c.pwidth&&l.setChildPWidths(t,null===e?c.w:e,r)&&(i=!0)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i},S.prototype.invalidateBBox=function(){this.bboxComputed&&(this.bboxComputed=!1,this.parent&&this.parent.invalidateBBox())},S.prototype.copySkewIC=function(t){var e=this.childNodes[0],e=(null!=e&&e.bbox.sk&&(t.sk=e.bbox.sk),null!=e&&e.bbox.dx&&(t.dx=e.bbox.dx),this.childNodes[this.childNodes.length-1]);null!=e&&e.bbox.ic&&(t.ic=e.bbox.ic,t.w+=t.ic)},S.prototype.getStyles=function(){var t=this.node.attributes.getExplicit("style");if(t)for(var e=this.styles=new m.Styles(t),r=0,n=S.removeStyles.length;r<n;r++){var o=S.removeStyles[r];e.get(o)&&(this.removedStyles||(this.removedStyles={}),this.removedStyles[o]=e.get(o),e.set(o,""))}},S.prototype.getVariant=function(){var t,e,r;this.node.isToken&&(t=(e=this.node.attributes).get("mathvariant"),e.getExplicit("mathvariant")||(e=e.getList("fontfamily","fontweight","fontstyle"),this.removedStyles&&((r=this.removedStyles).fontFamily&&(e.family=r.fontFamily),r.fontWeight&&(e.weight=r.fontWeight),r.fontStyle&&(e.style=r.fontStyle)),e.fontfamily&&(e.family=e.fontfamily),e.fontweight&&(e.weight=e.fontweight),e.fontstyle&&(e.style=e.fontstyle),e.weight&&e.weight.match(/^\d+$/)&&(e.weight=600<parseInt(e.weight)?"bold":"normal"),t=e.family?this.explicitVariant(e.family,e.weight,e.style):(this.node.getProperty("variantForm")&&(t="-tex-variant"),t=(S.BOLDVARIANTS[e.weight]||{})[t]||t,(S.ITALICVARIANTS[e.style]||{})[t]||t)),this.variant=t)},S.prototype.explicitVariant=function(t,e,r){var n=this.styles;return(n=n||(this.styles=new m.Styles)).set("fontFamily",t),e&&n.set("fontWeight",e),r&&n.set("fontStyle",r),"-explicitFont"},S.prototype.getScale=function(){var t=1,e=this.parent,e=e?e.bbox.scale:1,r=this.node.attributes,n=Math.min(r.get("scriptlevel"),2),o=r.get("fontsize"),i=this.node.isToken||this.node.isKind("mstyle")?r.get("mathsize"):r.getInherited("mathsize");0!==n&&(t=Math.pow(r.get("scriptsizemultiplier"),n))<(n=this.length2em(r.get("scriptminsize"),.8,1))&&(t=n),"1"!==(i=(o=this.removedStyles&&this.removedStyles.fontSize&&!o?this.removedStyles.fontSize:o)&&!r.getExplicit("mathsize")?o:i)&&(t*=this.length2em(i,1,1)),this.bbox.scale=t,this.bbox.rscale=t/e},S.prototype.getSpace=function(){var t=this.isTopEmbellished(),e=this.node.hasSpacingAttributes();this.jax.options.mathmlSpacing||e?t&&this.getMathMLSpacing():this.getTeXSpacing(t,e)},S.prototype.getMathMLSpacing=function(){var t,e,r=this.node.coreMO(),n=r.coreParent(),o=n.parent;o&&o.isKind("mrow")&&1!==o.childNodes.length&&(e=0<(t=r.attributes).get("scriptlevel"),this.bbox.L=t.isSet("lspace")?Math.max(0,this.length2em(t.get("lspace"))):v(e,r.lspace),this.bbox.R=t.isSet("rspace")?Math.max(0,this.length2em(t.get("rspace"))):v(e,r.rspace),0!==(t=o.childIndex(n))&&(e=o.childNodes[t-1]).isEmbellished&&(r=this.jax.nodeMap.get(e).getBBox()).R&&(this.bbox.L=Math.max(0,this.bbox.L-r.R)))},S.prototype.getTeXSpacing=function(t,e){var r;e||(r=this.node.texSpacing())&&(this.bbox.L=this.length2em(r)),(t||e)&&((r=this.node.coreMO().attributes).isSet("lspace")&&(this.bbox.L=Math.max(0,this.length2em(r.get("lspace")))),r.isSet("rspace")&&(this.bbox.R=Math.max(0,this.length2em(r.get("rspace")))))},S.prototype.isTopEmbellished=function(){return this.node.isEmbellished&&!(this.node.parent&&this.node.parent.isEmbellished)},S.prototype.core=function(){return this.jax.nodeMap.get(this.node.core())},S.prototype.coreMO=function(){return this.jax.nodeMap.get(this.node.coreMO())},S.prototype.getText=function(){var t,e,r="";if(this.node.isToken)try{for(var n=p(this.node.childNodes),o=n.next();!o.done;o=n.next()){var i=o.value;i instanceof u.TextNode&&(r+=i.getText())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},S.prototype.canStretch=function(t){var e;return this.stretch=g.NOSTRETCH,this.node.isEmbellished&&(e=this.core())&&e.node!==this.node&&e.canStretch(t)&&(this.stretch=e.stretch),0!==this.stretch.dir},S.prototype.getAlignShift=function(){var t=(t=this.node.attributes).getList.apply(t,l([],h(u.indentAttributes),!1)),e=t.indentalign,r=t.indentshift,n=t.indentalignfirst,t=t.indentshiftfirst;return"auto"===(e="indentalign"!==n?n:e)&&(e=this.jax.options.displayAlign),"auto"===(r="indentshift"!==t?t:r)&&(r=this.jax.options.displayIndent,"right"!==e||r.match(/^\s*0[a-z]*\s*$/)||(r=("-"+r.trim()).replace(/^--/,""))),[e,this.length2em(r,this.metrics.containerWidth)]},S.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},S.prototype.getAlignY=function(t,e,r,n,o){return"top"===o?t-r:"bottom"===o?n-e:"center"===o?(t-r-(e-n))/2:0},S.prototype.getWrapWidth=function(t){return this.childNodes[t].getBBox().w},S.prototype.getChildAlign=function(t){return"left"},S.prototype.percent=function(t){return f.percent(t)},S.prototype.em=function(t){return f.em(t)},S.prototype.px=function(t,e){return void 0===e&&(e=-f.BIGDIMEN),f.px(t,e,this.metrics.em)},S.prototype.length2em=function(t,e,r){return null===(r=void 0===r?null:r)&&(r=this.bbox.scale),f.length2em(t,e=void 0===e?1:e,r,this.jax.pxPerEm)},S.prototype.unicodeChars=function(t,e){void 0===e&&(e=this.variant);var r,t=(0,d.unicodeChars)(t),e=this.font.getVariant(e);return e&&e.chars&&(r=e.chars,t=t.map(function(t){return((r[t]||[])[3]||{}).smp||t})),t},S.prototype.remapChars=function(t){return t},S.prototype.mmlText=function(t){return this.node.factory.create("text").setText(t)},S.prototype.mmlNode=function(t,e,r){return this.node.factory.create(t,e=void 0===e?{}:e,r=void 0===r?[]:r)},S.prototype.createMo=function(t){var e=this.node.factory,t=e.create("text").setText(t),e=e.create("mo",{stretchy:!0},[t]),t=(e.inheritAttributesFrom(this.node),this.wrap(e));return t.parent=this,t},S.prototype.getVariantChar=function(t,e){t=this.font.getChar(t,e)||[0,0,0,{unknown:!0}];return 3===t.length&&(t[3]={}),t},S.kind="unknown",S.styles={},S.removeStyles=["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","font"],S.skipAttributes={fontfamily:!0,fontsize:!0,fontweight:!0,fontstyle:!0,color:!0,background:!0,class:!0,href:!0,style:!0,xmlns:!0},S.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"}},S.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"}};var _,s=S;function S(t,e,r){void 0===r&&(r=null);var n=_.call(this,t,e)||this;return n.parent=null,n.removedStyles=null,n.styles=null,n.variant="",n.bboxComputed=!1,n.stretch=g.NOSTRETCH,n.font=null,n.parent=r,n.font=t.jax.font,n.bbox=y.BBox.zero(),n.getStyles(),n.getVariant(),n.getScale(),n.getSpace(),n.childNodes=e.childNodes.map(function(t){t=n.wrap(t);return t.bbox.pwidth&&(e.notParent||e.isKind("math"))&&(n.bbox.pwidth=y.BBox.fullWidth),t}),n}e.CommonWrapper=s},4420:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonWrapperFactory=void 0,o=r(3811).AbstractWrapperFactory,i(a,o),Object.defineProperty(a.prototype,"Wrappers",{get:function(){return this.node},enumerable:!1,configurable:!0}),a.defaultNodes={},a);function a(){var t=null!==o&&o.apply(this,arguments)||this;return t.jax=null,t}e.CommonWrapperFactory=r},9800:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTeXAtomMixin=void 0,r(9007));e.CommonTeXAtomMixin=function(t){return o(e,r=t),e.prototype.computeBBox=function(t,e){r.prototype.computeBBox.call(this,t,e=void 0===e?!1:e),this.childNodes[0]&&this.childNodes[0].bbox.ic&&(t.ic=this.childNodes[0].bbox.ic),this.node.texClass===i.TEXCLASS.VCENTER&&(e=((e=t.h)+t.d)/2+this.font.params.axis_height-e,t.h+=e,t.d-=e)},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},1160:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),m=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTextNodeMixin=void 0,e.CommonTextNodeMixin=function(t){return o(e,r=t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r,n,o=this.parent.variant,e=this.node.getText();if("-explicitFont"===o){var i=this.jax.getFontData(this.parent.styles),i=this.jax.measureText(e,o,i),a=i.w,s=i.h,l=i.d;t.h=s,t.d=l,t.w=a}else{i=this.remappedText(e,o);t.empty();try{for(var c=m(i),u=c.next();!u.done;u=c.next()){var p,h=u.value,d=y(this.getVariantChar(o,h),4),f=(s=d[0],l=d[1],a=d[2],d[3]);f.unknown&&(a=(p=this.jax.measureText(String.fromCodePoint(h),o)).w,s=p.h,l=p.d),t.w+=a,s>t.h&&(t.h=s),l>t.d&&(t.d=l),t.ic=f.ic||0,t.sk=f.sk||0,t.dx=f.dx||0}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}1<i.length&&(t.sk=0),t.clean()}},e.prototype.remappedText=function(t,e){var r=this.parent.stretch.c;return r?[r]:this.parent.remapChars(this.unicodeChars(t,e))},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}},1956:function(t,r,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},l=(Object.defineProperty(r,"__esModule",{value:!0}),r.CommonMactionMixin=r.TooltipData=void 0,e(505));r.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))}},r.CommonMactionMixin=function(t){return o(e,i=t),Object.defineProperty(e.prototype,"selected",{get:function(){var t=this.node.attributes.get("selection"),t=Math.max(1,Math.min(this.childNodes.length,t))-1;return this.childNodes[t]||this.wrap(this.node.selected)},enumerable:!1,configurable:!0}),e.prototype.getParameters=function(){var t=this.node.attributes.get("data-offsets"),t=a((0,l.split)(t||""),2),e=t[0],t=t[1];this.dx=this.length2em(e||r.TooltipData.dx),this.dy=this.length2em(t||r.TooltipData.dy)},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.updateFrom(this.selected.getOuterBBox()),this.selected.setChildPWidths(e)},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i.apply(this,s([],a(t),!1))||this,n=r.constructor.actions,o=r.node.attributes.get("actiontype"),n=a(n.get(o)||[function(t,e){},{}],2),o=n[0],n=n[1];return r.action=o,r.data=n,r.getParameters(),r}var i}},7490:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMathMixin=void 0,e.CommonMathMixin=function(t){return o(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}},7313:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return a(e,t),e},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},p=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMencloseMixin=void 0,s(r(5552))),h=r(505);e.CommonMencloseMixin=function(t){return o(e,n=t),e.prototype.getParameters=function(){var t,e=this.node.attributes,r=e.get("data-padding"),r=(void 0!==r&&(this.padding=this.length2em(r,u.PADDING)),e.get("data-thickness")),r=(void 0!==r&&(this.thickness=this.length2em(r,u.THICKNESS)),e.get("data-arrowhead"));void 0!==r&&(r=(e=l((0,h.split)(r),3))[0],t=e[1],e=e[2],this.arrowhead={x:r?parseFloat(r):u.ARROWX,y:t?parseFloat(t):u.ARROWY,dx:e?parseFloat(e):u.ARROWDX})},e.prototype.getNotations=function(){var t,e,r=this.constructor.notations;try{for(var n=p((0,h.split)(this.node.attributes.get("notation"))),o=n.next();!o.done;o=n.next()){var i=o.value,a=r.get(i);a&&((this.notations[i]=a).renderChild&&(this.renderChild=a.renderer))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.removeRedundantNotations=function(){var t,e,r,n;try{for(var o=p(Object.keys(this.notations)),i=o.next();!i.done;i=o.next()){var a=i.value;if(this.notations[a]){var s=this.notations[a].remove||"";try{r=void 0;for(var l=p(s.split(/ /)),c=l.next();!c.done;c=l.next()){var u=c.value;delete this.notations[u]}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},e.prototype.initializeNotations=function(){var t,e;try{for(var r=p(Object.keys(this.notations)),n=r.next();!n.done;n=r.next()){var o=n.value,i=this.notations[o].init;i&&i(this)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=l(this.TRBL,4),n=r[0],o=r[1],i=r[2],r=r[3],a=this.childNodes[0].getBBox();t.combine(a,r,0),t.h+=n,t.d+=i,t.w+=o,this.setChildPWidths(e)},e.prototype.getBBoxExtenders=function(){var t,e,r=[0,0,0,0];try{for(var n=p(Object.keys(this.notations)),o=n.next();!o.done;o=n.next()){var i=o.value;this.maximizeEntries(r,this.notations[i].bbox(this))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},e.prototype.getPadding=function(){var t,e,r=this,n=[0,0,0,0];try{for(var o=p(Object.keys(this.notations)),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.notations[a].border;s&&this.maximizeEntries(n,s(this))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return[0,1,2,3].map(function(t){return r.TRBL[t]-n[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.getOffset=function(t){var e=l(this.TRBL,4),r=e[0],n=e[1],o=e[2],e=e[3],t=("X"===t?n-e:o-r)/2;return.001<Math.abs(t)?t:0},e.prototype.getArgMod=function(t,e){return[Math.atan2(e,t),Math.sqrt(t*t+e*e)]},e.prototype.arrow=function(t,e,r,n,o){return void 0===n&&(n=""),null},e.prototype.arrowData=function(){var t=l([this.padding,this.thickness],2),e=t[0],t=t[1]*(this.arrowhead.x+Math.max(1,this.arrowhead.dx)),r=this.childNodes[0].getBBox(),n=r.h,o=r.d,r=r.w,n=n+o,o=Math.sqrt(n*n+r*r),i=Math.max(e,t*r/o),e=Math.max(e,t*n/o),t=l(this.getArgMod(r+2*i,n+2*e),2);return{a:t[0],W:t[1],x:i,y:e}},e.prototype.arrowAW=function(){var t=this.childNodes[0].getBBox(),e=t.h,r=t.d,t=t.w,n=l(this.TRBL,4),o=n[0],i=n[1],a=n[2],n=n[3];return this.getArgMod(n+t+i,o+e+r+a)},e.prototype.createMsqrt=function(t){var e=this.node.factory.create("msqrt"),t=(e.inheritAttributesFrom(this.node),e.childNodes[0]=t.node,this.wrap(e));return t.parent=this,t},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=n.apply(this,c([],l(t),!1))||this;return r.notations={},r.renderChild=null,r.msqrt=null,r.padding=u.PADDING,r.thickness=u.THICKNESS,r.arrowhead={x:u.ARROWX,y:u.ARROWY,dx:u.ARROWDX},r.TRBL=[0,0,0,0],r.getParameters(),r.getNotations(),r.removeRedundantNotations(),r.initializeNotations(),r.TRBL=r.getBBoxExtenders(),r}var n}},7555:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMfencedMixin=void 0,e.CommonMfencedMixin=function(t){return r(e,n=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 t,e,r=this.node,n=this.mrow,o=(this.addMo(r.open),this.childNodes.length&&n.childNodes.push(this.childNodes[0]),0);try{for(var i=l(this.childNodes.slice(1)),a=i.next();!a.done;a=i.next()){var s=a.value;this.addMo(r.separators[o++]),n.childNodes.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.addMo(r.close),n.stretchChildren()},e.prototype.addMo=function(t){t&&(t=this.wrap(t),this.mrow.childNodes.push(t),t.parent=this.mrow)},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.updateFrom(this.mrow.getOuterBBox()),this.setChildPWidths(e)},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=n.apply(this,i([],o(t),!1))||this;return r.mrow=null,r.createMrow(),r.addMrowChildren(),r}var n}},2688:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMfracMixin=void 0,e.CommonMfracMixin=function(t){return r(e,i=t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),t.empty();var r=this.node.attributes.getList("linethickness","bevelled"),n=r.linethickness,r=r.bevelled,o=this.isDisplay(),i=null;r?this.getBevelledBBox(t,o):(r=this.length2em(String(n),.06),i=-2*this.pad,0===r?this.getAtopBBox(t,o):(this.getFractionBBox(t,o,r),i-=.2),i+=t.w),t.clean(),this.setChildPWidths(e,i)},e.prototype.getFractionBBox=function(t,e,r){var n=this.childNodes[0].getOuterBBox(),o=this.childNodes[1].getOuterBBox(),i=this.font.params.axis_height,e=this.getTUV(e,r),r=e.T,a=e.u,e=e.v;t.combine(n,0,i+r+Math.max(n.d*n.rscale,a)),t.combine(o,0,i-r-Math.max(o.h*o.rscale,e)),t.w+=2*this.pad+.2},e.prototype.getTUV=function(t,e){var r=this.font.params,n=r.axis_height,o=(t?3.5:1.5)*e;return{T:(t?3.5:1.5)*e,u:(t?r.num1:r.num2)-n-o,v:(t?r.denom1:r.denom2)+n-o}},e.prototype.getAtopBBox=function(t,e){var e=this.getUVQ(e),r=e.u,n=e.v,o=e.nbox,e=e.dbox;t.combine(o,0,r),t.combine(e,0,-n),t.w+=2*this.pad},e.prototype.getUVQ=function(t){var e=this.childNodes[0].getOuterBBox(),r=this.childNodes[1].getOuterBBox(),n=this.font.params,o=a(t?[n.num1,n.denom1]:[n.num3,n.denom2],2),i=o[0],o=o[1],t=(t?7:3)*n.rule_thickness,n=i-e.d*e.scale-(r.h*r.scale-o);return n<t&&(i+=(t-n)/2,o+=(t-n)/2,n=t),{u:i,v:o,q:n,nbox:e,dbox:r}},e.prototype.getBevelledBBox=function(t,e){var e=this.getBevelData(e),r=e.u,n=e.v,o=e.delta,i=e.nbox,e=e.dbox,a=this.bevel.getOuterBBox();t.combine(i,0,r),t.combine(a,t.w-o/2,0),t.combine(e,t.w-o/2,n)},e.prototype.getBevelData=function(t){var e=this.childNodes[0].getOuterBBox(),r=this.childNodes[1].getOuterBBox(),t=t?.4:.15,n=Math.max(e.scale*(e.h+e.d),r.scale*(r.h+r.d))+2*t,o=this.font.params.axis_height;return{H:n,delta:t,u:e.scale*(e.d-e.h)/2+o+t,v:r.scale*(r.d-r.h)/2+o-t,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,t=t.scriptlevel;return e&&0===t},e.prototype.getWrapWidth=function(t){var e=this.node.attributes;return e.get("bevelled")?this.childNodes[t].getOuterBBox().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,n,o=i.apply(this,s([],a(t),!1))||this;return o.bevel=null,o.pad=o.node.getProperty("withDelims")?0:o.font.params.nulldelimiterspace,o.node.attributes.get("bevelled")&&(r=o.getBevelData(o.isDisplay()).H,(n=o.bevel=o.createMo("/")).node.attributes.set("symmetric",!0),n.canStretch(1),n.getStretchedVariant([r],!0)),o}var i}},5636:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMglyphMixin=void 0,e.CommonMglyphMixin=function(t){return r(e,n=t),e.prototype.getParameters=function(){var t=this.node.attributes.getList("width","height","valign","src","index"),e=t.width,r=t.height,n=t.valign,o=t.src,t=t.index;o?(this.width="auto"===e?1:this.length2em(e),this.height="auto"===r?1:this.length2em(r),this.valign=this.length2em(n||"0")):(o=String.fromCodePoint(parseInt(t)),e=this.node.factory,this.charWrapper=this.wrap(e.create("text").setText(o)),this.charWrapper.parent=this)},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),this.charWrapper?t.updateFrom(this.charWrapper.getBBox()):(t.w=this.width,t.h=this.height+this.valign,t.d=-this.valign)},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=n.apply(this,i([],o(t),!1))||this;return r.getParameters(),r}var n}},5723:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMiMixin=void 0,e.CommonMiMixin=function(t){return o(e,r=t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),r.prototype.computeBBox.call(this,t),this.copySkewIC(t)},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},8009:function(t,s,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},l=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(s,"__esModule",{value:!0}),s.CommonMmultiscriptsMixin=s.ScriptNames=s.NextScript=void 0,e(6469));s.NextScript={base:"subList",subList:"supList",supList:"subList",psubList:"psupList",psupList:"psubList"},s.ScriptNames=["sup","sup","psup","psub"],s.CommonMmultiscriptsMixin=function(t){return r(e,i=t),e.prototype.combinePrePost=function(t,e){t=new a.BBox(t);return t.combine(e,0,0),t},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r,n=this.font.params.scriptspace,o=this.scriptData,i=this.combinePrePost(o.sub,o.psub),a=this.combinePrePost(o.sup,o.psup),i=p(this.getUVQ(i,a),2),a=i[0],i=i[1];t.empty(),o.numPrescripts&&(t.combine(o.psup,n,a),t.combine(o.psub,n,i)),t.append(o.base),o.numScripts&&(r=t.w,t.combine(o.sup,r,a),t.combine(o.sub,r,i),t.w+=n),t.clean(),this.setChildPWidths(e)},e.prototype.getScriptData=function(){var t=this.scriptData={base:null,sub:a.BBox.empty(),sup:a.BBox.empty(),psub:a.BBox.empty(),psup:a.BBox.empty(),numPrescripts:0,numScripts:0},e=this.getScriptBBoxLists();this.combineBBoxLists(t.sub,t.sup,e.subList,e.supList),this.combineBBoxLists(t.psub,t.psup,e.psubList,e.psupList),t.base=e.base[0],t.numPrescripts=e.psubList.length,t.numScripts=e.subList.length},e.prototype.getScriptBBoxLists=function(){var e,t,r={base:[],subList:[],supList:[],psubList:[],psupList:[]},n="base";try{for(var o=l(this.childNodes),i=o.next();!i.done;i=o.next())var a=i.value,n=a.node.isKind("mprescripts")?"psubList":(r[n].push(a.getOuterBBox()),s.NextScript[n])}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}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(a.BBox.empty())},e.prototype.combineBBoxLists=function(t,e,r,n){for(var o=0;o<r.length;o++){var i=p(this.getScaledWHD(r[o]),3),a=i[0],s=i[1],i=i[2],l=p(this.getScaledWHD(n[o]),3),c=l[0],u=l[1],l=l[2],a=Math.max(a,c);t.w+=a,e.w+=a,s>t.h&&(t.h=s),i>t.d&&(t.d=i),u>e.h&&(e.h=u),l>e.d&&(e.d=l)}},e.prototype.getScaledWHD=function(t){var e=t.w,r=t.h,n=t.d,t=t.rscale;return[e*t,r*t,n*t]},e.prototype.getUVQ=function(t,e){var r,n,o;return this.UVQ||(r=(o=p([0,0,0],3))[0],n=o[1],o=o[2],0===t.h&&0===t.d?r=this.getU():0===e.h&&0===e.d?r=-this.getV():(r=(t=p(i.prototype.getUVQ.call(this,t,e),3))[0],n=t[1],o=t[2]),this.UVQ=[r,n,o]),this.UVQ},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i.apply(this,o([],p(t),!1))||this;return r.scriptData=null,r.firstPrescript=0,r.getScriptData(),r}var i}},5023:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMnMixin=void 0,e.CommonMnMixin=function(t){return o(e,r=t),e.prototype.remapChars=function(t){var e;return t.length&&(e=this.font.getRemappedChar("mn",t[0]))&&(1===(e=this.unicodeChars(e,this.variant)).length?t[0]=e[0]:t=e.concat(t.slice(1))),t},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},7096:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),m=this&&this.__assign||function(){return(m=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},y=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMoMixin=e.DirectionVH=void 0,r(6469)),l=r(505),c=r(5884);e.DirectionVH=((r={})[1]="v",r[2]="h",r),e.CommonMoMixin=function(t){return o(e,n=t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1),this.protoBBox(t),this.node.attributes.get("symmetric")&&2!==this.stretch.dir&&(e=this.getCenterOffset(t),t.h+=e,t.d-=e),this.node.getProperty("mathaccent")&&(0===this.stretch.dir||0<=this.size)&&(t.w=0)},e.prototype.protoBBox=function(t){var e=0!==this.stretch.dir;e&&null===this.size&&this.getStretchedVariant([0]),e&&this.size<0||(n.prototype.computeBBox.call(this,t),this.copySkewIC(t))},e.prototype.getAccentOffset=function(){var t=a.BBox.empty();return this.protoBBox(t),-t.w/2},e.prototype.getCenterOffset=function(t){return(t=void 0===t?null:t)||(t=a.BBox.empty(),n.prototype.computeBBox.call(this,t)),(t.h+t.d)/2+this.font.params.axis_height-t.h},e.prototype.getVariant=function(){this.node.attributes.get("largeop")?this.variant=this.node.attributes.get("displaystyle")?"-largeop":"-smallop":this.node.attributes.getExplicit("mathvariant")||!1!==this.node.getProperty("pseudoscript")?n.prototype.getVariant.call(this):this.variant="-tex-variant"},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!==Array.from(e).length)return!1;e=this.font.getDelimiter(e.codePointAt(0));return this.stretch=e&&e.dir===t?e:c.NOSTRETCH,0!==this.stretch.dir},e.prototype.getStretchedVariant=function(t,e){var r,n;if(void 0===e&&(e=!1),0!==this.stretch.dir){var o=this.getWH(t),i=this.getSize("minsize",0),a=this.getSize("maxsize",1/0),s=this.node.getProperty("mathaccent"),o=Math.max(i,Math.min(a,o)),a=this.font.params.delimiterfactor/1e3,l=this.font.params.delimitershortfall,c=i||e?o:s?Math.min(o/a,o+l):Math.max(o*a,o-l),u=this.stretch,p=u.c||this.getText().codePointAt(0),h=0;if(u.sizes)try{for(var d=y(u.sizes),f=d.next();!f.done;f=d.next()){if(f.value>=c)return s&&h&&h--,this.variant=this.font.getSizeVariant(p,h),this.size=h,void(u.schar&&u.schar[h]&&(this.stretch=m(m({},this.stretch),{c:u.schar[h]})));h++}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}u.stretch?(this.size=-1,this.invalidateBBox(),this.getStretchBBox(t,this.checkExtendedHeight(o,u),u)):(this.variant=this.font.getSizeVariant(p,h-1),this.size=h-1)}},e.prototype.getSize=function(t,e){var r=this.node.attributes;return e=r.isSet(t)?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 t=s(t,2),e=t[0],t=t[1],r=this.font.params.axis_height;return this.node.attributes.get("symmetric")?2*Math.max(e-r,t+r):e+t},e.prototype.getStretchBBox=function(t,e,r){r.hasOwnProperty("min")&&r.min>e&&(e=r.min);var n=s(r.HDW,3),o=n[0],i=n[1],n=n[2];1===this.stretch.dir?(o=(t=s(this.getBaseline(t,e,r),2))[0],i=t[1]):n=e,this.bbox.h=o,this.bbox.d=i,this.bbox.w=n},e.prototype.getBaseline=function(t,e,r){var n=2===t.length&&t[0]+t[1]===e,o=this.node.attributes.get("symmetric"),t=s(n?t:[e,0],2),e=t[0],t=t[1],i=s([e+t,0],2),a=i[0],i=i[1];return i=o?(o=this.font.params.axis_height,(a=n?2*Math.max(e-o,t+o):a)/2-o):n?t:(o=(e=s(r.HDW||[.75,.25],2))[0],(n=e[1])*(a/(o+n))),[a-i,i]},e.prototype.checkExtendedHeight=function(t,e){var r;return e.fullExt&&(r=(e=s(e.fullExt,2))[0],t=(e=e[1])+Math.ceil(Math.max(0,t-e)/r)*r),t},e.prototype.remapChars=function(t){var e=this.node.getProperty("primes");return e?(0,l.unicodeChars)(e):(1===t.length&&(e=this.node.coreParent().parent,e=this.isAccent&&!e.isKind("mrow")?"accent":"mo",(e=this.font.getRemappedChar(e,t[0]))&&(t=this.unicodeChars(e,this.variant))),t)},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=n.apply(this,i([],s(t),!1))||this;return r.size=null,r.isAccent=r.node.isAccent,r}var n}},6898:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMpaddedMixin=void 0,e.CommonMpaddedMixin=function(t){return o(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,n=e.h,o=e.d,i=r,a=n,s=o,l=0,c=0,u=0,t=(""!==t.width&&(r=this.dimen(t.width,e,"w",0)),""!==t.height&&(n=this.dimen(t.height,e,"h",0)),""!==t.depth&&(o=this.dimen(t.depth,e,"d",0)),""!==t.voffset&&(c=this.dimen(t.voffset,e)),""!==t.lspace&&(l=this.dimen(t.lspace,e)),this.node.attributes.get("data-align"));return[a,s,i,n-a,o-s,r-i,l,c,u=t?this.getAlignX(r,e,t):u]},e.prototype.dimen=function(t,e,r,n){void 0===r&&(r=""),void 0===n&&(n=null);var o=(t=String(t)).match(/width|height|depth/),o=o?e[o[0].charAt(0)]:r?e[r]:0,e=this.length2em(t,o)||0;return t.match(/^[-+]/)&&r&&(e+=o),e=null!=n?Math.max(n,e):e},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=l(this.getDimens(),6),n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],r=r[5];t.w=i+r,t.h=n+a,t.d=o+s,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}},6991:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMrootMixin=void 0,e.CommonMrootMixin=function(t){return o(e,r=t),Object.defineProperty(e.prototype,"surd",{get:function(){return 2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return 1},enumerable:!1,configurable:!0}),e.prototype.combineRootBBox=function(t,e,r){var n=this.childNodes[this.root].getOuterBBox(),e=this.getRootDimens(e,r)[1];t.combine(n,0,e)},e.prototype.getRootDimens=function(t,e){var r=this.childNodes[this.surd],n=this.childNodes[this.root].getOuterBBox(),o=(r.size<0?.5:.6)*t.w,i=n.w,a=n.rscale,s=Math.max(i,o/a),i=Math.max(0,s-i);return[s*a-o,this.rootHeight(n,t,r.size,e),i]},e.prototype.rootHeight=function(t,e,r,n){e=e.h+e.d;return(r<0?1.9:.55*e)-(e-n)+Math.max(0,t.d*t.rscale)},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},8411:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},O=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonInferredMrowMixin=e.CommonMrowMixin=void 0,r(6469));e.CommonMrowMixin=function(t){return o(e,s=t),Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.stretchChildren=function(){var t,e,r,n,o,i,a=[];try{for(var s=O(this.childNodes),l=s.next();!l.done;l=s.next())(S=l.value).canStretch(1)&&a.push(S)}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}var c=a.length,u=this.childNodes.length;if(c&&1<u){var p=0,h=0,d=1<c&&c===u;try{for(var f=O(this.childNodes),m=f.next();!m.done;m=f.next()){var y,g,b,v,_=0===(S=m.value).stretch.dir;(d||_)&&(g=(y=S.getOuterBBox(_)).h,b=y.d,(g*=v=y.rscale)>p&&(p=g),(b*=v)>h&&(h=b))}}catch(t){r={error:t}}finally{try{m&&!m.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}try{for(var S,x=O(a),M=x.next();!M.done;M=x.next())(S=M.value).coreMO().getStretchedVariant([p,h])}catch(t){o={error:t}}finally{try{M&&!M.done&&(i=x.return)&&i.call(x)}finally{if(o)throw o.error}}}},e;function e(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=s.apply(this,c([],l(r),!1))||this;o.stretchChildren();try{for(var i=O(o.childNodes),a=i.next();!a.done;a=i.next())if(a.value.bbox.pwidth){o.bbox.pwidth=u.BBox.fullWidth;break}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return o}var s},e.CommonInferredMrowMixin=function(t){return o(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}},4126:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsMixin=void 0,e.CommonMsMixin=function(t){return r(e,i=t),e.prototype.createText=function(t){t=this.wrap(this.mmlText(t));return t.parent=this,t},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i.apply(this,s([],a(t),!1))||this,n=r.node.attributes,o=n.getList("lquote","rquote");return"monospace"!==r.variant&&(n.isSet("lquote")||'"'!==o.lquote||(o.lquote="“"),n.isSet("rquote")||'"'!==o.rquote||(o.rquote="”")),r.childNodes.unshift(r.createText(o.lquote)),r.childNodes.push(r.createText(o.rquote)),r}var i}},258:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMspaceMixin=void 0,e.CommonMspaceMixin=function(t){return o(e,r=t),e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);e=this.node.attributes;t.w=this.length2em(e.get("width"),0),t.h=this.length2em(e.get("height"),0),t.d=this.length2em(e.get("depth"),0)},e.prototype.handleVariant=function(){},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},4093:function(t,e,r){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsqrtMixin=void 0,r(6469));e.CommonMsqrtMixin=function(t){return o(e,l=t),Object.defineProperty(e.prototype,"base",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"surd",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.createMo=function(t){t=l.prototype.createMo.call(this,t);return this.childNodes.push(t),t},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.childNodes[this.surd].getBBox(),n=new s.BBox(this.childNodes[this.base].getOuterBBox()),o=this.getPQ(r)[1],i=this.font.params.rule_thickness,o=n.h+o+i,a=c(this.getRootDimens(r,o),1)[0];t.h=o+i,this.combineRootBBox(t,r,o),t.combine(r,a,o-r.h),t.combine(n,a+r.w,0),t.clean(),this.setChildPWidths(e)},e.prototype.combineRootBBox=function(t,e,r){},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-2*e-r/2))/2:e+r/4]},e.prototype.getRootDimens=function(t,e){return[0,0,0,0]},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=l.apply(this,u([],c(t),!1))||this,n=r.createMo("√"),o=(n.canStretch(1),r.childNodes[r.base].getOuterBBox()),i=o.h,o=o.d,a=r.font.params.rule_thickness,s=r.node.attributes.get("displaystyle")?r.font.params.x_height:a;return r.surdH=i+o+2*a+s/4,n.getStretchedVariant([r.surdH-o,o],!0),r}var l}},905:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMsubsupMixin=e.CommonMsupMixin=e.CommonMsubMixin=void 0,e.CommonMsubMixin=function(t){var e;return o(r,e=t),Object.defineProperty(r.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!1,configurable:!0}),r.prototype.getOffset=function(){return[0,-this.getV()]},(t=r).useIC=!1,t;function r(){return null!==e&&e.apply(this,arguments)||this}},e.CommonMsupMixin=function(t){return o(e,r=t),Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!1,configurable:!0}),e.prototype.getOffset=function(){return[this.getAdjustedIc()-(this.baseRemoveIc?0:this.baseIc),this.getU()]},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r},e.CommonMsubsupMixin=function(t){var e;return o(r,e=t),Object.defineProperty(r.prototype,"subChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"supChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:!1,configurable:!0}),r.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.baseChild.getOuterBBox(),n=l([this.subChild.getOuterBBox(),this.supChild.getOuterBBox()],2),o=n[0],n=n[1],r=(t.empty(),t.append(r),this.getBaseWidth()),i=this.getAdjustedIc(),a=l(this.getUVQ(),2),s=a[0],a=a[1];t.combine(o,r,a),t.combine(n,r+i,s),t.w+=this.font.params.scriptspace,t.clean(),this.setChildPWidths(e)},r.prototype.getUVQ=function(t,e){void 0===t&&(t=this.subChild.getOuterBBox()),void 0===e&&(e=this.supChild.getOuterBBox());var r=this.baseCore.getOuterBBox();if(this.UVQ)return this.UVQ;var n=this.font.params,o=3*n.rule_thickness,i=this.length2em(this.node.attributes.get("subscriptshift"),n.sub2),r=this.baseCharZero(r.d*this.baseScale+n.sub_drop*t.rscale),r=l([this.getU(),Math.max(r,i)],2),i=r[0],r=r[1],a=i-e.d*e.rscale-(t.h*t.rscale-r);return a<o&&(r+=o-a,0<(o=.8*n.x_height-(i-e.d*e.rscale))&&(i+=o,r-=o)),i=Math.max(this.length2em(this.node.attributes.get("superscriptshift"),i),i),r=Math.max(this.length2em(this.node.attributes.get("subscriptshift"),r),r),a=i-e.d*e.rscale-(t.h*t.rscale-r),this.UVQ=[i,-r,a],this.UVQ},(t=r).useIC=!1,t;function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.UVQ=null,t}}},6237:function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},_=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtableMixin=void 0,r(6469)),l=r(505),u=r(7875);e.CommonMtableMixin=function(t){return i(e,o=t),Object.defineProperty(e.prototype,"tableRows",{get:function(){return this.childNodes},enumerable:!1,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(){var t;this.hasLabels?this.bbox.pwidth=s.BBox.fullWidth:(t=this.node.attributes.get("width"),(0,l.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]},n=r.H,o=r.D,i=this.tableRows,a=0;a<this.numRows;a++){var s=t?[(e+n[a]-o[a])/2,(e-n[a]+o[a])/2]:null;i[a].stretchChildren(s)}},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,n,o,i,a=[];try{for(var s=_(this.tableRows),l=s.next();!l.done;l=s.next())(h=l.value.getChild(t))&&0===(g=h.childNodes[0]).stretch.dir&&g.canStretch(2)&&a.push(g)}catch(t){u={error:t}}finally{try{l&&!l.done&&(c=s.return)&&c.call(s)}finally{if(u)throw u.error}}var c=a.length,u=this.childNodes.length;if(c&&1<u){if(null===e){e=0;var p=1<c&&c===u;try{for(var h,d,f,m=_(this.tableRows),y=m.next();!y.done;y=m.next())(h=y.value.getChild(t))&&(d=0===(g=h.childNodes[0]).stretch.dir,(p||d)&&e<(f=g.getBBox(d).w)&&(e=f))}catch(t){r={error:t}}finally{try{y&&!y.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}}try{for(var g,b=_(a),v=b.next();!v.done;v=b.next())(g=v.value).coreMO().getStretchedVariant([e])}catch(t){o={error:t}}finally{try{v&&!v.done&&(i=b.return)&&i.call(b)}finally{if(o)throw o.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),n=new Array(this.numRows),o=new Array(this.numRows),i=[0],a=this.tableRows,s=0;s<a.length;s++){for(var l=0,c=a[s],u=c.node.attributes.get("rowalign"),p=0;p<c.numCells;p++){var h=c.getChild(p),l=this.updateHDW(h,p,s,u,t,e,r,l);this.recordPWidthCell(h,p)}n[s]=t[s],o[s]=e[s],c.labeled&&(l=this.updateHDW(c.childNodes[0],0,s,u,t,e,i,l)),this.extendHD(s,t,e,l),this.extendHD(s,n,o,l)}return this.data={H:t,D:e,W:r,NH:n,ND:o,L:i[0]},this.data},e.prototype.updateHDW=function(t,e,r,n,o,i,a,s){var l=t.getBBox(),c=l.h,u=l.d,l=l.w,p=t.parent.bbox.rscale,p=(1!==t.parent.bbox.rscale&&(c*=p,u*=p,l*=p),this.node.getProperty("useHeight")&&(c<.75&&(c=.75),u<.25&&(u=.25)),0);return"baseline"!==(n=t.node.attributes.get("rowalign")||n)&&"axis"!==n&&(p=c+u,c=u=0),c>o[r]&&(o[r]=c),u>i[r]&&(i[r]=u),s<p&&(s=p),a&&l>a[e]&&(a[e]=l),s},e.prototype.extendHD=function(t,e,r,n){n=(n-(e[t]+r[t]))/2;n<1e-5||(e[t]+=n,r[t]+=n)},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 e=this.getTableData(),r=e.H,e=e.D,r=(n=this.node.attributes.get("equalrows")?(n=this.getEqualRowHeight(),(0,u.sum)([].concat(this.rLines,this.rSpace))+n*this.numRows):(0,u.sum)(r.concat(e,this.rLines,this.rSpace)),n+=2*(this.fLine+this.fSpace[1]),this.getComputedWidths()),e=(0,u.sum)(r.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]),r=this.node.attributes.get("width"),n=("auto"!==r&&(e=Math.max(this.length2em(r,0)+2*this.fLine,e)),p(this.getBBoxHD(n),2)),o=n[0],n=n[1],o=(t.h=o,t.d=n,t.w=e,p(this.getBBoxLR(),2)),n=o[0],e=o[1];t.L=n,t.R=e,(0,l.isPercent)(r)||this.setColumnPWidths()},e.prototype.setChildPWidths=function(t,e,r){var n=this.node.attributes.get("width");if(!(0,l.isPercent)(n))return!1;this.hasLabels||(this.bbox.pwidth="",this.container.bbox.pwidth="");var o=this.bbox,i=o.w,a=o.L,o=o.R,s=this.node.attributes.get("data-width-includes-label"),n=Math.max(i,this.length2em(n,Math.max(e,a+i+o)))-(s?a+o:0),e=this.node.attributes.get("equalcolumns")?Array(this.numCols).fill(this.percent(1/Math.max(1,this.numCols))):this.getColumnAttributes("columnwidth",0),s=(this.cWidths=this.getColumnWidthsFixed(e,n),this.getComputedWidths());return this.pWidth=(0,u.sum)(s.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 t,e,r=this.cWidths;try{for(var n=_(this.pwidthCells),o=n.next();!o.done;o=n.next()){var i=p(o.value,2),a=i[0],s=i[1];a.setChildPWidths(!1,r[s])&&(a.invalidateBBox(),a.getBBox())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.getBBoxHD=function(t){var e,r=p(this.getAlignmentRow(),2),n=r[0],r=r[1];if(null===r)return{top:[0,t],center:[e=t/2,e],bottom:[t,0],baseline:[e,e],axis:[e+(o=this.font.params.axis_height),e-o]}[n]||[e,e];var o=this.getVerticalPosition(r,n);return[o,t-o]},e.prototype.getBBoxLR=function(){var t,e,r,n;return this.hasLabels?(t=(n=this.node.attributes).get("side"),e=(r=p(this.getPadAlignShift(t),2))[0],r=r[1],(n=this.hasLabels&&!!n.get("data-width-includes-label"))&&this.frame&&this.fSpace[0]&&(e-=this.fSpace[0]),"center"!==r||n?"left"===t?[e,0]:[0,e]:[e,e]):[0,0]},e.prototype.getPadAlignShift=function(t){var e=this.getTableData().L+this.length2em(this.node.attributes.get("minlabelspacing")),r=p(null==this.styles?["",""]:[this.styles.get("padding-left"),this.styles.get("padding-right")],2),n=r[0],r=r[1],n=((n||r)&&(e=Math.max(e,this.length2em(n||"0"),this.length2em(r||"0"))),p(this.getAlignShift(),2)),r=n[0],n=n[1];return[e,r,n=r===t?"left"===t?Math.max(e,n)-e:Math.min(-e,n)+e:n]},e.prototype.getAlignShift=function(){return this.isTop?o.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,t=Array.from(e.keys()).map(function(t){return e[t]+r[t]});return Math.max.apply(Math,t)},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:r)[t]});return t=this.node.attributes.get("equalcolumns")?Array(t.length).fill((0,u.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):(0,l.isPercent)(t)?this.getColumnWidthsPercent(e):this.getColumnWidthsFixed(e,this.length2em(t))},e.prototype.getEqualColumns=function(t){var e,r=Math.max(1,this.numCols);return t="auto"===t?(e=this.getTableData().W,(0,u.max)(e)):(0,l.isPercent)(t)?this.percent(1/r):(e=(0,u.sum)([].concat(this.cLines,this.cSpace))+2*this.fSpace[0],Math.max(0,this.length2em(t)-e)/r),Array(this.numCols).fill(t)},e.prototype.getColumnWidthsAuto=function(t){var e=this;return t.map(function(t){return"auto"===t||"fit"===t?null:(0,l.isPercent)(t)?t:e.length2em(t)})},e.prototype.getColumnWidthsPercent=function(r){var n=this,o=0<=r.indexOf("fit"),i=(o?this.getTableData():{W:null}).W;return Array.from(r.keys()).map(function(t){var e=r[t];return"fit"===e?null:"auto"===e?o?i[t]:null:(0,l.isPercent)(e)?e:n.length2em(e)})},e.prototype.getColumnWidthsFixed=function(r,t){var n=this,e=Array.from(r.keys()),o=e.filter(function(t){return"fit"===r[t]}),i=e.filter(function(t){return"auto"===r[t]}),i=o.length||i.length,a=(i?this.getTableData():{W:null}).W,s=t-(0,u.sum)([].concat(this.cLines,this.cSpace))-2*this.fSpace[0],l=s,c=(e.forEach(function(t){var e=r[t];l-="fit"===e||"auto"===e?a[t]:n.length2em(e,s)}),i&&0<l?l/i:0);return e.map(function(t){var e=r[t];return"fit"===e?a[t]+c:"auto"===e?a[t]+(0===o.length?c:0):n.length2em(e,s)})},e.prototype.getVerticalPosition=function(t,e){for(var r=this.node.attributes.get("equalrows"),n=this.getTableData(),o=n.H,i=n.D,a=r?this.getEqualRowHeight():0,s=this.getRowHalfSpacing(),l=this.fLine,c=0;c<t;c++)l+=s[c]+(r?a:o[c]+i[c])+s[c+1]+this.rLines[c];var n=p(r?[(a+o[t]-i[t])/2,(a-o[t]+i[t])/2]:[o[t],i[t]],2),u=n[0],n=n[1];return l+({top:0,center:s[t]+(u+n)/2,bottom:s[t]+u+n+s[t+1],baseline:s[t]+u,axis:s[t]+u-.25}[e]||0)},e.prototype.getEmHalfSpacing=function(t,e,r){t=this.em(t*(r=void 0===r?1:r)),e=this.addEm(e,2/r);return e.unshift(t),e.push(t),e},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=p((0,l.split)(this.node.attributes.get("align")),2),e=t[0],t=t[1];if(null==t)return[e,null];t=parseInt(t);return t<0&&(t+=this.numRows+1),[e,t<1||t>this.numRows?null:t-1]},e.prototype.getColumnAttributes=function(t,e){var r=this.numCols-(e=void 0===e?1:e),n=this.getAttributeArray(t);if(0===n.length)return null;for(;n.length<r;)n.push(n[n.length-1]);return n.length>r&&n.splice(r),n},e.prototype.getRowAttributes=function(t,e){var r=this.numRows-(e=void 0===e?1:e),n=this.getAttributeArray(t);if(0===n.length)return null;for(;n.length<r;)n.push(n[n.length-1]);return n.length>r&&n.splice(r),n},e.prototype.getAttributeArray=function(t){var e=this.node.attributes.get(t);return e?(0,l.split)(e):[this.node.attributes.getDefault(t)]},e.prototype.addEm=function(t,e){var r=this;return void 0===e&&(e=1),t?t.map(function(t){return r.em(t/e)}):null},e.prototype.convertLengths=function(t){var e=this;return t?t.map(function(t){return e.length2em(t)}):null},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=o.apply(this,a([],p(t),!1))||this,n=(r.numCols=0,r.numRows=0,r.data=null,r.pwidthCells=[],r.pWidth=0,r.numCols=(0,u.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.isTop&&(r.jax.table=r),r.getPercentageWidth(),r.node.attributes);return r.frame="none"!==n.get("frame"),r.fLine=r.frame&&n.get("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 o}},5164:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtdMixin=void 0,e.CommonMtdMixin=function(t){return o(e,r=t),Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.invalidateBBox=function(){this.bboxComputed=!1},e.prototype.getWrapWidth=function(t){var e=this.parent.parent,r=this.parent,r=this.node.childPosition()-(r.labeled?1:0);return("number"==typeof e.cWidths[r]?e.cWidths:e.getTableData().W)[r]},e.prototype.getChildAlign=function(t){return this.node.attributes.get("columnalign")},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},6319:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMtextMixin=void 0,e.CommonMtextMixin=function(t){var o;return r(e,o=t),e.prototype.getVariant=function(){var t,e=this.jax.options,r=this.jax.math.outputData,n=(!!r.merrorFamily||!!e.merrorFont)&&this.node.Parent.isKind("merror");r.mtextFamily||e.mtextFont||n?(t=this.node.attributes.get("mathvariant"),n=(t=this.constructor.INHERITFONTS[t]||this.jax.font.getCssFont(t))[0]||(n?r.merrorFamily||e.merrorFont:r.mtextFamily||e.mtextFont),this.variant=this.explicitVariant(n,t[2]?"bold":"",t[1]?"italic":"")):o.prototype.getVariant.call(this)},(t=e).INHERITFONTS={normal:["",!1,!1],bold:["",!1,!0],italic:["",!0,!1],"bold-italic":["",!0,!0]},t;function e(){return null!==o&&o.apply(this,arguments)||this}}},5766:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),M=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMlabeledtrMixin=e.CommonMtrMixin=void 0,e.CommonMtrMixin=function(t){return o(e,r=t),Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numCells",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labeled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes},enumerable:!1,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){void 0===t&&(t=null);var e,r,n,o,i=[],a=this.labeled?this.childNodes.slice(1):this.childNodes;try{for(var s=M(a),l=s.next();!l.done;l=s.next())(_=l.value.childNodes[0]).canStretch(1)&&i.push(_)}catch(t){u={error:t}}finally{try{l&&!l.done&&(c=s.return)&&c.call(s)}finally{if(u)throw u.error}}var c=i.length,u=this.childNodes.length;if(c&&1<u){if(null===t){var p=0,h=0,d=1<c&&c===u;try{for(var f=M(a),m=f.next();!m.done;m=f.next()){var y,g,b,v=0===(_=m.value.childNodes[0]).stretch.dir;(d||v)&&(g=(y=_.getBBox(v)).h,b=y.d,p<g&&(p=g),h<b&&(h=b))}}catch(t){e={error:t}}finally{try{m&&!m.done&&(r=f.return)&&r.call(f)}finally{if(e)throw e.error}}t=[p,h]}try{for(var _,S=M(i),x=S.next();!x.done;x=S.next())(_=x.value).coreMO().getStretchedVariant(t)}catch(t){n={error:t}}finally{try{x&&!x.done&&(o=S.return)&&o.call(S)}finally{if(n)throw n.error}}}},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r},e.CommonMlabeledtrMixin=function(t){return o(e,r=t),Object.defineProperty(e.prototype,"numCells",{get:function(){return Math.max(0,this.childNodes.length-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labeled",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes.slice(1)},enumerable:!1,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}},1971:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonMunderoverMixin=e.CommonMoverMixin=e.CommonMunderMixin=void 0,e.CommonMunderMixin=function(t){return r(e,s=t),Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!1,configurable:!0}),e.prototype.computeBBox=function(t,e){var r,n,o,i,a;void 0===e&&(e=!1),this.hasMovableLimits()?s.prototype.computeBBox.call(this,t,e):(t.empty(),r=this.baseChild.getOuterBBox(),n=this.scriptChild.getOuterBBox(),o=this.getUnderKV(r,n)[1],a=this.isLineBelow?0:this.getDelta(!0),i=(a=u(this.getDeltaW([r,n],[0,-a]),2))[0],a=a[1],t.combine(r,i,0),t.combine(n,a,o),t.d+=this.font.params.big_op_spacing5,t.clean(),this.setChildPWidths(e))},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=s.apply(this,o([],u(t),!1))||this;return r.stretchChildren(),r}var s},e.CommonMoverMixin=function(t){return r(e,a=t),Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!1,configurable:!0}),e.prototype.computeBBox=function(t){var e,r,n,o,i;this.hasMovableLimits()?a.prototype.computeBBox.call(this,t):(t.empty(),e=this.baseChild.getOuterBBox(),r=this.scriptChild.getOuterBBox(),this.node.attributes.get("accent")&&(e.h=Math.max(e.h,this.font.params.x_height*e.scale)),n=this.getOverKU(e,r)[1],i=this.isLineAbove?0:this.getDelta(),o=(i=u(this.getDeltaW([e,r],[0,i]),2))[0],i=i[1],t.combine(e,o,0),t.combine(r,i,n),t.h+=this.font.params.big_op_spacing5,t.clean())},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=a.apply(this,o([],u(t),!1))||this;return r.stretchChildren(),r}var a},e.CommonMunderoverMixin=function(t){return r(e,c=t),Object.defineProperty(e.prototype,"underChild",{get:function(){return this.childNodes[this.node.under]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overChild",{get:function(){return this.childNodes[this.node.over]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subChild",{get:function(){return this.underChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supChild",{get:function(){return this.overChild},enumerable:!1,configurable:!0}),e.prototype.computeBBox=function(t){var e,r,n,o,i,a,s,l;this.hasMovableLimits()?c.prototype.computeBBox.call(this,t):(t.empty(),e=this.overChild.getOuterBBox(),l=this.baseChild.getOuterBBox(),r=this.underChild.getOuterBBox(),this.node.attributes.get("accent")&&(l.h=Math.max(l.h,this.font.params.x_height*l.scale)),n=this.getOverKU(l,e)[1],o=this.getUnderKV(l,r)[1],s=this.getDelta(),i=(s=u(this.getDeltaW([l,r,e],[0,this.isLineBelow?0:-s,this.isLineAbove?0:s]),3))[0],a=s[1],s=s[2],t.combine(l,i,0),t.combine(e,s,n),t.combine(r,a,o),l=this.font.params.big_op_spacing5,t.h+=l,t.d+=l,t.clean())},e;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=c.apply(this,o([],u(t),!1))||this;return r.stretchChildren(),r}var c}},167:function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},g=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},x=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CommonScriptbaseMixin=void 0,r(9007));e.CommonScriptbaseMixin=function(t){var o;return i(e,o=t),Object.defineProperty(e.prototype,"baseChild",{get:function(){return this.childNodes[this.node.base]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[1]},enumerable:!1,configurable:!0}),e.prototype.getBaseCore=function(){for(var t=this.getSemanticBase()||this.childNodes[0];t&&(1===t.childNodes.length&&(t.node.isKind("mrow")||t.node.isKind("TeXAtom")&&t.node.texClass!==a.TEXCLASS.VCENTER||t.node.isKind("mstyle")||t.node.isKind("mpadded")||t.node.isKind("mphantom")||t.node.isKind("semantics"))||t.node.isKind("munderover")&&t.isMathAccent);)this.setBaseAccentsFor(t),t=t.childNodes[0];return t||(this.baseHasAccentOver=this.baseHasAccentUnder=!1),t||this.childNodes[0]},e.prototype.setBaseAccentsFor=function(t){t.node.isKind("munderover")&&(null===this.baseHasAccentOver&&(this.baseHasAccentOver=!!t.node.attributes.get("accent")),null===this.baseHasAccentUnder&&(this.baseHasAccentUnder=!!t.node.attributes.get("accentunder")))},e.prototype.getSemanticBase=function(){var t=this.node.attributes.getExplicit("data-semantic-fencepointer");return this.getBaseFence(this.baseChild,t)},e.prototype.getBaseFence=function(t,e){var r,n;if(!t||!t.node.attributes||!e)return null;if(t.node.attributes.getExplicit("data-semantic-id")===e)return t;try{for(var o=x(t.childNodes),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.getBaseFence(a,e);if(s)return s}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null},e.prototype.getBaseScale=function(){for(var t=this.baseCore,e=1;t&&t!==this;)e*=t.getOuterBBox().rscale,t=t.parent;return e},e.prototype.getBaseIc=function(){return this.baseCore.getOuterBBox().ic*this.baseScale},e.prototype.getAdjustedIc=function(){var t=this.baseCore.getOuterBBox();return(t.ic?1.05*t.ic+.05:0)*this.baseScale},e.prototype.isCharBase=function(){var t=this.baseCore;return(t.node.isKind("mo")&&null===t.size||t.node.isKind("mi")||t.node.isKind("mn"))&&1===t.bbox.rscale&&1===Array.from(t.getText()).length},e.prototype.checkLineAccents=function(){this.node.isKind("munderover")&&(this.node.isKind("mover")?this.isLineAbove=this.isLineAccent(this.scriptChild):this.node.isKind("munder")?this.isLineBelow=this.isLineAccent(this.scriptChild):(this.isLineAbove=this.isLineAccent(this.overChild),this.isLineBelow=this.isLineAccent(this.underChild)))},e.prototype.isLineAccent=function(t){t=t.coreMO().node;return t.isToken&&"―"===t.getText()},e.prototype.getBaseWidth=function(){var t=this.baseChild.getOuterBBox();return t.w*t.rscale-(this.baseRemoveIc?this.baseIc:0)+this.font.params.extra_ic},e.prototype.computeBBox=function(t,e){void 0===e&&(e=!1);var r=this.getBaseWidth(),n=y(this.getOffset(),2),o=n[0],n=n[1];t.append(this.baseChild.getOuterBBox()),t.combine(this.scriptChild.getOuterBBox(),r+o,n),t.w+=this.font.params.scriptspace,t.clean(),this.setChildPWidths(e)},e.prototype.getOffset=function(){return[0,0]},e.prototype.baseCharZero=function(t){var e=!!this.baseCore.node.attributes.get("largeop"),r=this.baseScale;return this.baseIsChar&&!e&&1===r?0:t},e.prototype.getV=function(){var t=this.baseCore.getOuterBBox(),e=this.scriptChild.getOuterBBox(),r=this.font.params,n=this.length2em(this.node.attributes.get("subscriptshift"),r.sub1);return Math.max(this.baseCharZero(t.d*this.baseScale+r.sub_drop*e.rscale),n,e.h*e.rscale-.8*r.x_height)},e.prototype.getU=function(){var t=this.baseCore.getOuterBBox(),e=this.scriptChild.getOuterBBox(),r=this.font.params,n=this.node.attributes.getList("displaystyle","superscriptshift"),o=this.node.getProperty("texprimestyle")?r.sup3:n.displaystyle?r.sup1:r.sup2,n=this.length2em(n.superscriptshift,o);return Math.max(this.baseCharZero(t.h*this.baseScale-r.sup_drop*e.rscale),n,e.d*e.rscale+.25*r.x_height)},e.prototype.hasMovableLimits=function(){var t=this.node.attributes.get("displaystyle"),e=this.baseChild.coreMO().node;return!t&&!!e.attributes.get("movablelimits")},e.prototype.getOverKU=function(t,e){var r=this.node.attributes.get("accent"),n=this.font.params,e=e.d*e.rscale,o=n.rule_thickness*n.separation_factor,i=this.baseHasAccentOver?o:0,o=this.isLineAbove?3*n.rule_thickness:o,r=(r?o:Math.max(n.big_op_spacing1,n.big_op_spacing3-Math.max(0,e)))-i;return[r,t.h*t.rscale+r+e]},e.prototype.getUnderKV=function(t,e){var r=this.node.attributes.get("accentunder"),n=this.font.params,e=e.h*e.rscale,o=n.rule_thickness*n.separation_factor,i=this.baseHasAccentUnder?o:0,o=this.isLineBelow?3*n.rule_thickness:o,r=(r?o:Math.max(n.big_op_spacing2,n.big_op_spacing4-e))-i;return[r,-(t.d*t.rscale+r+e)]},e.prototype.getDeltaW=function(e,t){void 0===t&&(t=[0,0,0]);var r,n,o,i,a=this.node.attributes.get("align"),s=e.map(function(t){return t.w*t.rscale}),l=(s[0]-=this.baseRemoveIc&&!this.baseCore.node.attributes.get("largeop")?this.baseIc:0,Math.max.apply(Math,g([],y(s),!1))),c=[],u=0;try{for(var p=x(s.keys()),h=p.next();!h.done;h=p.next()){var d=h.value;c[d]=("center"===a?(l-s[d])/2:"right"===a?l-s[d]:0)+t[d],c[d]<u&&(u=-c[d])}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}if(u)try{for(var f=x(c.keys()),m=f.next();!m.done;m=f.next())d=m.value,c[d]+=u}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}return[1,2].map(function(t){return c[t]+=e[t]?e[t].dx*e[0].scale:0}),c},e.prototype.getDelta=function(t){void 0===t&&(t=!1);var e=this.node.attributes.get("accent"),r=this.baseCore.getOuterBBox(),n=r.sk,r=r.ic;return((e&&!t?n:0)+this.font.skewIcFactor*r)*this.baseScale},e.prototype.stretchChildren=function(){var t,e,r,n,o,i,a=[];try{for(var s=x(this.childNodes),l=s.next();!l.done;l=s.next())(v=l.value).canStretch(2)&&a.push(v)}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}var c=a.length,u=this.childNodes.length;if(c&&1<u){var p=0,h=1<c&&c===u;try{for(var d=x(this.childNodes),f=d.next();!f.done;f=d.next()){var m,y,g,b=0===(v=f.value).stretch.dir;!h&&!b||p<(y=(m=v.getOuterBBox(b)).w)*(g=m.rscale)&&(p=y*g)}}catch(t){r={error:t}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(r)throw r.error}}try{for(var v,_=x(a),S=_.next();!S.done;S=_.next())(v=S.value).coreMO().getStretchedVariant([p/v.bbox.rscale])}catch(t){o={error:t}}finally{try{S&&!S.done&&(i=_.return)&&i.call(_)}finally{if(o)throw o.error}}}},(t=e).useIC=!0,t;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=o.apply(this,g([],y(t),!1))||this,n=(r.baseScale=1,r.baseIc=0,r.baseRemoveIc=!1,r.baseIsChar=!1,r.baseHasAccentOver=null,r.baseHasAccentUnder=null,r.isLineAbove=!1,r.isLineBelow=!1,r.isMathAccent=!1,r.baseCore=r.getBaseCore());return n&&(r.setBaseAccentsFor(n),r.baseScale=r.getBaseScale(),r.baseIc=r.getBaseIc(),r.baseIsChar=r.isCharBase(),r.isMathAccent=r.baseIsChar&&r.scriptChild&&!!r.scriptChild.coreMO().node.getProperty("mathaccent"),r.checkLineAccents(),r.baseRemoveIc=!r.isLineAbove&&!r.isLineBelow&&(!r.constructor.useIC||r.isMathAccent)),r}}},5806:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CommonSemanticsMixin=void 0,e.CommonSemanticsMixin=function(t){return o(e,r=t),e.prototype.computeBBox=function(t,e){var r,n;void 0===e&&(e=!1),this.childNodes.length&&(r=(e=this.childNodes[0].getBBox()).w,n=e.h,e=e.d,t.w=r,t.h=n,t.d=e)},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}},5920:function(t,e){var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTeXFontMixin=void 0,e.CommonTeXFontMixin=function(t){var e,r;return o(n,r=t),n.prototype.getDelimiterData=function(t){return this.getChar("-smallop",t)||this.getChar("-size4",t)},(e=n).NAME="TeX",e.defaultVariants=s(s([],a(t.defaultVariants),!1),[["-smallop","normal"],["-largeop","normal"],["-size3","normal"],["-size4","normal"],["-tex-calligraphic","italic"],["-tex-bold-calligraphic","bold-italic"],["-tex-oldstyle","normal"],["-tex-bold-oldstyle","bold"],["-tex-mathit","italic"],["-tex-variant","normal"]],!1),e.defaultCssFonts=i(i({},t.defaultCssFonts),{"-smallop":["serif",!1,!1],"-largeop":["serif",!1,!1],"-size3":["serif",!1,!1],"-size4":["serif",!1,!1],"-tex-calligraphic":["cursive",!0,!1],"-tex-bold-calligraphic":["cursive",!0,!0],"-tex-oldstyle":["serif",!1,!1],"-tex-bold-oldstyle":["serif",!1,!0],"-tex-mathit":["serif",!0,!1]}),e.defaultSizeVariants=["normal","-smallop","-largeop","-size3","-size4","-tex-variant"],e.defaultStretchVariants=["-size4"],e;function n(){return null!==r&&r.apply(this,arguments)||this}}},5887:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.boldItalic=void 0,e.boldItalic={47:[.711,.21,.894],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}],8260:[.711,.21,.894],8710:[.711,0,.958,{sk:.192}],10744:[.711,.21,.894]}},1103:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.bold=void 0,e.bold={33:[.705,0,.35],34:[.694,-.329,.603],35:[.694,.193,.958],36:[.75,.056,.575],37:[.75,.056,.958],38:[.705,.011,.894],39:[.694,-.329,.319],40:[.75,.249,.447],41:[.75,.249,.447],42:[.75,-.306,.575],43:[.633,.131,.894],44:[.171,.194,.319],45:[.278,-.166,.383],46:[.171,0,.319],47:[.75,.25,.575],58:[.444,0,.319],59:[.444,.194,.319],60:[.587,.085,.894],61:[.393,-.109,.894],62:[.587,.085,.894],63:[.7,0,.543],64:[.699,.006,.894],91:[.75,.25,.319],92:[.75,.25,.575],93:[.75,.25,.319],94:[.694,-.52,.575],95:[-.01,.061,.575],96:[.706,-.503,.575],123:[.75,.25,.575],124:[.75,.249,.319],125:[.75,.25,.575],126:[.344,-.202,.575],168:[.695,-.535,.575],172:[.371,-.061,.767],175:[.607,-.54,.575],176:[.702,-.536,.575],177:[.728,.035,.894],180:[.706,-.503,.575],183:[.336,-.166,.319],215:[.53,.028,.894],247:[.597,.096,.894],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.563,-.033,.344],710:[.694,-.52,.575],711:[.66,-.515,.575],713:[.607,-.54,.575],714:[.706,-.503,.575],715:[.706,-.503,.575],728:[.694,-.5,.575],729:[.695,-.525,.575],730:[.702,-.536,.575],732:[.694,-.552,.575],768:[.706,-.503,0],769:[.706,-.503,0],770:[.694,-.52,0],771:[.694,-.552,0],772:[.607,-.54,0],774:[.694,-.5,0],775:[.695,-.525,0],776:[.695,-.535,0],778:[.702,-.536,0],779:[.714,-.511,0],780:[.66,-.515,0],824:[.711,.21,0],8194:[0,0,.5],8195:[0,0,.999],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.083],8211:[.3,-.249,.575],8212:[.3,-.249,1.15],8213:[.3,-.249,1.15],8214:[.75,.248,.575],8215:[-.01,.061,.575],8216:[.694,-.329,.319],8217:[.694,-.329,.319],8220:[.694,-.329,.603],8221:[.694,-.329,.603],8224:[.702,.211,.511],8225:[.702,.202,.511],8226:[.474,-.028,.575],8230:[.171,0,1.295],8242:[.563,-.033,.344],8243:[.563,0,.688],8244:[.563,0,1.032],8254:[.607,-.54,.575],8260:[.75,.25,.575],8279:[.563,0,1.376],8407:[.723,-.513,.575],8463:[.694,.008,.668,{sk:-.0319}],8467:[.702,.019,.474,{sk:.128}],8472:[.461,.21,.74],8501:[.694,0,.703],8592:[.518,.017,1.15],8593:[.694,.193,.575],8594:[.518,.017,1.15],8595:[.694,.194,.575],8596:[.518,.017,1.15],8597:[.767,.267,.575],8598:[.724,.194,1.15],8599:[.724,.193,1.15],8600:[.694,.224,1.15],8601:[.694,.224,1.15],8602:[.711,.21,1.15],8603:[.711,.21,1.15],8614:[.518,.017,1.15],8617:[.518,.017,1.282],8618:[.518,.017,1.282],8622:[.711,.21,1.15],8636:[.518,-.22,1.15],8637:[.281,.017,1.15],8640:[.518,-.22,1.15],8641:[.281,.017,1.15],8652:[.718,.017,1.15],8653:[.711,.21,1.15],8654:[.711,.21,1.15],8655:[.711,.21,1.15],8656:[.547,.046,1.15],8657:[.694,.193,.703],8658:[.547,.046,1.15],8659:[.694,.194,.703],8660:[.547,.046,1.15],8661:[.767,.267,.703],8704:[.694,.016,.639],8707:[.694,0,.639],8708:[.711,.21,.639],8709:[.767,.073,.575],8710:[.698,0,.958],8712:[.587,.086,.767],8713:[.711,.21,.767],8715:[.587,.086,.767],8716:[.711,.21,.767],8722:[.281,-.221,.894],8723:[.537,.227,.894],8725:[.75,.25,.575],8726:[.75,.25,.575],8727:[.472,-.028,.575],8728:[.474,-.028,.575],8729:[.474,-.028,.575],8730:[.82,.18,.958,{ic:.03}],8733:[.451,.008,.894],8734:[.452,.008,1.15],8736:[.714,0,.722],8739:[.75,.249,.319],8740:[.75,.249,.319],8741:[.75,.248,.575],8742:[.75,.248,.575],8743:[.604,.017,.767],8744:[.604,.016,.767],8745:[.603,.016,.767],8746:[.604,.016,.767],8747:[.711,.211,.569,{ic:.063}],8764:[.391,-.109,.894],8768:[.583,.082,.319],8769:[.711,.21,.894],8771:[.502,0,.894],8772:[.711,.21,.894],8773:[.638,.027,.894],8775:[.711,.21,.894],8776:[.524,-.032,.894],8777:[.711,.21,.894],8781:[.533,.032,.894],8784:[.721,-.109,.894],8800:[.711,.21,.894],8801:[.505,0,.894],8802:[.711,.21,.894],8804:[.697,.199,.894],8805:[.697,.199,.894],8810:[.617,.116,1.15],8811:[.618,.116,1.15],8813:[.711,.21,.894],8814:[.711,.21,.894],8815:[.711,.21,.894],8816:[.711,.21,.894],8817:[.711,.21,.894],8826:[.585,.086,.894],8827:[.586,.086,.894],8832:[.711,.21,.894],8833:[.711,.21,.894],8834:[.587,.085,.894],8835:[.587,.086,.894],8836:[.711,.21,.894],8837:[.711,.21,.894],8838:[.697,.199,.894],8839:[.697,.199,.894],8840:[.711,.21,.894],8841:[.711,.21,.894],8846:[.604,.016,.767],8849:[.697,.199,.894],8850:[.697,.199,.894],8851:[.604,0,.767],8852:[.604,0,.767],8853:[.632,.132,.894],8854:[.632,.132,.894],8855:[.632,.132,.894],8856:[.632,.132,.894],8857:[.632,.132,.894],8866:[.693,0,.703],8867:[.693,0,.703],8868:[.694,0,.894],8869:[.693,0,.894],8872:[.75,.249,.974],8876:[.711,.21,.703],8877:[.75,.249,.974],8900:[.523,.021,.575],8901:[.336,-.166,.319],8902:[.502,0,.575],8904:[.54,.039,1],8930:[.711,.21,.894],8931:[.711,.21,.894],8942:[.951,.029,.319],8943:[.336,-.166,1.295],8945:[.871,-.101,1.323],8968:[.75,.248,.511],8969:[.75,.248,.511],8970:[.749,.248,.511],8971:[.749,.248,.511],8994:[.405,-.108,1.15],8995:[.392,-.126,1.15],9001:[.75,.249,.447],9002:[.75,.249,.447],9651:[.711,0,1.022],9653:[.711,0,1.022],9657:[.54,.039,.575],9661:[.5,.21,1.022],9663:[.5,.21,1.022],9667:[.539,.038,.575],9711:[.711,.211,1.15],9824:[.719,.129,.894],9825:[.711,.024,.894],9826:[.719,.154,.894],9827:[.719,.129,.894],9837:[.75,.017,.447],9838:[.741,.223,.447],9839:[.724,.224,.447],10072:[.75,.249,.319],10216:[.75,.249,.447],10217:[.75,.249,.447],10229:[.518,.017,1.805],10230:[.518,.017,1.833],10231:[.518,.017,2.126],10232:[.547,.046,1.868],10233:[.547,.046,1.87],10234:[.547,.046,2.126],10236:[.518,.017,1.833],10744:[.711,.21,.894],10799:[.53,.028,.894],10815:[.686,0,.9],10927:[.696,.199,.894],10928:[.697,.199,.894],12296:[.75,.249,.447],12297:[.75,.249,.447]}},9124:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.delimiters=e.VSIZES=e.HDW3=e.HDW2=e.HDW1=void 0;var r=r(5884),n=(e.HDW1=[.75,.25,.875],e.HDW2=[.85,.349,.667],e.HDW3=[.583,.082,.5],e.VSIZES=[1,1.2,1.8,2.4,3],{c:47,dir:r.V,sizes:e.VSIZES}),o={c:175,dir:r.H,sizes:[.5],stretch:[0,175],HDW:[.59,-.544,.5]},i={c:710,dir:r.H,sizes:[.5,.556,1,1.444,1.889]},a={c:732,dir:r.H,sizes:[.5,.556,1,1.444,1.889]},s={c:8211,dir:r.H,sizes:[.5],stretch:[0,8211],HDW:[.285,-.248,.5]},l={c:8592,dir:r.H,sizes:[1],stretch:[8592,8722],HDW:e.HDW3},c={c:8594,dir:r.H,sizes:[1],stretch:[0,8722,8594],HDW:e.HDW3},u={c:8596,dir:r.H,sizes:[1],stretch:[8592,8722,8594],HDW:e.HDW3},p={c:8612,dir:r.H,stretch:[8592,8722,8739],HDW:e.HDW3,min:1.278},h={c:8614,dir:r.H,sizes:[1],stretch:[8739,8722,8594],HDW:e.HDW3},d={c:8656,dir:r.H,sizes:[1],stretch:[8656,61],HDW:e.HDW3},f={c:8658,dir:r.H,sizes:[1],stretch:[0,61,8658],HDW:e.HDW3},m={c:8660,dir:r.H,sizes:[1],stretch:[8656,61,8658],HDW:e.HDW3},y={c:8722,dir:r.H,sizes:[.778],stretch:[0,8722],HDW:e.HDW3},g={c:8739,dir:r.V,sizes:[1],stretch:[0,8739],HDW:[.627,.015,.333]},b={c:9180,dir:r.H,sizes:[.778,1],schar:[8994,8994],variants:[5,0],stretch:[57680,57684,57681],HDW:[.32,.2,.5]},v={c:9181,dir:r.H,sizes:[.778,1],schar:[8995,8995],variants:[5,0],stretch:[57682,57684,57683],HDW:[.32,.2,.5]},_={c:9182,dir:r.H,stretch:[57680,57684,57681,57685],HDW:[.32,.2,.5],min:1.8},S={c:9183,dir:r.H,stretch:[57682,57684,57683,57686],HDW:[.32,.2,.5],min:1.8},x={c:10216,dir:r.V,sizes:e.VSIZES},M={c:10217,dir:r.V,sizes:e.VSIZES},O={c:10502,dir:r.H,stretch:[8656,61,8739],HDW:e.HDW3,min:1.278},E={c:10503,dir:r.H,stretch:[8872,61,8658],HDW:e.HDW3,min:1.278};e.delimiters={40:{dir:r.V,sizes:e.VSIZES,stretch:[9115,9116,9117],HDW:[.85,.349,.875]},41:{dir:r.V,sizes:e.VSIZES,stretch:[9118,9119,9120],HDW:[.85,.349,.875]},45:y,47:n,61:{dir:r.H,sizes:[.778],stretch:[0,61],HDW:e.HDW3},91:{dir:r.V,sizes:e.VSIZES,stretch:[9121,9122,9123],HDW:e.HDW2},92:{dir:r.V,sizes:e.VSIZES},93:{dir:r.V,sizes:e.VSIZES,stretch:[9124,9125,9126],HDW:e.HDW2},94:i,95:s,123:{dir:r.V,sizes:e.VSIZES,stretch:[9127,9130,9129,9128],HDW:[.85,.349,.889]},124:{dir:r.V,sizes:[1],stretch:[0,8739],HDW:[.75,.25,.333]},125:{dir:r.V,sizes:e.VSIZES,stretch:[9131,9130,9133,9132],HDW:[.85,.349,.889]},126:a,175:o,710:i,713:o,732:a,770:i,771:a,818:s,8211:s,8212:s,8213:s,8214:{dir:r.V,sizes:[.602,1],schar:[0,8741],variants:[1,0],stretch:[0,8741],HDW:[.602,0,.556]},8215:s,8254:o,8407:c,8592:l,8593:{dir:r.V,sizes:[.888],stretch:[8593,9168],HDW:[.6,0,.667]},8594:c,8595:{dir:r.V,sizes:[.888],stretch:[0,9168,8595],HDW:[.6,0,.667]},8596:u,8597:{dir:r.V,sizes:[1.044],stretch:[8593,9168,8595],HDW:e.HDW1},8606:{dir:r.H,sizes:[1],stretch:[8606,8722],HDW:e.HDW3},8608:{dir:r.H,sizes:[1],stretch:[0,8722,8608],HDW:e.HDW3},8612:p,8613:{dir:r.V,stretch:[8593,9168,8869],HDW:e.HDW1,min:1.555},8614:h,8615:{dir:r.V,stretch:[8868,9168,8595],HDW:e.HDW1,min:1.555},8624:{dir:r.V,sizes:[.722],stretch:[8624,9168],HDW:e.HDW1},8625:{dir:r.V,sizes:[.722],stretch:[8625,9168],HDW:e.HDW1},8636:{dir:r.H,sizes:[1],stretch:[8636,8722],HDW:e.HDW3},8637:{dir:r.H,sizes:[1],stretch:[8637,8722],HDW:e.HDW3},8638:{dir:r.V,sizes:[.888],stretch:[8638,9168],HDW:e.HDW1},8639:{dir:r.V,sizes:[.888],stretch:[8639,9168],HDW:e.HDW1},8640:{dir:r.H,sizes:[1],stretch:[0,8722,8640],HDW:e.HDW3},8641:{dir:r.H,sizes:[1],stretch:[0,8722,8641],HDW:e.HDW3},8642:{dir:r.V,sizes:[.888],stretch:[0,9168,8642],HDW:e.HDW1},8643:{dir:r.V,sizes:[.888],stretch:[0,9168,8643],HDW:e.HDW1},8656:d,8657:{dir:r.V,sizes:[.888],stretch:[8657,8214],HDW:[.599,0,.778]},8658:f,8659:{dir:r.V,sizes:[.888],stretch:[0,8214,8659],HDW:[.6,0,.778]},8660:m,8661:{dir:r.V,sizes:[1.044],stretch:[8657,8214,8659],HDW:[.75,.25,.778]},8666:{dir:r.H,sizes:[1],stretch:[8666,8801],HDW:[.464,-.036,.5]},8667:{dir:r.H,sizes:[1],stretch:[0,8801,8667],HDW:[.464,-.036,.5]},8722:y,8725:n,8730:{dir:r.V,sizes:e.VSIZES,stretch:[57345,57344,9143],fullExt:[.65,2.3],HDW:[.85,.35,1.056]},8739:g,8741:{dir:r.V,sizes:[1],stretch:[0,8741],HDW:[.627,.015,.556]},8968:{dir:r.V,sizes:e.VSIZES,stretch:[9121,9122],HDW:e.HDW2},8969:{dir:r.V,sizes:e.VSIZES,stretch:[9124,9125],HDW:e.HDW2},8970:{dir:r.V,sizes:e.VSIZES,stretch:[0,9122,9123],HDW:e.HDW2},8971:{dir:r.V,sizes:e.VSIZES,stretch:[0,9125,9126],HDW:e.HDW2},8978:b,8994:b,8995:v,9001:x,9002:M,9130:{dir:r.V,sizes:[.32],stretch:[9130,9130,9130],HDW:[.29,.015,.889]},9135:s,9136:{dir:r.V,sizes:[.989],stretch:[9127,9130,9133],HDW:[.75,.25,.889]},9137:{dir:r.V,sizes:[.989],stretch:[9131,9130,9129],HDW:[.75,.25,.889]},9140:{dir:r.H,stretch:[9484,8722,9488],HDW:e.HDW3,min:1},9141:{dir:r.H,stretch:[9492,8722,9496],HDW:e.HDW3,min:1},9168:{dir:r.V,sizes:[.602,1],schar:[0,8739],variants:[1,0],stretch:[0,8739],HDW:[.602,0,.333]},9180:b,9181:v,9182:_,9183:S,9184:{dir:r.H,stretch:[714,713,715],HDW:[.59,-.544,.5],min:1},9185:{dir:r.H,stretch:[715,713,714],HDW:[.59,-.544,.5],min:1},9472:s,10072:g,10216:x,10217:M,10222:{dir:r.V,sizes:[.989],stretch:[9127,9130,9129],HDW:[.75,.25,.889]},10223:{dir:r.V,sizes:[.989],stretch:[9131,9130,9133],HDW:[.75,.25,.889]},10229:l,10230:c,10231:u,10232:d,10233:f,10234:m,10235:p,10236:h,10237:O,10238:E,10502:O,10503:E,10574:{dir:r.H,stretch:[8636,8722,8640],HDW:e.HDW3,min:2},10575:{dir:r.V,stretch:[8638,9168,8642],HDW:e.HDW1,min:1.776},10576:{dir:r.H,stretch:[8637,8722,8641],HDW:e.HDW3,min:2},10577:{dir:r.V,stretch:[8639,9168,8643],HDW:e.HDW1,min:.5},10586:{dir:r.H,stretch:[8636,8722,8739],HDW:e.HDW3,min:1.278},10587:{dir:r.H,stretch:[8739,8722,8640],HDW:e.HDW3,min:1.278},10588:{dir:r.V,stretch:[8638,9168,8869],HDW:e.HDW1,min:1.556},10589:{dir:r.V,stretch:[8868,9168,8642],HDW:e.HDW1,min:1.556},10590:{dir:r.H,stretch:[8637,8722,8739],HDW:e.HDW3,min:1.278},10591:{dir:r.H,stretch:[8739,8722,8641],HDW:e.HDW3,min:1.278},10592:{dir:r.V,stretch:[8639,9168,8869],HDW:e.HDW1,min:1.776},10593:{dir:r.V,stretch:[8868,9168,8643],HDW:e.HDW1,min:1.776},12296:x,12297:M,65079:_,65080:S}},6001:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.doubleStruck=void 0,e.doubleStruck={}},3696:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.frakturBold=void 0,e.frakturBold={33:[.689,.012,.349],34:[.695,-.432,.254],38:[.696,.016,.871],39:[.695,-.436,.25],40:[.737,.186,.459],41:[.735,.187,.459],42:[.692,-.449,.328],43:[.598,.082,.893],44:[.107,.191,.328],45:[.275,-.236,.893],46:[.102,.015,.328],47:[.721,.182,.593],48:[.501,.012,.593],49:[.489,0,.593],50:[.491,0,.593],51:[.487,.193,.593],52:[.495,.196,.593],53:[.481,.19,.593],54:[.704,.012,.593],55:[.479,.197,.593],56:[.714,.005,.593],57:[.487,.195,.593],58:[.457,.012,.255],59:[.458,.19,.255],61:[.343,-.168,.582],63:[.697,.014,.428],91:[.74,.13,.257],93:[.738,.132,.257],94:[.734,-.452,.59],8216:[.708,-.411,.254],8217:[.692,-.394,.254],8260:[.721,.182,.593],58113:[.63,.027,.587],58114:[.693,.212,.394,{ic:.014}],58115:[.681,.219,.387],58116:[.473,.212,.593],58117:[.684,.027,.393],58120:[.679,.22,.981],58121:[.717,.137,.727]}},9587:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.fraktur=void 0,e.fraktur={33:[.689,.012,.296],34:[.695,-.432,.215],38:[.698,.011,.738],39:[.695,-.436,.212],40:[.737,.186,.389],41:[.735,.187,.389],42:[.692,-.449,.278],43:[.598,.082,.756],44:[.107,.191,.278],45:[.275,-.236,.756],46:[.102,.015,.278],47:[.721,.182,.502],48:[.492,.013,.502],49:[.468,0,.502],50:[.474,0,.502],51:[.473,.182,.502],52:[.476,.191,.502],53:[.458,.184,.502],54:[.7,.013,.502],55:[.468,.181,.502],56:[.705,.01,.502],57:[.469,.182,.502],58:[.457,.012,.216],59:[.458,.189,.216],61:[.368,-.132,.756],63:[.693,.011,.362],91:[.74,.13,.278],93:[.738,.131,.278],94:[.734,-.452,.5],8216:[.708,-.41,.215],8217:[.692,-.395,.215],8260:[.721,.182,.502],58112:[.683,.032,.497],58113:[.616,.03,.498],58114:[.68,.215,.333],58115:[.679,.224,.329],58116:[.471,.214,.503],58117:[.686,.02,.333],58118:[.577,.021,.334,{ic:.013}],58119:[.475,.022,.501,{ic:.013}]}},8348:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.italic=void 0,e.italic={33:[.716,0,.307,{ic:.073}],34:[.694,-.379,.514,{ic:.024}],35:[.694,.194,.818,{ic:.01}],37:[.75,.056,.818,{ic:.029}],38:[.716,.022,.767,{ic:.035}],39:[.694,-.379,.307,{ic:.07}],40:[.75,.25,.409,{ic:.108}],41:[.75,.25,.409],42:[.75,-.32,.511,{ic:.073}],43:[.557,.057,.767],44:[.121,.194,.307],45:[.251,-.18,.358],46:[.121,0,.307],47:[.716,.215,.778],48:[.665,.021,.511,{ic:.051}],49:[.666,0,.511],50:[.666,.022,.511,{ic:.04}],51:[.666,.022,.511,{ic:.051}],52:[.666,.194,.511],53:[.666,.022,.511,{ic:.056}],54:[.665,.022,.511,{ic:.054}],55:[.666,.022,.511,{ic:.123}],56:[.666,.021,.511,{ic:.042}],57:[.666,.022,.511,{ic:.042}],58:[.431,0,.307],59:[.431,.194,.307],61:[.367,-.133,.767],63:[.716,0,.511,{ic:.04}],64:[.705,.011,.767,{ic:.022}],91:[.75,.25,.307,{ic:.139}],93:[.75,.25,.307,{ic:.052}],94:[.694,-.527,.511,{ic:.017}],95:[-.025,.062,.511,{ic:.043}],126:[.318,-.208,.511,{ic:.06}],305:[.441,.01,.307,{ic:.033}],567:[.442,.204,.332],768:[.697,-.5,0],769:[.697,-.5,0,{ic:.039}],770:[.694,-.527,0,{ic:.017}],771:[.668,-.558,0,{ic:.06}],772:[.589,-.544,0,{ic:.054}],774:[.694,-.515,0,{ic:.062}],775:[.669,-.548,0],776:[.669,-.554,0,{ic:.045}],778:[.716,-.542,0],779:[.697,-.503,0,{ic:.065}],780:[.638,-.502,0,{ic:.029}],989:[.605,.085,.778],8211:[.285,-.248,.511,{ic:.043}],8212:[.285,-.248,1.022,{ic:.016}],8213:[.285,-.248,1.022,{ic:.016}],8215:[-.025,.062,.511,{ic:.043}],8216:[.694,-.379,.307,{ic:.055}],8217:[.694,-.379,.307,{ic:.07}],8220:[.694,-.379,.514,{ic:.092}],8221:[.694,-.379,.514,{ic:.024}],8260:[.716,.215,.778],8463:[.695,.013,.54,{ic:.022}],8710:[.716,0,.833,{sk:.167}],10744:[.716,.215,.778]}},1376:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.largeop=void 0,e.largeop={40:[1.15,.649,.597],41:[1.15,.649,.597],47:[1.15,.649,.811],91:[1.15,.649,.472],92:[1.15,.649,.811],93:[1.15,.649,.472],123:[1.15,.649,.667],125:[1.15,.649,.667],710:[.772,-.565,1],732:[.75,-.611,1],770:[.772,-.565,0],771:[.75,-.611,0],8214:[.602,0,.778],8260:[1.15,.649,.811],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.95,.45,1.278],8720:[.95,.45,1.278],8721:[.95,.45,1.444],8730:[1.15,.65,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[1.36,.862,.556,{ic:.388}],8748:[1.36,.862,1.084,{ic:.388}],8749:[1.36,.862,1.592,{ic:.388}],8750:[1.36,.862,.556,{ic:.388}],8896:[.95,.45,1.111],8897:[.95,.45,1.111],8898:[.949,.45,1.111],8899:[.95,.449,1.111],8968:[1.15,.649,.528],8969:[1.15,.649,.528],8970:[1.15,.649,.528],8971:[1.15,.649,.528],9001:[1.15,.649,.611],9002:[1.15,.649,.611],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[1.15,.649,.611],10217:[1.15,.649,.611],10752:[.949,.449,1.511],10753:[.949,.449,1.511],10754:[.949,.449,1.511],10756:[.95,.449,1.111],10758:[.95,.45,1.111],10764:[1.36,.862,2.168,{ic:.388}],12296:[1.15,.649,.611],12297:[1.15,.649,.611]}},1439:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.monospace=void 0,e.monospace={32:[0,0,.525],33:[.622,0,.525],34:[.623,-.333,.525],35:[.611,0,.525],36:[.694,.082,.525],37:[.694,.083,.525],38:[.622,.011,.525],39:[.611,-.287,.525],40:[.694,.082,.525],41:[.694,.082,.525],42:[.52,-.09,.525],43:[.531,-.081,.525],44:[.14,.139,.525],45:[.341,-.271,.525],46:[.14,0,.525],47:[.694,.083,.525],58:[.431,0,.525],59:[.431,.139,.525],60:[.557,-.055,.525],61:[.417,-.195,.525],62:[.557,-.055,.525],63:[.617,0,.525],64:[.617,.006,.525],91:[.694,.082,.525],92:[.694,.083,.525],93:[.694,.082,.525],94:[.611,-.46,.525],95:[-.025,.095,.525],96:[.681,-.357,.525],123:[.694,.083,.525],124:[.694,.082,.525],125:[.694,.083,.525],126:[.611,-.466,.525],127:[.612,-.519,.525],160:[0,0,.525],305:[.431,0,.525],567:[.431,.228,.525],697:[.623,-.334,.525],768:[.611,-.485,0],769:[.611,-.485,0],770:[.611,-.46,0],771:[.611,-.466,0],772:[.577,-.5,0],774:[.611,-.504,0],776:[.612,-.519,0],778:[.619,-.499,0],780:[.577,-.449,0],913:[.623,0,.525],914:[.611,0,.525],915:[.611,0,.525],916:[.623,0,.525],917:[.611,0,.525],918:[.611,0,.525],919:[.611,0,.525],920:[.621,.01,.525],921:[.611,0,.525],922:[.611,0,.525],923:[.623,0,.525],924:[.611,0,.525],925:[.611,0,.525],926:[.611,0,.525],927:[.621,.01,.525],928:[.611,0,.525],929:[.611,0,.525],931:[.611,0,.525],932:[.611,0,.525],933:[.622,0,.525],934:[.611,0,.525],935:[.611,0,.525],936:[.611,0,.525],937:[.622,0,.525],8215:[-.025,.095,.525],8242:[.623,-.334,.525],8243:[.623,0,1.05],8244:[.623,0,1.575],8260:[.694,.083,.525],8279:[.623,0,2.1],8710:[.623,0,.525]}},331:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.normal=void 0,e.normal={32:[0,0,.25],33:[.716,0,.278],34:[.694,-.379,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.778],39:[.694,-.379,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.32,.5],43:[.583,.082,.778],44:[.121,.194,.278],45:[.252,-.179,.333],46:[.12,0,.278],47:[.75,.25,.5],48:[.666,.022,.5],49:[.666,0,.5],50:[.666,0,.5],51:[.665,.022,.5],52:[.677,0,.5],53:[.666,.022,.5],54:[.666,.022,.5],55:[.676,.022,.5],56:[.666,.022,.5],57:[.666,.022,.5],58:[.43,0,.278],59:[.43,.194,.278],60:[.54,.04,.778],61:[.583,.082,.778],62:[.54,.04,.778],63:[.705,0,.472],64:[.705,.011,.778],65:[.716,0,.75],66:[.683,0,.708],67:[.705,.021,.722],68:[.683,0,.764],69:[.68,0,.681],70:[.68,0,.653],71:[.705,.022,.785],72:[.683,0,.75],73:[.683,0,.361],74:[.683,.022,.514],75:[.683,0,.778],76:[.683,0,.625],77:[.683,0,.917],78:[.683,0,.75],79:[.705,.022,.778],80:[.683,0,.681],81:[.705,.193,.778],82:[.683,.022,.736],83:[.705,.022,.556],84:[.677,0,.722],85:[.683,.022,.75],86:[.683,.022,.75],87:[.683,.022,1.028],88:[.683,0,.75],89:[.683,0,.75],90:[.683,0,.611],91:[.75,.25,.278],92:[.75,.25,.5],93:[.75,.25,.278],94:[.694,-.531,.5],95:[-.025,.062,.5],96:[.699,-.505,.5],97:[.448,.011,.5],98:[.694,.011,.556],99:[.448,.011,.444],100:[.694,.011,.556],101:[.448,.011,.444],102:[.705,0,.306,{ic:.066}],103:[.453,.206,.5],104:[.694,0,.556],105:[.669,0,.278],106:[.669,.205,.306],107:[.694,0,.528],108:[.694,0,.278],109:[.442,0,.833],110:[.442,0,.556],111:[.448,.01,.5],112:[.442,.194,.556],113:[.442,.194,.528],114:[.442,0,.392],115:[.448,.011,.394],116:[.615,.01,.389],117:[.442,.011,.556],118:[.431,.011,.528],119:[.431,.011,.722],120:[.431,0,.528],121:[.431,.204,.528],122:[.431,0,.444],123:[.75,.25,.5],124:[.75,.249,.278],125:[.75,.25,.5],126:[.318,-.215,.5],160:[0,0,.25],163:[.714,.011,.769],165:[.683,0,.75],168:[.669,-.554,.5],172:[.356,-.089,.667],174:[.709,.175,.947],175:[.59,-.544,.5],176:[.715,-.542,.5],177:[.666,0,.778],180:[.699,-.505,.5],183:[.31,-.19,.278],215:[.491,-.009,.778],240:[.749,.021,.556],247:[.537,.036,.778],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.56,-.043,.275],710:[.694,-.531,.5],711:[.644,-.513,.5],713:[.59,-.544,.5],714:[.699,-.505,.5],715:[.699,-.505,.5],728:[.694,-.515,.5],729:[.669,-.549,.5],730:[.715,-.542,.5],732:[.668,-.565,.5],768:[.699,-.505,0],769:[.699,-.505,0],770:[.694,-.531,0],771:[.668,-.565,0],772:[.59,-.544,0],774:[.694,-.515,0],775:[.669,-.549,0],776:[.669,-.554,0],778:[.715,-.542,0],779:[.701,-.51,0],780:[.644,-.513,0],824:[.716,.215,0],913:[.716,0,.75],914:[.683,0,.708],915:[.68,0,.625],916:[.716,0,.833],917:[.68,0,.681],918:[.683,0,.611],919:[.683,0,.75],920:[.705,.022,.778],921:[.683,0,.361],922:[.683,0,.778],923:[.716,0,.694],924:[.683,0,.917],925:[.683,0,.75],926:[.677,0,.667],927:[.705,.022,.778],928:[.68,0,.75],929:[.683,0,.681],931:[.683,0,.722],932:[.677,0,.722],933:[.705,0,.778],934:[.683,0,.722],935:[.683,0,.75],936:[.683,0,.778],937:[.704,0,.722],8192:[0,0,.5],8193:[0,0,1],8194:[0,0,.5],8195:[0,0,1],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.1],8203:[0,0,0],8204:[0,0,0],8211:[.285,-.248,.5],8212:[.285,-.248,1],8213:[.285,-.248,1],8214:[.75,.25,.5],8215:[-.025,.062,.5],8216:[.694,-.379,.278],8217:[.694,-.379,.278],8220:[.694,-.379,.5],8221:[.694,-.379,.5],8224:[.705,.216,.444],8225:[.705,.205,.444],8226:[.444,-.055,.5],8230:[.12,0,1.172],8242:[.56,-.043,.275],8243:[.56,0,.55],8244:[.56,0,.825],8245:[.56,-.043,.275],8246:[.56,0,.55],8247:[.56,0,.825],8254:[.59,-.544,.5],8260:[.75,.25,.5],8279:[.56,0,1.1],8288:[0,0,0],8289:[0,0,0],8290:[0,0,0],8291:[0,0,0],8292:[0,0,0],8407:[.714,-.516,.5],8450:[.702,.019,.722],8459:[.717,.036,.969,{ic:.272,sk:.333}],8460:[.666,.133,.72],8461:[.683,0,.778],8462:[.694,.011,.576,{sk:-.0278}],8463:[.695,.013,.54,{ic:.022}],8464:[.717,.017,.809,{ic:.137,sk:.333}],8465:[.686,.026,.554],8466:[.717,.017,.874,{ic:.161,sk:.306}],8467:[.705,.02,.417,{sk:.111}],8469:[.683,.02,.722],8472:[.453,.216,.636,{sk:.111}],8473:[.683,0,.611],8474:[.701,.181,.778],8475:[.717,.017,.85,{ic:.037,sk:.194}],8476:[.686,.026,.828],8477:[.683,0,.722],8484:[.683,0,.667],8486:[.704,0,.722],8487:[.684,.022,.722],8488:[.729,.139,.602],8492:[.708,.028,.908,{ic:.02,sk:.194}],8493:[.685,.024,.613],8496:[.707,.008,.562,{ic:.156,sk:.139}],8497:[.735,.036,.895,{ic:.095,sk:.222}],8498:[.695,0,.556],8499:[.721,.05,1.08,{ic:.136,sk:.444}],8501:[.694,0,.611],8502:[.763,.021,.667,{ic:.02}],8503:[.764,.043,.444],8504:[.764,.043,.667],8513:[.705,.023,.639],8592:[.511,.011,1],8593:[.694,.193,.5],8594:[.511,.011,1],8595:[.694,.194,.5],8596:[.511,.011,1],8597:[.772,.272,.5],8598:[.72,.195,1],8599:[.72,.195,1],8600:[.695,.22,1],8601:[.695,.22,1],8602:[.437,-.06,1],8603:[.437,-.06,1],8606:[.417,-.083,1],8608:[.417,-.083,1],8610:[.417,-.083,1.111],8611:[.417,-.083,1.111],8614:[.511,.011,1],8617:[.511,.011,1.126],8618:[.511,.011,1.126],8619:[.575,.041,1],8620:[.575,.041,1],8621:[.417,-.083,1.389],8622:[.437,-.06,1],8624:[.722,0,.5],8625:[.722,0,.5],8630:[.461,0,1],8631:[.46,0,1],8634:[.65,.083,.778],8635:[.65,.083,.778],8636:[.511,-.23,1],8637:[.27,.011,1],8638:[.694,.194,.417],8639:[.694,.194,.417],8640:[.511,-.23,1],8641:[.27,.011,1],8642:[.694,.194,.417],8643:[.694,.194,.417],8644:[.667,0,1],8646:[.667,0,1],8647:[.583,.083,1],8648:[.694,.193,.833],8649:[.583,.083,1],8650:[.694,.194,.833],8651:[.514,.014,1],8652:[.671,.011,1],8653:[.534,.035,1],8654:[.534,.037,1],8655:[.534,.035,1],8656:[.525,.024,1],8657:[.694,.194,.611],8658:[.525,.024,1],8659:[.694,.194,.611],8660:[.526,.025,1],8661:[.772,.272,.611],8666:[.611,.111,1],8667:[.611,.111,1],8669:[.417,-.083,1],8672:[.437,-.064,1.334],8674:[.437,-.064,1.334],8704:[.694,.022,.556],8705:[.846,.021,.5],8706:[.715,.022,.531,{ic:.035,sk:.0833}],8707:[.694,0,.556],8708:[.716,.215,.556],8709:[.772,.078,.5],8710:[.716,0,.833],8711:[.683,.033,.833],8712:[.54,.04,.667],8713:[.716,.215,.667],8715:[.54,.04,.667],8716:[.716,.215,.667],8717:[.44,0,.429,{ic:.027}],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8722:[.583,.082,.778],8723:[.5,.166,.778],8724:[.766,.093,.778],8725:[.75,.25,.5],8726:[.75,.25,.5],8727:[.465,-.035,.5],8728:[.444,-.055,.5],8729:[.444,-.055,.5],8730:[.8,.2,.833,{ic:.02}],8733:[.442,.011,.778],8734:[.442,.011,1],8736:[.694,0,.722],8737:[.714,.02,.722],8738:[.551,.051,.722],8739:[.75,.249,.278],8740:[.75,.252,.278,{ic:.019}],8741:[.75,.25,.5],8742:[.75,.25,.5,{ic:.018}],8743:[.598,.022,.667],8744:[.598,.022,.667],8745:[.598,.022,.667],8746:[.598,.022,.667],8747:[.716,.216,.417,{ic:.055}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8756:[.471,.082,.667],8757:[.471,.082,.667],8764:[.367,-.133,.778],8765:[.367,-.133,.778],8768:[.583,.083,.278],8769:[.467,-.032,.778],8770:[.463,-.034,.778],8771:[.464,-.036,.778],8772:[.716,.215,.778],8773:[.589,-.022,.778],8775:[.652,.155,.778],8776:[.483,-.055,.778],8777:[.716,.215,.778],8778:[.579,.039,.778],8781:[.484,-.016,.778],8782:[.492,-.008,.778],8783:[.492,-.133,.778],8784:[.67,-.133,.778],8785:[.609,.108,.778],8786:[.601,.101,.778],8787:[.601,.102,.778],8790:[.367,-.133,.778],8791:[.721,-.133,.778],8796:[.859,-.133,.778],8800:[.716,.215,.778],8801:[.464,-.036,.778],8802:[.716,.215,.778],8804:[.636,.138,.778],8805:[.636,.138,.778],8806:[.753,.175,.778],8807:[.753,.175,.778],8808:[.752,.286,.778],8809:[.752,.286,.778],8810:[.568,.067,1],8811:[.567,.067,1],8812:[.75,.25,.5],8813:[.716,.215,.778],8814:[.708,.209,.778],8815:[.708,.209,.778],8816:[.801,.303,.778],8817:[.801,.303,.778],8818:[.732,.228,.778],8819:[.732,.228,.778],8820:[.732,.228,.778],8821:[.732,.228,.778],8822:[.681,.253,.778],8823:[.681,.253,.778],8824:[.716,.253,.778],8825:[.716,.253,.778],8826:[.539,.041,.778],8827:[.539,.041,.778],8828:[.58,.153,.778],8829:[.58,.154,.778],8830:[.732,.228,.778],8831:[.732,.228,.778],8832:[.705,.208,.778],8833:[.705,.208,.778],8834:[.54,.04,.778],8835:[.54,.04,.778],8836:[.716,.215,.778],8837:[.716,.215,.778],8838:[.636,.138,.778],8839:[.636,.138,.778],8840:[.801,.303,.778],8841:[.801,.303,.778],8842:[.635,.241,.778],8843:[.635,.241,.778],8846:[.598,.022,.667],8847:[.539,.041,.778],8848:[.539,.041,.778],8849:[.636,.138,.778],8850:[.636,.138,.778],8851:[.598,0,.667],8852:[.598,0,.667],8853:[.583,.083,.778],8854:[.583,.083,.778],8855:[.583,.083,.778],8856:[.583,.083,.778],8857:[.583,.083,.778],8858:[.582,.082,.778],8859:[.582,.082,.778],8861:[.582,.082,.778],8862:[.689,0,.778],8863:[.689,0,.778],8864:[.689,0,.778],8865:[.689,0,.778],8866:[.694,0,.611],8867:[.694,0,.611],8868:[.668,0,.778],8869:[.668,0,.778],8872:[.75,.249,.867],8873:[.694,0,.722],8874:[.694,0,.889],8876:[.695,0,.611],8877:[.695,0,.611],8878:[.695,0,.722],8879:[.695,0,.722],8882:[.539,.041,.778],8883:[.539,.041,.778],8884:[.636,.138,.778],8885:[.636,.138,.778],8888:[.408,-.092,1.111],8890:[.431,.212,.556],8891:[.716,0,.611],8892:[.716,0,.611],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8900:[.488,-.012,.5],8901:[.31,-.19,.278],8902:[.486,-.016,.5],8903:[.545,.044,.778],8904:[.505,.005,.9],8905:[.492,-.008,.778],8906:[.492,-.008,.778],8907:[.694,.022,.778],8908:[.694,.022,.778],8909:[.464,-.036,.778],8910:[.578,.021,.76],8911:[.578,.022,.76],8912:[.54,.04,.778],8913:[.54,.04,.778],8914:[.598,.022,.667],8915:[.598,.022,.667],8916:[.736,.022,.667],8918:[.541,.041,.778],8919:[.541,.041,.778],8920:[.568,.067,1.333],8921:[.568,.067,1.333],8922:[.886,.386,.778],8923:[.886,.386,.778],8926:[.734,0,.778],8927:[.734,0,.778],8928:[.801,.303,.778],8929:[.801,.303,.778],8930:[.716,.215,.778],8931:[.716,.215,.778],8934:[.73,.359,.778],8935:[.73,.359,.778],8936:[.73,.359,.778],8937:[.73,.359,.778],8938:[.706,.208,.778],8939:[.706,.208,.778],8940:[.802,.303,.778],8941:[.801,.303,.778],8942:[1.3,.03,.278],8943:[.31,-.19,1.172],8945:[1.52,-.1,1.282],8965:[.716,0,.611],8966:[.813,.097,.611],8968:[.75,.25,.444],8969:[.75,.25,.444],8970:[.75,.25,.444],8971:[.75,.25,.444],8988:[.694,-.306,.5],8989:[.694,-.306,.5],8990:[.366,.022,.5],8991:[.366,.022,.5],8994:[.388,-.122,1],8995:[.378,-.134,1],9001:[.75,.25,.389],9002:[.75,.25,.389],9136:[.744,.244,.412],9137:[.744,.244,.412],9168:[.602,0,.667],9416:[.709,.175,.902],9484:[.694,-.306,.5],9488:[.694,-.306,.5],9492:[.366,.022,.5],9496:[.366,.022,.5],9585:[.694,.195,.889],9586:[.694,.195,.889],9632:[.689,0,.778],9633:[.689,0,.778],9642:[.689,0,.778],9650:[.575,.02,.722],9651:[.716,0,.889],9652:[.575,.02,.722],9653:[.716,0,.889],9654:[.539,.041,.778],9656:[.539,.041,.778],9657:[.505,.005,.5],9660:[.576,.019,.722],9661:[.5,.215,.889],9662:[.576,.019,.722],9663:[.5,.215,.889],9664:[.539,.041,.778],9666:[.539,.041,.778],9667:[.505,.005,.5],9674:[.716,.132,.667],9711:[.715,.215,1],9723:[.689,0,.778],9724:[.689,0,.778],9733:[.694,.111,.944],9824:[.727,.13,.778],9825:[.716,.033,.778],9826:[.727,.162,.778],9827:[.726,.13,.778],9837:[.75,.022,.389],9838:[.734,.223,.389],9839:[.723,.223,.389],10003:[.706,.034,.833],10016:[.716,.022,.833],10072:[.75,.249,.278],10216:[.75,.25,.389],10217:[.75,.25,.389],10222:[.744,.244,.412],10223:[.744,.244,.412],10229:[.511,.011,1.609],10230:[.511,.011,1.638],10231:[.511,.011,1.859],10232:[.525,.024,1.609],10233:[.525,.024,1.638],10234:[.525,.024,1.858],10236:[.511,.011,1.638],10731:[.716,.132,.667],10744:[.716,.215,.778],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],10799:[.491,-.009,.778],10815:[.683,0,.75],10846:[.813,.097,.611],10877:[.636,.138,.778],10878:[.636,.138,.778],10885:[.762,.29,.778],10886:[.762,.29,.778],10887:[.635,.241,.778],10888:[.635,.241,.778],10889:[.761,.387,.778],10890:[.761,.387,.778],10891:[1.003,.463,.778],10892:[1.003,.463,.778],10901:[.636,.138,.778],10902:[.636,.138,.778],10927:[.636,.138,.778],10928:[.636,.138,.778],10933:[.752,.286,.778],10934:[.752,.286,.778],10935:[.761,.294,.778],10936:[.761,.294,.778],10937:[.761,.337,.778],10938:[.761,.337,.778],10949:[.753,.215,.778],10950:[.753,.215,.778],10955:[.783,.385,.778],10956:[.783,.385,.778],12296:[.75,.25,.389],12297:[.75,.25,.389],57350:[.43,.023,.222,{ic:.018}],57351:[.431,.024,.389,{ic:.018}],57352:[.605,.085,.778],57353:[.434,.006,.667,{ic:.067}],57356:[.752,.284,.778],57357:[.752,.284,.778],57358:[.919,.421,.778],57359:[.801,.303,.778],57360:[.801,.303,.778],57361:[.919,.421,.778],57366:[.828,.33,.778],57367:[.752,.332,.778],57368:[.828,.33,.778],57369:[.752,.333,.778],57370:[.634,.255,.778],57371:[.634,.254,.778],119808:[.698,0,.869],119809:[.686,0,.818],119810:[.697,.011,.831],119811:[.686,0,.882],119812:[.68,0,.756],119813:[.68,0,.724],119814:[.697,.01,.904],119815:[.686,0,.9],119816:[.686,0,.436],119817:[.686,.011,.594],119818:[.686,0,.901],119819:[.686,0,.692],119820:[.686,0,1.092],119821:[.686,0,.9],119822:[.696,.01,.864],119823:[.686,0,.786],119824:[.696,.193,.864],119825:[.686,.011,.862],119826:[.697,.011,.639],119827:[.675,0,.8],119828:[.686,.011,.885],119829:[.686,.007,.869],119830:[.686,.007,1.189],119831:[.686,0,.869],119832:[.686,0,.869],119833:[.686,0,.703],119834:[.453,.006,.559],119835:[.694,.006,.639],119836:[.453,.006,.511],119837:[.694,.006,.639],119838:[.452,.006,.527],119839:[.7,0,.351,{ic:.101}],119840:[.455,.201,.575],119841:[.694,0,.639],119842:[.695,0,.319],119843:[.695,.2,.351],119844:[.694,0,.607],119845:[.694,0,.319],119846:[.45,0,.958],119847:[.45,0,.639],119848:[.452,.005,.575],119849:[.45,.194,.639],119850:[.45,.194,.607],119851:[.45,0,.474],119852:[.453,.006,.454],119853:[.635,.005,.447],119854:[.45,.006,.639],119855:[.444,0,.607],119856:[.444,0,.831],119857:[.444,0,.607],119858:[.444,.2,.607],119859:[.444,0,.511],119860:[.716,0,.75,{sk:.139}],119861:[.683,0,.759,{sk:.0833}],119862:[.705,.022,.715,{ic:.045,sk:.0833}],119863:[.683,0,.828,{sk:.0556}],119864:[.68,0,.738,{ic:.026,sk:.0833}],119865:[.68,0,.643,{ic:.106,sk:.0833}],119866:[.705,.022,.786,{sk:.0833}],119867:[.683,0,.831,{ic:.057,sk:.0556}],119868:[.683,0,.44,{ic:.064,sk:.111}],119869:[.683,.022,.555,{ic:.078,sk:.167}],119870:[.683,0,.849,{ic:.04,sk:.0556}],119871:[.683,0,.681,{sk:.0278}],119872:[.683,0,.97,{ic:.081,sk:.0833}],119873:[.683,0,.803,{ic:.085,sk:.0833}],119874:[.704,.022,.763,{sk:.0833}],119875:[.683,0,.642,{ic:.109,sk:.0833}],119876:[.704,.194,.791,{sk:.0833}],119877:[.683,.021,.759,{sk:.0833}],119878:[.705,.022,.613,{ic:.032,sk:.0833}],119879:[.677,0,.584,{ic:.12,sk:.0833}],119880:[.683,.022,.683,{ic:.084,sk:.0278}],119881:[.683,.022,.583,{ic:.186}],119882:[.683,.022,.944,{ic:.104}],119883:[.683,0,.828,{ic:.024,sk:.0833}],119884:[.683,0,.581,{ic:.182}],119885:[.683,0,.683,{ic:.04,sk:.0833}],119886:[.441,.01,.529],119887:[.694,.011,.429],119888:[.442,.011,.433,{sk:.0556}],119889:[.694,.01,.52,{sk:.167}],119890:[.442,.011,.466,{sk:.0556}],119891:[.705,.205,.49,{ic:.06,sk:.167}],119892:[.442,.205,.477,{sk:.0278}],119894:[.661,.011,.345],119895:[.661,.204,.412],119896:[.694,.011,.521],119897:[.694,.011,.298,{sk:.0833}],119898:[.442,.011,.878],119899:[.442,.011,.6],119900:[.441,.011,.485,{sk:.0556}],119901:[.442,.194,.503,{sk:.0833}],119902:[.442,.194,.446,{ic:.014,sk:.0833}],119903:[.442,.011,.451,{sk:.0556}],119904:[.442,.01,.469,{sk:.0556}],119905:[.626,.011,.361,{sk:.0833}],119906:[.442,.011,.572,{sk:.0278}],119907:[.443,.011,.485,{sk:.0278}],119908:[.443,.011,.716,{sk:.0833}],119909:[.442,.011,.572,{sk:.0278}],119910:[.442,.205,.49,{sk:.0556}],119911:[.442,.011,.465,{sk:.0556}],119912:[.711,0,.869,{sk:.16}],119913:[.686,0,.866,{sk:.0958}],119914:[.703,.017,.817,{ic:.038,sk:.0958}],119915:[.686,0,.938,{sk:.0639}],119916:[.68,0,.81,{ic:.015,sk:.0958}],119917:[.68,0,.689,{ic:.12,sk:.0958}],119918:[.703,.016,.887,{sk:.0958}],119919:[.686,0,.982,{ic:.045,sk:.0639}],119920:[.686,0,.511,{ic:.062,sk:.128}],119921:[.686,.017,.631,{ic:.063,sk:.192}],119922:[.686,0,.971,{ic:.032,sk:.0639}],119923:[.686,0,.756,{sk:.0319}],119924:[.686,0,1.142,{ic:.077,sk:.0958}],119925:[.686,0,.95,{ic:.077,sk:.0958}],119926:[.703,.017,.837,{sk:.0958}],119927:[.686,0,.723,{ic:.124,sk:.0958}],119928:[.703,.194,.869,{sk:.0958}],119929:[.686,.017,.872,{sk:.0958}],119930:[.703,.017,.693,{ic:.021,sk:.0958}],119931:[.675,0,.637,{ic:.135,sk:.0958}],119932:[.686,.016,.8,{ic:.077,sk:.0319}],119933:[.686,.016,.678,{ic:.208}],119934:[.686,.017,1.093,{ic:.114}],119935:[.686,0,.947,{sk:.0958}],119936:[.686,0,.675,{ic:.201}],119937:[.686,0,.773,{ic:.032,sk:.0958}],119938:[.452,.008,.633],119939:[.694,.008,.521],119940:[.451,.008,.513,{sk:.0639}],119941:[.694,.008,.61,{sk:.192}],119942:[.452,.008,.554,{sk:.0639}],119943:[.701,.201,.568,{ic:.056,sk:.192}],119944:[.452,.202,.545,{sk:.0319}],119945:[.694,.008,.668,{sk:-.0319}],119946:[.694,.008,.405],119947:[.694,.202,.471],119948:[.694,.008,.604],119949:[.694,.008,.348,{sk:.0958}],119950:[.452,.008,1.032],119951:[.452,.008,.713],119952:[.452,.008,.585,{sk:.0639}],119953:[.452,.194,.601,{sk:.0958}],119954:[.452,.194,.542,{sk:.0958}],119955:[.452,.008,.529,{sk:.0639}],119956:[.451,.008,.531,{sk:.0639}],119957:[.643,.007,.415,{sk:.0958}],119958:[.452,.008,.681,{sk:.0319}],119959:[.453,.008,.567,{sk:.0319}],119960:[.453,.008,.831,{sk:.0958}],119961:[.452,.008,.659,{sk:.0319}],119962:[.452,.202,.59,{sk:.0639}],119963:[.452,.008,.555,{sk:.0639}],119964:[.717,.008,.803,{ic:.213,sk:.389}],119966:[.728,.026,.666,{ic:.153,sk:.278}],119967:[.708,.031,.774,{ic:.081,sk:.111}],119970:[.717,.037,.61,{ic:.128,sk:.25}],119973:[.717,.314,1.052,{ic:.081,sk:.417}],119974:[.717,.037,.914,{ic:.29,sk:.361}],119977:[.726,.036,.902,{ic:.306,sk:.389}],119978:[.707,.008,.738,{ic:.067,sk:.167}],119979:[.716,.037,1.013,{ic:.018,sk:.222}],119980:[.717,.017,.883,{sk:.278}],119982:[.708,.036,.868,{ic:.148,sk:.333}],119983:[.735,.037,.747,{ic:.249,sk:.222}],119984:[.717,.017,.8,{ic:.16,sk:.25}],119985:[.717,.017,.622,{ic:.228,sk:.222}],119986:[.717,.017,.805,{ic:.221,sk:.25}],119987:[.717,.017,.944,{ic:.187,sk:.278}],119988:[.716,.017,.71,{ic:.249,sk:.194}],119989:[.717,.016,.821,{ic:.211,sk:.306}],120068:[.696,.026,.718],120069:[.691,.027,.884],120071:[.685,.027,.832],120072:[.685,.024,.663],120073:[.686,.153,.611],120074:[.69,.026,.785],120077:[.686,.139,.552],120078:[.68,.027,.668,{ic:.014}],120079:[.686,.026,.666],120080:[.692,.027,1.05],120081:[.686,.025,.832],120082:[.729,.027,.827],120083:[.692,.218,.828],120084:[.729,.069,.827],120086:[.692,.027,.829],120087:[.701,.027,.669],120088:[.697,.027,.646,{ic:.019}],120089:[.686,.026,.831],120090:[.686,.027,1.046],120091:[.688,.027,.719],120092:[.686,.218,.833],120094:[.47,.035,.5],120095:[.685,.031,.513],120096:[.466,.029,.389],120097:[.609,.033,.499],120098:[.467,.03,.401],120099:[.681,.221,.326],120100:[.47,.209,.504],120101:[.688,.205,.521],120102:[.673,.02,.279],120103:[.672,.208,.281],120104:[.689,.025,.389],120105:[.685,.02,.28],120106:[.475,.026,.767],120107:[.475,.022,.527],120108:[.48,.028,.489],120109:[.541,.212,.5],120110:[.479,.219,.489],120111:[.474,.021,.389],120112:[.478,.029,.443],120113:[.64,.02,.333,{ic:.015}],120114:[.474,.023,.517],120115:[.53,.028,.512],120116:[.532,.028,.774],120117:[.472,.188,.389],120118:[.528,.218,.499],120119:[.471,.214,.391],120120:[.701,0,.722],120121:[.683,0,.667],120123:[.683,0,.722],120124:[.683,0,.667],120125:[.683,0,.611],120126:[.702,.019,.778],120128:[.683,0,.389],120129:[.683,.077,.5],120130:[.683,0,.778],120131:[.683,0,.667],120132:[.683,0,.944],120134:[.701,.019,.778],120138:[.702,.012,.556],120139:[.683,0,.667],120140:[.683,.019,.722],120141:[.683,.02,.722],120142:[.683,.019,1],120143:[.683,0,.722],120144:[.683,0,.722],120172:[.686,.031,.847],120173:[.684,.031,1.044],120174:[.676,.032,.723],120175:[.683,.029,.982],120176:[.686,.029,.783],120177:[.684,.146,.722],120178:[.687,.029,.927],120179:[.683,.126,.851],120180:[.681,.025,.655],120181:[.68,.141,.652],120182:[.681,.026,.789,{ic:.017}],120183:[.683,.028,.786],120184:[.683,.032,1.239],120185:[.679,.03,.983],120186:[.726,.03,.976],120187:[.688,.223,.977],120188:[.726,.083,.976],120189:[.688,.028,.978],120190:[.685,.031,.978],120191:[.686,.03,.79,{ic:.012}],120192:[.688,.039,.851,{ic:.02}],120193:[.685,.029,.982],120194:[.683,.03,1.235],120195:[.681,.035,.849],120196:[.688,.214,.984],120197:[.677,.148,.711],120198:[.472,.032,.603],120199:[.69,.032,.59],120200:[.473,.026,.464],120201:[.632,.028,.589],120202:[.471,.027,.472],120203:[.687,.222,.388],120204:[.472,.208,.595],120205:[.687,.207,.615],120206:[.686,.025,.331],120207:[.682,.203,.332],120208:[.682,.025,.464],120209:[.681,.024,.337],120210:[.476,.031,.921],120211:[.473,.028,.654],120212:[.482,.034,.609],120213:[.557,.207,.604],120214:[.485,.211,.596],120215:[.472,.026,.46],120216:[.479,.034,.523],120217:[.648,.027,.393,{ic:.014}],120218:[.472,.032,.589,{ic:.014}],120219:[.546,.027,.604],120220:[.549,.032,.918],120221:[.471,.188,.459],120222:[.557,.221,.589],120223:[.471,.214,.461],120224:[.694,0,.667],120225:[.694,0,.667],120226:[.705,.011,.639],120227:[.694,0,.722],120228:[.691,0,.597],120229:[.691,0,.569],120230:[.704,.011,.667],120231:[.694,0,.708],120232:[.694,0,.278],120233:[.694,.022,.472],120234:[.694,0,.694],120235:[.694,0,.542],120236:[.694,0,.875],120237:[.694,0,.708],120238:[.715,.022,.736],120239:[.694,0,.639],120240:[.715,.125,.736],120241:[.694,0,.646],120242:[.716,.022,.556],120243:[.688,0,.681],120244:[.694,.022,.688],120245:[.694,0,.667],120246:[.694,0,.944],120247:[.694,0,.667],120248:[.694,0,.667],120249:[.694,0,.611],120250:[.46,.01,.481],120251:[.694,.011,.517],120252:[.46,.01,.444],120253:[.694,.01,.517],120254:[.461,.01,.444],120255:[.705,0,.306,{ic:.041}],120256:[.455,.206,.5],120257:[.694,0,.517],120258:[.68,0,.239],120259:[.68,.205,.267],120260:[.694,0,.489],120261:[.694,0,.239],120262:[.455,0,.794],120263:[.455,0,.517],120264:[.46,.01,.5],120265:[.455,.194,.517],120266:[.455,.194,.517],120267:[.455,0,.342],120268:[.46,.01,.383],120269:[.571,.01,.361],120270:[.444,.01,.517],120271:[.444,0,.461],120272:[.444,0,.683],120273:[.444,0,.461],120274:[.444,.204,.461],120275:[.444,0,.435],120276:[.694,0,.733],120277:[.694,0,.733],120278:[.704,.011,.703],120279:[.694,0,.794],120280:[.691,0,.642],120281:[.691,0,.611],120282:[.705,.011,.733],120283:[.694,0,.794],120284:[.694,0,.331],120285:[.694,.022,.519],120286:[.694,0,.764],120287:[.694,0,.581],120288:[.694,0,.978],120289:[.694,0,.794],120290:[.716,.022,.794],120291:[.694,0,.703],120292:[.716,.106,.794],120293:[.694,0,.703],120294:[.716,.022,.611],120295:[.688,0,.733],120296:[.694,.022,.764],120297:[.694,0,.733],120298:[.694,0,1.039],120299:[.694,0,.733],120300:[.694,0,.733],120301:[.694,0,.672],120302:[.475,.011,.525],120303:[.694,.01,.561],120304:[.475,.011,.489],120305:[.694,.011,.561],120306:[.474,.01,.511],120307:[.705,0,.336,{ic:.045}],120308:[.469,.206,.55],120309:[.694,0,.561],120310:[.695,0,.256],120311:[.695,.205,.286],120312:[.694,0,.531],120313:[.694,0,.256],120314:[.469,0,.867],120315:[.468,0,.561],120316:[.474,.011,.55],120317:[.469,.194,.561],120318:[.469,.194,.561],120319:[.469,0,.372],120320:[.474,.01,.422],120321:[.589,.01,.404],120322:[.458,.011,.561],120323:[.458,0,.5],120324:[.458,0,.744],120325:[.458,0,.5],120326:[.458,.205,.5],120327:[.458,0,.476],120328:[.694,0,.667],120329:[.694,0,.667,{ic:.029}],120330:[.705,.01,.639,{ic:.08}],120331:[.694,0,.722,{ic:.025}],120332:[.691,0,.597,{ic:.091}],120333:[.691,0,.569,{ic:.104}],120334:[.705,.011,.667,{ic:.063}],120335:[.694,0,.708,{ic:.06}],120336:[.694,0,.278,{ic:.06}],120337:[.694,.022,.472,{ic:.063}],120338:[.694,0,.694,{ic:.091}],120339:[.694,0,.542],120340:[.694,0,.875,{ic:.054}],120341:[.694,0,.708,{ic:.058}],120342:[.716,.022,.736,{ic:.027}],120343:[.694,0,.639,{ic:.051}],120344:[.716,.125,.736,{ic:.027}],120345:[.694,0,.646,{ic:.052}],120346:[.716,.022,.556,{ic:.053}],120347:[.688,0,.681,{ic:.109}],120348:[.694,.022,.688,{ic:.059}],120349:[.694,0,.667,{ic:.132}],120350:[.694,0,.944,{ic:.132}],120351:[.694,0,.667,{ic:.091}],120352:[.694,0,.667,{ic:.143}],120353:[.694,0,.611,{ic:.091}],120354:[.461,.01,.481],120355:[.694,.011,.517,{ic:.022}],120356:[.46,.011,.444,{ic:.055}],120357:[.694,.01,.517,{ic:.071}],120358:[.46,.011,.444,{ic:.028}],120359:[.705,0,.306,{ic:.188}],120360:[.455,.206,.5,{ic:.068}],120361:[.694,0,.517],120362:[.68,0,.239,{ic:.076}],120363:[.68,.204,.267,{ic:.069}],120364:[.694,0,.489,{ic:.054}],120365:[.694,0,.239,{ic:.072}],120366:[.455,0,.794],120367:[.454,0,.517],120368:[.461,.011,.5,{ic:.023}],120369:[.455,.194,.517,{ic:.021}],120370:[.455,.194,.517,{ic:.021}],120371:[.455,0,.342,{ic:.082}],120372:[.461,.011,.383,{ic:.053}],120373:[.571,.011,.361,{ic:.049}],120374:[.444,.01,.517,{ic:.02}],120375:[.444,0,.461,{ic:.079}],120376:[.444,0,.683,{ic:.079}],120377:[.444,0,.461,{ic:.076}],120378:[.444,.205,.461,{ic:.079}],120379:[.444,0,.435,{ic:.059}],120432:[.623,0,.525],120433:[.611,0,.525],120434:[.622,.011,.525],120435:[.611,0,.525],120436:[.611,0,.525],120437:[.611,0,.525],120438:[.622,.011,.525],120439:[.611,0,.525],120440:[.611,0,.525],120441:[.611,.011,.525],120442:[.611,0,.525],120443:[.611,0,.525],120444:[.611,0,.525],120445:[.611,0,.525],120446:[.621,.01,.525],120447:[.611,0,.525],120448:[.621,.138,.525],120449:[.611,.011,.525],120450:[.622,.011,.525],120451:[.611,0,.525],120452:[.611,.011,.525],120453:[.611,.007,.525],120454:[.611,.007,.525],120455:[.611,0,.525],120456:[.611,0,.525],120457:[.611,0,.525],120458:[.439,.006,.525],120459:[.611,.006,.525],120460:[.44,.006,.525],120461:[.611,.006,.525],120462:[.44,.006,.525],120463:[.617,0,.525],120464:[.442,.229,.525],120465:[.611,0,.525],120466:[.612,0,.525],120467:[.612,.228,.525],120468:[.611,0,.525],120469:[.611,0,.525],120470:[.436,0,.525,{ic:.011}],120471:[.436,0,.525],120472:[.44,.006,.525],120473:[.437,.221,.525],120474:[.437,.221,.525,{ic:.02}],120475:[.437,0,.525],120476:[.44,.006,.525],120477:[.554,.006,.525],120478:[.431,.005,.525],120479:[.431,0,.525],120480:[.431,0,.525],120481:[.431,0,.525],120482:[.431,.228,.525],120483:[.431,0,.525],120488:[.698,0,.869],120489:[.686,0,.818],120490:[.68,0,.692],120491:[.698,0,.958],120492:[.68,0,.756],120493:[.686,0,.703],120494:[.686,0,.9],120495:[.696,.01,.894],120496:[.686,0,.436],120497:[.686,0,.901],120498:[.698,0,.806],120499:[.686,0,1.092],120500:[.686,0,.9],120501:[.675,0,.767],120502:[.696,.01,.864],120503:[.68,0,.9],120504:[.686,0,.786],120506:[.686,0,.831],120507:[.675,0,.8],120508:[.697,0,.894],120509:[.686,0,.831],120510:[.686,0,.869],120511:[.686,0,.894],120512:[.696,0,.831],120513:[.686,.024,.958],120546:[.716,0,.75,{sk:.139}],120547:[.683,0,.759,{sk:.0833}],120548:[.68,0,.615,{ic:.106,sk:.0833}],120549:[.716,0,.833,{sk:.167}],120550:[.68,0,.738,{ic:.026,sk:.0833}],120551:[.683,0,.683,{ic:.04,sk:.0833}],120552:[.683,0,.831,{ic:.057,sk:.0556}],120553:[.704,.022,.763,{sk:.0833}],120554:[.683,0,.44,{ic:.064,sk:.111}],120555:[.683,0,.849,{ic:.04,sk:.0556}],120556:[.716,0,.694,{sk:.167}],120557:[.683,0,.97,{ic:.081,sk:.0833}],120558:[.683,0,.803,{ic:.085,sk:.0833}],120559:[.677,0,.742,{ic:.035,sk:.0833}],120560:[.704,.022,.763,{sk:.0833}],120561:[.68,0,.831,{ic:.056,sk:.0556}],120562:[.683,0,.642,{ic:.109,sk:.0833}],120564:[.683,0,.78,{ic:.026,sk:.0833}],120565:[.677,0,.584,{ic:.12,sk:.0833}],120566:[.705,0,.583,{ic:.117,sk:.0556}],120567:[.683,0,.667,{sk:.0833}],120568:[.683,0,.828,{ic:.024,sk:.0833}],120569:[.683,0,.612,{ic:.08,sk:.0556}],120570:[.704,0,.772,{ic:.014,sk:.0833}],120572:[.442,.011,.64,{sk:.0278}],120573:[.705,.194,.566,{sk:.0833}],120574:[.441,.216,.518,{ic:.025}],120575:[.717,.01,.444,{sk:.0556}],120576:[.452,.022,.466,{sk:.0833}],120577:[.704,.204,.438,{ic:.033,sk:.0833}],120578:[.442,.216,.497,{sk:.0556}],120579:[.705,.01,.469,{sk:.0833}],120580:[.442,.01,.354,{sk:.0556}],120581:[.442,.011,.576],120582:[.694,.012,.583],120583:[.442,.216,.603,{sk:.0278}],120584:[.442,0,.494,{ic:.036,sk:.0278}],120585:[.704,.205,.438,{sk:.111}],120586:[.441,.011,.485,{sk:.0556}],120587:[.431,.011,.57],120588:[.442,.216,.517,{sk:.0833}],120589:[.442,.107,.363,{ic:.042,sk:.0833}],120590:[.431,.011,.571],120591:[.431,.013,.437,{ic:.08,sk:.0278}],120592:[.443,.01,.54,{sk:.0278}],120593:[.442,.218,.654,{sk:.0833}],120594:[.442,.204,.626,{sk:.0556}],120595:[.694,.205,.651,{sk:.111}],120596:[.443,.011,.622],120597:[.715,.022,.531,{ic:.035,sk:.0833}],120598:[.431,.011,.406,{sk:.0556}],120599:[.705,.011,.591,{sk:.0833}],120600:[.434,.006,.667,{ic:.067}],120601:[.694,.205,.596,{sk:.0833}],120602:[.442,.194,.517,{sk:.0833}],120603:[.431,.01,.828],120604:[.711,0,.869,{sk:.16}],120605:[.686,0,.866,{sk:.0958}],120606:[.68,0,.657,{ic:.12,sk:.0958}],120607:[.711,0,.958,{sk:.192}],120608:[.68,0,.81,{ic:.015,sk:.0958}],120609:[.686,0,.773,{ic:.032,sk:.0958}],120610:[.686,0,.982,{ic:.045,sk:.0639}],120611:[.702,.017,.867,{sk:.0958}],120612:[.686,0,.511,{ic:.062,sk:.128}],120613:[.686,0,.971,{ic:.032,sk:.0639}],120614:[.711,0,.806,{sk:.192}],120615:[.686,0,1.142,{ic:.077,sk:.0958}],120616:[.686,0,.95,{ic:.077,sk:.0958}],120617:[.675,0,.841,{ic:.026,sk:.0958}],120618:[.703,.017,.837,{sk:.0958}],120619:[.68,0,.982,{ic:.044,sk:.0639}],120620:[.686,0,.723,{ic:.124,sk:.0958}],120622:[.686,0,.885,{ic:.017,sk:.0958}],120623:[.675,0,.637,{ic:.135,sk:.0958}],120624:[.703,0,.671,{ic:.131,sk:.0639}],120625:[.686,0,.767,{sk:.0958}],120626:[.686,0,.947,{sk:.0958}],120627:[.686,0,.714,{ic:.076,sk:.0639}],120628:[.703,0,.879,{sk:.0958}],120630:[.452,.008,.761,{sk:.0319}],120631:[.701,.194,.66,{sk:.0958}],120632:[.451,.211,.59,{ic:.027}],120633:[.725,.008,.522,{sk:.0639}],120634:[.461,.017,.529,{sk:.0958}],120635:[.711,.202,.508,{ic:.013,sk:.0958}],120636:[.452,.211,.6,{sk:.0639}],120637:[.702,.008,.562,{sk:.0958}],120638:[.452,.008,.412,{sk:.0639}],120639:[.452,.008,.668],120640:[.694,.013,.671],120641:[.452,.211,.708,{sk:.0319}],120642:[.452,0,.577,{ic:.031,sk:.0319}],120643:[.711,.201,.508,{sk:.128}],120644:[.452,.008,.585,{sk:.0639}],120645:[.444,.008,.682],120646:[.451,.211,.612,{sk:.0958}],120647:[.451,.105,.424,{ic:.033,sk:.0958}],120648:[.444,.008,.686],120649:[.444,.013,.521,{ic:.089,sk:.0319}],120650:[.453,.008,.631,{sk:.0319}],120651:[.452,.216,.747,{sk:.0958}],120652:[.452,.201,.718,{sk:.0639}],120653:[.694,.202,.758,{sk:.128}],120654:[.453,.008,.718],120655:[.71,.017,.628,{ic:.029,sk:.0958}],120656:[.444,.007,.483,{sk:.0639}],120657:[.701,.008,.692,{sk:.0958}],120658:[.434,.006,.667,{ic:.067}],120659:[.694,.202,.712,{sk:.0958}],120660:[.451,.194,.612,{sk:.0958}],120661:[.444,.008,.975],120662:[.694,0,.733],120663:[.694,0,.733],120664:[.691,0,.581],120665:[.694,0,.917],120666:[.691,0,.642],120667:[.694,0,.672],120668:[.694,0,.794],120669:[.716,.022,.856],120670:[.694,0,.331],120671:[.694,0,.764],120672:[.694,0,.672],120673:[.694,0,.978],120674:[.694,0,.794],120675:[.688,0,.733],120676:[.716,.022,.794],120677:[.691,0,.794],120678:[.694,0,.703],120680:[.694,0,.794],120681:[.688,0,.733],120682:[.715,0,.856],120683:[.694,0,.794],120684:[.694,0,.733],120685:[.694,0,.856],120686:[.716,0,.794],120782:[.654,.01,.575],120783:[.655,0,.575],120784:[.654,0,.575],120785:[.655,.011,.575],120786:[.656,0,.575],120787:[.655,.011,.575],120788:[.655,.011,.575],120789:[.676,.011,.575],120790:[.654,.011,.575],120791:[.654,.011,.575],120802:[.678,.022,.5],120803:[.678,0,.5],120804:[.677,0,.5],120805:[.678,.022,.5],120806:[.656,0,.5],120807:[.656,.021,.5],120808:[.677,.022,.5],120809:[.656,.011,.5],120810:[.678,.022,.5],120811:[.677,.022,.5],120812:[.715,.022,.55],120813:[.716,0,.55],120814:[.716,0,.55],120815:[.716,.022,.55],120816:[.694,0,.55],120817:[.694,.022,.55],120818:[.716,.022,.55],120819:[.695,.011,.55],120820:[.715,.022,.55],120821:[.716,.022,.55],120822:[.621,.01,.525],120823:[.622,0,.525],120824:[.622,0,.525],120825:[.622,.011,.525],120826:[.624,0,.525],120827:[.611,.01,.525],120828:[.622,.011,.525],120829:[.627,.01,.525],120830:[.621,.01,.525],120831:[.622,.011,.525]}},4886:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBoldItalic=void 0,e.sansSerifBoldItalic={305:[.458,0,.256],567:[.458,.205,.286]}},4471:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifBold=void 0,e.sansSerifBold={33:[.694,0,.367],34:[.694,-.442,.558],35:[.694,.193,.917],36:[.75,.056,.55],37:[.75,.056,1.029],38:[.716,.022,.831],39:[.694,-.442,.306],40:[.75,.249,.428],41:[.75,.25,.428],42:[.75,-.293,.55],43:[.617,.116,.856],44:[.146,.106,.306],45:[.273,-.186,.367],46:[.146,0,.306],47:[.75,.249,.55],58:[.458,0,.306],59:[.458,.106,.306],61:[.407,-.094,.856],63:[.705,0,.519],64:[.704,.011,.733],91:[.75,.25,.343],93:[.75,.25,.343],94:[.694,-.537,.55],95:[-.023,.11,.55],126:[.344,-.198,.55],305:[.458,0,.256],567:[.458,.205,.286],768:[.694,-.537,0],769:[.694,-.537,0],770:[.694,-.537,0],771:[.694,-.548,0],772:[.66,-.56,0],774:[.694,-.552,0],775:[.695,-.596,0],776:[.695,-.595,0],778:[.694,-.538,0],779:[.694,-.537,0],780:[.657,-.5,0],8211:[.327,-.24,.55],8212:[.327,-.24,1.1],8213:[.327,-.24,1.1],8215:[-.023,.11,.55],8216:[.694,-.443,.306],8217:[.694,-.442,.306],8220:[.694,-.443,.558],8221:[.694,-.442,.558],8260:[.75,.249,.55],8710:[.694,0,.917]}},5181:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerifItalic=void 0,e.sansSerifItalic={33:[.694,0,.319,{ic:.036}],34:[.694,-.471,.5],35:[.694,.194,.833,{ic:.018}],36:[.75,.056,.5,{ic:.065}],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278,{ic:.057}],40:[.75,.25,.389,{ic:.102}],41:[.75,.25,.389],42:[.75,-.306,.5,{ic:.068}],43:[.583,.083,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5,{ic:.1}],48:[.678,.022,.5,{ic:.049}],49:[.678,0,.5],50:[.678,0,.5,{ic:.051}],51:[.678,.022,.5,{ic:.044}],52:[.656,0,.5,{ic:.021}],53:[.656,.022,.5,{ic:.055}],54:[.678,.022,.5,{ic:.048}],55:[.656,.011,.5,{ic:.096}],56:[.678,.022,.5,{ic:.054}],57:[.677,.022,.5,{ic:.045}],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778,{ic:.018}],63:[.704,0,.472,{ic:.064}],64:[.705,.01,.667,{ic:.04}],91:[.75,.25,.289,{ic:.136}],93:[.75,.25,.289,{ic:.064}],94:[.694,-.527,.5,{ic:.033}],95:[-.038,.114,.5,{ic:.065}],126:[.327,-.193,.5,{ic:.06}],305:[.444,0,.239,{ic:.019}],567:[.444,.204,.267,{ic:.019}],768:[.694,-.527,0],769:[.694,-.527,0,{ic:.063}],770:[.694,-.527,0,{ic:.033}],771:[.677,-.543,0,{ic:.06}],772:[.631,-.552,0,{ic:.064}],774:[.694,-.508,0,{ic:.073}],775:[.68,-.576,0],776:[.68,-.582,0,{ic:.04}],778:[.693,-.527,0],779:[.694,-.527,0,{ic:.063}],780:[.654,-.487,0,{ic:.06}],913:[.694,0,.667],914:[.694,0,.667,{ic:.029}],915:[.691,0,.542,{ic:.104}],916:[.694,0,.833],917:[.691,0,.597,{ic:.091}],918:[.694,0,.611,{ic:.091}],919:[.694,0,.708,{ic:.06}],920:[.715,.022,.778,{ic:.026}],921:[.694,0,.278,{ic:.06}],922:[.694,0,.694,{ic:.091}],923:[.694,0,.611],924:[.694,0,.875,{ic:.054}],925:[.694,0,.708,{ic:.058}],926:[.688,0,.667,{ic:.098}],927:[.716,.022,.736,{ic:.027}],928:[.691,0,.708,{ic:.06}],929:[.694,0,.639,{ic:.051}],931:[.694,0,.722,{ic:.091}],932:[.688,0,.681,{ic:.109}],933:[.716,0,.778,{ic:.065}],934:[.694,0,.722,{ic:.021}],935:[.694,0,.667,{ic:.091}],936:[.694,0,.778,{ic:.076}],937:[.716,0,.722,{ic:.047}],8211:[.312,-.236,.5,{ic:.065}],8212:[.312,-.236,1,{ic:.065}],8213:[.312,-.236,1,{ic:.065}],8215:[-.038,.114,.5,{ic:.065}],8216:[.694,-.471,.278,{ic:.058}],8217:[.694,-.471,.278,{ic:.057}],8220:[.694,-.471,.5,{ic:.114}],8221:[.694,-.471,.5],8260:[.75,.25,.5,{ic:.1}],8710:[.694,0,.833]}},3526:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.sansSerif=void 0,e.sansSerif={33:[.694,0,.319],34:[.694,-.471,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.306,.5],43:[.583,.082,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778],63:[.704,0,.472],64:[.704,.011,.667],91:[.75,.25,.289],93:[.75,.25,.289],94:[.694,-.527,.5],95:[-.038,.114,.5],126:[.327,-.193,.5],305:[.444,0,.239],567:[.444,.205,.267],768:[.694,-.527,0],769:[.694,-.527,0],770:[.694,-.527,0],771:[.677,-.543,0],772:[.631,-.552,0],774:[.694,-.508,0],775:[.68,-.576,0],776:[.68,-.582,0],778:[.694,-.527,0],779:[.694,-.527,0],780:[.654,-.487,0],913:[.694,0,.667],914:[.694,0,.667],915:[.691,0,.542],916:[.694,0,.833],917:[.691,0,.597],918:[.694,0,.611],919:[.694,0,.708],920:[.716,.021,.778],921:[.694,0,.278],922:[.694,0,.694],923:[.694,0,.611],924:[.694,0,.875],925:[.694,0,.708],926:[.688,0,.667],927:[.715,.022,.736],928:[.691,0,.708],929:[.694,0,.639],931:[.694,0,.722],932:[.688,0,.681],933:[.716,0,.778],934:[.694,0,.722],935:[.694,0,.667],936:[.694,0,.778],937:[.716,0,.722],8211:[.312,-.236,.5],8212:[.312,-.236,1],8213:[.312,-.236,1],8215:[-.038,.114,.5],8216:[.694,-.471,.278],8217:[.694,-.471,.278],8220:[.694,-.471,.5],8221:[.694,-.471,.5],8260:[.75,.25,.5],8710:[.694,0,.833]}},5649:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.scriptBold=void 0,e.scriptBold={}},7153:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.script=void 0,e.script={}},5745:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.smallop=void 0,e.smallop={40:[.85,.349,.458],41:[.85,.349,.458],47:[.85,.349,.578],91:[.85,.349,.417],92:[.85,.349,.578],93:[.85,.349,.417],123:[.85,.349,.583],125:[.85,.349,.583],710:[.744,-.551,.556],732:[.722,-.597,.556],770:[.744,-.551,0],771:[.722,-.597,0],8214:[.602,0,.778],8260:[.85,.349,.578],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8730:[.85,.35,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[.805,.306,.472,{ic:.138}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8968:[.85,.349,.472],8969:[.85,.349,.472],8970:[.85,.349,.472],8971:[.85,.349,.472],9001:[.85,.35,.472],9002:[.85,.35,.472],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[.85,.35,.472],10217:[.85,.35,.472],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],12296:[.85,.35,.472],12297:[.85,.35,.472]}},1411:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphicBold=void 0,e.texCalligraphicBold={65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}]}},6384:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.texCalligraphic=void 0,e.texCalligraphic={65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]}},6041:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.texMathit=void 0,e.texMathit={65:[.716,0,.743],66:[.683,0,.704],67:[.705,.021,.716],68:[.683,0,.755],69:[.68,0,.678],70:[.68,0,.653],71:[.705,.022,.774],72:[.683,0,.743],73:[.683,0,.386],74:[.683,.021,.525],75:[.683,0,.769],76:[.683,0,.627],77:[.683,0,.897],78:[.683,0,.743],79:[.704,.022,.767],80:[.683,0,.678],81:[.704,.194,.767],82:[.683,.022,.729],83:[.705,.022,.562],84:[.677,0,.716],85:[.683,.022,.743],86:[.683,.022,.743],87:[.683,.022,.999],88:[.683,0,.743],89:[.683,0,.743],90:[.683,0,.613],97:[.442,.011,.511],98:[.694,.011,.46],99:[.441,.01,.46],100:[.694,.011,.511],101:[.442,.01,.46],102:[.705,.204,.307],103:[.442,.205,.46],104:[.694,.011,.511],105:[.656,.01,.307],106:[.656,.204,.307],107:[.694,.011,.46],108:[.694,.011,.256],109:[.442,.011,.818],110:[.442,.011,.562],111:[.442,.011,.511],112:[.442,.194,.511],113:[.442,.194,.46],114:[.442,.011,.422],115:[.442,.011,.409],116:[.626,.011,.332],117:[.441,.011,.537],118:[.443,.01,.46],119:[.443,.011,.664],120:[.442,.011,.464],121:[.441,.205,.486],122:[.442,.011,.409]}},8199:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyleBold=void 0,e.texOldstyleBold={48:[.46,.017,.575],49:[.461,0,.575],50:[.46,0,.575],51:[.461,.211,.575],52:[.469,.194,.575],53:[.461,.211,.575],54:[.66,.017,.575],55:[.476,.211,.575],56:[.661,.017,.575],57:[.461,.21,.575],65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}]}},9848:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.texOldstyle=void 0,e.texOldstyle={48:[.452,.022,.5],49:[.453,0,.5],50:[.453,0,.5],51:[.452,.216,.5],52:[.464,.194,.5],53:[.453,.216,.5],54:[.665,.022,.5],55:[.463,.216,.5],56:[.666,.021,.5],57:[.453,.216,.5],65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]}},7906:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.texSize3=void 0,e.texSize3={40:[1.45,.949,.736],41:[1.45,.949,.736],47:[1.45,.949,1.044],91:[1.45,.949,.528],92:[1.45,.949,1.044],93:[1.45,.949,.528],123:[1.45,.949,.75],125:[1.45,.949,.75],710:[.772,-.564,1.444],732:[.749,-.61,1.444],770:[.772,-.564,0],771:[.749,-.61,0],8260:[1.45,.949,1.044],8730:[1.45,.95,1,{ic:.02}],8968:[1.45,.949,.583],8969:[1.45,.949,.583],8970:[1.45,.949,.583],8971:[1.45,.949,.583],9001:[1.45,.95,.75],9002:[1.45,.949,.75],10216:[1.45,.95,.75],10217:[1.45,.949,.75],12296:[1.45,.95,.75],12297:[1.45,.949,.75]}},2644:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.texSize4=void 0,e.texSize4={40:[1.75,1.249,.792],41:[1.75,1.249,.792],47:[1.75,1.249,1.278],91:[1.75,1.249,.583],92:[1.75,1.249,1.278],93:[1.75,1.249,.583],123:[1.75,1.249,.806],125:[1.75,1.249,.806],710:[.845,-.561,1.889,{ic:.013}],732:[.823,-.583,1.889],770:[.845,-.561,0,{ic:.013}],771:[.823,-.583,0],8260:[1.75,1.249,1.278],8730:[1.75,1.25,1,{ic:.02}],8968:[1.75,1.249,.639],8969:[1.75,1.249,.639],8970:[1.75,1.249,.639],8971:[1.75,1.249,.639],9001:[1.75,1.248,.806],9002:[1.75,1.248,.806],9115:[1.154,.655,.875],9116:[.61,.01,.875],9117:[1.165,.644,.875],9118:[1.154,.655,.875],9119:[.61,.01,.875],9120:[1.165,.644,.875],9121:[1.154,.645,.667],9122:[.602,0,.667],9123:[1.155,.644,.667],9124:[1.154,.645,.667],9125:[.602,0,.667],9126:[1.155,.644,.667],9127:[.899,.01,.889],9128:[1.16,.66,.889],9129:[.01,.899,.889],9130:[.29,.015,.889],9131:[.899,.01,.889],9132:[1.16,.66,.889],9133:[.01,.899,.889],9143:[.935,.885,1.056],10216:[1.75,1.248,.806],10217:[1.75,1.248,.806],12296:[1.75,1.248,.806],12297:[1.75,1.248,.806],57344:[.625,.014,1.056],57345:[.605,.014,1.056,{ic:.02}],57680:[.12,.213,.45,{ic:.01}],57681:[.12,.213,.45,{ic:.024}],57682:[.333,0,.45,{ic:.01}],57683:[.333,0,.45,{ic:.024}],57684:[.32,.2,.4,{ic:.01}],57685:[.333,0,.9,{ic:.01}],57686:[.12,.213,.9,{ic:.01}]}},4926:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.texVariant=void 0,e.texVariant={710:[.845,-.561,2.333,{ic:.013}],732:[.899,-.628,2.333],770:[.845,-.561,0,{ic:.013}],771:[.899,-.628,0],1008:[.434,.006,.667,{ic:.067}],8463:[.695,.013,.54,{ic:.022}],8592:[.437,-.064,.5],8594:[.437,-.064,.5],8652:[.514,.014,1],8708:[.86,.166,.556],8709:[.587,0,.778],8722:[.27,-.23,.5],8726:[.43,.023,.778],8733:[.472,-.028,.778],8739:[.43,.023,.222],8740:[.43,.023,.222,{ic:.018}],8741:[.431,.023,.389],8742:[.431,.024,.389,{ic:.018}],8764:[.365,-.132,.778],8776:[.481,-.05,.778],8808:[.752,.284,.778],8809:[.752,.284,.778],8816:[.919,.421,.778],8817:[.919,.421,.778],8840:[.828,.33,.778],8841:[.828,.33,.778],8842:[.634,.255,.778],8843:[.634,.254,.778],8872:[.694,0,.611],8901:[.189,0,.278],8994:[.378,-.122,.778],8995:[.378,-.143,.778],9651:[.575,.02,.722],9661:[.576,.019,.722],10887:[.801,.303,.778],10888:[.801,.303,.778],10955:[.752,.332,.778],10956:[.752,.333,.778]}},5865:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(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],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.MJContextMenu=void 0,r(5073)),p=r(6186),r=(o=a.ContextMenu,i(h,o),h.prototype.post=function(t,e){var r,n;this.mathItem&&(void 0!==e&&(r=this.mathItem.inputJax.name,(n=this.findID("Show","Original")).content="MathML"===r?"Original MathML":r+" Commands",this.findID("Copy","Original").content=n.content,n=this.findID("Settings","semantics"),"MathML"===r?n.disable():n.enable(),this.getAnnotationMenu(),this.dynamicSubmenus()),o.prototype.post.call(this,t,e))},h.prototype.unpost=function(){o.prototype.unpost.call(this),this.mathItem=null},h.prototype.findID=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=this,i=null;try{for(var a=c(r),s=a.next();!s.done;s=a.next()){var l=s.value;o?o=(i=o.find(l))instanceof p.Submenu?i.submenu:null:i=null}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}return i},h.prototype.getAnnotationMenu=function(){var t=this,e=this.getAnnotations(this.getSemanticNode());this.createAnnotationMenu("Show",e,function(){return t.showAnnotation.post()}),this.createAnnotationMenu("Copy",e,function(){return t.copyAnnotation()})},h.prototype.getSemanticNode=function(){for(var t=this.mathItem.root;t&&!t.isKind("semantics");){if(t.isToken||1!==t.childNodes.length)return null;t=t.childNodes[0]}return t},h.prototype.getAnnotations=function(t){var e,r,n=[];if(!t)return n;try{for(var o=c(t.childNodes),i=o.next();!i.done;i=o.next()){var a,s,l=i.value;!l.isKind("annotation")||(a=this.annotationMatch(l))&&(s=l.childNodes.reduce(function(t,e){return t+e.toString()},""),n.push([a,s]))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n},h.prototype.annotationMatch=function(t){var e,r,n=t.attributes.get("encoding");try{for(var o=c(Object.keys(this.annotationTypes)),i=o.next();!i.done;i=o.next()){var a=i.value;if(0<=this.annotationTypes[a].indexOf(n))return a}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return null},h.prototype.createAnnotationMenu=function(t,e,n){var o=this,t=this.findID(t,"Annotation");t.submenu=this.factory.get("subMenu")(this.factory,{items:e.map(function(t){var t=u(t,2),e=t[0],r=t[1];return{type:"command",id:e,content:e,action:function(){o.annotation=r,n()}}}),id:"annotations"},t),e.length?t.enable():t.disable()},h.prototype.dynamicSubmenus=function(){var e,t;try{for(var r=c(h.DynamicSubmenus),n=r.next();!n.done;n=r.next()){var o,i=u(n.value,2),a=i[0],s=i[1],l=this.find(a);l&&(o=s(this,l),(l.submenu=o).items.length?l.enable():l.disable())}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},h.DynamicSubmenus=new Map,h);function h(){var t=null!==o&&o.apply(this,arguments)||this;return t.mathItem=null,t.annotation="",t.annotationTypes={},t}e.MJContextMenu=r},8310:function(t,e,r){var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},i=(Object.defineProperty(e,"__esModule",{value:!0}),e.Menu=void 0,r(5713)),c=r(4474),a=r(9515),s=r(7233),l=r(5865),p=r(473),h=r(4414),d=r(4922),f=r(6914),m=r(3463),y=r(7309),g=o(r(5445)),b=a.MathJax,v="undefined"!=typeof window&&window.navigator&&"Mac"===window.navigator.platform.substr(0,3);function _(t,e){void 0===e&&(e={});var r=this;this.settings=null,this.defaultSettings=null,this.menu=null,this.MmlVisitor=new p.MmlVisitor,this.jax={CHTML:null,SVG:null},this.rerenderStart=c.STATE.LAST,this.about=new d.Info('<b style="font-size:120%;">MathJax</b> v'+i.mathjax.version,function(){var t=[];return t.push("Input Jax: "+r.document.inputJax.map(function(t){return t.name}).join(", ")),t.push("Output Jax: "+r.document.outputJax.name),t.push("Document Type: "+r.document.kind),t.join("<br/>")},'<a href="https://www.mathjax.org">www.mathjax.org</a>'),this.help=new d.Info("<b>MathJax Help</b>",function(){return["<p><b>MathJax</b> is a JavaScript library that allows page"," authors to include mathematics within their web pages."," As a reader, you don't need to do anything to make that happen.</p>","<p><b>Browsers</b>: MathJax works with all modern browsers including"," Edge, Firefox, Chrome, Safari, Opera, and most mobile browsers.</p>","<p><b>Math Menu</b>: MathJax adds a contextual menu to equations."," Right-click or CTRL-click on any mathematics to access the menu.</p>",'<div style="margin-left: 1em;">',"<p><b>Show Math As:</b> These options allow you to view the formula's"," source markup (as MathML or in its original format).</p>","<p><b>Copy to Clipboard:</b> These options copy the formula's source markup,"," as MathML or in its original format, to the clipboard"," (in browsers that support that).</p>","<p><b>Math Settings:</b> These give you control over features of MathJax,"," such the size of the mathematics, and the mechanism used"," to display equations.</p>","<p><b>Accessibility</b>: MathJax can work with screen"," readers to make mathematics accessible to the visually impaired."," Turn on the explorer to enable generation of speech strings"," and the ability to investigate expressions interactively.</p>","<p><b>Language</b>: This menu lets you select the language used by MathJax"," for its menus and warning messages. (Not yet implemented in version 3.)</p>","</div>","<p><b>Math Zoom</b>: If you are having difficulty reading an"," equation, MathJax can enlarge it to help you see it better, or"," you can scall all the math on the page to make it larger."," Turn these features on in the <b>Math Settings</b> menu.</p>","<p><b>Preferences</b>: MathJax uses your browser's localStorage database"," to save the preferences set via this menu locally in your browser. These"," are not used to track you, and are not transferred or used remotely by"," MathJax in any way.</p>"].join("\n")},'<a href="https://www.mathjax.org">www.mathjax.org</a>'),this.mathmlCode=new h.SelectableInfo("MathJax MathML Expression",function(){if(!r.menu.mathItem)return"";var t=r.toMML(r.menu.mathItem);return"<pre>"+r.formatSource(t)+"</pre>"},""),this.originalText=new h.SelectableInfo("MathJax Original Source",function(){if(!r.menu.mathItem)return"";var t=r.menu.mathItem.math;return'<pre style="font-size:125%; margin:0">'+r.formatSource(t)+"</pre>"},""),this.annotationText=new h.SelectableInfo("MathJax Annotation Text",function(){if(!r.menu.mathItem)return"";var t=r.menu.annotation;return'<pre style="font-size:125%; margin:0">'+r.formatSource(t)+"</pre>"},""),this.zoomBox=new d.Info("MathJax Zoomed Expression",function(){if(!r.menu.mathItem)return"";var t=r.menu.mathItem.typesetRoot.cloneNode(!0);return t.style.margin="0",'<div style="font-size: '+1.25*parseFloat(r.settings.zscale)+'%">'+t.outerHTML+"</div>"},""),this.document=t,this.options=(0,s.userOptions)((0,s.defaultOptions)({},this.constructor.OPTIONS),e),this.initSettings(),this.mergeUserSettings(),this.initMenu(),this.applySettings()}Object.defineProperty(_.prototype,"isLoading",{get:function(){return 0<_.loading},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loadingPromise",{get:function(){return this.isLoading?_._loadingPromise=_._loadingPromise?_._loadingPromise:new Promise(function(t,e){_._loadingOK=t,_._loadingFailed=e}):Promise.resolve()},enumerable:!1,configurable:!0}),_.prototype.initSettings=function(){this.settings=this.options.settings,this.jax=this.options.jax;var t=this.document.outputJax;this.jax[t.name]=t,this.settings.renderer=t.name,b._.a11y&&b._.a11y.explorer&&Object.assign(this.settings,this.document.options.a11y),this.settings.scale=t.options.scale,this.defaultSettings=Object.assign({},this.settings)},_.prototype.initMenu=function(){var r=this,t=new f.Parser([["contextMenu",l.MJContextMenu.fromJson.bind(l.MJContextMenu)]]),t=(this.menu=t.parse({type:"contextMenu",id:"MathJax_Menu",pool:[this.variable("texHints"),this.variable("semantics"),this.variable("zoom"),this.variable("zscale"),this.variable("renderer",function(t){return r.setRenderer(t)}),this.variable("alt"),this.variable("cmd"),this.variable("ctrl"),this.variable("shift"),this.variable("scale",function(t){return r.setScale(t)}),this.variable("explorer",function(t){return r.setExplorer(t)}),this.a11yVar("highlight"),this.a11yVar("backgroundColor"),this.a11yVar("backgroundOpacity"),this.a11yVar("foregroundColor"),this.a11yVar("foregroundOpacity"),this.a11yVar("speech"),this.a11yVar("subtitles"),this.a11yVar("braille"),this.a11yVar("viewBraille"),this.a11yVar("locale",function(t){return g.default.setupEngine({locale:t})}),this.a11yVar("speechRules",function(t){var t=n(t.split("-"),2),e=t[0],t=t[1];r.document.options.sre.domain=e,r.document.options.sre.style=t}),this.a11yVar("magnification"),this.a11yVar("magnify"),this.a11yVar("treeColoring"),this.a11yVar("infoType"),this.a11yVar("infoRole"),this.a11yVar("infoPrefix"),this.variable("autocollapse"),this.variable("collapsible",function(t){return r.setCollapsible(t)}),this.variable("inTabOrder",function(t){return r.setTabOrder(t)}),this.variable("assistiveMml",function(t){return r.setAssistiveMml(t)})],items:[this.submenu("Show","Show Math As",[this.command("MathMLcode","MathML Code",function(){return r.mathmlCode.post()}),this.command("Original","Original Form",function(){return r.originalText.post()}),this.submenu("Annotation","Annotation")]),this.submenu("Copy","Copy to Clipboard",[this.command("MathMLcode","MathML Code",function(){return r.copyMathML()}),this.command("Original","Original Form",function(){return r.copyOriginal()}),this.submenu("Annotation","Annotation")]),this.rule(),this.submenu("Settings","Math Settings",[this.submenu("Renderer","Math Renderer",this.radioGroup("renderer",[["CHTML"],["SVG"]])),this.rule(),this.submenu("ZoomTrigger","Zoom Trigger",[this.command("ZoomNow","Zoom Once Now",function(){return r.zoom(null,"",r.menu.mathItem)}),this.rule(),this.radioGroup("zoom",[["Click"],["DoubleClick","Double-Click"],["NoZoom","No Zoom"]]),this.rule(),this.label("TriggerRequires","Trigger Requires:"),this.checkbox(v?"Option":"Alt",v?"Option":"Alt","alt"),this.checkbox("Command","Command","cmd",{hidden:!v}),this.checkbox("Control","Control","ctrl",{hiddne:v}),this.checkbox("Shift","Shift","shift")]),this.submenu("ZoomFactor","Zoom Factor",this.radioGroup("zscale",[["150%"],["175%"],["200%"],["250%"],["300%"],["400%"]])),this.rule(),this.command("Scale","Scale All Math...",function(){return r.scaleAllMath()}),this.rule(),this.checkbox("texHints","Add TeX hints to MathML","texHints"),this.checkbox("semantics","Add original as annotation","semantics"),this.rule(),this.command("Reset","Reset to defaults",function(){return r.resetDefaults()})]),this.submenu("Accessibility","Accessibility",[this.checkbox("Activate","Activate","explorer"),this.submenu("Speech","Speech",[this.checkbox("Speech","Speech Output","speech"),this.checkbox("Subtitles","Speech Subtitles","subtitles"),this.checkbox("Braille","Braille Output","braille"),this.checkbox("View Braille","Braille Subtitles","viewBraille"),this.rule(),this.submenu("A11yLanguage","Language"),this.rule(),this.submenu("Mathspeak","Mathspeak Rules",this.radioGroup("speechRules",[["mathspeak-default","Verbose"],["mathspeak-brief","Brief"],["mathspeak-sbrief","Superbrief"]])),this.submenu("Clearspeak","Clearspeak Rules",this.radioGroup("speechRules",[["clearspeak-default","Auto"]])),this.submenu("ChromeVox","ChromeVox Rules",this.radioGroup("speechRules",[["chromevox-default","Standard"],["chromevox-alternative","Alternative"]]))]),this.submenu("Highlight","Highlight",[this.submenu("Background","Background",this.radioGroup("backgroundColor",[["Blue"],["Red"],["Green"],["Yellow"],["Cyan"],["Magenta"],["White"],["Black"]])),{type:"slider",variable:"backgroundOpacity",content:" "},this.submenu("Foreground","Foreground",this.radioGroup("foregroundColor",[["Black"],["White"],["Magenta"],["Cyan"],["Yellow"],["Green"],["Red"],["Blue"]])),{type:"slider",variable:"foregroundOpacity",content:" "},this.rule(),this.radioGroup("highlight",[["None"],["Hover"],["Flame"]]),this.rule(),this.checkbox("TreeColoring","Tree Coloring","treeColoring")]),this.submenu("Magnification","Magnification",[this.radioGroup("magnification",[["None"],["Keyboard"],["Mouse"]]),this.rule(),this.radioGroup("magnify",[["200%"],["300%"],["400%"],["500%"]])]),this.submenu("Semantic Info","Semantic Info",[this.checkbox("Type","Type","infoType"),this.checkbox("Role","Role","infoRole"),this.checkbox("Prefix","Prefix","infoPrefix")],!0),this.rule(),this.checkbox("Collapsible","Collapsible Math","collapsible"),this.checkbox("AutoCollapse","Auto Collapse","autocollapse",{disabled:!0}),this.rule(),this.checkbox("InTabOrder","Include in Tab Order","inTabOrder"),this.checkbox("AssistiveMml","Include Hidden MathML","assistiveMml")]),this.submenu("Language","Language"),this.rule(),this.command("About","About MathJax",function(){return r.about.post()}),this.command("Help","MathJax Help",function(){return r.help.post()})]}),this.menu);this.about.attachMenu(t),this.help.attachMenu(t),this.originalText.attachMenu(t),this.annotationText.attachMenu(t),this.mathmlCode.attachMenu(t),this.zoomBox.attachMenu(t),this.checkLoadableItems(),this.enableExplorerItems(this.settings.explorer),t.showAnnotation=this.annotationText,t.copyAnnotation=this.copyAnnotation.bind(this),t.annotationTypes=this.options.annotationTypes,y.CssStyles.addInfoStyles(this.document.document),y.CssStyles.addMenuStyles(this.document.document)},_.prototype.checkLoadableItems=function(){var t,e;if(b&&b._&&b.loader&&b.startup)!this.settings.collapsible||b._.a11y&&b._.a11y.complexity||this.loadA11y("complexity"),!this.settings.explorer||b._.a11y&&b._.a11y.explorer||this.loadA11y("explorer"),!this.settings.assistiveMml||b._.a11y&&b._.a11y["assistive-mml"]||this.loadA11y("assistive-mml");else{var r=this.menu;try{for(var n=u(Object.keys(this.jax)),o=n.next();!o.done;o=n.next()){var i=o.value;this.jax[i]||r.findID("Settings","Renderer",i).disable()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}r.findID("Accessibility","Activate").disable(),r.findID("Accessibility","AutoCollapse").disable(),r.findID("Accessibility","Collapsible").disable()}},_.prototype.enableExplorerItems=function(t){var e,r,n=this.menu.findID("Accessibility","Activate").menu;try{for(var o=u(n.items.slice(1)),i=o.next();!i.done;i=o.next()){var a=i.value;if(a instanceof m.Rule)break;t?a.enable():a.disable()}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},_.prototype.mergeUserSettings=function(){try{var t=localStorage.getItem(_.MENU_STORAGE);if(!t)return;Object.assign(this.settings,JSON.parse(t)),this.setA11y(this.settings)}catch(t){console.log("MathJax localStorage error: "+t.message)}},_.prototype.saveUserSettings=function(){var e,t,r={};try{for(var n=u(Object.keys(this.settings)),o=n.next();!o.done;o=n.next()){var i=o.value;this.settings[i]!==this.defaultSettings[i]&&(r[i]=this.settings[i])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}try{Object.keys(r).length?localStorage.setItem(_.MENU_STORAGE,JSON.stringify(r)):localStorage.removeItem(_.MENU_STORAGE)}catch(t){console.log("MathJax localStorage error: "+t.message)}},_.prototype.setA11y=function(t){b._.a11y&&b._.a11y.explorer&&b._.a11y.explorer_ts.setA11yOptions(this.document,t)},_.prototype.getA11y=function(t){if(b._.a11y&&b._.a11y.explorer)return(void 0!==this.document.options.a11y[t]?this.document.options.a11y:this.document.options.sre)[t]},_.prototype.applySettings=function(){this.setTabOrder(this.settings.inTabOrder),this.document.options.enableAssistiveMml=this.settings.assistiveMml,this.document.outputJax.options.scale=parseFloat(this.settings.scale),this.settings.renderer!==this.defaultSettings.renderer&&this.setRenderer(this.settings.renderer)},_.prototype.setScale=function(t){this.document.outputJax.options.scale=parseFloat(t),this.document.rerender()},_.prototype.setRenderer=function(e){var r,n=this;this.jax[e]?this.setOutputJax(e):(r=e.toLowerCase(),this.loadComponent("output/"+r,function(){var t=b.startup;r in t.constructors&&(t.useOutput(r,!0),t.output=t.getOutputJax(),n.jax[e]=t.output,n.setOutputJax(e))}))},_.prototype.setOutputJax=function(t){this.jax[t].setAdaptor(this.document.adaptor),this.document.outputJax=this.jax[t],this.rerender()},_.prototype.setTabOrder=function(t){this.menu.store.inTaborder(t)},_.prototype.setAssistiveMml=function(t){!(this.document.options.enableAssistiveMml=t)||b._.a11y&&b._.a11y["assistive-mml"]?this.rerender():this.loadA11y("assistive-mml")},_.prototype.setExplorer=function(t){this.enableExplorerItems(t),!(this.document.options.enableExplorer=t)||b._.a11y&&b._.a11y.explorer?this.rerender(this.settings.collapsible?c.STATE.RERENDER:c.STATE.COMPILED):this.loadA11y("explorer")},_.prototype.setCollapsible=function(t){!(this.document.options.enableComplexity=t)||b._.a11y&&b._.a11y.complexity?this.rerender(c.STATE.COMPILED):this.loadA11y("complexity")},_.prototype.scaleAllMath=function(){var t=(100*parseFloat(this.settings.scale)).toFixed(1).replace(/.0$/,""),t=prompt("Scale all mathematics (compared to surrounding text) by",t+"%");t&&(t.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)?(t=parseFloat(t)/100)?this.menu.pool.lookup("scale").setValue(String(t)):alert("The scale should not be zero"):alert("The scale should be a percentage (e.g., 120%)"))},_.prototype.resetDefaults=function(){_.loading++;var e,t,r=this.menu.pool,n=this.defaultSettings;try{for(var o=u(Object.keys(this.settings)),i=o.next();!i.done;i=o.next()){var a,s=i.value,l=r.lookup(s);l?(l.setValue(n[s]),(a=l.items[0])&&a.executeCallbacks_()):this.settings[s]=n[s]}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}_.loading--,this.rerender(c.STATE.COMPILED)},_.prototype.checkComponent=function(t){t=_.loadingPromises.get(t);t&&i.mathjax.retryAfter(t)},_.prototype.loadComponent=function(t,e){var r;_.loadingPromises.has(t)||(r=b.loader)&&(_.loading++,r=r.load(t).then(function(){_.loading--,_.loadingPromises.delete(t),e(),0===_.loading&&_._loadingPromise&&(_._loadingPromise=null,_._loadingOK())}).catch(function(t){_._loadingPromise?(_._loadingPromise=null,_._loadingFailed(t)):console.log(t)}),_.loadingPromises.set(t,r))},_.prototype.loadA11y=function(r){var n=this,o=!c.STATE.ENRICHED;this.loadComponent("a11y/"+r,function(){var t=b.startup,e=(i.mathjax.handlers.unregister(t.handler),t.handler=t.getHandler(),i.mathjax.handlers.register(t.handler),n.document);n.document=t.document=t.getDocument(),(n.document.menu=n).document.outputJax.reset(),n.transferMathList(e),n.document.processed=e.processed,_._loadingPromise||(n.document.outputJax.reset(),n.rerender("complexity"===r||o?c.STATE.COMPILED:c.STATE.TYPESET))})},_.prototype.transferMathList=function(t){var e,r,n=this.document.options.MathItem;try{for(var o=u(t.math),i=o.next();!i.done;i=o.next()){var a=i.value,s=new n;Object.assign(s,a),this.document.math.push(s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},_.prototype.formatSource=function(t){return t.trim().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},_.prototype.toMML=function(t){return this.MmlVisitor.visitTree(t.root,t,{texHints:this.settings.texHints,semantics:this.settings.semantics&&"MathML"!==t.inputJax.name})},_.prototype.zoom=function(t,e,r){t&&!this.isZoomEvent(t,e)||(this.menu.mathItem=r,t&&this.menu.post(t),this.zoomBox.post())},_.prototype.isZoomEvent=function(t,e){return this.settings.zoom===e&&(!this.settings.alt||t.altKey)&&(!this.settings.ctrl||t.ctrlKey)&&(!this.settings.cmd||t.metaKey)&&(!this.settings.shift||t.shiftKey)},_.prototype.rerender=function(t){void 0===t&&(t=c.STATE.TYPESET),this.rerenderStart=Math.min(t,this.rerenderStart),_.loading||(this.rerenderStart<=c.STATE.COMPILED&&this.document.reset({inputJax:[]}),this.document.rerender(this.rerenderStart),this.rerenderStart=c.STATE.LAST)},_.prototype.copyMathML=function(){this.copyToClipboard(this.toMML(this.menu.mathItem))},_.prototype.copyOriginal=function(){this.copyToClipboard(this.menu.mathItem.math.trim())},_.prototype.copyAnnotation=function(){this.copyToClipboard(this.menu.annotation.trim())},_.prototype.copyToClipboard=function(t){var e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.cssText="height: 1px; width: 1px; padding: 1px; position: absolute; left: -10px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(t){alert("Can't copy to clipboard: "+t.message)}document.body.removeChild(e)},_.prototype.addMenu=function(e){var r=this,t=e.typesetRoot;t.addEventListener("contextmenu",function(){return r.menu.mathItem=e},!0),t.addEventListener("keydown",function(){return r.menu.mathItem=e},!0),t.addEventListener("click",function(t){return r.zoom(t,"Click",e)},!0),t.addEventListener("dblclick",function(t){return r.zoom(t,"DoubleClick",e)},!0),this.menu.store.insert(t)},_.prototype.clear=function(){this.menu.store.clear()},_.prototype.variable=function(e,r){var n=this;return{name:e,getter:function(){return n.settings[e]},setter:function(t){n.settings[e]=t,r&&r(t),n.saveUserSettings()}}},_.prototype.a11yVar=function(r,n){var o=this;return{name:r,getter:function(){return o.getA11y(r)},setter:function(t){o.settings[r]=t;var e={};e[r]=t,o.setA11y(e),n&&n(t),o.saveUserSettings()}}},_.prototype.submenu=function(t,e,r,n){void 0===r&&(r=[]),void 0===n&&(n=!1);var o,i,a=[];try{for(var s=u(r),l=s.next();!l.done;l=s.next()){var c=l.value;Array.isArray(c)?a=a.concat(c):a.push(c)}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return{type:"submenu",id:t,content:e,menu:{items:a},disabled:0===a.length||n}},_.prototype.command=function(t,e,r,n){return void 0===n&&(n={}),Object.assign({type:"command",id:t,content:e,action:r},n)},_.prototype.checkbox=function(t,e,r,n){return void 0===n&&(n={}),Object.assign({type:"checkbox",id:t,content:e,variable:r},n)},_.prototype.radioGroup=function(e,t){var r=this;return t.map(function(t){return r.radio(t[0],t[1]||t[0],e)})},_.prototype.radio=function(t,e,r,n){return void 0===n&&(n={}),Object.assign({type:"radio",id:t,content:e,variable:r},n)},_.prototype.label=function(t,e){return{type:"label",id:t,content:e}},_.prototype.rule=function(){return{type:"rule"}},_.MENU_STORAGE="MathJax-Menu-Settings",_.OPTIONS={settings:{texHints:!0,semantics:!1,zoom:"NoZoom",zscale:"200%",renderer:"CHTML",alt:!1,cmd:!1,ctrl:!1,shift:!1,scale:1,autocollapse:!1,collapsible:!1,inTabOrder:!0,assistiveMml:!0,explorer:!1},jax:{CHTML:null,SVG:null},annotationTypes:(0,s.expandable)({TeX:["TeX","LaTeX","application/x-tex"],StarMath:["StarMath 5.0"],Maple:["Maple"],ContentMathML:["MathML-Content","application/mathml-content+xml"],OpenMath:["OpenMath"]})},_.loading=0,_.loadingPromises=new Map,_._loadingPromise=null,_._loadingOK=null,_._loadingFailed=null,e.Menu=_},4001:function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=(Object.defineProperty(e,"__esModule",{value:!0}),e.MenuHandler=e.MenuMathDocumentMixin=e.MenuMathItemMixin=void 0,r(5713)),p=r(4474),h=r(7233),d=r(8310);function f(t){return i(e,r=t),e.prototype.addMenu=function(t,e){void 0===e&&(e=!1),this.state()>=p.STATE.CONTEXT_MENU||(this.isEscaped||!t.options.enableMenu&&!e||t.menu.addMenu(this),this.state(p.STATE.CONTEXT_MENU))},e.prototype.checkLoading=function(t){t.checkLoading()},e;function e(){return null!==r&&r.apply(this,arguments)||this}var r}function o(t){var e,o;return i(r,o=t),r.prototype.addMenu=function(){var t,e;if(!this.processed.isSet("context-menu")){try{for(var r=c(this.math),n=r.next();!n.done;n=r.next())n.value.addMenu(this)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.processed.set("context-menu")}return this},r.prototype.checkLoading=function(){this.menu.isLoading&&u.mathjax.retryAfter(this.menu.loadingPromise.catch(function(t){return console.log(t)}));var t=this.menu.settings;return t.collapsible&&(this.options.enableComplexity=!0,this.menu.checkComponent("a11y/complexity")),t.explorer&&(this.options.enableEnrichment=!0,this.options.enableExplorer=!0,this.menu.checkComponent("a11y/explorer")),this},r.prototype.state=function(t,e){return o.prototype.state.call(this,t,e=void 0===e?!1:e),t<p.STATE.CONTEXT_MENU&&this.processed.clear("context-menu"),this},r.prototype.updateDocument=function(){return o.prototype.updateDocument.call(this),this.menu.menu.store.sort(),this},(e=r).OPTIONS=a(a({enableEnrichment:!0,enableComplexity:!0,enableExplorer:!0,enrichSpeech:"none",enrichError:function(t,e,r){return console.warn("Enrichment Error:",r)}},t.OPTIONS),{MenuClass:d.Menu,menuOptions:d.Menu.OPTIONS,enableMenu:!0,sre:t.OPTIONS.sre||(0,h.expandable)({}),a11y:t.OPTIONS.a11y||(0,h.expandable)({}),renderActions:(0,h.expandable)(a(a({},t.OPTIONS.renderActions),{addMenu:[p.STATE.CONTEXT_MENU],checkLoading:[p.STATE.UNPROCESSED+1]}))}),e;function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=o.apply(this,l([],s(t),!1))||this,n=(r.menu=new r.options.MenuClass(r,r.options.menuOptions),r.constructor.ProcessBits);return n.has("context-menu")||n.allocate("context-menu"),r.options.MathItem=f(r.options.MathItem),r}}(0,p.newState)("CONTEXT_MENU",170),e.MenuMathItemMixin=f,e.MenuMathDocumentMixin=o,e.MenuHandler=function(t){return t.documentClass=o(t.documentClass),t}},473:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.MmlVisitor=void 0,r(9259)),s=r(7233),r=(o=a.SerializedMmlVisitor,i(l,o),l.prototype.visitTree=function(t,e,r){return void 0===r&&(r={}),this.mathItem=e=void 0===e?null:e,(0,s.userOptions)(this.options,r),this.visitNode(t,"")},l.prototype.visitTeXAtomNode=function(t,e){return this.options.texHints?o.prototype.visitTeXAtomNode.call(this,t,e):t.childNodes[0]&&1===t.childNodes[0].childNodes.length?this.visitNode(t.childNodes[0],e):e+"<mrow"+this.getAttributes(t)+">\n"+this.childNodeMml(t,e+" ","\n")+e+"</mrow>"},l.prototype.visitMathNode=function(t,e){if(!this.options.semantics||"TeX"!==this.mathItem.inputJax.name)return o.prototype.visitDefault.call(this,t,e);var r=t.childNodes.length&&1<t.childNodes[0].childNodes.length;return e+"<math"+this.getAttributes(t)+">\n"+e+" <semantics>\n"+(r?e+" <mrow>\n":"")+this.childNodeMml(t,e+(r?" ":" "),"\n")+(r?e+" </mrow>\n":"")+e+' <annotation encoding="application/x-tex">'+this.mathItem.math+"</annotation>\n"+e+" </semantics>\n"+e+"</math>"},l);function l(){var t=null!==o&&o.apply(this,arguments)||this;return t.options={texHints:!0,semantics:!1},t.mathItem=null,t}e.MmlVisitor=r},4414:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.SelectableInfo=void 0,r(4922)),s=r(2165),r=(o=a.Info,i(l,o),l.prototype.addEvents=function(t){var e=this;t.addEventListener("keypress",function(t){"a"===t.key&&(t.ctrlKey||t.metaKey)&&(e.selectAll(),e.stop(t))})},l.prototype.selectAll=function(){document.getSelection().selectAllChildren(this.html.querySelector("pre"))},l.prototype.copyToClipboard=function(){this.selectAll();try{document.execCommand("copy")}catch(t){alert("Can't copy to clipboard: "+t.message)}document.getSelection().removeAllRanges()},l.prototype.generateHtml=function(){var e=this,t=(o.prototype.generateHtml.call(this),this.html.querySelector("span."+s.HtmlClasses.INFOSIGNATURE).appendChild(document.createElement("input")));t.type="button",t.value="Copy to Clipboard",t.addEventListener("click",function(t){return e.copyToClipboard()})},l);function l(){return null!==o&&o.apply(this,arguments)||this}e.SelectableInfo=r},9923:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.asyncLoad=void 0;var o=r(5713);e.asyncLoad=function(n){return o.mathjax.asyncLoad?new Promise(function(e,r){var t=o.mathjax.asyncLoad(n);t instanceof Promise?t.then(function(t){return e(t)}).catch(function(t){return r(t)}):e(t)}):Promise.reject("Can't load '".concat(n,"': No asyncLoad method specified"))}},6469:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.BBox=void 0;var n=r(6010);function o(t){void 0===t&&(t={w:0,h:-n.BIGDIMEN,d:-n.BIGDIMEN}),this.w=t.w||0,this.h="h"in t?t.h:-n.BIGDIMEN,this.d="d"in t?t.d:-n.BIGDIMEN,this.L=this.R=this.ic=this.sk=this.dx=0,this.scale=this.rscale=1,this.pwidth=""}o.zero=function(){return new o({h:0,d:0,w:0})},o.empty=function(){return new o},o.prototype.empty=function(){return this.w=0,this.h=this.d=-n.BIGDIMEN,this},o.prototype.clean=function(){this.w===-n.BIGDIMEN&&(this.w=0),this.h===-n.BIGDIMEN&&(this.h=0),this.d===-n.BIGDIMEN&&(this.d=0)},o.prototype.rescale=function(t){this.w*=t,this.h*=t,this.d*=t},o.prototype.combine=function(t,e,r){var n=t.rscale,e=(e=void 0===e?0:e)+n*(t.w+t.L+t.R),o=(r=void 0===r?0:r)+n*t.h,n=n*t.d-r;e>this.w&&(this.w=e),o>this.h&&(this.h=o),n>this.d&&(this.d=n)},o.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)},o.prototype.updateFrom=function(t){this.h=t.h,this.d=t.d,this.w=t.w,t.pwidth&&(this.pwidth=t.pwidth)},o.fullWidth="100%",o.StyleAdjust=[["borderTopWidth","h"],["borderRightWidth","w"],["borderBottomWidth","d"],["borderLeftWidth","w",0],["paddingTop","h"],["paddingRight","w"],["paddingBottom","d"],["paddingLeft","w",0]],e.BBox=o},6751:function(t,e){var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},c=(Object.defineProperty(e,"__esModule",{value:!0}),e.BitFieldClass=e.BitField=void 0,u.allocate=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=s(r),i=o.next();!i.done;i=o.next()){var a=i.value;if(this.has(a))throw new Error("Bit already allocated for "+a);if(this.next===u.MAXBIT)throw new Error("Maximum number of bits already allocated");this.names.set(a,this.next),this.next<<=1}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},u.has=function(t){return this.names.has(t)},u.prototype.set=function(t){this.bits|=this.getBit(t)},u.prototype.clear=function(t){this.bits&=~this.getBit(t)},u.prototype.isSet=function(t){return!!(this.bits&this.getBit(t))},u.prototype.reset=function(){this.bits=0},u.prototype.getBit=function(t){var e=this.constructor.names.get(t);if(e)return e;throw new Error("Unknown bit-field name: "+t)},u.MAXBIT=1<<31,u.next=1,u.names=new Map,u);function u(){this.bits=0}e.BitField=c,e.BitFieldClass=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i(o,r=c);var r,n=o;function o(){return null!==r&&r.apply(this,arguments)||this}return n.allocate.apply(n,l([],a(t),!1)),n}},5368:function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.numeric=r.translate=r.remove=r.add=r.entities=r.options=void 0;var n=e(4542),o=e(9923),i=(r.options={loadMissingEntities:!0},r.entities={ApplyFunction:"⁡",Backslash:"∖",Because:"∵",Breve:"˘",Cap:"⋒",CenterDot:"·",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",Congruent:"≡",ContourIntegral:"∮",Coproduct:"∐",Cross:"⨯",Cup:"⋓",CupCap:"≍",Dagger:"‡",Del:"∇",Delta:"Δ",Diamond:"⋄",DifferentialD:"ⅆ",DotEqual:"≐",DoubleDot:"¨",DoubleRightTee:"⊨",DoubleVerticalBar:"∥",DownArrow:"↓",DownLeftVector:"↽",DownRightVector:"⇁",DownTee:"⊤",Downarrow:"⇓",Element:"∈",EqualTilde:"≂",Equilibrium:"⇌",Exists:"∃",ExponentialE:"ⅇ",FilledVerySmallSquare:"▪",ForAll:"∀",Gamma:"Γ",Gg:"⋙",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Hacek:"ˇ",Hat:"^",HumpDownHump:"≎",HumpEqual:"≏",Im:"ℑ",ImaginaryI:"ⅈ",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Lambda:"Λ",Larr:"↞",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDownVector:"⇃",LeftFloor:"⌊",LeftRightArrow:"↔",LeftTee:"⊣",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpVector:"↿",LeftVector:"↼",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessSlantEqual:"⩽",LessTilde:"≲",Ll:"⋘",Lleftarrow:"⇚",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lsh:"↰",MinusPlus:"∓",NestedGreaterGreater:"≫",NestedLessLess:"≪",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotPrecedes:"⊀",NotPrecedesSlantEqual:"⋠",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsSlantEqual:"⋡",NotSupersetEqual:"⊉",NotTilde:"≁",NotVerticalBar:"∤",Omega:"Ω",OverBar:"‾",OverBrace:"⏞",PartialD:"∂",Phi:"Φ",Pi:"Π",PlusMinus:"±",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Product:"∏",Proportional:"∝",Psi:"Ψ",Rarr:"↠",Re:"ℜ",ReverseEquilibrium:"⇋",RightAngleBracket:"⟩",RightArrow:"→",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDownVector:"⇂",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpVector:"↾",RightVector:"⇀",Rightarrow:"⇒",Rrightarrow:"⇛",Rsh:"↱",Sigma:"Σ",SmallCircle:"∘",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Star:"⋆",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",Therefore:"∴",Theta:"Θ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",UnderBar:"_",UnderBrace:"⏟",Union:"⋃",UnionPlus:"⊎",UpArrow:"↑",UpDownArrow:"↕",UpTee:"⊥",Uparrow:"⇑",Updownarrow:"⇕",Upsilon:"Υ",Vdash:"⊩",Vee:"⋁",VerticalBar:"∣",VerticalTilde:"≀",Vvdash:"⊪",Wedge:"⋀",Xi:"Ξ",amp:"&",acute:"´",aleph:"ℵ",alpha:"α",amalg:"⨿",and:"∧",ang:"∠",angmsd:"∡",angsph:"∢",ape:"≊",backprime:"‵",backsim:"∽",backsimeq:"⋍",beta:"β",beth:"ℶ",between:"≬",bigcirc:"◯",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",blacklozenge:"⧫",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",bowtie:"⋈",boxdl:"┐",boxdr:"┌",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxur:"└",bsol:"\\",bull:"•",cap:"∩",check:"✓",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",clubs:"♣",colon:":",comp:"∁",ctdot:"⋯",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cup:"∪",curarr:"↷",curlyvee:"⋎",curlywedge:"⋏",dagger:"†",daleth:"ℸ",ddarr:"⇊",deg:"°",delta:"δ",digamma:"ϝ",div:"÷",divideontimes:"⋇",dot:"˙",doteqdot:"≑",dotplus:"∔",dotsquare:"⊡",dtdot:"⋱",ecir:"≖",efDot:"≒",egs:"⪖",ell:"ℓ",els:"⪕",empty:"∅",epsi:"ε",epsiv:"ϵ",erDot:"≓",eta:"η",eth:"ð",flat:"♭",fork:"⋔",frown:"⌢",gEl:"⪌",gamma:"γ",gap:"⪆",gimel:"ℷ",gnE:"≩",gnap:"⪊",gne:"⪈",gnsim:"⋧",gt:">",gtdot:"⋗",harrw:"↭",hbar:"ℏ",hellip:"…",hookleftarrow:"↩",hookrightarrow:"↪",imath:"ı",infin:"∞",intcal:"⊺",iota:"ι",jmath:"ȷ",kappa:"κ",kappav:"ϰ",lEg:"⪋",lambda:"λ",lap:"⪅",larrlp:"↫",larrtl:"↢",lbrace:"{",lbrack:"[",le:"≤",leftleftarrows:"⇇",leftthreetimes:"⋋",lessdot:"⋖",lmoust:"⎰",lnE:"≨",lnap:"⪉",lne:"⪇",lnsim:"⋦",longmapsto:"⟼",looparrowright:"↬",lowast:"∗",loz:"◊",lt:"<",ltimes:"⋉",ltri:"◃",macr:"¯",malt:"✠",mho:"℧",mu:"μ",multimap:"⊸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",natur:"♮",nearr:"↗",nharr:"↮",nlarr:"↚",not:"¬",nrarr:"↛",nu:"ν",nvDash:"⊭",nvdash:"⊬",nwarr:"↖",omega:"ω",omicron:"ο",or:"∨",osol:"⊘",period:".",phi:"φ",phiv:"ϕ",pi:"π",piv:"ϖ",prap:"⪷",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",prime:"′",psi:"ψ",quot:'"',rarrtl:"↣",rbrace:"}",rbrack:"]",rho:"ρ",rhov:"ϱ",rightrightarrows:"⇉",rightthreetimes:"⋌",ring:"˚",rmoust:"⎱",rtimes:"⋊",rtri:"▹",scap:"⪸",scnE:"⪶",scnap:"⪺",scnsim:"⋩",sdot:"⋅",searr:"↘",sect:"§",sharp:"♯",sigma:"σ",sigmav:"ς",simne:"≆",smile:"⌣",spades:"♠",sub:"⊂",subE:"⫅",subnE:"⫋",subne:"⊊",supE:"⫆",supnE:"⫌",supne:"⊋",swarr:"↙",tau:"τ",theta:"θ",thetav:"ϑ",tilde:"˜",times:"×",triangle:"▵",triangleq:"≜",upsi:"υ",upuparrows:"⇈",veebar:"⊻",vellip:"⋮",weierp:"℘",xi:"ξ",yen:"¥",zeta:"ζ",zigrarr:"⇝",nbsp:" ",rsquo:"’",lsquo:"‘"},{});function a(t,e){return"#"===e.charAt(0)?s(e.slice(1)):r.entities[e]||(r.options.loadMissingEntities&&(e=e.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:e.charAt(0).toLowerCase(),i[e]||(i[e]=!0,(0,n.retryAfter)((0,o.asyncLoad)("./util/entities/"+e+".js")))),t)}function s(t){t="x"===t.charAt(0)?parseInt(t.slice(1),16):parseInt(t);return String.fromCodePoint(t)}r.add=function(t,e){Object.assign(r.entities,t),i[e]=!0},r.remove=function(t){delete r.entities[t]},r.translate=function(t){return t.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,a)},r.numeric=s},7525:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionList=void 0,o=r(8666).PrioritizedList,i(a,o),a.prototype.execute=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=s(this),i=o.next();!i.done;i=o.next()){var a=i.value;if(!1===a.item.apply(a,c([],l(r),!1)))return!1}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return!0},a.prototype.asyncExecute=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];var i=-1,a=this.items;return new Promise(function(r,n){!function t(){for(;++i<a.length;){var e=(e=a[i]).item.apply(e,c([],l(o),!1));if(e instanceof Promise)return void e.then(t).catch(function(t){return n(t)});if(!1===e)return void r(!1)}r(!0)}()})},a);function a(){return null!==o&&o.apply(this,arguments)||this}e.FunctionList=r},103:function(t,u){function l(t){void 0===t&&(t=null),this.next=null,this.prev=null,this.data=t}var r=this&&this.__generator||function(n,o){var i,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(r){return function(t){var e=[r,t];if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,a=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!((s=0<(s=l.trys).length&&s[s.length-1])||6!==e[0]&&2!==e[0])){l=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){l.label=e[1];break}if(6===e[0]&&l.label<s[1]){l.label=s[1],s=e;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(e);break}s[2]&&l.ops.pop(),l.trys.pop();continue}e=o.call(n,l)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},p=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},e=(Object.defineProperty(u,"__esModule",{value:!0}),u.LinkedList=u.ListItem=u.END=void 0,u.END=Symbol(),u.ListItem=l,c.prototype.isBefore=function(t,e){return t<e},c.prototype.push=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=p(r),i=o.next();!i.done;i=o.next()){var a=i.value,s=new l(a);s.next=this.list,s.prev=this.list.prev,(this.list.prev=s).prev.next=s}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return this},c.prototype.pop=function(){var t=this.list.prev;return t.data===u.END?null:(this.list.prev=t.prev,t.prev.next=this.list,t.next=t.prev=null,t.data)},c.prototype.unshift=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=p(r.slice(0).reverse()),i=o.next();!i.done;i=o.next()){var a=i.value,s=new l(a);s.next=this.list.next,s.prev=this.list,(this.list.next=s).next.prev=s}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return this},c.prototype.shift=function(){var t=this.list.next;return t.data===u.END?null:(this.list.next=t.next,t.next.prev=this.list,t.next=t.prev=null,t.data)},c.prototype.remove=function(){for(var e,t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=new Map;try{for(var i=p(r),a=i.next();!a.done;a=i.next()){var s=a.value;o.set(s,!0)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}for(var l=this.list.next;l.data!==u.END;){var c=l.next;o.has(l.data)&&(l.prev.next=l.next,l.next.prev=l.prev,l.next=l.prev=null),l=c}},c.prototype.clear=function(){return this.list.next.prev=this.list.prev.next=null,this.list.next=this.list.prev=this.list,this},c.prototype[Symbol.iterator]=function(){var e;return r(this,function(t){switch(t.label){case 0:e=this.list.next,t.label=1;case 1:return e.data===u.END?[3,3]:[4,e.data];case 2:return t.sent(),e=e.next,[3,1];case 3:return[2]}})},c.prototype.reversed=function(){var e;return r(this,function(t){switch(t.label){case 0:e=this.list.prev,t.label=1;case 1:return e.data===u.END?[3,3]:[4,e.data];case 2:return t.sent(),e=e.prev,[3,1];case 3:return[2]}})},c.prototype.insert=function(t,e){null===(e=void 0===e?null:e)&&(e=this.isBefore.bind(this));for(var r=new l(t),n=this.list.next;n.data!==u.END&&e(n.data,r.data);)n=n.next;return r.prev=n.prev,(r.next=n).prev.next=n.prev=r,this},c.prototype.sort=function(t){null===(t=void 0===t?null:t)&&(t=this.isBefore.bind(this));var e,r,n=[];try{for(var o=p(this),i=o.next();!i.done;i=o.next()){var a=i.value;n.push(new c(a))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}for(this.list.next=this.list.prev=this.list;1<n.length;){var s=n.shift(),l=n.shift();s.merge(l,t),n.push(s)}return n.length&&(this.list=n[0].list),this},c.prototype.merge=function(t,e){var r;null===(e=void 0===e?null:e)&&(e=this.isBefore.bind(this));for(var n=this.list.next,o=t.list.next;n.data!==u.END&&o.data!==u.END;)e(o.data,n.data)?(r=i([n,o],2),o.prev.next=r[0],n.prev.next=r[1],r=i([n.prev,o.prev],2),o.prev=r[0],n.prev=r[1],r=i([t.list,this.list],2),this.list.prev.next=r[0],t.list.prev.next=r[1],r=i([t.list.prev,this.list.prev],2),this.list.prev=r[0],t.list.prev=r[1],n=(r=i([o.next,n],2))[0],o=r[1]):n=n.next;return o.data!==u.END&&(this.list.prev.next=t.list.next,t.list.next.prev=this.list.prev,t.list.prev.next=this.list,this.list.prev=t.list.prev,t.list.next=t.list.prev=t.list),this},c);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.list=new l(u.END),this.list.next=this.list.prev=this.list,this.push.apply(this,n([],i(t),!1))}u.LinkedList=e},7233:function(t,s){var y=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},e=(Object.defineProperty(s,"__esModule",{value:!0}),s.lookup=s.separateOptions=s.selectOptionsFromKeys=s.selectOptions=s.userOptions=s.defaultOptions=s.insert=s.copy=s.keys=s.makeArray=s.expandable=s.Expandable=s.OPTIONS=s.REMOVE=s.APPEND=s.isObject=void 0,{}.constructor);function u(t){return"object"==typeof t&&null!==t&&(t.constructor===e||t.constructor===p)}s.isObject=u,s.APPEND="[+]",s.REMOVE="[-]",s.OPTIONS={invalidOption:"warn",optionError:function(t,e){if("fatal"===s.OPTIONS.invalidOption)throw new Error(t);console.warn("MathJax: "+t)}};var p=function(){};function h(t){return Object.assign(Object.create(p.prototype),t)}function d(t){return t?Object.keys(t).concat(Object.getOwnPropertySymbols(t)):[]}function f(t){var e,r,n={};try{for(var o=y(d(t)),i=o.next();!i.done;i=o.next()){var a=i.value,s=Object.getOwnPropertyDescriptor(t,a),l=s.value;Array.isArray(l)?s.value=m([],l,!1):u(l)&&(s.value=f(l)),s.enumerable&&(n[a]=s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return Object.defineProperties(t.constructor===p?h({}):{},n)}function m(o,i,a){var t,e;void 0===a&&(a=!0);try{for(var r=y(d(i)),n=r.next();!n.done;n=r.next())!function(t){if(a&&void 0===o[t]&&o.constructor!==p)return"symbol"==typeof t&&(t=t.toString()),s.OPTIONS.optionError('Invalid option "'.concat(t,'" (no default value).'),t);var e,r=i[t],n=o[t];!u(r)||null===n||"object"!=typeof n&&"function"!=typeof n?Array.isArray(r)?(o[t]=[],m(o[t],r,!1)):u(r)?o[t]=f(r):o[t]=r:(e=d(r),Array.isArray(n)&&(1===e.length&&(e[0]===s.APPEND||e[0]===s.REMOVE)&&Array.isArray(r[e[0]])||2===e.length&&e.sort().join(",")===s.APPEND+","+s.REMOVE&&Array.isArray(r[s.APPEND])&&Array.isArray(r[s.REMOVE]))?(r[s.REMOVE]&&(n=o[t]=n.filter(function(t){return r[s.REMOVE].indexOf(t)<0})),r[s.APPEND]&&(o[t]=c(c([],l(n),!1),l(r[s.APPEND]),!1))):m(n,r,a))}(n.value)}catch(o){t={error:o}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return o}function r(t){for(var e,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i={};try{for(var a=y(n),s=a.next();!s.done;s=a.next()){var l=s.value;t.hasOwnProperty(l)&&(i[l]=t[l])}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i}s.Expandable=p,s.expandable=h,s.makeArray=function(t){return Array.isArray(t)?t:[t]},s.keys=d,s.copy=f,s.insert=m,s.defaultOptions=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){return m(e,t,!1)}),e},s.userOptions=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){return m(e,t,!0)}),e},s.selectOptions=r,s.selectOptionsFromKeys=function(t,e){return r.apply(void 0,c([t],l(Object.keys(e)),!1))},s.separateOptions=function(t){for(var e,r,n,o,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var s=[];try{for(var l=y(i),c=l.next();!c.done;c=l.next()){var u=c.value,p={},h={};try{n=void 0;for(var d=y(Object.keys(t||{})),f=d.next();!f.done;f=d.next()){var m=f.value;(void 0===u[m]?h:p)[m]=t[m]}}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}s.push(p),t=h}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}return s.unshift(t),s},s.lookup=function(t,e,r){return void 0===r&&(r=null),e.hasOwnProperty(t)?e[t]:r}},8666:function(t,e){function n(){this.items=[],this.items=[]}Object.defineProperty(e,"__esModule",{value:!0}),e.PrioritizedList=void 0,n.prototype[Symbol.iterator]=function(){var t=0,e=this.items;return{next:function(){return{value:e[t++],done:t>e.length}}}},n.prototype.add=function(t,e){void 0===e&&(e=n.DEFAULTPRIORITY);for(var r=this.items.length;0<=--r&&e<this.items[r].priority;);return this.items.splice(r+1,0,{item:t,priority:e}),t},n.prototype.remove=function(t){for(var e=this.items.length;0<=--e&&this.items[e].item!==t;);0<=e&&this.items.splice(e,1)},n.DEFAULTPRIORITY=5,e.PrioritizedList=n},4542:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfter=e.handleRetriesFor=void 0,e.handleRetriesFor=function(t){return new Promise(function e(r,n){try{r(t())}catch(t){t.retry&&t.retry instanceof Promise?t.retry.then(function(){return e(r,n)}).catch(function(t){return n(t)}):t.restart&&t.restart.isCallback?MathJax.Callback.After(function(){return e(r,n)},t.restart):n(t)}})},e.retryAfter=function(t){var e=new Error("MathJax retry");throw e.retry=t,e}},4139:function(t,e){var c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.CssStyles=void 0,Object.defineProperty(n.prototype,"cssText",{get:function(){return this.getStyleString()},enumerable:!1,configurable:!0}),n.prototype.addStyles=function(t){var e,r;if(t)try{for(var n=c(Object.keys(t)),o=n.next();!o.done;o=n.next()){var i=o.value;this.styles[i]||(this.styles[i]={}),Object.assign(this.styles[i],t[i])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},n.prototype.removeStyles=function(){for(var t,e,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{for(var o=c(r),i=o.next();!i.done;i=o.next()){var a=i.value;delete this.styles[a]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},n.prototype.clear=function(){this.styles={}},n.prototype.getStyleString=function(){return this.getStyleRules().join("\n\n")},n.prototype.getStyleRules=function(){var t,e,r=Object.keys(this.styles),n=new Array(r.length),o=0;try{for(var i=c(r),a=i.next();!a.done;a=i.next()){var s=a.value;n[o++]=s+" {\n"+this.getStyleDefString(this.styles[s])+"\n}"}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return n},n.prototype.getStyleDefString=function(t){var e,r,n=Object.keys(t),o=new Array(n.length),i=0;try{for(var a=c(n),s=a.next();!s.done;s=a.next()){var l=s.value;o[i++]=" "+l+": "+t[l]+";"}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return o.join("\n")},n);function n(t){void 0===t&&(t=null),this.styles={},this.addStyles(t)}e.CssStyles=r},8054:function(t,e){var y=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],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 n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},l=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},r=(Object.defineProperty(e,"__esModule",{value:!0}),e.Styles=void 0,["top","right","bottom","left"]),n=["width","style","color"];function b(t){for(var e=t.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),r=[];1<e.length;)e.shift(),r.push(e.shift());return r}function o(t){var e,r,n=b(this.styles[t]);0===n.length&&n.push(""),1===n.length&&n.push(n[0]),2===n.length&&n.push(n[0]),3===n.length&&n.push(n[1]);try{for(var o=y(_.connect[t].children),i=o.next();!i.done;i=o.next()){var a=i.value;this.setStyle(this.childName(t,a),n.shift())}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}function i(t){var e,r,n=_.connect[t].children,o=[];try{for(var i=y(n),a=i.next();!a.done;a=i.next()){var s=a.value,l=this.styles[t+"-"+s];if(!l)return void delete this.styles[t];o.push(l)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}o[3]===o[1]&&(o.pop(),o[2]===o[0]&&(o.pop(),o[1]===o[0]&&o.pop())),this.styles[t]=o.join(" ")}function a(t){var e,r;try{for(var n=y(_.connect[t].children),o=n.next();!o.done;o=n.next()){var i=o.value;this.setStyle(this.childName(t,i),this.styles[t])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}}function s(t){var e,r,n=l([],g(_.connect[t].children),!1),o=this.styles[this.childName(t,n.shift())];try{for(var i=y(n),a=i.next();!a.done;a=i.next()){var s=a.value;if(this.styles[this.childName(t,s)]!==o)return void delete this.styles[t]}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}this.styles[t]=o}var h=/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,d=/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/;function c(t){var e,r,n,o,i={width:"",style:"",color:""};try{for(var a=y(b(this.styles[t])),s=a.next();!s.done;s=a.next()){var l=s.value;l.match(h)&&""===i.width?i.width=l:l.match(d)&&""===i.style?i.style=l:i.color=l}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}try{for(var c=y(_.connect[t].children),u=c.next();!u.done;u=c.next()){var p=u.value;this.setStyle(this.childName(t,p),i[p])}}catch(t){n={error:t}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}}function u(t){var e,r,n=[];try{for(var o=y(_.connect[t].children),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.styles[this.childName(t,a)];s&&n.push(s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}n.length?this.styles[t]=n.join(" "):delete this.styles[t]}var v={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:new RegExp("^(?:"+["normal|none","inherit|initial|unset","common-ligatures|no-common-ligatures","discretionary-ligatures|no-discretionary-ligatures","historical-ligatures|no-historical-ligatures","contextual|no-contextual","(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)","small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","lining-nums|oldstyle-nums|proportional-nums|tabular-nums","diagonal-fractions|stacked-fractions","ordinal|slashed-zero","jis78|jis83|jis90|jis04|simplified|traditional","full-width|proportional-width","ruby"].join("|")+")$"),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:new RegExp("^(?:"+["normal","(?:(?:ultra|extra|semi)-)?condensed","(?:(?:semi|extra|ulta)-)?expanded","inherit|initial|unset"].join("|")+")$"),size:new RegExp("^(?:"+["xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller","[d.]+%|[d.]+[a-z]+","inherit|initial|unset"].join("|")+")(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$")};function p(t){var e,r,n,o,i=b(this.styles[t]),a={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};try{for(var s=y(i),l=s.next();!l.done;l=s.next()){var c=l.value;a.family=c;try{n=void 0;for(var u=y(Object.keys(v)),p=u.next();!p.done;p=u.next()){var h,d,f,m=p.value;(Array.isArray(a[m])||""===a[m])&&c.match(v[m])&&("size"===m?(d=(h=g(c.split(/\//),2))[0],f=h[1],a[m]=d,f&&(a["line-height"]=f)):""===a.size&&(Array.isArray(a[m])?a[m].push(c):a[m]=c))}}catch(t){n={error:t}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}!function(t,e){var r,n;try{for(var o=y(_.connect[t].children),i=o.next();!i.done;i=o.next()){var a,s=i.value,l=this.childName(t,s);Array.isArray(e[s])?(a=e[s]).length&&(this.styles[l]=a.join(" ")):""!==e[s]&&(this.styles[l]=e[s])}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}(t,a),delete this.styles[t]}function f(t){}Object.defineProperty(m.prototype,"cssText",{get:function(){var t,e,r=[];try{for(var n=y(Object.keys(this.styles)),o=n.next();!o.done;o=n.next()){var i=o.value,a=this.parentName(i);this.styles[a]||r.push(i+": "+this.styles[i]+";")}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r.join(" ")},enumerable:!1,configurable:!0}),m.prototype.set=function(t,e){for(t=this.normalizeName(t),this.setStyle(t,e),m.connect[t]&&!m.connect[t].combine&&(this.combineChildren(t),delete this.styles[t]);t.match(/-/)&&(t=this.parentName(t),m.connect[t]);)m.connect[t].combine.call(this,t)},m.prototype.get=function(t){return t=this.normalizeName(t),this.styles.hasOwnProperty(t)?this.styles[t]:""},m.prototype.setStyle=function(t,e){this.styles[t]=e,m.connect[t]&&m.connect[t].children&&m.connect[t].split.call(this,t),""===e&&delete this.styles[t]},m.prototype.combineChildren=function(t){var e,r,n=this.parentName(t);try{for(var o=y(m.connect[t].children),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.childName(n,a);m.connect[s].combine.call(this,s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}},m.prototype.parentName=function(t){var e=t.replace(/-[^-]*$/,"");return t===e?"":e},m.prototype.childName=function(t,e){return e.match(/-/)?e:(m.connect[t]&&!m.connect[t].combine&&(e+=t.replace(/.*-/,"-"),t=this.parentName(t)),t+"-"+e)},m.prototype.normalizeName=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})},m.prototype.parse=function(t){void 0===t&&(t="");var e=this.constructor.pattern;this.styles={};for(var r=t.replace(e.comment,"").split(e.style);1<r.length;){var n=g(r.splice(0,3),3),o=n[0],i=n[1],n=n[2];if(o.match(/[^\s\n]/))return;this.set(i,n)}},m.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},m.connect={padding:{children:r,split:o,combine:i},border:{children:r,split:a,combine:s},"border-top":{children:n,split:c,combine:u},"border-right":{children:n,split:c,combine:u},"border-bottom":{children:n,split:c,combine:u},"border-left":{children:n,split:c,combine:u},"border-width":{children:r,split:o,combine:null},"border-style":{children:r,split:o,combine:null},"border-color":{children:r,split:o,combine:null},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:p,combine:f}};var _=m;function m(t){this.parse(t=void 0===t?"":t)}e.Styles=_},6010:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.px=i.emRounded=i.em=i.percent=i.length2em=i.MATHSPACE=i.RELUNITS=i.UNITS=i.BIGDIMEN=void 0,i.BIGDIMEN=1e6,i.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4},i.RELUNITS={em:1,ex:.431,pt:.1,pc:1.2,mu:1/18},i.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:i.BIGDIMEN},i.length2em=function(t,e,r,n){if(void 0===e&&(e=0),void 0===r&&(r=1),void 0===n&&(n=16),""===(t="string"!=typeof t?String(t):t)||null==t)return e;if(i.MATHSPACE[t])return i.MATHSPACE[t];t=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!t)return e;var o=parseFloat(t[1]||"1"),t=t[2];return i.UNITS.hasOwnProperty(t)?o*i.UNITS[t]/n/r:i.RELUNITS.hasOwnProperty(t)?o*i.RELUNITS[t]:"%"===t?o/100*e:o*e},i.percent=function(t){return(100*t).toFixed(1).replace(/\.?0+$/,"")+"%"},i.em=function(t){return Math.abs(t)<.001?"0":t.toFixed(3).replace(/\.?0+$/,"")+"em"},i.emRounded=function(t,e){return void 0===e&&(e=16),t=(Math.round(t*e)+.05)/e,Math.abs(t)<.001?"0em":t.toFixed(3).replace(/\.?0+$/,"")+"em"},i.px=function(t,e,r){return t*=r=void 0===r?16:r,(e=void 0===e?-i.BIGDIMEN:e)&&t<e&&(t=e),Math.abs(t)<.1?"0":t.toFixed(1).replace(/\.0$/,"")+"px"}},7875:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.max=e.sum=void 0,e.sum=function(t){return t.reduce(function(t,e){return t+e},0)},e.max=function(t){return t.reduce(function(t,e){return Math.max(t,e)},0)}},505:function(t,e){var r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.split=e.isPercent=e.unicodeString=e.unicodeChars=e.quotePattern=e.sortLength=void 0,e.sortLength=function(t,e){return t.length!==e.length?e.length-t.length:t===e?0:t<e?-1:1},e.quotePattern=function(t){return t.replace(/([\^$(){}+*?\-|\[\]\:\\])/g,"\\$1")},e.unicodeChars=function(t){return Array.from(t).map(function(t){return t.codePointAt(0)})},e.unicodeString=function(t){return String.fromCodePoint.apply(String,n([],r(t),!1))},e.isPercent=function(t){return!!t.match(/%\s*$/)},e.split=function(t){return t.trim().split(/\s+/)}},7718:function(t,e){function r(){}function n(t){var e,r,n={};for(e in t)for(r in t[e]){var o=r.split("|");t[e][r].stateArray=o;for(var i=0;i<o.length;i++)n[o[i]]=[]}for(e in t)for(r in t[e])for(o=t[e][r].stateArray||[],i=0;i<o.length;i++){var a=t[e][r];a.action_=[].concat(a.action_);for(var s=0;s<a.action_.length;s++)"string"==typeof a.action_[s]&&(a.action_[s]={type_:a.action_[s]});for(var l=e.split("|"),c=0;c<l.length;c++)if("*"===o[i]){var u=void 0;for(u in n)n[u].push({pattern:l[c],task:a})}else n[o[i]].push({pattern:l[c],task:a})}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.mhchemParser=void 0,r.toTex=function(t,e){return a.go(f.go(t,e),"tex"!==e)},e.mhchemParser=r;var f={go:function(t,e){if(!t)return[];void 0===e&&(e="ce");var r,n="0",o={parenthesisLevel:0};t=(t=(t=t.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var i=10,a=[];;){r!==t?(i=10,r=t):i--;for(var s=f.stateMachines[e],l=s.transitions[n]||s.transitions["*"],c=0;c<l.length;c++){var u=f.patterns.match_(l[c].pattern,t);if(u){for(var p=l[c].task,h=0;h<p.action_.length;h++){var d=void 0;if(s.actions[p.action_[h].type_])d=s.actions[p.action_[h].type_](o,u.match_,p.action_[h].option);else{if(!f.actions[p.action_[h].type_])throw["MhchemBugA","mhchem bug A. Please report. ("+p.action_[h].type_+")"];d=f.actions[p.action_[h].type_](o,u.match_,p.action_[h].option)}f.concatArray(a,d)}if(n=p.nextState||n,!(0<t.length))return a;if(p.revisit||(t=u.remainder),!p.toContinue)break}}if(i<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(t,e){if(e)if(Array.isArray(e))for(var r=0;r<e.length;r++)t.push(e[r]);else t.push(e)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(t){var e=t.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return e&&e[0]?{match_:e.slice(1),remainder:t.substr(e[0].length)}:null},"(-)(9)^(-9)":/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/,"state of aggregation $":function(t){var e=f.patterns.findObserveGroups(t,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(e&&e.remainder.match(/^($|[\s,;\)\]\}])/))return e;e=t.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return e?{match_:e[0],remainder:t.substr(e[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". __* ":/^([.\u22C5\u00B7\u2022]|[*])\s*/,"...":/^\.\.\.(?=$|[^.])/,"^{(...)}":function(t){return f.patterns.findObserveGroups(t,"^{","","","}")},"^($...$)":function(t){return f.patterns.findObserveGroups(t,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(t){return f.patterns.findObserveGroups(t,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(t){return f.patterns.findObserveGroups(t,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(t){return f.patterns.findObserveGroups(t,"_{","","","}")},"_($...$)":function(t){return f.patterns.findObserveGroups(t,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(t){return f.patterns.findObserveGroups(t,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(t){return f.patterns.findObserveGroups(t,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}^":/^\{\}(?=\^)/,"{}":/^\{\}/,"{...}":function(t){return f.patterns.findObserveGroups(t,"","{","}","")},"{(...)}":function(t){return f.patterns.findObserveGroups(t,"{","","","}")},"$...$":function(t){return f.patterns.findObserveGroups(t,"","$","$","")},"${(...)}$__$(...)$":function(t){return f.patterns.findObserveGroups(t,"${","","","}$")||f.patterns.findObserveGroups(t,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(t){return f.patterns.findObserveGroups(t,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(t){return f.patterns.findObserveGroups(t,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(t){return f.patterns.findObserveGroups(t,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(t){return f.patterns.findObserveGroups(t,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(t){return f.patterns.findObserveGroups(t,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(t){return f.patterns.findObserveGroups(t,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(t){return f.patterns.findObserveGroups(t,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(t){return f.patterns.findObserveGroups(t,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}":function(t){return f.patterns.findObserveGroups(t,"\\color{","","","}")},"\\color{(...)}{(...)}":function(t){return f.patterns.findObserveGroups(t,"\\color{","","","}","{","","","}")||f.patterns.findObserveGroups(t,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(t){return f.patterns.findObserveGroups(t,"\\ce{","","","}")},"\\pu{(...)}":function(t){return f.patterns.findObserveGroups(t,"\\pu{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(t){var e;if(e=t.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:e[0],remainder:t.substr(e[0].length)};var r=f.patterns.findObserveGroups(t,"","$","$","");return r&&(e=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:e[0],remainder:t.substr(e[0].length)}:null},amount2:function(t){return this.amount(t)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(t){if(t.match(/^\([a-z]+\)$/))return null;var e=t.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return e?{match_:e[0],remainder:t.substr(e[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(t,e,r,n,o,i,a,s,l,c){function u(t,e){return"string"==typeof e?0!==t.indexOf(e)?null:e:(t=t.match(e))?t[0]:null}e=u(t,e);if(null===e)return null;if(t=t.substr(e.length),null===(e=u(t,r)))return null;r=function(t,e,r){for(var n=0;e<t.length;){var o=t.charAt(e),i=u(t.substr(e),r);if(null!==i&&0===n)return{endMatchBegin:e,endMatchEnd:e+i.length};if("{"===o)n++;else if("}"===o){if(0===n)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];n--}e++}return null}(t,e.length,n||o);if(null===r)return null;e=t.substring(0,n?r.endMatchEnd:r.endMatchBegin);if(i||a){o=this.findObserveGroups(t.substr(r.endMatchEnd),i,a,s,l);if(null===o)return null;n=[e,o.match_];return{match_:c?n.join(""):n,remainder:o.remainder}}return{match_:e,remainder:t.substr(r.endMatchEnd)}},match_:function(t,e){var r=f.patterns.patterns[t];if(void 0===r)throw["MhchemBugP","mhchem bug P. Please report. ("+t+")"];if("function"==typeof r)return f.patterns.patterns[t](e);t=e.match(r);return t?2<t.length?{match_:t.slice(1),remainder:e.substr(t[0].length)}:{match_:t[1]||t[0],remainder:e.substr(t[0].length)}:null}},actions:{"a=":function(t,e){t.a=(t.a||"")+e},"b=":function(t,e){t.b=(t.b||"")+e},"p=":function(t,e){t.p=(t.p||"")+e},"o=":function(t,e){t.o=(t.o||"")+e},"q=":function(t,e){t.q=(t.q||"")+e},"d=":function(t,e){t.d=(t.d||"")+e},"rm=":function(t,e){t.rm=(t.rm||"")+e},"text=":function(t,e){t.text_=(t.text_||"")+e},insert:function(t,e,r){return{type_:r}},"insert+p1":function(t,e,r){return{type_:r,p1:e}},"insert+p1+p2":function(t,e,r){return{type_:r,p1:e[0],p2:e[1]}},copy:function(t,e){return e},write:function(t,e,r){return r},rm:function(t,e){return{type_:"rm",p1:e}},text:function(t,e){return f.go(e,"text")},"tex-math":function(t,e){return f.go(e,"tex-math")},"tex-math tight":function(t,e){return f.go(e,"tex-math tight")},bond:function(t,e,r){return{type_:"bond",kind_:r||e}},"color0-output":function(t,e){return{type_:"color0",color:e}},ce:function(t,e){return f.go(e,"ce")},pu:function(t,e){return f.go(e,"pu")},"1/2":function(t,e){var r=[],e=(e.match(/^[+\-]/)&&(r.push(e.substr(0,1)),e=e.substr(1)),e.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/));return e[1]=e[1].replace(/\$/g,""),r.push({type_:"frac",p1:e[1],p2:e[2]}),e[3]&&(e[3]=e[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:e[3]})),r},"9,9":function(t,e){return f.go(e,"9,9")}},stateMachines:{tex:{transitions:n({empty:{0:{action_:"copy"}},"\\ce{(...)}":{0:{action_:[{type_:"write",option:"{"},"ce",{type_:"write",option:"}"}]}},"\\pu{(...)}":{0:{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},else:{0:{action_:"copy"}}}),actions:{}},ce:{transitions:n({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{action_:[]}},space:{a:{action_:[],nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". __* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{action_:[]}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}^":{"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"tinySkip"}],nextState:"1"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}],nextState:"3"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(t,e){var r,n;return(t.d||"").match(/^[1-9][0-9]*$/)?(n=t.d,t.d=void 0,(r=this.output(t)).push({type_:"tinySkip"}),t.b=n):r=this.output(t),f.actions["o="](t,e),r},"d= kv":function(t,e){t.d=e,t.dType="kv"},"charge or bond":function(t,e){var r;if(t.beginsWithBond)return f.concatArray(r=[],this.output(t)),f.concatArray(r,f.actions.bond(t,e,"-")),r;t.d=e},"- after o/d":function(t,e,r){var n=f.patterns.match_("orbital",t.o||""),o=f.patterns.match_("one lowercase greek letter $",t.o||""),i=f.patterns.match_("one lowercase latin letter $",t.o||""),a=f.patterns.match_("$one lowercase latin letter$ $",t.o||""),o="-"===e&&(n&&""===n.remainder||o||i||a),a=(!o||t.a||t.b||t.p||t.d||t.q||n||!i||(t.o="$"+t.o+"$"),[]);return o?(f.concatArray(a,this.output(t)),a.push({type_:"hyphen"})):(n=f.patterns.match_("digits",t.d||""),r&&n&&""===n.remainder?(f.concatArray(a,f.actions["d="](t,e)),f.concatArray(a,this.output(t))):(f.concatArray(a,this.output(t)),f.concatArray(a,f.actions.bond(t,e,"-")))),a},"a to o":function(t){t.o=t.a,t.a=void 0},"sb=true":function(t){t.sb=!0},"sb=false":function(t){t.sb=!1},"beginsWithBond=true":function(t){t.beginsWithBond=!0},"beginsWithBond=false":function(t){t.beginsWithBond=!1},"parenthesisLevel++":function(t){t.parenthesisLevel++},"parenthesisLevel--":function(t){t.parenthesisLevel--},"state of aggregation":function(t,e){return{type_:"state of aggregation",p1:f.go(e,"o")}},comma:function(t,e){var r=e.replace(/\s*$/,"");return r!==e&&0===t.parenthesisLevel?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(t,e,r){var n,o,i;for(i in t.r?(o=void 0,o="M"===t.rdt?f.go(t.rd,"tex-math"):"T"===t.rdt?[{type_:"text",p1:t.rd||""}]:f.go(t.rd,"ce"),n=void 0,n="M"===t.rqt?f.go(t.rq,"tex-math"):"T"===t.rqt?[{type_:"text",p1:t.rq||""}]:f.go(t.rq,"ce"),o={type_:"arrow",r:t.r,rd:o,rq:n}):(o=[],(t.a||t.b||t.p||t.o||t.q||t.d||r)&&(t.sb&&o.push({type_:"entitySkip"}),t.o||t.q||t.d||t.b||t.p||2===r?t.o||t.q||t.d||!t.b&&!t.p?t.o&&"kv"===t.dType&&f.patterns.match_("d-oxidation$",t.d||"")?t.dType="oxidation":t.o&&"kv"===t.dType&&!t.q&&(t.dType=void 0):(t.o=t.a,t.d=t.b,t.q=t.p,t.a=t.b=t.p=void 0):(t.o=t.a,t.a=void 0),o.push({type_:"chemfive",a:f.go(t.a,"a"),b:f.go(t.b,"bd"),p:f.go(t.p,"pq"),o:f.go(t.o,"o"),q:f.go(t.q,"pq"),d:f.go(t.d,"oxidation"===t.dType?"oxidation":"bd"),dType:t.dType}))),t)"parenthesisLevel"!==i&&"beginsWithBond"!==i&&delete t[i];return o},"oxidation-output":function(t,e){var r=["{"];return f.concatArray(r,f.go(e,"oxidation")),r.push("}"),r},"frac-output":function(t,e){return{type_:"frac-ce",p1:f.go(e[0],"ce"),p2:f.go(e[1],"ce")}},"overset-output":function(t,e){return{type_:"overset",p1:f.go(e[0],"ce"),p2:f.go(e[1],"ce")}},"underset-output":function(t,e){return{type_:"underset",p1:f.go(e[0],"ce"),p2:f.go(e[1],"ce")}},"underbrace-output":function(t,e){return{type_:"underbrace",p1:f.go(e[0],"ce"),p2:f.go(e[1],"ce")}},"color-output":function(t,e){return{type_:"color",color1:e[0],color2:f.go(e[1],"ce")}},"r=":function(t,e){t.r=e},"rdt=":function(t,e){t.rdt=e},"rd=":function(t,e){t.rd=e},"rqt=":function(t,e){t.rqt=e},"rq=":function(t,e){t.rq=e},operator:function(t,e,r){return{type_:"operator",kind_:r||e}}}},a:{transitions:n({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:n({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:[{type_:"write",option:"{"},"text",{type_:"write",option:"}"}]}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:n({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(t){if(t.text_){var e,r={type_:"text",p1:t.text_};for(e in t)delete t[e];return r}}}},pq:{transitions:n({empty:{"*":{action_:[]}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{action_:[],nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(t,e){return{type_:"state of aggregation subscript",p1:f.go(e,"o")}},"color-output":function(t,e){return{type_:"color",color1:e[0],color2:f.go(e[1],"pq")}}}},bd:{transitions:n({empty:{"*":{action_:[]}},x$:{0:{action_:[],nextState:"!f",revisit:!0}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(t,e){return{type_:"color",color1:e[0],color2:f.go(e[1],"bd")}}}},oxidation:{transitions:n({empty:{"*":{action_:[]}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(t,e){return{type_:"roman numeral",p1:e}}}},"tex-math":{transitions:n({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(t){if(t.o){var e,r={type_:"tex-math",p1:t.o};for(e in t)delete t[e];return r}}}},"tex-math tight":{transitions:n({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(t,e){t.o=(t.o||"")+"{"+e+"}"},output:function(t){if(t.o){var e,r={type_:"tex-math",p1:t.o};for(e in t)delete t[e];return r}}}},"9,9":{transitions:n({empty:{"*":{action_:[]}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:n({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{action_:[]}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(t,e){var r=[];return"+-"===e[0]||"+/-"===e[0]?r.push("\\pm "):e[0]&&r.push(e[0]),e[1]&&(f.concatArray(r,f.go(e[1],"pu-9,9")),e[2]&&(e[2].match(/[,.]/)?f.concatArray(r,f.go(e[2],"pu-9,9")):r.push(e[2])),(e[3]||e[4])&&("e"===e[3]||"*"===e[4]?r.push({type_:"cdot"}):r.push({type_:"times"}))),e[5]&&r.push("10^{"+e[5]+"}"),r},"number^":function(t,e){var r=[];return"+-"===e[0]||"+/-"===e[0]?r.push("\\pm "):e[0]&&r.push(e[0]),f.concatArray(r,f.go(e[1],"pu-9,9")),r.push("^{"+e[2]+"}"),r},operator:function(t,e,r){return{type_:"operator",kind_:r||e}},space:function(){return{type_:"pu-space-1"}},output:function(t){var e,r,n=f.patterns.match_("{(...)}",t.d||""),n=(n&&""===n.remainder&&(t.d=n.match_),f.patterns.match_("{(...)}",t.q||""));for(r in n&&""===n.remainder&&(t.q=n.match_),t.d&&(t.d=t.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),t.d=t.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),t.q?(t.q=t.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),t.q=t.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F"),n={d:f.go(t.d,"pu"),q:f.go(t.q,"pu")},"//"===t.o?e={type_:"pu-frac",p1:n.d,p2:n.q}:(1<(e=n.d).length||1<n.q.length?e.push({type_:" / "}):e.push({type_:"/"}),f.concatArray(e,n.q))):e=f.go(t.d,"pu-2"),t)delete t[r];return e}}},"pu-2":{transitions:n({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(t,e){t.rm+="^{"+e+"}"},space:function(){return{type_:"pu-space-2"}},output:function(t){var e,r,n=[];for(r in t.rm&&(n=(e=f.patterns.match_("{(...)}",t.rm||""))&&""===e.remainder?f.go(e.match_,"pu"):{type_:"rm",p1:t.rm}),t)delete t[r];return n}}},"pu-9,9":{transitions:n({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(t){var e,r=[];if(t.text_=t.text_||"",4<t.text_.length){var n=t.text_.length%3;0===n&&(n=3);for(var o=t.text_.length-3;0<o;o-=3)r.push(t.text_.substr(o,3)),r.push({type_:"1000 separator"});r.push(t.text_.substr(0,n)),r.reverse()}else r.push(t.text_);for(e in t)delete t[e];return r},"output-o":function(t){var e,r=[];if(t.text_=t.text_||"",4<t.text_.length){for(var n=t.text_.length-3,o=void 0,o=0;o<n;o+=3)r.push(t.text_.substr(o,3)),r.push({type_:"1000 separator"});r.push(t.text_.substr(o))}else r.push(t.text_);for(e in t)delete t[e];return r}}}}},a={go:function(t,e){if(!t)return"";for(var r="",n=!1,o=0;o<t.length;o++){var i=t[o];"string"==typeof i?r+=i:(r+=a._go2(i),"1st-level escape"===i.type_&&(n=!0))}return r=e&&!n&&r?"{"+r+"}":r},_goInner:function(t){return a.go(t,!1)},_go2:function(t){switch(t.type_){case"chemfive":var e="",r={a:a._goInner(t.a),b:a._goInner(t.b),p:a._goInner(t.p),o:a._goInner(t.o),q:a._goInner(t.q),d:a._goInner(t.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),e+=r.a+"\\,"),(r.b||r.p)&&(e=(e=(e=(e+="{\\vphantom{A}}")+("^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}")+"\\mkern-1.5mu")+"{\\vphantom{A}}"+("^{\\smash[t]{\\vphantom{2}}\\llap{"+(r.b||"")+"}}"))+("_{\\vphantom{2}\\llap{\\smash[t]{"+(r.p||"")+"}}}")),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),e+=r.o),"kv"===t.dType?((r.d||r.q)&&(e+="{\\vphantom{A}}"),r.d&&(e+="^{"+r.d+"}"),r.q&&(e+="_{\\smash[t]{"+r.q+"}}")):"oxidation"===t.dType?(r.d&&(e=e+"{\\vphantom{A}}"+("^{"+r.d+"}")),r.q&&(e=e+"{\\vphantom{A}}"+("_{\\smash[t]{"+r.q+"}}"))):(r.q&&(e=e+"{\\vphantom{A}}"+("_{\\smash[t]{"+r.q+"}}")),r.d&&(e=e+"{\\vphantom{A}}"+("^{"+r.d+"}")));break;case"rm":case"roman numeral":e="\\mathrm{"+t.p1+"}";break;case"text":e=t.p1.match(/[\^_]/)?(t.p1=t.p1.replace(" ","~").replace("-","\\text{-}"),"\\mathrm{"+t.p1+"}"):"\\text{"+t.p1+"}";break;case"state of aggregation":e="\\mskip2mu "+a._goInner(t.p1);break;case"state of aggregation subscript":e="\\mskip1mu "+a._goInner(t.p1);break;case"bond":if(e=a._getBond(t.kind_))break;throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+t.kind_+")"];case"frac":r="\\frac{"+t.p1+"}{"+t.p2+"}";e="\\mathchoice{\\textstyle"+r+"}{"+r+"}{"+r+"}{"+r+"}";break;case"pu-frac":r="\\frac{"+a._goInner(t.p1)+"}{"+a._goInner(t.p2)+"}";e="\\mathchoice{\\textstyle"+r+"}{"+r+"}{"+r+"}{"+r+"}";break;case"tex-math":case"1st-level escape":e=t.p1+" ";break;case"frac-ce":e="\\frac{"+a._goInner(t.p1)+"}{"+a._goInner(t.p2)+"}";break;case"overset":e="\\overset{"+a._goInner(t.p1)+"}{"+a._goInner(t.p2)+"}";break;case"underset":e="\\underset{"+a._goInner(t.p1)+"}{"+a._goInner(t.p2)+"}";break;case"underbrace":e="\\underbrace{"+a._goInner(t.p1)+"}_{"+a._goInner(t.p2)+"}";break;case"color":e="{\\color{"+t.color1+"}{"+a._goInner(t.color2)+"}}";break;case"color0":e="\\color{"+t.color+"}";break;case"arrow":var r=a._goInner(t.rd),n=a._goInner(t.rq),o=a._getArrow(t.r);e=o=r||n?"<=>"===t.r||"<=>>"===t.r||"<<=>"===t.r||"<--\x3e"===t.r?(o="\\long"+o,r&&(o="\\overset{"+r+"}{"+o+"}")," {}\\mathrel{"+(o=n?"<--\x3e"===t.r?"\\underset{\\lower2mu{"+n+"}}{"+o+"}":"\\underset{\\lower6mu{"+n+"}}{"+o+"}":o)+"}{} "):(n&&(o+="[{"+n+"}]")," {}\\mathrel{\\x"+o+"{"+r+"}}{} "):" {}\\mathrel{\\long"+o+"}{} ";break;case"operator":e=a._getOperator(t.kind_);break;case"space":e=" ";break;case"tinySkip":e="\\mkern2mu";break;case"entitySkip":case"pu-space-1":e="~";break;case"pu-space-2":e="\\mkern3mu ";break;case"1000 separator":e="\\mkern2mu ";break;case"commaDecimal":e="{,}";break;case"comma enumeration L":e="{"+t.p1+"}\\mkern6mu ";break;case"comma enumeration M":e="{"+t.p1+"}\\mkern3mu ";break;case"comma enumeration S":e="{"+t.p1+"}\\mkern1mu ";break;case"hyphen":e="\\text{-}";break;case"addition compound":e="\\,{\\cdot}\\,";break;case"electron dot":e="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":e="{\\times}";break;case"prime":e="\\prime ";break;case"cdot":e="\\cdot ";break;case"tight cdot":e="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":e="\\times ";break;case"circa":e="{\\sim}";break;case"^":e="uparrow";break;case"v":e="downarrow";break;case"ellipsis":e="\\ldots ";break;case"/":e="/";break;case" / ":e="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return e},_getArrow:function(t){switch(t){case"->":case"→":case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"leftrightarrows";case"<=>":case"⇌":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(t){switch(t){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(t){switch(t){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}}},9329:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEntry=void 0,r(9328)),s=r(2165),r=(o=a.MenuElement,i(l,o),Object.defineProperty(l.prototype,"menu",{get:function(){return this._menu},set:function(t){this._menu=t},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),l.prototype.hide=function(){this.hidden=!0,this.menu.generateMenu()},l.prototype.show=function(){this.hidden=!1,this.menu.generateMenu()},l.prototype.isHidden=function(){return this.hidden},l);function l(t,e){var r=o.call(this)||this;return r._menu=t,r._type=e,r.className=s.HtmlClasses.MENUITEM,r.role="menuitem",r.hidden=!1,r}e.AbstractEntry=r},1340:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractItem=void 0,r(9329)),l=r(2556),c=r(2165),r=(o=s.AbstractEntry,i(u,o),Object.defineProperty(u.prototype,"content",{get:function(){return this._content},set:function(t){this._content=t,this.generateHtml(),this.menu&&this.menu.generateHtml()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),u.prototype.press=function(){this.disabled||(this.executeAction(),this.executeCallbacks_())},u.prototype.executeAction=function(){},u.prototype.registerCallback=function(t){-1===this.callbacks.indexOf(t)&&this.callbacks.push(t)},u.prototype.unregisterCallback=function(t){t=this.callbacks.indexOf(t);-1!==t&&this.callbacks.splice(t,1)},u.prototype.mousedown=function(t){this.press(),this.stop(t)},u.prototype.mouseover=function(t){this.focus(),this.stop(t)},u.prototype.mouseout=function(t){this.deactivate(),this.stop(t)},u.prototype.generateHtml=function(){o.prototype.generateHtml.call(this);var t=this.html;t.setAttribute("aria-disabled","false"),t.textContent=this.content},u.prototype.activate=function(){this.disabled||this.html.classList.add(c.HtmlClasses.MENUACTIVE)},u.prototype.deactivate=function(){this.html.classList.remove(c.HtmlClasses.MENUACTIVE)},u.prototype.focus=function(){this.menu.focused=this,o.prototype.focus.call(this),this.activate()},u.prototype.unfocus=function(){this.deactivate(),o.prototype.unfocus.call(this)},u.prototype.escape=function(t){l.MenuUtil.close(this)},u.prototype.up=function(t){this.menu.up(t)},u.prototype.down=function(t){this.menu.down(t)},u.prototype.left=function(t){this.menu.left(t)},u.prototype.right=function(t){this.menu.right(t)},u.prototype.space=function(t){this.press()},u.prototype.disable=function(){this.disabled=!0;var t=this.html;t.classList.add(c.HtmlClasses.MENUDISABLED),t.setAttribute("aria-disabled","true")},u.prototype.enable=function(){this.disabled=!1;var t=this.html;t.classList.remove(c.HtmlClasses.MENUDISABLED),t.removeAttribute("aria-disabled")},u.prototype.executeCallbacks_=function(){var t,e;try{for(var r=a(this.callbacks),n=r.next();!n.done;n=r.next()){var o=n.value;try{o(this)}catch(t){l.MenuUtil.error(t,"Callback for menu entry "+this.id+" failed.")}}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},u);function u(t,e,r,n){t=o.call(this,t,e)||this;return t._content=r,t.disabled=!1,t.callbacks=[],t._id=n||r,t}e.AbstractItem=r},1484:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMenu=void 0,r(8372)),l=r(1340),c=r(2165),u=r(6186),r=(o=a.AbstractPostable,i(p,o),Object.defineProperty(p.prototype,"baseMenu",{get:function(){return this._baseMenu},set:function(t){this._baseMenu=t},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"items",{get:function(){return this._items},set:function(t){this._items=t},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"pool",{get:function(){return this.variablePool},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"focused",{get:function(){return this._focused},set:function(t){var e;this._focused!==t&&(this._focused||this.unfocus(),e=this._focused,this._focused=t,e&&e.unfocus())},enumerable:!1,configurable:!0}),p.prototype.up=function(t){var e,r=this.items.filter(function(t){return t instanceof l.AbstractItem&&!t.isHidden()});0!==r.length&&(this.focused?-1!==(e=r.indexOf(this.focused))&&r[e=e?--e:r.length-1].focus():r[r.length-1].focus())},p.prototype.down=function(t){var e,r=this.items.filter(function(t){return t instanceof l.AbstractItem&&!t.isHidden()});0!==r.length&&(this.focused?-1!==(e=r.indexOf(this.focused))&&r[e=++e===r.length?0:e].focus():r[0].focus())},p.prototype.generateHtml=function(){o.prototype.generateHtml.call(this),this.generateMenu()},p.prototype.generateMenu=function(){var t,e,r=this.html;r.classList.add(c.HtmlClasses.MENU);try{for(var n=s(this.items),o=n.next();!o.done;o=n.next()){var i,a=o.value;a.isHidden()?(i=a.html).parentNode&&i.parentNode.removeChild(i):r.appendChild(a.html)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},p.prototype.post=function(t,e){this.variablePool.update(),o.prototype.post.call(this,t,e)},p.prototype.unpostSubmenus=function(){var t,e,r=this.items.filter(function(t){return t instanceof u.Submenu});try{for(var n=s(r),o=n.next();!o.done;o=n.next()){var i=o.value;i.submenu.unpost(),i!==this.focused&&i.unfocus()}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},p.prototype.unpost=function(){o.prototype.unpost.call(this),this.unpostSubmenus(),this.focused=null},p.prototype.find=function(t){var e,r;try{for(var n=s(this.items),o=n.next();!o.done;o=n.next()){var i=o.value;if("rule"!==i.type){if(i.id===t)return i;if("submenu"===i.type){var a=i.submenu.find(t);if(a)return a}}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return null},p);function p(){var t=null!==o&&o.apply(this,arguments)||this;return t.className=c.HtmlClasses.CONTEXTMENU,t.role="menu",t._items=[],t._baseMenu=null,t}e.AbstractMenu=r},2868:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractNavigatable=void 0;var n=r(3205),o=r(8853);function i(){this.bubble=!1}i.prototype.bubbleKey=function(){this.bubble=!0},i.prototype.keydown=function(t){switch(t.keyCode){case n.KEY.ESCAPE:this.escape(t);break;case n.KEY.RIGHT:this.right(t);break;case n.KEY.LEFT:this.left(t);break;case n.KEY.UP:this.up(t);break;case n.KEY.DOWN:this.down(t);break;case n.KEY.RETURN:case n.KEY.SPACE:this.space(t);break;default:return}this.bubble?this.bubble=!1:this.stop(t)},i.prototype.escape=function(t){},i.prototype.space=function(t){},i.prototype.left=function(t){},i.prototype.right=function(t){},i.prototype.up=function(t){},i.prototype.down=function(t){},i.prototype.stop=function(t){t&&(t.stopPropagation(),t.preventDefault(),t.cancelBubble=!0)},i.prototype.mousedown=function(t){return this.stop(t)},i.prototype.mouseup=function(t){return this.stop(t)},i.prototype.mouseover=function(t){return this.stop(t)},i.prototype.mouseout=function(t){return this.stop(t)},i.prototype.click=function(t){return this.stop(t)},i.prototype.addEvents=function(t){t.addEventListener(o.MOUSE.DOWN,this.mousedown.bind(this)),t.addEventListener(o.MOUSE.UP,this.mouseup.bind(this)),t.addEventListener(o.MOUSE.OVER,this.mouseover.bind(this)),t.addEventListener(o.MOUSE.OUT,this.mouseout.bind(this)),t.addEventListener(o.MOUSE.CLICK,this.click.bind(this)),t.addEventListener("keydown",this.keydown.bind(this)),t.addEventListener("dragstart",this.stop.bind(this)),t.addEventListener(o.MOUSE.SELECTSTART,this.stop.bind(this)),t.addEventListener("contextmenu",this.stop.bind(this)),t.addEventListener(o.MOUSE.DBLCLICK,this.stop.bind(this))},e.AbstractNavigatable=i},8372:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractPostable=void 0,o=r(9328).MenuElement,i(a,o),a.prototype.isPosted=function(){return this.posted},a.prototype.post=function(t,e){this.posted||(void 0!==t&&void 0!==e&&this.html.setAttribute("style","left: "+t+"px; top: "+e+"px;"),this.display(),this.posted=!0)},a.prototype.unpost=function(){var t;this.posted&&((t=this.html).parentNode&&t.parentNode.removeChild(t),this.posted=!1)},a);function a(){var t=null!==o&&o.apply(this,arguments)||this;return t.posted=!1,t}e.AbstractPostable=r},6765:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractVariableItem=void 0,o=r(1340).AbstractItem,i(a,o),a.prototype.generateHtml=function(){o.prototype.generateHtml.call(this);var t=this.html;this.span||this.generateSpan(),t.appendChild(this.span),this.update()},a.prototype.register=function(){this.variable.register(this)},a.prototype.unregister=function(){this.variable.unregister(this)},a.prototype.update=function(){this.updateAria(),this.span&&this.updateSpan()},a);function a(){return null!==o&&o.apply(this,arguments)||this}e.AbstractVariableItem=r},5179:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.CloseButton=void 0,r(8372)),s=r(2165),r=(o=a.AbstractPostable,i(l,o),l.prototype.generateHtml=function(){var t=document.createElement("span"),e=(t.classList.add(this.className),t.setAttribute("role",this.role),t.setAttribute("tabindex","0"),document.createElement("span"));e.textContent="×",t.appendChild(e),this.html=t},l.prototype.display=function(){},l.prototype.unpost=function(){o.prototype.unpost.call(this),this.element.unpost()},l.prototype.keydown=function(t){this.bubbleKey(),o.prototype.keydown.call(this,t)},l.prototype.space=function(t){this.unpost(),this.stop(t)},l.prototype.mousedown=function(t){this.unpost(),this.stop(t)},l);function l(t){var e=o.call(this)||this;return e.element=t,e.className=s.HtmlClasses.MENUCLOSE,e.role="button",e}e.CloseButton=r},5073:function(t,e,r){var n,a,o=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenu=void 0,r(1484)),s=r(2165),l=r(1932),c=r(2358),r=(a=i.AbstractMenu,o(u,a),u.fromJson=function(e,t){var r=t.pool,n=t.items,t=t.id,t=void 0===t?"":t,o=new this(e),i=(o.id=t,e.get("variable")),t=(r.forEach(function(t){return i(e,t,o.pool)}),e.get("items")(e,n,o));return o.items=t,o},u.prototype.generateHtml=function(){this.isPosted()&&this.unpost(),a.prototype.generateHtml.call(this),this._frame=document.createElement("div"),this._frame.classList.add(s.HtmlClasses.MENUFRAME);var t="left: 0px; top: 0px; z-index: 200; width: 100%; height: 100%; border: 0px; padding: 0px; margin: 0px;",e=(this._frame.setAttribute("style","position: absolute; "+t),document.createElement("div"));e.setAttribute("style","position: fixed; "+t),this._frame.appendChild(e),e.addEventListener("mousedown",function(t){this.unpost(),this.unpostWidgets(),this.stop(t)}.bind(this))},u.prototype.display=function(){document.body.appendChild(this.frame),this.frame.appendChild(this.html),this.focus()},u.prototype.escape=function(t){this.unpost(),this.unpostWidgets()},u.prototype.unpost=function(){var t;a.prototype.unpost.call(this),0<this.widgets.length||(this.frame.parentNode.removeChild(this.frame),t=this.store,this.moving||t.insertTaborder(),t.active.focus())},u.prototype.left=function(t){this.move_(this.store.previous())},u.prototype.right=function(t){this.move_(this.store.next())},Object.defineProperty(u.prototype,"frame",{get:function(){return this._frame},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"store",{get:function(){return this._store},enumerable:!1,configurable:!0}),u.prototype.post=function(t,e){if(void 0!==e)return this.moving||this.store.removeTaborder(),void a.prototype.post.call(this,t,e);var r,n,o,i,e=t,t=(e instanceof Event?(r=e.target,this.stop(e)):r=e,e instanceof MouseEvent&&(o=e.pageX,i=e.pageY,o||i||!e.clientX||(o=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,i=e.clientY+document.body.scrollTop+document.documentElement.scrollTop)),o||i||!r||(t=window.pageXOffset||document.documentElement.scrollLeft,e=window.pageYOffset||document.documentElement.scrollTop,o=((n=r.getBoundingClientRect()).right+n.left)/2+t,i=(n.bottom+n.top)/2+e),this.store.active=r,this.anchor=this.store.active,this.html);o+t.offsetWidth>document.body.offsetWidth-5&&(o=document.body.offsetWidth-t.offsetWidth-5),this.post(o,i)},u.prototype.registerWidget=function(t){this.widgets.push(t)},u.prototype.unregisterWidget=function(t){t=this.widgets.indexOf(t);-1<t&&this.widgets.splice(t,1),0===this.widgets.length&&this.unpost()},u.prototype.unpostWidgets=function(){this.widgets.forEach(function(t){return t.unpost()})},u.prototype.toJson=function(){return{type:""}},u.prototype.move_=function(t){this.anchor&&t!==this.anchor&&(this.moving=!0,this.unpost(),this.post(t),this.moving=!1)},u);function u(t){var e=a.call(this)||this;return e.factory=t,e.id="",e.moving=!1,e._store=new l.MenuStore(e),e.widgets=[],e.variablePool=new c.VariablePool,e}e.ContextMenu=r},7309:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CssStyles=void 0;var n,o,i,a,s,l,c=r(2165);function u(t){return"."+(c.HtmlClasses[t]||t)}function p(t){l||(h(i,t),l=!0)}function h(t,e){var r,e=e||document,n=e.createElement("style"),o=(n.type="text/css","");for(r in t)o+=r,o+=" ",o+=t[r],o+="\n";n.innerHTML=o,e.head.appendChild(n)}r=e.CssStyles||(e.CssStyles={}),(n={})[u("INFOCLOSE")]="{ top:.2em; right:.2em;}",n[u("INFOCONTENT")]="{ overflow:auto; text-align:left; font-size:80%; padding:.4em .6em; border:1px inset; margin:1em 0px; max-height:20em; max-width:30em; background-color:#EEEEEE; white-space:normal;}",n[u("INFO")+u("MOUSEPOST")]="{outline:none;}",n[u("INFO")]='{ position:fixed; left:50%; width:auto; text-align:center; border:3px outset; padding:1em 2em; background-color:#DDDDDD; color:black; cursor:default; font-family:message-box; font-size:120%; font-style:normal; text-indent:0; text-transform:none; line-height:normal; letter-spacing:normal; word-spacing:normal; word-wrap:normal; white-space:nowrap; float:none; z-index:201; border-radius: 15px; /* Opera 10.5 and IE9 */ -webkit-border-radius:15px; /* Safari and Chrome */ -moz-border-radius:15px; /* Firefox */ -khtml-border-radius:15px; /* Konqueror */ box-shadow:0px 10px 20px #808080; /* Opera 10.5 and IE9 */ -webkit-box-shadow:0px 10px 20px #808080; /* Safari 3 & Chrome */ -moz-box-shadow:0px 10px 20px #808080; /* Forefox 3.5 */ -khtml-box-shadow:0px 10px 20px #808080; /* Konqueror */ filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color="gray", Positive="true"); /* IE */}',(o={})[u("MENU")]="{ position:absolute; background-color:white; color:black; width:auto; padding:5px 0px; border:1px solid #CCCCCC; margin:0; cursor:default; font: menu; text-align:left; text-indent:0; text-transform:none; line-height:normal; letter-spacing:normal; word-spacing:normal; word-wrap:normal; white-space:nowrap; float:none; z-index:201; border-radius: 5px; /* Opera 10.5 and IE9 */ -webkit-border-radius: 5px; /* Safari and Chrome */ -moz-border-radius: 5px; /* Firefox */ -khtml-border-radius: 5px; /* Konqueror */ box-shadow:0px 10px 20px #808080; /* Opera 10.5 and IE9 */ -webkit-box-shadow:0px 10px 20px #808080; /* Safari 3 & Chrome */ -moz-box-shadow:0px 10px 20px #808080; /* Forefox 3.5 */ -khtml-box-shadow:0px 10px 20px #808080; /* Konqueror */}",o[u("MENUITEM")]="{ padding: 1px 2em; background:transparent;}",o[u("MENUARROW")]="{ position:absolute; right:.5em; padding-top:.25em; color:#666666; font-family: null; font-size: .75em}",o[u("MENUACTIVE")+" "+u("MENUARROW")]="{color:white}",o[u("MENUARROW")+u("RTL")]="{left:.5em; right:auto}",o[u("MENUCHECK")]="{ position:absolute; left:.7em; font-family: null}",o[u("MENUCHECK")+u("RTL")]="{ right:.7em; left:auto }",o[u("MENURADIOCHECK")]="{ position:absolute; left: .7em;}",o[u("MENURADIOCHECK")+u("RTL")]="{ right: .7em; left:auto}",o[u("MENUINPUTBOX")]="{ padding-left: 1em; right:.5em; color:#666666; font-family: null;}",o[u("MENUINPUTBOX")+u("RTL")]="{ left: .1em;}",o[u("MENUCOMBOBOX")]="{ left:.1em; padding-bottom:.5em;}",o[u("MENUSLIDER")]="{ left: .1em;}",o[u("SLIDERVALUE")]="{ position:absolute; right:.1em; padding-top:.25em; color:#333333; font-size: .75em}",o[u("SLIDERBAR")]="{ outline: none; background: #d3d3d3}",o[u("MENULABEL")]="{ padding: 1px 2em 3px 1.33em; font-style:italic}",o[u("MENURULE")]="{ border-top: 1px solid #DDDDDD; margin: 4px 3px;}",o[u("MENUDISABLED")]="{ color:GrayText}",o[u("MENUACTIVE")]="{ background-color: #606872; color: white;}",o[u("MENUDISABLED")+":focus"]="{ background-color: #E8E8E8}",o[u("MENULABEL")+":focus"]="{ background-color: #E8E8E8}",o[u("CONTEXTMENU")+":focus"]="{ outline:none}",o[u("CONTEXTMENU")+" "+u("MENUITEM")+":focus"]="{ outline:none}",o[u("SELECTIONMENU")]="{ position:relative; float:left; border-bottom: none; -webkit-box-shadow:none; -webkit-border-radius:0px; }",o[u("SELECTIONITEM")]="{ padding-right: 1em;}",o[u("SELECTION")]="{ right: 40%; width:50%; }",o[u("SELECTIONBOX")]="{ padding: 0em; max-height:20em; max-width: none; background-color:#FFFFFF;}",o[u("SELECTIONDIVIDER")]="{ clear: both; border-top: 2px solid #000000;}",o[u("MENU")+" "+u("MENUCLOSE")]="{ top:-10px; left:-10px}",(i={})[u("MENUCLOSE")]='{ position:absolute; cursor:pointer; display:inline-block; border:2px solid #AAA; border-radius:18px; -webkit-border-radius: 18px; /* Safari and Chrome */ -moz-border-radius: 18px; /* Firefox */ -khtml-border-radius: 18px; /* Konqueror */ font-family: "Courier New", Courier; font-size:24px; color:#F0F0F0}',i[u("MENUCLOSE")+" span"]="{ display:block; background-color:#AAA; border:1.5px solid; border-radius:18px; -webkit-border-radius: 18px; /* Safari and Chrome */ -moz-border-radius: 18px; /* Firefox */ -khtml-border-radius: 18px; /* Konqueror */ line-height:0; padding:8px 0 6px /* may need to be browser-specific */}",i[u("MENUCLOSE")+":hover"]="{ color:white!important; border:2px solid #CCC!important}",i[u("MENUCLOSE")+":hover span"]="{ background-color:#CCC!important}",a=!(i[u("MENUCLOSE")+":hover:focus"]="{ outline:none}"),l=s=!1,r.addMenuStyles=function(t){s||(h(o,t),s=!0,p(t))},r.addInfoStyles=function(t){a||(h(n,t),a=!0,p(t))}},2165:function(t,e){function r(t){return"CtxtMenu_"+t}Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlAttrs=e.HtmlClasses=void 0,e.HtmlClasses={ATTACHED:r("Attached"),CONTEXTMENU:r("ContextMenu"),MENU:r("Menu"),MENUARROW:r("MenuArrow"),MENUACTIVE:r("MenuActive"),MENUCHECK:r("MenuCheck"),MENUCLOSE:r("MenuClose"),MENUCOMBOBOX:r("MenuComboBox"),MENUDISABLED:r("MenuDisabled"),MENUFRAME:r("MenuFrame"),MENUITEM:r("MenuItem"),MENULABEL:r("MenuLabel"),MENURADIOCHECK:r("MenuRadioCheck"),MENUINPUTBOX:r("MenuInputBox"),MENURULE:r("MenuRule"),MENUSLIDER:r("MenuSlider"),MOUSEPOST:r("MousePost"),RTL:r("RTL"),INFO:r("Info"),INFOCLOSE:r("InfoClose"),INFOCONTENT:r("InfoContent"),INFOSIGNATURE:r("InfoSignature"),INFOTITLE:r("InfoTitle"),SLIDERVALUE:r("SliderValue"),SLIDERBAR:r("SliderBar"),SELECTION:r("Selection"),SELECTIONBOX:r("SelectionBox"),SELECTIONMENU:r("SelectionMenu"),SELECTIONDIVIDER:r("SelectionDivider"),SELECTIONITEM:r("SelectionItem")},e.HtmlAttrs={COUNTER:r("Counter"),KEYDOWNFUNC:r("keydownFunc"),CONTEXTMENUFUNC:r("contextmenuFunc"),OLDTAB:r("Oldtabindex"),TOUCHFUNC:r("TouchFunc")}},4922:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.Info=void 0,r(5179)),s=r(2165),r=(o=r(8372).AbstractPostable,i(l,o),l.prototype.attachMenu=function(t){this.menu=t},l.prototype.generateHtml=function(){o.prototype.generateHtml.call(this);var t=this.html;t.appendChild(this.generateTitle()),t.appendChild(this.contentDiv),t.appendChild(this.generateSignature()),t.appendChild(this.close.html),t.setAttribute("tabindex","0")},l.prototype.post=function(){o.prototype.post.call(this);var t=document.documentElement,e=this.html,t=window.innerHeight||t.clientHeight||t.scrollHeight||0,r=Math.floor(-e.offsetWidth/2),t=Math.floor((t-e.offsetHeight)/3);e.setAttribute("style","margin-left: "+r+"px; top: "+t+"px;"),window.event instanceof MouseEvent&&e.classList.add(s.HtmlClasses.MOUSEPOST),e.focus()},l.prototype.display=function(){this.menu.registerWidget(this),this.contentDiv.innerHTML=this.content();var t=this.menu.html;t.parentNode&&t.parentNode.removeChild(t),this.menu.frame.appendChild(this.html)},l.prototype.click=function(t){},l.prototype.keydown=function(t){this.bubbleKey(),o.prototype.keydown.call(this,t)},l.prototype.escape=function(t){this.unpost()},l.prototype.unpost=function(){o.prototype.unpost.call(this),this.html.classList.remove(s.HtmlClasses.MOUSEPOST),this.menu.unregisterWidget(this)},l.prototype.generateClose=function(){var t=new a.CloseButton(this),e=t.html;return e.classList.add(s.HtmlClasses.INFOCLOSE),e.setAttribute("aria-label","Close Dialog Box"),t},l.prototype.generateTitle=function(){var t=document.createElement("span");return t.innerHTML=this.title,t.classList.add(s.HtmlClasses.INFOTITLE),t},l.prototype.generateContent=function(){var t=document.createElement("div");return t.classList.add(s.HtmlClasses.INFOCONTENT),t.setAttribute("tabindex","0"),t},l.prototype.generateSignature=function(){var t=document.createElement("span");return t.innerHTML=this.signature,t.classList.add(s.HtmlClasses.INFOSIGNATURE),t},l.prototype.toJson=function(){return{type:""}},l);function l(t,e,r){var n=o.call(this)||this;return n.title=t,n.signature=r,n.className=s.HtmlClasses.INFO,n.role="dialog",n.contentDiv=n.generateContent(),n.close=n.generateClose(),n.content=e||function(){return""},n}e.Info=r},1409:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.Checkbox=void 0,r(6765)),s=r(2556),l=r(2165),r=(o=a.AbstractVariableItem,i(c,o),c.fromJson=function(t,e,r){return new this(r,e.content,e.variable,e.id)},c.prototype.executeAction=function(){this.variable.setValue(!this.variable.getValue()),s.MenuUtil.close(this)},c.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.textContent="✓",this.span.classList.add(l.HtmlClasses.MENUCHECK)},c.prototype.updateAria=function(){this.html.setAttribute("aria-checked",this.variable.getValue()?"true":"false")},c.prototype.updateSpan=function(){this.span.style.display=this.variable.getValue()?"":"none"},c.prototype.toJson=function(){return{type:""}},c);function c(t,e,r,n){e=o.call(this,t,"checkbox",e,n)||this;return e.role="menuitemcheckbox",e.variable=t.pool.lookup(r),e.register(),e}e.Checkbox=r},9886:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.Combo=void 0,r(6765)),s=r(2556),l=r(2165),c=r(3205),r=(o=a.AbstractVariableItem,i(u,o),u.fromJson=function(t,e,r){return new this(r,e.content,e.variable,e.id)},u.prototype.executeAction=function(){this.variable.setValue(this.input.value,s.MenuUtil.getActiveElement(this))},u.prototype.space=function(t){o.prototype.space.call(this,t),s.MenuUtil.close(this)},u.prototype.focus=function(){o.prototype.focus.call(this),this.input.focus()},u.prototype.unfocus=function(){o.prototype.unfocus.call(this),this.updateSpan()},u.prototype.generateHtml=function(){o.prototype.generateHtml.call(this),this.html.classList.add(l.HtmlClasses.MENUCOMBOBOX)},u.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.classList.add(l.HtmlClasses.MENUINPUTBOX),this.input=document.createElement("input"),this.input.addEventListener("keydown",this.inputKey.bind(this)),this.input.setAttribute("size","10em"),this.input.setAttribute("type","text"),this.input.setAttribute("tabindex","-1"),this.span.appendChild(this.input)},u.prototype.inputKey=function(t){this.bubbleKey(),this.inputEvent=!0},u.prototype.keydown=function(t){if(this.inputEvent&&t.keyCode!==c.KEY.ESCAPE&&t.keyCode!==c.KEY.RETURN)return this.inputEvent=!1,void t.stopPropagation();o.prototype.keydown.call(this,t),t.stopPropagation()},u.prototype.updateAria=function(){},u.prototype.updateSpan=function(){var e;try{e=this.variable.getValue(s.MenuUtil.getActiveElement(this))}catch(t){e=""}this.input.value=e},u.prototype.toJson=function(){return{type:""}},u);function u(t,e,r,n){e=o.call(this,t,"combobox",e,n)||this;return e.role="combobox",e.inputEvent=!1,e.variable=t.pool.lookup(r),e.register(),e}e.Combo=r},3467:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.Command=void 0,r(1340)),s=r(2556),r=(o=a.AbstractItem,i(l,o),l.fromJson=function(t,e,r){return new this(r,e.content,e.action,e.id)},l.prototype.executeAction=function(){try{this.command(s.MenuUtil.getActiveElement(this))}catch(t){s.MenuUtil.error(t,"Illegal command callback.")}s.MenuUtil.close(this)},l.prototype.toJson=function(){return{type:""}},l);function l(t,e,r,n){t=o.call(this,t,"command",e,n)||this;return t.command=r,t}e.Command=r},2965:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.Label=void 0,r(1340)),s=r(2165),r=(o=a.AbstractItem,i(l,o),l.fromJson=function(t,e,r){return new this(r,e.content,e.id)},l.prototype.generateHtml=function(){o.prototype.generateHtml.call(this),this.html.classList.add(s.HtmlClasses.MENULABEL)},l.prototype.toJson=function(){return{type:""}},l);function l(t,e,r){return o.call(this,t,"label",e,r)||this}e.Label=r},385:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.Radio=void 0,r(6765)),s=r(2556),l=r(2165),r=(o=a.AbstractVariableItem,i(c,o),c.fromJson=function(t,e,r){return new this(r,e.content,e.variable,e.id)},c.prototype.executeAction=function(){this.variable.setValue(this.id),s.MenuUtil.close(this)},c.prototype.generateSpan=function(){this.span=document.createElement("span"),this.span.textContent="✓",this.span.classList.add(l.HtmlClasses.MENURADIOCHECK)},c.prototype.updateAria=function(){this.html.setAttribute("aria-checked",this.variable.getValue()===this.id?"true":"false")},c.prototype.updateSpan=function(){this.span.style.display=this.variable.getValue()===this.id?"":"none"},c.prototype.toJson=function(){return{type:""}},c);function c(t,e,r,n){e=o.call(this,t,"radio",e,n)||this;return e.role="menuitemradio",e.variable=t.pool.lookup(r),e.register(),e}e.Radio=r},3463:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.Rule=void 0,r(9329)),s=r(2165),r=(o=a.AbstractEntry,i(l,o),l.fromJson=function(t,e,r){return new this(r)},l.prototype.generateHtml=function(){o.prototype.generateHtml.call(this);var t=this.html;t.classList.add(s.HtmlClasses.MENURULE),t.setAttribute("aria-orientation","vertical")},l.prototype.addEvents=function(t){},l.prototype.toJson=function(){return{type:"rule"}},l);function l(t){t=o.call(this,t,"rule")||this;return t.className=s.HtmlClasses.MENUITEM,t.role="separator",t}e.Rule=r},7625:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0,r(6765)),s=r(2556),l=r(2165),c=r(3205),r=(o=a.AbstractVariableItem,i(u,o),u.fromJson=function(t,e,r){return new this(r,e.content,e.variable,e.id)},u.prototype.executeAction=function(){this.variable.setValue(this.input.value,s.MenuUtil.getActiveElement(this)),this.update()},u.prototype.space=function(t){o.prototype.space.call(this,t),s.MenuUtil.close(this)},u.prototype.focus=function(){o.prototype.focus.call(this),this.input.focus()},u.prototype.unfocus=function(){o.prototype.unfocus.call(this),this.updateSpan()},u.prototype.generateHtml=function(){o.prototype.generateHtml.call(this),this.html.classList.add(l.HtmlClasses.MENUSLIDER),this.valueSpan=document.createElement("span"),this.valueSpan.setAttribute("id",this.valueId),this.valueSpan.classList.add(l.HtmlClasses.SLIDERVALUE),this.html.appendChild(this.valueSpan)},u.prototype.generateSpan=function(){this.span=document.createElement("span"),this.labelSpan=document.createElement("span"),this.labelSpan.setAttribute("id",this.labelId),this.labelSpan.appendChild(this.html.childNodes[0]),this.html.appendChild(this.labelSpan),this.input=document.createElement("input"),this.input.setAttribute("type","range"),this.input.setAttribute("min","0"),this.input.setAttribute("max","100"),this.input.setAttribute("aria-valuemin","0"),this.input.setAttribute("aria-valuemax","100"),this.input.setAttribute("aria-labelledby",this.labelId),this.input.addEventListener("keydown",this.inputKey.bind(this)),this.input.addEventListener("input",this.executeAction.bind(this)),this.input.classList.add(l.HtmlClasses.SLIDERBAR),this.span.appendChild(this.input)},u.prototype.inputKey=function(t){this.inputEvent=!0},u.prototype.mousedown=function(t){t.stopPropagation()},u.prototype.mouseup=function(t){event.stopPropagation()},u.prototype.keydown=function(t){var e=t.keyCode;return e===c.KEY.UP||e===c.KEY.DOWN?(t.preventDefault(),void o.prototype.keydown.call(this,t)):(this.inputEvent&&e!==c.KEY.ESCAPE&&e!==c.KEY.RETURN?this.inputEvent=!1:o.prototype.keydown.call(this,t),void t.stopPropagation())},u.prototype.updateAria=function(){var t=this.variable.getValue();t&&this.input&&(this.input.setAttribute("aria-valuenow",t),this.input.setAttribute("aria-valuetext",t+"%"))},u.prototype.updateSpan=function(){var e;try{e=this.variable.getValue(s.MenuUtil.getActiveElement(this)),this.valueSpan.innerHTML=e+"%"}catch(t){e=""}this.input.value=e},u.prototype.toJson=function(){return{type:""}},u);function u(t,e,r,n){e=o.call(this,t,"slider",e,n)||this;return e.role="slider",e.labelId="ctx_slideLabel"+s.MenuUtil.counter(),e.valueId="ctx_slideValue"+s.MenuUtil.counter(),e.inputEvent=!1,e.variable=t.pool.lookup(r),e.register(),e}e.Slider=r},6186:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=(Object.defineProperty(e,"__esModule",{value:!0}),e.Submenu=void 0,r(1340)),s=r(2165),r=(o=a.AbstractItem,i(l,o),l.fromJson=function(t,e,r){var n=e.content,o=e.menu,r=new this(r,n,e.id),n=t.get("subMenu")(t,o,r);return r.submenu=n,r},Object.defineProperty(l.prototype,"submenu",{get:function(){return this._submenu},set:function(t){this._submenu=t},enumerable:!1,configurable:!0}),l.prototype.mouseover=function(t){this.focus(),this.stop(t)},l.prototype.mouseout=function(t){this.stop(t)},l.prototype.unfocus=function(){if(this.submenu.isPosted()){if(this.menu.focused!==this)return o.prototype.unfocus.call(this),void this.menu.unpostSubmenus();this.html.setAttribute("tabindex","-1"),this.html.blur()}else o.prototype.unfocus.call(this)},l.prototype.focus=function(){o.prototype.focus.call(this),this.submenu.isPosted()||this.disabled||this.submenu.post()},l.prototype.executeAction=function(){this.submenu.isPosted()?this.submenu.unpost():this.submenu.post()},l.prototype.generateHtml=function(){o.prototype.generateHtml.call(this);var t=this.html;this.span=document.createElement("span"),this.span.textContent="►",this.span.classList.add(s.HtmlClasses.MENUARROW),t.appendChild(this.span),t.setAttribute("aria-haspopup","true")},l.prototype.left=function(t){this.submenu.isPosted()?this.submenu.unpost():o.prototype.left.call(this,t)},l.prototype.right=function(t){this.submenu.isPosted()?this.submenu.down(t):this.submenu.post()},l.prototype.toJson=function(){return{type:""}},l);function l(t,e,r){t=o.call(this,t,"submenu",e,r)||this;return t._submenu=null,t}e.Submenu=r},3205:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.KEY=void 0,(e=e.KEY||(e.KEY={}))[e.RETURN=13]="RETURN",e[e.ESCAPE=27]="ESCAPE",e[e.SPACE=32]="SPACE",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN"},9328:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.MenuElement=void 0,o=r(2868).AbstractNavigatable,i(a,o),a.prototype.addAttributes=function(t){for(var e in t)this.html.setAttribute(e,t[e])},Object.defineProperty(a.prototype,"html",{get:function(){return this._html||this.generateHtml(),this._html},set:function(t){this._html=t,this.addEvents(t)},enumerable:!1,configurable:!0}),a.prototype.generateHtml=function(){var t=document.createElement("div");t.classList.add(this.className),t.setAttribute("role",this.role),this.html=t},a.prototype.focus=function(){var t=this.html;t.setAttribute("tabindex","0"),t.focus()},a.prototype.unfocus=function(){var t=this.html;t.hasAttribute("tabindex")&&t.setAttribute("tabindex","-1");try{t.blur()}catch(t){}t.blur()},a);function a(){return null!==o&&o.apply(this,arguments)||this}e.MenuElement=r},1932:function(t,e,r){var s=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=(Object.defineProperty(e,"__esModule",{value:!0}),e.MenuStore=void 0,r(2556)),o=r(2165),i=r(3205),r=(Object.defineProperty(a.prototype,"active",{get:function(){return this._active},set:function(t){do{if(-1!==this.store.indexOf(t)){this._active=t;break}}while(t=t.parentNode)},enumerable:!1,configurable:!0}),a.prototype.next=function(){var t=this.store.length;if(0===t)return this.active=null;var e=-1!==(e=this.store.indexOf(this.active))&&e<t-1?e+1:0;return this.active=this.store[e],this.active},a.prototype.previous=function(){var t=this.store.length;if(0===t)return this.active=null;var t=t-1,e=-1===(e=this.store.indexOf(this.active))||0===e?t:e-1;return this.active=this.store[e],this.active},a.prototype.clear=function(){this.remove(this.store)},a.prototype.insert=function(t){var e,r,n=t instanceof HTMLElement?[t]:t;try{for(var o=s(n),i=o.next();!i.done;i=o.next()){var a=i.value;this.insertElement(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}this.sort()},a.prototype.remove=function(t){var e,r,n=t instanceof HTMLElement?[t]:t;try{for(var o=s(n),i=o.next();!i.done;i=o.next()){var a=i.value;this.removeElement(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}this.sort()},a.prototype.inTaborder=function(t){this.taborder&&!t&&this.removeTaborder(),!this.taborder&&t&&this.insertTaborder(),this.taborder=t},a.prototype.insertTaborder=function(){this.taborder&&this.insertTaborder_()},a.prototype.removeTaborder=function(){this.taborder&&this.removeTaborder_()},a.prototype.insertElement=function(t){t.classList.contains(this.attachedClass)||(t.classList.add(this.attachedClass),this.taborder&&this.addTabindex(t),this.addEvents(t))},a.prototype.removeElement=function(t){t.classList.contains(this.attachedClass)&&(t.classList.remove(this.attachedClass),this.taborder&&this.removeTabindex(t),this.removeEvents(t))},a.prototype.sort=function(){var t=document.getElementsByClassName(this.attachedClass);this.store=[].slice.call(t)},a.prototype.insertTaborder_=function(){this.store.forEach(function(t){return t.setAttribute("tabindex","0")})},a.prototype.removeTaborder_=function(){this.store.forEach(function(t){return t.setAttribute("tabindex","-1")})},a.prototype.addTabindex=function(t){t.hasAttribute("tabindex")&&t.setAttribute(o.HtmlAttrs.OLDTAB,t.getAttribute("tabindex")),t.setAttribute("tabindex","0")},a.prototype.removeTabindex=function(t){t.hasAttribute(o.HtmlAttrs.OLDTAB)?(t.setAttribute("tabindex",t.getAttribute(o.HtmlAttrs.OLDTAB)),t.removeAttribute(o.HtmlAttrs.OLDTAB)):t.removeAttribute("tabindex")},a.prototype.addEvents=function(t){t.hasAttribute(o.HtmlAttrs.COUNTER)||(this.addEvent(t,"contextmenu",this.menu.post.bind(this.menu)),this.addEvent(t,"keydown",this.keydown.bind(this)),t.setAttribute(o.HtmlAttrs.COUNTER,this.counter.toString()),this.counter++)},a.prototype.addEvent=function(t,e,r){var n=o.HtmlAttrs[e.toUpperCase()+"FUNC"];this.attrMap[n+this.counter]=r,t.addEventListener(e,r)},a.prototype.removeEvents=function(t){var e;t.hasAttribute(o.HtmlAttrs.COUNTER)&&(e=t.getAttribute(o.HtmlAttrs.COUNTER),this.removeEvent(t,"contextmenu",e),this.removeEvent(t,"keydown",e),t.removeAttribute(o.HtmlAttrs.COUNTER))},a.prototype.removeEvent=function(t,e,r){var n=o.HtmlAttrs[e.toUpperCase()+"FUNC"],n=this.attrMap[n+r];t.removeEventListener(e,n)},a.prototype.keydown=function(t){t.keyCode===i.KEY.SPACE&&(this.menu.post(t),t.preventDefault(),t.stopImmediatePropagation())},a);function a(t){this.menu=t,this.store=[],this._active=null,this.counter=0,this.attachedClass=o.HtmlClasses.ATTACHED+"_"+n.MenuUtil.counter(),this.taborder=!0,this.attrMap={}}e.MenuStore=r},2556:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.MenuUtil=void 0,(e=e.MenuUtil||(e.MenuUtil={})).close=function(t){t=t.menu;(t.baseMenu||t).unpost()},e.getActiveElement=function(t){t=t.menu;return(t.baseMenu||t).store.active},e.error=function(t,e){console.error("ContextMenu Error: "+e)},e.counter=function(){return r++},r=0},8853:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MOUSE=void 0,e.MOUSE={CLICK:"click",DBLCLICK:"dblclick",DOWN:"mousedown",UP:"mouseup",OVER:"mouseover",OUT:"mouseout",MOVE:"mousemove",SELECTEND:"selectend",SELECTSTART:"selectstart"}},6914:function(t,e,r){var o=this&&this.__rest||function(t,e){var r={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]]);return r},n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0,r(3467)),s=r(5073),l=r(3737),c=r(1409),p=r(9886),h=r(2965),d=r(385),f=r(6186),m=r(3463),y=r(7625),g=r(4834),b=r(2100),v=r(2308);function _(t){var r=this;void 0===t&&(t=[]),this._initList=[["command",a.Command.fromJson.bind(a.Command)],["checkbox",c.Checkbox.fromJson.bind(c.Checkbox)],["combo",p.Combo.fromJson.bind(p.Combo)],["slider",y.Slider.fromJson.bind(y.Slider)],["label",h.Label.fromJson.bind(h.Label)],["radio",d.Radio.fromJson.bind(d.Radio)],["rule",m.Rule.fromJson.bind(m.Rule)],["submenu",f.Submenu.fromJson.bind(f.Submenu)],["contextMenu",s.ContextMenu.fromJson.bind(s.ContextMenu)],["subMenu",g.SubMenu.fromJson.bind(g.SubMenu)],["variable",l.Variable.fromJson.bind(l.Variable)],["items",this.items.bind(this)],["selectionMenu",b.SelectionMenu.fromJson.bind(b.SelectionMenu)],["selectionBox",b.SelectionBox.fromJson.bind(b.SelectionBox)]],this._factory=new v.ParserFactory(this._initList),t.forEach(function(t){var t=n(t,2),e=t[0],t=t[1];return r.factory.add(e,t)})}Object.defineProperty(_.prototype,"factory",{get:function(){return this._factory},enumerable:!1,configurable:!0}),_.prototype.items=function(t,e,r){var n,o,i=[];try{for(var a=u(e),s=a.next();!s.done;s=a.next()){var l=s.value,c=this.parse(l,r);c&&(r.items.push(c),l.disabled&&c.disable(),l.hidden&&i.push(c))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return i.forEach(function(t){return t.hide()}),r.items},_.prototype.parse=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=t.type,t=o(t,["type"]),n=this.factory.get(n);return n?n.apply(void 0,i([this.factory,t],e)):null},e.Parser=_},2308:function(t,e){function r(t){this._parser=new Map(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.ParserFactory=void 0,r.prototype.get=function(t){return this._parser.get(t)},r.prototype.add=function(t,e){this._parser.set(t,e)},e.ParserFactory=r},2100:function(t,e,r){var n,o,i=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=(Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionBox=e.SelectionMenu=void 0,r(2556)),s=r(2165),l=r(1484),r=r(4922),l=(o=l.AbstractMenu,i(c,o),c.fromJson=function(e,t,r){var n=t.title,o=t.values,i=t.variable,a=new this(r),t=e.get("label")(e,{content:n||"",id:n||"id"},a),r=e.get("rule")(e,{},a),n=o.map(function(t){return e.get("radio")(e,{content:t,variable:i,id:t},a)}),o=[t,r].concat(n);return a.items=o,a},c.prototype.generateHtml=function(){o.prototype.generateHtml.call(this),this.items.forEach(function(t){return t.html.classList.add(s.HtmlClasses.SELECTIONITEM)})},c.prototype.display=function(){},c.prototype.right=function(t){this.anchor.right(t)},c.prototype.left=function(t){this.anchor.left(t)},c);function c(t){var e=o.call(this)||this;return e.anchor=t,e.className=s.HtmlClasses.SELECTIONMENU,e.variablePool=e.anchor.menu.pool,e.baseMenu=e.anchor.menu,e}e.SelectionMenu=l;p=r.Info,i(h,p),h.fromJson=function(e,t,r){var n=t.title,o=t.signature,i=t.selections,a=new this(n,o,t.order,t.grid),n=(a.attachMenu(r),i.map(function(t){return e.get("selectionMenu")(e,t,a)}));return a.selections=n,a},h.prototype.attachMenu=function(t){this.menu=t},Object.defineProperty(h.prototype,"selections",{get:function(){return this._selections},set:function(t){var e=this;this._selections=[],t.forEach(function(t){return e.addSelection(t)})},enumerable:!1,configurable:!0}),h.prototype.addSelection=function(t){(t.anchor=this)._selections.push(t)},h.prototype.rowDiv=function(t){var e=this,r=document.createElement("div"),t=(this.contentDiv.appendChild(r),t.map(function(t){return r.appendChild(t.html),t.html.id||(t.html.id=e.prefix+a.MenuUtil.counter()),t.html.getBoundingClientRect()})),n=t.map(function(t){return t.width}),o=n.reduce(function(t,e){return t+e},0),t=t.reduce(function(t,e){return Math.max(t,e.height)},0);return r.classList.add(s.HtmlClasses.SELECTIONDIVIDER),r.setAttribute("style","height: "+t+"px;"),[r,o,t,n]},h.prototype.display=function(){if(p.prototype.display.call(this),this.order(),this.selections.length){for(var i=[],a=0,s=[],l=this.getChunkSize(this.selections.length),c=this,t=0;t<this.selections.length;t+=l)!function(t){var t=c.selections.slice(t,t+l),e=u(c.rowDiv(t),4),r=e[0],n=e[1],o=e[2],e=e[3];i.push(r),a=Math.max(a,n),t.forEach(function(t){return t.html.style.height=o+"px"}),s=c.combineColumn(s,e)}(t);this._balanced&&(this.balanceColumn(i,s),a=s.reduce(function(t,e){return t+e},20)),i.forEach(function(t){return t.style.width=a+"px"})}},h.prototype.getChunkSize=function(t){switch(this.grid){case"square":return Math.floor(Math.sqrt(t));case"horizontal":return Math.floor(t/h.chunkSize);default:return h.chunkSize}},h.prototype.balanceColumn=function(t,o){t.forEach(function(t){for(var e=Array.from(t.children),r=0,n=void 0;n=e[r];r++)n.style.width=o[r]+"px"})},h.prototype.combineColumn=function(t,e){for(var r=[],n=0;t[n]||e[n];){if(!t[n]){r=r.concat(e.slice(n));break}if(!e[n]){r=r.concat(t.slice(n));break}r.push(Math.max(t[n],e[n])),n++}return r},h.prototype.left=function(t){var e=this;this.move(t,function(t){return(0===t?e.selections.length:t)-1})},h.prototype.right=function(t){var e=this;this.move(t,function(t){return t===e.selections.length-1?0:t+1})},h.prototype.generateHtml=function(){p.prototype.generateHtml.call(this),this.html.classList.add(s.HtmlClasses.SELECTION)},h.prototype.generateContent=function(){var t=p.prototype.generateContent.call(this);return t.classList.add(s.HtmlClasses.SELECTIONBOX),t.removeAttribute("tabindex"),t},h.prototype.findSelection=function(t){var e,r=t.target,t=null;return(t=r.id?this.selections.find(function(t){return t.html.id===r.id}):t)||(e=r.parentElement.id,t=this.selections.find(function(t){return t.html.id===e})),t},h.prototype.move=function(t,e){t=this.findSelection(t),t.focused&&t.focused.unfocus(),e=e(this.selections.indexOf(t));this.selections[e].focus()},h.prototype.order=function(){this.selections.sort(h.orderMethod.get(this.style))},h.prototype.toJson=function(){return{type:""}},h.chunkSize=4,h.orderMethod=new Map([["alphabetical",function(t,e){return t.items[0].content.localeCompare(e.items[0].content)}],["none",function(t,e){return 1}],["decreasing",function(t,e){t=t.items.length,e=e.items.length;return t<e?1:e<t?-1:0}],["increasing",function(t,e){t=t.items.length,e=e.items.length;return t<e?-1:e<t?1:0}]]);var p,l=h;function h(t,e,r,n){void 0===r&&(r="none"),void 0===n&&(n="vertical");t=p.call(this,t,null,e)||this;return t.style=r,t.grid=n,t._selections=[],t.prefix="ctxt-selection",t._balanced=!0,t}e.SelectionBox=l},4834:function(t,e,r){var n,a,o=this&&this.__extends||(n=function(t,e){return(n=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}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.SubMenu=void 0,a=r(1484).AbstractMenu,o(i,a),i.fromJson=function(t,e,r){e=e.items,r=new this(r),t=t.get("items")(t,e,r);return r.items=t,r},Object.defineProperty(i.prototype,"anchor",{get:function(){return this._anchor},enumerable:!1,configurable:!0}),i.prototype.post=function(){if(this.anchor.menu.isPosted()){for(var t=this.anchor.html,e=this.html,r=this.baseMenu.frame,n=t.offsetWidth,o=n-2,i=0;t&&t!==r;)o+=t.offsetLeft,i+=t.offsetTop,t=t.parentNode;o+e.offsetWidth>document.body.offsetWidth-5&&(o=Math.max(5,o-n-e.offsetWidth+6)),a.prototype.post.call(this,o,i)}},i.prototype.display=function(){this.baseMenu.frame.appendChild(this.html)},i.prototype.setBaseMenu=function(){for(var t=this;(t=t.anchor.menu)instanceof i;);this.baseMenu=t},i.prototype.left=function(t){this.focused=null,this.anchor.focus()},i.prototype.toJson=function(){return{type:""}},i);function i(t){var e=a.call(this)||this;return e._anchor=t,e.variablePool=e.anchor.menu.pool,e.setBaseMenu(),e}e.SubMenu=r},3737:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Variable=void 0;var n=r(2556);function o(t,e,r){this._name=t,this.getter=e,this.setter=r,this.items=[]}o.fromJson=function(t,e,r){e=new this(e.name,e.getter,e.setter);r.insert(e)},Object.defineProperty(o.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),o.prototype.getValue=function(t){try{return this.getter(t)}catch(t){return n.MenuUtil.error(t,"Command of variable "+this.name+" failed."),null}},o.prototype.setValue=function(t,e){try{this.setter(t,e)}catch(t){n.MenuUtil.error(t,"Command of variable "+this.name+" failed.")}this.update()},o.prototype.register=function(t){-1===this.items.indexOf(t)&&this.items.push(t)},o.prototype.unregister=function(t){t=this.items.indexOf(t);-1!==t&&this.items.splice(t,1)},o.prototype.update=function(){this.items.forEach(function(t){return t.update()})},o.prototype.registerCallback=function(e){this.items.forEach(function(t){return t.registerCallback(e)})},o.prototype.unregisterCallback=function(e){this.items.forEach(function(t){return t.unregisterCallback(e)})},o.prototype.toJson=function(){return{type:"variable",name:this.name,getter:this.getter.toString(),setter:this.setter.toString()}},e.Variable=o},2358:function(t,e){function r(){this.pool={}}Object.defineProperty(e,"__esModule",{value:!0}),e.VariablePool=void 0,r.prototype.insert=function(t){this.pool[t.name]=t},r.prototype.lookup=function(t){return this.pool[t]},r.prototype.remove=function(t){delete this.pool[t]},r.prototype.update=function(){for(var t in this.pool)this.pool[t].update()},e.VariablePool=r},3921:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractAudioRenderer=void 0;const n=r(5897);e.AbstractAudioRenderer=class{constructor(){this.separator_=" "}setSeparator(t){this.separator_=t}getSeparator(){return"braille"===n.default.getInstance().modality?"":this.separator_}error(t){return null}merge(r){let n="";var o=r.length-1;for(let t,e=0;t=r[e];e++)if(n+=t.speech,e<o){const r=t.attributes.separator;n+=void 0!==r?r:this.getSeparator()}return n}finalize(t){return t}pauseValue(t){let e;switch(t){case"long":e=750;break;case"medium":e=500;break;case"short":e=250;break;default:e=parseInt(t,10)}return Math.floor(e*n.default.getInstance().getRate()/100)}}},4196:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AcssRenderer=void 0;const n=r(4440),o=r(8496),l=r(3706),i=r(182);class a extends i.MarkupRenderer{markup(t){this.setScaleFunction(-2,2,0,10,0);const r=l.personalityMarkup(t),n=[],o={open:[]};let i=null,a=!1;for(let t,e=0;t=r[e];e++)if(l.isMarkupElement(t))l.mergeMarkup(o,t);else if(l.isPauseElement(t))a&&(i=l.mergePause(i,t,Math.max));else{const r='"'+this.merge(t.span)+'"';a=!0,i&&(n.push(this.pause(i)),i=null);var s=this.prosody_(o);n.push(s?"(text ("+s+") "+r+")":r)}return"(exp "+n.join(" ")+")"}error(t){return'(error "'+o.Move.get(t)+'")'}prosodyElement(t,e){switch(e=this.applyScaleFunction(e),t){case n.personalityProps.RATE:return"(richness . "+e+")";case n.personalityProps.PITCH:return"(average-pitch . "+e+")";case n.personalityProps.VOLUME:return"(stress . "+e+")"}return"(value . "+e+")"}pause(t){return"(pause . "+this.pauseValue(t[n.personalityProps.PAUSE])+")"}prosody_(r){const n=r.open,o=[];for(let t,e=0;t=n[e];e++)o.push(this.prosodyElement(t,r[t]));return o.join(" ")}}e.AcssRenderer=a},3706:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.isSpanElement=e.isPauseElement=e.isMarkupElement=e.personalityMarkup=e.sortClose=e.mergeMarkup=e.mergePause=void 0;const s=r(707),d=r(4440),f=r(9536);function m(r,n,t){return(t||function(t,e){return"number"==typeof t&&"number"==typeof e?t+e:"number"==typeof t?e:"number"==typeof e?t:[r,n].sort()[0]}).call(null,r,n)}e.mergePause=function(t,e,r){return t?{pause:m(t.pause,e.pause,r)}:e},e.mergeMarkup=function(e,r){delete e.open,r.close.forEach(t=>delete e[t]),r.open.forEach(t=>e[t]=r[t]);var t=Object.keys(e);e.open=t},e.sortClose=function(r,n){if(r.length<=1)return r;const o=[];for(let t,e=0;t=n[e],r.length;e++)t.close&&t.close.length&&t.close.forEach(function(t){var e=r.indexOf(t);-1!==e&&(o.unshift(t),r.splice(e,1))});return o};let y={},g=[];function b(t,e){const r=t[t.length-1];if(r){if(x(e)&&x(r)){if(void 0===r.join)return r.span=r.span.concat(e.span);const t=r.span.pop(),n=e.span.shift();return r.span.push(t+r.join+n),r.span=r.span.concat(e.span),r.join=e.join}S(e)&&S(r)?r.pause=m(r.pause,e.pause):t.push(e)}else t.push(e)}function v(t,e){t.rate&&(e.rate=t.rate),t.pitch&&(e.pitch=t.pitch),t.volume&&(e.volume=t.volume)}function _(t){return"object"==typeof t&&t.open}function S(t){return"object"==typeof t&&1===Object.keys(t).length&&Object.keys(t)[0]===d.personalityProps.PAUSE}function x(t){var e=Object.keys(t);return"object"==typeof t&&(1===e.length&&"span"===e[0]||2===e.length&&("span"===e[0]&&"join"===e[1]||"span"===e[1]&&"join"===e[0]))}function M(t,r){if(!r)return t;const n={};for(const s of d.personalityPropList){const d=t[s],a=r[s];var e;!d&&!a||d&&a&&d===a||(e=d||0,_(n)||(n.open=[],n.close=[]),d||n.close.push(s),a||n.open.push(s),a&&d&&(n.close.push(s),n.open.push(s)),r[s]=e,n[s]=e,y[s]?y[s].push(e):y[s]=[e])}if(_(n)){let t=n.close.slice();for(;0<t.length;){var o=g.pop(),i=(0,s.setdifference)(o,t);if(t=(0,s.setdifference)(t,o),o=i,0!==t.length){if(0!==o.length){n.close=n.close.concat(o),n.open=n.open.concat(o);for(let t,e=0;t=o[e];e++)n[t]=r[t]}}else 0!==o.length&&g.push(o)}g.push(n.open)}return n}e.personalityMarkup=function(r){y={},g=[];let n=[];var o={};for(let e,t=0;e=r[t];t++){let t=null;const p=e.descriptionSpan(),h=e.personality,y=h[d.personalityProps.JOIN];delete h[d.personalityProps.JOIN],void 0!==h[d.personalityProps.PAUSE]&&(t={[d.personalityProps.PAUSE]:h[d.personalityProps.PAUSE]},delete h[d.personalityProps.PAUSE]),u=c=l=s=a=i=void 0;var i=n,a=p,s=M(h,o),l=y,c=t,u=!0;if(u){const u=i[i.length-1];let t;if(u&&(t=u[d.personalityProps.JOIN]),u&&!a.speech&&c&&S(u)){const i=d.personalityProps.PAUSE;u[i]=m(u[i],c[i]),c=null}if(u&&a.speech&&0===Object.keys(s).length&&x(u)){if(void 0!==t){const i=u.span.pop();a=new f.Span(i.speech+t+a.speech,i.attributes)}u.span.push(a),a=new f.Span("",{}),u[d.personalityProps.JOIN]=l}}0!==Object.keys(s).length&&i.push(s),a.speech&&i.push({span:[a],join:l}),c&&i.push(c)}return n=function(n){const o={},i=[];for(let e,r=0;e=n[r];r++)if(_(e))if(!e.close||1!==e.close.length||e.open.length)v(e,o),i.push(e);else{let t=n[r+1];var a;!t||x(t)?(v(e,o),i.push(e)):(a=S(t)?t:null,(t=a?n[r+2]:t)&&_(t)&&t.open[0]===e.close[0]&&!t.close.length&&t[t.open[0]]===o[t.open[0]]?a?(b(i,a),r+=2):r+=1:(v(e,o),i.push(e)))}else b(i,e);return i}(n=n.concat(function(){const e=[];for(let t=g.length-1;0<=t;t--){var r=g[t];if(r.length){const o={open:[],close:[]};for(let t=0;t<r.length;t++){var n=r[t];o.close.push(n),o[n]=0}e.push(o)}}return e}()))},e.isMarkupElement=_,e.isPauseElement=S,e.isSpanElement=x},7052:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AuditoryDescription=void 0;const n=r(2105),o=r(9536);e.AuditoryDescription=class i{constructor({context:t,text:e,userValue:r,annotation:n,attributes:o,personality:i,layout:a}){this.context=t||"",this.text=e||"",this.userValue=r||"",this.annotation=n||"",this.attributes=o||{},this.personality=i||{},this.layout=a||""}static create(t,e={}){return t.text=n.Grammar.getInstance().apply(t.text,e),new i(t)}isEmpty(){return 0===this.context.length&&0===this.text.length&&0===this.userValue.length&&0===this.annotation.length}clone(){let t,e;if(this.personality){t={};for(const e in this.personality)t[e]=this.personality[e]}if(this.attributes){e={};for(const t in this.attributes)e[t]=this.attributes[t]}return new i({context:this.context,text:this.text,userValue:this.userValue,annotation:this.annotation,personality:t,attributes:e,layout:this.layout})}toString(){return'AuditoryDescription(context="'+this.context+'" text="'+this.text+'" userValue="'+this.userValue+'" annotation="'+this.annotation+'")'}descriptionString(){return this.context&&this.text?this.context+" "+this.text:this.context||this.text}descriptionSpan(){return new o.Span(this.descriptionString(),this.attributes)}equals(t){return this.context===t.context&&this.text===t.text&&this.userValue===t.userValue&&this.annotation===t.annotation}}},8290:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.isXml=e.registerRenderer=e.error=e.finalize=e.merge=e.markup=e.getSeparator=e.setSeparator=void 0;const n=r(5897),o=r(4440),i=r(4196),a=r(8639),s=r(8990),l=r(6660),c=r(9536),u=r(7504),p=r(3757),h=r(4032),d=r(2456),f=new u.SsmlRenderer,m=new Map([[o.Markup.NONE,new h.StringRenderer],[o.Markup.PUNCTUATION,new s.PunctuationRenderer],[o.Markup.LAYOUT,new a.LayoutRenderer],[o.Markup.ACSS,new i.AcssRenderer],[o.Markup.SABLE,new l.SableRenderer],[o.Markup.VOICEXML,f],[o.Markup.SSML,f],[o.Markup.SSML_STEP,new p.SsmlStepRenderer]]);e.setSeparator=function(t){const e=m.get(n.default.getInstance().markup);e&&e.setSeparator(t)},e.getSeparator=function(){const t=m.get(n.default.getInstance().markup);return t?t.getSeparator():""},e.markup=function(t){const e=m.get(n.default.getInstance().markup);return e?e.markup(t):""},e.merge=function(t){const e=t.map(t=>"string"==typeof t?new c.Span(t,{}):t),r=m.get(n.default.getInstance().markup);return r?r.merge(e):t.join()},e.finalize=function(t){const e=m.get(n.default.getInstance().markup);return e?e.finalize(t):t},e.error=function(t){const e=m.get(n.default.getInstance().markup);return e?e.error(t):""},e.registerRenderer=function(t,e){m.set(t,e)},e.isXml=function(){return m.get(n.default.getInstance().markup)instanceof d.XmlRenderer}},8639:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutRenderer=void 0;const n=r(2057),a=r(5740),o=r(4440),i=r(3706),s=r(2456);class l extends s.XmlRenderer{finalize(t){{c="";const e=a.parseInput(`<all>${t}</all>`);return n.Debugger.getInstance().output(a.formatXml(e.toString())),c=d(e)}}pause(t){return""}prosodyElement(t,e){return t===o.personalityProps.LAYOUT?`<${e}>`:""}closeTag(t){return`</${t}>`}markup(t){const e=[];let r=[];for(const n of t)if(n.layout){e.push(this.processContent(r)),r=[];const t=n.layout;t.match(/^begin/)?e.push("<"+t.replace(/^begin/,"")+">"):t.match(/^end/)?e.push("</"+t.replace(/^end/,"")+">"):console.warn("Something went wrong with layout markup: "+t)}else r.push(n);return e.push(this.processContent(r)),e.join("")}processContent(t){const r=[],n=i.personalityMarkup(t);for(let t,e=0;t=n[e];e++)t.span?r.push(this.merge(t.span)):i.isPauseElement(t);return r.join("")}}e.LayoutRenderer=l;let c="";const u={TABLE:function(t){let e=g(t);e.forEach(t=>{t.cells=t.cells.slice(1).slice(0,-1),t.width=t.width.slice(1).slice(0,-1)});var[t,r]=b(e);return _(e=v(e,r),t)},CASES:function(t){let e=g(t);e.forEach(t=>{t.cells=t.cells.slice(0,-1),t.width=t.width.slice(0,-1)});var[t,r]=b(e);return _(e=v(e,r),t)},CAYLEY:function(t){let e=g(t);e.forEach(t=>{t.cells=t.cells.slice(1).slice(0,-1),t.width=t.width.slice(1).slice(0,-1),t.sep=t.sep+t.sep});const[r,n]=b(e),o={lfence:"",rfence:"",cells:n.map(t=>"⠐"+new Array(t).join("⠒")),width:n,height:1,sep:e[0].sep};return e.splice(1,0,o),_(e=v(e,n),r)},MATRIX:function(t){var t=g(t),[e,r]=b(t);return _(v(t,r),e)},CELL:d,FENCE:d,ROW:d,FRACTION:function(t){var[t,e,,r,n]=Array.from(t.childNodes),e=p(e),r=p(r),o=m(e),i=m(r),o=Math.max(o,i),i=t+new Array(o+1).join("⠒")+n;return M(e,o=i.length)+`
2
+ ${i}
3
+ `+M(r,o)},NUMERATOR:O,DENOMINATOR:O};function p(t){const e=a.tagName(t),r=u[e];return r?r(t):t.textContent}function h(t,e){if(!t||!e)return t+e;var r=f(t),n=f(e),o=r-n;t=o<0?y(t,n,m(t)):t,e=0<o?y(e,r,m(e)):e;const i=t.split(/\r\n|\r|\n/),a=e.split(/\r\n|\r|\n/),s=[];for(let t=0;t<i.length;t++)s.push(i[t]+a[t]);return s.join("\n")}function d(t){let e="";for(const r of Array.from(t.childNodes))e=r.nodeType!==a.NodeType.TEXT_NODE?h(e,p(r)):h(e,r.textContent);return e}function f(t){return t.split(/\r\n|\r|\n/).length}function m(t){return t.split(/\r\n|\r|\n/).reduce((t,e)=>Math.max(e.length,t),0)}function y(t,e,r){i=e-f(e=t),t=e+(0<i?new Array(1+i).join("\n"):"");{var n=t,o=r;const a=n.split(/\r\n|\r|\n/),s=[];for(const n of a){const a=o-n.length;s.push(n+(0<a?new Array(1+a).join("⠀"):""))}return s.join("\n")}var i}function g(t){const e=Array.from(t.childNodes),r=[];for(const t of e)t.nodeType===a.NodeType.ELEMENT_NODE&&r.push(function(t){const e=Array.from(t.childNodes),r=x(e[0]),n=x(e[e.length-1]);r&&e.shift(),n&&e.pop();let o="";const i=[];for(const t of e)if(t.nodeType===a.NodeType.TEXT_NODE)o=t.textContent;else{const e=p(t);i.push(e)}return{lfence:r,rfence:n,sep:o,cells:i,height:i.reduce((t,e)=>Math.max(f(e),t),0),width:i.map(m)}}(t));return r}function b(t){const e=t.reduce((t,e)=>Math.max(e.height,t),0),r=[];for(let e=0;e<t[0].width.length;e++)r.push(t.map(t=>t.width[e]).reduce((t,e)=>Math.max(t,e),0));return[e,r]}function v(e,r){const t=[];for(const n of e)if(0!==n.height){const e=[];for(let t=0;t<n.cells.length;t++)e.push(y(n.cells[t],n.height,r[t]));n.cells=e,t.push(n)}return t}function _(e,r){if(1===r)return e.map(t=>t.lfence+t.cells.join(t.sep)+t.rfence).join("\n");const n=[];for(const r of e){const e=S(r.sep,r.height);let t=r.cells.shift();for(;r.cells.length;)t=h(t,e),t=h(t,r.cells.shift());t=h(S(r.lfence,r.height),t),t=h(t,S(r.rfence,r.height)),n.push(t),n.push(r.lfence+new Array(m(t)-3).join(r.sep)+r.rfence)}return n.slice(0,-1).join("\n")}function S(t,e){let r="";for(;e;)r+=t+"\n",e--;return r.slice(0,-1)}function x(t){return t.nodeType===a.NodeType.ELEMENT_NODE&&"FENCE"===a.tagName(t)?p(t):""}function M(t,e){const r=(e-m(t))/2,[n,o]=Math.floor(r)===r?[r,r]:[Math.floor(r),Math.ceil(r)],i=t.split(/\r\n|\r|\n/),a=[],[s,l]=[new Array(n+1).join("⠀"),new Array(o+1).join("⠀")];for(const t of i)a.push(s+t+l);return a.join("\n")}function O(t){var e=t.firstChild,t=d(t);if(e&&e.nodeType===a.NodeType.ELEMENT_NODE){if("ENGLISH"===a.tagName(e))return"⠰"+t;if("NUMBER"===a.tagName(e))return"⠼"+t}return t}},182:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.MarkupRenderer=void 0;const n=r(4440),o=r(3921);class i extends o.AbstractAudioRenderer{constructor(){super(...arguments),this.ignoreElements=[n.personalityProps.LAYOUT],this.scaleFunction=null}setScaleFunction(e,r,n,o,i=0){this.scaleFunction=t=>{t=(t-e)/(r-e);return+(Math.round(n*(1-t)+o*t+"e+"+i)+"e-"+i)}}applyScaleFunction(t){return this.scaleFunction?this.scaleFunction(t):t}ignoreElement(t){return-1!==this.ignoreElements.indexOf(t)}}e.MarkupRenderer=i},8990:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.PunctuationRenderer=void 0;const a=r(4440),n=r(3921),s=r(3706);class o extends n.AbstractAudioRenderer{markup(t){var r=s.personalityMarkup(t);let n="",o=null,i=!1;for(let t,e=0;t=r[e];e++)s.isMarkupElement(t)||(s.isPauseElement(t)?i&&(o=s.mergePause(o,t,Math.max)):(o&&(n+=this.pause(o[a.personalityProps.PAUSE]),o=null),n+=(i?this.getSeparator():"")+this.merge(t.span),i=!0));return n}pause(t){t="number"==typeof t?t<=250?"short":t<=500?"medium":"long":t;return o.PAUSE_PUNCTUATION.get(t)||""}}(e.PunctuationRenderer=o).PAUSE_PUNCTUATION=new Map([["short",","],["medium",";"],["long","."]])},6660:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SableRenderer=void 0;const n=r(4440),o=r(2456);class i extends o.XmlRenderer{finalize(t){return'<?xml version="1.0"?><!DOCTYPE SABLE PUBLIC "-//SABLE//DTD SABLE speech mark up//EN" "Sable.v0_2.dtd" []><SABLE>'+this.getSeparator()+t+this.getSeparator()+"</SABLE>"}pause(t){return'<BREAK MSEC="'+this.pauseValue(t[n.personalityProps.PAUSE])+'"/>'}prosodyElement(t,e){switch(e=this.applyScaleFunction(e),t){case n.personalityProps.PITCH:return'<PITCH RANGE="'+e+'%">';case n.personalityProps.RATE:return'<RATE SPEED="'+e+'%">';case n.personalityProps.VOLUME:return'<VOLUME LEVEL="'+e+'%">';default:return"<"+t.toUpperCase()+' VALUE="'+e+'">'}}closeTag(t){return"</"+t.toUpperCase()+">"}}e.SableRenderer=i},9536:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Span=void 0,e.Span=class{constructor(t,e){this.speech=t,this.attributes=e}}},7504:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SsmlRenderer=void 0;const n=r(5897),o=r(4440),i=r(2456);class a extends i.XmlRenderer{finalize(t){return'<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis"><prosody rate="'+n.default.getInstance().getRate()+'%">'+this.getSeparator()+t+this.getSeparator()+"</prosody></speak>"}pause(t){return'<break time="'+this.pauseValue(t[o.personalityProps.PAUSE])+'ms"/>'}prosodyElement(t,e){e=(e=Math.floor(this.applyScaleFunction(e)))<0?e.toString():"+"+e.toString();return"<prosody "+t.toLowerCase()+'="'+e+(t===o.personalityProps.VOLUME?">":'%">')}closeTag(t){return"</prosody>"}}e.SsmlRenderer=a},3757:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SsmlStepRenderer=void 0;class i extends r(7504).SsmlRenderer{markup(t){return i.MARKS={},super.markup(t)}merge(e){const r=[];for(let t=0;t<e.length;t++){const n=e[t],o=n.attributes.extid;o&&!i.MARKS[o]&&(r.push('<mark name="'+o+'"/>'),i.MARKS[o]=!0),1===n.speech.length&&n.speech.match(/[a-zA-Z]/)?r.push('<say-as interpret-as="'+i.CHARACTER_ATTR+'">'+n.speech+"</say-as>"):r.push(n.speech)}return r.join(this.getSeparator())}}(e.SsmlStepRenderer=i).CHARACTER_ATTR="character",i.MARKS={}},4032:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.StringRenderer=void 0;const n=r(3921),i=r(3706);class o extends n.AbstractAudioRenderer{markup(t){let r="";const n=(0,i.personalityMarkup)(t).filter(t=>t.span);if(!n.length)return r;var o=n.length-1;for(let t,e=0;t=n[e];e++)if(t.span&&(r+=this.merge(t.span)),!(e>=o)){const n=t.join;r+=void 0===n?this.getSeparator():n}return r}}e.StringRenderer=o},2456:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.XmlRenderer=void 0;const i=r(5897),a=r(3706),n=r(182);class o extends n.MarkupRenderer{markup(t){this.setScaleFunction(-2,2,-100,100,2);const r=a.personalityMarkup(t),n=[],o=[];for(let e,t=0;e=r[t];t++)if(e.span)n.push(this.merge(e.span));else if(a.isPauseElement(e))n.push(this.pause(e));else{if(e.close.length)for(let t=0;t<e.close.length;t++){const r=o.pop();if(-1===e.close.indexOf(r))throw new i.SREError("Unknown closing markup element: "+r);n.push(this.closeTag(r))}e.open.length&&a.sortClose(e.open.slice(),r.slice(t+1)).forEach(t=>{n.push(this.prosodyElement(t,e[t])),o.push(t)})}return n.join(" ")}}e.XmlRenderer=o},707:function(t,e){function r(t,e){return t?e?t.filter(t=>e.indexOf(t)<0):t:[]}Object.defineProperty(e,"__esModule",{value:!0}),e.union=e.setdifference=e.interleaveLists=e.removeEmpty=void 0,e.removeEmpty=function(t){return t.filter(t=>t)},e.interleaveLists=function(t,e){const r=[];for(;t.length||e.length;)t.length&&r.push(t.shift()),e.length&&r.push(e.shift());return r},e.setdifference=r,e.union=function(t,e){return t&&e?t.concat(r(e,t)):t||e||[]}},2139:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.loadScript=e.loadMapsForIE_=e.installWGXpath_=e.loadWGXpath_=e.mapsForIE=e.detectEdge=e.detectIE=void 0;const n=r(2315),o=r(5274);function i(t){l(n.default.WGXpath),a(t)}function a(t,e){let r=e||1;"undefined"==typeof wgxpath&&r<10?setTimeout(function(){a(t,r++)},200):10<=r||(n.default.wgxpath=wgxpath,t?n.default.wgxpath.install({document:document}):n.default.wgxpath.install(),o.xpath.evaluate=document.evaluate,o.xpath.result=XPathResult,o.xpath.createNSResolver=document.createNSResolver)}function s(){l(n.default.mathmapsIePath)}function l(t){const e=n.default.document.createElement("script");e.type="text/javascript",e.src=t,(n.default.document.head||n.default.document.body).appendChild(e)}e.detectIE=function(){return"undefined"!=typeof window&&"ActiveXObject"in window&&"clipboardData"in window&&(s(),i(),!0)},e.detectEdge=function(){var t;return"undefined"!=typeof window&&"MSGestureEvent"in window&&null===(null==(t=window.chrome)?void 0:t.loadTimes)&&(i(!(document.evaluate=null)),!0)},e.mapsForIE=null,e.loadWGXpath_=i,e.installWGXpath_=a,e.loadMapsForIE_=s,e.loadScript=l},2057:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Debugger=void 0;const n=r(2315);class o{constructor(){this.isActive_=!1,this.outputFunction_=console.info,this.stream_=null}static getInstance(){return o.instance=o.instance||new o,o.instance}init(t){t&&this.startDebugFile_(t),this.isActive_=!0}output(...t){this.isActive_&&this.output_(t)}generateOutput(t){this.isActive_&&this.output_(t.apply(t,[]))}exit(t=()=>{}){this.isActive_&&this.stream_&&this.stream_.end("","",t)}startDebugFile_(t){this.stream_=n.default.fs.createWriteStream(t),this.outputFunction_=function(...t){this.stream_.write(t.join(" ")),this.stream_.write("\n")}.bind(this),this.stream_.on("error",function(t){console.info("Invalid log file. Debug information sent to console."),this.outputFunction_=console.info}.bind(this)),this.stream_.on("finish",function(){console.info("Finalizing debug file.")})}output_(t){this.outputFunction_.apply(console.info===this.outputFunction_?console:this.outputFunction_,["Speech Rule Engine Debugger:"].concat(t))}}e.Debugger=o},5740:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeXml=e.cloneNode=e.tagName=e.querySelectorAll=e.querySelectorAllByAttrValue=e.querySelectorAllByAttr=e.formatXml=e.createTextNode=e.createElementNS=e.createElement=e.replaceNode=e.NodeType=e.parseInput=e.XML_ENTITIES=e.trimInput_=e.toArray=void 0;const o=r(5897),i=r(4440),a=r(2315),s=r(5274);function n(r){const n=[];for(let t=0,e=r.length;t<e;t++)n.push(r[t]);return n}function l(t){return(t=t.replace(/&nbsp;/g," ")).replace(/>[ \f\n\r\t\v\u200b]+</g,"><").trim()}e.toArray=n,e.trimInput_=l,e.XML_ENTITIES={"&lt;":!0,"&gt;":!0,"&amp;":!0,"&quot;":!0,"&apos;":!0},e.parseInput=function(t){const e=new a.default.xmldom.DOMParser,r=l(t),n=!!r.match(/&(?!lt|gt|amp|quot|apos)\w+;/g);if(!r)throw new Error("Empty input!");try{const t=e.parseFromString(r,n?"text/html":"text/xml");return o.default.getInstance().mode===i.Mode.HTTP?(s.xpath.currentDocument=t,n?t.body.childNodes[0]:t.documentElement):t.documentElement}catch(t){throw new o.SREError("Illegal input: "+t.message)}},(r=e.NodeType||(e.NodeType={}))[r.ELEMENT_NODE=1]="ELEMENT_NODE",r[r.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",r[r.TEXT_NODE=3]="TEXT_NODE",r[r.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",r[r.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",r[r.ENTITY_NODE=6]="ENTITY_NODE",r[r.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",r[r.COMMENT_NODE=8]="COMMENT_NODE",r[r.DOCUMENT_NODE=9]="DOCUMENT_NODE",r[r.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",r[r.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",r[r.NOTATION_NODE=12]="NOTATION_NODE",e.replaceNode=function(t,e){t.parentNode&&(t.parentNode.insertBefore(e,t),t.parentNode.removeChild(t))},e.createElement=function(t){return a.default.document.createElement(t)},e.createElementNS=function(t,e){return a.default.document.createElementNS(t,e)},e.createTextNode=function(t){return a.default.document.createTextNode(t)},e.formatXml=function(t){let r="",e=/(>)(<)(\/*)/g,n=0,o=(t=t.replace(e,"$1\r\n$2$3")).split("\r\n");for(e=/(\.)*(<)(\/*)/g,o=o.map(t=>t.replace(e,"$1\r\n$2$3").split("\r\n")).reduce((t,e)=>t.concat(e),[]);o.length;){let e=o.shift();if(e){let t=0;if(e.match(/^<\w[^>/]*>[^>]+$/)){i=e;const r=(a=o[0])?(i=i.match(/^<([^> ]+).*>/),a=a.match(/^<\/([^>]+)>(.*)/),i&&a&&i[1]===a[1]?[!0,a[2]]:[!1,""]):[!1,""];r[0]?r[1]?(e+=o.shift().slice(0,-r[1].length),r[1].trim()&&o.unshift(r[1])):e+=o.shift():t=1}else if(e.match(/^<\/\w/))0!==n&&--n;else if(e.match(/^<\w[^>]*[^/]>.*$/))t=1;else if(e.match(/^<\w[^>]*\/>.+$/)){const r=e.indexOf(">")+1;e.slice(r).trim()&&o.unshift(),e=e.slice(0,r)}else t=0;r+=new Array(n+1).join(" ")+e+"\r\n",n+=t}}var i,a;return r},e.querySelectorAllByAttr=function(t,e){return t.querySelectorAll?n(t.querySelectorAll(`[${e}]`)):s.evalXPath(`.//*[@${e}]`,t)},e.querySelectorAllByAttrValue=function(t,e,r){return t.querySelectorAll?n(t.querySelectorAll(`[${e}="${r}"]`)):s.evalXPath(`.//*[@${e}="${r}"]`,t)},e.querySelectorAll=function(t,e){return t.querySelectorAll?n(t.querySelectorAll(e)):s.evalXPath(".//"+e,t)},e.tagName=function(t){return t.tagName.toUpperCase()},e.cloneNode=function(t){return t.cloneNode(!0)},e.serializeXml=function(t){return(new a.default.xmldom.XMLSerializer).serializeToString(t)}},5897:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.EnginePromise=e.SREError=void 0;const i=r(1676),s=r(4440),l=r(2057),n=r(1377);class o extends Error{constructor(t=""){super(),this.message=t,this.name="SRE Error"}}e.SREError=o;class a{constructor(){this.customLoader=null,this.parsers={},this.comparator=null,this.mode=s.Mode.SYNC,this.init=!0,this.delay=!1,this.comparators={},this.domain="mathspeak",this.style=i.DynamicCstr.DEFAULT_VALUES[i.Axis.STYLE],this._defaultLocale=i.DynamicCstr.DEFAULT_VALUES[i.Axis.LOCALE],this.locale=this.defaultLocale,this.subiso="",this.modality=i.DynamicCstr.DEFAULT_VALUES[i.Axis.MODALITY],this.speech=s.Speech.NONE,this.markup=s.Markup.NONE,this.walker="Table",this.structure=!1,this.ruleSets=[],this.strict=!1,this.isIE=!1,this.isEdge=!1,this.rate="100",this.pprint=!1,this.config=!1,this.rules="",this.prune="",this.evaluator=a.defaultEvaluator,this.defaultParser=new i.DynamicCstrParser(i.DynamicCstr.DEFAULT_ORDER),this.parser=this.defaultParser,this.dynamicCstr=i.DynamicCstr.defaultCstr()}set defaultLocale(t){this._defaultLocale=n.Variables.ensureLocale(t,this._defaultLocale)}get defaultLocale(){return this._defaultLocale}static getInstance(){return a.instance=a.instance||new a,a.instance}static defaultEvaluator(t,e){return t}static evaluateNode(t){return a.nodeEvaluator(t)}getRate(){var t=parseInt(this.rate,10);return isNaN(t)?100:t}setDynamicCstr(e){if(this.defaultLocale&&(i.DynamicCstr.DEFAULT_VALUES[i.Axis.LOCALE]=this.defaultLocale),e){const r=Object.keys(e);for(let t=0;t<r.length;t++){const s=r[t];if(-1!==i.DynamicCstr.DEFAULT_ORDER.indexOf(s)){const r=e[s];this[s]=r}}}s.DOMAIN_TO_STYLES[this.domain]=this.style;const r=[this.locale,this.modality,this.domain,this.style].join("."),t=i.DynamicProperties.createProp([i.DynamicCstr.DEFAULT_VALUES[i.Axis.LOCALE]],[i.DynamicCstr.DEFAULT_VALUES[i.Axis.MODALITY]],[i.DynamicCstr.DEFAULT_VALUES[i.Axis.DOMAIN]],[i.DynamicCstr.DEFAULT_VALUES[i.Axis.STYLE]]),n=this.comparators[this.domain],o=this.parsers[this.domain];this.parser=o||this.defaultParser,this.dynamicCstr=this.parser.parse(r),this.dynamicCstr.updateProperties(t.getProperties()),this.comparator=n?n():new i.DefaultComparator(this.dynamicCstr)}configurate(t){if(this.mode===s.Mode.HTTP&&!this.config){{var r=t;const a=document.documentElement.querySelectorAll('script[type="text/x-sre-config"]');for(let e=0,t=a.length;e<t;e++){let t;try{t=a[e].innerHTML;var n=JSON.parse(t);for(const a in n)r[a]=n[a]}catch(r){l.Debugger.getInstance().output("Illegal configuration ",t)}}}this.config=!0}var e=t;if("undefined"!=typeof SREfeature)for(var[o,i]of Object.entries(SREfeature))e[o]=i}setCustomLoader(t){t&&(this.customLoader=t)}}(e.default=a).BINARY_FEATURES=["strict","structure","pprint"],a.STRING_FEATURES=["markup","style","domain","speech","walker","defaultLocale","locale","delay","modality","rate","rules","subiso","prune"],a.nodeEvaluator=function(t){return[]};class c{static get(t=a.getInstance().locale){return c.promises[t]||Promise.resolve("")}static getall(){return Promise.all(Object.values(c.promises))}}(e.EnginePromise=c).loaded={},c.promises={}},4440:function(t,e){var r,n;Object.defineProperty(e,"__esModule",{value:!0}),e.DOMAIN_TO_STYLES=e.Markup=e.Speech=e.personalityPropList=e.personalityProps=e.Mode=void 0,(n=e.Mode||(e.Mode={})).SYNC="sync",n.ASYNC="async",n.HTTP="http",(r=n=e.personalityProps||(e.personalityProps={})).PITCH="pitch",r.RATE="rate",r.VOLUME="volume",r.PAUSE="pause",r.JOIN="join",r.LAYOUT="layout",e.personalityPropList=[n.PITCH,n.RATE,n.VOLUME,n.PAUSE,n.JOIN],(r=e.Speech||(e.Speech={})).NONE="none",r.SHALLOW="shallow",r.DEEP="deep",(n=e.Markup||(e.Markup={})).NONE="none",n.LAYOUT="layout",n.PUNCTUATION="punctuation",n.SSML="ssml",n.SSML_STEP="ssml_step",n.ACSS="acss",n.SABLE="sable",n.VOICEXML="voicexml",e.DOMAIN_TO_STYLES={mathspeak:"default",clearspeak:"default"}},6828:function(t,e,r){var n=this&&this.__awaiter||function(t,a,s,l){return new(s=s||Promise)(function(r,e){function n(t){try{i(l.next(t))}catch(t){e(t)}}function o(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,o)}i((l=l.apply(t,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.setup=void 0;const o=r(7491),i=r(6141),a=r(2139),s=r(5897),l=r(7248),c=r(2315);e.setup=function(r){return n(this,void 0,void 0,function*(){const e=s.default.getInstance();"default"!==r.domain||"speech"!==r.modality&&r.modality&&"speech"!==e.modality||(r.domain="mathspeak");var t=t=>{void 0!==r[t]&&(e[t]=r[t])};return t("mode"),e.configurate(r),s.default.BINARY_FEATURES.forEach(t=>{void 0!==r[t]&&(e[t]=!!r[t])}),s.default.STRING_FEATURES.forEach(t),r.json&&(c.default.jsonPath=l.makePath(r.json)),r.xpath&&(c.default.WGXpath=r.xpath),e.setCustomLoader(r.custom),(t=e).isIE=a.detectIE(),t.isEdge=a.detectEdge(),o.setLocale(),e.setDynamicCstr(),e.init?(s.EnginePromise.promises.init=new Promise((t,e)=>{setTimeout(()=>{t("init")},10)}),e.init=!1,s.EnginePromise.get()):e.delay?(e.delay=!1,s.EnginePromise.get()):i.loadLocale()})}},8496:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Event=e.EventType=e.Move=e.KeyCode=void 0,(r=e.KeyCode||(e.KeyCode={}))[r.ENTER=13]="ENTER",r[r.ESC=27]="ESC",r[r.SPACE=32]="SPACE",r[r.PAGE_UP=33]="PAGE_UP",r[r.PAGE_DOWN=34]="PAGE_DOWN",r[r.END=35]="END",r[r.HOME=36]="HOME",r[r.LEFT=37]="LEFT",r[r.UP=38]="UP",r[r.RIGHT=39]="RIGHT",r[r.DOWN=40]="DOWN",r[r.TAB=9]="TAB",r[r.LESS=188]="LESS",r[r.GREATER=190]="GREATER",r[r.DASH=189]="DASH",r[r.ZERO=48]="ZERO",r[r.ONE=49]="ONE",r[r.TWO=50]="TWO",r[r.THREE=51]="THREE",r[r.FOUR=52]="FOUR",r[r.FIVE=53]="FIVE",r[r.SIX=54]="SIX",r[r.SEVEN=55]="SEVEN",r[r.EIGHT=56]="EIGHT",r[r.NINE=57]="NINE",r[r.A=65]="A",r[r.B=66]="B",r[r.C=67]="C",r[r.D=68]="D",r[r.E=69]="E",r[r.F=70]="F",r[r.G=71]="G",r[r.H=72]="H",r[r.I=73]="I",r[r.J=74]="J",r[r.K=75]="K",r[r.L=76]="L",r[r.M=77]="M",r[r.N=78]="N",r[r.O=79]="O",r[r.P=80]="P",r[r.Q=81]="Q",r[r.R=82]="R",r[r.S=83]="S",r[r.T=84]="T",r[r.U=85]="U",r[r.V=86]="V",r[r.W=87]="W",r[r.X=88]="X",r[r.Y=89]="Y",r[r.Z=90]="Z",e.Move=new Map([[13,"ENTER"],[27,"ESC"],[32,"SPACE"],[33,"PAGE_UP"],[34,"PAGE_DOWN"],[35,"END"],[36,"HOME"],[37,"LEFT"],[38,"UP"],[39,"RIGHT"],[40,"DOWN"],[9,"TAB"],[188,"LESS"],[190,"GREATER"],[189,"DASH"],[48,"ZERO"],[49,"ONE"],[50,"TWO"],[51,"THREE"],[52,"FOUR"],[53,"FIVE"],[54,"SIX"],[55,"SEVEN"],[56,"EIGHT"],[57,"NINE"],[65,"A"],[66,"B"],[67,"C"],[68,"D"],[69,"E"],[70,"F"],[71,"G"],[72,"H"],[73,"I"],[74,"J"],[75,"K"],[76,"L"],[77,"M"],[78,"N"],[79,"O"],[80,"P"],[81,"Q"],[82,"R"],[83,"S"],[84,"T"],[85,"U"],[86,"V"],[87,"W"],[88,"X"],[89,"Y"],[90,"Z"]]),(r=e.EventType||(e.EventType={})).CLICK="click",r.DBLCLICK="dblclick",r.MOUSEDOWN="mousedown",r.MOUSEUP="mouseup",r.MOUSEOVER="mouseover",r.MOUSEOUT="mouseout",r.MOUSEMOVE="mousemove",r.SELECTSTART="selectstart",r.KEYPRESS="keypress",r.KEYDOWN="keydown",r.KEYUP="keyup",r.TOUCHSTART="touchstart",r.TOUCHMOVE="touchmove",r.TOUCHEND="touchend",r.TOUCHCANCEL="touchcancel",e.Event=class{constructor(t,e,r){this.src=t,this.type=e,this.callback=r}add(){this.src.addEventListener(this.type,this.callback)}remove(){this.src.removeEventListener(this.type,this.callback)}}},7248:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.localePath=e.makePath=void 0;const n=r(2315);function o(t){return t.match("/$")?t:t+"/"}e.makePath=o,e.localePath=function(t,e="json"){return o(n.default.jsonPath)+t+(e.match(/^\./)?e:"."+e)}},3769:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyProcessor=e.Processor=void 0;const n=r(8496);class o{constructor(t,e){this.name=t,this.process=e.processor,this.postprocess=e.postprocessor||((t,e)=>t),this.processor=this.postprocess?function(t){return this.postprocess(this.process(t),t)}:this.process,this.print=e.print||o.stringify_,this.pprint=e.pprint||this.print}static stringify_(t){return t&&t.toString()}}(e.Processor=o).LocalState={walker:null,speechGenerator:null,highlighter:null};o;e.KeyProcessor=class i extends o{constructor(t,e){super(t,e),this.key=e.key||i.getKey_}static getKey_(t){return"string"==typeof t?n.KeyCode[t.toUpperCase()]:t}}},6499:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.keypress=e.output=e.print=e.process=e.set=void 0;const s=r(8290),n=r(5714),o=r(3090),i=r(4356),l=r(1414),a=r(9552),c=r(9543),u=r(3362),p=r(1204),h=r(5740),d=r(5897),f=r(4440),m=r(3769),y=r(5274),g=new Map;function b(t){g.set(t.name,t)}function v(t){var e=g.get(t);if(e)return e;throw new d.SREError("Unknown processor "+t)}function _(t,e){const r=v(t);try{return r.processor(e)}catch(t){throw new d.SREError("Processing error for expression "+e)}}function S(t,e){const r=v(t);return d.default.getInstance().pprint?r.pprint(e):r.print(e)}e.set=b,e.process=_,e.print=S,e.output=function(t,e){const r=v(t);try{const t=r.processor(e);return d.default.getInstance().pprint?r.pprint(t):r.print(t)}catch(t){throw new d.SREError("Processing error for expression "+e)}},e.keypress=function(t,e){const r=v(t),n=r instanceof m.KeyProcessor?r.key(e):e,o=r.processor(n);return d.default.getInstance().pprint?r.pprint(o):r.print(o)},b(new m.Processor("semantic",{processor:function(t){t=h.parseInput(t);return l.xmlTree(t)},postprocessor:function(t,e){var r=d.default.getInstance().speech;if(r===f.Speech.NONE)return t;var n=h.cloneNode(t);let o=c.computeMarkup(n);if(r===f.Speech.SHALLOW)return t.setAttribute("speech",s.finalize(o)),t;var i=y.evalXPath(".//*[@id]",t),a=y.evalXPath(".//*[@id]",n);for(let t,e,r=0;t=i[r],e=a[r];r++)o=c.computeMarkup(e),t.setAttribute("speech",s.finalize(o));return t},pprint:function(t){return h.formatXml(t.toString())}})),b(new m.Processor("speech",{processor:function(t){t=h.parseInput(t),t=l.xmlTree(t),t=c.computeSpeech(t);return s.finalize(s.markup(t))},pprint:function(t){t=t.toString();return s.isXml()?h.formatXml(t):t}})),b(new m.Processor("json",{processor:function(t){t=h.parseInput(t);return l.getTree(t).toJson()},postprocessor:function(t,e){var r=d.default.getInstance().speech;if(r===f.Speech.NONE)return t;const n=h.parseInput(e),o=l.xmlTree(n),i=c.computeMarkup(o);if(r===f.Speech.SHALLOW)return t.stree.speech=s.finalize(i),t;const a=t=>{var e=y.evalXPath(`.//*[@id=${t.id}]`,o)[0],e=c.computeMarkup(e);t.speech=s.finalize(e),t.children&&t.children.forEach(a)};return a(t.stree),t},print:function(t){return JSON.stringify(t)},pprint:function(t){return JSON.stringify(t,null,2)}})),b(new m.Processor("description",{processor:function(t){t=h.parseInput(t),t=l.xmlTree(t);return c.computeSpeech(t)},print:function(t){return JSON.stringify(t)},pprint:function(t){return JSON.stringify(t,null,2)}})),b(new m.Processor("enriched",{processor:function(t){return n.semanticMathmlSync(t)},postprocessor:function(t,e){var r=p.getSemanticRoot(t);let n;switch(d.default.getInstance().speech){case f.Speech.NONE:break;case f.Speech.SHALLOW:(n=a.generator("Adhoc")).getSpeech(r,t);break;case f.Speech.DEEP:(n=a.generator("Tree")).getSpeech(t,t)}return t},pprint:function(t){return h.formatXml(t.toString())}})),b(new m.Processor("walker",{processor:function(t){const e=a.generator("Node");(m.Processor.LocalState.speechGenerator=e).setOptions({modality:d.default.getInstance().modality,locale:d.default.getInstance().locale,domain:d.default.getInstance().domain,style:d.default.getInstance().style}),m.Processor.LocalState.highlighter=o.highlighter({color:"black"},{color:"white"},{renderer:"NativeMML"});var t=_("enriched",t),r=S("enriched",t);return m.Processor.LocalState.walker=u.walker(d.default.getInstance().walker,t,e,m.Processor.LocalState.highlighter,r),m.Processor.LocalState.walker},print:function(t){return m.Processor.LocalState.walker.speech()}})),b(new m.KeyProcessor("move",{processor:function(t){return m.Processor.LocalState.walker?!1===m.Processor.LocalState.walker.move(t)?s.error(t):m.Processor.LocalState.walker.speech():null}})),b(new m.Processor("number",{processor:function(t){t=parseInt(t,10);return isNaN(t)?"":i.LOCALE.NUMBERS.numberToWords(t)}})),b(new m.Processor("ordinal",{processor:function(t){t=parseInt(t,10);return isNaN(t)?"":i.LOCALE.NUMBERS.wordOrdinal(t)}})),b(new m.Processor("numericOrdinal",{processor:function(t){t=parseInt(t,10);return isNaN(t)?"":i.LOCALE.NUMBERS.numericOrdinal(t)}})),b(new m.Processor("vulgar",{processor:function(t){var[t,e]=t.split("/").map(t=>parseInt(t,10));return isNaN(t)||isNaN(e)?"":_("speech",`<mfrac><mn>${t}</mn><mn>${e}</mn></mfrac>`)}}))},2998:function(t,e,r){var a=this&&this.__awaiter||function(t,a,s,l){return new(s=s||Promise)(function(r,e){function n(t){try{i(l.next(t))}catch(t){e(t)}}function o(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,o)}i((l=l.apply(t,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.localePath=e.exit=e.move=e.walk=e.processFile=e.file=e.vulgar=e.numericOrdinal=e.ordinal=e.number=e.toEnriched=e.toDescription=e.toJson=e.toSemantic=e.toSpeech=e.localeLoader=e.engineReady=e.engineSetup=e.setupEngine=e.version=void 0;const s=r(5897),n=r(6828),l=r(4440),o=r(7248),c=r(6499),u=r(2315),i=r(1377),p=r(6141);function h(t){return a(this,void 0,void 0,function*(){return(0,n.setup)(t)})}function d(t,e){return c.process(t,e)}function f(t,e,r){switch(s.default.getInstance().mode){case l.Mode.ASYNC:return function(e,r,n){return a(this,void 0,void 0,function*(){var t=yield u.default.fs.promises.readFile(r,{encoding:"utf8"}),t=c.output(e,t);if(n)try{u.default.fs.promises.writeFile(n,t)}catch(t){throw new s.SREError("Can not write to file: "+n)}return t})}(t,e,r);case l.Mode.SYNC:var n=t,o=r,i=function(t){let e;try{e=u.default.fs.readFileSync(t,{encoding:"utf8"})}catch(e){throw new s.SREError("Can not open file: "+t)}return e}(e),i=c.output(n,i);if(o)try{u.default.fs.writeFileSync(o,i)}catch(n){throw new s.SREError("Can not write to file: "+o)}return i;default:throw new s.SREError(`Can process files in ${s.default.getInstance().mode} mode`)}}e.version=i.Variables.VERSION,e.setupEngine=h,e.engineSetup=function(){const t=["mode"].concat(s.default.STRING_FEATURES,s.default.BINARY_FEATURES),e=s.default.getInstance(),r={};return t.forEach(function(t){r[t]=e[t]}),r.json=u.default.jsonPath,r.xpath=u.default.WGXpath,r.rules=e.ruleSets.slice(),r},e.engineReady=function(){return a(this,void 0,void 0,function*(){return h({}).then(()=>s.EnginePromise.getall())})},e.localeLoader=p.standardLoader,e.toSpeech=function(t){return d("speech",t)},e.toSemantic=function(t){return d("semantic",t)},e.toJson=function(t){return d("json",t)},e.toDescription=function(t){return d("description",t)},e.toEnriched=function(t){return d("enriched",t)},e.number=function(t){return d("number",t)},e.ordinal=function(t){return d("ordinal",t)},e.numericOrdinal=function(t){return d("numericOrdinal",t)},e.vulgar=function(t){return d("vulgar",t)},e.file={},e.file.toSpeech=function(t,e){return f("speech",t,e)},e.file.toSemantic=function(t,e){return f("semantic",t,e)},e.file.toJson=function(t,e){return f("json",t,e)},e.file.toDescription=function(t,e){return f("description",t,e)},e.file.toEnriched=function(t,e){return f("enriched",t,e)},e.processFile=f,e.walk=function(t){return c.output("walker",t)},e.move=function(t){return c.keypress("move",t)},e.exit=function(t){const e=t||0;s.EnginePromise.getall().then(()=>process.exit(e))},e.localePath=o.localePath,u.default.documentSupported?h({mode:l.Mode.HTTP}).then(()=>h({})):h({mode:l.Mode.SYNC}).then(()=>h({mode:l.Mode.ASYNC}))},2315:function(__unused_webpack_module,exports,__webpack_require__){var __dirname="/";Object.defineProperty(exports,"__esModule",{value:!0});const variables_1=__webpack_require__(1377);class SystemExternal{static extRequire(library){if("undefined"==typeof process)return null;{const nodeRequire=eval("require");return nodeRequire(library)}}}exports.default=SystemExternal,SystemExternal.windowSupported=!("undefined"==typeof window),SystemExternal.documentSupported=SystemExternal.windowSupported&&!(void 0===window.document),SystemExternal.xmldom=SystemExternal.documentSupported?window:SystemExternal.extRequire("xmldom-sre"),SystemExternal.document=SystemExternal.documentSupported?window.document:(new SystemExternal.xmldom.DOMImplementation).createDocument("","",0),SystemExternal.xpath=SystemExternal.documentSupported?document:function(){const t={document:{},XPathResult:{}};return SystemExternal.extRequire("wicked-good-xpath").install(t),t.document.XPathResult=t.XPathResult,t.document}(),SystemExternal.mathmapsIePath="https://cdn.jsdelivr.net/npm/sre-mathmaps-ie@"+variables_1.Variables.VERSION+"mathmaps_ie.js",SystemExternal.commander=SystemExternal.documentSupported?null:SystemExternal.extRequire("commander"),SystemExternal.fs=SystemExternal.documentSupported?null:SystemExternal.extRequire("fs"),SystemExternal.url=variables_1.Variables.url,SystemExternal.jsonPath=(SystemExternal.documentSupported?SystemExternal.url:process.env.SRE_JSON_PATH||__webpack_require__.g.SRE_JSON_PATH||__dirname+"/mathmaps")+"/",SystemExternal.WGXpath=variables_1.Variables.WGXpath,SystemExternal.wgxpath=null},1377:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Variables=void 0;class r{static ensureLocale(t,e){return r.LOCALES.get(t)?t:(console.error(`Locale ${t} does not exist! Using ${r.LOCALES.get(e)} instead.`),e)}}(e.Variables=r).VERSION="4.0.6",r.LOCALES=new Map([["ca","Catalan"],["da","Danish"],["de","German"],["en","English"],["es","Spanish"],["fr","French"],["hi","Hindi"],["it","Italian"],["nb","Bokmål"],["nn","Nynorsk"],["sv","Swedish"],["nemeth","Nemeth"]]),r.mathjaxVersion="3.2.1",r.url="https://cdn.jsdelivr.net/npm/speech-rule-engine@"+r.VERSION+"/lib/mathmaps",r.WGXpath="https://cdn.jsdelivr.net/npm/wicked-good-xpath@1.3.0/dist/wgxpath.install.js"},5274:function(t,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.updateEvaluator=o.evaluateString=o.evaluateBoolean=o.getLeafNodes=o.evalXPath=o.resolveNameSpace=o.xpath=void 0;const n=e(5897),i=e(4440),r=e(2315);function a(){return"undefined"!=typeof XPathResult}o.xpath={currentDocument:null,evaluate:(a()?document:r.default.xpath).evaluate,result:a()?XPathResult:r.default.xpath.XPathResult,createNSResolver:(a()?document:r.default.xpath).createNSResolver};const s={xhtml:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",mml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function l(t){return s[t]||null}o.resolveNameSpace=l;class c{constructor(){this.lookupNamespaceURI=l}}function u(t,e,r){return n.default.getInstance().mode!==i.Mode.HTTP||n.default.getInstance().isIE||n.default.getInstance().isEdge?o.xpath.evaluate(t,e,new c,r,null):o.xpath.currentDocument.evaluate(t,e,l,r,null)}function p(t,e){let r;try{r=u(t,e,o.xpath.result.ORDERED_NODE_ITERATOR_TYPE)}catch(t){return[]}const n=[];for(let t=r.iterateNext();t;t=r.iterateNext())n.push(t);return n}o.evalXPath=p,o.getLeafNodes=function(t){return p(".//*[count(*)=0]",t)},o.evaluateBoolean=function(t,e){let r;try{r=u(t,e,o.xpath.result.BOOLEAN_TYPE)}catch(t){return!1}return r.booleanValue},o.evaluateString=function(t,e){let r;try{r=u(t,e,o.xpath.result.STRING_TYPE)}catch(t){return""}return r.stringValue},o.updateEvaluator=function(e){if(n.default.getInstance().mode===i.Mode.HTTP){let t=e;for(;t&&!t.evaluate;)t=t.parentNode;t&&t.evaluate?o.xpath.currentDocument=t:e.ownerDocument&&(o.xpath.currentDocument=e.ownerDocument)}}},9268:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEnrichCase=void 0,e.AbstractEnrichCase=class{constructor(t){this.semantic=t}}},6061:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseBinomial=void 0;const n=r(5740),o=r(9268),i=r(5452),a=r(2298);class s extends o.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return!t.mathmlTree&&"line"===t.type&&"binomial"===t.role}getMathml(){if(!this.semantic.childNodes.length)return this.mml;const t=this.semantic.childNodes[0];if(this.mml=(0,i.walkTree)(t),this.mml.hasAttribute(a.Attribute.TYPE)){const t=n.createElement("mrow");t.setAttribute(a.Attribute.ADDED,"true"),n.replaceNode(this.mml,t),t.appendChild(this.mml),this.mml=t}return(0,a.setAttributes)(this.mml,this.semantic),this.mml}}e.CaseBinomial=s},5765:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseDoubleScript=void 0;const n=r(5740),o=r(9268),s=r(5452),l=r(2298);class i extends o.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){if(!t.mathmlTree||!t.childNodes.length)return!1;var e=n.tagName(t.mathmlTree),t=t.childNodes[0].role;return"MSUBSUP"===e&&"subsup"===t||"MUNDEROVER"===e&&"underover"===t}getMathml(){const t=this.semantic.childNodes[0],e=t.childNodes[0],r=this.semantic.childNodes[1],n=t.childNodes[1],o=s.walkTree(r),i=s.walkTree(e),a=s.walkTree(n);return(0,l.setAttributes)(this.mml,this.semantic),this.mml.setAttribute(l.Attribute.CHILDREN,(0,l.makeIdList)([e,n,r])),[i,a,o].forEach(t=>s.getInnerNode(t).setAttribute(l.Attribute.PARENT,this.mml.getAttribute(l.Attribute.ID))),this.mml.setAttribute(l.Attribute.TYPE,t.role),s.addCollapsedAttribute(this.mml,[this.semantic.id,[t.id,e.id,n.id],r.id]),this.mml}}e.CaseDoubleScript=i},7251:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseEmbellished=void 0;const a=r(5740),n=r(5952),o=r(9268),s=r(5765),l=r(7014),c=r(6887),u=r(5452),p=r(2298);class h extends o.AbstractEnrichCase{constructor(t){super(t),this.fenced=null,this.fencedMml=null,this.fencedMmlNodes=[],this.ofence=null,this.ofenceMml=null,this.ofenceMap={},this.cfence=null,this.cfenceMml=null,this.cfenceMap={},this.parentCleanup=[]}static test(t){return!(!t.mathmlTree||!t.fencePointer||t.mathmlTree.getAttribute("data-semantic-type"))}static makeEmptyNode_(t){const e=a.createElement("mrow"),r=new n.SemanticNode(t);return r.type="empty",r.mathmlTree=e,r}static fencedMap_(t,e){e[t.id]=t.mathmlTree,t.embellished&&h.fencedMap_(t.childNodes[0],e)}getMathml(){return this.getFenced_(),this.fencedMml=u.walkTree(this.fenced),this.getFencesMml_(),"empty"!==this.fenced.type||this.fencedMml.parentNode||(this.fencedMml.setAttribute(p.Attribute.ADDED,"true"),this.cfenceMml.parentNode.insertBefore(this.fencedMml,this.cfenceMml)),this.getFencedMml_(),this.rewrite_()}fencedElement(t){return"fenced"===t.type||"matrix"===t.type||"vector"===t.type}getFenced_(){let t=this.semantic;for(;!this.fencedElement(t);)t=t.childNodes[0];this.fenced=t.childNodes[0],this.ofence=t.contentNodes[0],this.cfence=t.contentNodes[1],h.fencedMap_(this.ofence,this.ofenceMap),h.fencedMap_(this.cfence,this.cfenceMap)}getFencedMml_(){let t=this.ofenceMml.nextSibling;for(t=t===this.fencedMml?t:this.fencedMml;t&&t!==this.cfenceMml;)this.fencedMmlNodes.push(t),t=t.nextSibling}getFencesMml_(){let t=this.semantic;const e=Object.keys(this.ofenceMap),r=Object.keys(this.cfenceMap);for(;!(this.ofenceMml&&this.cfenceMml||t===this.fenced);)-1===e.indexOf(t.fencePointer)||this.ofenceMml||(this.ofenceMml=t.mathmlTree),-1===r.indexOf(t.fencePointer)||this.cfenceMml||(this.cfenceMml=t.mathmlTree),t=t.childNodes[0];this.ofenceMml||(this.ofenceMml=this.ofence.mathmlTree),this.cfenceMml||(this.cfenceMml=this.cfence.mathmlTree),this.ofenceMml&&(this.ofenceMml=u.ascendNewNode(this.ofenceMml)),this.cfenceMml&&(this.cfenceMml=u.ascendNewNode(this.cfenceMml))}rewrite_(){let r=this.semantic,n=null;var t=this.introduceNewLayer_();for((0,p.setAttributes)(t,this.fenced.parent);!this.fencedElement(r);){var e=r.mathmlTree,o=this.specialCase_(r,e);if(o)r=o;else{(0,p.setAttributes)(e,r);const n=[];for(let t,e=1;t=r.childNodes[e];e++)n.push(u.walkTree(t));r=r.childNodes[0]}var o=a.createElement("dummy"),i=e.childNodes[0];a.replaceNode(e,o),a.replaceNode(t,e),a.replaceNode(e.childNodes[0],t),a.replaceNode(o,i),n=n||e}return u.walkTree(this.ofence),u.walkTree(this.cfence),this.cleanupParents_(),n||t}specialCase_(t,e){var r=a.tagName(e);let n,o=null;if("MSUBSUP"===r?(o=t.childNodes[0],n=s.CaseDoubleScript):"MMULTISCRIPTS"===r&&("superscript"===t.type||"subscript"===t.type?n=l.CaseMultiscripts:"tensor"===t.type&&(n=c.CaseTensor),o=n&&t.childNodes[0]&&"subsup"===t.childNodes[0].role?t.childNodes[0]:t),!o)return null;var r=o.childNodes[0],i=h.makeEmptyNode_(r.id);return o.childNodes[0]=i,e=new n(t).getMathml(),o.childNodes[0]=r,this.parentCleanup.push(e),o.childNodes[0]}introduceNewLayer_(){const t=this.fullFence(this.ofenceMml),e=this.fullFence(this.cfenceMml);let r=a.createElement("mrow");if(a.replaceNode(this.fencedMml,r),this.fencedMmlNodes.forEach(t=>r.appendChild(t)),r.insertBefore(t,this.fencedMml),r.appendChild(e),!r.parentNode){const t=a.createElement("mrow");for(;0<r.childNodes.length;)t.appendChild(r.childNodes[0]);r.appendChild(t),r=t}return r}fullFence(t){var e=this.fencedMml.parentNode;let r=t;for(;r.parentNode&&r.parentNode!==e;)r=r.parentNode;return r}cleanupParents_(){this.parentCleanup.forEach(function(t){var e=t.childNodes[1].getAttribute(p.Attribute.PARENT);t.childNodes[0].setAttribute(p.Attribute.PARENT,e)})}}e.CaseEmbellished=h},6265:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseLimit=void 0;const n=r(5740),o=r(9268),i=r(5452),a=r(2298);class s extends o.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){if(!t.mathmlTree||!t.childNodes.length)return!1;var e=n.tagName(t.mathmlTree),t=t.type;return("limupper"===t||"limlower"===t)&&("MSUBSUP"===e||"MUNDEROVER"===e)||"limboth"===t&&("MSUB"===e||"MUNDER"===e||"MSUP"===e||"MOVER"===e)}static walkTree_(t){t&&i.walkTree(t)}getMathml(){const t=this.semantic.childNodes;return"limboth"!==this.semantic.type&&3<=this.mml.childNodes.length&&(this.mml=i.introduceNewLayer([this.mml],this.semantic)),(0,a.setAttributes)(this.mml,this.semantic),t[0].mathmlTree||(t[0].mathmlTree=this.semantic.mathmlTree),t.forEach(s.walkTree_),this.mml}}e.CaseLimit=s},6514:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseLine=void 0;const n=r(9268),o=r(5452),i=r(2298);class a extends n.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return!!t.mathmlTree&&"line"===t.type}getMathml(){return this.semantic.contentNodes.length&&o.walkTree(this.semantic.contentNodes[0]),this.semantic.childNodes.length&&o.walkTree(this.semantic.childNodes[0]),(0,i.setAttributes)(this.mml,this.semantic),this.mml}}e.CaseLine=a},6839:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseMultiindex=void 0;const i=r(5740),n=r(9268),a=r(5452),s=r(2298);class l extends n.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static multiscriptIndex(t){return"punctuated"===t.type&&"dummy"===t.contentNodes[0].role?a.collapsePunctuated(t):(a.walkTree(t),t.id)}static createNone_(t){const e=i.createElement("none");return t&&(0,s.setAttributes)(e,t),e.setAttribute(s.Attribute.ADDED,"true"),e}completeMultiscript(t,e){const n=i.toArray(this.mml.childNodes).slice(1);let o=0;var r=r=>{for(let e,t=0;e=r[t];t++){const r=n[o];if(r&&e===parseInt(a.getInnerNode(r).getAttribute(s.Attribute.ID)))a.getInnerNode(r).setAttribute(s.Attribute.PARENT,this.semantic.id.toString()),o++;else{const n=this.semantic.querySelectorAll(t=>t.id===e);this.mml.insertBefore(l.createNone_(n[0]),r||null)}}};r(t),n[o]&&"MPRESCRIPTS"!==i.tagName(n[o])?this.mml.insertBefore(n[o],i.createElement("mprescripts")):o++,r(e)}}e.CaseMultiindex=l},7014:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseMultiscripts=void 0;const n=r(5740),i=r(5656),a=r(6839),s=r(5452),l=r(2298);class o extends a.CaseMultiindex{static test(t){return!!t.mathmlTree&&("MMULTISCRIPTS"===n.tagName(t.mathmlTree)&&("superscript"===t.type||"subscript"===t.type))}constructor(t){super(t)}getMathml(){let t,e,r;if((0,l.setAttributes)(this.mml,this.semantic),this.semantic.childNodes[0]&&"subsup"===this.semantic.childNodes[0].role){const n=this.semantic.childNodes[0],o=(t=n.childNodes[0],e=a.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]),r=a.CaseMultiindex.multiscriptIndex(n.childNodes[1]),[this.semantic.id,[n.id,t.id,r],e]);s.addCollapsedAttribute(this.mml,o),this.mml.setAttribute(l.Attribute.TYPE,n.role),this.completeMultiscript(i.SemanticSkeleton.interleaveIds(r,e),[])}else{t=this.semantic.childNodes[0],e=a.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]);const r=[this.semantic.id,t.id,e];s.addCollapsedAttribute(this.mml,r)}const n=i.SemanticSkeleton.collapsedLeafs(r||[],e),o=s.walkTree(t);return s.getInnerNode(o).setAttribute(l.Attribute.PARENT,this.semantic.id.toString()),n.unshift(t.id),this.mml.setAttribute(l.Attribute.CHILDREN,n.join(",")),this.mml}}e.CaseMultiscripts=o},3416:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseProof=void 0;const n=r(9268),o=r(5452),i=r(2298);class a extends n.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return!!t.mathmlTree&&("inference"===t.type||"premises"===t.type)}getMathml(){return this.semantic.childNodes.length&&(this.semantic.contentNodes.forEach(function(t){o.walkTree(t),(0,i.setAttributes)(t.mathmlTree,t)}),this.semantic.childNodes.forEach(function(t){o.walkTree(t)}),(0,i.setAttributes)(this.mml,this.semantic),this.mml.getAttribute("data-semantic-id")===this.mml.getAttribute("data-semantic-parent")&&this.mml.removeAttribute("data-semantic-parent")),this.mml}}e.CaseProof=a},5699:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseTable=void 0;const o=r(5740),n=r(9268),i=r(5452),a=r(2298);class s extends n.AbstractEnrichCase{constructor(t){super(t),this.inner=[],this.mml=t.mathmlTree}static test(t){return"matrix"===t.type||"vector"===t.type||"cases"===t.type}getMathml(){const t=i.cloneContentNode(this.semantic.contentNodes[0]),e=this.semantic.contentNodes[1]?i.cloneContentNode(this.semantic.contentNodes[1]):null;if(this.inner=this.semantic.childNodes.map(i.walkTree),this.mml)if("MFENCED"===o.tagName(this.mml)){var r=this.mml.childNodes;this.mml.insertBefore(t,r[0]||null),e&&this.mml.appendChild(e),this.mml=i.rewriteMfenced(this.mml)}else{const n=[t,this.mml];e&&n.push(e),this.mml=i.introduceNewLayer(n,this.semantic)}else this.mml=i.introduceNewLayer([t].concat(this.inner,[e]),this.semantic);return(0,a.setAttributes)(this.mml,this.semantic),this.mml}}e.CaseTable=s},6887:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseTensor=void 0;const a=r(5656),s=r(6839),l=r(5452),c=r(2298);class n extends s.CaseMultiindex{static test(t){return!!t.mathmlTree&&"tensor"===t.type}constructor(t){super(t)}getMathml(){l.walkTree(this.semantic.childNodes[0]);var t=s.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[1]),e=s.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[2]),r=s.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[3]),n=s.CaseMultiindex.multiscriptIndex(this.semantic.childNodes[4]),o=((0,c.setAttributes)(this.mml,this.semantic),[this.semantic.id,this.semantic.childNodes[0].id,t,e,r,n]);l.addCollapsedAttribute(this.mml,o);const i=a.SemanticSkeleton.collapsedLeafs(t,e,r,n);return i.unshift(this.semantic.childNodes[0].id),this.mml.setAttribute(c.Attribute.CHILDREN,i.join(",")),this.completeMultiscript(a.SemanticSkeleton.interleaveIds(r,n),a.SemanticSkeleton.interleaveIds(t,e)),this.mml}}e.CaseTensor=n},9236:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CaseText=void 0;const n=r(9268),o=r(5452),i=r(2298);class a extends n.AbstractEnrichCase{constructor(t){super(t),this.mml=t.mathmlTree}static test(t){return"punctuated"===t.type&&("text"===t.role||t.contentNodes.every(t=>"dummy"===t.role))}getMathml(){var t=[],e=o.collapsePunctuated(this.semantic,t);return this.mml=o.introduceNewLayer(t,this.semantic),(0,i.setAttributes)(this.mml,this.semantic),this.mml.removeAttribute(i.Attribute.CONTENT),o.addCollapsedAttribute(this.mml,e),this.mml}}e.CaseText=a},5714:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.prepareMmlString=e.testTranslation__=e.semanticMathml=e.semanticMathmlSync=e.semanticMathmlNode=void 0;const n=r(2057),o=r(5740),i=r(5897),a=r(1414),s=r(5452),l=r(2298);function c(t){var t=o.cloneNode(t),e=a.getTree(t);return s.enrich(t,e)}function u(t){return c(o.parseInput(t))}function p(t){return(t=t.match(/^<math/)?t:"<math>"+t).match(/\/math>$/)||(t+="</math>"),t}r(1513),e.semanticMathmlNode=c,e.semanticMathmlSync=u,e.semanticMathml=function(e,r){i.EnginePromise.getall().then(()=>{var t=o.parseInput(e);r(c(t))})},e.testTranslation__=function(t){n.Debugger.getInstance().init();t=u(p(t)).toString();return(0,l.removeAttributePrefix)(t),n.Debugger.getInstance().exit(),t},e.prepareMmlString=p},2298:function(t,o){var i,e;function a(t){return t.map(function(t){return t.id}).join(",")}function s(t,e){const r=[];"mglyph"===e.role&&r.push("image"),e.attributes.href&&r.push("link"),r.length&&t.setAttribute(i.POSTFIX,r.join(" "))}Object.defineProperty(o,"__esModule",{value:!0}),o.addPrefix=o.removeAttributePrefix=o.setPostfix=o.setAttributes=o.makeIdList=o.EnrichAttributes=o.Attribute=o.Prefix=void 0,o.Prefix="data-semantic-",(e=i=o.Attribute||(o.Attribute={})).ADDED="data-semantic-added",e.ALTERNATIVE="data-semantic-alternative",e.CHILDREN="data-semantic-children",e.COLLAPSED="data-semantic-collapsed",e.CONTENT="data-semantic-content",e.EMBELLISHED="data-semantic-embellished",e.FENCEPOINTER="data-semantic-fencepointer",e.FONT="data-semantic-font",e.ID="data-semantic-id",e.ANNOTATION="data-semantic-annotation",e.OPERATOR="data-semantic-operator",e.OWNS="data-semantic-owns",e.PARENT="data-semantic-parent",e.POSTFIX="data-semantic-postfix",e.PREFIX="data-semantic-prefix",e.ROLE="data-semantic-role",e.SPEECH="data-semantic-speech",e.STRUCTURE="data-semantic-structure",e.TYPE="data-semantic-type",o.EnrichAttributes=[i.ADDED,i.ALTERNATIVE,i.CHILDREN,i.COLLAPSED,i.CONTENT,i.EMBELLISHED,i.FENCEPOINTER,i.FONT,i.ID,i.ANNOTATION,i.OPERATOR,i.OWNS,i.PARENT,i.POSTFIX,i.PREFIX,i.ROLE,i.SPEECH,i.STRUCTURE,i.TYPE],o.makeIdList=a,o.setAttributes=function(r,t){r.setAttribute(i.TYPE,t.type);var n=t.allAttributes();for(let t,e=0;t=n[e];e++)r.setAttribute(o.Prefix+t[0].toLowerCase(),t[1]);t.childNodes.length&&r.setAttribute(i.CHILDREN,a(t.childNodes)),t.contentNodes.length&&r.setAttribute(i.CONTENT,a(t.contentNodes)),t.parent&&r.setAttribute(i.PARENT,t.parent.id.toString()),s(r,t)},o.setPostfix=s,o.removeAttributePrefix=function(t){return t.toString().replace(new RegExp(o.Prefix,"g"),"")},o.addPrefix=function(t){return o.Prefix+t}},3532:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.factory=n.getCase=void 0,n.getCase=function(r){for(let t,e=0;t=n.factory[e];e++)if(t.test(r))return t.constr(r);return null},n.factory=[]},1513:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const n=r(6061),o=r(5765),i=r(7251),a=r(6265),s=r(6514),l=r(7014),c=r(3416),u=r(5699),p=r(6887),h=r(9236);r(3532).factory.push({test:a.CaseLimit.test,constr:t=>new a.CaseLimit(t)},{test:i.CaseEmbellished.test,constr:t=>new i.CaseEmbellished(t)},{test:o.CaseDoubleScript.test,constr:t=>new o.CaseDoubleScript(t)},{test:p.CaseTensor.test,constr:t=>new p.CaseTensor(t)},{test:l.CaseMultiscripts.test,constr:t=>new l.CaseMultiscripts(t)},{test:s.CaseLine.test,constr:t=>new s.CaseLine(t)},{test:n.CaseBinomial.test,constr:t=>new n.CaseBinomial(t)},{test:c.CaseProof.test,constr:t=>new c.CaseProof(t)},{test:u.CaseTable.test,constr:t=>new u.CaseTable(t)},{test:h.CaseText.test,constr:t=>new h.CaseText(t)})},5452:function(j,r,t){Object.defineProperty(r,"__esModule",{value:!0}),r.printNodeList__=r.collapsePunctuated=r.formattedOutput_=r.formattedOutput=r.getInnerNode=r.setOperatorAttribute_=r.createInvisibleOperator_=r.rewriteMfenced=r.cloneContentNode=r.addCollapsedAttribute=r.parentNode_=r.isIgnorable_=r.unitChild_=r.descendNode_=r.ascendNewNode=r.validLca_=r.pathToRoot_=r.attachedElement_=r.prunePath_=r.mathmlLca_=r.lcaType=r.functionApplication_=r.isDescendant_=r.insertNewChild_=r.mergeChildren_=r.collectChildNodes_=r.collateChildNodes_=r.childrenSubset_=r.moveSemanticAttributes_=r.introduceLayerAboveLca=r.introduceNewLayer=r.walkTree=r.enrich=r.SETTINGS=void 0;const i=t(2057),l=t(5740),B=t(5897),D=t(3588),F=t(7516),a=t(5656),s=t(4795),c=t(2298),H=t(3532);function u(t){const e=(0,H.getCase)(t);let r;if(e)return A(r=e.getMathml());if(1===t.mathml.length)return i.Debugger.getInstance().output("Walktree Case 0"),r=t.mathml[0],c.setAttributes(r,t),t.childNodes.length&&(i.Debugger.getInstance().output("Walktree Case 0.1"),t.childNodes.forEach(function(t){"empty"===t.type&&r.appendChild(u(t))})),A(r);var n=t.contentNodes.map(N),o=(P(t,n),t.childNodes.map(u)),n=a.SemanticSkeleton.combineContentChildren(t,n,o);if(null===(r=t.mathmlTree))i.Debugger.getInstance().output("Walktree Case 1"),r=p(n,t);else{const t=M(n);i.Debugger.getInstance().output("Walktree Case 2"),r=t?(i.Debugger.getInstance().output("Walktree Case 2.1"),t.parentNode):(i.Debugger.getInstance().output("Walktree Case 2.2"),I(r))}return y(r=L(r),n,t),c.setAttributes(r,t),A(r)}function p(t,e){const r=S(t);let n=r.node;var o=r.type;if(o!==_.VALID||!s.hasEmptyTag(n))if(i.Debugger.getInstance().output("Walktree Case 1.1"),n=l.createElement("mrow"),o===_.PRUNED)i.Debugger.getInstance().output("Walktree Case 1.1.0"),n=h(n,r.node,t);else if(t[0]){i.Debugger.getInstance().output("Walktree Case 1.1.1");const e=M(t),r=d(e.parentNode,t);l.replaceNode(e,n),r.forEach(function(t){n.appendChild(t)})}return e.mathmlTree||(e.mathmlTree=n),n}function h(e,t,r){let n=C(t);if(s.hasMathTag(n)){i.Debugger.getInstance().output("Walktree Case 1.1.0.0"),o(n,e),l.toArray(n.childNodes).forEach(function(t){e.appendChild(t)});const t=e;e=n,n=t}t=r.indexOf(t);return r[t]=n,l.replaceNode(n,e),e.appendChild(n),r.forEach(function(t){e.appendChild(t)}),e}function o(t,e){for(const r of c.EnrichAttributes)t.hasAttribute(r)&&(e.setAttribute(r,t.getAttribute(r)),t.removeAttribute(r))}function d(t,e){const r=l.toArray(t.childNodes);let n=1/0,o=-1/0;return e.forEach(function(t){t=r.indexOf(t);-1!==t&&(n=Math.min(n,t),o=Math.max(o,t))}),r.slice(n,o+1)}function f(t,e,r){const n=[];let o=l.toArray(t.childNodes),i=!1;for(;o.length;){const t=o.shift();if(t.hasAttribute(c.Attribute.TYPE))n.push(t);else{const e=m(t);0!==e.length&&(1!==e.length?(i?t.setAttribute("AuxiliaryImplicit",!0):i=!0,o=e.concat(o)):n.push(t))}}const a=[],s=r.childNodes.map(function(t){return t.mathmlTree});for(;s.length;){const t=s.pop();if(t){if(-1!==n.indexOf(t))break;-1!==e.indexOf(t)&&a.unshift(t)}}return n.concat(a)}function m(t){const e=[];let r=l.toArray(t.childNodes);for(;r.length;){const t=r.shift();t.nodeType===l.NodeType.ELEMENT_NODE&&(t.hasAttribute(c.Attribute.TYPE)?e.push(t):r=l.toArray(t.childNodes).concat(r))}return e}function y(e,r,n){var o="implicit"===n.role&&F.flags.combine_juxtaposition?f(e,r,n):l.toArray(e.childNodes);if(o.length){let t=0;for(;r.length;){const n=r[0];o[t]===n||v(o[t],n)?(r.shift(),t++):o[t]&&-1===r.indexOf(o[t])?t++:(b(n,e)||g(e,o[t],n),r.shift())}}else r.forEach(function(t){e.appendChild(t)})}function g(r,n,o){if(n){let t=n,e=T(t);for(;e&&e.firstChild===t&&!t.hasAttribute("AuxiliaryImplicit")&&e!==r;)e=T(t=e);e&&(e.insertBefore(o,t),t.removeAttribute("AuxiliaryImplicit"))}else r.insertBefore(o,null)}function b(t,e){if(!t)return!1;do{if((t=t.parentNode)===e)return!0}while(t);return!1}function v(r,n){var t=D.functionApplication();if(r&&n&&r.textContent&&n.textContent&&r.textContent===t&&n.textContent===t&&"true"===n.getAttribute(c.Attribute.ADDED)){for(let t,e=0;t=r.attributes[e];e++)n.hasAttribute(t.nodeName)||n.setAttribute(t.nodeName,t.nodeValue);return l.replaceNode(r,n),!0}return!1}var _;function S(t){var e=M(t);if(!e)return{type:_.INVALID,node:null};var r=M(t.slice().reverse());if(e===r)return{type:_.VALID,node:e};const n=O(e),o=x(n,t),i=O(r,function(t){return-1!==o.indexOf(t)}),a=i[0],s=o.indexOf(a);return-1===s?{type:_.INVALID,node:null}:{type:o.length!==n.length?_.PRUNED:E(o[s+1],i[1])?_.VALID:_.INVALID,node:a}}function x(t,e){let r=0;for(;t[r]&&-1===e.indexOf(t[r]);)r++;return t.slice(0,r+1)}function M(t){let e=0,r=null;for(;!r&&e<t.length;)t[e].parentNode&&(r=t[e]),e++;return r}function O(t,e){const r=e||(t=>!1),n=[t];for(;!r(t)&&!s.hasMathTag(t)&&t.parentNode;)t=T(t),n.unshift(t);return n}function E(t,e){return!(!t||!e||t.previousSibling||e.nextSibling)}function A(t){for(;!s.hasMathTag(t)&&e(t);)t=T(t);return t}function C(t){const e=l.toArray(t.childNodes);if(!e)return t;const r=e.filter(function(t){return t.nodeType===l.NodeType.ELEMENT_NODE&&!s.hasIgnoreTag(t)});return 1===r.length&&s.hasEmptyTag(r[0])&&!r[0].hasAttribute(c.Attribute.TYPE)?C(r[0]):t}function e(e){var t=T(e);return!(!t||!s.hasEmptyTag(t))&&l.toArray(t.childNodes).every(function(t){return t===e||w(t)})}function w(t){if(t.nodeType!==l.NodeType.ELEMENT_NODE)return!0;if(!t||s.hasIgnoreTag(t))return!0;var e=l.toArray(t.childNodes);return!(!s.hasEmptyTag(t)&&e.length||s.hasDisplayTag(t)||t.hasAttribute(c.Attribute.TYPE)||s.isOrphanedGlyph(t))&&l.toArray(t.childNodes).every(w)}function T(t){return t.parentNode}function N(t){if(t.mathml.length)return u(t);var e=r.SETTINGS.implicit?n(t):l.createElement("mrow");return t.mathml=[e],e}function L(r){if("MFENCED"!==l.tagName(r))return r;const n=l.createElement("mrow");for(let t,e=0;t=r.attributes[e];e++)-1===["open","close","separators"].indexOf(t.name)&&n.setAttribute(t.name,t.value);return l.toArray(r.childNodes).forEach(function(t){n.appendChild(t)}),l.replaceNode(r,n),n}function n(t){const e=l.createElement("mo"),r=l.createTextNode(t.textContent);return e.appendChild(r),c.setAttributes(e,t),e.setAttribute(c.Attribute.ADDED,"true"),e}function P(t,e){const r=t.type+(t.textContent?","+t.textContent:"");e.forEach(function(t){I(t).setAttribute(c.Attribute.OPERATOR,r)})}function I(t){const r=l.toArray(t.childNodes);if(!r)return t;const n=r.filter(function(t){return!w(t)}),o=[];for(let t,e=0;t=n[e];e++)if(s.hasEmptyTag(t)){const r=I(t);r&&r!==t&&o.push(r)}else o.push(t);return 1===o.length?o[0]:t}function k(t,e,r,n){n=n||!1;R(t,"Original MathML",n),R(r,"Semantic Tree",n),R(e,"Semantically enriched MathML",n)}function R(t,e,r){t=l.formatXml(t.toString());r?console.info(e+":\n```html\n"+c.removeAttributePrefix(t)+"\n```\n"):console.info(t)}r.SETTINGS={collapsed:!0,implicit:!0},r.enrich=function(t,e){const r=l.cloneNode(t);return u(e.root),B.default.getInstance().structure&&t.setAttribute(c.Attribute.STRUCTURE,a.SemanticSkeleton.fromStructure(t,e).toString()),i.Debugger.getInstance().generateOutput(function(){return k(r,t,e,!0),[]}),t},r.walkTree=u,r.introduceNewLayer=p,r.introduceLayerAboveLca=h,r.moveSemanticAttributes_=o,r.childrenSubset_=d,r.collateChildNodes_=f,r.collectChildNodes_=m,r.mergeChildren_=y,r.insertNewChild_=g,r.isDescendant_=b,r.functionApplication_=v,(t=_=r.lcaType||(r.lcaType={})).VALID="valid",t.INVALID="invalid",t.PRUNED="pruned",r.mathmlLca_=S,r.prunePath_=x,r.attachedElement_=M,r.pathToRoot_=O,r.validLca_=E,r.ascendNewNode=A,r.descendNode_=C,r.unitChild_=e,r.isIgnorable_=w,r.parentNode_=T,r.addCollapsedAttribute=function(t,e){const r=new a.SemanticSkeleton(e);t.setAttribute(c.Attribute.COLLAPSED,r.toString())},r.cloneContentNode=N,r.rewriteMfenced=L,r.createInvisibleOperator_=n,r.setOperatorAttribute_=P,r.getInnerNode=I,r.formattedOutput=k,r.formattedOutput_=R,r.collapsePunctuated=function(r,t){const n=!!t,o=t||[],i=r.parent,a=r.contentNodes.map(function(t){return t.id}),s=(a.unshift("c"),[r.id,a]);for(let t,e=0;t=r.childNodes[e];e++){const r=u(t),a=(o.push(r),I(r));i&&!n&&a.setAttribute(c.Attribute.PARENT,i.id.toString()),s.push(t.id)}return s},r.printNodeList__=function(t,e){console.info(t),l.toArray(e).forEach(function(t){console.info(t.toString())}),console.info("<<<<<<<<<<<<<<<<<")}},5105:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractHighlighter=void 0;const n=r(5274),o=r(2298);class i{constructor(){this.color=null,this.mactionName="",this.currentHighlights=[]}highlight(t){this.currentHighlights.push(t.map(t=>{var e=this.highlightNode(t);return this.setHighlighted(t),e}))}highlightAll(t){var r=this.getMactionNodes(t);for(let t,e=0;t=r[e];e++)this.highlight([t])}unhighlight(){const t=this.currentHighlights.pop();t&&t.forEach(t=>{this.isHighlighted(t.node)&&(this.unhighlightNode(t),this.unsetHighlighted(t.node))})}unhighlightAll(){for(;0<this.currentHighlights.length;)this.unhighlight()}setColor(t){this.color=t}colorString(){return this.color.rgba()}addEvents(t,r){const n=this.getMactionNodes(t);for(let t,e=0;t=n[e];e++)for(const n in r)t.addEventListener(n,r[n])}getMactionNodes(t){return Array.from(t.getElementsByClassName(this.mactionName))}isMactionNode(t){const e=t.className||t.getAttribute("class");return!!e&&!!e.match(new RegExp(this.mactionName))}isHighlighted(t){return t.hasAttribute(i.ATTR)}setHighlighted(t){t.setAttribute(i.ATTR,"true")}unsetHighlighted(t){t.removeAttribute(i.ATTR)}colorizeAll(t){n.evalXPath(`.//*[@${o.Attribute.ID}]`,t).forEach(t=>this.colorize(t))}uncolorizeAll(t){n.evalXPath(`.//*[@${o.Attribute.ID}]`,t).forEach(t=>this.uncolorize(t))}colorize(t){var e=(0,o.addPrefix)("foreground");t.hasAttribute(e)&&(t.setAttribute(e+"-old",t.style.color),t.style.color=t.getAttribute(e))}uncolorize(t){var e=(0,o.addPrefix)("foreground")+"-old";t.hasAttribute(e)&&(t.style.color=t.getAttribute(e))}}(e.AbstractHighlighter=i).ATTR="sre-highlight"},6937:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.ChtmlHighlighter=void 0;class n extends r(933).CssHighlighter{constructor(){super()}isMactionNode(t){return t.tagName.toUpperCase()===this.mactionName.toUpperCase()}getMactionNodes(t){return Array.from(t.getElementsByTagName(this.mactionName))}}e.ChtmlHighlighter=n},8396:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ContrastPicker=e.ColorPicker=void 0;const n={red:{red:255,green:0,blue:0},green:{red:0,green:255,blue:0},blue:{red:0,green:0,blue:255},yellow:{red:255,green:255,blue:0},cyan:{red:0,green:255,blue:255},magenta:{red:255,green:0,blue:255},white:{red:255,green:255,blue:255},black:{red:0,green:0,blue:0}};function r(t,e){var t=t||{color:e};let r=Object.prototype.hasOwnProperty.call(t,"color")?n[t.color]:t;return(r=r||n[e]).alpha=Object.prototype.hasOwnProperty.call(t,"alpha")?t.alpha:1,e=r,t=t=>(t=Math.max(t,0),t=Math.min(255,t),Math.round(t)),e.red=t(e.red),e.green=t(e.green),e.blue=t(e.blue),e.alpha=Math.max(e.alpha,0),e.alpha=Math.min(1,e.alpha),e}class o{constructor(t,e){this.foreground=r(e,o.DEFAULT_FOREGROUND_),this.background=r(t,o.DEFAULT_BACKGROUND_)}static toHex(t){t=t.toString(16);return 1===t.length?"0"+t:t}rgba(){function t(t){return"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")"}return{background:t(this.background),foreground:t(this.foreground)}}rgb(){function t(t){return"rgb("+t.red+","+t.green+","+t.blue+")"}return{background:t(this.background),alphaback:this.background.alpha.toString(),foreground:t(this.foreground),alphafore:this.foreground.alpha.toString()}}hex(){function t(t){return"#"+o.toHex(t.red)+o.toHex(t.green)+o.toHex(t.blue)}return{background:t(this.background),alphaback:this.background.alpha.toString(),foreground:t(this.foreground),alphafore:this.foreground.alpha.toString()}}}(e.ColorPicker=o).DEFAULT_BACKGROUND_="blue",o.DEFAULT_FOREGROUND_="black",e.ContrastPicker=class{constructor(){this.hue=10,this.sat=100,this.light=50,this.incr=50}generate(){return t=function(t,e,r){e=1<e?e/100:e,r=1<r?r/100:r;var e=(1-Math.abs(2*r-1))*e,n=e*(1-Math.abs(t/60%2-1)),r=r-e/2;let o=0,i=0,a=0;return 0<=t&&t<60?[o,i,a]=[e,n,0]:60<=t&&t<120?[o,i,a]=[n,e,0]:120<=t&&t<180?[o,i,a]=[0,e,n]:180<=t&&t<240?[o,i,a]=[0,n,e]:240<=t&&t<300?[o,i,a]=[n,0,e]:300<=t&&t<360&&([o,i,a]=[e,0,n]),{red:o+r,green:i+r,blue:a+r}}(this.hue,this.sat,this.light),"rgb("+(t={red:Math.round(255*t.red),green:Math.round(255*t.green),blue:Math.round(255*t.blue)}).red+","+t.green+","+t.blue+")";var t}increment(){this.hue=(this.hue+this.incr)%360}}},933:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.CssHighlighter=void 0;class n extends r(5105).AbstractHighlighter{constructor(){super(),this.mactionName="mjx-maction"}highlightNode(t){var e={node:t,background:t.style.backgroundColor,foreground:t.style.color},r=this.colorString();return t.style.backgroundColor=r.background,t.style.color=r.foreground,e}unhighlightNode(t){t.node.style.backgroundColor=t.background,t.node.style.color=t.foreground}}e.CssHighlighter=n},3090:function(t,a,e){Object.defineProperty(a,"__esModule",{value:!0}),a.highlighterMapping_=a.addEvents=a.highlighter=void 0;const r=e(6937),s=e(8396),n=e(933),o=e(2598),i=e(4500),l=e(7071),c=e(4346),u=e(2222);a.highlighter=function(t,e,r){const n=new s.ColorPicker(t,e),o="NativeMML"===r.renderer&&"Safari"===r.browser?"MML-CSS":"SVG"===r.renderer&&"v3"===r.browser?"SVG-V3":r.renderer,i=new(a.highlighterMapping_[o]||a.highlighterMapping_.NativeMML);return i.setColor(n),i},a.addEvents=function(t,e,r){const n=a.highlighterMapping_[r.renderer];n&&(new n).addEvents(t,e)},a.highlighterMapping_={SVG:c.SvgHighlighter,"SVG-V3":u.SvgV3Highlighter,NativeMML:l.MmlHighlighter,"HTML-CSS":o.HtmlHighlighter,"MML-CSS":i.MmlCssHighlighter,CommonHTML:n.CssHighlighter,CHTML:r.ChtmlHighlighter}},2598:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.HtmlHighlighter=void 0;const a=r(5740),n=r(5105);class o extends n.AbstractHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(t){const e={node:t,foreground:t.style.color,position:t.style.position},r=this.color.rgb();t.style.color=r.foreground,t.style.position="relative";var n=t.bbox;if(n&&n.w){const o=a.createElement("span"),i=parseFloat(t.style.paddingLeft||"0");o.style.backgroundColor=r.background,o.style.opacity=r.alphaback.toString(),o.style.display="inline-block",o.style.height=n.h+n.d+.1+"em",o.style.verticalAlign=-n.d+"em",o.style.marginTop=o.style.marginBottom="-0.05em",o.style.width=n.w+0+"em",o.style.marginLeft=+i+"em",o.style.marginRight=-n.w-i+"em",t.parentNode.insertBefore(o,t),e.box=o}return e}unhighlightNode(t){const e=t.node;e.style.color=t.foreground,e.style.position=t.position,t.box&&t.box.parentNode.removeChild(t.box)}}e.HtmlHighlighter=o},4500:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.MmlCssHighlighter=void 0;class n extends r(933).CssHighlighter{constructor(){super(),this.mactionName="maction"}getMactionNodes(t){return Array.from(t.getElementsByTagName(this.mactionName))}isMactionNode(t){return t.tagName===this.mactionName}}e.MmlCssHighlighter=n},7071:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.MmlHighlighter=void 0;class n extends r(5105).AbstractHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(t){var e=t.getAttribute("style"),e=(e+=";background-color: "+this.colorString().background)+(";color: "+this.colorString().foreground);return t.setAttribute("style",e),{node:t}}unhighlightNode(t){let e=t.node.getAttribute("style");e=(e=e.replace(";background-color: "+this.colorString().background,"")).replace(";color: "+this.colorString().foreground,""),t.node.setAttribute("style",e)}colorString(){return this.color.rgba()}getMactionNodes(t){return Array.from(t.getElementsByTagName(this.mactionName))}isMactionNode(t){return t.tagName===this.mactionName}}e.MmlHighlighter=n},4346:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SvgHighlighter=void 0;const i=r(5740),a=r(5105);class n extends a.AbstractHighlighter{constructor(){super(),this.mactionName="mjx-svg-maction"}highlightNode(t){let e;if(this.isHighlighted(t))return e={node:t.previousSibling||t,background:t.style.backgroundColor,foreground:t.style.color};if("svg"===t.tagName){const e={node:t,background:t.style.backgroundColor,foreground:t.style.color};return t.style.backgroundColor=this.colorString().background,t.style.color=this.colorString().foreground,e}const r=i.createElementNS("http://www.w3.org/2000/svg","rect");let n;if("use"===t.nodeName){const e=i.createElementNS("http://www.w3.org/2000/svg","g");t.parentNode.insertBefore(e,t),e.appendChild(t),n=e.getBBox(),e.parentNode.replaceChild(t,e)}else n=t.getBBox();r.setAttribute("x",(n.x-40).toString()),r.setAttribute("y",(n.y-40).toString()),r.setAttribute("width",(n.width+80).toString()),r.setAttribute("height",(n.height+80).toString());var o=t.getAttribute("transform");return o&&r.setAttribute("transform",o),r.setAttribute("fill",this.colorString().background),r.setAttribute(a.AbstractHighlighter.ATTR,"true"),t.parentNode.insertBefore(r,t),e={node:r,foreground:t.getAttribute("fill")},t.setAttribute("fill",this.colorString().foreground),e}setHighlighted(t){"svg"===t.tagName&&super.setHighlighted(t)}unhighlightNode(t){if("background"in t)return t.node.style.backgroundColor=t.background,void(t.node.style.color=t.foreground);t.foreground?t.node.nextSibling.setAttribute("fill",t.foreground):t.node.nextSibling.removeAttribute("fill"),t.node.parentNode.removeChild(t.node)}isMactionNode(t){let e=t.className||t.getAttribute("class");return!!(e=void 0!==e.baseVal?e.baseVal:e)&&!!e.match(new RegExp(this.mactionName))}}e.SvgHighlighter=n},2222:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SvgV3Highlighter=void 0;const o=r(5740),n=r(5274),i=r(5105),a=r(8396),s=r(4346);class l extends s.SvgHighlighter{constructor(){super(),this.mactionName="maction"}highlightNode(t){let e;if(this.isHighlighted(t))return e={node:t,background:this.colorString().background,foreground:this.colorString().foreground};if("svg"===t.tagName||"MJX-CONTAINER"===t.tagName)return e={node:t,background:t.style.backgroundColor,foreground:t.style.color},t.style.backgroundColor=this.colorString().background,t.style.color=this.colorString().foreground,e;const r=o.createElementNS("http://www.w3.org/2000/svg","rect");r.setAttribute("sre-highlighter-added","true");var n=t.getBBox(),n=(r.setAttribute("x",(n.x-40).toString()),r.setAttribute("y",(n.y-40).toString()),r.setAttribute("width",(n.width+80).toString()),r.setAttribute("height",(n.height+80).toString()),t.getAttribute("transform"));if(n&&r.setAttribute("transform",n),r.setAttribute("fill",this.colorString().background),t.setAttribute(i.AbstractHighlighter.ATTR,"true"),t.parentNode.insertBefore(r,t),e={node:t,foreground:t.getAttribute("fill")},"rect"===t.nodeName){const e=new a.ColorPicker({alpha:0,color:"black"});t.setAttribute("fill",e.rgba().foreground)}else t.setAttribute("fill",this.colorString().foreground);return e}unhighlightNode(t){const e=t.node.previousSibling;if(e&&e.hasAttribute("sre-highlighter-added"))return t.foreground?t.node.setAttribute("fill",t.foreground):t.node.removeAttribute("fill"),void t.node.parentNode.removeChild(e);t.node.style.backgroundColor=t.background,t.node.style.color=t.foreground}isMactionNode(t){return t.getAttribute("data-mml-node")===this.mactionName}getMactionNodes(t){return Array.from(n.evalXPath(`.//*[@data-mml-node="${this.mactionName}"]`,t))}}e.SvgV3Highlighter=l},7222:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.StaticTrieNode=e.AbstractTrieNode=void 0;const n=r(2057),o=r(4391);class i{constructor(t,e){this.constraint=t,this.test=e,this.children_={},this.kind=o.TrieNodeKind.ROOT}getConstraint(){return this.constraint}getKind(){return this.kind}applyTest(t){return this.test(t)}addChild(t){var e=t.getConstraint(),r=this.children_[e];return this.children_[e]=t,r}getChild(t){return this.children_[t]}getChildren(){const t=[];for(const e in this.children_)t.push(this.children_[e]);return t}findChildren(t){const e=[];for(const r in this.children_){const n=this.children_[r];n.applyTest(t)&&e.push(n)}return e}removeChild(t){delete this.children_[t]}toString(){return this.constraint}}e.AbstractTrieNode=i,e.StaticTrieNode=class extends i{constructor(t,e){super(t,e),this.rule_=null,this.kind=o.TrieNodeKind.STATIC}getRule(){return this.rule_}setRule(t){this.rule_&&n.Debugger.getInstance().output("Replacing rule "+this.rule_+" with "+t),this.rule_=t}toString(){return this.getRule()?this.constraint+"\n==> "+this.getRule().action:this.constraint}}},4508:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Trie=void 0;const a=r(4391),i=r(9701);class s{constructor(){this.root=(0,i.getNode)(a.TrieNodeKind.ROOT,"",null)}static collectRules_(t){const e=[];let r=[t];for(;r.length;){const t=r.shift();if(t.getKind()===a.TrieNodeKind.QUERY||t.getKind()===a.TrieNodeKind.BOOLEAN){const r=t.getRule();r&&e.unshift(r)}r=r.concat(t.getChildren())}return e}static printWithDepth_(t,r,n){n+=new Array(r+2).join(r.toString())+": "+t.toString()+"\n";var o=t.getChildren();for(let t,e=0;t=o[e];e++)n=s.printWithDepth_(t,r+1,n);return n}static order_(t){const e=t.getChildren();if(!e.length)return 0;t=Math.max.apply(null,e.map(s.order_));return Math.max(e.length,t)}addRule(t){let r=this.root;var n=t.context,o=t.dynamicCstr.getValues();for(let t=0,e=o.length;t<e;t++)r=this.addNode_(r,o[t],a.TrieNodeKind.DYNAMIC,n);r=this.addNode_(r,t.precondition.query,a.TrieNodeKind.QUERY,n);var i=t.precondition.constraints;for(let t=0,e=i.length;t<e;t++)r=this.addNode_(r,i[t],a.TrieNodeKind.BOOLEAN,n);r.setRule(t)}lookupRules(e,t){let r=[this.root];const n=[];for(;t.length;){const e=t.shift(),n=[];for(;r.length;)r.shift().getChildren().forEach(t=>{t.getKind()===a.TrieNodeKind.DYNAMIC&&-1===e.indexOf(t.getConstraint())||n.push(t)});r=n.slice()}for(;r.length;){const t=r.shift();if(t.getRule){const e=t.getRule();e&&n.push(e)}const a=t.findChildren(e);r=r.concat(a)}return n}hasSubtrie(r){let n=this.root;for(let t=0,e=r.length;t<e;t++){var o=r[t];if(!(n=n.getChild(o)))return!1}return!0}toString(){return s.printWithDepth_(this.root,0,"")}collectRules(){return s.collectRules_(this.root)}order(){return s.order_(this.root)}enumerate(t){return this.enumerate_(this.root,t)}byConstraint(t){let e=this.root;for(;t.length&&e;){var r=t.shift();e=e.getChild(r)}return e||null}enumerate_(t,r){r=r||{};var n=t.getChildren();for(let t,e=0;t=n[e];e++)t.kind===a.TrieNodeKind.DYNAMIC&&(r[t.getConstraint()]=this.enumerate_(t,r[t.getConstraint()]));return r}addNode_(t,e,r,n){let o=t.getChild(e);return o||(o=(0,i.getNode)(r,e,n),t.addChild(o)),o}}e.Trie=s},4391:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.TrieNodeKind=void 0,(e=e.TrieNodeKind||(e.TrieNodeKind={})).ROOT="root",e.DYNAMIC="dynamic",e.QUERY="query",e.BOOLEAN="boolean",e.STATIC="static"},9701:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanTrieNode=e.QueryTrieNode=e.constraintTest_=e.DynamicTrieNode=e.RootTrieNode=e.getNode=void 0;const y=r(5740),g=r(5274),b=r(2105),v=r(2780),n=r(7222),o=r(7222),i=r(4391);e.getNode=function(t,e,r){switch(t){case i.TrieNodeKind.ROOT:return new a;case i.TrieNodeKind.DYNAMIC:return new s(e);case i.TrieNodeKind.QUERY:return new c(e,r);case i.TrieNodeKind.BOOLEAN:return new u(e,r);default:return null}};class a extends n.AbstractTrieNode{constructor(){super("",()=>!0),this.kind=i.TrieNodeKind.ROOT}}e.RootTrieNode=a;class s extends n.AbstractTrieNode{constructor(e){super(e,t=>t===e),this.kind=i.TrieNodeKind.DYNAMIC}}e.DynamicTrieNode=s;const _={"=":(t,e)=>t===e,"!=":(t,e)=>t!==e,"<":(t,e)=>t<e,">":(t,e)=>e<t,"<=":(t,e)=>t<=e,">=":(t,e)=>e<=t};function l(t){if(t.match(/^self::\*$/))return t=>!0;if(t.match(/^self::\w+$/)){const e=t.slice(6).toUpperCase();return t=>t.tagName&&y.tagName(t)===e}if(t.match(/^self::\w+:\w+$/)){const r=t.split(":"),n=g.resolveNameSpace(r[2]);if(!n)return null;const y=r[3].toUpperCase();return t=>t.localName&&t.localName.toUpperCase()===y&&t.namespaceURI===n}if(t.match(/^@\w+$/)){const o=t.slice(1);return t=>t.hasAttribute&&t.hasAttribute(o)}if(t.match(/^@\w+="[\w\d ]+"$/)){const i=t.split("="),a=i[0].slice(1),y=i[1].slice(1,-1);return t=>t.hasAttribute&&t.hasAttribute(a)&&t.getAttribute(a)===y}if(t.match(/^@\w+!="[\w\d ]+"$/)){const s=t.split("!="),l=s[0].slice(1),y=s[1].slice(1,-1);return t=>!t.hasAttribute||!t.hasAttribute(l)||t.getAttribute(l)!==y}if(t.match(/^contains\(\s*@grammar\s*,\s*"[\w\d ]+"\s*\)$/)){const c=t.split('"')[1];return t=>!!b.Grammar.getInstance().getParameter(c)}if(t.match(/^not\(\s*contains\(\s*@grammar\s*,\s*"[\w\d ]+"\s*\)\s*\)$/)){const u=t.split('"')[1];return t=>!b.Grammar.getInstance().getParameter(u)}if(t.match(/^name\(\.\.\/\.\.\)="\w+"$/)){const p=t.split('"')[1].toUpperCase();return t=>{var e;return(null==(e=null==(e=t.parentNode)?void 0:e.parentNode)?void 0:e.tagName)&&y.tagName(t.parentNode.parentNode)===p}}if(t.match(/^count\(preceding-sibling::\*\)=\d+$/)){const h=t.split("="),d=parseInt(h[1],10);return t=>{var e;return(null==(e=t.parentNode)?void 0:e.childNodes[d])===t}}if(t.match(/^.+\[@category!?=".+"\]$/)){let[,r,n,o]=t.match(/^(.+)\[@category(!?=)"(.+)"\]$/);const b=o.match(/^unit:(.+)$/);let i="";return b&&(o=b[1],i=":unit"),t=>{var e=g.evalXPath(r,t)[0];if(e){const t=v.lookupCategory(e.textContent+i);return"="===n?t===o:t!==o}return!1}}if(t.match(/^string-length\(.+\)\W+\d+/)){const[,f,m,y]=t.match(/^string-length\((.+)\)(\W+)(\d+)/),b=_[m]||_["="],v=parseInt(y,10);return t=>{t=g.evalXPath(f,t)[0];return!!t&&b(Array.from(t.textContent).length,v)}}return null}e.constraintTest_=l;class c extends o.StaticTrieNode{constructor(t,e){super(t,l(t)),this.context=e,this.kind=i.TrieNodeKind.QUERY}applyTest(t){return this.test?this.test(t):this.context.applyQuery(t,this.constraint)===t}}e.QueryTrieNode=c;class u extends o.StaticTrieNode{constructor(t,e){super(t,l(t)),this.context=e,this.kind=i.TrieNodeKind.BOOLEAN}applyTest(t){return this.test?this.test(t):this.context.applyConstraint(t,this.constraint)}}e.BooleanTrieNode=u},7491:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.completeLocale=i.getLocale=i.setLocale=i.locales=void 0;const a=e(5897),r=e(1377),s=e(2105),n=e(4249),o=e(8657),l=e(173),c=e(9393),u=e(7978),p=e(5540),h=e(5218),d=e(3887),f=e(8384),m=e(7206),y=e(7734),g=e(7264),b=e(4356);function v(){var t=r.Variables.ensureLocale(a.default.getInstance().locale,a.default.getInstance().defaultLocale);return a.default.getInstance().locale=t,i.locales[t]()}i.locales={ca:n.ca,da:o.da,de:l.de,en:c.en,es:u.es,fr:p.fr,hi:h.hi,it:d.it,nb:f.nb,nn:y.nn,sv:g.sv,nemeth:m.nemeth},i.setLocale=function(){var t,e,r=v();if(t=r,e=a.default.getInstance().subiso,-1===t.SUBISO.all.indexOf(e)&&(a.default.getInstance().subiso=t.SUBISO.default),t.SUBISO.current=a.default.getInstance().subiso,r){for(const i of Object.getOwnPropertyNames(r))b.LOCALE[i]=r[i];for(var[n,o]of Object.entries(r.CORRECTIONS))s.Grammar.getInstance().setCorrection(n,o)}},i.getLocale=v,i.completeLocale=function(t){const e=i.locales[t.locale];if(e){var r=t.kind.toUpperCase(),n=t.messages;if(n){const o=e();for(const[t,i]of Object.entries(n))o[r][t]=i}}else console.error("Locale "+t.locale+" does not exist!")}},4356:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.createLocale=e.LOCALE=void 0;const n=r(7549);function o(){return{FUNCTIONS:(0,n.FUNCTIONS)(),MESSAGES:(0,n.MESSAGES)(),ALPHABETS:(0,n.ALPHABETS)(),NUMBERS:(0,n.NUMBERS)(),COMBINERS:{},CORRECTIONS:{},SUBISO:(0,n.SUBISO)()}}e.LOCALE=o(),e.createLocale=o},2536:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.localeFontCombiner=e.extractString=e.localEnclose=e.localRole=e.localFont=e.combinePostfixIndex=e.nestingToString=void 0;const n=r(4356),o=r(4977);function i(t,e){return void 0===t?e:"string"==typeof t?t:t[0]}e.nestingToString=function(t){switch(t){case 1:return n.LOCALE.MESSAGES.MS.ONCE||"";case 2:return n.LOCALE.MESSAGES.MS.TWICE;default:return t.toString()}},e.combinePostfixIndex=function(t,e){return t===n.LOCALE.MESSAGES.MS.ROOTINDEX||t===n.LOCALE.MESSAGES.MS.INDEX?t:t+" "+e},e.localFont=function(t){return i(n.LOCALE.MESSAGES.font[t],t)},e.localRole=function(t){return i(n.LOCALE.MESSAGES.role[t],t)},e.localEnclose=function(t){return i(n.LOCALE.MESSAGES.enclose[t],t)},e.extractString=i,e.localeFontCombiner=function(t){return"string"==typeof t?{font:t,combiner:n.LOCALE.ALPHABETS.combiner}:{font:t[0],combiner:n.LOCALE.COMBINERS[t[1]]||o.Combiners[t[1]]||n.LOCALE.ALPHABETS.combiner}}},4249:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.ca=void 0;function n(t,e,r){return t="sans serif "+(r?r+" "+t:t),e?t+" "+e:t}const o=r(4356),i=r(2536),a=r(614),s=r(4977);let l=null;e.ca=function(){return l=l||function(){const t=(0,o.createLocale)();return t.NUMBERS=a.default,t.COMBINERS.sansserif=n,t.FUNCTIONS.fracNestDepth=t=>!1,t.FUNCTIONS.combineRootIndex=i.combinePostfixIndex,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>t+r,t.FUNCTIONS.fontRegexp=t=>RegExp("^"+t+" "),t.FUNCTIONS.plural=t=>/.*os$/.test(t)?t+"sos":/.*s$/.test(t)?t+"os":/.*ga$/.test(t)?t.slice(0,-2)+"gues":/.*\xe7a$/.test(t)?t.slice(0,-2)+"ces":/.*ca$/.test(t)?t.slice(0,-2)+"ques":/.*ja$/.test(t)?t.slice(0,-2)+"ges":/.*qua$/.test(t)?t.slice(0,-3)+"qües":/.*a$/.test(t)?t.slice(0,-1)+"es":/.*(e|i)$/.test(t)?t+"ns":/.*\xed$/.test(t)?t.slice(0,-1)+"ins":t+"s",t.FUNCTIONS.si=(t,e)=>(t=e.match(/^metre/)?t.replace(/a$/,"à").replace(/o$/,"ò").replace(/i$/,"í"):t)+e,t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t}()}},8657:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.da=void 0;const n=r(4356),o=r(2536),i=r(3866),a=r(4977);let s=null;e.da=function(){return s=s||function(){const e=(0,n.createLocale)();return e.NUMBERS=i.default,e.FUNCTIONS.radicalNestDepth=o.nestingToString,e.FUNCTIONS.fontRegexp=t=>t===e.ALPHABETS.capPrefix.default?RegExp("^"+t+" "):RegExp(" "+t+"$"),e.ALPHABETS.combiner=a.Combiners.postfixCombiner,e.ALPHABETS.digitTrans.default=i.default.numberToWords,e}()}},173:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.de=void 0;function n(t,e,r){return"s"===r&&(e=e.split(" ").map(function(t){return t.replace(/s$/,"")}).join(" "),r=""),t=r?r+" "+t:t,e?e+" "+t:t}function o(t,e,r){return t=r&&"s"!==r?r+" "+t:t,e?t+" "+e:t}const i=r(2105),a=r(2536),s=r(4356),l=r(1435);let c=null;e.de=function(){return c=c||function(){const e=(0,s.createLocale)();return e.NUMBERS=l.default,e.COMBINERS.germanPostfix=o,e.ALPHABETS.combiner=n,e.FUNCTIONS.radicalNestDepth=t=>1<t?e.NUMBERS.numberToWords(t)+"fach":"",e.FUNCTIONS.combineRootIndex=(t,e)=>{return t.replace("Wurzel",e?e+"wurzel":"")},e.FUNCTIONS.combineNestedRadical=(t,e,r)=>{e=(e?e+" ":"")+(t=r.match(/exponent$/)?t+"r":t);return r.match(/ /)?r.replace(/ /," "+e+" "):e+" "+r},e.FUNCTIONS.fontRegexp=function(t){return t=t.split(" ").map(function(t){return t.replace(/s$/,"(|s)")}).join(" "),new RegExp("((^"+t+" )|( "+t+"$))")},e.CORRECTIONS.correctOne=t=>t.replace(/^eins$/,"ein"),e.CORRECTIONS.localFontNumber=t=>(0,a.localFont)(t).split(" ").map(function(t){return t.replace(/s$/,"")}).join(" "),e.CORRECTIONS.lowercase=t=>t.toLowerCase(),e.CORRECTIONS.article=t=>{var e=i.Grammar.getInstance().getParameter("case"),r=i.Grammar.getInstance().getParameter("plural");return"dative"===e?{der:"dem",die:r?"den":"der",das:"dem"}[t]:t},e.CORRECTIONS.masculine=t=>"dative"===i.Grammar.getInstance().getParameter("case")?t+"n":t,e}()}},9393:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;const n=r(2105),o=r(4356),i=r(2536),a=r(310),s=r(4977);let l=null;e.en=function(){return l=l||function(){const t=(0,o.createLocale)();return t.NUMBERS=a.default,t.FUNCTIONS.radicalNestDepth=i.nestingToString,t.FUNCTIONS.plural=t=>/.*s$/.test(t)?t:t+"s",t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=a.default.numberToWords,t.CORRECTIONS.article=t=>n.Grammar.getInstance().getParameter("noArticle")?"":t,t}()}},7978:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.es=void 0;function n(t,e,r){return t="sans serif "+(r?r+" "+t:t),e?t+" "+e:t}const o=r(4356),i=r(2536),a=r(4634),s=r(4977);let l=null;e.es=function(){return l=l||function(){const t=(0,o.createLocale)();return t.NUMBERS=a.default,t.COMBINERS.sansserif=n,t.FUNCTIONS.fracNestDepth=t=>!1,t.FUNCTIONS.combineRootIndex=i.combinePostfixIndex,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>t+r,t.FUNCTIONS.fontRegexp=t=>RegExp("^"+t+" "),t.FUNCTIONS.plural=t=>/.*(a|e|i|o|u)$/.test(t)?t+"s":/.*z$/.test(t)?t.slice(0,-1)+"ces":/.*c$/.test(t)?t.slice(0,-1)+"ques":/.*g$/.test(t)?t+"ues":/.*\u00f3n$/.test(t)?t.slice(0,-2)+"ones":t+"es",t.FUNCTIONS.si=(t,e)=>(t=e.match(/^metro/)?t.replace(/a$/,"á").replace(/o$/,"ó").replace(/i$/,"í"):t)+e,t.ALPHABETS.combiner=s.Combiners.prefixCombiner,t}()}},5540:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.fr=void 0;const n=r(2105),o=r(4356),i=r(2536),a=r(2350),s=r(4977);let l=null;e.fr=function(){return l=l||function(){const t=(0,o.createLocale)();return t.NUMBERS=a.default,t.FUNCTIONS.radicalNestDepth=i.nestingToString,t.FUNCTIONS.combineRootIndex=i.combinePostfixIndex,t.FUNCTIONS.combineNestedFraction=(t,e,r)=>r.replace(/ $/g,"")+e+t,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>r+" "+t,t.FUNCTIONS.fontRegexp=t=>RegExp(" (en |)"+t+"$"),t.FUNCTIONS.plural=t=>/.*s$/.test(t)?t:t+"s",t.CORRECTIONS.article=t=>n.Grammar.getInstance().getParameter("noArticle")?"":t,t.ALPHABETS.combiner=s.Combiners.romanceCombiner,t.SUBISO={default:"fr",current:"fr",all:["fr","be","ch"]},t}()}},5218:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.hi=void 0;const n=r(4356),o=r(4438),i=r(4977),a=r(2536);let s=null;e.hi=function(){return s=s||function(){const t=(0,n.createLocale)();return t.NUMBERS=o.default,t.ALPHABETS.combiner=i.Combiners.prefixCombiner,t.FUNCTIONS.radicalNestDepth=a.nestingToString,t}()}},3887:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.it=void 0;function n(t,e,r){return t.match(/^[a-zA-Z]$/)&&(e=e.replace("cerchiato","cerchiata")),t=r?t+" "+r:t,e?t+" "+e:t}const o=r(2536),i=r(4356),a=r(8825),s=r(4977);let l=null;e.it=function(){return l=l||function(){const t=(0,i.createLocale)();return t.NUMBERS=a.default,t.COMBINERS.italianPostfix=n,t.FUNCTIONS.radicalNestDepth=o.nestingToString,t.FUNCTIONS.combineRootIndex=o.combinePostfixIndex,t.FUNCTIONS.combineNestedFraction=(t,e,r)=>r.replace(/ $/g,"")+e+t,t.FUNCTIONS.combineNestedRadical=(t,e,r)=>r+" "+t,t.FUNCTIONS.fontRegexp=t=>RegExp(" (en |)"+t+"$"),t.ALPHABETS.combiner=s.Combiners.romanceCombiner,t}()}},8384:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.nb=void 0;const n=r(4356),o=r(2536),i=r(8274),a=r(4977);let s=null;e.nb=function(){return s=s||function(){const t=(0,n.createLocale)();return t.NUMBERS=i.default,t.ALPHABETS.combiner=a.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=i.default.numberToWords,t.FUNCTIONS.radicalNestDepth=o.nestingToString,t}()}},7206:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.nemeth=void 0;function n(t){return t.match(RegExp("^"+h.ALPHABETS.languagePrefix.english))?t.slice(1):t}function o(t,e,r){return t=n(t),e?t+e:t}function i(t,e,r){return e+n(t)}function a(t,e,r){return e+(r||"")+n(t)+"⠻"}function s(t,e,r){return e+(r||"")+n(t)+"⠻⠻"}function l(t,e,r){return e+n(t)+"⠾"}const c=r(4356),u=r(3720),p=r(4977);let h=null;e.nemeth=function(){return h=h||function(){const t=(0,c.createLocale)();return t.NUMBERS=u.default,t.COMBINERS={postfixCombiner:o,germanCombiner:i,embellishCombiner:a,doubleEmbellishCombiner:s,parensCombiner:l},t.FUNCTIONS.fracNestDepth=t=>!1,t.FUNCTIONS.fontRegexp=t=>RegExp("^"+t),t.FUNCTIONS.si=p.identityTransformer,t.ALPHABETS.combiner=(t,e,r)=>e?e+r+t:n(t),t.ALPHABETS.digitTrans={default:u.default.numberToWords},t}()}},7734:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.nn=void 0;const n=r(4356),o=r(2536),i=r(8274),a=r(4977);let s=null;e.nn=function(){return s=s||function(){const t=(0,n.createLocale)();return t.NUMBERS=i.default,t.ALPHABETS.combiner=a.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=i.default.numberToWords,t.FUNCTIONS.radicalNestDepth=o.nestingToString,t.SUBISO={default:"",current:"",all:["","alt"]},t}()}},7264:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.sv=void 0;const n=r(4356),o=r(2536),i=r(3898),a=r(4977);let s=null;e.sv=function(){return s=s||function(){const t=(0,n.createLocale)();return t.NUMBERS=i.default,t.FUNCTIONS.radicalNestDepth=o.nestingToString,t.FUNCTIONS.fontRegexp=function(t){return new RegExp("((^"+t+" )|( "+t+"$))")},t.ALPHABETS.combiner=a.Combiners.prefixCombiner,t.ALPHABETS.digitTrans.default=i.default.numberToWords,t.CORRECTIONS.correctOne=t=>t.replace(/^ett$/,"en"),t}()}},7549:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SUBISO=e.FUNCTIONS=e.ALPHABETS=e.NUMBERS=e.MESSAGES=void 0;const n=r(4977);e.MESSAGES=function(){return{MS:{},MSroots:{},font:{},embellish:{},role:{},enclose:{},navigate:{},regexp:{},unitTimes:""}},e.NUMBERS=function(){return{zero:"zero",ones:[],tens:[],large:[],special:{},wordOrdinal:n.identityTransformer,numericOrdinal:n.identityTransformer,numberToWords:n.identityTransformer,numberToOrdinal:n.pluralCase,vulgarSep:" ",numSep:" "}},e.ALPHABETS=function(){return{latinSmall:[],latinCap:[],greekSmall:[],greekCap:[],capPrefix:{default:""},smallPrefix:{default:""},digitPrefix:{default:""},languagePrefix:{},digitTrans:{default:n.identityTransformer,mathspeak:n.identityTransformer,clearspeak:n.identityTransformer},letterTrans:{default:n.identityTransformer},combiner:(t,e,r)=>t}},e.FUNCTIONS=function(){return{fracNestDepth:t=>n.vulgarFractionSmall(t,10,100),radicalNestDepth:t=>"",combineRootIndex:function(t,e){return t},combineNestedFraction:n.Combiners.identityCombiner,combineNestedRadical:n.Combiners.identityCombiner,fontRegexp:function(t){return new RegExp("^"+t.split(/ |-/).join("( |-)")+"( |-)")},si:n.siCombiner,plural:n.identityTransformer}},e.SUBISO=function(){return{default:"",current:"",all:[]}}},614:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const n=r(2105);function o(t){const n=t%1e3,e=Math.floor(n/100),r=e?1===e?"cent":s.ones[e]+"-cents":"",o=function(){var t=n%100%100;if(t<20)return s.ones[t];var e=Math.floor(t/10),r=s.tens[e],t=s.ones[t%10];return r&&t?r+(2===e?"-i-":"-")+t:r||t}();return r&&o?r+s.numSep+o:r||o}function i(t){if(0===t)return s.zero;if(t>=Math.pow(10,36))return t.toString();let e=0,r="";for(;0<t;){var n=t%(1<e?1e6:1e3);if(n){let t=s.large[e];if(e)if(1===e)r=(1==n?"":o(n)+s.numSep)+t+(r?s.numSep+r:"");else{const e=i(n);t=1==n?t:t.replace(/\u00f3$/,"ons"),r=e+s.numSep+t+(r?s.numSep+r:"")}else r=o(n)}t=Math.floor(t/(1<e?1e6:1e3)),e++}return r}function a(t){var e=n.Grammar.getInstance().getParameter("gender");return t.toString()+("f"===e?"a":"n")}const s=(0,r(7549).NUMBERS)();s.numericOrdinal=a,s.numberToWords=i,s.numberToOrdinal=function(t,e){if(1999<t)return a(t);if(t<=10)return s.special.onesOrdinals[t-1];const r=i(t);return r.match(/mil$/)?r.replace(/mil$/,"mil·lèsima"):r.match(/u$/)?r.replace(/u$/,"vena"):r.match(/a$/)?r.replace(/a$/,"ena"):r+(r.match(/e$/)?"na":"ena")},e.default=s},3866:function(t,e,r){function i(t,e=!1){return t===s.ones[1]?e?"et":"en":t}function a(t,e=!1){let r=t%1e3,n="",o=s.ones[Math.floor(r/100)];if(n+=o?i(o,!0)+" hundrede":"",r%=100)if(n+=n?" og ":"",o=(e?s.special.smallOrdinals:s.ones)[r])n+=o;else{const t=(e?s.special.tensOrdinals:s.tens)[Math.floor(r/10)];o=s.ones[r%10],n+=o?i(o)+"og"+t:t}return n}function n(t,e=!1){if(0===t)return s.zero;if(t>=Math.pow(10,36))return t.toString();let r=0,n="";for(;0<t;){var o=t%1e3;if(o){const t=a(o,e&&!r);if(r){const e=s.large[r],a=1<o?"er":"";n=i(t,r<=1)+" "+e+a+(n?" og ":"")+n}else n=i(t)+n}t=Math.floor(t/1e3),r++}return n}function o(t){if(t%100)return n(t,!0);const e=n(t);return e.match(/e$/)?e:e+"e"}Object.defineProperty(e,"__esModule",{value:!0});const s=(0,r(7549).NUMBERS)();s.wordOrdinal=o,s.numericOrdinal=function(t){return t.toString()+"."},s.numberToWords=n,s.numberToOrdinal=function(t,e){return 1===t?e?"hel":"hele":2===t?e?"halv":"halve":o(t)+(e?"dele":"del")},e.default=s},1435:function(t,e,r){function i(t,e=!1){return t===s.ones[1]?e?"eine":"ein":t}function a(t){let e=t%1e3,r="",n=s.ones[Math.floor(e/100)];if(r+=n?i(n)+"hundert":"",e%=100)if(r+=r?s.numSep:"",n=s.ones[e])r+=n;else{const t=s.tens[Math.floor(e/10)];n=s.ones[e%10],r+=n?i(n)+"und"+t:t}return r}function n(t){if(0===t)return s.zero;if(t>=Math.pow(10,36))return t.toString();let e=0,r="";for(;0<t;){var n=t%1e3;if(n){var o=a(t%1e3);if(e){const t=s.large[e],a=1<e&&1<n?t.match(/e$/)?"n":"en":"";r=i(o,1<e)+t+a+r}else r=i(o,1<e)+r}t=Math.floor(t/1e3),e++}return r.replace(/ein$/,"eins")}function o(t){return 1===t?"erste":3===t?"dritte":7===t?"siebte":8===t?"achte":n(t)+(t<19?"te":"ste")}Object.defineProperty(e,"__esModule",{value:!0});const s=(0,r(7549).NUMBERS)();s.wordOrdinal=o,s.numericOrdinal=function(t){return t.toString()+"."},s.numberToWords=n,s.numberToOrdinal=function(t,e){return 1===t?"eintel":2===t?e?"halbe":"halb":o(t)+"l"},e.default=s},310:function(t,e,r){function n(t){if(0===t)return i.zero;if(t>=Math.pow(10,36))return t.toString();let e=0,r="";for(;0<t;)t%1e3&&(r=function(t){let e=t%1e3,r="";return r+=i.ones[Math.floor(e/100)]?i.ones[Math.floor(e/100)]+i.numSep+"hundred":"",r=(e%=100)?(r+=r?i.numSep:"")+(i.ones[e]||i.tens[Math.floor(e/10)]+(e%10?i.numSep+i.ones[e%10]:"")):r}(t%1e3)+(e?"-"+i.large[e]+"-":"")+r),t=Math.floor(t/1e3),e++;return r.replace(/-$/,"")}function o(t){let e=n(t);return e.match(/one$/)?e=e.slice(0,-3)+"first":e.match(/two$/)?e=e.slice(0,-3)+"second":e.match(/three$/)?e=e.slice(0,-5)+"third":e.match(/five$/)?e=e.slice(0,-4)+"fifth":e.match(/eight$/)?e=e.slice(0,-5)+"eighth":e.match(/nine$/)?e=e.slice(0,-4)+"ninth":e.match(/twelve$/)?e=e.slice(0,-6)+"twelfth":e.match(/ty$/)?e=e.slice(0,-2)+"tieth":e+="th",e}Object.defineProperty(e,"__esModule",{value:!0});const i=(0,r(7549).NUMBERS)();i.wordOrdinal=o,i.numericOrdinal=function(t){var e=t%100,r=t.toString();if(10<e&&e<20)return r+"th";switch(t%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd";default:return r+"th"}},i.numberToWords=n,i.numberToOrdinal=function(t,e){if(1===t)return e?"oneths":"oneth";if(2===t)return e?"halves":"half";t=o(t);return e?t+"s":t},e.default=i},4634:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const n=r(2105);function i(t){const r=t%1e3,e=Math.floor(r/100),n=a.special.hundreds[e],o=function(){var t=r%100%100;if(t<30)return a.ones[t];var e=a.tens[Math.floor(t/10)],t=a.ones[t%10];return e&&t?e+" y "+t:e||t}();return 1===e?o?n+"to "+o:n:n&&o?n+" "+o:n||o}const a=(0,r(7549).NUMBERS)();a.numericOrdinal=function(t){var e=n.Grammar.getInstance().getParameter("gender");return t.toString()+("f"===e?"a":"o")},a.numberToWords=function(t){if(0===t)return a.zero;if(t>=Math.pow(10,36))return t.toString();let e=0,r="";for(;0<t;){var n=t%1e3;if(n){let t=a.large[e];var o=i(n);r=e?1==n?(t=t.match("/^mil( |$)/")?t:"un "+t)+(r?" "+r:""):(t=t.replace(/\u00f3n$/,"ones"),i(n)+" "+t+(r?" "+r:"")):o}t=Math.floor(t/1e3),e++}return r},a.numberToOrdinal=function(t,e){if(1999<t)return t.toString()+"a";if(t<=12)return a.special.onesOrdinals[t-1];const r=[];if(1e3<=t&&(t-=1e3,r.push("milésima")),!t)return r.join(" ");let n=0;return 0<(n=Math.floor(t/100))&&(r.push(a.special.hundredsOrdinals[n-1]),t%=100),t<=12?r.push(a.special.onesOrdinals[t-1]):(0<(n=Math.floor(t/10))&&(r.push(a.special.tensOrdinals[n-1]),t%=10),0<t&&r.push(a.special.onesOrdinals[t-1])),r.join(" ")},e.default=a},2350:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const o=r(5897),n=r(2105),i=r(7549);function a(t){if(0===t)return c.zero;if(t>=Math.pow(10,36))return t.toString();c.special["tens-"+o.default.getInstance().subiso]&&(c.tens=c.special["tens-"+o.default.getInstance().subiso]);let e=0,r="";for(;0<t;){const o=t%1e3;if(o){let t=c.large[e];var n=function(t){let e=t%1e3,r="";if(r+=c.ones[Math.floor(e/100)]?c.ones[Math.floor(e/100)]+"-cent":"",e%=100){r+=r?"-":"";let t=c.ones[e];if(t)r+=t;else{const n=c.tens[Math.floor(e/10)];n.match(/-dix$/)?(t=c.ones[e%10+10],r+=n.replace(/-dix$/,"")+"-"+t):r+=n+(e%10?"-"+c.ones[e%10]:"")}}const n=r.match(/s-\w+$/);return n?r.replace(/s-\w+$/,n[0].slice(1)):r.replace(/-un$/,"-et-un")}(o);if(t&&t.match(/^mille /)){const o=t.replace(/^mille /,"");r=r.match(RegExp(o))?n+(e?"-mille-":"")+r:r.match(RegExp(o.replace(/s$/,"")))?n+(e?"-mille-":"")+r.replace(o.replace(/s$/,""),o):n+(e?"-"+t+"-":"")+r}else t=1==o&&t?t.replace(/s$/,""):t,r=n+(e?"-"+t+"-":"")+r}t=Math.floor(t/1e3),e++}return r.replace(/-$/,"")}const s={1:"unième",2:"demi",3:"tiers",4:"quart"};function l(t){if(1===t)return"première";let e=a(t);return e.match(/^neuf$/)?e=e.slice(0,-1)+"v":e.match(/cinq$/)?e+="u":e.match(/trois$/)?e+="":(e.match(/e$/)||e.match(/s$/))&&(e=e.slice(0,-1)),e+="ième"}const c=(0,i.NUMBERS)();c.wordOrdinal=l,c.numericOrdinal=function(t){var e=n.Grammar.getInstance().getParameter("gender");return 1===t?t.toString()+("m"===e?"er":"re"):t.toString()+"e"},c.numberToWords=a,c.numberToOrdinal=function(t,e){var r=s[t]||l(t);return 3!==t&&e?r+"s":r},e.default=c},4438:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const n=r(2105);function o(r){if(0===r)return a.zero;if(r>=Math.pow(10,32))return r.toString();let t=0,e="";const n=function(){let t=r%1e3%1e3,e="";return e+=a.ones[Math.floor(t/100)]?a.ones[Math.floor(t/100)]+a.numSep+a.special.hundred:"",e=(t%=100)?(e+=e?a.numSep:"")+a.ones[t]:e}();if(!(r=Math.floor(r/1e3)))return n;for(;0<r;){const n=r%100;n&&(e=a.ones[n]+a.numSep+a.large[t]+(e?a.numSep+e:"")),r=Math.floor(r/100),t++}return n?e+a.numSep+n:e}function i(t){var e=n.Grammar.getInstance().getParameter("gender");return t<=0?t.toString():t<10?("f"===e?a.special.ordinalsFeminine:a.special.ordinalsMasculine)[t]:o(t)+("f"===e?"वीं":"वाँ")}const a=(0,r(7549).NUMBERS)();a.wordOrdinal=i,a.numericOrdinal=function(t){var e=n.Grammar.getInstance().getParameter("gender");return 0<t&&t<10?("f"===e?a.special.simpleSmallOrdinalsFeminine:a.special.simpleSmallOrdinalsMasculine)[t]:t.toString().split("").map(function(t){t=parseInt(t,10);return isNaN(t)?"":a.special.simpleNumbers[t]}).join("")+("f"===e?"वीं":"वाँ")},a.numberToWords=o,a.numberToOrdinal=function(t,e){return t<=10?a.special.smallDenominators[t]:i(t)+" अंश"},e.default=a},8825:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const n=r(2105);function o(t){if(0===t)return a.zero;if(t>=Math.pow(10,36))return t.toString();if(1===t&&n.Grammar.getInstance().getParameter("fraction"))return"un";let e=0,r="";for(;0<t;)t%1e3&&(r=function(t){let e=t%1e3,r="";if(r+=a.ones[Math.floor(e/100)]?a.ones[Math.floor(e/100)]+a.numSep+"cento":"",e%=100){r+=r?a.numSep:"";const t=a.ones[e];if(t)r+=t;else{let t=a.tens[Math.floor(e/10)];var n=e%10;1!=n&&8!=n||(t=t.slice(0,-1)),r=(r+=t)+(n?a.numSep+a.ones[e%10]:"")}}return r}(t%1e3)+(e?"-"+a.large[e]+"-":"")+r),t=Math.floor(t/1e3),e++;return r.replace(/-$/,"")}function i(t){var e="m"===n.Grammar.getInstance().getParameter("gender")?"o":"a";let r=a.special.onesOrdinals[t];return r?r.slice(0,-1)+e:(r=o(t)).slice(0,-1)+"esim"+e}const a=(0,r(7549).NUMBERS)();a.wordOrdinal=i,a.numericOrdinal=function(t){var e=n.Grammar.getInstance().getParameter("gender");return t.toString()+("m"===e?"o":"a")},a.numberToWords=o,a.numberToOrdinal=function(t,e){if(2===t)return e?"mezzi":"mezzo";const r=i(t);if(!e)return r;t=r.match(/o$/)?"i":"e";return r.slice(0,-1)+t},e.default=a},3720:function(t,e,r){function n(t){return t.toString().split("").map(function(t){return o.ones[parseInt(t,10)]}).join("")}Object.defineProperty(e,"__esModule",{value:!0});const o=(0,r(7549).NUMBERS)();o.numberToWords=n,o.numberToOrdinal=n,e.default=o},8274:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const n=r(5897);function a(t){var e=s.special.endOrdinal[0];return"a"===e&&t.match(/en$/)?t.slice(0,-2)+s.special.endOrdinal:t.match(/(d|n)$/)||t.match(/hundre$/)?t+"de":t.match(/i$/)?t+s.special.endOrdinal:"a"===e&&t.match(/e$/)?t.slice(0,-1)+s.special.endOrdinal:(t.match(/e$/),t+"nde")}function o(t){return i(t,!0)}const s=(0,r(7549).NUMBERS)();function l(t,e=!1){return t===s.ones[1]?"ein"===t?"eitt ":e?"et":"ett":t}function i(t,e=!1){return("alt"===n.default.getInstance().subiso?function(t,e=!1){if(0===t)return e?s.special.smallOrdinals[0]:s.zero;if(t>=Math.pow(10,36))return t.toString();let r=0,n="";for(;0<t;){var o,i=t%1e3;i&&(o=function(t,e=!1){let r=t%1e3,n="",o=s.ones[Math.floor(r/100)];if(n+=o?l(o)+"hundre":"",r%=100){if(n+=n?"og":"",e){const t=s.special.smallOrdinals[r];if(t)return n+t}if(o=s.ones[r])n+=o;else{const t=s.tens[Math.floor(r/10)];o=s.ones[r%10],n+=o?o+"og"+t:t}}return e?a(n):n}(t%1e3,!r&&e),!r&&e&&(e=!e),n=(1===r?l(o,!0):o)+(1<r?s.numSep:"")+(r?s.large[r]+(1<r&&1<i?"er":""):"")+(1<r&&n?s.numSep:"")+n),t=Math.floor(t/1e3),r++}return e?n+(n.match(/tusen$/)?"de":"te"):n}:function(t,e=!1){if(0===t)return e?s.special.smallOrdinals[0]:s.zero;if(t>=Math.pow(10,36))return t.toString();let r=0,n="";for(;0<t;){var o,i=t%1e3;i&&(o=function(t,e=!1){let r=t%1e3,n="";var t=Math.floor(r/100),o=s.ones[t];if(n+=o?(1===t?"":o)+"hundre":"",r%=100){if(n+=n?"og":"",e){const t=s.special.smallOrdinals[r];if(t)return n+t;if(r%10)return n+s.tens[Math.floor(r/10)]+s.special.smallOrdinals[r%10]}n+=s.ones[r]||s.tens[Math.floor(r/10)]+(r%10?s.ones[r%10]:"")}return e?a(n):n}(t%1e3,!r&&e),!r&&e&&(e=!e),n=o+(r?" "+s.large[r]+(1<r&&1<i?"er":"")+(n?" ":""):"")+n),t=Math.floor(t/1e3),r++}return e?n+(n.match(/tusen$/)?"de":"te"):n})(t,e)}s.wordOrdinal=o,s.numericOrdinal=function(t){return t.toString()+"."},s.numberToWords=i,s.numberToOrdinal=function(t,e){return o(t)},e.default=s},3898:function(t,e,r){function n(t,e=!1){if(0===t)return s.zero;if(t>=Math.pow(10,36))return t.toString();let r=0,n="";for(;0<t;){var o,i,a=t%1e3;a&&(o=s.large[r],i=1<a&&1<r&&!e?"er":"",n=(1===r&&1==a?"":(1<r&&1==a?"en":function(t){let e=t%1e3,r="";return t=Math.floor(e/100),r+=s.ones[t]?(1===t?"":s.ones[t]+s.numSep)+"hundra":"",r=(e%=100)?(r+=r?s.numSep:"")+(s.ones[e]||s.tens[Math.floor(e/10)]+(e%10?s.numSep+s.ones[e%10]:"")):r}(t%1e3))+(1<r?" ":""))+(r?o+i+(1<r?" ":""):"")+n),t=Math.floor(t/1e3),r++}return n.replace(/ $/,"")}function o(t){let e=n(t,!0);return e.match(/^noll$/)?e="nollte":e.match(/ett$/)?e=e.replace(/ett$/,"första"):e.match(/tv\xe5$/)?e=e.replace(/tv\xe5$/,"andra"):e.match(/tre$/)?e=e.replace(/tre$/,"tredje"):e.match(/fyra$/)?e=e.replace(/fyra$/,"fjärde"):e.match(/fem$/)?e=e.replace(/fem$/,"femte"):e.match(/sex$/)?e=e.replace(/sex$/,"sjätte"):e.match(/sju$/)?e=e.replace(/sju$/,"sjunde"):e.match(/\xe5tta$/)?e=e.replace(/\xe5tta$/,"åttonde"):e.match(/nio$/)?e=e.replace(/nio$/,"nionde"):e.match(/tio$/)?e=e.replace(/tio$/,"tionde"):e.match(/elva$/)?e=e.replace(/elva$/,"elfte"):e.match(/tolv$/)?e=e.replace(/tolv$/,"tolfte"):e.match(/tusen$/)?e=e.replace(/tusen$/,"tusonde"):e.match(/jard$/)||e.match(/jon$/)?e+="te":e+="de",e}Object.defineProperty(e,"__esModule",{value:!0});const s=(0,r(7549).NUMBERS)();s.wordOrdinal=o,s.numericOrdinal=function(t){const e=t.toString();return e.match(/11$|12$/)?e+":e":e+(e.match(/1$|2$/)?":a":":e")},s.numberToWords=n,s.numberToOrdinal=function(t,e){if(1===t)return"hel";if(2===t)return e?"halva":"halv";let r=o(t);return(r=r.match(/de$/)?r.replace(/de$/,""):r)+(e?"delar":"del")},e.default=s},4977:function(t,e){function o(t,e=""){if(!t.childNodes||!t.childNodes[0]||!t.childNodes[0].childNodes||t.childNodes[0].childNodes.length<2||"number"!==t.childNodes[0].childNodes[0].tagName||"integer"!==t.childNodes[0].childNodes[0].getAttribute("role")||"number"!==t.childNodes[0].childNodes[1].tagName||"integer"!==t.childNodes[0].childNodes[1].getAttribute("role"))return{convertible:!1,content:t.textContent};var r=t.childNodes[0].childNodes[1].textContent,t=t.childNodes[0].childNodes[0].textContent,n=Number(r),o=Number(t);return isNaN(n)||isNaN(o)?{convertible:!1,content:t+` ${e} `+r}:{convertible:!0,enumerator:o,denominator:n}}Object.defineProperty(e,"__esModule",{value:!0}),e.vulgarFractionSmall=e.convertVulgarFraction=e.Combiners=e.siCombiner=e.identityTransformer=e.pluralCase=void 0,e.pluralCase=function(t,e){return t.toString()},e.identityTransformer=function(t){return t.toString()},e.siCombiner=function(t,e){return t+e.toLowerCase()},e.Combiners={},e.Combiners.identityCombiner=function(t,e,r){return t+e+r},e.Combiners.prefixCombiner=function(t,e,r){return t=r?r+" "+t:t,e?e+" "+t:t},e.Combiners.postfixCombiner=function(t,e,r){return t=r?r+" "+t:t,e?t+" "+e:t},e.Combiners.romanceCombiner=function(t,e,r){return t=r?t+" "+r:t,e?t+" "+e:t},e.convertVulgarFraction=o,e.vulgarFractionSmall=function(t,e,r){var n=o(t);if(n.convertible){const t=n.enumerator,o=n.denominator;return 0<t&&t<e&&0<o&&o<r}return!1}},4504:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Condition=e.BaseRuleStore=void 0;const n=r(7052),o=r(1676),l=r(4650),i=r(4106);class a{constructor(){this.context=new i.SpeechRuleContext,this.parseOrder=o.DynamicCstr.DEFAULT_ORDER,this.parser=new o.DynamicCstrParser(this.parseOrder),this.locale=o.DynamicCstr.DEFAULT_VALUES[o.Axis.LOCALE],this.modality=o.DynamicCstr.DEFAULT_VALUES[o.Axis.MODALITY],this.domain="",this.initialized=!1,this.inherits=null,this.kind="standard",this.customTranscriptions={},this.preconditions=new Map,this.speechRules_=[],this.rank=0,this.parseMethods={Rule:this.defineRule,Generator:this.generateRules,Action:this.defineAction,Precondition:this.definePrecondition,Ignore:this.ignoreRules}}static compareStaticConstraints_(r,n){if(r.length!==n.length)return!1;for(let t,e=0;t=r[e];e++)if(-1===n.indexOf(t))return!1;return!0}static comparePreconditions_(t,e){t=t.precondition,e=e.precondition;return t.query===e.query&&a.compareStaticConstraints_(t.constraints,e.constraints)}defineRule(t,e,r,n,...o){var i=this.parseAction(r),o=this.parsePrecondition(n,o),a=this.parseCstr(e);if(!(i&&o&&a))return console.error(`Rule Error: ${n}, (${e}): `+r),null;const s=new l.SpeechRule(t,a,o,i);return s.precondition.rank=this.rank++,this.addRule(s),s}addRule(t){t.context=this.context,this.speechRules_.unshift(t)}deleteRule(t){t=this.speechRules_.indexOf(t);-1!==t&&this.speechRules_.splice(t,1)}findRule(r){for(let t,e=0;t=this.speechRules_[e];e++)if(r(t))return t;return null}findAllRules(t){return this.speechRules_.filter(t)}evaluateDefault(t){const e=t.textContent.slice(0);return e.match(/^\s+$/)?this.evaluateWhitespace(e):this.evaluateString(e)}evaluateWhitespace(t){return[]}evaluateCustom(t){t=this.customTranscriptions[t];return void 0!==t?n.AuditoryDescription.create({text:t},{adjust:!0,translate:!1}):null}evaluateCharacter(t){return this.evaluateCustom(t)||n.AuditoryDescription.create({text:t},{adjust:!0,translate:!0})}removeDuplicates(r){for(let t,e=this.speechRules_.length-1;t=this.speechRules_[e];e--)t!==r&&r.dynamicCstr.equal(t.dynamicCstr)&&a.comparePreconditions_(t,r)&&this.speechRules_.splice(e,1)}getSpeechRules(){return this.speechRules_}setSpeechRules(t){this.speechRules_=t}getPreconditions(){return this.preconditions}parseCstr(e){try{return this.parser.parse(this.locale+"."+this.modality+(this.domain?"."+this.domain:"")+"."+e)}catch(t){if("RuleError"===t.name)return console.error("Rule Error ",`Illegal Dynamic Constraint: ${e}.`,t.message),null;throw t}}parsePrecondition(e,r){try{const n=this.parsePrecondition_(e);e=n[0];let t=n.slice(1);for(const e of r)t=t.concat(this.parsePrecondition_(e));return new l.Precondition(e,...t)}catch(t){if("RuleError"===t.name)return console.error("Rule Error ",`Illegal preconditions: ${e}, ${r}.`,t.message),null;throw t}}parseAction(e){try{return l.Action.fromString(e)}catch(t){if("RuleError"===t.name)return console.error("Rule Error ",`Illegal action: ${e}.`,t.message),null;throw t}}parse(t){this.modality=t.modality||this.modality,this.locale=t.locale||this.locale,this.domain=t.domain||this.domain,this.context.parse(t.functions||[]),"actions"!==t.kind&&(this.kind=t.kind||this.kind,this.inheritRules()),this.parseRules(t.rules||[])}parseRules(r){for(let t,e=0;t=r[e];e++){const r=t[0],n=this.parseMethods[r];r&&n&&n.apply(this,t.slice(1))}}generateRules(t){const e=this.context.customGenerators.lookup(t);e&&e(this)}defineAction(r,t){let n;try{n=l.Action.fromString(t)}catch(r){if("RuleError"===r.name)return void console.error("Action Error ",t,r.message);throw r}const e=this.getFullPreconditions(r);if(e){this.ignoreRules(r);const o=new RegExp("^\\w+\\.\\w+\\."+(this.domain?"\\w+\\.":""));e.conditions.forEach(([t,e])=>{t=this.parseCstr(t.toString().replace(o,""));this.addRule(new l.SpeechRule(r,t,e,n))})}else console.error("Action Error: No precondition for action "+r)}getFullPreconditions(t){var e=this.preconditions.get(t);return e||!this.inherits?e:this.inherits.getFullPreconditions(t)}definePrecondition(t,e,r,...n){const o=this.parsePrecondition(r,n),i=this.parseCstr(e);o&&i?(o.rank=this.rank++,this.preconditions.set(t,new s(i,o))):console.error(`Precondition Error: ${r}, (${e})`)}inheritRules(){if(this.inherits&&this.inherits.getSpeechRules().length){const r=new RegExp("^\\w+\\.\\w+\\."+(this.domain?"\\w+\\.":""));this.inherits.getSpeechRules().forEach(t=>{var e=this.parseCstr(t.dynamicCstr.toString().replace(r,""));this.addRule(new l.SpeechRule(t.name,e,t.precondition,t.action))})}}ignoreRules(e,...r){let n=this.findAllRules(t=>t.name===e);if(r.length){let t=[];for(const e of r){const r=this.parseCstr(e);for(const e of n)r.equal(e.dynamicCstr)?this.deleteRule(e):t.push(e);n=t,t=[]}}else n.forEach(this.deleteRule.bind(this))}parsePrecondition_(t){const e=this.context.customGenerators.lookup(t);return e?e():[t]}}e.BaseRuleStore=a;class s{constructor(t,e){this.base=t,this._conditions=[],this.constraints=[],this.allCstr={},this.constraints.push(t),this.addCondition(t,e)}get conditions(){return this._conditions}addConstraint(e){if(!this.constraints.filter(t=>t.equal(e)).length){this.constraints.push(e);const n=[];for(var[t,r]of this.conditions)this.base.equal(t)&&n.push([e,r]);this._conditions=this._conditions.concat(n)}}addBaseCondition(t){this.addCondition(this.base,t)}addFullCondition(e){this.constraints.forEach(t=>this.addCondition(t,e))}addCondition(t,e){var r=t.toString()+" "+e.toString();this.allCstr.condStr||(this.allCstr[r]=!0,this._conditions.push([t,e]))}}e.Condition=s},2469:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.BrailleStore=void 0;const n=r(7630),o=r(9935);class i extends o.MathStore{constructor(){super(...arguments),this.modality="braille",this.customTranscriptions={"⋊":"⠈⠡⠳"}}evaluateString(t){const e=[],r=Array.from(t);for(let t=0;t<r.length;t++)e.push(this.evaluateCharacter(r[t]));return e}annotations(){for(let t,e=0;t=this.annotators[e];e++)(0,n.activate)(this.locale,t)}}e.BrailleStore=i},1676:function(t,e){var r,n;Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultComparator=e.DynamicCstrParser=e.DynamicCstr=e.DynamicProperties=e.Axis=void 0,(n=r=e.Axis||(e.Axis={})).DOMAIN="domain",n.STYLE="style",n.LOCALE="locale",n.TOPIC="topic",n.MODALITY="modality";class a{constructor(t,e=Object.keys(t)){this.properties=t,this.order=e}static createProp(...n){const o=s.DEFAULT_ORDER,i={};for(let t=0,e=n.length,r=o.length;t<e&&t<r;t++)i[o[t]]=n[t];return new a(i)}getProperties(){return this.properties}getOrder(){return this.order}getAxes(){return this.order}getProperty(t){return this.properties[t]}updateProperties(t){this.properties=t}allProperties(){const e=[];return this.order.forEach(t=>e.push(this.getProperty(t).slice())),e}toString(){const e=[];return this.order.forEach(t=>e.push(t+": "+this.getProperty(t).toString())),e.join("\n")}}class s extends(e.DynamicProperties=a){constructor(t,e){const r={};for(const[e,n]of Object.entries(t))r[e]=[n];super(r,e),this.components=t}static createCstr(...n){const o=s.DEFAULT_ORDER,i={};for(let t=0,e=n.length,r=o.length;t<e&&t<r;t++)i[o[t]]=n[t];return new s(i)}static defaultCstr(){return s.createCstr.apply(null,s.DEFAULT_ORDER.map(function(t){return s.DEFAULT_VALUES[t]}))}static validOrder(t){const e=s.DEFAULT_ORDER.slice();return t.every(t=>{t=e.indexOf(t);return-1!==t&&e.splice(t,1)})}getComponents(){return this.components}getValue(t){return this.components[t]}getValues(){return this.order.map(t=>this.getValue(t))}allProperties(){const n=super.allProperties();for(let t,e,r=0;t=n[r],e=this.order[r];r++){const n=this.getValue(e);-1===t.indexOf(n)&&t.unshift(n)}return n}toString(){return this.getValues().join(".")}equal(r){const n=r.getAxes();if(this.order.length!==n.length)return!1;for(let t,e=0;t=n[e];e++){const n=this.getValue(t);if(!n||r.getValue(t)!==n)return!1}return!0}}(e.DynamicCstr=s).DEFAULT_ORDER=[r.LOCALE,r.MODALITY,r.DOMAIN,r.STYLE,r.TOPIC],s.BASE_LOCALE="base",s.DEFAULT_VALUE="default",s.DEFAULT_VALUES={[r.LOCALE]:"en",[r.DOMAIN]:s.DEFAULT_VALUE,[r.STYLE]:s.DEFAULT_VALUE,[r.TOPIC]:s.DEFAULT_VALUE,[r.MODALITY]:"speech"},e.DynamicCstrParser=class{constructor(t){this.order=t}parse(t){const r=t.split("."),n={};if(r.length>this.order.length)throw new Error("Invalid dynamic constraint: "+n);let o=0;for(let t,e=0;t=this.order[e],r.length;e++,o++){const o=r.shift();n[t]=o}return new s(n,this.order.slice(0,o))}},e.DefaultComparator=class{constructor(t,e=new a(t.getProperties(),t.getOrder())){this.reference=t,this.fallback=e,this.order=this.reference.getOrder()}getReference(){return this.reference}setReference(t,e){this.reference=t,this.fallback=e||new a(t.getProperties(),t.getOrder()),this.order=this.reference.getOrder()}match(r){const t=r.getAxes();return t.length===this.reference.getAxes().length&&t.every(t=>{var e=r.getValue(t);return e===this.reference.getValue(t)||-1!==this.fallback.getProperty(t).indexOf(e)})}compare(r,n){let o=!1;for(let t,e=0;t=this.order[e];e++){var i=r.getValue(t),a=n.getValue(t);if(!o){const r=this.reference.getValue(t);if(r===i&&r!==a)return-1;if(r===a&&r!==i)return 1;if(r===i&&r===a)continue;r!==i&&r!==a&&(o=!0)}const s=this.fallback.getProperty(t),l=s.indexOf(i),c=s.indexOf(a);if(l<c)return-1;if(c<l)return 1}return 0}toString(){return this.reference.toString()+"\n"+this.fallback.toString()}}},2105:function(t,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.numbersToAlpha=r.Grammar=r.ATTRIBUTE=void 0;const n=e(5740),s=e(5897),o=e(2536),l=e(4356);r.ATTRIBUTE="grammar";class c{constructor(){this.currentFlags={},this.parameters_={},this.corrections_={},this.preprocessors_={},this.stateStack_=[]}static getInstance(){return c.instance=c.instance||new c,c.instance}static parseInput(t){const r={},n=t.split(":");for(let t=0,e=n.length;t<e;t++){const o=n[t].split("="),i=o[0].trim();o[1]?r[i]=o[1].trim():i.match(/^!/)?r[i.slice(1)]=!1:r[i]=!0}return r}static parseState(t){const r={},n=t.split(" ");for(let t=0,e=n.length;t<e;t++){var o=n[t].split(":"),i=o[0],o=o[1];r[i]=o||!0}return r}static translateString_(t){if(t.match(/:unit$/))return c.translateUnit_(t);const e=s.default.getInstance();let r=e.evaluator(t,e.dynamicCstr);return r=null===r?t:r,r=c.getInstance().getParameter("plural")?l.LOCALE.FUNCTIONS.plural(r):r}static translateUnit_(t){t=c.prepareUnit_(t);const e=s.default.getInstance(),r=c.getInstance().getParameter("plural"),n=e.strict,o=`${e.locale}.${e.modality}.default`;let i,a;return e.strict=!0,r&&(i=e.defaultParser.parse(o+".plural"),a=e.evaluator(t,i)),a?(e.strict=n,a):(i=e.defaultParser.parse(o+".default"),a=e.evaluator(t,i),e.strict=n,a?a=r?l.LOCALE.FUNCTIONS.plural(a):a:c.cleanUnit_(t))}static prepareUnit_(t){var e=t.match(/:unit$/);return e?t.slice(0,e.index).replace(/\s+/g," ")+t.slice(e.index):t}static cleanUnit_(t){return t.match(/:unit$/)?t.replace(/:unit$/,""):t}clear(){this.parameters_={},this.stateStack_=[]}setParameter(t,e){var r=this.parameters_[t];return e?this.parameters_[t]=e:delete this.parameters_[t],r}getParameter(t){return this.parameters_[t]}setCorrection(t,e){this.corrections_[t]=e}setPreprocessor(t,e){this.preprocessors_[t]=e}getCorrection(t){return this.corrections_[t]}getState(){const t=[];for(const r in this.parameters_){var e=this.parameters_[r];t.push("string"==typeof e?r+":"+e:r)}return t.join(" ")}pushState(t){for(const e in t)t[e]=this.setParameter(e,t[e]);this.stateStack_.push(t)}popState(){var t=this.stateStack_.pop();for(const e in t)this.setParameter(e,t[e])}setAttribute(t){var e;t&&t.nodeType===n.NodeType.ELEMENT_NODE&&(e=this.getState())&&t.setAttribute(r.ATTRIBUTE,e)}preprocess(t){return this.runProcessors_(t,this.preprocessors_)}correct(t){return this.runProcessors_(t,this.corrections_)}apply(t,e){return this.currentFlags=e||{},t=this.currentFlags.adjust||this.currentFlags.preprocess?c.getInstance().preprocess(t):t,(this.parameters_.translate||this.currentFlags.translate)&&(t=c.translateString_(t)),t=this.currentFlags.adjust||this.currentFlags.correct?c.getInstance().correct(t):t,this.currentFlags={},t}runProcessors_(t,e){for(const n in this.parameters_){const o=e[n];var r;o&&(t=!0===(r=this.parameters_[n])?o(t):o(t,r))}return t}}function i(t,e){if(!e||!t)return t;e=l.LOCALE.FUNCTIONS.fontRegexp(o.localFont(e));return t.replace(e,"")}function a(t){return t.match(/\d+/)?l.LOCALE.NUMBERS.numberToWords(parseInt(t,10)):t}r.Grammar=c,r.numbersToAlpha=a,c.getInstance().setCorrection("localFont",o.localFont),c.getInstance().setCorrection("localRole",o.localRole),c.getInstance().setCorrection("localEnclose",o.localEnclose),c.getInstance().setCorrection("ignoreFont",i),c.getInstance().setPreprocessor("annotation",function(t,e){return t+":"+e}),c.getInstance().setPreprocessor("noTranslateText",function(t){return t.match(new RegExp("^["+l.LOCALE.MESSAGES.regexp.TEXT+"]+$"))&&(c.getInstance().currentFlags.translate=!1),t}),c.getInstance().setCorrection("ignoreCaps",function(t){let e=l.LOCALE.ALPHABETS.capPrefix[s.default.getInstance().domain];return i(t,e=void 0===e?l.LOCALE.ALPHABETS.capPrefix.default:e)}),c.getInstance().setPreprocessor("numbers2alpha",a)},2780:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.enumerate=e.lookupString=e.lookupCategory=e.lookupRule=e.addSiUnitRules=e.addUnitRules=e.addFunctionRules=e.addSymbolRules=e.defineRule=e.defineRules=e.setSiPrefixes=void 0;const n=r(2057),o=r(5897),a=r(7491),i=r(4658),s=r(1676);let l=s.DynamicCstr.DEFAULT_VALUES[s.Axis.LOCALE],c=s.DynamicCstr.DEFAULT_VALUES[s.Axis.MODALITY],u={};e.setSiPrefixes=function(t){u=t};const p={};function h(t,e,r,n){const o=v(e);_(o,r),o.defineRulesFromMappings(t,l,c,e,n)}function d(t){if(!b(t)){var r=t.names,n=t.mappings,o=t.category;for(let t,e=0;t=r[e];e++)h(t,t,o,n)}}function f(t){for(const r of Object.keys(u)){const n=Object.assign({},t);n.mappings={};var e=u[r];n.key=r+n.key,n.names=n.names.map(function(t){return r+t});for(const o of Object.keys(t.mappings)){n.mappings[o]={};for(const i of Object.keys(t.mappings[o]))n.mappings[o][i]=a.locales[l]().FUNCTIONS.si(e,t.mappings[o][i])}g(n)}g(t)}function m(t,e){const r=p[t];return r?r.lookupRule(null,e):null}function y(t,e){t=m(t,e);return t?t.action:null}function g(t){const e=t.names;e&&(t.names=e.map(function(t){return t+":unit"})),d(t)}function b(t){return(t.locale||t.modality)&&(l=t.locale||l,c=t.modality||c,1)}function v(t){let e=p[t];return e?n.Debugger.getInstance().output("Store exists! "+t):(e=new i.MathSimpleStore,p[t]=e),e}function _(t,e){e&&(t.category=e)}e.defineRules=h,e.defineRule=function(t,e,r,n,o,i){const a=v(o);_(a,n),a.defineRuleFromStrings(t,l,c,e,r,o,i)},e.addSymbolRules=function(t){var e;b(t)||(e=i.MathSimpleStore.parseUnicode(t.key),h(t.key,e,t.category,t.mappings))},e.addFunctionRules=d,e.addUnitRules=function(t){b(t)||(t.si?f:g)(t)},e.addSiUnitRules=f,e.lookupRule=m,e.lookupCategory=function(t){t=p[t];return t?t.category:""},e.lookupString=y,o.default.getInstance().evaluator=y,e.enumerate=function(t={}){for(const n of Object.values(p))for(var[,e]of n.rules.entries())for(var{cstr:r}of e)t=function t(e,r){return r=r||{},e.length&&(r[e[0]]=t(e.slice(1),r[e[0]])),r}(r.getValues(),t);return t}},4658:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.MathSimpleStore=void 0;const f=r(5897),n=r(1676);class o{constructor(){this.category="",this.rules=new Map}static parseUnicode(t){t=parseInt(t,16);return String.fromCodePoint(t)}static testDynamicConstraints_(t,e){return f.default.getInstance().strict?e.cstr.equal(t):f.default.getInstance().comparator.match(e.cstr)}defineRulesFromMappings(t,e,r,n,o){for(const a in o)for(const s in o[a]){var i=o[a][s];this.defineRuleFromStrings(t,e,r,a,s,n,i)}}getRules(t){let e=this.rules.get(t);return e||(e=[],this.rules.set(t,e)),e}defineRuleFromStrings(t,e,r,n,o,i,a){let s=this.getRules(e);const l=f.default.getInstance().parsers[n]||f.default.getInstance().defaultParser,c=f.default.getInstance().comparators[n],u=e+`.${r}.${n}.`+o,p=l.parse(u),h=c?c():f.default.getInstance().comparator,d=h.getReference();h.setReference(p);r={cstr:p,action:a};(s=s.filter(t=>!p.equal(t.cstr))).push(r),this.rules.set(e,s),h.setReference(d)}lookupRule(t,e){let r=this.getRules(e.getValue(n.Axis.LOCALE));return 1===(r=r.filter(function(t){return o.testDynamicConstraints_(e,t)})).length?r[0]:r.length?r.sort((t,e)=>f.default.getInstance().comparator.compare(t.cstr,e.cstr))[0]:null}}e.MathSimpleStore=o},9935:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.MathStore=void 0;const a=r(707),s=r(4356),n=r(7630),o=r(4504),l=r(4650);class i extends o.BaseRuleStore{constructor(){super(),this.annotators=[],this.parseMethods.Alias=this.defineAlias,this.parseMethods.SpecializedRule=this.defineSpecializedRule,this.parseMethods.Specialized=this.defineSpecialized}initialize(){this.initialized||(this.annotations(),this.initialized=!0)}annotations(){for(let t,e=0;t=this.annotators[e];e++)(0,n.activate)(this.domain,t)}defineAlias(t,e,...r){var n=this.parsePrecondition(e,r);if(n){const o=this.preconditions.get(t);o?o.addFullCondition(n):console.error("Alias Error: No precondition by the name of "+t)}else console.error(`Precondition Error: ${e} `+r)}defineRulesAlias(e,r,...n){const t=this.findAllRules(function(t){return t.name===e});if(0===t.length)throw new l.OutputError("Rule with name "+e+" does not exist.");const o=[];t.forEach(t=>{(t=>{var r=t.dynamicCstr.toString(),n=t.action.toString();for(let t,e=0;t=o[e];e++)if(t.action===n&&t.cstr===r)return!1;return o.push({cstr:r,action:n}),!0})(t)&&this.addAlias_(t,r,n)})}defineSpecializedRule(e,t,r,n){const o=this.parseCstr(t),i=this.findRule(t=>t.name===e&&o.equal(t.dynamicCstr)),a=this.parseCstr(r);if(!i&&n)throw new l.OutputError("Rule named "+e+" with style "+t+" does not exist.");r=n?l.Action.fromString(n):i.action,t=new l.SpeechRule(i.name,a,i.precondition,r);this.addRule(t)}defineSpecialized(t,e,r){var n=this.parseCstr(r);if(n){const o=this.preconditions.get(t);o?o.addConstraint(n):console.error("Alias Error: No precondition by the name of "+t)}else console.error("Dynamic Constraint Error: "+r)}evaluateString(r){const n=[];if(r.match(/^\s+$/))return n;let o=this.matchNumber_(r);if(o&&o.length===r.length)return n.push(this.evaluateCharacter(o.number)),n;var i=a.removeEmpty(r.replace(/\s/g," ").split(" "));for(let e,t=0;e=i[t];t++)if(1===e.length)n.push(this.evaluateCharacter(e));else if(e.match(new RegExp("^["+s.LOCALE.MESSAGES.regexp.TEXT+"]+$")))n.push(this.evaluateCharacter(e));else{let t=e;for(;t;){o=this.matchNumber_(t);const r=t.match(new RegExp("^["+s.LOCALE.MESSAGES.regexp.TEXT+"]+"));if(o)n.push(this.evaluateCharacter(o.number)),t=t.substring(o.length);else if(r)n.push(this.evaluateCharacter(r[0])),t=t.substring(r[0].length);else{const r=Array.from(t),o=r[0];n.push(this.evaluateCharacter(o)),t=r.slice(1).join("")}}}return n}parse(t){super.parse(t),this.annotators=t.annotators||[]}addAlias_(t,e,r){const n=this.parsePrecondition(e,r),o=new l.SpeechRule(t.name,t.dynamicCstr,n,t.action);o.name=t.name,this.addRule(o)}matchNumber_(t){const e=t.match(new RegExp("^"+s.LOCALE.MESSAGES.regexp.NUMBER)),r=t.match(new RegExp("^"+i.regexp.NUMBER));if(!e&&!r)return null;var n=r&&r[0]===t;return e&&e[0]===t||!n?e?{number:e[0],length:e[0].length}:null:{number:r[0].replace(new RegExp(i.regexp.DIGIT_GROUP,"g"),"X").replace(new RegExp(i.regexp.DECIMAL_MARK,"g"),s.LOCALE.MESSAGES.regexp.DECIMAL_MARK).replace(/X/g,s.LOCALE.MESSAGES.regexp.DIGIT_GROUP.replace(/\\/g,"")),length:r[0].length}}}(e.MathStore=i).regexp={NUMBER:"((\\d{1,3})(?=(,| ))((,| )\\d{3})*(\\.\\d+)?)|^\\d*\\.\\d+|^\\d+",DECIMAL_MARK:"\\.",DIGIT_GROUP:","}},4650:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.OutputError=e.Precondition=e.Action=e.Component=e.ActionType=e.SpeechRule=void 0;const n=r(5897),s=r(2105);var o;e.SpeechRule=class{constructor(t,e,r,n){this.name=t,this.dynamicCstr=e,this.precondition=r,this.action=n,this.context=null}toString(){return this.name+" | "+this.dynamicCstr.toString()+" | "+this.precondition.toString()+" ==> "+this.action.toString()}},(r=o=e.ActionType||(e.ActionType={})).NODE="NODE",r.MULTI="MULTI",r.TEXT="TEXT",r.PERSONALITY="PERSONALITY";class l{constructor({type:t,content:e,attributes:r,grammar:n}){this.type=t,this.content=e,this.attributes=r,this.grammar=n}static grammarFromString(t){return s.Grammar.parseInput(t)}static fromString(t){const e={type:function(t){switch(t){case"[n]":return o.NODE;case"[m]":return o.MULTI;case"[t]":return o.TEXT;case"[p]":return o.PERSONALITY;default:throw"Parse error: "+t}}(t.substring(0,3))};let r=t.slice(3).trim();if(!r)throw new c("Missing content.");switch(e.type){case o.TEXT:if('"'===r[0]){const t=u(r,"\\(")[0].trim();if('"'!==t.slice(-1))throw new c("Invalid string syntax.");e.content=t,-1===(r=r.slice(t.length).trim()).indexOf("(")&&(r="");break}case o.NODE:case o.MULTI:{const t=r.indexOf(" (");if(-1===t){e.content=r.trim(),r="";break}e.content=r.substring(0,t).trim(),r=r.slice(t).trim()}}if(r){const t=l.attributesFromString(r);t.grammar&&(e.grammar=t.grammar,delete t.grammar),Object.keys(t).length&&(e.attributes=t)}return new l(e)}static attributesFromString(r){if("("!==r[0]||")"!==r.slice(-1))throw new c("Invalid attribute expression: "+r);const n={},o=u(r.slice(1,-1),",");for(let t=0,e=o.length;t<e;t++){const i=o[t],a=i.indexOf(":");if(-1===a)n[i.trim()]="true";else{const r=i.substring(0,a).trim(),o=i.slice(a+1).trim();n[r]=r===s.ATTRIBUTE?l.grammarFromString(o):o}}return n}toString(){var t="",e=(t=(t+=function(t){switch(t){case o.NODE:return"[n]";case o.MULTI:return"[m]";case o.TEXT:return"[t]";case o.PERSONALITY:return"[p]";default:throw"Unknown type error: "+t}}(this.type))+(this.content?" "+this.content:""),this.attributesToString());return t+=e?" "+e:""}grammarToString(){return this.getGrammar().join(":")}getGrammar(){const t=[];for(const e in this.grammar)!0===this.grammar[e]?t.push(e):!1===this.grammar[e]?t.push("!"+e):t.push(e+"="+this.grammar[e]);return t}attributesToString(){const t=this.getAttributes(),e=this.grammarToString();return e&&t.push("grammar:"+e),0<t.length?"("+t.join(", ")+")":""}getAttributes(){const t=[];for(const r in this.attributes){var e=this.attributes[r];"true"===e?t.push(r):t.push(r+":"+e)}return t}}e.Component=l;e.Action=class a{constructor(t){this.components=t}static fromString(t){const r=u(t,";").filter(function(t){return t.match(/\S/)}).map(function(t){return t.trim()}),n=[];for(let t=0,e=r.length;t<e;t++){var o=l.fromString(r[t]);o&&n.push(o)}return new a(n)}toString(){return this.components.map(function(t){return t.toString()}).join("; ")}};class i{constructor(t,...e){this.query=t,this.constraints=e;var[t,e]=this.presetPriority();this.priority=t?e:this.calculatePriority()}static constraintValue(r,n){for(let t,e=0;t=n[e];e++)if(r.match(t))return++e;return 0}toString(){var t=this.constraints.join(", ");return`${this.query}, ${t} (${this.priority}, ${this.rank})`}calculatePriority(){var t=i.constraintValue(this.query,i.queryPriorities);if(!t)return 0;var e=this.query.match(/^self::.+\[(.+)\]/)[1];return 100*t+10*i.constraintValue(e,i.attributePriorities)}presetPriority(){if(!this.constraints.length)return[!1,0];var t=this.constraints[this.constraints.length-1].match(/^priority=(.*$)/);if(!t)return[!1,0];this.constraints.pop();t=parseFloat(t[1]);return[!0,isNaN(t)?0:t]}}(e.Precondition=i).queryPriorities=[/^self::\*\[.+\]$/,/^self::[\w-]+\[.+\]$/],i.attributePriorities=[/^@[\w-]+$/,/^@[\w-]+!=".+"$/,/^not\(contains\(@[\w-]+,\s*".+"\)\)$/,/^contains\(@[\w-]+,".+"\)$/,/^@[\w-]+=".+"$/];class c extends n.SREError{constructor(t){super(t),this.name="RuleError"}}function u(t,e){const r=[];let n="";for(;""!==t;){var o=t.search(e);if(-1===o){if((t.match(/"/g)||[]).length%2!=0)throw new c("Invalid string in expression: "+t);r.push(n+t),t=n=""}else if((t.substring(0,o).match(/"/g)||[]).length%2==0)r.push(n+t.substring(0,o)),n="",t=t.substring(o+1);else{const e=t.substring(o).search('"');if(-1===e)throw new c("Invalid string in expression: "+t);n+=t.substring(0,o+e+1),t=t.substring(o+e+1)}}return n&&r.push(n),r}e.OutputError=c},4106:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SpeechRuleContext=void 0;const n=r(5274),o=r(5662);e.SpeechRuleContext=class{constructor(){this.customQueries=new o.CustomQueries,this.customStrings=new o.CustomStrings,this.contextFunctions=new o.ContextFunctions,this.customGenerators=new o.CustomGenerators}applyCustomQuery(t,e){const r=this.customQueries.lookup(e);return r?r(t):null}applySelector(t,e){return this.applyCustomQuery(t,e)||n.evalXPath(e,t)}applyQuery(t,e){t=this.applySelector(t,e);return 0<t.length?t[0]:null}applyConstraint(t,e){return!!this.applyQuery(t,e)||n.evaluateBoolean(e,t)}constructString(t,e){if(!e)return"";if('"'===e.charAt(0))return e.slice(1,-1);const r=this.customStrings.lookup(e);return r?r(t):n.evaluateString(e,t)}parse(t){var r=Array.isArray(t)?t:Object.entries(t);for(let t,e=0;t=r[e];e++)switch(t[0].slice(0,3)){case"CQF":this.customQueries.add(t[0],t[1]);break;case"CSF":this.customStrings.add(t[0],t[1]);break;case"CTF":this.contextFunctions.add(t[0],t[1]);break;case"CGF":this.customGenerators.add(t[0],t[1]);break;default:console.error("FunctionError: Invalid function name "+t[0])}}}},2362:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.storeFactory=e.SpeechRuleEngine=void 0;const d=r(7052),c=r(2057),n=r(5740),u=r(5897),p=r(4440),h=r(5274),o=r(7283),i=r(7599),a=r(2469),l=r(1676),f=r(2105),s=r(9935),m=r(4650),y=r(4508);class g{constructor(){this.trie=null,this.evaluators_={},this.trie=new y.Trie}static getInstance(){return g.instance=g.instance||new g,g.instance}static debugSpeechRule(e,r){const t=e.precondition,n=e.context.applyQuery(r,t.query);c.Debugger.getInstance().output(t.query,n&&n.toString()),t.constraints.forEach(t=>c.Debugger.getInstance().output(t,e.context.applyConstraint(r,t)))}static debugNamedSpeechRule(r,n){var o=g.getInstance().trie.collectRules().filter(t=>t.name==r);for(let t,e=0;t=o[e];e++)c.Debugger.getInstance().output("Rule",r,"DynamicCstr:",t.dynamicCstr.toString(),"number",e),g.debugSpeechRule(t,n)}evaluateNode(t){(0,h.updateEvaluator)(t);var e=(new Date).getTime();let r=[];try{r=this.evaluateNode_(t)}catch(t){console.error("Something went wrong computing speech."),c.Debugger.getInstance().output(t)}var n=(new Date).getTime();return c.Debugger.getInstance().output("Time:",n-e),r}toString(){return this.trie.collectRules().map(t=>t.toString()).join("\n")}runInSetting(t,e){const r=u.default.getInstance(),n={};for(const e in t)n[e]=r[e],r[e]=t[e];r.setDynamicCstr();e=e();for(const t in n)r[t]=n[t];return r.setDynamicCstr(),e}addStore(t){const e=v(t);"abstract"!==e.kind&&e.getSpeechRules().forEach(t=>this.trie.addRule(t)),this.addEvaluator(e)}processGrammar(t,e,r){const n={};for(const i in r){var o=r[i];n[i]="string"==typeof o?t.constructString(e,o):o}f.Grammar.getInstance().pushState(n)}addEvaluator(t){const e=t.evaluateDefault.bind(t),r=this.evaluators_[t.locale];if(r)r[t.modality]=e;else{const n={};n[t.modality]=e,this.evaluators_[t.locale]=n}}getEvaluator(t,e){t=this.evaluators_[t]||this.evaluators_[l.DynamicCstr.DEFAULT_VALUES[l.Axis.LOCALE]];return t[e]||t[l.DynamicCstr.DEFAULT_VALUES[l.Axis.MODALITY]]}enumerate(t){return this.trie.enumerate(t)}evaluateNode_(t){return t?(this.updateConstraint_(),this.evaluateTree_(t)):[]}evaluateTree_(o){const i=u.default.getInstance();let a;c.Debugger.getInstance().output(i.mode!==p.Mode.HTTP?o.toString():o),f.Grammar.getInstance().setAttribute(o);const s=this.lookupRule(o,i.dynamicCstr);if(!s)return i.strict?[]:(a=this.getEvaluator(i.locale,i.modality)(o),o.attributes&&this.addPersonality_(a,{},!1,o),a);c.Debugger.getInstance().generateOutput(()=>["Apply Rule:",s.name,s.dynamicCstr.toString(),(i.mode,p.Mode.HTTP,o.toString())]);const l=s.context,e=s.action.components;a=[];for(let n,t=0;n=e[t];t++){let t=[];const s=n.content||"",p=n.attributes||{};let e=!1,r=(n.grammar&&this.processGrammar(l,o,n.grammar),null);if(p.engine){r=u.default.getInstance().dynamicCstr.getComponents();const o=f.Grammar.parseInput(p.engine);u.default.getInstance().setDynamicCstr(o)}switch(n.type){case m.ActionType.NODE:{const i=l.applyQuery(o,s);i&&(t=this.evaluateTree_(i))}break;case m.ActionType.MULTI:{e=!0;const i=l.applySelector(o,s);0<i.length&&(t=this.evaluateNodeList_(l,i,p.sepFunc,l.constructString(o,p.separator),p.ctxtFunc,l.constructString(o,p.context)))}break;case m.ActionType.TEXT:{const i=p.span,a={};if(i){const d=(0,h.evalXPath)(i,o);d.length&&(a.extid=d[0].getAttribute("extid"))}const u=l.constructString(o,s);!u&&""!==u||(t=Array.isArray(u)?u.map(function(t){return d.AuditoryDescription.create({text:t.speech,attributes:t.attributes},{adjust:!0})}):[d.AuditoryDescription.create({text:u,attributes:a},{adjust:!0})])}break;default:m.ActionType.PERSONALITY;t=[d.AuditoryDescription.create({text:s})]}t[0]&&!e&&(p.context&&(t[0].context=l.constructString(o,p.context)+(t[0].context||"")),p.annotation&&(t[0].annotation=p.annotation)),this.addLayout(t,p,e),n.grammar&&f.Grammar.getInstance().popState(),a=a.concat(this.addPersonality_(t,p,e,o)),r&&u.default.getInstance().setDynamicCstr(r)}return a}evaluateNodeList_(r,n,t,e,o,i){if(!n.length)return[];const a=e||"",s=i||"",l=r.contextFunctions.lookup(o),c=l?l(n,s):function(){return s},u=r.contextFunctions.lookup(t),p=u?u(n,a):function(){return[d.AuditoryDescription.create({text:a},{translate:!0})]};let h=[];for(let t,e=0;t=n[e];e++){const d=this.evaluateTree_(t);if(0<d.length&&(d[0].context=c()+(d[0].context||""),h=h.concat(d),e<n.length-1)){const r=p();h=h.concat(r)}}return h}addLayout(t,e,r){const n=e.layout;n&&(n.match(/^begin/)?t.unshift(new d.AuditoryDescription({text:"",layout:n})):n.match(/^end/)?t.push(new d.AuditoryDescription({text:"",layout:n})):(t.unshift(new d.AuditoryDescription({text:"",layout:"begin"+n})),t.push(new d.AuditoryDescription({text:"",layout:"end"+n}))))}addPersonality_(r,t,e,n){const o={};let i=null;for(const r of p.personalityPropList){const e=t[r];if(void 0!==e){const d=parseFloat(e),n=isNaN(d)?'"'===e.charAt(0)?e.slice(1,-1):e:d;r===p.personalityProps.PAUSE?i=n:o[r]=n}}for(let t,e=0;t=r[e];e++)this.addRelativePersonality_(t,o),this.addExternalAttributes_(t,n);if(e&&r.length&&delete r[r.length-1].personality[p.personalityProps.JOIN],i&&r.length){const t=r[r.length-1];t.text||Object.keys(t.personality).length?r.push(d.AuditoryDescription.create({text:"",personality:{pause:i}})):t.personality[p.personalityProps.PAUSE]=i}return r}addExternalAttributes_(e,t){if(t.hasAttributes()){var r=t.attributes;for(let t=r.length-1;0<=t;t--){const n=r[t].name;!e.attributes[n]&&n.match(/^ext/)&&(e.attributes[n]=r[t].value)}}}addRelativePersonality_(t,e){if(!t.personality)return t.personality=e,t;const r=t.personality;for(const t in e)r[t]&&"number"==typeof r[t]&&"number"==typeof e[t]?r[t]=r[t]+e[t]:r[t]||(r[t]=e[t]);return t}updateConstraint_(){const r=u.default.getInstance().dynamicCstr,n=u.default.getInstance().strict,t=this.trie,o={};let i=r.getValue(l.Axis.LOCALE),a=r.getValue(l.Axis.MODALITY),e=r.getValue(l.Axis.DOMAIN);t.hasSubtrie([i,a,e])||(e=l.DynamicCstr.DEFAULT_VALUES[l.Axis.DOMAIN],t.hasSubtrie([i,a,e])||(a=l.DynamicCstr.DEFAULT_VALUES[l.Axis.MODALITY],t.hasSubtrie([i,a,e])||(i=l.DynamicCstr.DEFAULT_VALUES[l.Axis.LOCALE]))),o[l.Axis.LOCALE]=[i],o[l.Axis.MODALITY]=["summary"!==a?a:l.DynamicCstr.DEFAULT_VALUES[l.Axis.MODALITY]],o[l.Axis.DOMAIN]=["speech"!==a?l.DynamicCstr.DEFAULT_VALUES[l.Axis.DOMAIN]:e];var s=r.getOrder();for(let t,e=0;t=s[e];e++)if(!o[t]){const i=r.getValue(t),a=this.makeSet_(i,r.preference),u=l.DynamicCstr.DEFAULT_VALUES[t];n||i===u||a.push(u),o[t]=a}r.updateProperties(o)}makeSet_(t,e){return e&&Object.keys(e).length?t.split(":"):[t]}lookupRule(t,e){if(!t||t.nodeType!==n.NodeType.ELEMENT_NODE&&t.nodeType!==n.NodeType.TEXT_NODE)return null;t=this.lookupRules(t,e);return 0<t.length?this.pickMostConstraint_(e,t):null}lookupRules(t,e){return this.trie.lookupRules(t,e.allProperties())}pickMostConstraint_(t,e){const r=u.default.getInstance().comparator;return e.sort(function(t,e){return r.compare(t.dynamicCstr,e.dynamicCstr)||e.precondition.priority-t.precondition.priority||e.precondition.constraints.length-t.precondition.constraints.length||e.precondition.rank-t.precondition.rank}),c.Debugger.getInstance().generateOutput((()=>e.map(t=>t.name+"("+t.dynamicCstr.toString()+")")).bind(this)),e[0]}}e.SpeechRuleEngine=g;const b=new Map;function v(t){var e=`${t.locale}.${t.modality}.`+t.domain;if("actions"===t.kind){const r=b.get(e);return r.parse(t),r}i.init(),t&&!t.functions&&(t.functions=o.getStore(t.locale,t.modality,t.domain));const r=new("braille"===t.modality?a.BrailleStore:s.MathStore);return b.set(e,r),t.inherits&&(r.inherits=b.get(`${t.inherits}.${t.modality}.`+t.domain)),r.parse(t),r.initialize(),r}e.storeFactory=v,u.default.nodeEvaluator=g.getInstance().evaluateNode.bind(g.getInstance())},5662:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CustomGenerators=e.ContextFunctions=e.CustomStrings=e.CustomQueries=void 0;class r{constructor(t,e){this.prefix=t,this.store=e}add(t,e){this.checkCustomFunctionSyntax_(t)&&(this.store[t]=e)}addStore(r){var n=Object.keys(r.store);for(let t,e=0;t=n[e];e++)this.add(t,r.store[t])}lookup(t){return this.store[t]}checkCustomFunctionSyntax_(t){var e=new RegExp("^"+this.prefix);return!!t.match(e)||(console.error("FunctionError: Invalid function name. Expected prefix "+this.prefix),!1)}}e.CustomQueries=class extends r{constructor(){super("CQF",{})}},e.CustomStrings=class extends r{constructor(){super("CSF",{})}},e.ContextFunctions=class extends r{constructor(){super("CTF",{})}},e.CustomGenerators=class extends r{constructor(){super("CGF",{})}}},365:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.contentIterator=e.pauseSeparator=e.nodeCounter=void 0;const i=r(7052),a=r(5274),s=r(5897);e.nodeCounter=function(t,e){const r=t.length;let n=0,o=e?e:"";return function(){return n<r&&(n+=1),o+" "+n}},e.pauseSeparator=function(t,e){const r=parseFloat(e),n=isNaN(r)?e:r;return function(){return[i.AuditoryDescription.create({text:"",personality:{pause:n}})]}},e.contentIterator=function(t,n){let o;return o=0<t.length?a.evalXPath("../../content/*",t[0]):[],function(){const t=o.shift(),e=n?[i.AuditoryDescription.create({text:n},{translate:!0})]:[];if(!t)return e;var r=s.default.evaluateNode(t);return e.concat(r)}}},1414:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.getTreeFromString=e.getTree=e.xmlTree=void 0;const n=r(5740),o=r(7075);function i(t){return new o.SemanticTree(t)}e.xmlTree=function(t){return i(t).xml()},e.getTree=i,e.getTreeFromString=function(t){return i(n.parseInput(t))}},7630:function(t,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.annotate=o.activate=o.register=o.visitors=o.annotators=void 0;const r=e(9265);o.annotators=new Map,o.visitors=new Map,o.register=function(t){var e=t.domain+":"+t.name;(t instanceof r.SemanticAnnotator?o.annotators:o.visitors).set(e,t)},o.activate=function(t,e){const r=t+":"+e,n=o.annotators.get(r)||o.visitors.get(r);n&&(n.active=!0)},o.annotate=function(t){for(const e of o.annotators.values())e.active&&e.annotate(t);for(const r of o.visitors.values())r.active&&r.visit(t,Object.assign({},r.def))}},9265:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticVisitor=e.SemanticAnnotator=void 0,e.SemanticAnnotator=class{constructor(t,e,r){this.domain=t,this.name=e,this.func=r,this.active=!1}annotate(t){t.childNodes.forEach(this.annotate.bind(this)),t.addAnnotation(this.domain,this.func(t))}},e.SemanticVisitor=class{constructor(t,e,r,n={}){this.domain=t,this.name=e,this.func=r,this.def=n,this.active=!1}visit(r,t){let n=this.func(r,t);r.addAnnotation(this.domain,n[0]);for(let t,e=0;t=r.childNodes[e];e++)n=this.visit(t,n[1]);return n}}},3588:function(j,t){Object.defineProperty(t,"__esModule",{value:!0}),t.lookupSecondary=t.isEmbellishedType=t.isMatchingFence=t.functionApplication=t.invisibleComma=t.invisiblePlus=t.invisibleTimes=t.lookupMeaning=t.lookupRole=t.lookupType=t.equal=t.allLettersRegExp=void 0;const e=String.fromCodePoint(8291),B=[",","﹐",",",e],r=["¯","‒","–","—","―","﹘","-","⁻","₋","−","➖","﹣","-","‐","‑","‾","_"],n=["~","̃","∼","˜","∽","˷","̴","̰"],o={"(":")","[":"]","{":"}","⁅":"⁆","〈":"〉","❨":"❩","❪":"❫","❬":"❭","❮":"❯","❰":"❱","❲":"❳","❴":"❵","⟅":"⟆","⟦":"⟧","⟨":"⟩","⟪":"⟫","⟬":"⟭","⟮":"⟯","⦃":"⦄","⦅":"⦆","⦇":"⦈","⦉":"⦊","⦋":"⦌","⦍":"⦎","⦏":"⦐","⦑":"⦒","⦓":"⦔","⦕":"⦖","⦗":"⦘","⧘":"⧙","⧚":"⧛","⧼":"⧽","⸢":"⸣","⸤":"⸥","⸦":"⸧","⸨":"⸩","〈":"〉","《":"》","「":"」","『":"』","【":"】","〔":"〕","〖":"〗","〘":"〙","〚":"〛","〝":"〞","﴾":"﴿","︗":"︘","﹙":"﹚","﹛":"﹜","﹝":"﹞","(":")","[":"]","{":"}","⦅":"⦆","「":"」","⌈":"⌉","⌊":"⌋","⌌":"⌍","⌎":"⌏","⌜":"⌝","⌞":"⌟","⎛":"⎞","⎜":"⎟","⎝":"⎠","⎡":"⎤","⎢":"⎥","⎣":"⎦","⎧":"⎫","⎨":"⎬","⎩":"⎭","⎰":"⎱","⎸":"⎹"},i={"⎴":"⎵","⏜":"⏝","⏞":"⏟","⏠":"⏡","︵":"︶","︷":"︸","︹":"︺","︻":"︼","︽":"︾","︿":"﹀","﹁":"﹂","﹃":"﹄","﹇":"﹈"},D=Object.keys(o),a=Object.values(o),F=(a.push("〟"),Object.keys(i)),H=Object.values(i),s=["|","¦","∣","⏐","⎸","⎹","❘","|","¦","︱","︲"],l=["‖","∥","⦀","⫴"],c=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],u=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","ı","ȷ"],p=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],h=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],d=["𝐀","𝐁","𝐂","𝐃","𝐄","𝐅","𝐆","𝐇","𝐈","𝐉","𝐊","𝐋","𝐌","𝐍","𝐎","𝐏","𝐐","𝐑","𝐒","𝐓","𝐔","𝐕","𝐖","𝐗","𝐘","𝐙"],f=["𝐚","𝐛","𝐜","𝐝","𝐞","𝐟","𝐠","𝐡","𝐢","𝐣","𝐤","𝐥","𝐦","𝐧","𝐨","𝐩","𝐪","𝐫","𝐬","𝐭","𝐮","𝐯","𝐰","𝐱","𝐲","𝐳"],m=["𝐴","𝐵","𝐶","𝐷","𝐸","𝐹","𝐺","𝐻","𝐼","𝐽","𝐾","𝐿","𝑀","𝑁","𝑂","𝑃","𝑄","𝑅","𝑆","𝑇","𝑈","𝑉","𝑊","𝑋","𝑌","𝑍"],y=["𝑎","𝑏","𝑐","𝑑","𝑒","𝑓","𝑔","ℎ","𝑖","𝑗","𝑘","𝑙","𝑚","𝑛","𝑜","𝑝","𝑞","𝑟","𝑠","𝑡","𝑢","𝑣","𝑤","𝑥","𝑦","𝑧","𝚤","𝚥"],g=["𝑨","𝑩","𝑪","𝑫","𝑬","𝑭","𝑮","𝑯","𝑰","𝑱","𝑲","𝑳","𝑴","𝑵","𝑶","𝑷","𝑸","𝑹","𝑺","𝑻","𝑼","𝑽","𝑾","𝑿","𝒀","𝒁"],b=["𝒂","𝒃","𝒄","𝒅","𝒆","𝒇","𝒈","𝒉","𝒊","𝒋","𝒌","𝒍","𝒎","𝒏","𝒐","𝒑","𝒒","𝒓","𝒔","𝒕","𝒖","𝒗","𝒘","𝒙","𝒚","𝒛"],v=["𝒜","ℬ","𝒞","𝒟","ℰ","ℱ","𝒢","ℋ","ℐ","𝒥","𝒦","ℒ","ℳ","𝒩","𝒪","𝒫","𝒬","ℛ","𝒮","𝒯","𝒰","𝒱","𝒲","𝒳","𝒴","𝒵","℘"],_=["𝒶","𝒷","𝒸","𝒹","ℯ","𝒻","ℊ","𝒽","𝒾","𝒿","𝓀","𝓁","𝓂","𝓃","ℴ","𝓅","𝓆","𝓇","𝓈","𝓉","𝓊","𝓋","𝓌","𝓍","𝓎","𝓏","ℓ"],S=["𝓐","𝓑","𝓒","𝓓","𝓔","𝓕","𝓖","𝓗","𝓘","𝓙","𝓚","𝓛","𝓜","𝓝","𝓞","𝓟","𝓠","𝓡","𝓢","𝓣","𝓤","𝓥","𝓦","𝓧","𝓨","𝓩"],x=["𝓪","𝓫","𝓬","𝓭","𝓮","𝓯","𝓰","𝓱","𝓲","𝓳","𝓴","𝓵","𝓶","𝓷","𝓸","𝓹","𝓺","𝓻","𝓼","𝓽","𝓾","𝓿","𝔀","𝔁","𝔂","𝔃"],M=["𝔄","𝔅","ℭ","𝔇","𝔈","𝔉","𝔊","ℌ","ℑ","𝔍","𝔎","𝔏","𝔐","𝔑","𝔒","𝔓","𝔔","ℜ","𝔖","𝔗","𝔘","𝔙","𝔚","𝔛","𝔜","ℨ"],O=["𝔞","𝔟","𝔠","𝔡","𝔢","𝔣","𝔤","𝔥","𝔦","𝔧","𝔨","𝔩","𝔪","𝔫","𝔬","𝔭","𝔮","𝔯","𝔰","𝔱","𝔲","𝔳","𝔴","𝔵","𝔶","𝔷"],E=["𝔸","𝔹","ℂ","𝔻","𝔼","𝔽","𝔾","ℍ","𝕀","𝕁","𝕂","𝕃","𝕄","ℕ","𝕆","ℙ","ℚ","ℝ","𝕊","𝕋","𝕌","𝕍","𝕎","𝕏","𝕐","ℤ"],A=["𝕒","𝕓","𝕔","𝕕","𝕖","𝕗","𝕘","𝕙","𝕚","𝕛","𝕜","𝕝","𝕞","𝕟","𝕠","𝕡","𝕢","𝕣","𝕤","𝕥","𝕦","𝕧","𝕨","𝕩","𝕪","𝕫"],C=["𝕬","𝕭","𝕮","𝕯","𝕰","𝕱","𝕲","𝕳","𝕴","𝕵","𝕶","𝕷","𝕸","𝕹","𝕺","𝕻","𝕼","𝕽","𝕾","𝕿","𝖀","𝖁","𝖂","𝖃","𝖄","𝖅"],w=["𝖆","𝖇","𝖈","𝖉","𝖊","𝖋","𝖌","𝖍","𝖎","𝖏","𝖐","𝖑","𝖒","𝖓","𝖔","𝖕","𝖖","𝖗","𝖘","𝖙","𝖚","𝖛","𝖜","𝖝","𝖞","𝖟"],T=["𝖠","𝖡","𝖢","𝖣","𝖤","𝖥","𝖦","𝖧","𝖨","𝖩","𝖪","𝖫","𝖬","𝖭","𝖮","𝖯","𝖰","𝖱","𝖲","𝖳","𝖴","𝖵","𝖶","𝖷","𝖸","𝖹"],N=["𝖺","𝖻","𝖼","𝖽","𝖾","𝖿","𝗀","𝗁","𝗂","𝗃","𝗄","𝗅","𝗆","𝗇","𝗈","𝗉","𝗊","𝗋","𝗌","𝗍","𝗎","𝗏","𝗐","𝗑","𝗒","𝗓"],L=["𝗔","𝗕","𝗖","𝗗","𝗘","𝗙","𝗚","𝗛","𝗜","𝗝","𝗞","𝗟","𝗠","𝗡","𝗢","𝗣","𝗤","𝗥","𝗦","𝗧","𝗨","𝗩","𝗪","𝗫","𝗬","𝗭"],P=["𝗮","𝗯","𝗰","𝗱","𝗲","𝗳","𝗴","𝗵","𝗶","𝗷","𝗸","𝗹","𝗺","𝗻","𝗼","𝗽","𝗾","𝗿","𝘀","𝘁","𝘂","𝘃","𝘄","𝘅","𝘆","𝘇"],I=["𝘈","𝘉","𝘊","𝘋","𝘌","𝘍","𝘎","𝘏","𝘐","𝘑","𝘒","𝘓","𝘔","𝘕","𝘖","𝘗","𝘘","𝘙","𝘚","𝘛","𝘜","𝘝","𝘞","𝘟","𝘠","𝘡"],q=["𝘢","𝘣","𝘤","𝘥","𝘦","𝘧","𝘨","𝘩","𝘪","𝘫","𝘬","𝘭","𝘮","𝘯","𝘰","𝘱","𝘲","𝘳","𝘴","𝘵","𝘶","𝘷","𝘸","𝘹","𝘺","𝘻"],U=["𝘼","𝘽","𝘾","𝘿","𝙀","𝙁","𝙂","𝙃","𝙄","𝙅","𝙆","𝙇","𝙈","𝙉","𝙊","𝙋","𝙌","𝙍","𝙎","𝙏","𝙐","𝙑","𝙒","𝙓","𝙔","𝙕"],G=["𝙖","𝙗","𝙘","𝙙","𝙚","𝙛","𝙜","𝙝","𝙞","𝙟","𝙠","𝙡","𝙢","𝙣","𝙤","𝙥","𝙦","𝙧","𝙨","𝙩","𝙪","𝙫","𝙬","𝙭","𝙮","𝙯"],V=["𝙰","𝙱","𝙲","𝙳","𝙴","𝙵","𝙶","𝙷","𝙸","𝙹","𝙺","𝙻","𝙼","𝙽","𝙾","𝙿","𝚀","𝚁","𝚂","𝚃","𝚄","𝚅","𝚆","𝚇","𝚈","𝚉"],X=["𝚊","𝚋","𝚌","𝚍","𝚎","𝚏","𝚐","𝚑","𝚒","𝚓","𝚔","𝚕","𝚖","𝚗","𝚘","𝚙","𝚚","𝚛","𝚜","𝚝","𝚞","𝚟","𝚠","𝚡","𝚢","𝚣"],W=["ⅅ","ⅆ","ⅇ","ⅈ","ⅉ"],z=["Α","Β","Γ","Δ","Ε","Ζ","Η","Θ","Ι","Κ","Λ","Μ","Ν","Ξ","Ο","Π","Ρ","Σ","Τ","Υ","Φ","Χ","Ψ","Ω"],$=["α","β","γ","δ","ε","ζ","η","θ","ι","κ","λ","μ","ν","ξ","ο","π","ρ","ς","σ","τ","υ","φ","χ","ψ","ω"],J=["𝚨","𝚩","𝚪","𝚫","𝚬","𝚭","𝚮","𝚯","𝚰","𝚱","𝚲","𝚳","𝚴","𝚵","𝚶","𝚷","𝚸","𝚺","𝚻","𝚼","𝚽","𝚾","𝚿","𝛀"],K=["𝛂","𝛃","𝛄","𝛅","𝛆","𝛇","𝛈","𝛉","𝛊","𝛋","𝛌","𝛍","𝛎","𝛏","𝛐","𝛑","𝛒","𝛓","𝛔","𝛕","𝛖","𝛗","𝛘","𝛙","𝛚"],Y=["𝛢","𝛣","𝛤","𝛥","𝛦","𝛧","𝛨","𝛩","𝛪","𝛫","𝛬","𝛭","𝛮","𝛯","𝛰","𝛱","𝛲","𝛴","𝛵","𝛶","𝛷","𝛸","𝛹","𝛺"],Z=["𝛼","𝛽","𝛾","𝛿","𝜀","𝜁","𝜂","𝜃","𝜄","𝜅","𝜆","𝜇","𝜈","𝜉","𝜊","𝜋","𝜌","𝜍","𝜎","𝜏","𝜐","𝜑","𝜒","𝜓","𝜔"],Q=["𝜜","𝜝","𝜞","𝜟","𝜠","𝜡","𝜢","𝜣","𝜤","𝜥","𝜦","𝜧","𝜨","𝜩","𝜪","𝜫","𝜬","𝜮","𝜯","𝜰","𝜱","𝜲","𝜳","𝜴"],tt=["𝜶","𝜷","𝜸","𝜹","𝜺","𝜻","𝜼","𝜽","𝜾","𝜿","𝝀","𝝁","𝝂","𝝃","𝝄","𝝅","𝝆","𝝇","𝝈","𝝉","𝝊","𝝋","𝝌","𝝍","𝝎"],et=["𝝖","𝝗","𝝘","𝝙","𝝚","𝝛","𝝜","𝝝","𝝞","𝝟","𝝠","𝝡","𝝢","𝝣","𝝤","𝝥","𝝦","𝝨","𝝩","𝝪","𝝫","𝝬","𝝭","𝝮"],rt=["𝝰","𝝱","𝝲","𝝳","𝝴","𝝵","𝝶","𝝷","𝝸","𝝹","𝝺","𝝻","𝝼","𝝽","𝝾","𝝿","𝞀","𝞁","𝞂","𝞃","𝞄","𝞅","𝞆","𝞇","𝞈"],nt=["𝞐","𝞑","𝞒","𝞓","𝞔","𝞕","𝞖","𝞗","𝞘","𝞙","𝞚","𝞛","𝞜","𝞝","𝞞","𝞟","𝞠","𝞢","𝞣","𝞤","𝞥","𝞦","𝞧","𝞨"],ot=["𝞪","𝞫","𝞬","𝞭","𝞮","𝞯","𝞰","𝞱","𝞲","𝞳","𝞴","𝞵","𝞶","𝞷","𝞸","𝞹","𝞺","𝞻","𝞼","𝞽","𝞾","𝞿","𝟀","𝟁","𝟂"],it=["ℼ","ℽ","ℾ","ℿ"],at=["ϐ","ϑ","ϕ","ϖ","ϗ","ϰ","ϱ","ϵ","϶","ϴ"],st=["𝛜","𝛝","𝛞","𝛟","𝛠","𝛡"],lt=["𝜖","𝜗","𝜘","𝜙","𝜚","𝜛"],ct=["𝞊","𝞋","𝞌","𝞍","𝞎","𝞏"],ut=["ℵ","ℶ","ℷ","ℸ"],pt=c.concat(u,p,h,d,f,m,g,b,y,v,_,S,x,M,O,E,A,C,w,T,N,L,P,I,q,U,G,V,X,W,z,$,J,K,Y,Z,Q,tt,et,rt,it,at,nt,ot,st,lt,ct,ut),ht=(t.allLettersRegExp=new RegExp(pt.join("|")),["+","±","∓","∔","∧","∨","∩","∪","⊌","⊍","⊎","⊓","⊔","⊝","⊞","⊤","⊥","⊺","⊻","⊼","⋄","⋎","⋏","⋒","⋓","⩞","⊕","⋔"]),dt=String.fromCodePoint(8292),ft=(ht.push(dt),["†","‡","∐","∗","∘","∙","≀","⊚","⊛","⊠","⊡","⋅","⋆","⋇","⋈","⋉","⋊","⋋","⋌","○","·","*","⊗","⊙"]),mt=String.fromCodePoint(8290),yt=(ft.push(mt),String.fromCodePoint(8289)),gt=["²","³","¹","⁰","⁴","⁵","⁶","⁷","⁸","⁹"].concat(["₀","₁","₂","₃","₄","₅","₆","₇","₈","₉"],["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳","⓪","⓫","⓬","⓭","⓮","⓯","⓰","⓱","⓲","⓳","⓴","⓵","⓶","⓷","⓸","⓹","⓺","⓻","⓼","⓽","⓾","⓿","❶","❷","❸","❹","❺","❻","❼","❽","❾","❿","➀","➁","➂","➃","➄","➅","➆","➇","➈","➉","➊","➋","➌","➍","➎","➏","➐","➑","➒","➓","㉈","㉉","㉊","㉋","㉌","㉍","㉎","㉏","㉑","㉒","㉓","㉔","㉕","㉖","㉗","㉘","㉙","㉚","㉛","㉜","㉝","㉞","㉟","㊱","㊲","㊳","㊴","㊵","㊶","㊷","㊸","㊹","㊺","㊻","㊼","㊽","㊾","㊿"],["⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇"],["⒈","⒉","⒊","⒋","⒌","⒍","⒎","⒏","⒐","⒑","⒒","⒓","⒔","⒕","⒖","⒗","⒘","⒙","⒚","⒛","🄀","🄁","🄂","🄃","🄄","🄅","🄆","🄇","🄈","🄉","🄊"]),bt=["cos","cot","csc","sec","sin","tan","arccos","arccot","arccsc","arcsec","arcsin","arctan","arc cos","arc cot","arc csc","arc sec","arc sin","arc tan"].concat(["cosh","coth","csch","sech","sinh","tanh","arcosh","arcoth","arcsch","arsech","arsinh","artanh","arccosh","arccoth","arccsch","arcsech","arcsinh","arctanh"],["deg","det","dim","hom","ker","Tr","tr"],["log","ln","lg","exp","expt","gcd","gcd","arg","im","re","Pr"]),vt=[{set:["!",'"',"#","%","&",";","?","@","\\","¡","§","¶","¿","‗","†","‡","•","‣","․","‥","‧","‰","‱","‸","※","‼","‽","‾","⁁","⁂","⁃","⁇","⁈","⁉","⁋","⁌","⁍","⁎","⁏","⁐","⁑","⁓","⁕","⁖","⁘","⁙","⁚","⁛","⁜","⁝","⁞","︐","︔","︕","︖","︰","﹅","﹆","﹉","﹊","﹋","﹌","﹔","﹖","﹗","﹟","﹠","﹡","﹨","﹪","﹫","!",""","#","%","&","'","*","/",";","?","@","\"],type:"punctuation",role:"unknown"},{set:["︓",":",":","﹕"],type:"punctuation",role:"colon"},{set:B,type:"punctuation",role:"comma"},{set:["…","⋮","⋯","⋰","⋱","︙"],type:"punctuation",role:"ellipsis"},{set:[".","﹒","."],type:"punctuation",role:"fullstop"},{set:r,type:"operator",role:"dash"},{set:n,type:"operator",role:"tilde"},{set:["'","′","″","‴","‵","‶","‷","⁗","ʹ","ʺ"],type:"punctuation",role:"prime"},{set:["°"],type:"punctuation",role:"degree"},{set:D,type:"fence",role:"open"},{set:a,type:"fence",role:"close"},{set:F,type:"fence",role:"top"},{set:H,type:"fence",role:"bottom"},{set:s,type:"fence",role:"neutral"},{set:l,type:"fence",role:"metric"},{set:u,type:"identifier",role:"latinletter",font:"normal"},{set:c,type:"identifier",role:"latinletter",font:"normal"},{set:h,type:"identifier",role:"latinletter",font:"normal"},{set:p,type:"identifier",role:"latinletter",font:"normal"},{set:f,type:"identifier",role:"latinletter",font:"bold"},{set:d,type:"identifier",role:"latinletter",font:"bold"},{set:y,type:"identifier",role:"latinletter",font:"italic"},{set:m,type:"identifier",role:"latinletter",font:"italic"},{set:b,type:"identifier",role:"latinletter",font:"bold-italic"},{set:g,type:"identifier",role:"latinletter",font:"bold-italic"},{set:_,type:"identifier",role:"latinletter",font:"script"},{set:v,type:"identifier",role:"latinletter",font:"script"},{set:x,type:"identifier",role:"latinletter",font:"bold-script"},{set:S,type:"identifier",role:"latinletter",font:"bold-script"},{set:O,type:"identifier",role:"latinletter",font:"fraktur"},{set:M,type:"identifier",role:"latinletter",font:"fraktur"},{set:A,type:"identifier",role:"latinletter",font:"double-struck"},{set:E,type:"identifier",role:"latinletter",font:"double-struck"},{set:w,type:"identifier",role:"latinletter",font:"bold-fraktur"},{set:C,type:"identifier",role:"latinletter",font:"bold-fraktur"},{set:N,type:"identifier",role:"latinletter",font:"sans-serif"},{set:T,type:"identifier",role:"latinletter",font:"sans-serif"},{set:P,type:"identifier",role:"latinletter",font:"sans-serif-bold"},{set:L,type:"identifier",role:"latinletter",font:"sans-serif-bold"},{set:q,type:"identifier",role:"latinletter",font:"sans-serif-italic"},{set:I,type:"identifier",role:"latinletter",font:"sans-serif-italic"},{set:G,type:"identifier",role:"latinletter",font:"sans-serif-bold-italic"},{set:U,type:"identifier",role:"latinletter",font:"sans-serif-bold-italic"},{set:X,type:"identifier",role:"latinletter",font:"monospace"},{set:V,type:"identifier",role:"latinletter",font:"monospace"},{set:W,type:"identifier",role:"latinletter",font:"double-struck-italic"},{set:$,type:"identifier",role:"greekletter",font:"normal"},{set:z,type:"identifier",role:"greekletter",font:"normal"},{set:K,type:"identifier",role:"greekletter",font:"bold"},{set:J,type:"identifier",role:"greekletter",font:"bold"},{set:Z,type:"identifier",role:"greekletter",font:"italic"},{set:Y,type:"identifier",role:"greekletter",font:"italic"},{set:tt,type:"identifier",role:"greekletter",font:"bold-italic"},{set:Q,type:"identifier",role:"greekletter",font:"bold-italic"},{set:rt,type:"identifier",role:"greekletter",font:"sans-serif-bold"},{set:et,type:"identifier",role:"greekletter",font:"sans-serif-bold"},{set:nt,type:"identifier",role:"greekletter",font:"sans-serif-bold-italic"},{set:ot,type:"identifier",role:"greekletter",font:"sans-serif-bold-italic"},{set:it,type:"identifier",role:"greekletter",font:"double-struck"},{set:at,type:"identifier",role:"greekletter",font:"normal"},{set:st,type:"identifier",role:"greekletter",font:"bold"},{set:lt,type:"identifier",role:"greekletter",font:"italic"},{set:ct,type:"identifier",role:"greekletter",font:"sans-serif-bold"},{set:ut,type:"identifier",role:"otherletter",font:"normal"},{set:["0","1","2","3","4","5","6","7","8","9"],type:"number",role:"integer",font:"normal"},{set:["0","1","2","3","4","5","6","7","8","9"],type:"number",role:"integer",font:"normal"},{set:["𝟎","𝟏","𝟐","𝟑","𝟒","𝟓","𝟔","𝟕","𝟖","𝟗"],type:"number",role:"integer",font:"bold"},{set:["𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡"],type:"number",role:"integer",font:"double-struck"},{set:["𝟢","𝟣","𝟤","𝟥","𝟦","𝟧","𝟨","𝟩","𝟪","𝟫"],type:"number",role:"integer",font:"sans-serif"},{set:["𝟬","𝟭","𝟮","𝟯","𝟰","𝟱","𝟲","𝟳","𝟴","𝟵"],type:"number",role:"integer",font:"sans-serif-bold"},{set:["𝟶","𝟷","𝟸","𝟹","𝟺","𝟻","𝟼","𝟽","𝟾","𝟿"],type:"number",role:"integer",font:"monospace"},{set:["¼","½","¾","⅐","⅑","⅒","⅓","⅔","⅕","⅖","⅗","⅘","⅙","⅚","⅛","⅜","⅝","⅞","⅟","↉"],type:"number",role:"float"},{set:gt,type:"number",role:"othernumber"},{set:ht,type:"operator",role:"addition"},{set:ft,type:"operator",role:"multiplication"},{set:["¯","-","⁒","⁻","₋","−","∖","∸","≂","⊖","⊟","➖","⨩","⨪","⨫","⨬","⨺","⩁","﹣","-","‐","‑"],type:"operator",role:"subtraction"},{set:["/","÷","⁄","∕","⊘","⟌","⦼","⨸"],type:"operator",role:"division"},{set:["∀","∃","∆","∇","∂","∁","∄"],type:"operator",role:"prefix operator"},{set:["𝛁","𝛛","𝟊","𝟋"],type:"operator",role:"prefix operator",font:"bold"},{set:["𝛻","𝜕"],type:"operator",role:"prefix operator",font:"italic"},{set:["𝝯","𝞉"],type:"operator",role:"prefix operator",font:"sans-serif-bold"},{set:["=","~","⁼","₌","∼","∽","≃","≅","≈","≊","≋","≌","≍","≎","≑","≒","≓","≔","≕","≖","≗","≘","≙","≚","≛","≜","≝","≞","≟","≡","≣","⧤","⩦","⩮","⩯","⩰","⩱","⩲","⩳","⩴","⩵","⩶","⩷","⩸","⋕","⩭","⩪","⩫","⩬","﹦","=","⩬","⊜","∷"],type:"relation",role:"equality"},{set:["<",">","≁","≂","≄","≆","≇","≉","≏","≐","≠","≢","≤","≥","≦","≧","≨","≩","≪","≫","≬","≭","≮","≯","≰","≱","≲","≳","≴","≵","≶","≷","≸","≹","≺","≻","≼","≽","≾","≿","⊀","⊁","⋖","⋗","⋘","⋙","⋚","⋛","⋜","⋝","⋞","⋟","⋠","⋡","⋦","⋧","⋨","⋩","⩹","⩺","⩻","⩼","⩽","⩾","⩿","⪀","⪁","⪂","⪃","⪄","⪅","⪆","⪇","⪈","⪉","⪊","⪋","⪌","⪍","⪎","⪏","⪐","⪑","⪒","⪓","⪔","⪕","⪖","⪗","⪘","⪙","⪚","⪛","⪜","⪝","⪞","⪟","⪠","⪡","⪢","⪣","⪤","⪥","⪦","⪧","⪨","⪩","⪪","⪫","⪬","⪭","⪮","⪯","⪰","⪱","⪲","⪳","⪴","⪵","⪶","⪷","⪸","⪹","⪺","⪻","⪼","⫷","⫸","⫹","⫺","⧀","⧁","﹤","﹥","<",">"],type:"relation",role:"inequality"},{set:["⋢","⋣","⋤","⋥","⊂","⊃","⊄","⊅","⊆","⊇","⊈","⊉","⊊","⊋","⊏","⊐","⊑","⊒","⪽","⪾","⪿","⫀","⫁","⫂","⫃","⫄","⫅","⫆","⫇","⫈","⫉","⫊","⫋","⫌","⫍","⫎","⫏","⫐","⫑","⫒","⫓","⫔","⫕","⫖","⫗","⫘","⋐","⋑","⋪","⋫","⋬","⋭","⊲","⊳","⊴","⊵"],type:"relation",role:"set"},{set:["⊢","⊣","⊦","⊧","⊨","⊩","⊪","⊫","⊬","⊭","⊮","⊯","⫞","⫟","⫠","⫡","⫢","⫣","⫤","⫥","⫦","⫧","⫨","⫩","⫪","⫫","⫬","⫭"],type:"relation",role:"unknown"},{set:["←","↑","→","↓","↔","↕","↖","↗","↘","↙","↚","↛","↜","↝","↞","↟","↠","↡","↢","↣","↤","↥","↦","↧","↨","↩","↪","↫","↬","↭","↮","↯","↰","↱","↲","↳","↴","↵","↶","↷","↸","↹","↺","↻","⇄","⇅","⇆","⇇","⇈","⇉","⇊","⇍","⇎","⇏","⇐","⇑","⇒","⇓","⇔","⇕","⇖","⇗","⇘","⇙","⇚","⇛","⇜","⇝","⇞","⇟","⇠","⇡","⇢","⇣","⇤","⇥","⇦","⇧","⇨","⇩","⇪","⇫","⇬","⇭","⇮","⇯","⇰","⇱","⇲","⇳","⇴","⇵","⇶","⇷","⇸","⇹","⇺","⇻","⇼","⇽","⇾","⇿","⌁","⌃","⌄","⌤","⎋","➔","➘","➙","➚","➛","➜","➝","➞","➟","➠","➡","➢","➣","➤","➥","➦","➧","➨","➩","➪","➫","➬","➭","➮","➯","➱","➲","➳","➴","➵","➶","➷","➸","➹","➺","➻","➼","➽","➾","⟰","⟱","⟲","⟳","⟴","⟵","⟶","⟷","⟸","⟹","⟺","⟻","⟼","⟽","⟾","⟿","⤀","⤁","⤂","⤃","⤄","⤅","⤆","⤇","⤈","⤉","⤊","⤋","⤌","⤍","⤎","⤏","⤐","⤑","⤒","⤓","⤔","⤕","⤖","⤗","⤘","⤙","⤚","⤛","⤜","⤝","⤞","⤟","⤠","⤡","⤢","⤣","⤤","⤥","⤦","⤧","⤨","⤩","⤪","⤭","⤮","⤯","⤰","⤱","⤲","⤳","⤴","⤵","⤶","⤷","⤸","⤹","⤺","⤻","⤼","⤽","⤾","⤿","⥀","⥁","⥂","⥃","⥄","⥅","⥆","⥇","⥈","⥉","⥰","⥱","⥲","⥳","⥴","⥵","⥶","⥷","⥸","⥹","⥺","⥻","⦳","⦴","⦽","⧪","⧬","⧭","⨗","⬀","⬁","⬂","⬃","⬄","⬅","⬆","⬇","⬈","⬉","⬊","⬋","⬌","⬍","⬎","⬏","⬐","⬑","⬰","⬱","⬲","⬳","⬴","⬵","⬶","⬷","⬸","⬹","⬺","⬻","⬼","⬽","⬾","⬿","⭀","⭁","⭂","⭃","⭄","⭅","⭆","⭇","⭈","⭉","⭊","⭋","⭌","←","↑","→","↓","↼","↽","↾","↿","⇀","⇁","⇂","⇃","⇋","⇌","⥊","⥋","⥌","⥍","⥎","⥏","⥐","⥑","⥒","⥓","⥔","⥕","⥖","⥗","⥘","⥙","⥚","⥛","⥜","⥝","⥞","⥟","⥠","⥡","⥢","⥣","⥤","⥥","⥦","⥧","⥨","⥩","⥪","⥫","⥬","⥭","⥮","⥯","⥼","⥽","⥾","⥿"],type:"relation",role:"arrow"},{set:["∈","∊","⋲","⋳","⋴","⋵","⋶","⋷","⋸","⋹","⋿"],type:"operator",role:"element"},{set:["∉"],type:"operator",role:"nonelement"},{set:["∋","∍","⋺","⋻","⋼","⋽","⋾"],type:"operator",role:"reelement"},{set:["∌"],type:"operator",role:"renonelement"},{set:["⅀","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨃","⨄","⨅","⨆","⨇","⨈","⨉","⨊","⨋","⫼","⫿"],type:"largeop",role:"sum"},{set:["∫","∬","∭","∮","∯","∰","∱","∲","∳","⨌","⨍","⨎","⨏","⨐","⨑","⨒","⨓","⨔","⨕","⨖","⨗","⨘","⨙","⨚","⨛","⨜"],type:"largeop",role:"integral"},{set:["∟","∠","∡","∢","⊾","⊿","△","▷","▽","◁"],type:"operator",role:"geometry"},{set:["inf","lim","liminf","limsup","max","min","sup","injlim","projlim","inj lim","proj lim"],type:"function",role:"limit function"},{set:bt,type:"function",role:"prefix function"},{set:["mod","rem"],type:"operator",role:"prefix function"}],k=function(){const r={};for(let e,t=0;e=vt[t];t++)e.set.forEach(function(t){r[t]={role:e.role||"unknown",type:e.type||"unknown",font:e.font||"unknown"}});return r}(),_t=(t.equal=function(t,e){return t.type===e.type&&t.role===e.role&&t.font===e.font},t.lookupType=function(t){return(null==(t=k[t])?void 0:t.type)||"unknown"},t.lookupRole=function(t){return(null==(t=k[t])?void 0:t.role)||"unknown"},t.lookupMeaning=function(t){return k[t]||{role:"unknown",type:"unknown",font:"unknown"}},t.invisibleTimes=function(){return mt},t.invisiblePlus=function(){return dt},t.invisibleComma=function(){return e},t.functionApplication=function(){return yt},t.isMatchingFence=function(t,e){return-1!==s.indexOf(t)||-1!==l.indexOf(t)?t===e:o[t]===e||i[t]===e},t.isEmbellishedType=function(t){return"operator"===t||"relation"===t||"fence"===t||"punctuation"===t},new Map);function R(t,e,r=""){for(const n of e)_t.set(t+" "+n,r||t)}R("d",["d","ⅆ","d","𝐝","𝑑","𝒹","𝓭","𝔡","𝕕","𝖉","𝖽","𝗱","𝘥","𝚍"]),R("bar",r),R("tilde",n),t.lookupSecondary=function(t,e){return _t.get(t+" "+e)}},8158:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticMeaningCollator=e.SemanticNodeCollator=e.SemanticDefault=void 0;const n=r(3588),o=r(3882);class i{constructor(){this.map={}}static key(t,e){return e?t+":"+e:t}add(t,e){this.map[i.key(t,e.font)]=e}addNode(t){this.add(t.textContent,t.meaning())}retrieve(t,e){return this.map[i.key(t,e)]}retrieveNode(t){return this.retrieve(t.textContent,t.font)}size(){return Object.keys(this.map).length}}e.SemanticDefault=i;class a{constructor(){this.map={}}add(t,e){const r=this.map[t];r?r.push(e):this.map[t]=[e]}retrieve(t,e){return this.map[i.key(t,e)]}retrieveNode(t){return this.retrieve(t.textContent,t.font)}copy(){const t=this.copyCollator();for(const e in this.map)t.map[e]=this.map[e];return t}minimize(){for(const t in this.map)1===this.map[t].length&&delete this.map[t]}minimalCollator(){const t=this.copy();for(const e in t.map)1===t.map[e].length&&delete t.map[e];return t}isMultiValued(){for(const t in this.map)if(1<this.map[t].length)return!0;return!1}isEmpty(){return!Object.keys(this.map).length}}class s extends a{copyCollator(){return new s}add(t,e){t=i.key(t,e.font);super.add(t,e)}addNode(t){this.add(t.textContent,t)}toString(){const t=[];for(const e in this.map){const r=Array(e.length+3).join(" "),n=this.map[e],o=[];for(let t,e=0;t=n[e];e++)o.push(t.toString());t.push(e+": "+o.join("\n"+r))}return t.join("\n")}collateMeaning(){const t=new l;for(const e in this.map)t.map[e]=this.map[e].map(function(t){return t.meaning()});return t}}e.SemanticNodeCollator=s;class l extends a{copyCollator(){return new l}add(t,e){const r=this.retrieve(t,e.font);if(!r||!r.find(function(t){return n.equal(t,e)})){const r=i.key(t,e.font);super.add(r,e)}}addNode(t){this.add(t.textContent,t.meaning())}toString(){const t=[];for(const e in this.map){const r=Array(e.length+3).join(" "),n=this.map[e],o=[];for(let t,e=0;t=n[e];e++)o.push("{type: "+t.type+", role: "+t.role+", font: "+t.font+"}");t.push(e+": "+o.join("\n"+r))}return t.join("\n")}reduce(){for(const t in this.map)1!==this.map[t].length&&(this.map[t]=(0,o.reduce)(this.map[t]))}default(){const t=new i;for(const e in this.map)1===this.map[e].length&&(t.map[e]=this.map[e][0]);return t}newDefault(){const t=this.default(),e=(this.reduce(),this.default());return t.size()!==e.size()?e:null}}e.SemanticMeaningCollator=l},9911:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticMultiHeuristic=e.SemanticTreeHeuristic=e.SemanticAbstractHeuristic=void 0;class r{constructor(t,e,r=t=>!1){this.name=t,this.apply=e,this.applicable=r}}e.SemanticAbstractHeuristic=r,e.SemanticTreeHeuristic=class extends r{},e.SemanticMultiHeuristic=class extends r{}},7516:function(t,o){Object.defineProperty(o,"__esModule",{value:!0}),o.lookup=o.run=o.add=o.blacklist=o.flags=o.updateFactory=o.factory=void 0,o.factory=null,o.updateFactory=function(t){o.factory=t};const r=new Map;function i(t){return r.get(t)}o.flags={combine_juxtaposition:!0,convert_juxtaposition:!0,multioperator:!0},o.blacklist={},o.add=function(t){var e=t.name;r.set(e,t),o.flags[e]||(o.flags[e]=!1)},o.run=function(t,e,r){const n=i(t);return n&&!o.blacklist[t]&&(o.flags[t]||n.applicable(e))?n.apply(e):r?r(e):e},o.lookup=i},94:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const c=r(2057),n=r(5897),i=r(3588),u=r(7516),o=r(9911),p=r(5609),l=r(3308),a=r(4795);function s(t,e,r){let n=null;if(!t.length)return n;const o=r[r.length-1],i=o&&o.length,a=e&&e.length,s=l.default.getInstance();if(i&&a){if("infixop"===e[0].type&&"implicit"===e[0].role)return n=t.pop(),o.push(s.postfixNode_(o.pop(),t)),n;n=t.shift();const r=s.prefixNode_(e.shift(),t);return e.unshift(r),n}return i?o.push(s.postfixNode_(o.pop(),t)):a&&e.unshift(s.prefixNode_(e.shift(),t)),n}u.add(new o.SemanticTreeHeuristic("combine_juxtaposition",function(r){for(let t,e=r.childNodes.length-1;t=r.childNodes[e];e--)p.isImplicitOp(t)&&!t.nobreaking&&(r.childNodes.splice(e,1,...t.childNodes),r.contentNodes.splice(e,0,...t.contentNodes),t.childNodes.concat(t.contentNodes).forEach(function(t){t.parent=r}),r.addMathmlNodes(t.mathml));return r})),u.add(new o.SemanticTreeHeuristic("propagateSimpleFunction",t=>("infixop"!==t.type&&"fraction"!==t.type||!t.childNodes.every(p.isSimpleFunction)||(t.role="composed function"),t),t=>"clearspeak"===n.default.getInstance().domain)),u.add(new o.SemanticTreeHeuristic("simpleNamedFunction",t=>("unit"!==t.role&&-1!==["f","g","h","F","G","H"].indexOf(t.textContent)&&(t.role="simple function"),t),t=>"clearspeak"===n.default.getInstance().domain)),u.add(new o.SemanticTreeHeuristic("propagateComposedFunction",t=>("fenced"===t.type&&"composed function"===t.childNodes[0].role&&(t.role="composed function"),t),t=>"clearspeak"===n.default.getInstance().domain)),u.add(new o.SemanticTreeHeuristic("multioperator",t=>{var e;"unknown"!==t.role||t.textContent.length<=1||(e=[...t.textContent].map(i.lookupMeaning).reduce(function(t,e){return t&&e.role&&"unknown"!==e.role&&e.role!==t?"unknown"===t?e.role:null:t},"unknown"))&&(t.role=e)})),u.add(new o.SemanticMultiHeuristic("convert_juxtaposition",n=>{let o=a.partitionNodes(n,function(t){return t.textContent===i.invisibleTimes()&&"operator"===t.type});n=(o=o.rel.length?function(t){const e=[],r=[];let n=t.comp.shift(),o=null,i=[];for(;t.comp.length;)if(i=[],n.length)o&&e.push(o),r.push(n),o=t.rel.shift(),n=t.comp.shift();else{for(o&&i.push(o);!n.length&&t.comp.length;)n=t.comp.shift(),i.push(t.rel.shift());o=s(i,n,r)}return i.length||n.length?(e.push(o),r.push(n)):(i.push(o),s(i,n,r)),{rel:e,comp:r}}(o):o).comp[0];for(let t,e,r=1;t=o.comp[r],e=o.rel[r-1];r++)n.push(e),n=n.concat(t);return(o=a.partitionNodes(n,function(t){return t.textContent===i.invisibleTimes()&&("operator"===t.type||"infixop"===t.type)})).rel.length?function t(e,r,n){if(!r.length)return e;const o=e.pop(),i=r.shift(),a=n.shift();if(p.isImplicitOp(i)){c.Debugger.getInstance().output("Juxta Heuristic Case 2");const u=(o?[o,i]:[i]).concat(a);return t(e.concat(u),r,n)}if(!o)return c.Debugger.getInstance().output("Juxta Heuristic Case 3"),t([i].concat(a),r,n);const s=a.shift();if(!s){c.Debugger.getInstance().output("Juxta Heuristic Case 9");const a=u.factory.makeBranchNode("infixop",[o,r.shift()],[i],i.textContent);return a.role="implicit",u.run("combine_juxtaposition",a),r.unshift(a),t(e,r,n)}if(p.isOperator(o)||p.isOperator(s))return c.Debugger.getInstance().output("Juxta Heuristic Case 4"),t(e.concat([o,i,s]).concat(a),r,n);let l=null;return p.isImplicitOp(o)&&p.isImplicitOp(s)?(c.Debugger.getInstance().output("Juxta Heuristic Case 5"),o.contentNodes.push(i),o.contentNodes=o.contentNodes.concat(s.contentNodes),o.childNodes.push(s),o.childNodes=o.childNodes.concat(s.childNodes),s.childNodes.forEach(t=>t.parent=o),(i.parent=o).addMathmlNodes(i.mathml),o.addMathmlNodes(s.mathml),l=o):p.isImplicitOp(o)?(c.Debugger.getInstance().output("Juxta Heuristic Case 6"),o.contentNodes.push(i),o.childNodes.push(s),s.parent=o,(i.parent=o).addMathmlNodes(i.mathml),o.addMathmlNodes(s.mathml),l=o):p.isImplicitOp(s)?(c.Debugger.getInstance().output("Juxta Heuristic Case 7"),s.contentNodes.unshift(i),s.childNodes.unshift(o),o.parent=s,(i.parent=s).addMathmlNodes(i.mathml),s.addMathmlNodes(o.mathml),l=s):(c.Debugger.getInstance().output("Juxta Heuristic Case 8"),(l=u.factory.makeBranchNode("infixop",[o,s],[i],i.textContent)).role="implicit"),e.push(l),t(e.concat(a),r,n)}(o.comp.shift(),o.rel,o.comp):n})),u.add(new o.SemanticTreeHeuristic("simple2prefix",t=>(1<t.textContent.length&&!t.textContent[0].match(/[A-Z]/)&&(t.role="prefix function"),t),t=>"braille"===n.default.getInstance().modality&&"identifier"===t.type)),u.add(new o.SemanticTreeHeuristic("detect_cycle",t=>{t.type="matrix",t.role="cycle";const e=t.childNodes[0];return e.type="row",e.role="cycle",e.textContent="",e.contentNodes=[],t},t=>"fenced"===t.type&&"infixop"===t.childNodes[0].type&&"implicit"===t.childNodes[0].role&&t.childNodes[0].childNodes.every(function(t){return"number"===t.type})&&t.childNodes[0].contentNodes.every(function(t){return"space"===t.role})))},7228:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticMathml=void 0;const c=r(5740),n=r(5250),o=r(5609),u=r(3308),p=r(4795);class i extends n.SemanticAbstractParser{constructor(){super("MathML"),this.parseMap_={SEMANTICS:this.semantics_.bind(this),MATH:this.rows_.bind(this),MROW:this.rows_.bind(this),MPADDED:this.rows_.bind(this),MSTYLE:this.rows_.bind(this),MFRAC:this.fraction_.bind(this),MSUB:this.limits_.bind(this),MSUP:this.limits_.bind(this),MSUBSUP:this.limits_.bind(this),MOVER:this.limits_.bind(this),MUNDER:this.limits_.bind(this),MUNDEROVER:this.limits_.bind(this),MROOT:this.root_.bind(this),MSQRT:this.sqrt_.bind(this),MTABLE:this.table_.bind(this),MLABELEDTR:this.tableLabeledRow_.bind(this),MTR:this.tableRow_.bind(this),MTD:this.tableCell_.bind(this),MS:this.text_.bind(this),MTEXT:this.text_.bind(this),MSPACE:this.space_.bind(this),"ANNOTATION-XML":this.text_.bind(this),MI:this.identifier_.bind(this),MN:this.number_.bind(this),MO:this.operator_.bind(this),MFENCED:this.fenced_.bind(this),MENCLOSE:this.enclosed_.bind(this),MMULTISCRIPTS:this.multiscripts_.bind(this),ANNOTATION:this.empty_.bind(this),NONE:this.empty_.bind(this),MACTION:this.action_.bind(this)};const e={type:"identifier",role:"numbersetletter",font:"double-struck"};["C","H","N","P","Q","R","Z","ℂ","ℍ","ℕ","ℙ","ℚ","ℝ","ℤ"].forEach((t=>this.getFactory().defaultMap.add(t,e)).bind(this))}static getAttribute_(t,e,r){if(!t.hasAttribute(e))return r;const n=t.getAttribute(e);return n.match(/^\s*$/)?null:n}parse(t){u.default.getInstance().setNodeFactory(this.getFactory());const e=c.toArray(t.childNodes),r=c.tagName(t),n=this.parseMap_[r],o=(n||this.dummy_.bind(this))(t,e);return p.addAttributes(o,t),-1===["MATH","MROW","MPADDED","MSTYLE","SEMANTICS"].indexOf(r)&&(o.mathml.unshift(t),o.mathmlTree=t),o}semantics_(t,e){return e.length?this.parse(e[0]):this.getFactory().makeEmptyNode()}rows_(t,e){const r=t.getAttribute("semantics");if(r&&r.match("bspr_"))return u.default.proof(t,r,this.parseList.bind(this));let n;return 1===(e=p.purgeNodes(e)).length?"empty"!==(n=this.parse(e[0])).type||n.mathmlTree||(n.mathmlTree=t):n=u.default.getInstance().row(this.parseList(e)),n.mathml.unshift(t),n}fraction_(t,e){if(!e.length)return this.getFactory().makeEmptyNode();var r=this.parse(e[0]),e=e[1]?this.parse(e[1]):this.getFactory().makeEmptyNode();return u.default.getInstance().fractionLikeNode(r,e,t.getAttribute("linethickness"),"true"===t.getAttribute("bevelled"))}limits_(t,e){return u.default.getInstance().limitNode(c.tagName(t),this.parseList(e))}root_(t,e){return e[1]?this.getFactory().makeBranchNode("root",[this.parse(e[1]),this.parse(e[0])],[]):this.sqrt_(t,e)}sqrt_(t,e){e=this.parseList(p.purgeNodes(e));return this.getFactory().makeBranchNode("sqrt",[u.default.getInstance().row(e)],[])}table_(t,e){const r=t.getAttribute("semantics");if(r&&r.match("bspr_"))return u.default.proof(t,r,this.parseList.bind(this));const n=this.getFactory().makeBranchNode("table",this.parseList(e),[]);return n.mathmlTree=t,u.default.tableToMultiline(n),n}tableRow_(t,e){const r=this.getFactory().makeBranchNode("row",this.parseList(e),[]);return r.role="table",r}tableLabeledRow_(t,e){if(!e.length)return this.tableRow_(t,e);const r=this.parse(e[0]),n=(r.role="label",this.getFactory().makeBranchNode("row",this.parseList(e.slice(1)),[r]));return n.role="table",n}tableCell_(t,e){e=this.parseList(p.purgeNodes(e)),e=e.length?1===e.length&&o.isType(e[0],"empty")?e:[u.default.getInstance().row(e)]:[];const r=this.getFactory().makeBranchNode("cell",e,[]);return r.role="table",r}space_(t,e){const r=t.getAttribute("width"),n=r&&r.match(/[a-z]*$/);if(!n)return this.empty_(t,e);var o=n[0],i=parseFloat(r.slice(0,n.index)),o={cm:.4,pc:.5,em:.5,ex:1,in:.15,pt:5,mm:5}[o];if(!o||isNaN(i)||i<o)return this.empty_(t,e);i=this.getFactory().makeUnprocessed(t);return u.default.getInstance().text(i,c.tagName(t))}text_(t,e){const r=this.leaf_(t,e);return t.textContent?(r.updateContent(t.textContent,!0),u.default.getInstance().text(r,c.tagName(t))):r}identifier_(t,e){e=this.leaf_(t,e);return u.default.getInstance().identifierNode(e,u.default.getInstance().font(t.getAttribute("mathvariant")),t.getAttribute("class"))}number_(t,e){t=this.leaf_(t,e);return u.default.number(t),t}operator_(t,e){t=this.leaf_(t,e);return u.default.getInstance().operatorNode(t),t}fenced_(t,e){var e=this.parseList(p.purgeNodes(e)),r=i.getAttribute_(t,"separators",","),n=i.getAttribute_(t,"open","("),t=i.getAttribute_(t,"close",")"),n=u.default.getInstance().mfenced(n,t,r,e);return u.default.getInstance().tablesInRow([n])[0]}enclosed_(t,e){const r=this.parseList(p.purgeNodes(e)),n=this.getFactory().makeBranchNode("enclose",[u.default.getInstance().row(r)],[]);return n.role=t.getAttribute("notation")||"unknown",n}multiscripts_(t,r){if(!r.length)return this.getFactory().makeEmptyNode();var e=this.parse(r.shift());if(!r.length)return e;const n=[],o=[],i=[],a=[];let s=!1,l=0;for(let t,e=0;t=r[e];e++)"MPRESCRIPTS"!==c.tagName(t)?((s?1&l?n:o:1&l?i:a).push(t),l++):(s=!0,l=0);return p.purgeNodes(n).length||p.purgeNodes(o).length?u.default.getInstance().tensor(e,this.parseList(o),this.parseList(n),this.parseList(a),this.parseList(i)):u.default.getInstance().pseudoTensor(e,this.parseList(a),this.parseList(i))}empty_(t,e){return this.getFactory().makeEmptyNode()}action_(t,e){return 1<e.length?this.parse(e[1]):this.getFactory().makeUnprocessed(t)}dummy_(t,e){const r=this.getFactory().makeUnprocessed(t);return r.role=t.tagName,r.textContent=t.textContent,r}leaf_(t,e){if(1!==e.length||e[0].nodeType===c.NodeType.TEXT_NODE)return this.getFactory().makeLeafNode(t.textContent,u.default.getInstance().font(t.getAttribute("mathvariant")));{const r=this.getFactory().makeUnprocessed(t);return r.role=e[0].tagName,p.addAttributes(r,e[0]),r}}}e.SemanticMathml=i},5952:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticNode=void 0;const n=r(5740),o=r(3588),i=r(4795);class a{constructor(t){this.id=t,this.mathml=[],this.parent=null,this.type="unknown",this.role="unknown",this.font="unknown",this.embellished=null,this.fencePointer="",this.childNodes=[],this.textContent="",this.mathmlTree=null,this.contentNodes=[],this.annotation={},this.attributes={},this.nobreaking=!1}static fromXml(t){const e=parseInt(t.getAttribute("id"),10),r=new a(e);return r.type=t.tagName,a.setAttribute(r,t,"role"),a.setAttribute(r,t,"font"),a.setAttribute(r,t,"embellished"),a.setAttribute(r,t,"fencepointer","fencePointer"),t.getAttribute("annotation")&&r.parseAnnotation(t.getAttribute("annotation")),i.addAttributes(r,t),a.processChildren(r,t),r}static setAttribute(t,e,r,n){n=n||r;e=e.getAttribute(r);e&&(t[n]=e)}static processChildren(e,t){for(const r of n.toArray(t.childNodes))if(r.nodeType===n.NodeType.TEXT_NODE)e.textContent=r.textContent;else{const t=n.toArray(r.childNodes).map(a.fromXml);t.forEach(t=>t.parent=e),"CONTENT"===n.tagName(r)?e.contentNodes=t:e.childNodes=t}}querySelectorAll(r){let n=[];for(let t,e=0;t=this.childNodes[e];e++)n=n.concat(t.querySelectorAll(r));for(let t,e=0;t=this.contentNodes[e];e++)n=n.concat(t.querySelectorAll(r));return r(this)&&n.unshift(this),n}xml(o,i){function t(t,e){const r=e.map(function(t){return t.xml(o,i)}),n=o.createElementNS("",t);for(let t,e=0;t=r[e];e++)n.appendChild(t);return n}const e=o.createElementNS("",this.type);return i||this.xmlAttributes(e),e.textContent=this.textContent,0<this.contentNodes.length&&e.appendChild(t("content",this.contentNodes)),0<this.childNodes.length&&e.appendChild(t("children",this.childNodes)),e}toString(t=!1){var e=n.parseInput("<snode/>");return n.serializeXml(this.xml(e,t))}allAttributes(){const t=[];return t.push(["role",this.role]),"unknown"!==this.font&&t.push(["font",this.font]),Object.keys(this.annotation).length&&t.push(["annotation",this.xmlAnnotation()]),this.embellished&&t.push(["embellished",this.embellished]),this.fencePointer&&t.push(["fencepointer",this.fencePointer]),t.push(["id",this.id.toString()]),t}xmlAnnotation(){const e=[];for(const r in this.annotation)this.annotation[r].forEach(function(t){e.push(r+":"+t)});return e.join(";")}toJson(){const r={};r.type=this.type;var n=this.allAttributes();for(let t,e=0;t=n[e];e++)r[t[0]]=t[1].toString();return this.textContent&&(r.$t=this.textContent),this.childNodes.length&&(r.children=this.childNodes.map(function(t){return t.toJson()})),this.contentNodes.length&&(r.content=this.contentNodes.map(function(t){return t.toJson()})),r}updateContent(t,e){var e=e?t.replace(/^[ \f\n\r\t\v\u200b]*/,"").replace(/[ \f\n\r\t\v\u200b]*$/,""):t.trim();this.textContent!==(t=t&&!e?t:e)&&(e=(0,o.lookupMeaning)(t),this.textContent=t,this.role=e.role,this.type=e.type,this.font=e.font)}addMathmlNodes(r){for(let t,e=0;t=r[e];e++)-1===this.mathml.indexOf(t)&&this.mathml.push(t)}appendChild(t){this.childNodes.push(t),this.addMathmlNodes(t.mathml),t.parent=this}replaceChild(e,r){var t,n=this.childNodes.indexOf(e);-1!==n&&(e.parent=null,(r.parent=this).childNodes[n]=r,n=e.mathml.filter(function(t){return-1===r.mathml.indexOf(t)}),t=r.mathml.filter(function(t){return-1===e.mathml.indexOf(t)}),this.removeMathmlNodes(n),this.addMathmlNodes(t))}appendContentNode(t){t&&(this.contentNodes.push(t),this.addMathmlNodes(t.mathml),t.parent=this)}removeContentNode(t){t&&-1!==(t=this.contentNodes.indexOf(t))&&this.contentNodes.slice(t,1)}equals(n){if(!n)return!1;if(this.type!==n.type||this.role!==n.role||this.textContent!==n.textContent||this.childNodes.length!==n.childNodes.length||this.contentNodes.length!==n.contentNodes.length)return!1;for(let t,e,r=0;t=this.childNodes[r],e=n.childNodes[r];r++)if(!t.equals(e))return!1;for(let t,e,r=0;t=this.contentNodes[r],e=n.contentNodes[r];r++)if(!t.equals(e))return!1;return!0}displayTree(){console.info(this.displayTree_(0))}addAnnotation(t,e){e&&this.addAnnotation_(t,e)}getAnnotation(t){return this.annotation[t]||[]}hasAnnotation(t,e){const r=this.annotation[t];return!!r&&-1!==r.indexOf(e)}parseAnnotation(t){const r=t.split(";");for(let t=0,e=r.length;t<e;t++){var n=r[t].split(":");this.addAnnotation(n[0],n[1])}}meaning(){return{type:this.type,role:this.role,font:this.font}}xmlAttributes(r){var n=this.allAttributes();for(let t,e=0;t=n[e];e++)r.setAttribute(t[0],t[1]);this.addExternalAttributes(r)}addExternalAttributes(t){for(const e in this.attributes)t.setAttribute(e,this.attributes[e])}removeMathmlNodes(r){const n=this.mathml;for(let t,e=0;t=r[e];e++){const r=n.indexOf(t);-1!==r&&n.splice(r,1)}this.mathml=n}displayTree_(e){e++;var r=Array(e).join(" ");let n="";n=(n=n+("\n"+r+this.toString())+"\n"+r+"MathmlTree:")+"\n"+r+this.mathmlTreeString()+"\n"+r+"MathML:";for(let t,e=0;t=this.mathml[e];e++)n+="\n"+r+t.toString();return n+="\n"+r+"Begin Content",this.contentNodes.forEach(function(t){n+=t.displayTree_(e)}),n=n+("\n"+r+"End Content")+("\n"+r+"Begin Children"),this.childNodes.forEach(function(t){n+=t.displayTree_(e)}),n+="\n"+r+"End Children"}mathmlTreeString(){return this.mathmlTree?this.mathmlTree.toString():"EMPTY"}addAnnotation_(t,e){const r=this.annotation[t];r?r.push(e):this.annotation[t]=[e]}}e.SemanticNode=a},6537:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticNodeFactory=void 0;const n=r(8158),o=r(8158),i=r(5952);e.SemanticNodeFactory=class{constructor(){this.leafMap=new o.SemanticNodeCollator,this.defaultMap=new n.SemanticDefault,this.idCounter_=-1}makeNode(t){return this.createNode_(t)}makeUnprocessed(t){const e=this.createNode_();return e.mathml=[t],e.mathmlTree=t,e}makeEmptyNode(){const t=this.createNode_();return t.type="empty",t}makeContentNode(t){const e=this.createNode_();return e.updateContent(t),e}makeMultipleContentNodes(e,r){const n=[];for(let t=0;t<e;t++)n.push(this.makeContentNode(r));return n}makeLeafNode(t,e){if(!t)return this.makeEmptyNode();const r=this.makeContentNode(t);r.font=e||r.font;t=this.defaultMap.retrieveNode(r);return t&&(r.type=t.type,r.role=t.role,r.font=t.font),this.leafMap.addNode(r),r}makeBranchNode(t,e,r,n){const o=this.createNode_();return n&&o.updateContent(n),o.type=t,o.childNodes=e,o.contentNodes=r,e.concat(r).forEach(function(t){(t.parent=o).addMathmlNodes(t.mathml)}),o}createNode_(t){return void 0!==t?this.idCounter_=Math.max(this.idCounter_,t):t=++this.idCounter_,new i.SemanticNode(t)}}},3882:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticComparator=e.reduce=e.sort=e.apply=e.add=void 0;const o=[];function r(t){o.push(t)}function i(r,n){for(let t,e=0;t=o[e];e++){const o=t.compare(r,n);if(0!==o)return o}return 0}function a(t){t.sort(i)}e.add=r,e.apply=i,e.sort=a,e.reduce=function(t){if(t.length<=1)return t;const e=t.slice(),r=(a(e),[]);for(var n;n=e.pop(),r.push(n),n&&e.length&&0===i(e[e.length-1],n););return r};class n{constructor(t,e=null){this.comparator=t,this.type=e,r(this)}compare(t,e){return this.type&&this.type===t.type&&this.type===e.type?this.comparator(t,e):0}}new(e.SemanticComparator=n)(function(t,e){return"simple function"===t.role?1:"simple function"===e.role?-1:0},"identifier")},5250:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticAbstractParser=void 0;const n=r(6537);e.SemanticAbstractParser=class{constructor(t){this.type=t,this.factory_=new n.SemanticNodeFactory}getFactory(){return this.factory_}setFactory(t){this.factory_=t}getType(){return this.type}parseList(r){const n=[];for(let t,e=0;t=r[e];e++)n.push(this.parse(t));return n}}},5609:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.isMembership=n.elligibleRightNeutral=n.elligibleLeftNeutral=n.compareNeutralFences=n.isNeutralFence=n.isImplicitOp=n.isImplicit=n.isPureUnit=n.isUnitCounter=n.isNumber=n.isSingletonSetContent=n.scriptedElement_=n.illegalSingleton_=n.isSetNode=n.isRightBrace=n.isLeftBrace=n.isSimpleFunction=n.singlePunctAtPosition=n.isSimpleFunctionHead=n.isLimitBase=n.isBinomial=n.lineIsLabelled=n.tableIsMultiline=n.tableIsCases=n.isFencedElement=n.tableIsMatrixOrVector=n.isTableOrMultiline=n.isElligibleEmbellishedFence=n.isFence=n.isPunctuation=n.isRelation=n.isOperator=n.isEmbellished=n.isGeneralFunctionBoundary=n.isIntegralDxBoundarySingle=n.isIntegralDxBoundary=n.isBigOpBoundary=n.isPrefixFunctionBoundary=n.isSimpleFunctionScope=n.isAccent=n.isRole=n.embellishedType=n.isType=void 0;const r=e(3588),o=e(4795);function i(t,e){return t.type===e}function a(t,e){return t.embellished===e}function s(t,e){return t.role===e}function l(t){return u(t)||p(t)}function c(t){return i(t,"operator")||a(t,"operator")}function u(t){return i(t,"relation")||a(t,"relation")}function p(t){return i(t,"punctuation")||a(t,"punctuation")}function h(t){return i(t,"fence")||a(t,"fence")}function d(t){return!!t&&(i(t,"table")||i(t,"multiline"))}function f(t){return!!t&&i(t,"fenced")&&(s(t,"leftright")||b(t))&&1===t.childNodes.length}function m(t){return!!t&&-1!==["{","﹛","{"].indexOf(t.textContent)}function y(t){return!!t&&-1!==["}","﹜","}"].indexOf(t.textContent)}function g(t){return"number"===t.type&&("integer"===t.role||"float"===t.role)}function b(t){return"neutral"===t.role||"metric"===t.role}n.isType=i,n.embellishedType=a,n.isRole=s,n.isAccent=function(t){var e=new RegExp("∞|᪲");return i(t,"fence")||i(t,"punctuation")||i(t,"operator")&&!t.textContent.match(e)||i(t,"relation")||i(t,"identifier")&&s(t,"unknown")&&!t.textContent.match(r.allLettersRegExp)&&!t.textContent.match(e)},n.isSimpleFunctionScope=function(t){t=t.childNodes;if(0===t.length)return!0;if(1<t.length)return!1;const e=t[0];if("infixop"===e.type){if("implicit"!==e.role)return!1;if(e.childNodes.some(t=>i(t,"infixop")))return!1}return!0},n.isPrefixFunctionBoundary=function(t){return c(t)&&!s(t,"division")||i(t,"appl")||l(t)},n.isBigOpBoundary=function(t){return c(t)||l(t)},n.isIntegralDxBoundary=function(t,e){return!!e&&i(e,"identifier")&&r.lookupSecondary("d",t.textContent)},n.isIntegralDxBoundarySingle=function(t){var e;return!!i(t,"identifier")&&((e=t.textContent[0])&&t.textContent[1]&&r.lookupSecondary("d",e))},n.isGeneralFunctionBoundary=l,n.isEmbellished=function(t){return t.embellished||(r.isEmbellishedType(t.type)?t.type:null)},n.isOperator=c,n.isRelation=u,n.isPunctuation=p,n.isFence=h,n.isElligibleEmbellishedFence=function(t){return!(!t||!h(t))&&(!t.embellished||function t(e){return!e.embellished||!(i(e,"tensor")&&(!i(e.childNodes[1],"empty")||!i(e.childNodes[2],"empty"))&&(!i(e.childNodes[3],"empty")||!i(e.childNodes[4],"empty")))&&(!s(e,"close")||!i(e,"tensor"))&&(!s(e,"open")||!i(e,"subscript")&&!i(e,"superscript"))&&t(e.childNodes[0])}(t))},n.isTableOrMultiline=d,n.tableIsMatrixOrVector=function(t){return!!t&&f(t)&&d(t.childNodes[0])},n.isFencedElement=f,n.tableIsCases=function(t,e){return 0<e.length&&s(e[e.length-1],"openfence")},n.tableIsMultiline=function(t){return t.childNodes.every(function(t){return t.childNodes.length<=1})},n.lineIsLabelled=function(t){return i(t,"line")&&t.contentNodes.length&&s(t.contentNodes[0],"label")},n.isBinomial=function(t){return 2===t.childNodes.length},n.isLimitBase=function t(e){return i(e,"largeop")||i(e,"limboth")||i(e,"limlower")||i(e,"limupper")||i(e,"function")&&s(e,"limit function")||(i(e,"overscore")||i(e,"underscore"))&&t(e.childNodes[0])},n.isSimpleFunctionHead=function(t){return"identifier"===t.type||"latinletter"===t.role||"greekletter"===t.role||"otherletter"===t.role},n.singlePunctAtPosition=function(t,e,r){return 1===e.length&&("punctuation"===t[r].type||"punctuation"===t[r].embellished)&&t[r]===e[0]},n.isSimpleFunction=function(t){return i(t,"identifier")&&s(t,"simple function")},n.isLeftBrace=m,n.isRightBrace=y,n.isSetNode=function(t){return m(t.contentNodes[0])&&y(t.contentNodes[1])},n.illegalSingleton_=["punctuation","punctuated","relseq","multirel","table","multiline","cases","inference"],n.scriptedElement_=["limupper","limlower","limboth","subscript","superscript","underscore","overscore","tensor"],n.isSingletonSetContent=function t(e){var r=e.type;return-1===n.illegalSingleton_.indexOf(r)&&("infixop"!==r||"implicit"===e.role)&&("fenced"===r?"leftright"!==e.role||t(e.childNodes[0]):-1===n.scriptedElement_.indexOf(r)||t(e.childNodes[0]))},n.isNumber=g,n.isUnitCounter=function(t){return g(t)||"vulgar"===t.role||"mixed"===t.role},n.isPureUnit=function(t){var e=t.childNodes;return"unit"===t.role&&(!e.length||"unit"===e[0].role)},n.isImplicit=function(t){return"implicit"===t.role||"unit"===t.role&&!!t.contentNodes.length&&t.contentNodes[0].textContent===r.invisibleTimes()},n.isImplicitOp=function(t){return"infixop"===t.type&&"implicit"===t.role},n.isNeutralFence=b,n.compareNeutralFences=function(t,e){return b(t)&&b(e)&&(0,o.getEmbellishedInner)(t).textContent===(0,o.getEmbellishedInner)(e).textContent},n.elligibleLeftNeutral=function(t){return!!b(t)&&(!t.embellished||"superscript"!==t.type&&"subscript"!==t.type&&("tensor"!==t.type||"empty"===t.childNodes[3].type&&"empty"===t.childNodes[4].type))},n.elligibleRightNeutral=function(t){return!!b(t)&&(!t.embellished||"tensor"!==t.type||"empty"===t.childNodes[1].type&&"empty"===t.childNodes[2].type)},n.isMembership=function(t){return["element","nonelement","reelement","renonelement"].includes(t.role)}},3308:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0});const m=r(5740),s=r(3588),o=r(7516),n=r(6537),c=r(5609),u=r(4795);class y{constructor(){this.funcAppls={},this.factory_=new n.SemanticNodeFactory,o.updateFactory(this.factory_)}static getInstance(){return y.instance=y.instance||new y,y.instance}static tableToMultiline(r){if(c.tableIsMultiline(r)){r.type="multiline";for(let t,e=0;t=r.childNodes[e];e++)y.rowToLine_(t,"multiline");1===r.childNodes.length&&!c.lineIsLabelled(r.childNodes[0])&&c.isFencedElement(r.childNodes[0].childNodes[0])&&y.tableToMatrixOrVector_(y.rewriteFencedLine_(r)),y.binomialForm_(r),y.classifyMultiline(r)}else y.classifyTable(r)}static number(t){"unknown"!==t.type&&"identifier"!==t.type||(t.type="number"),y.numberRole_(t),y.exprFont_(t)}static classifyMultiline(t){let e=0;var r=t.childNodes.length;let n;for(;e<r&&(!(n=t.childNodes[e])||!n.childNodes.length);)e++;if(!(e>=r)){const o=n.childNodes[0].role;"unknown"!==o&&t.childNodes.every(function(t){t=t.childNodes[0];return!t||t.role===o&&(c.isType(t,"relation")||c.isType(t,"relseq"))})&&(t.role=o)}}static classifyTable(t){var e=y.computeColumns_(t);y.classifyByColumns_(t,e,"equality")||y.classifyByColumns_(t,e,"inequality",["equality"])||y.classifyByColumns_(t,e,"arrow")||y.detectCaleyTable(t)}static detectCaleyTable(t){if(!t.mathmlTree)return!1;const e=t.mathmlTree,r=e.getAttribute("columnlines"),n=e.getAttribute("rowlines");return!(!r||!n||!y.cayleySpacing(r)||!y.cayleySpacing(n)||(t.role="cayley",0))}static cayleySpacing(t){const e=t.split(" ");return("solid"===e[0]||"dashed"===e[0])&&e.slice(1).every(t=>"none"===t)}static proof(t,e,r){e=y.separateSemantics(e);return y.getInstance().proof(t,e,r)}static findSemantics(t,e,r){r=null==r?null:r,t=y.getSemantics(t);return!(!t||!t[e]||null!=r&&t[e]!==r)}static getSemantics(t){t=t.getAttribute("semantics");return t?y.separateSemantics(t):null}static removePrefix(t){const[,...e]=t.split("_");return e.join("_")}static separateSemantics(t){const r={};return t.split(";").forEach(function(t){var[t,e]=t.split(":");r[y.removePrefix(t)]=e}),r}static matchSpaces_(r,n){for(let t,e=0;t=n[e];e++){const n=r[e].mathmlTree,i=r[e+1].mathmlTree;var o;n&&i&&((o=n.nextSibling)&&o!==i&&(o=y.getSpacer_(o))&&(t.mathml.push(o),t.mathmlTree=o,t.role="space"))}}static getSpacer_(t){if("MSPACE"===m.tagName(t))return t;for(;u.hasEmptyTag(t)&&1===t.childNodes.length;)if(t=t.childNodes[0],"MSPACE"===m.tagName(t))return t;return null}static fenceToPunct_(t){var e=y.FENCE_TO_PUNCT_[t.role];if(e){for(;t.embellished;)t.embellished="punctuation",c.isRole(t,"subsup")||c.isRole(t,"underover")||(t.role=e),t=t.childNodes[0];t.type="punctuation",t.role=e}}static classifyFunction_(e,r){if("appl"===e.type||"bigop"===e.type||"integral"===e.type)return"";if(r[0]&&r[0].textContent===s.functionApplication()){y.getInstance().funcAppls[e.id]=r.shift();let t="simple function";return o.run("simple2prefix",e),"prefix function"!==e.role&&"limit function"!==e.role||(t=e.role),y.propagateFunctionRole_(e,t),"prefix"}return y.CLASSIFY_FUNCTION_[e.role]||(c.isSimpleFunctionHead(e)?"simple":"")}static propagateFunctionRole_(t,e){t&&"infixop"!==t.type&&(c.isRole(t,"subsup")||c.isRole(t,"underover")||(t.role=e),y.propagateFunctionRole_(t.childNodes[0],e))}static getFunctionOp_(r,n){if(n(r))return r;for(let t,e=0;t=r.childNodes[e];e++){const r=y.getFunctionOp_(t,n);if(r)return r}return null}static tableToMatrixOrVector_(t){const r=t.childNodes[0];c.isType(r,"multiline")?y.tableToVector_(t):y.tableToMatrix_(t),t.contentNodes.forEach(r.appendContentNode.bind(r));for(let t,e=0;t=r.childNodes[e];e++)y.assignRoleToRow_(t,y.getComponentRoles_(r));return r.parent=null,r}static tableToVector_(t){const e=t.childNodes[0];e.type="vector",1!==e.childNodes.length?y.binomialForm_(e):y.tableToSquare_(t)}static binomialForm_(t){c.isBinomial(t)&&(t.role="binomial",t.childNodes[0].role="binomial",t.childNodes[1].role="binomial")}static tableToMatrix_(t){const e=t.childNodes[0];e.type="matrix",e.childNodes&&0<e.childNodes.length&&e.childNodes[0].childNodes&&e.childNodes.length===e.childNodes[0].childNodes.length?y.tableToSquare_(t):e.childNodes&&1===e.childNodes.length&&(e.role="rowvector")}static tableToSquare_(t){const e=t.childNodes[0];c.isNeutralFence(t)?e.role="determinant":e.role="squarematrix"}static getComponentRoles_(t){var e=t.role;return e&&"unknown"!==e?e:t.type.toLowerCase()||"unknown"}static tableToCases_(r,t){for(let t,e=0;t=r.childNodes[e];e++)y.assignRoleToRow_(t,"cases");return r.type="cases",r.appendContentNode(t),c.tableIsMultiline(r)&&y.binomialForm_(r),r}static rewriteFencedLine_(t){const e=t.childNodes[0],r=t.childNodes[0].childNodes[0],n=t.childNodes[0].childNodes[0].childNodes[0];return r.parent=t.parent,t.parent=r,n.parent=e,r.childNodes=[t],e.childNodes=[n],r}static rowToLine_(e,t){t=t||"unknown";c.isType(e,"row")&&(e.type="line",e.role=t,1===e.childNodes.length&&c.isType(e.childNodes[0],"cell")&&(e.childNodes=e.childNodes[0].childNodes,e.childNodes.forEach(function(t){t.parent=e})))}static assignRoleToRow_(t,e){c.isType(t,"line")?t.role=e:c.isType(t,"row")&&(t.role=e,t.childNodes.forEach(function(t){c.isType(t,"cell")&&(t.role=e)}))}static nextSeparatorFunction_(t){let e;if(t){if(t.match(/^\s+$/))return null;e=t.replace(/\s/g,"").split("").filter(function(t){return t})}else e=[","];return function(){return 1<e.length?e.shift():e[0]}}static numberRole_(t){if("unknown"===t.role){const e=[...t.textContent].filter(t=>t.match(/[^\s]/)),r=e.map(s.lookupMeaning);if(r.every(function(t){return"number"===t.type&&"integer"===t.role||"punctuation"===t.type&&"comma"===t.role}))return t.role="integer",void("0"===e[0]&&t.addAnnotation("general","basenumber"));r.every(function(t){return"number"===t.type&&"integer"===t.role||"punctuation"===t.type})?t.role="float":t.role="othernumber"}}static exprFont_(t){var e;"unknown"===t.font&&(e=[...t.textContent].map(s.lookupMeaning).reduce(function(t,e){return t&&e.font&&"unknown"!==e.font&&e.font!==t?"unknown"===t?e.font:null:t},"unknown"))&&(t.font=e)}static purgeFences_(e){const r=e.rel,n=e.comp,o=[],i=[];for(;0<r.length;){const e=r.shift();let t=n.shift();c.isElligibleEmbellishedFence(e)?(o.push(e),i.push(t)):(y.fenceToPunct_(e),t.push(e),t=t.concat(n.shift()),n.unshift(t))}return i.push(n.shift()),{rel:o,comp:i}}static rewriteFencedNode_(t){var e=t.contentNodes[0],r=t.contentNodes[1];let n=y.rewriteFence_(t,e);return t.contentNodes[0]=n.fence,n=y.rewriteFence_(n.node,r),t.contentNodes[1]=n.fence,(t.contentNodes[0].parent=t).contentNodes[1].parent=t,n.node.parent=null,n.node}static rewriteFence_(t,e){if(!e.embellished)return{node:t,fence:e};const r=e.childNodes[0],n=y.rewriteFence_(t,r);return c.isType(e,"superscript")||c.isType(e,"subscript")||c.isType(e,"tensor")?(c.isRole(e,"subsup")||(e.role=t.role),r!==n.node&&(e.replaceChild(r,n.node),r.parent=t),y.propagateFencePointer_(e,r),{node:e,fence:n.fence}):(e.replaceChild(r,n.fence),e.mathmlTree&&-1===e.mathml.indexOf(e.mathmlTree)&&e.mathml.push(e.mathmlTree),{node:n.node,fence:e})}static propagateFencePointer_(t,e){t.fencePointer=e.fencePointer||e.id.toString(),t.embellished=null}static classifyByColumns_(t,e,r,n){return!!(3===e.length&&y.testColumns_(e,1,t=>y.isPureRelation_(t,r))||2===e.length&&(y.testColumns_(e,1,t=>y.isEndRelation_(t,r)||y.isPureRelation_(t,r))||y.testColumns_(e,0,t=>y.isEndRelation_(t,r,!0)||y.isPureRelation_(t,r))))&&(t.role=r,!0)}static isEndRelation_(t,e,r){r=r?t.childNodes.length-1:0;return c.isType(t,"relseq")&&c.isRole(t,e)&&c.isType(t.childNodes[r],"empty")}static isPureRelation_(t,e){return c.isType(t,"relation")&&c.isRole(t,e)}static computeColumns_(e){const n=[];for(let r,t=0;r=e.childNodes[t];t++)for(let t,e=0;t=r.childNodes[e];e++)n[e]?n[e].push(t):n[e]=[t];return n}static testColumns_(t,e,r){const n=t[e];return!!n&&n.some(function(t){return t.childNodes.length&&r(t.childNodes[0])})&&n.every(function(t){return!t.childNodes.length||r(t.childNodes[0])})}setNodeFactory(t){y.getInstance().factory_=t,o.updateFactory(y.getInstance().factory_)}getNodeFactory(){return y.getInstance().factory_}identifierNode(t,e,r){if("MathML-Unit"===r)t.type="identifier",t.role="unit";else if(!e&&1===t.textContent.length&&("integer"===t.role||"latinletter"===t.role||"greekletter"===t.role)&&"normal"===t.font)return t.font="italic",o.run("simpleNamedFunction",t);return"unknown"===t.type&&(t.type="identifier"),y.exprFont_(t),o.run("simpleNamedFunction",t)}implicitNode(t){if(t=y.getInstance().getMixedNumbers_(t),1===(t=y.getInstance().combineUnits_(t)).length)return t[0];t=y.getInstance().implicitNode_(t);return o.run("combine_juxtaposition",t)}text(t,e){return y.exprFont_(t),t.type="text","MS"===e?t.role="string":"MSPACE"!==e&&!t.textContent.match(/^\s*$/)||(t.role="space"),t}row(t){return 0===(t=t.filter(function(t){return!c.isType(t,"empty")})).length?y.getInstance().factory_.makeEmptyNode():(t=y.getInstance().getFencesInRow_(t),t=y.getInstance().tablesInRow(t),t=y.getInstance().getPunctuationInRow_(t),t=y.getInstance().getTextInRow_(t),t=y.getInstance().getFunctionsInRow_(t),y.getInstance().relationsInRow_(t))}limitNode(t,e){if(!e.length)return y.getInstance().factory_.makeEmptyNode();let r,n=e[0],o="unknown";if(!e[1])return n;if(c.isLimitBase(n)){var i=(r=y.MML_TO_LIMIT_[t]).length;if(o=r.type,e=e.slice(0,r.length+1),1===i&&c.isAccent(e[1])||2===i&&c.isAccent(e[1])&&c.isAccent(e[2]))return r=y.MML_TO_BOUNDS_[t],y.getInstance().accentNode_(n,e,r.type,r.length,r.accent);if(2===i){if(c.isAccent(e[1]))return n=y.getInstance().accentNode_(n,[n,e[1]],{MSUBSUP:"subscript",MUNDEROVER:"underscore"}[t],1,!0),e[2]?y.getInstance().makeLimitNode_(n,[n,e[2]],null,"limupper"):n;if(e[2]&&c.isAccent(e[2]))return n=y.getInstance().accentNode_(n,[n,e[2]],{MSUBSUP:"superscript",MUNDEROVER:"overscore"}[t],1,!0),y.getInstance().makeLimitNode_(n,[n,e[1]],null,"limlower");e[i]||(o="limlower")}return y.getInstance().makeLimitNode_(n,e,null,o)}return r=y.MML_TO_BOUNDS_[t],y.getInstance().accentNode_(n,e,r.type,r.length,r.accent)}tablesInRow(t){let r=u.partitionNodes(t,c.tableIsMatrixOrVector),n=[];for(let t,e=0;t=r.rel[e];e++)(n=n.concat(r.comp.shift())).push(y.tableToMatrixOrVector_(t));n=n.concat(r.comp.shift()),r=u.partitionNodes(n,c.isTableOrMultiline),n=[];for(let t,e=0;t=r.rel[e];e++){const o=r.comp.shift();c.tableIsCases(t,o)&&y.tableToCases_(t,o.pop()),(n=n.concat(o)).push(t)}return n.concat(r.comp.shift())}mfenced(e,r,t,n){if(t&&0<n.length){const e=y.nextSeparatorFunction_(t),r=[n.shift()];n.forEach(t=>{r.push(y.getInstance().factory_.makeContentNode(e())),r.push(t)}),n=r}return e&&r?y.getInstance().horizontalFencedNode_(y.getInstance().factory_.makeContentNode(e),y.getInstance().factory_.makeContentNode(r),n):(e&&n.unshift(y.getInstance().factory_.makeContentNode(e)),r&&n.push(y.getInstance().factory_.makeContentNode(r)),y.getInstance().row(n))}fractionLikeNode(t,e,r,n){let o;if(n||!u.isZeroLength(r))return o=y.getInstance().fractionNode_(t,e),n&&o.addAnnotation("general","bevelled"),o;{const r=y.getInstance().factory_.makeBranchNode("line",[t],[]),n=y.getInstance().factory_.makeBranchNode("line",[e],[]);return o=y.getInstance().factory_.makeBranchNode("multiline",[r,n],[]),y.binomialForm_(o),y.classifyMultiline(o),o}}tensor(t,e,r,n,o){const i=y.getInstance().factory_.makeBranchNode("tensor",[t,y.getInstance().scriptNode_(e,"leftsub"),y.getInstance().scriptNode_(r,"leftsuper"),y.getInstance().scriptNode_(n,"rightsub"),y.getInstance().scriptNode_(o,"rightsuper")],[]);return i.role=t.role,i.embellished=c.isEmbellished(t),i}pseudoTensor(t,e,r){var n=t=>!c.isType(t,"empty"),o=e.filter(n).length,n=r.filter(n).length;if(!o&&!n)return t;const i=o?n?"MSUBSUP":"MSUB":"MSUP",a=[t];return o&&a.push(y.getInstance().scriptNode_(e,"rightsub",!0)),n&&a.push(y.getInstance().scriptNode_(r,"rightsuper",!0)),y.getInstance().limitNode(i,a)}font(t){return y.MATHJAX_FONTS[t]||t}proof(t,e,r){if(e.inference||e.axiom||console.log("Noise"),e.axiom){const e=y.getInstance().cleanInference(t.childNodes),n=e.length?y.getInstance().factory_.makeBranchNode("inference",r(e),[]):y.getInstance().factory_.makeEmptyNode();return n.role="axiom",n.mathmlTree=t,n}const n=y.getInstance().inference(t,e,r);return e.proof&&(n.role="proof",n.childNodes[0].role="final"),n}inference(t,e,r){if(e.inferenceRule){const e=y.getInstance().getFormulas(t,[],r);return y.getInstance().factory_.makeBranchNode("inference",[e.conclusion,e.premises],[])}const n=e.labelledRule,o=m.toArray(t.childNodes),i=[],a=("left"!==n&&"both"!==n||i.push(y.getInstance().getLabel(t,o,r,"left")),"right"!==n&&"both"!==n||i.push(y.getInstance().getLabel(t,o,r,"right")),y.getInstance().getFormulas(t,o,r)),s=y.getInstance().factory_.makeBranchNode("inference",[a.conclusion,a.premises],i);return s.mathmlTree=t,s}getLabel(t,e,r,n){const o=y.getInstance().findNestedRow(e,"prooflabel",n),i=y.getInstance().factory_.makeBranchNode("rulelabel",r(m.toArray(o.childNodes)),[]);return i.role=n,i.mathmlTree=o,i}getFormulas(t,e,r){const n=e.length?y.getInstance().findNestedRow(e,"inferenceRule"):t,o="up"===y.getSemantics(n).inferenceRule,i=o?n.childNodes[1]:n.childNodes[0],a=o?n.childNodes[0]:n.childNodes[1],s=i.childNodes[0].childNodes[0],l=m.toArray(s.childNodes[0].childNodes),c=[];let u=1;for(const t of l)u%2&&c.push(t.childNodes[0]),u++;const p=r(c),h=r(m.toArray(a.childNodes[0].childNodes))[0],d=y.getInstance().factory_.makeBranchNode("premises",p,[]),f=(d.mathmlTree=s,y.getInstance().factory_.makeBranchNode("conclusion",[h],[]));return f.mathmlTree=a.childNodes[0].childNodes[0],{conclusion:f,premises:d}}findNestedRow(t,e,r){return y.getInstance().findNestedRow_(t,e,0,r)}cleanInference(t){return m.toArray(t).filter(function(t){return"MSPACE"!==m.tagName(t)})}operatorNode(t){return"unknown"===t.type&&(t.type="operator"),o.run("multioperator",t)}implicitNode_(t){const e=y.getInstance().factory_.makeMultipleContentNodes(t.length-1,s.invisibleTimes()),r=(y.matchSpaces_(t,e),y.getInstance().infixNode_(t,e[0]));return r.role="implicit",e.forEach(function(t){t.parent=r}),r.contentNodes=e,r}infixNode_(t,e){const r=y.getInstance().factory_.makeBranchNode("infixop",t,[e],u.getEmbellishedInner(e).textContent);return r.role=e.role,o.run("propagateSimpleFunction",r)}explicitMixed_(r){var n=u.partitionNodes(r,function(t){return t.textContent===s.invisiblePlus()});if(!n.rel.length)return r;let o=[];for(let t,e=0;t=n.rel[e];e++){const s=n.comp[e],i=n.comp[e+1],a=s.length-1;if(s[a]&&i[0]&&c.isType(s[a],"number")&&!c.isRole(s[a],"mixed")&&c.isType(i[0],"fraction")){const r=y.getInstance().factory_.makeBranchNode("number",[s[a],i[0]],[]);r.role="mixed",(o=o.concat(s.slice(0,a))).push(r),i.shift()}else(o=o.concat(s)).push(t)}return o.concat(n.comp[n.comp.length-1])}concatNode_(t,e,r){if(0===e.length)return t;const n=e.map(function(t){return u.getEmbellishedInner(t).textContent}).join(" "),o=y.getInstance().factory_.makeBranchNode(r,[t],e,n);return 1<e.length&&(o.role="multiop"),o}prefixNode_(t,e){const r=u.partitionNodes(e,t=>c.isRole(t,"subtraction"));let n=y.getInstance().concatNode_(t,r.comp.pop(),"prefixop");for(1===n.contentNodes.length&&"addition"===n.contentNodes[0].role&&"+"===n.contentNodes[0].textContent&&(n.role="positive");0<r.rel.length;)(n=y.getInstance().concatNode_(n,[r.rel.pop()],"prefixop")).role="negative",n=y.getInstance().concatNode_(n,r.comp.pop(),"prefixop");return n}postfixNode_(t,e){return e.length?y.getInstance().concatNode_(t,e,"postfixop"):t}combineUnits_(e){const r=u.partitionNodes(e,function(t){return!c.isRole(t,"unit")});if(e.length===r.rel.length)return r.rel;const n=[];var o,i;do{const e=r.comp.shift();o=r.rel.shift();let t=null;(i=n.pop())&&(e.length&&c.isUnitCounter(i)?e.unshift(i):n.push(i)),1===e.length&&(t=e.pop()),1<e.length&&((t=y.getInstance().implicitNode_(e)).role="unit"),t&&n.push(t),o&&n.push(o)}while(o);return n}getMixedNumbers_(t){const r=u.partitionNodes(t,function(t){return c.isType(t,"fraction")&&c.isRole(t,"vulgar")});if(!r.rel.length)return t;let n=[];for(let t,e=0;t=r.rel[e];e++){const o=r.comp[e],i=o.length-1;if(o[i]&&c.isType(o[i],"number")&&(c.isRole(o[i],"integer")||c.isRole(o[i],"float"))){const r=y.getInstance().factory_.makeBranchNode("number",[o[i],t],[]);r.role="mixed",(n=n.concat(o.slice(0,i))).push(r)}else(n=n.concat(o)).push(t)}return n.concat(r.comp[r.comp.length-1])}getTextInRow_(t){if(t.length<=1)return t;var r=u.partitionNodes(t,t=>c.isType(t,"text"));if(0===r.rel.length)return t;const n=[];let o=r.comp[0];0<o.length&&n.push(y.getInstance().row(o));for(let t,e=0;t=r.rel[e];e++)n.push(t),0<(o=r.comp[e+1]).length&&n.push(y.getInstance().row(o));return[y.getInstance().dummyNode_(n)]}relationsInRow_(t){const e=u.partitionNodes(t,c.isRelation),r=e.rel[0];if(!r)return y.getInstance().operationsInRow_(t);if(1===t.length)return t[0];t=e.comp.map(y.getInstance().operationsInRow_);let n;return e.rel.some(function(t){return!t.equals(r)})?(n=y.getInstance().factory_.makeBranchNode("multirel",t,e.rel),e.rel.every(function(t){return t.role===r.role})&&(n.role=r.role)):(n=y.getInstance().factory_.makeBranchNode("relseq",t,e.rel,u.getEmbellishedInner(r).textContent)).role=r.role,n}operationsInRow_(t){if(0===t.length)return y.getInstance().factory_.makeEmptyNode();if(1===(t=y.getInstance().explicitMixed_(t)).length)return t[0];const e=[];for(;0<t.length&&c.isOperator(t[0]);)e.push(t.shift());if(0===t.length)return y.getInstance().prefixNode_(e.pop(),e);if(1===t.length)return y.getInstance().prefixNode_(t[0],e);t=o.run("convert_juxtaposition",t);var r=u.sliceNodes(t,c.isOperator),n=y.getInstance().prefixNode_(y.getInstance().implicitNode(r.head),e);return r.div?y.getInstance().operationsTree_(r.tail,n,r.div):n}operationsTree_(t,e,r,n){const o=n||[];if(0===t.length){if(o.unshift(r),"infixop"!==e.type)return y.getInstance().postfixNode_(e,o);{const t=y.getInstance().postfixNode_(e.childNodes.pop(),o);return e.appendChild(t),e}}n=u.sliceNodes(t,c.isOperator);if(0===n.head.length)return o.push(n.div),y.getInstance().operationsTree_(n.tail,e,r,o);t=y.getInstance().prefixNode_(y.getInstance().implicitNode(n.head),o),e=y.getInstance().appendOperand_(e,r,t);return n.div?y.getInstance().operationsTree_(n.tail,e,n.div,[]):e}appendOperand_(t,e,r){return"infixop"!==t.type?y.getInstance().infixNode_([t,r],e):y.getInstance().appendDivisionOp_(t,e,r)||(y.getInstance().appendExistingOperator_(t,e,r)?t:"multiplication"===e.role?y.getInstance().appendMultiplicativeOp_(t,e,r):y.getInstance().appendAdditiveOp_(t,e,r))}appendDivisionOp_(t,e,r){return"division"===e.role?c.isImplicit(t)?y.getInstance().infixNode_([t,r],e):y.getInstance().appendLastOperand_(t,e,r):"division"===t.role?y.getInstance().infixNode_([t,r],e):null}appendLastOperand_(t,e,r){let n=t,o=t.childNodes[t.childNodes.length-1];for(;o&&"infixop"===o.type&&!c.isImplicit(o);)o=(n=o).childNodes[t.childNodes.length-1];r=y.getInstance().infixNode_([n.childNodes.pop(),r],e);return n.appendChild(r),t}appendMultiplicativeOp_(t,e,r){if(c.isImplicit(t))return y.getInstance().infixNode_([t,r],e);let n=t,o=t.childNodes[t.childNodes.length-1];for(;o&&"infixop"===o.type&&!c.isImplicit(o);)o=(n=o).childNodes[t.childNodes.length-1];r=y.getInstance().infixNode_([n.childNodes.pop(),r],e);return n.appendChild(r),t}appendAdditiveOp_(t,e,r){return y.getInstance().infixNode_([t,r],e)}appendExistingOperator_(t,e,r){return!(!t||"infixop"!==t.type||c.isImplicit(t))&&(t.contentNodes[0].equals(e)?(t.appendContentNode(e),t.appendChild(r),!0):y.getInstance().appendExistingOperator_(t.childNodes[t.childNodes.length-1],e,r))}getFencesInRow_(t){let e=u.partitionNodes(t,c.isFence);t=(e=y.purgeFences_(e)).comp.shift();return y.getInstance().fences_(e.rel,e.comp,[],[t])}fences_(t,e,r,n){if(0===t.length&&0===r.length)return n[0];const o=t=>c.isRole(t,"open");if(0===t.length){const t=n.shift();for(;0<r.length;){if(o(r[0])){const e=r.shift();y.fenceToPunct_(e),t.push(e)}else{const e=u.sliceNodes(r,o),i=e.head.length-1,a=y.getInstance().neutralFences_(e.head,n.slice(0,i));n=n.slice(i),t.push(...a),e.div&&e.tail.unshift(e.div),r=e.tail}t.push(...n.shift())}return t}const i=r[r.length-1],a=t[0].role;if("open"===a||c.isNeutralFence(t[0])&&(!i||!c.compareNeutralFences(t[0],i))){r.push(t.shift());const o=e.shift();return o&&n.push(o),y.getInstance().fences_(t,e,r,n)}if(i&&"close"===a&&"open"===i.role){const o=y.getInstance().horizontalFencedNode_(r.pop(),t.shift(),n.pop());return n.push(n.pop().concat([o],e.shift())),y.getInstance().fences_(t,e,r,n)}if(i&&c.compareNeutralFences(t[0],i)){if(!c.elligibleLeftNeutral(i)||!c.elligibleRightNeutral(t[0])){r.push(t.shift());const o=e.shift();return o&&n.push(o),y.getInstance().fences_(t,e,r,n)}const o=y.getInstance().horizontalFencedNode_(r.pop(),t.shift(),n.pop());return n.push(n.pop().concat([o],e.shift())),y.getInstance().fences_(t,e,r,n)}if(i&&"close"===a&&c.isNeutralFence(i)&&r.some(o)){const i=u.sliceNodes(r,o,!0),a=n.pop(),c=n.length-i.tail.length+1,l=y.getInstance().neutralFences_(i.tail,n.slice(c));n=n.slice(0,c);var s=y.getInstance().horizontalFencedNode_(i.div,t.shift(),n.pop().concat(l,a));return n.push(n.pop().concat([s],e.shift())),y.getInstance().fences_(t,e,i.head,n)}const l=t.shift();return y.fenceToPunct_(l),n.push(n.pop().concat([l],e.shift())),y.getInstance().fences_(t,e,r,n)}neutralFences_(t,e){if(0===t.length)return t;if(1===t.length)return y.fenceToPunct_(t[0]),t;const r=t.shift();if(!c.elligibleLeftNeutral(r)){y.fenceToPunct_(r);const n=e.shift();return n.unshift(r),n.concat(y.getInstance().neutralFences_(t,e))}const n=u.sliceNodes(t,function(t){return c.compareNeutralFences(t,r)});if(!n.div){y.fenceToPunct_(r);const n=e.shift();return n.unshift(r),n.concat(y.getInstance().neutralFences_(t,e))}if(!c.elligibleRightNeutral(n.div))return y.fenceToPunct_(n.div),t.unshift(r),y.getInstance().neutralFences_(t,e);const o=y.getInstance().combineFencedContent_(r,n.div,n.head,e);if(0<n.tail.length){const t=o.shift(),e=y.getInstance().neutralFences_(n.tail,o);return t.concat(e)}return o[0]}combineFencedContent_(t,e,r,n){if(0===r.length){const r=y.getInstance().horizontalFencedNode_(t,e,n.shift());return 0<n.length?n[0].unshift(r):n=[[r]],n}const o=n.shift(),i=r.length-1,a=n.slice(0,i),s=(n=n.slice(i)).shift(),l=y.getInstance().neutralFences_(r,a);o.push(...l),o.push(...s);r=y.getInstance().horizontalFencedNode_(t,e,o);return 0<n.length?n[0].unshift(r):n=[[r]],n}horizontalFencedNode_(t,e,r){r=y.getInstance().row(r);let n=y.getInstance().factory_.makeBranchNode("fenced",[r],[t,e]);return"open"===t.role?(y.getInstance().classifyHorizontalFence_(n),n=o.run("propagateComposedFunction",n)):n.role=t.role,n=o.run("detect_cycle",n),y.rewriteFencedNode_(n)}classifyHorizontalFence_(t){t.role="leftright";var e=t.childNodes;if(c.isSetNode(t)&&!(1<e.length))if(0===e.length||"empty"===e[0].type)t.role="set empty";else{var r=e[0].type;if(1===e.length&&c.isSingletonSetContent(e[0]))t.role="set singleton";else{var n=e[0].role;if("punctuated"===r&&"sequence"===n){if("comma"!==e[0].contentNodes[0].role)return 1!==e[0].contentNodes.length||"vbar"!==e[0].contentNodes[0].role&&"colon"!==e[0].contentNodes[0].role?void 0:(t.role="set extended",void y.getInstance().setExtension_(t));t.role="set collection"}}}}setExtension_(t){const e=t.childNodes[0].childNodes[0];e&&"infixop"===e.type&&1===e.contentNodes.length&&c.isMembership(e.contentNodes[0])&&(e.addAnnotation("set","intensional"),e.contentNodes[0].addAnnotation("set","intensional"))}getPunctuationInRow_(r){if(r.length<=1)return r;const n=t=>{t=t.type;return"punctuation"===t||"text"===t||"operator"===t||"relation"===t},t=u.partitionNodes(r,function(t){if(!c.isPunctuation(t))return!1;if(c.isPunctuation(t)&&!c.isRole(t,"ellipsis"))return!0;t=r.indexOf(t);if(0===t)return!r[1]||!n(r[1]);var e=r[t-1];if(t===r.length-1)return!n(e);t=r[t+1];return!n(e)||!n(t)});if(0===t.rel.length)return r;const e=[];let o=t.comp.shift(),i=(0<o.length&&e.push(y.getInstance().row(o)),0);for(;0<t.comp.length;)e.push(t.rel[i++]),0<(o=t.comp.shift()).length&&e.push(y.getInstance().row(o));return[y.getInstance().punctuatedNode_(e,t.rel)]}punctuatedNode_(e,t){const r=y.getInstance().factory_.makeBranchNode("punctuated",e,t);if(t.length===e.length){const e=t[0].role;if("unknown"!==e&&t.every(function(t){return t.role===e}))return r.role=e,r}return c.singlePunctAtPosition(e,t,0)?r.role="startpunct":c.singlePunctAtPosition(e,t,e.length-1)?r.role="endpunct":t.every(t=>c.isRole(t,"dummy"))?r.role="text":t.every(t=>c.isRole(t,"space"))?r.role="space":r.role="sequence",r}dummyNode_(t){const e=y.getInstance().factory_.makeMultipleContentNodes(t.length-1,s.invisibleComma());return e.forEach(function(t){t.role="dummy"}),y.getInstance().punctuatedNode_(t,e)}accentRole_(t,e){if(!c.isAccent(t))return!1;var r=t.textContent,r=s.lookupSecondary("bar",r)||s.lookupSecondary("tilde",r)||t.role;return t.role="underscore"===e?"underaccent":"overaccent",t.addAnnotation("accent",r),!0}accentNode_(t,e,r,n,o){var i=(e=e.slice(0,n+1))[1],a=e[2];let s;if(!o&&a&&((s=y.getInstance().factory_.makeBranchNode("subscript",[t,i],[])).role="subsup",e=[s,a],r="superscript"),o){const n=y.getInstance().accentRole_(i,r);a&&(r=y.getInstance().accentRole_(a,"overscore")&&!n?(e=[s=y.getInstance().factory_.makeBranchNode("overscore",[t,a],[]),i],"underscore"):(e=[s=y.getInstance().factory_.makeBranchNode("underscore",[t,i],[]),a],"overscore"),s.role="underover")}return y.getInstance().makeLimitNode_(t,e,s,r)}makeLimitNode_(t,e,r,n){if("limupper"===n&&"limlower"===t.type)return t.childNodes.push(e[1]),(e[1].parent=t).type="limboth",t;if("limlower"===n&&"limupper"===t.type)return t.childNodes.splice(1,-1,e[1]),(e[1].parent=t).type="limboth",t;const o=y.getInstance().factory_.makeBranchNode(n,e,[]),i=c.isEmbellished(t);return r&&(r.embellished=i),o.embellished=i,o.role=t.role,o}getFunctionsInRow_(t,e){const r=e||[];if(0===t.length)return r;var e=t.shift(),n=y.classifyFunction_(e,t);if(!n)return r.push(e),y.getInstance().getFunctionsInRow_(t,r);t=y.getInstance().getFunctionsInRow_(t,[]),e=y.getInstance().getFunctionArgs_(e,t,n);return r.concat(e)}getFunctionArgs_(t,e,r){let n,o,i;switch(r){case"integral":{const r=y.getInstance().getIntegralArgs_(e);if(!r.intvar&&!r.integrand.length)return r.rest.unshift(t),r.rest;const n=y.getInstance().row(r.integrand);return i=y.getInstance().integralNode_(t,n,r.intvar),r.rest.unshift(i),r.rest}case"prefix":if(e[0]&&"fenced"===e[0].type){const r=e.shift();return c.isNeutralFence(r)||(r.role="leftright"),i=y.getInstance().functionNode_(t,r),e.unshift(i),e}if((n=u.sliceNodes(e,c.isPrefixFunctionBoundary)).head.length)o=y.getInstance().row(n.head),n.div&&n.tail.unshift(n.div);else{if(!n.div||!c.isType(n.div,"appl"))return e.unshift(t),e;o=n.div}return i=y.getInstance().functionNode_(t,o),n.tail.unshift(i),n.tail;case"bigop":return(n=u.sliceNodes(e,c.isBigOpBoundary)).head.length?(o=y.getInstance().row(n.head),i=y.getInstance().bigOpNode_(t,o),n.div&&n.tail.unshift(n.div),n.tail.unshift(i),n.tail):(e.unshift(t),e);default:{if(0===e.length)return[t];const r=e[0];return"fenced"===r.type&&!c.isNeutralFence(r)&&c.isSimpleFunctionScope(r)?(r.role="leftright",y.propagateFunctionRole_(t,"simple function"),i=y.getInstance().functionNode_(t,e.shift()),e.unshift(i)):e.unshift(t),e}}}getIntegralArgs_(t,e=[]){if(0===t.length)return{integrand:e,intvar:null,rest:t};const r=t[0];if(c.isGeneralFunctionBoundary(r))return{integrand:e,intvar:null,rest:t};if(c.isIntegralDxBoundarySingle(r))return r.role="integral",{integrand:e,intvar:r,rest:t.slice(1)};if(t[1]&&c.isIntegralDxBoundary(r,t[1])){const n=y.getInstance().prefixNode_(t[1],[r]);return n.role="integral",{integrand:e,intvar:n,rest:t.slice(2)}}return e.push(t.shift()),y.getInstance().getIntegralArgs_(t,e)}functionNode_(t,e){const r=y.getInstance().factory_.makeContentNode(s.functionApplication()),n=y.getInstance().funcAppls[t.id];n&&(r.mathmlTree=n.mathmlTree,r.mathml=n.mathml,r.annotation=n.annotation,r.attributes=n.attributes,delete y.getInstance().funcAppls[t.id]),r.type="punctuation",r.role="application";var o=y.getFunctionOp_(t,function(t){return c.isType(t,"function")||c.isType(t,"identifier")&&c.isRole(t,"simple function")});return y.getInstance().functionalNode_("appl",[t,e],o,[r])}bigOpNode_(t,e){var r=y.getFunctionOp_(t,t=>c.isType(t,"largeop"));return y.getInstance().functionalNode_("bigop",[t,e],r,[])}integralNode_(t,e,r){e=e||y.getInstance().factory_.makeEmptyNode(),r=r||y.getInstance().factory_.makeEmptyNode();var n=y.getFunctionOp_(t,t=>c.isType(t,"largeop"));return y.getInstance().functionalNode_("integral",[t,e,r],n,[])}functionalNode_(t,e,r,n){var o=e[0];let i;r&&(i=r.parent,n.push(r));const a=y.getInstance().factory_.makeBranchNode(t,e,n);return a.role=o.role,i&&(r.parent=i),a}fractionNode_(t,e){const r=y.getInstance().factory_.makeBranchNode("fraction",[t,e],[]);return r.role=r.childNodes.every(function(t){return c.isType(t,"number")&&c.isRole(t,"integer")})?"vulgar":r.childNodes.every(c.isPureUnit)?"unit":"division",o.run("propagateSimpleFunction",r)}scriptNode_(t,e,r){let n;switch(t.length){case 0:n=y.getInstance().factory_.makeEmptyNode();break;case 1:if(n=t[0],r)return n;break;default:n=y.getInstance().dummyNode_(t)}return n.role=e,n}findNestedRow_(r,n,o,i){if(3<o)return null;for(let t,e=0;t=r[e];e++){const r=m.tagName(t);if("MSPACE"!==r){if("MROW"===r)return y.getInstance().findNestedRow_(m.toArray(t.childNodes),n,o+1,i);if(y.findSemantics(t,n,i))return t}}return null}}(e.default=y).FENCE_TO_PUNCT_={metric:"metric",neutral:"vbar",open:"openfence",close:"closefence"},y.MML_TO_LIMIT_={MSUB:{type:"limlower",length:1},MUNDER:{type:"limlower",length:1},MSUP:{type:"limupper",length:1},MOVER:{type:"limupper",length:1},MSUBSUP:{type:"limboth",length:2},MUNDEROVER:{type:"limboth",length:2}},y.MML_TO_BOUNDS_={MSUB:{type:"subscript",length:1,accent:!1},MSUP:{type:"superscript",length:1,accent:!1},MSUBSUP:{type:"subscript",length:2,accent:!1},MUNDER:{type:"underscore",length:1,accent:!0},MOVER:{type:"overscore",length:1,accent:!0},MUNDEROVER:{type:"underscore",length:2,accent:!0}},y.CLASSIFY_FUNCTION_={integral:"integral",sum:"bigop","prefix function":"prefix","limit function":"prefix","simple function":"prefix","composed function":"prefix"},y.MATHJAX_FONTS={"-tex-caligraphic":"caligraphic","-tex-caligraphic-bold":"caligraphic-bold","-tex-calligraphic":"caligraphic","-tex-calligraphic-bold":"caligraphic-bold","-tex-oldstyle":"oldstyle","-tex-oldstyle-bold":"oldstyle-bold","-tex-mathit":"italic"}},5656:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticSkeleton=void 0;const n=r(707),a=r(5274),s=r(2298);class l{constructor(t){this.parents=null,this.levelsMap=null,this.array=t=0===t?t:t||[]}static fromTree(t){return l.fromNode(t.root)}static fromNode(t){return new l(l.fromNode_(t))}static fromString(t){return new l(l.fromString_(t))}static simpleCollapseStructure(t){return"number"==typeof t}static contentCollapseStructure(t){return!!t&&!l.simpleCollapseStructure(t)&&"c"===t[0]}static interleaveIds(t,e){return n.interleaveLists(l.collapsedLeafs(t),l.collapsedLeafs(e))}static collapsedLeafs(...t){return t.reduce((t,e)=>{return t.concat((t=e,l.simpleCollapseStructure(t)?[t]:l.contentCollapseStructure(t[1])?t.slice(2):t.slice(1)))},[])}static fromStructure(t,e){return new l(l.tree_(t,e.root))}static combineContentChildren(t,e,r){switch(t.type){case"relseq":case"infixop":case"multirel":return n.interleaveLists(r,e);case"prefixop":return e.concat(r);case"postfixop":return r.concat(e);case"fenced":return r.unshift(e[0]),r.push(e[1]),r;case"appl":return[r[0],e[0],r[1]];case"root":return[r[1],r[0]];case"row":case"line":return e.length&&r.unshift(e[0]),r;default:return r}}static makeSexp_(t){return l.simpleCollapseStructure(t)?t.toString():l.contentCollapseStructure(t)?"(c "+t.slice(1).map(l.makeSexp_).join(" ")+")":"("+t.map(l.makeSexp_).join(" ")+")"}static fromString_(t){let e=t.replace(/\(/g,"[");return e=(e=(e=e.replace(/\)/g,"]")).replace(/ /g,",")).replace(/c/g,'"c"'),JSON.parse(e)}static fromNode_(t){if(!t)return[];const e=t.contentNodes;let r;e.length&&(r=e.map(l.fromNode_)).unshift("c");const n=t.childNodes;if(!n.length)return e.length?[t.id,r]:t.id;const o=n.map(l.fromNode_);return e.length&&o.unshift(r),o.unshift(t.id),o}static tree_(r,t){if(!t)return[];if(!t.childNodes.length)return t.id;const e=t.id,n=[e],o=a.evalXPath(`.//self::*[@${s.Attribute.ID}=${e}]`,r)[0],i=l.combineContentChildren(t,t.contentNodes.map(function(t){return t}),t.childNodes.map(function(t){return t}));o&&l.addOwns_(o,i);for(let t,e=0;t=i[e];e++)n.push(l.tree_(r,t));return n}static addOwns_(t,e){const r=t.getAttribute(s.Attribute.COLLAPSED),n=r?l.realLeafs_(l.fromString(r).array):e.map(t=>t.id);t.setAttribute(s.Attribute.OWNS,n.join(" "))}static realLeafs_(e){if(l.simpleCollapseStructure(e))return[e];if(l.contentCollapseStructure(e))return[];let r=[];for(let t=1;t<e.length;t++)r=r.concat(l.realLeafs_(e[t]));return r}populate(){this.parents&&this.levelsMap||(this.parents={},this.levelsMap={},this.populate_(this.array,this.array,[]))}toString(){return l.makeSexp_(this.array)}populate_(r,t,n){if(l.simpleCollapseStructure(r))return this.levelsMap[r]=t,void(this.parents[r]=r===n[0]?n.slice(1):n);const o=l.contentCollapseStructure(r)?r.slice(1):r,i=[o[0]].concat(n);for(let t=0,e=o.length;t<e;t++){const n=o[t];this.populate_(n,r,i)}}isRoot(t){return t===this.levelsMap[t][0]}directChildren(t){return this.isRoot(t)?this.levelsMap[t].slice(1).map(t=>l.simpleCollapseStructure(t)?t:l.contentCollapseStructure(t)?t[1]:t[0]):[]}subtreeNodes(t){if(!this.isRoot(t))return[];const r=(t,e)=>{l.simpleCollapseStructure(t)?e.push(t):(t=l.contentCollapseStructure(t)?t.slice(1):t).forEach(t=>r(t,e))},e=this.levelsMap[t],n=[];return r(e.slice(1),n),n}}e.SemanticSkeleton=l},7075:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTree=void 0;const n=r(5740),o=r(7630),i=r(9265),a=r(7228),s=r(5952),l=r(5609);r(94);class c{constructor(t){this.mathml=t,this.parser=new a.SemanticMathml,this.root=this.parser.parse(t),this.collator=this.parser.getFactory().leafMap.collateMeaning();var e=this.collator.newDefault();e&&(this.parser=new a.SemanticMathml,this.parser.getFactory().defaultMap=e,this.root=this.parser.parse(t)),u.visit(this.root,{}),(0,o.annotate)(this.root)}static empty(){const t=n.parseInput("<math/>"),e=new c(t);return e.mathml=t,e}static fromNode(t,e){const r=c.empty();return r.root=t,e&&(r.mathml=e),r}static fromRoot(t,e){let r=t;for(;r.parent;)r=r.parent;const n=c.fromNode(r);return e&&(n.mathml=e),n}static fromXml(t){const e=c.empty();return t.childNodes[0]&&(e.root=s.SemanticNode.fromXml(t.childNodes[0])),e}xml(t){const e=n.parseInput("<stree></stree>"),r=this.root.xml(e.ownerDocument,t);return e.appendChild(r),e}toString(t){return n.serializeXml(this.xml(t))}formatXml(t){t=this.toString(t);return n.formatXml(t)}displayTree(){this.root.displayTree()}replaceNode(t,e){const r=t.parent;r?r.replaceChild(t,e):this.root=e}toJson(){const t={};return t.stree=this.root.toJson(),t}}e.SemanticTree=c;const u=new i.SemanticVisitor("general","unit",(t,e)=>{if("infixop"===t.type&&("multiplication"===t.role||"implicit"===t.role)){const e=t.childNodes;e.length&&(l.isPureUnit(e[0])||l.isUnitCounter(e[0]))&&t.childNodes.slice(1).every(l.isPureUnit)&&(t.role="unit")}return!1})},4795:function(t,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.partitionNodes=o.sliceNodes=o.getEmbellishedInner=o.addAttributes=o.isZeroLength=o.purgeNodes=o.isOrphanedGlyph=o.hasDisplayTag=o.hasEmptyTag=o.hasIgnoreTag=o.hasLeafTag=o.hasMathTag=o.directSpeechKeys=o.DISPLAYTAGS=o.EMPTYTAGS=o.IGNORETAGS=o.LEAFTAGS=void 0;const i=e(5740);function r(t){return!!t&&-1!==o.LEAFTAGS.indexOf(i.tagName(t))}function a(r,n,o){o&&r.reverse();const i=[];for(let t,e=0;t=r[e];e++){if(n(t))return o?{head:r.slice(e+1).reverse(),div:t,tail:i.reverse()}:{head:i,div:t,tail:r.slice(e+1)};i.push(t)}return o?{head:[],div:null,tail:i.reverse()}:{head:i,div:null,tail:[]}}o.LEAFTAGS=["MO","MI","MN","MTEXT","MS","MSPACE"],o.IGNORETAGS=["MERROR","MPHANTOM","MALIGNGROUP","MALIGNMARK","MPRESCRIPTS","ANNOTATION","ANNOTATION-XML"],o.EMPTYTAGS=["MATH","MROW","MPADDED","MACTION","NONE","MSTYLE","SEMANTICS"],o.DISPLAYTAGS=["MROOT","MSQRT"],o.directSpeechKeys=["aria-label","exact-speech","alt"],o.hasMathTag=function(t){return!!t&&"MATH"===i.tagName(t)},o.hasLeafTag=r,o.hasIgnoreTag=function(t){return!!t&&-1!==o.IGNORETAGS.indexOf(i.tagName(t))},o.hasEmptyTag=function(t){return!!t&&-1!==o.EMPTYTAGS.indexOf(i.tagName(t))},o.hasDisplayTag=function(t){return!!t&&-1!==o.DISPLAYTAGS.indexOf(i.tagName(t))},o.isOrphanedGlyph=function(t){return!!t&&"MGLYPH"===i.tagName(t)&&!r(t.parentNode)},o.purgeNodes=function(r){const n=[];for(let t,e=0;t=r[e];e++)if(t.nodeType===i.NodeType.ELEMENT_NODE){const r=i.tagName(t);-1!==o.IGNORETAGS.indexOf(r)||-1!==o.EMPTYTAGS.indexOf(r)&&0===t.childNodes.length||n.push(t)}return n},o.isZeroLength=function(t){if(!t)return!1;if(-1!==["negativeveryverythinmathspace","negativeverythinmathspace","negativethinmathspace","negativemediummathspace","negativethickmathspace","negativeverythickmathspace","negativeveryverythickmathspace"].indexOf(t))return!0;t=t.match(/[0-9.]+/);return!!t&&0===parseFloat(t[0])},o.addAttributes=function(e,t){if(t.hasAttributes()){var r=t.attributes;for(let t=r.length-1;0<=t;t--){const n=r[t].name;n.match(/^ext/)&&(e.attributes[n]=r[t].value,e.nobreaking=!0),-1!==o.directSpeechKeys.indexOf(n)&&(e.attributes["ext-speech"]=r[t].value,e.nobreaking=!0),n.match(/texclass$/)&&(e.attributes.texclass=r[t].value),"href"===n&&(e.attributes.href=r[t].value,e.nobreaking=!0)}}},o.getEmbellishedInner=function t(e){return e&&e.embellished&&0<e.childNodes.length?t(e.childNodes[0]):e},o.sliceNodes=a,o.partitionNodes=function(t,e){let r=t;const n=[],o=[];for(var i;i=a(r,e),o.push(i.head),n.push(i.div),r=i.tail,i.div;);return n.pop(),{rel:n,comp:o}}},6278:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractSpeechGenerator=void 0;const n=r(6828),o=r(2298),i=r(1214),a=r(9543);e.AbstractSpeechGenerator=class{constructor(){this.modality=o.addPrefix("speech"),this.rebuilt_=null,this.options_={}}getRebuilt(){return this.rebuilt_}setRebuilt(t){this.rebuilt_=t}setOptions(t){this.options_=t||{},this.modality=o.addPrefix(this.options_.modality||"speech")}getOptions(){return this.options_}start(){}end(){}generateSpeech(t,e){return this.rebuilt_||(this.rebuilt_=new i.RebuildStree(e)),(0,n.setup)(this.options_),a.computeMarkup(this.getRebuilt().xml)}}},1452:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AdhocSpeechGenerator=void 0;class n extends r(6278).AbstractSpeechGenerator{getSpeech(t,e){e=this.generateSpeech(t,e);return t.setAttribute(this.modality,e),e}}e.AdhocSpeechGenerator=n},5152:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorGenerator=void 0;const n=r(2298),o=r(8396),i=r(1214),a=r(1204),s=r(6278);class l extends s.AbstractSpeechGenerator{constructor(){super(...arguments),this.modality=(0,n.addPrefix)("foreground"),this.contrast=new o.ContrastPicker}static visitStree_(e,r,n){if(e.childNodes.length){if(e.contentNodes.length&&("punctuated"===e.type&&e.contentNodes.forEach(t=>n[t.id]=!0),"implicit"!==e.role&&r.push(e.contentNodes.map(t=>t.id))),e.childNodes.length){if("implicit"===e.role){const o=[];let t=[];for(const r of e.childNodes){const e=[];l.visitStree_(r,e,n),e.length<=2&&o.push(e.shift()),t=t.concat(e)}return r.push(o),void t.forEach(t=>r.push(t))}e.childNodes.forEach(t=>l.visitStree_(t,r,n))}}else n[e.id]||r.push(e.id)}getSpeech(t,e){return a.getAttribute(t,this.modality)}generateSpeech(t,e){return this.getRebuilt()||this.setRebuilt(new i.RebuildStree(t)),this.colorLeaves_(t),a.getAttribute(t,this.modality)}colorLeaves_(e){const r=[];l.visitStree_(this.getRebuilt().streeRoot,r,{});for(const t of r){const r=this.contrast.generate();(Array.isArray(t)?t.map(t=>this.colorLeave_(e,t,r)).reduce((t,e)=>t||e,!1):this.colorLeave_(e,t.toString(),r))&&this.contrast.increment()}}colorLeave_(t,e,r){const n=a.getBySemanticId(t,e);return!!n&&(n.setAttribute(this.modality,r),!0)}}e.ColorGenerator=l},6604:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.DirectSpeechGenerator=void 0;const n=r(1204),o=r(6278);class i extends o.AbstractSpeechGenerator{getSpeech(t,e){return n.getAttribute(t,this.modality)}}e.DirectSpeechGenerator=i},3123:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.DummySpeechGenerator=void 0;class n extends r(6278).AbstractSpeechGenerator{getSpeech(t,e){return""}}e.DummySpeechGenerator=n},5858:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.NodeSpeechGenerator=void 0;const n=r(1204),o=r(4598);class i extends o.TreeSpeechGenerator{getSpeech(t,e){return super.getSpeech(t,e),n.getAttribute(t,this.modality)}}e.NodeSpeechGenerator=i},9552:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.generatorMapping_=e.generator=void 0;const n=r(1452),o=r(5152),i=r(6604),a=r(3123),s=r(5858),l=r(597),c=r(4598);e.generator=function(t){return(e.generatorMapping_[t]||e.generatorMapping_.Direct)()},e.generatorMapping_={Adhoc:()=>new n.AdhocSpeechGenerator,Color:()=>new o.ColorGenerator,Direct:()=>new i.DirectSpeechGenerator,Dummy:()=>new a.DummySpeechGenerator,Node:()=>new s.NodeSpeechGenerator,Summary:()=>new l.SummarySpeechGenerator,Tree:()=>new c.TreeSpeechGenerator}},9543:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.computeSummary_=e.retrieveSummary=e.connectAllMactions=e.connectMactions=e.nodeAtPosition_=e.computePrefix_=e.retrievePrefix=e.addPrefix=e.addModality=e.addSpeech=e.recomputeMarkup=e.computeMarkup=e.recomputeSpeech=e.computeSpeech=void 0;const n=r(8290),c=r(5740),o=r(5274),u=r(2298),i=r(2362),a=r(7075),p=r(1204);function s(t){return i.SpeechRuleEngine.getInstance().evaluateNode(t)}function l(t){return s(a.SemanticTree.fromNode(t).xml())}function h(t){t=l(t);return n.markup(t)}function d(t){t=f(t);return n.markup(t)}function f(t){const e=a.SemanticTree.fromRoot(t),r=o.evalXPath('.//*[@id="'+t.id+'"]',e.xml());let n=r[0];return(n=1<r.length?m(t,r)||n:n)?i.SpeechRuleEngine.getInstance().runInSetting({modality:"prefix",domain:"default",style:"default",strict:!0,speech:!0},function(){return i.SpeechRuleEngine.getInstance().evaluateNode(n)}):[]}function m(t,r){var e=r[0];if(!t.parent)return e;const n=[];for(;t;)n.push(t.id),t=t.parent;for(let t,e=0;t=r[e];e++)if(function(t,e){for(;e.length&&e.shift().toString()===t.getAttribute("id")&&t.parentNode&&t.parentNode.parentNode;)t=t.parentNode.parentNode;return!e.length}(t,n.slice()))return t;return e}function y(t){return t?i.SpeechRuleEngine.getInstance().runInSetting({modality:"summary",strict:!1,speech:!0},function(){return i.SpeechRuleEngine.getInstance().evaluateNode(t)}):[]}e.computeSpeech=s,e.recomputeSpeech=l,e.computeMarkup=function(t){t=s(t);return n.markup(t)},e.recomputeMarkup=h,e.addSpeech=function(t,e,r){r=c.querySelectorAllByAttrValue(r,"id",e.id.toString())[0],r=r?n.markup(s(r)):h(e);t.setAttribute(u.Attribute.SPEECH,r)},e.addModality=function(t,e,r){e=h(e);t.setAttribute(r,e)},e.addPrefix=function(t,e){e=d(e);e&&t.setAttribute(u.Attribute.PREFIX,e)},e.retrievePrefix=d,e.computePrefix_=f,e.nodeAtPosition_=m,e.connectMactions=function(r,t,n){const o=c.querySelectorAll(t,"maction");for(let e,t=0;e=o[t];t++){const o=e.getAttribute("id"),a=c.querySelectorAllByAttrValue(r,"id",o)[0];if(a){const s=e.childNodes[1],l=s.getAttribute(u.Attribute.ID);let t=p.getBySemanticId(r,l);var i;t&&"dummy"!==t.getAttribute(u.Attribute.TYPE)||(t=a.childNodes[0]).getAttribute("sre-highlighter-added")||((i=s.getAttribute(u.Attribute.PARENT))&&t.setAttribute(u.Attribute.PARENT,i),t.setAttribute(u.Attribute.TYPE,"dummy"),t.setAttribute(u.Attribute.ID,l),c.querySelectorAllByAttrValue(n,"id",l)[0].setAttribute("alternative",l))}}},e.connectAllMactions=function(t,r){const n=c.querySelectorAll(t,"maction");for(let t,e=0;t=n[e];e++){const n=t.childNodes[1].getAttribute(u.Attribute.ID);c.querySelectorAllByAttrValue(r,"id",n)[0].setAttribute("alternative",n)}},e.retrieveSummary=function(t){t=y(t);return n.markup(t)},e.computeSummary_=y},597:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SummarySpeechGenerator=void 0;const n=r(6278),o=r(9543);class i extends n.AbstractSpeechGenerator{getSpeech(t,e){return o.connectAllMactions(e,this.getRebuilt().xml),this.generateSpeech(t,e)}}e.SummarySpeechGenerator=i},4598:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.TreeSpeechGenerator=void 0;const s=r(2298),l=r(1204),n=r(6278),c=r(9543);class o extends n.AbstractSpeechGenerator{getSpeech(t,e){const r=this.generateSpeech(t,e),n=this.getRebuilt().nodeDict;for(const r in n){var o=n[r],i=l.getBySemanticId(e,r),a=l.getBySemanticId(t,r);i&&a&&(this.modality&&this.modality!==s.Attribute.SPEECH?c.addModality(a,o,this.modality):c.addSpeech(a,o,this.getRebuilt().xml),this.modality===s.Attribute.SPEECH&&c.addPrefix(a,o))}return r}}e.TreeSpeechGenerator=o},313:function(t,u,e){Object.defineProperty(u,"__esModule",{value:!0}),u.INTERVALS=u.makeLetter=u.numberRules=u.alphabetRules=u.getFont=u.makeInterval=u.generate=u.makeDomains_=u.Domains_=u.Base=u.Embellish=u.Font=void 0;const o=e(5897),i=e(7491),p=e(4356),r=e(2536),h=e(2780);var n,a,s;function l(){var t=p.LOCALE.ALPHABETS,e=(t,e)=>{const r={};return Object.keys(t).forEach(t=>r[t]=!0),Object.keys(e).forEach(t=>r[t]=!0),Object.keys(r)};u.Domains_.small=e(t.smallPrefix,t.letterTrans),u.Domains_.capital=e(t.capPrefix,t.letterTrans),u.Domains_.digit=e(t.digitPrefix,t.digitTrans)}function c([t,e],r){const n=parseInt(t,16),o=parseInt(e,16),i=[];for(let e=n;e<=o;e++){let t=3<(a=(a=e).toString(16).toUpperCase()).length?a:("000"+a).slice(-4);!1!==r[t]&&(t=r[t]||t,i.push(t))}var a;return i}function d(t){t="normal"!==t&&"fullwidth"!==t&&(p.LOCALE.MESSAGES.font[t]||p.LOCALE.MESSAGES.embellish[t])||"";return(0,r.localeFontCombiner)(t)}function f(o,i,a,t,s,l){var c=d(t);for(let t,e,r,n=0;t=o[n],e=i[n],r=a[n];n++){const o=l?p.LOCALE.ALPHABETS.capPrefix:p.LOCALE.ALPHABETS.smallPrefix,i=l?u.Domains_.capital:u.Domains_.small;y(c.combiner,t,e,r,c.font,o,s,p.LOCALE.ALPHABETS.letterTrans,i)}}function m(n,o,t,i,a){var s=d(t);for(let t,e,r=0;t=n[r],e=o[r];r++){const n=p.LOCALE.ALPHABETS.digitPrefix,o=r+a;y(s.combiner,t,e,o,s.font,n,i,p.LOCALE.ALPHABETS.digitTrans,u.Domains_.digit)}}function y(r,n,o,i,a,s,l,c,u){for(let t,e=0;t=u[e];e++){const u=t in c?c[t]:c.default,p=t in s?s[t]:s.default;h.defineRule(n.toString(),t,"default",l,o,r(u(i),a,p))}}(s=e=u.Font||(u.Font={})).BOLD="bold",s.BOLDFRAKTUR="bold-fraktur",s.BOLDITALIC="bold-italic",s.BOLDSCRIPT="bold-script",s.DOUBLESTRUCK="double-struck",s.FULLWIDTH="fullwidth",s.FRAKTUR="fraktur",s.ITALIC="italic",s.MONOSPACE="monospace",s.NORMAL="normal",s.SCRIPT="script",s.SANSSERIF="sans-serif",s.SANSSERIFITALIC="sans-serif-italic",s.SANSSERIFBOLD="sans-serif-bold",s.SANSSERIFBOLDITALIC="sans-serif-bold-italic",(a=s=u.Embellish||(u.Embellish={})).SUPER="super",a.SUB="sub",a.CIRCLED="circled",a.PARENTHESIZED="parenthesized",a.PERIOD="period",a.NEGATIVECIRCLED="negative-circled",a.DOUBLECIRCLED="double-circled",a.CIRCLEDSANSSERIF="circled-sans-serif",a.NEGATIVECIRCLEDSANSSERIF="negative-circled-sans-serif",a.COMMA="comma",a.SQUARED="squared",a.NEGATIVESQUARED="negative-squared",(n=a=u.Base||(u.Base={})).LATINCAP="latinCap",n.LATINSMALL="latinSmall",n.GREEKCAP="greekCap",n.GREEKSMALL="greekSmall",n.DIGIT="digit",u.Domains_={small:["default"],capital:["default"],digit:["default"]},u.makeDomains_=l,u.generate=function(t){const r=o.default.getInstance().locale;o.default.getInstance().locale=t,i.setLocale(),h.addSymbolRules({locale:t}),l();var n=u.INTERVALS;for(let t,e=0;t=n[e];e++){const u=c(t.interval,t.subst),r=u.map(function(t){return String.fromCodePoint(parseInt(t,16))});"offset"in t?m(u,r,t.font,t.category,t.offset||0):f(u,r,p.LOCALE.ALPHABETS[t.base],t.font,t.category,!!t.capital)}o.default.getInstance().locale=r,i.setLocale()},u.makeInterval=c,u.getFont=d,u.alphabetRules=f,u.numberRules=m,u.makeLetter=y,u.INTERVALS=[{interval:["1D400","1D419"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.BOLD},{interval:["1D41A","1D433"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLD},{interval:["1D56C","1D585"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.BOLDFRAKTUR},{interval:["1D586","1D59F"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLDFRAKTUR},{interval:["1D468","1D481"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.BOLDITALIC},{interval:["1D482","1D49B"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLDITALIC},{interval:["1D4D0","1D4E9"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.BOLDSCRIPT},{interval:["1D4EA","1D503"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLDSCRIPT},{interval:["1D538","1D551"],base:a.LATINCAP,subst:{"1D53A":"2102","1D53F":"210D","1D545":"2115","1D547":"2119","1D548":"211A","1D549":"211D","1D551":"2124"},capital:!0,category:"Lu",font:e.DOUBLESTRUCK},{interval:["1D552","1D56B"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.DOUBLESTRUCK},{interval:["1D504","1D51D"],base:a.LATINCAP,subst:{"1D506":"212D","1D50B":"210C","1D50C":"2111","1D515":"211C","1D51D":"2128"},capital:!0,category:"Lu",font:e.FRAKTUR},{interval:["1D51E","1D537"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.FRAKTUR},{interval:["FF21","FF3A"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.FULLWIDTH},{interval:["FF41","FF5A"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.FULLWIDTH},{interval:["1D434","1D44D"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.ITALIC},{interval:["1D44E","1D467"],base:a.LATINSMALL,subst:{"1D455":"210E"},capital:!1,category:"Ll",font:e.ITALIC},{interval:["1D670","1D689"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.MONOSPACE},{interval:["1D68A","1D6A3"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.MONOSPACE},{interval:["0041","005A"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.NORMAL},{interval:["0061","007A"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.NORMAL},{interval:["1D49C","1D4B5"],base:a.LATINCAP,subst:{"1D49D":"212C","1D4A0":"2130","1D4A1":"2131","1D4A3":"210B","1D4A4":"2110","1D4A7":"2112","1D4A8":"2133","1D4AD":"211B"},capital:!0,category:"Lu",font:e.SCRIPT},{interval:["1D4B6","1D4CF"],base:a.LATINSMALL,subst:{"1D4BA":"212F","1D4BC":"210A","1D4C4":"2134"},capital:!1,category:"Ll",font:e.SCRIPT},{interval:["1D5A0","1D5B9"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIF},{interval:["1D5BA","1D5D3"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIF},{interval:["1D608","1D621"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIFITALIC},{interval:["1D622","1D63B"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIFITALIC},{interval:["1D5D4","1D5ED"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIFBOLD},{interval:["1D5EE","1D607"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIFBOLD},{interval:["1D63C","1D655"],base:a.LATINCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIFBOLDITALIC},{interval:["1D656","1D66F"],base:a.LATINSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIFBOLDITALIC},{interval:["0391","03A9"],base:a.GREEKCAP,subst:{"03A2":"03F4"},capital:!0,category:"Lu",font:e.NORMAL},{interval:["03B0","03D0"],base:a.GREEKSMALL,subst:{"03B0":"2207","03CA":"2202","03CB":"03F5","03CC":"03D1","03CD":"03F0","03CE":"03D5","03CF":"03F1","03D0":"03D6"},capital:!1,category:"Ll",font:e.NORMAL},{interval:["1D6A8","1D6C0"],base:a.GREEKCAP,subst:{},capital:!0,category:"Lu",font:e.BOLD},{interval:["1D6C1","1D6E1"],base:a.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLD},{interval:["1D6E2","1D6FA"],base:a.GREEKCAP,subst:{},capital:!0,category:"Lu",font:e.ITALIC},{interval:["1D6FB","1D71B"],base:a.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:e.ITALIC},{interval:["1D71C","1D734"],base:a.GREEKCAP,subst:{},capital:!0,category:"Lu",font:e.BOLDITALIC},{interval:["1D735","1D755"],base:a.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:e.BOLDITALIC},{interval:["1D756","1D76E"],base:a.GREEKCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIFBOLD},{interval:["1D76F","1D78F"],base:a.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIFBOLD},{interval:["1D790","1D7A8"],base:a.GREEKCAP,subst:{},capital:!0,category:"Lu",font:e.SANSSERIFBOLDITALIC},{interval:["1D7A9","1D7C9"],base:a.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:e.SANSSERIFBOLDITALIC},{interval:["0030","0039"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.NORMAL},{interval:["2070","2079"],base:a.DIGIT,subst:{2071:"00B9",2072:"00B2",2073:"00B3"},offset:0,category:"No",font:s.SUPER},{interval:["2080","2089"],base:a.DIGIT,subst:{},offset:0,category:"No",font:s.SUB},{interval:["245F","2473"],base:a.DIGIT,subst:{"245F":"24EA"},offset:0,category:"No",font:s.CIRCLED},{interval:["3251","325F"],base:a.DIGIT,subst:{},offset:21,category:"No",font:s.CIRCLED},{interval:["32B1","32BF"],base:a.DIGIT,subst:{},offset:36,category:"No",font:s.CIRCLED},{interval:["2474","2487"],base:a.DIGIT,subst:{},offset:1,category:"No",font:s.PARENTHESIZED},{interval:["2487","249B"],base:a.DIGIT,subst:{2487:"1F100"},offset:0,category:"No",font:s.PERIOD},{interval:["2775","277F"],base:a.DIGIT,subst:{2775:"24FF"},offset:0,category:"No",font:s.NEGATIVECIRCLED},{interval:["24EB","24F4"],base:a.DIGIT,subst:{},offset:11,category:"No",font:s.NEGATIVECIRCLED},{interval:["24F5","24FE"],base:a.DIGIT,subst:{},offset:1,category:"No",font:s.DOUBLECIRCLED},{interval:["277F","2789"],base:a.DIGIT,subst:{"277F":"1F10B"},offset:0,category:"No",font:s.CIRCLEDSANSSERIF},{interval:["2789","2793"],base:a.DIGIT,subst:{2789:"1F10C"},offset:0,category:"No",font:s.NEGATIVECIRCLEDSANSSERIF},{interval:["FF10","FF19"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.FULLWIDTH},{interval:["1D7CE","1D7D7"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.BOLD},{interval:["1D7D8","1D7E1"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.DOUBLESTRUCK},{interval:["1D7E2","1D7EB"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.SANSSERIF},{interval:["1D7EC","1D7F5"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.SANSSERIFBOLD},{interval:["1D7F6","1D7FF"],base:a.DIGIT,subst:{},offset:0,category:"Nd",font:e.MONOSPACE},{interval:["1F101","1F10A"],base:a.DIGIT,subst:{},offset:0,category:"No",font:s.COMMA},{interval:["24B6","24CF"],base:a.LATINCAP,subst:{},capital:!0,category:"So",font:s.CIRCLED},{interval:["24D0","24E9"],base:a.LATINSMALL,subst:{},capital:!1,category:"So",font:s.CIRCLED},{interval:["1F110","1F129"],base:a.LATINCAP,subst:{},capital:!0,category:"So",font:s.PARENTHESIZED},{interval:["249C","24B5"],base:a.LATINSMALL,subst:{},capital:!1,category:"So",font:s.PARENTHESIZED},{interval:["1F130","1F149"],base:a.LATINCAP,subst:{},capital:!0,category:"So",font:s.SQUARED},{interval:["1F170","1F189"],base:a.LATINCAP,subst:{},capital:!0,category:"So",font:s.NEGATIVESQUARED},{interval:["1F150","1F169"],base:a.LATINCAP,subst:{},capital:!0,category:"So",font:s.NEGATIVECIRCLED}]},8504:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=e.Comparator=e.ClearspeakPreferences=void 0;const n=r(5897),a=r(4440),i=r(1676),s=r(1676),o=r(2780),l=r(2362);class c extends i.DynamicCstr{constructor(t,e){super(t),this.preference=e}static comparator(){return new p(n.default.getInstance().dynamicCstr,s.DynamicProperties.createProp([i.DynamicCstr.DEFAULT_VALUES[s.Axis.LOCALE]],[i.DynamicCstr.DEFAULT_VALUES[s.Axis.MODALITY]],[i.DynamicCstr.DEFAULT_VALUES[s.Axis.DOMAIN]],[i.DynamicCstr.DEFAULT_VALUES[s.Axis.STYLE]]))}static fromPreference(t){const r=t.split(":"),n={},o=u.getProperties(),i=Object.keys(o);for(let t,e=0;t=r[e];e++){const r=t.split("_");var a;-1!==i.indexOf(r[0])&&((a=r[1])&&a!==c.AUTO&&-1!==o[r[0]].indexOf(a)&&(n[r[0]]=r[1]))}return n}static toPreference(e){const r=Object.keys(e),n=[];for(let t=0;t<r.length;t++)n.push(r[t]+"_"+e[r[t]]);return n.length?n.join(":"):i.DynamicCstr.DEFAULT_VALUE}static getLocalePreferences(t){t=t||o.enumerate(l.SpeechRuleEngine.getInstance().enumerate());return c.getLocalePreferences_(t)}static smartPreferences(t,e){const r=c.getLocalePreferences()[e];if(!r)return[];const n=t.explorers.speech,o=c.relevantPreferences(n.walker.getFocus().getSemanticPrimary()),i=a.DOMAIN_TO_STYLES.clearspeak;return[{type:"radio",content:"No Preferences",id:"clearspeak-default",variable:"speechRules"},{type:"radio",content:"Current Preferences",id:"clearspeak-"+i,variable:"speechRules"},{type:"rule"},{type:"label",content:"Preferences for "+o},{type:"rule"}].concat(r[o].map(function(t){t=t.split("_");return{type:"radio",content:t[1],id:"clearspeak-"+c.addPreference(i,t[0],t[1]),variable:"speechRules"}}))}static relevantPreferences(t){var e=f[t.type];return e&&(e[t.role]||e[""])||"ImpliedTimes"}static findPreference(t,e){return"default"!==t&&c.fromPreference(t)[e]||c.AUTO}static addPreference(t,e,r){if("default"===t)return e+"_"+r;const n=c.fromPreference(t);return n[e]=r,c.toPreference(n)}static getLocalePreferences_(t){const e={};for(const r in t)if(t[r].speech&&t[r].speech.clearspeak){const n=Object.keys(t[r].speech.clearspeak),o=e[r]={};for(const t in u.getProperties()){const e=u.getProperties()[t],i=[t+"_Auto"];if(e)for(const a of e)-1!==n.indexOf(t+"_"+a)&&i.push(t+"_"+a);o[t]=i}}return e}equal(t){if(!super.equal(t))return!1;var r=Object.keys(this.preference),n=t.preference;if(r.length!==Object.keys(n).length)return!1;for(let t,e=0;t=r[e];e++)if(this.preference[t]!==n[t])return!1;return!0}}(e.ClearspeakPreferences=c).AUTO="Auto";const u=new s.DynamicProperties({AbsoluteValue:["Auto","AbsEnd","Cardinality","Determinant"],Bar:["Auto","Conjugate"],Caps:["Auto","SayCaps"],CombinationPermutation:["Auto","ChoosePermute"],Currency:["Auto","Position","Prefix"],Ellipses:["Auto","AndSoOn"],Enclosed:["Auto","EndEnclose"],Exponent:["Auto","AfterPower","Ordinal","OrdinalPower","Exponent"],Fraction:["Auto","EndFrac","FracOver","General","GeneralEndFrac","Ordinal","Over","OverEndFrac","Per"],Functions:["Auto","None","Reciprocal"],ImpliedTimes:["Auto","MoreImpliedTimes","None"],Log:["Auto","LnAsNaturalLog"],Matrix:["Auto","Combinatoric","EndMatrix","EndVector","SilentColNum","SpeakColNum","Vector"],MultiLineLabel:["Auto","Case","Constraint","Equation","Line","None","Row","Step"],MultiLineOverview:["Auto","None"],MultiLinePausesBetweenColumns:["Auto","Long","Short"],MultsymbolDot:["Auto","Dot"],MultsymbolX:["Auto","By","Cross"],Paren:["Auto","CoordPoint","Interval","Silent","Speak","SpeakNestingLevel"],Prime:["Auto","Angle","Length"],Roots:["Auto","PosNegSqRoot","PosNegSqRootEnd","RootEnd"],SetMemberSymbol:["Auto","Belongs","Element","Member","In"],Sets:["Auto","SilentBracket","woAll"],TriangleSymbol:["Auto","Delta"],Trig:["Auto","ArcTrig","TrigInverse","Reciprocal"],VerticalLine:["Auto","Divides","Given","SuchThat"]});class p extends s.DefaultComparator{constructor(t,e){super(t,e),this.preference=t instanceof c?t.preference:{}}match(r){if(!(r instanceof c))return super.match(r);if("default"===r.getComponents()[s.Axis.STYLE])return!0;var n=Object.keys(r.preference);for(let t,e=0;t=n[e];e++)if(this.preference[t]!==r.preference[t])return!1;return!0}compare(t,e){var r=super.compare(t,e);if(0!==r)return r;var r=t instanceof c,n=e instanceof c;if(!r&&n)return 1;if(r&&!n)return-1;if(!r&&!n)return 0;r=Object.keys(t.preference).length,n=Object.keys(e.preference).length;return n<r?-1:r<n?1:0}}e.Comparator=p;class h extends s.DynamicCstrParser{constructor(){super([s.Axis.LOCALE,s.Axis.MODALITY,s.Axis.DOMAIN,s.Axis.STYLE])}parse(t){const e=super.parse(t);let r=e.getValue(s.Axis.STYLE);var t=e.getValue(s.Axis.LOCALE),n=e.getValue(s.Axis.MODALITY);let o={};return r!==i.DynamicCstr.DEFAULT_VALUE&&(o=this.fromPreference(r),r=this.toPreference(o)),new c({locale:t,modality:n,domain:"clearspeak",style:r},o)}fromPreference(t){return c.fromPreference(t)}toPreference(t){return c.toPreference(t)}}e.Parser=h;const d=[["AbsoluteValue","fenced","neutral","metric"],["Bar","overscore","overaccent"],["Caps","identifier","latinletter"],["CombinationPermutation","appl","unknown"],["Ellipses","punctuation","ellipsis"],["Exponent","superscript",""],["Fraction","fraction",""],["Functions","appl","simple function"],["ImpliedTimes","operator","implicit"],["Log","appl","prefix function"],["Matrix","matrix",""],["Matrix","vector",""],["MultiLineLabel","multiline","label"],["MultiLineOverview","multiline","table"],["MultiLinePausesBetweenColumns","multiline","table"],["MultiLineLabel","table","label"],["MultiLineOverview","table","table"],["MultiLinePausesBetweenColumns","table","table"],["MultiLineLabel","cases","label"],["MultiLineOverview","cases","table"],["MultiLinePausesBetweenColumns","cases","table"],["MultsymbolDot","operator","multiplication"],["MultsymbolX","operator","multiplication"],["Paren","fenced","leftright"],["Prime","superscript","prime"],["Roots","root",""],["Roots","sqrt",""],["SetMemberSymbol","relation","element"],["Sets","fenced","set extended"],["TriangleSymbol","identifier","greekletter"],["Trig","appl","prefix function"],["VerticalLine","punctuated","vbar"]],f=function(){const r={};for(let e,t=0;e=d[t];t++){var n=e[0];let t=r[e[1]];t||(t={},r[e[1]]=t),t[e[2]]=n}return r}();n.default.getInstance().comparators.clearspeak=c.comparator,n.default.getInstance().parsers.clearspeak=new h},5425:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.ClearspeakRules=void 0;const n=r(1676),o=r(365),i=r(9912),a=r(1378),s=r(8437),l=r(7283);e.ClearspeakRules=function(){l.addStore(n.DynamicCstr.BASE_LOCALE+".speech.clearspeak","",{CTFpauseSeparator:o.pauseSeparator,CTFnodeCounter:i.nodeCounter,CTFcontentIterator:o.contentIterator,CSFvulgarFraction:s.vulgarFraction,CQFvulgarFractionSmall:i.isSmallVulgarFraction,CQFcellsSimple:i.allCellsSimple,CSFordinalExponent:i.ordinalExponent,CSFwordOrdinal:i.wordOrdinal,CQFmatchingFences:i.matchingFences,CSFnestingDepth:i.nestingDepth,CQFfencedArguments:i.fencedArguments,CQFsimpleArguments:i.simpleArguments,CQFspaceoutNumber:a.spaceoutNumber})}},9912:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.wordOrdinal=i.layoutFactor_=i.fencedFactor_=i.simpleFactor_=i.simpleArguments=i.fencedArguments=i.insertNesting=i.matchingFences=i.nestingDepth=i.NESTING_DEPTH=i.ordinalExponent=i.allTextLastContent_=i.isUnitExpression=i.isSmallVulgarFraction=i.allCellsSimple=i.allIndices_=i.isInteger_=i.simpleCell_=i.simpleNode=i.hasPreference=i.isSimpleFraction_=i.isSimpleNumber_=i.isNumber_=i.isLetter_=i.isSimple_=i.isSimpleLetters_=i.isSimpleDegree_=i.isSimpleNegative_=i.isSimpleFunction_=i.isSimpleExpression=i.nodeCounter=void 0;const o=e(5740),r=e(5897),a=e(5274),s=e(4356),n=e(4977),l=e(2105),c=e(365),u=e(7630),p=e(9265),h=e(3588);function d(t){return S(t)||g(t)||y(t)||m(t)||f(t)}function f(t){return"appl"===t.type&&("prefix function"===t.childNodes[0].role||"simple function"===t.childNodes[0].role)&&(b(t.childNodes[1])||"fenced"===t.childNodes[1].type&&b(t.childNodes[1].childNodes[0]))}function m(t){return"prefixop"===t.type&&"negative"===t.role&&b(t.childNodes[0])&&"prefixop"!==t.childNodes[0].type&&"appl"!==t.childNodes[0].type&&"punctuated"!==t.childNodes[0].type}function y(t){return"punctuated"===t.type&&"endpunct"===t.role&&2===t.childNodes.length&&"degree"===t.childNodes[1].role&&(v(t.childNodes[0])||_(t.childNodes[0])||"prefixop"===t.childNodes[0].type&&"negative"===t.childNodes[0].role&&(v(t.childNodes[0].childNodes[0])||_(t.childNodes[0].childNodes[0])))}function g(t){return v(t)||"infixop"===t.type&&"implicit"===t.role&&(2===t.childNodes.length&&(v(t.childNodes[0])||S(t.childNodes[0]))&&v(t.childNodes[1])||3===t.childNodes.length&&S(t.childNodes[0])&&v(t.childNodes[1])&&v(t.childNodes[2]))}function b(t){return t.hasAnnotation("clearspeak","simple")}function v(t){return"identifier"===t.type&&("latinletter"===t.role||"greekletter"===t.role||"otherletter"===t.role||"simple function"===t.role)}function _(t){return"number"===t.type&&("integer"===t.role||"float"===t.role)}function S(t){return _(t)||x(t)}function x(t){if(M("Fraction_Over")||M("Fraction_FracOver"))return!1;if("fraction"!==t.type||"vulgar"!==t.role)return!1;if(M("Fraction_Ordinal"))return!0;var e=parseInt(t.childNodes[0].textContent,10),t=parseInt(t.childNodes[1].textContent,10);return 0<e&&e<20&&0<t&&t<11}function M(t){return r.default.getInstance().style===t}function O(t){if(!t.hasAttribute("annotation"))return!1;t=t.getAttribute("annotation");return!!/clearspeak:simple$|clearspeak:simple;/.exec(t)}function E(t){if(O(t))return!0;if("subscript"!==t.tagName)return!1;const e=t.childNodes[0].childNodes,r=e[1];return"identifier"===e[0].tagName&&(A(r)||"infixop"===r.tagName&&r.hasAttribute("role")&&"implicit"===r.getAttribute("role")&&C(r))}function A(t){return"number"===t.tagName&&t.hasAttribute("role")&&"integer"===t.getAttribute("role")}function C(t){return a.evalXPath("children/*",t).every(t=>A(t)||"identifier"===t.tagName)}function w(t){return"text"===t.type||"punctuated"===t.type&&"text"===t.role&&_(t.childNodes[0])&&T(t.childNodes.slice(1))||"identifier"===t.type&&"unit"===t.role||"infixop"===t.type&&("implicit"===t.role||"unit"===t.role)}function T(e){for(let t=0;t<e.length-1;t++)if("text"!==e[t].type||""!==e[t].textContent)return!1;return"text"===e[e.length-1].type}function N(t,e){if(!e||!t)return t;var r=t.match(/^(open|close) /);return r?r[0]+e+" "+t.substring(r[0].length):e+" "+t}function L(t){return!!t&&("number"===t.tagName||"identifier"===t.tagName||"function"===t.tagName||"appl"===t.tagName||"fraction"===t.tagName)}function P(t){return t&&("fenced"===t.tagName||t.hasAttribute("role")&&"leftright"===t.getAttribute("role")||I(t))}function I(t){return!!t&&("matrix"===t.tagName||"vector"===t.tagName)}i.nodeCounter=function(t,e){const r=e.split("-"),n=c.nodeCounter(t,r[0]||""),o=r[1]||"",i=r[2]||"";let a=!0;return function(){var t=n();return a?(a=!1,i+t+o):t+o}},i.isSimpleExpression=d,i.isSimpleFunction_=f,i.isSimpleNegative_=m,i.isSimpleDegree_=y,i.isSimpleLetters_=g,i.isSimple_=b,i.isLetter_=v,i.isNumber_=_,i.isSimpleNumber_=S,i.isSimpleFraction_=x,i.hasPreference=M,(0,u.register)(new p.SemanticAnnotator("clearspeak","simple",function(t){return d(t)?"simple":""})),i.simpleNode=O,i.simpleCell_=E,i.isInteger_=A,i.allIndices_=C,i.allCellsSimple=function(t){var e="matrix"===t.tagName?"children/row/children/cell/children/*":"children/line/children/*";return a.evalXPath(e,t).every(E)?[t]:[]},i.isSmallVulgarFraction=function(t){return(0,n.vulgarFractionSmall)(t,20,11)?[t]:[]},i.isUnitExpression=w,i.allTextLastContent_=T,(0,u.register)(new p.SemanticAnnotator("clearspeak","unit",function(t){return w(t)?"unit":""})),i.ordinalExponent=function(t){var e=parseInt(t.textContent,10);return isNaN(e)?t.textContent:10<e?s.LOCALE.NUMBERS.numericOrdinal(e):s.LOCALE.NUMBERS.wordOrdinal(e)},i.NESTING_DEPTH=null,i.nestingDepth=function(t){let e=0;var r=t.textContent,n="open"===t.getAttribute("role")?0:1;let o=t.parentNode;for(;o;)"fenced"===o.tagName&&o.childNodes[0].childNodes[n].textContent===r&&e++,o=o.parentNode;return i.NESTING_DEPTH=1<e?s.LOCALE.NUMBERS.wordOrdinal(e):"",i.NESTING_DEPTH},i.matchingFences=function(t){var e=t.previousSibling;let r,n;return(n=e?(r=e,t):(r=t).nextSibling)&&(0,h.isMatchingFence)(r.textContent,n.textContent)?[t]:[]},i.insertNesting=N,l.Grammar.getInstance().setCorrection("insertNesting",N),i.fencedArguments=function(t){const e=o.toArray(t.parentNode.childNodes),r=a.evalXPath("../../children/*",t),n=e.indexOf(t);return P(r[n])||P(r[n+1])?[t]:[]},i.simpleArguments=function(t){const e=o.toArray(t.parentNode.childNodes),r=a.evalXPath("../../children/*",t),n=e.indexOf(t);return L(r[n])&&r[n+1]&&(L(r[n+1])||"root"===r[n+1].tagName||"sqrt"===r[n+1].tagName||"superscript"===r[n+1].tagName&&r[n+1].childNodes[0].childNodes[0]&&("number"===r[n+1].childNodes[0].childNodes[0].tagName||"identifier"===r[n+1].childNodes[0].childNodes[0].tagName)&&("2"===r[n+1].childNodes[0].childNodes[1].textContent||"3"===r[n+1].childNodes[0].childNodes[1].textContent))?[t]:[]},i.simpleFactor_=L,i.fencedFactor_=P,i.layoutFactor_=I,i.wordOrdinal=function(t){return s.LOCALE.NUMBERS.wordOrdinal(parseInt(t.textContent,10))}},6141:function(t,e,r){var n=this&&this.__awaiter||function(t,a,s,l){return new(s=s||Promise)(function(r,e){function n(t){try{i(l.next(t))}catch(t){e(t)}}function o(t){try{i(l.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,o)}i((l=l.apply(t,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.loadAjax=e.loadFileSync=e.loadFile=e.parseMaps=e.retrieveFiles=e.standardLoader=e.loadLocale=e.store=void 0;const o=r(2139),i=r(5897),a=r(4440),s=r(7248),l=r(2315),c=r(1676),u=r(2780),p=r(2362),h=r(7491),d=r(313),f={functions:(e.store=u).addFunctionRules,symbols:u.addSymbolRules,units:u.addUnitRules,si:u.setSiPrefixes};let m=!1;function y(t=i.default.getInstance().locale){i.EnginePromise.loaded[t]||(i.EnginePromise.loaded[t]=[!1,!1],t=t,(i.default.getInstance().isIE&&i.default.getInstance().mode===a.Mode.HTTP?function t(e,r){let n=r||1;o.mapsForIE?_(o.mapsForIE,e):n<=5&&setTimeout((()=>t(e,n++)).bind(this),300)}:b)(t))}function g(){switch(i.default.getInstance().mode){case a.Mode.ASYNC:return S;case a.Mode.HTTP:return M;default:a.Mode.SYNC;return x}}function b(r){const t=i.default.getInstance().customLoader?i.default.getInstance().customLoader:g(),e=new Promise(e=>{t(r).then(t=>{v(t),i.EnginePromise.loaded[r]=[!0,!0],e(r)},t=>{i.EnginePromise.loaded[r]=[!0,!1],console.error("Unable to load locale: "+r),i.default.getInstance().locale=i.default.getInstance().defaultLocale,e(r)})});i.EnginePromise.promises[r]=e}function v(t){_(JSON.parse(t))}function _(r,n){let o=!0;for(let t,e=0;t=Object.keys(r)[e];e++){var i=t.split("/");n&&n!==i[0]||("rules"===i[1]?p.SpeechRuleEngine.getInstance().addStore(r[t]):"messages"===i[1]?(0,h.completeLocale)(r[t]):(o&&(d.generate(i[0]),o=!1),r[t].forEach(f[i[1]])))}}function S(t){const e=s.localePath(t);return new Promise((r,n)=>{l.default.fs.readFile(e,"utf8",(t,e)=>{if(t)return n(t);r(e)})})}function x(t){const n=s.localePath(t);return new Promise((t,e)=>{let r="{}";try{r=l.default.fs.readFileSync(n,"utf8")}catch(t){return e(t)}t(r)})}function M(t){const n=s.localePath(t),o=new XMLHttpRequest;return new Promise((e,r)=>{o.onreadystatechange=function(){var t;4===o.readyState&&(0===(t=o.status)||200<=t&&t<400?e(o.responseText):r(t))},o.open("GET",n,!0),o.send()})}e.loadLocale=function(e=i.default.getInstance().locale){return n(this,void 0,void 0,function*(){return m||(y(c.DynamicCstr.BASE_LOCALE),m=!0),i.EnginePromise.promises[c.DynamicCstr.BASE_LOCALE].then(()=>n(this,void 0,void 0,function*(){var t=i.default.getInstance().defaultLocale;return t?(y(t),i.EnginePromise.promises[t].then(()=>n(this,void 0,void 0,function*(){return y(e),i.EnginePromise.promises[e]}))):(y(e),i.EnginePromise.promises[e])}))})},e.standardLoader=g,e.retrieveFiles=b,e.parseMaps=v,e.loadFile=S,e.loadFileSync=x,e.loadAjax=M},7088:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.leftSubscriptBrief=e.leftSuperscriptBrief=e.leftSubscriptVerbose=e.leftSuperscriptVerbose=e.baselineBrief=e.baselineVerbose=void 0;const n=r(1378);e.baselineVerbose=function(t){return n.baselineVerbose(t).replace(/-$/,"")},e.baselineBrief=function(t){return n.baselineBrief(t).replace(/-$/,"")},e.leftSuperscriptVerbose=function(t){return n.superscriptVerbose(t).replace(/^exposant/,"exposant gauche")},e.leftSubscriptVerbose=function(t){return n.subscriptVerbose(t).replace(/^indice/,"indice gauche")},e.leftSuperscriptBrief=function(t){return n.superscriptBrief(t).replace(/^sup/,"sup gauche")},e.leftSubscriptBrief=function(t){return n.subscriptBrief(t).replace(/^sub/,"sub gauche")}},9577:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.MathspeakRules=void 0;const n=r(1676),o=r(365),i=r(7088),a=r(1378),s=r(8437),l=r(7283),c=r(7598);e.MathspeakRules=function(){l.addStore(n.DynamicCstr.BASE_LOCALE+".speech.mathspeak","",{CQFspaceoutNumber:a.spaceoutNumber,CQFspaceoutIdentifier:a.spaceoutIdentifier,CSFspaceoutText:a.spaceoutText,CSFopenFracVerbose:a.openingFractionVerbose,CSFcloseFracVerbose:a.closingFractionVerbose,CSFoverFracVerbose:a.overFractionVerbose,CSFopenFracBrief:a.openingFractionBrief,CSFcloseFracBrief:a.closingFractionBrief,CSFopenFracSbrief:a.openingFractionSbrief,CSFcloseFracSbrief:a.closingFractionSbrief,CSFoverFracSbrief:a.overFractionSbrief,CSFvulgarFraction:s.vulgarFraction,CQFvulgarFractionSmall:a.isSmallVulgarFraction,CSFopenRadicalVerbose:a.openingRadicalVerbose,CSFcloseRadicalVerbose:a.closingRadicalVerbose,CSFindexRadicalVerbose:a.indexRadicalVerbose,CSFopenRadicalBrief:a.openingRadicalBrief,CSFcloseRadicalBrief:a.closingRadicalBrief,CSFindexRadicalBrief:a.indexRadicalBrief,CSFopenRadicalSbrief:a.openingRadicalSbrief,CSFindexRadicalSbrief:a.indexRadicalSbrief,CQFisSmallRoot:a.smallRoot,CSFsuperscriptVerbose:a.superscriptVerbose,CSFsuperscriptBrief:a.superscriptBrief,CSFsubscriptVerbose:a.subscriptVerbose,CSFsubscriptBrief:a.subscriptBrief,CSFbaselineVerbose:a.baselineVerbose,CSFbaselineBrief:a.baselineBrief,CSFleftsuperscriptVerbose:a.superscriptVerbose,CSFleftsubscriptVerbose:a.subscriptVerbose,CSFrightsuperscriptVerbose:a.superscriptVerbose,CSFrightsubscriptVerbose:a.subscriptVerbose,CSFleftsuperscriptBrief:a.superscriptBrief,CSFleftsubscriptBrief:a.subscriptBrief,CSFrightsuperscriptBrief:a.superscriptBrief,CSFrightsubscriptBrief:a.subscriptBrief,CSFunderscript:a.nestedUnderscript,CSFoverscript:a.nestedOverscript,CSFendscripts:a.endscripts,CTFordinalCounter:s.ordinalCounter,CTFwordCounter:s.wordCounter,CTFcontentIterator:o.contentIterator,CQFdetIsSimple:a.determinantIsSimple,CSFRemoveParens:a.removeParens,CQFresetNesting:a.resetNestingDepth,CGFbaselineConstraint:a.generateBaselineConstraint,CGFtensorRules:a.generateTensorRules}),l.addStore("es.speech.mathspeak",n.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CTFunitMultipliers:c.unitMultipliers,CQFoneLeft:c.oneLeft}),l.addStore("fr.speech.mathspeak",n.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CSFbaselineVerbose:i.baselineVerbose,CSFbaselineBrief:i.baselineBrief,CSFleftsuperscriptVerbose:i.leftSuperscriptVerbose,CSFleftsubscriptVerbose:i.leftSubscriptVerbose,CSFleftsuperscriptBrief:i.leftSuperscriptBrief,CSFleftsubscriptBrief:i.leftSubscriptBrief})}},1378:function(t,s,e){Object.defineProperty(s,"__esModule",{value:!0}),s.smallRoot=s.generateTensorRules=s.removeParens=s.generateBaselineConstraint=s.determinantIsSimple=s.nestedOverscript=s.endscripts=s.overscoreNestingDepth=s.nestedUnderscript=s.underscoreNestingDepth=s.indexRadicalSbrief=s.openingRadicalSbrief=s.indexRadicalBrief=s.closingRadicalBrief=s.openingRadicalBrief=s.indexRadicalVerbose=s.closingRadicalVerbose=s.openingRadicalVerbose=s.getRootIndex=s.nestedRadical=s.radicalNestingDepth=s.baselineBrief=s.baselineVerbose=s.superscriptBrief=s.superscriptVerbose=s.subscriptBrief=s.subscriptVerbose=s.nestedSubSuper=s.isSmallVulgarFraction=s.overFractionSbrief=s.closingFractionSbrief=s.openingFractionSbrief=s.closingFractionBrief=s.openingFractionBrief=s.overFractionVerbose=s.closingFractionVerbose=s.openingFractionVerbose=s.nestedFraction=s.fractionNestingDepth=s.computeNestingDepth_=s.containsAttr=s.getNestingDepth=s.resetNestingDepth=s.nestingBarriers=s.spaceoutIdentifier=s.spaceoutNumber=s.spaceoutNodes=s.spaceoutText=void 0;const l=e(707),c=e(5740),n=e(5274),a=e(4356),u=e(3308);let p={};function r(t,r){const n=Array.from(t.textContent),o=[],i=u.default.getInstance(),a=t.ownerDocument;for(let t,e=0;t=n[e];e++){const n=i.getNodeFactory().makeLeafNode(t,"unknown"),s=i.identifierNode(n,"unknown","");r(s),o.push(s.xml(a))}return o}function o(t,e,r,n,o,i){n=n||s.nestingBarriers,o=o||{},i=i||function(t){return!1};var a=c.serializeXml(e);if(p[t]||(p[t]={}),p[t][a])return p[t][a];if(i(e)||r.indexOf(e.tagName)<0)return 0;e=d(e,r,l.setdifference(n,r),o,i,0);return p[t][a]=e}function h(t,r){if(!t.attributes)return!1;var n=c.toArray(t.attributes);for(let t,e=0;t=n[e];e++)if(r[t.nodeName]===t.nodeValue)return!0;return!1}function d(t,e,r,n,o,i){if(o(t)||-1<r.indexOf(t.tagName)||h(t,n))return i;if(-1<e.indexOf(t.tagName)&&i++,!t.childNodes||0===t.childNodes.length)return i;const a=c.toArray(t.childNodes);return Math.max.apply(null,a.map(function(t){return d(t,e,r,n,o,i)}))}function i(t){return o("fraction",t,["fraction"],s.nestingBarriers,{},a.LOCALE.FUNCTIONS.fracNestDepth)}function f(t,e,r){const n=i(t),o=Array(n).fill(e);return r&&o.push(r),o.join(a.LOCALE.MESSAGES.regexp.JOINER_FRAC)}function m(t,e,r){for(;t.parentNode;){var n=t.parentNode,o=n.parentNode;if(!o)break;var i=t.getAttribute&&t.getAttribute("role");("subscript"===o.tagName&&t===n.childNodes[1]||"tensor"===o.tagName&&i&&("leftsub"===i||"rightsub"===i))&&(e=r.sub+a.LOCALE.MESSAGES.regexp.JOINER_SUBSUPER+e),("superscript"===o.tagName&&t===n.childNodes[1]||"tensor"===o.tagName&&i&&("leftsuper"===i||"rightsuper"===i))&&(e=r.sup+a.LOCALE.MESSAGES.regexp.JOINER_SUBSUPER+e),t=o}return e.trim()}function y(t){return o("radical",t,["sqrt","root"],s.nestingBarriers,{})}function g(t,e,r){var n=y(t),t=b(t);return r=t?a.LOCALE.FUNCTIONS.combineRootIndex(r,t):r,1===n?r:a.LOCALE.FUNCTIONS.combineNestedRadical(e,a.LOCALE.FUNCTIONS.radicalNestDepth(n-1),r)}function b(t){t="sqrt"===t.tagName?"2":n.evalXPath("children/*[1]",t)[0].textContent.trim();return a.LOCALE.MESSAGES.MSroots[t]||""}function v(t){return o("underscore",t,["underscore"],s.nestingBarriers,{},function(t){return t.tagName&&"underscore"===t.tagName&&"underaccent"===t.childNodes[0].childNodes[1].getAttribute("role")})}function _(t){return o("overscore",t,["overscore"],s.nestingBarriers,{},function(t){return t.tagName&&"overscore"===t.tagName&&"overaccent"===t.childNodes[0].childNodes[1].getAttribute("role")})}s.spaceoutText=function(t){return Array.from(t.textContent).join(" ")},s.spaceoutNodes=r,s.spaceoutNumber=function(t){return r(t,function(t){t.textContent.match(/\W/)||(t.type="number")})},s.spaceoutIdentifier=function(t){return r(t,function(t){t.font="unknown",t.type="identifier"})},s.nestingBarriers=["cases","cell","integral","line","matrix","multiline","overscore","root","row","sqrt","subscript","superscript","table","underscore","vector"],s.resetNestingDepth=function(t){return p={},[t]},s.getNestingDepth=o,s.containsAttr=h,s.computeNestingDepth_=d,s.fractionNestingDepth=i,s.nestedFraction=f,s.openingFractionVerbose=function(t){return f(t,a.LOCALE.MESSAGES.MS.START,a.LOCALE.MESSAGES.MS.FRAC_V)},s.closingFractionVerbose=function(t){return f(t,a.LOCALE.MESSAGES.MS.END,a.LOCALE.MESSAGES.MS.FRAC_V)},s.overFractionVerbose=function(t){return f(t,a.LOCALE.MESSAGES.MS.FRAC_OVER)},s.openingFractionBrief=function(t){return f(t,a.LOCALE.MESSAGES.MS.START,a.LOCALE.MESSAGES.MS.FRAC_B)},s.closingFractionBrief=function(t){return f(t,a.LOCALE.MESSAGES.MS.END,a.LOCALE.MESSAGES.MS.FRAC_B)},s.openingFractionSbrief=function(t){t=i(t);return 1===t?a.LOCALE.MESSAGES.MS.FRAC_S:a.LOCALE.FUNCTIONS.combineNestedFraction(a.LOCALE.MESSAGES.MS.NEST_FRAC,a.LOCALE.FUNCTIONS.radicalNestDepth(t-1),a.LOCALE.MESSAGES.MS.FRAC_S)},s.closingFractionSbrief=function(t){t=i(t);return 1===t?a.LOCALE.MESSAGES.MS.ENDFRAC:a.LOCALE.FUNCTIONS.combineNestedFraction(a.LOCALE.MESSAGES.MS.NEST_FRAC,a.LOCALE.FUNCTIONS.radicalNestDepth(t-1),a.LOCALE.MESSAGES.MS.ENDFRAC)},s.overFractionSbrief=function(t){t=i(t);return 1===t?a.LOCALE.MESSAGES.MS.FRAC_OVER:a.LOCALE.FUNCTIONS.combineNestedFraction(a.LOCALE.MESSAGES.MS.NEST_FRAC,a.LOCALE.FUNCTIONS.radicalNestDepth(t-1),a.LOCALE.MESSAGES.MS.FRAC_OVER)},s.isSmallVulgarFraction=function(t){return a.LOCALE.FUNCTIONS.fracNestDepth(t)?[t]:[]},s.nestedSubSuper=m,s.subscriptVerbose=function(t){return m(t,a.LOCALE.MESSAGES.MS.SUBSCRIPT,{sup:a.LOCALE.MESSAGES.MS.SUPER,sub:a.LOCALE.MESSAGES.MS.SUB})},s.subscriptBrief=function(t){return m(t,a.LOCALE.MESSAGES.MS.SUB,{sup:a.LOCALE.MESSAGES.MS.SUP,sub:a.LOCALE.MESSAGES.MS.SUB})},s.superscriptVerbose=function(t){return m(t,a.LOCALE.MESSAGES.MS.SUPERSCRIPT,{sup:a.LOCALE.MESSAGES.MS.SUPER,sub:a.LOCALE.MESSAGES.MS.SUB})},s.superscriptBrief=function(t){return m(t,a.LOCALE.MESSAGES.MS.SUP,{sup:a.LOCALE.MESSAGES.MS.SUP,sub:a.LOCALE.MESSAGES.MS.SUB})},s.baselineVerbose=function(t){const e=m(t,"",{sup:a.LOCALE.MESSAGES.MS.SUPER,sub:a.LOCALE.MESSAGES.MS.SUB});return e?e.replace(new RegExp(a.LOCALE.MESSAGES.MS.SUB+"$"),a.LOCALE.MESSAGES.MS.SUBSCRIPT).replace(new RegExp(a.LOCALE.MESSAGES.MS.SUPER+"$"),a.LOCALE.MESSAGES.MS.SUPERSCRIPT):a.LOCALE.MESSAGES.MS.BASELINE},s.baselineBrief=function(t){return m(t,"",{sup:a.LOCALE.MESSAGES.MS.SUP,sub:a.LOCALE.MESSAGES.MS.SUB})||a.LOCALE.MESSAGES.MS.BASE},s.radicalNestingDepth=y,s.nestedRadical=g,s.getRootIndex=b,s.openingRadicalVerbose=function(t){return g(t,a.LOCALE.MESSAGES.MS.NESTED,a.LOCALE.MESSAGES.MS.STARTROOT)},s.closingRadicalVerbose=function(t){return g(t,a.LOCALE.MESSAGES.MS.NESTED,a.LOCALE.MESSAGES.MS.ENDROOT)},s.indexRadicalVerbose=function(t){return g(t,a.LOCALE.MESSAGES.MS.NESTED,a.LOCALE.MESSAGES.MS.ROOTINDEX)},s.openingRadicalBrief=function(t){return g(t,a.LOCALE.MESSAGES.MS.NEST_ROOT,a.LOCALE.MESSAGES.MS.STARTROOT)},s.closingRadicalBrief=function(t){return g(t,a.LOCALE.MESSAGES.MS.NEST_ROOT,a.LOCALE.MESSAGES.MS.ENDROOT)},s.indexRadicalBrief=function(t){return g(t,a.LOCALE.MESSAGES.MS.NEST_ROOT,a.LOCALE.MESSAGES.MS.ROOTINDEX)},s.openingRadicalSbrief=function(t){return g(t,a.LOCALE.MESSAGES.MS.NEST_ROOT,a.LOCALE.MESSAGES.MS.ROOT)},s.indexRadicalSbrief=function(t){return g(t,a.LOCALE.MESSAGES.MS.NEST_ROOT,a.LOCALE.MESSAGES.MS.INDEX)},s.underscoreNestingDepth=v,s.nestedUnderscript=function(t){t=v(t);return Array(t).join(a.LOCALE.MESSAGES.MS.UNDER)+a.LOCALE.MESSAGES.MS.UNDERSCRIPT},s.overscoreNestingDepth=_,s.endscripts=function(t){return a.LOCALE.MESSAGES.MS.ENDSCRIPTS},s.nestedOverscript=function(t){t=_(t);return Array(t).join(a.LOCALE.MESSAGES.MS.OVER)+a.LOCALE.MESSAGES.MS.OVERSCRIPT},s.determinantIsSimple=function(t){if("matrix"!==t.tagName||"determinant"!==t.getAttribute("role"))return[];const r=n.evalXPath("children/row/children/cell/children/*",t);for(let t,e=0;t=r[e];e++)if("number"!==t.tagName){if("identifier"===t.tagName){const r=t.getAttribute("role");if("latinletter"===r||"greekletter"===r||"otherletter"===r)continue}return[]}return[t]},s.generateBaselineConstraint=function(){const t=t=>t.map(t=>"ancestor::"+t),e=t=>"not("+t+")",r=e(t(["subscript","superscript","tensor"]).join(" or ")),n=t(["relseq","multrel"]),o=t(["fraction","punctuation","fenced","sqrt","root"]);let i=[];for(let e,t=0;e=o[t];t++)i=i.concat(n.map(function(t){return e+"/"+t}));return[["ancestor::*/following-sibling::*",r,e(i.join(" | "))].join(" and ")]},s.removeParens=function(t){if(!t.childNodes.length||!t.childNodes[0].childNodes.length||!t.childNodes[0].childNodes[0].childNodes.length)return"";const e=t.childNodes[0].childNodes[0].childNodes[0].textContent;return e.match(/^\(.+\)$/)?e.slice(1,-1):e};const S=new Map([[3,"CSFleftsuperscript"],[4,"CSFleftsubscript"],[2,"CSFbaseline"],[1,"CSFrightsubscript"],[0,"CSFrightsuperscript"]]),x=new Map([[4,2],[3,3],[2,1],[1,4],[0,5]]);s.generateTensorRules=function(i,a=!0){var e=["11111","11110","11101","11100","10111","10110","10101","10100","01111","01110","01101","01100"];for(let o,t=0;o=e[t];t++){let t="tensor"+o,[e,r,n]=function(t){const e=[];let r="",n="",o=parseInt(t,2);for(let t=0;t<5;t++){var i="children/*["+x.get(t)+"]";if(1&o){const e=S.get(t%5);r="[t] "+e+"Verbose; [n] "+i+";"+r,n="[t] "+e+"Brief; [n] "+i+";"+n}else e.unshift("name("+i+')="empty"');o>>=1}return[e,r,n]}(o);i.defineRule(t,"default",r,"self::tensor",...e),a&&(i.defineRule(t,"brief",n,"self::tensor",...e),i.defineRule(t,"sbrief",n,"self::tensor",...e));var s=S.get(2),s=(r+="; [t]"+s+"Verbose",n+="; [t]"+s+"Brief",t+="-baseline","((.//*[not(*)])[last()]/@id)!=(((.//ancestor::fraction|ancestor::root|ancestor::sqrt|ancestor::cell|ancestor::line|ancestor::stree)[1]//*[not(*)])[last()]/@id)");i.defineRule(t,"default",r,"self::tensor",s,...e),a&&(i.defineRule(t,"brief",n,"self::tensor",s,...e),i.defineRule(t,"sbrief",n,"self::tensor",s,...e))}},s.smallRoot=function(t){var e=Object.keys(a.LOCALE.MESSAGES.MSroots).length;if(!e)return[];if(e++,!t.childNodes||0===t.childNodes.length||!t.childNodes[0].childNodes)return[];var r=t.childNodes[0].childNodes[0].textContent;if(!/^\d+$/.test(r))return[];r=parseInt(r,10);return 1<r&&r<=e?[t]:[]}},6922:function(t,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.implicitIterator=n.relationIterator=n.propagateNumber=n.checkParent_=n.NUMBER_INHIBITORS_=n.NUMBER_PROPAGATORS_=n.enlargeFence=n.indexRadical=n.closingRadical=n.openingRadical=n.radicalNestingDepth=n.nestedRadical=n.overBevelledFraction=n.overFraction=n.closingFraction=n.openingFraction=void 0;const p=e(7052),h=e(5740),r=e(5274),o=e(2105),d=e(5897),i=e(7630),a=e(9265),f=e(4356),m=e(1378);function s(t,e){t=l(t);return 1===t?e:new Array(t).join(f.LOCALE.MESSAGES.MS.NESTED)+e}function l(t,e){e=e||0;return t.parentNode?l(t.parentNode,"root"===t.tagName||"sqrt"===t.tagName?e+1:e):e}function c(t){if(1===t.length)return"⠠"+t;const e=t.split("");return e.every(function(t){return"⠳"===t})?"⠠"+e.join("⠠"):t.slice(0,-1)+"⠠"+t.slice(-1)}function u(t,e){t=t.parent;if(!t)return!1;var r=t.type;return-1!==n.NUMBER_PROPAGATORS_.indexOf(r)||"prefixop"===r&&"negative"===t.role&&!e.script||"prefixop"===r&&"geometry"===t.role||!("punctuated"!==r||e.enclosed&&"text"!==t.role)}function y(t,e){return t.childNodes.length?(-1!==n.NUMBER_INHIBITORS_.indexOf(t.type)&&(e.script=!0),"fenced"===t.type?(e.number=!1,e.enclosed=!0):u(t,e)&&(e.number=!0,e.enclosed=!1),["",e]):(u(t,e)&&(e.number=!0,e.script=!1,e.enclosed=!1),[e.number?"number":"",{number:!1,enclosed:e.enclosed,script:e.script}])}n.openingFraction=function(t){t=m.fractionNestingDepth(t);return new Array(t).join(f.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+f.LOCALE.MESSAGES.MS.FRACTION_START},n.closingFraction=function(t){t=m.fractionNestingDepth(t);return new Array(t).join(f.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+f.LOCALE.MESSAGES.MS.FRACTION_END},n.overFraction=function(t){t=m.fractionNestingDepth(t);return new Array(t).join(f.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+f.LOCALE.MESSAGES.MS.FRACTION_OVER},n.overBevelledFraction=function(t){t=m.fractionNestingDepth(t);return new Array(t).join(f.LOCALE.MESSAGES.MS.FRACTION_REPEAT)+"⠸"+f.LOCALE.MESSAGES.MS.FRACTION_OVER},n.nestedRadical=s,n.radicalNestingDepth=l,n.openingRadical=function(t){return s(t,f.LOCALE.MESSAGES.MS.STARTROOT)},n.closingRadical=function(t){return s(t,f.LOCALE.MESSAGES.MS.ENDROOT)},n.indexRadical=function(t){return s(t,f.LOCALE.MESSAGES.MS.ROOTINDEX)},n.enlargeFence=c,o.Grammar.getInstance().setCorrection("enlargeFence",c),n.NUMBER_PROPAGATORS_=["multirel","relseq","appl","row","line"],n.NUMBER_INHIBITORS_=["subscript","superscript","overscore","underscore"],n.checkParent_=u,n.propagateNumber=y,(0,i.register)(new a.SemanticVisitor("nemeth","number",y,{number:!0})),n.relationIterator=function(t,s){const l=t.slice(0);let c,u=!0;return c=0<t.length?r.evalXPath("../../content/*",t[0]):[],function(){const t=c.shift(),e=l.shift(),r=l[0],n=s?[p.AuditoryDescription.create({text:s},{translate:!0})]:[];if(!t)return n;var o=e?m.nestedSubSuper(e,"",{sup:f.LOCALE.MESSAGES.MS.SUPER,sub:f.LOCALE.MESSAGES.MS.SUB}):"",o=e&&"EMPTY"!==h.tagName(e)||u&&t.parentNode.parentNode&&t.parentNode.parentNode.previousSibling?[p.AuditoryDescription.create({text:"⠀"+o},{})]:[],i=r&&"EMPTY"!==h.tagName(r)||!c.length&&t.parentNode.parentNode&&t.parentNode.parentNode.nextSibling?[p.AuditoryDescription.create({text:"⠀"},{})]:[],a=d.default.evaluateNode(t);return u=!1,n.concat(o,a,i)}},n.implicitIterator=function(t,a){const s=t.slice(0);let l;return l=0<t.length?r.evalXPath("../../content/*",t[0]):[],function(){const t=s.shift(),e=s[0],r=l.shift(),n=a?[p.AuditoryDescription.create({text:a},{translate:!0})]:[];if(!r)return n;var o=t&&"NUMBER"===h.tagName(t),i=e&&"NUMBER"===h.tagName(e);return n.concat(o&&i&&"space"===r.getAttribute("role")?[p.AuditoryDescription.create({text:"⠀"},{})]:[])}}},8437:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.ordinalPosition=e.vulgarFraction=e.wordCounter=e.ordinalCounter=void 0;const n=r(9536),o=r(5740),i=r(4356),a=r(4977);e.ordinalCounter=function(t,e){let r=0;return function(){return i.LOCALE.NUMBERS.numericOrdinal(++r)+" "+e}},e.wordCounter=function(t,e){let r=0;return function(){return i.LOCALE.NUMBERS.numberToOrdinal(++r,!1)+" "+e}},e.vulgarFraction=function(t){var e=(0,a.convertVulgarFraction)(t,i.LOCALE.MESSAGES.MS.FRAC_OVER);return e.convertible&&e.enumerator&&e.denominator?[new n.Span(i.LOCALE.NUMBERS.numberToWords(e.enumerator),{extid:t.childNodes[0].childNodes[0].getAttribute("extid"),separator:""}),new n.Span(i.LOCALE.NUMBERS.vulgarSep,{separator:""}),new n.Span(i.LOCALE.NUMBERS.numberToOrdinal(e.denominator,1!==e.enumerator),{extid:t.childNodes[0].childNodes[1].getAttribute("extid")})]:[new n.Span(e.content||"",{extid:t.getAttribute("extid")})]},e.ordinalPosition=function(t){const e=o.toArray(t.parentNode.childNodes);return i.LOCALE.NUMBERS.numericOrdinal(e.indexOf(t)+1).toString()}},9284:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.BrailleRules=e.OtherRules=e.PrefixRules=void 0;const n=r(1676),o=r(365),i=r(1378),a=r(6922),s=r(8437),l=r(7283);e.PrefixRules=function(){l.addStore("en.prefix.default","",{CSFordinalPosition:s.ordinalPosition})},e.OtherRules=function(){l.addStore("en.speech.chromevox","",{CTFnodeCounter:o.nodeCounter,CTFcontentIterator:o.contentIterator}),l.addStore("en.speech.emacspeak","en.speech.chromevox",{CQFvulgarFractionSmall:i.isSmallVulgarFraction,CSFvulgarFraction:s.vulgarFraction})},e.BrailleRules=function(){l.addStore("nemeth.braille.default",n.DynamicCstr.BASE_LOCALE+".speech.mathspeak",{CSFopenFraction:a.openingFraction,CSFcloseFraction:a.closingFraction,CSFoverFraction:a.overFraction,CSFoverBevFraction:a.overBevelledFraction,CSFopenRadical:a.openingRadical,CSFcloseRadical:a.closingRadical,CSFindexRadical:a.indexRadical,CSFsubscript:i.subscriptVerbose,CSFsuperscript:i.superscriptVerbose,CSFbaseline:i.baselineVerbose,CGFtensorRules:t=>i.generateTensorRules(t,!1),CTFrelationIterator:a.relationIterator,CTFimplicitIterator:a.implicitIterator})}},7599:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.init=e.INIT_=void 0;const n=r(5425),o=r(9577),i=r(9284);e.INIT_=!1,e.init=function(){e.INIT_||((0,o.MathspeakRules)(),(0,n.ClearspeakRules)(),(0,i.PrefixRules)(),(0,i.OtherRules)(),(0,i.BrailleRules)(),e.INIT_=!0)}},7283:function(t,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.getStore=o.addStore=o.funcStore=void 0;const n=e(1676);o.funcStore=new Map,o.addStore=function(t,e,r){var n={};if(e){const t=o.funcStore.get(e)||{};Object.assign(n,t)}o.funcStore.set(t,Object.assign(n,r))},o.getStore=function(t,e,r){return o.funcStore.get([t,e,r].join("."))||o.funcStore.get([n.DynamicCstr.DEFAULT_VALUES[n.Axis.LOCALE],e,r].join("."))||o.funcStore.get([n.DynamicCstr.BASE_LOCALE,e,r].join("."))||{}}},7598:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.oneLeft=e.leftMostUnit=e.rightMostUnit=e.unitMultipliers=void 0;const o=r(7052),n=r(5274),i=r(4356),a=(e.unitMultipliers=function(t,e){const r=t;let n=0;return function(){var t=o.AuditoryDescription.create({text:s(r[n])&&l(r[n+1])?i.LOCALE.MESSAGES.unitTimes:""},{});return n++,[t]}},["superscript","subscript","overscore","underscore"]);function s(t){for(;t;){if("unit"===t.getAttribute("role"))return!0;var e=t.tagName,r=n.evalXPath("children/*",t);t=-1!==a.indexOf(e)?r[0]:r[r.length-1]}return!1}function l(t){for(;t;){if("unit"===t.getAttribute("role"))return!0;t=n.evalXPath("children/*",t)[0]}return!1}e.rightMostUnit=s,e.leftMostUnit=l,e.oneLeft=function(t){for(;t;){if("number"===t.tagName&&"1"===t.textContent)return[t];if("infixop"!==t.tagName||"multiplication"!==t.getAttribute("role")&&"implicit"!==t.getAttribute("role"))return[];t=n.evalXPath("children/*",t)[0]}return[]}},3284:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractWalker=void 0;const o=r(7052),i=r(8290),a=r(5740),n=r(4440),s=r(6828),l=r(8496),c=r(2298),u=r(4356),p=r(2105),h=r(5656),d=r(9552),f=r(9543),m=r(8504),y=r(7730),g=r(1214),b=r(179),v=r(1204),_=r(5274);class S{constructor(t,e,r,n){this.node=t,this.generator=e,this.highlighter=r,this.modifier=!1,this.keyMapping=new Map([[l.KeyCode.UP,this.up.bind(this)],[l.KeyCode.DOWN,this.down.bind(this)],[l.KeyCode.RIGHT,this.right.bind(this)],[l.KeyCode.LEFT,this.left.bind(this)],[l.KeyCode.TAB,this.repeat.bind(this)],[l.KeyCode.DASH,this.expand.bind(this)],[l.KeyCode.SPACE,this.depth.bind(this)],[l.KeyCode.HOME,this.home.bind(this)],[l.KeyCode.X,this.summary.bind(this)],[l.KeyCode.Z,this.detail.bind(this)],[l.KeyCode.V,this.virtualize.bind(this)],[l.KeyCode.P,this.previous.bind(this)],[l.KeyCode.U,this.undo.bind(this)],[l.KeyCode.LESS,this.previousRules.bind(this)],[l.KeyCode.GREATER,this.nextRules.bind(this)]]),this.cursors=[],this.xml_=null,this.rebuilt_=null,this.focus_=null,this.active_=!1,this.node.id?this.id=this.node.id:this.node.hasAttribute(S.SRE_ID_ATTR)?this.id=this.node.getAttribute(S.SRE_ID_ATTR):(this.node.setAttribute(S.SRE_ID_ATTR,S.ID_COUNTER.toString()),this.id=S.ID_COUNTER++),this.rootNode=v.getSemanticRoot(t),this.rootId=this.rootNode.getAttribute(c.Attribute.ID),this.xmlString_=n,this.moved=b.WalkerMoves.ENTER}getXml(){return this.xml_||(this.xml_=a.parseInput(this.xmlString_)),this.xml_}getRebuilt(){return this.rebuilt_||this.rebuildStree(),this.rebuilt_}isActive(){return this.active_}activate(){this.isActive()||(this.generator.start(),this.toggleActive_())}deactivate(){this.isActive()&&(b.WalkerState.setState(this.id,this.primaryId()),this.generator.end(),this.toggleActive_())}getFocus(t=!1){return this.focus_||(this.focus_=this.singletonFocus(this.rootId)),t&&this.updateFocus(),this.focus_}setFocus(t){this.focus_=t}getDepth(){return this.levels.depth()-1}isSpeech(){return this.generator.modality===c.Attribute.SPEECH}focusDomNodes(){return this.getFocus().getDomNodes()}focusSemanticNodes(){return this.getFocus().getSemanticNodes()}speech(){var r=this.focusDomNodes();if(!r.length)return"";const n=this.specialMove();if(null!==n)return n;switch(this.moved){case b.WalkerMoves.DEPTH:return this.depth_();case b.WalkerMoves.SUMMARY:return this.summary_();case b.WalkerMoves.DETAIL:return this.detail_();default:{const n=[],a=this.focusSemanticNodes();for(let t=0,e=r.length;t<e;t++){var o=r[t],i=a[t];n.push(o?this.generator.getSpeech(o,this.getXml()):f.recomputeMarkup(i))}return this.mergePrefix_(n)}}}move(t){const e=this.keyMapping.get(t);if(!e)return null;t=e();return!(!t||t===this.getFocus()||(this.setFocus(t),this.moved===b.WalkerMoves.HOME&&(this.levels=this.initLevels()),0))}up(){return this.moved=b.WalkerMoves.UP,this.getFocus()}down(){return this.moved=b.WalkerMoves.DOWN,this.getFocus()}left(){return this.moved=b.WalkerMoves.LEFT,this.getFocus()}right(){return this.moved=b.WalkerMoves.RIGHT,this.getFocus()}repeat(){return this.moved=b.WalkerMoves.REPEAT,this.getFocus().clone()}depth(){return this.moved=this.isSpeech()?b.WalkerMoves.DEPTH:b.WalkerMoves.REPEAT,this.getFocus().clone()}home(){return this.moved=b.WalkerMoves.HOME,this.singletonFocus(this.rootId)}getBySemanticId(t){return v.getBySemanticId(this.node,t)}primaryId(){return this.getFocus().getSemanticPrimary().id.toString()}expand(){const t=this.getFocus().getDomPrimary(),e=this.actionable_(t);return e?(this.moved=b.WalkerMoves.EXPAND,e.dispatchEvent(new Event("click")),this.getFocus().clone()):this.getFocus()}expandable(t){return!!this.actionable_(t)&&0===t.childNodes.length}collapsible(t){return!!this.actionable_(t)&&0<t.childNodes.length}restoreState(){if(this.highlighter){const e=b.WalkerState.getState(this.id);if(e){let t=this.getRebuilt().nodeDict[e];const r=[];for(;t;)r.push(t.id),t=t.parent;for(r.pop();0<r.length;){this.down();const e=r.pop(),t=this.findFocusOnLevel(e);if(!t)break;this.setFocus(t)}this.moved=b.WalkerMoves.ENTER}}}updateFocus(){this.setFocus(y.Focus.factory(this.getFocus().getSemanticPrimary().id.toString(),this.getFocus().getSemanticNodes().map(t=>t.id.toString()),this.getRebuilt(),this.node))}rebuildStree(){this.rebuilt_=new g.RebuildStree(this.getXml()),this.rootId=this.rebuilt_.stree.root.id.toString(),this.generator.setRebuilt(this.rebuilt_),this.skeleton=h.SemanticSkeleton.fromTree(this.rebuilt_.stree),this.skeleton.populate(),this.focus_=this.singletonFocus(this.rootId),this.levels=this.initLevels(),f.connectMactions(this.node,this.getXml(),this.rebuilt_.xml)}previousLevel(){var t=this.getFocus().getDomPrimary();return t?v.getAttribute(t,c.Attribute.PARENT):this.getFocus().getSemanticPrimary().parent.id.toString()}nextLevel(){var t=this.getFocus().getDomPrimary();let e,r;if(t){e=v.splitAttribute(v.getAttribute(t,c.Attribute.CHILDREN)),r=v.splitAttribute(v.getAttribute(t,c.Attribute.CONTENT));const n=v.getAttribute(t,c.Attribute.TYPE),o=v.getAttribute(t,c.Attribute.ROLE);return this.combineContentChildren(n,o,r,e)}const n=t=>t.id.toString(),o=this.getRebuilt().nodeDict[this.primaryId()];return e=o.childNodes.map(n),r=o.contentNodes.map(n),0===e.length?[]:this.combineContentChildren(o.type,o.role,r,e)}singletonFocus(t){this.getRebuilt();var e=this.retrieveVisuals(t);return this.focusFromId(t,e)}retrieveVisuals(t){if(!this.skeleton)return[t];const e=parseInt(t,10),r=this.skeleton.subtreeNodes(e);if(!r.length)return[t];r.unshift(e);const n={},o=[];_.updateEvaluator(this.getXml());for(const t of r)n[t]||(o.push(t.toString()),n[t]=!0,this.subtreeIds(t,n));return o}subtreeIds(t,e){t=_.evalXPath(`//*[@data-semantic-id="${t}"]`,this.getXml());_.evalXPath("*//@data-semantic-id",t[0]).forEach(t=>e[parseInt(t.textContent,10)]=!0)}focusFromId(t,e){return y.Focus.factory(t,e,this.getRebuilt(),this.node)}summary(){return this.moved=this.isSpeech()?b.WalkerMoves.SUMMARY:b.WalkerMoves.REPEAT,this.getFocus().clone()}detail(){return this.moved=this.isSpeech()?b.WalkerMoves.DETAIL:b.WalkerMoves.REPEAT,this.getFocus().clone()}specialMove(){return null}virtualize(t){return this.cursors.push({focus:this.getFocus(),levels:this.levels,undo:t||!this.cursors.length}),this.levels=this.levels.clone(),this.getFocus().clone()}previous(){var t=this.cursors.pop();return t?(this.levels=t.levels,t.focus):this.getFocus()}undo(){let t;for(;(t=this.cursors.pop())&&!t.undo;);return t?(this.levels=t.levels,t.focus):this.getFocus()}update(t){this.generator.setOptions(t),(0,s.setup)(t).then(()=>d.generator("Tree").getSpeech(this.node,this.getXml()))}nextRules(){const t=this.generator.getOptions();return"speech"!==t.modality?this.getFocus():(n.DOMAIN_TO_STYLES[t.domain]=t.style,t.domain="mathspeak"===t.domain?"clearspeak":"mathspeak",t.style=n.DOMAIN_TO_STYLES[t.domain],this.update(t),this.moved=b.WalkerMoves.REPEAT,this.getFocus().clone())}nextStyle(t,e){if("mathspeak"===t){const t=["default","brief","sbrief"],n=t.indexOf(e);return-1===n?e:n>=t.length-1?t[0]:t[n+1]}if("clearspeak"!==t)return e;{const t=m.ClearspeakPreferences.getLocalePreferences().en;if(!t)return"default";const o=m.ClearspeakPreferences.relevantPreferences(this.getFocus().getSemanticPrimary()),i=m.ClearspeakPreferences.findPreference(e,o),a=t[o].map(function(t){return t.split("_")[1]}),s=a.indexOf(i);if(-1===s)return e;var r=s>=a.length-1?a[0]:a[s+1];return m.ClearspeakPreferences.addPreference(e,o,r)}}previousRules(){const t=this.generator.getOptions();return"speech"!==t.modality?this.getFocus():(t.style=this.nextStyle(t.domain,t.style),this.update(t),this.moved=b.WalkerMoves.REPEAT,this.getFocus().clone())}refocus(){let t,e=this.getFocus();for(;!e.getNodes().length;){t=this.levels.peek();var r=this.up();if(!r)break;this.setFocus(r),e=this.getFocus(!0)}this.levels.push(t),this.setFocus(e)}toggleActive_(){this.active_=!this.active_}mergePrefix_(t,e=[]){var r=this.isSpeech()?this.prefix_():"",r=(r&&t.unshift(r),this.isSpeech()?this.postfix_():"");return r&&t.push(r),i.finalize(i.merge(e.concat(t)))}prefix_(){var t=this.getFocus().getDomNodes(),e=this.getFocus().getSemanticNodes();return t[0]?v.getAttribute(t[0],c.Attribute.PREFIX):f.retrievePrefix(e[0])}postfix_(){var t=this.getFocus().getDomNodes();return t[0]?v.getAttribute(t[0],c.Attribute.POSTFIX):""}depth_(){var t=p.Grammar.getInstance().getParameter("depth"),e=(p.Grammar.getInstance().setParameter("depth",!0),this.getFocus().getDomPrimary()),e=this.expandable(e)?u.LOCALE.MESSAGES.navigate.EXPANDABLE:this.collapsible(e)?u.LOCALE.MESSAGES.navigate.COLLAPSIBLE:"",r=u.LOCALE.MESSAGES.navigate.LEVEL+" "+this.getDepth(),n=this.getFocus().getSemanticNodes(),n=f.retrievePrefix(n[0]),r=[new o.AuditoryDescription({text:r,personality:{}}),new o.AuditoryDescription({text:n,personality:{}}),new o.AuditoryDescription({text:e,personality:{}})];return p.Grammar.getInstance().setParameter("depth",t),i.finalize(i.markup(r))}actionable_(t){t=null==t?void 0:t.parentNode;return t&&this.highlighter.isMactionNode(t)?t:null}summary_(){var t=this.getFocus().getSemanticPrimary().id.toString(),t=this.getRebuilt().xml.getAttribute("id")===t?this.getRebuilt().xml:a.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",t)[0],t=f.retrieveSummary(t);return this.mergePrefix_([t])}detail_(){const t=this.getFocus().getSemanticPrimary().id.toString(),e=this.getRebuilt().xml.getAttribute("id")===t?this.getRebuilt().xml:a.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",t)[0],r=e.getAttribute("alternative");e.removeAttribute("alternative");var n=f.computeMarkup(e),n=this.mergePrefix_([n]);return e.setAttribute("alternative",r),n}}(e.AbstractWalker=S).ID_COUNTER=0,S.SRE_ID_ATTR="sre-explorer-id"},162:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.DummyWalker=void 0;class n extends r(3284).AbstractWalker{up(){return null}down(){return null}left(){return null}right(){return null}repeat(){return null}depth(){return null}home(){return null}getDepth(){return 0}initLevels(){return null}combineContentChildren(t,e,r,n){return[]}findFocusOnLevel(t){return null}}e.DummyWalker=n},7730:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.Focus=void 0;const p=r(1204);class h{constructor(t,e){this.nodes=t,this.primary=e,this.domNodes=[],this.domPrimary_=null,this.allNodes=[]}static factory(t,e,r,n){const o=t=>p.getBySemanticId(n,t),i=r.nodeDict,a=o(t),s=e.map(o),l=e.map(function(t){return i[t]}),c=new h(l,i[t]);return c.domNodes=s,c.domPrimary_=a,c.allNodes=h.generateAllVisibleNodes_(e,s,i,n),c}static generateAllVisibleNodes_(r,n,o,i){var a=t=>p.getBySemanticId(i,t);let s=[];for(let t=0,e=r.length;t<e;t++)if(n[t])s.push(n[t]);else{const l=o[r[t]];if(l){const c=l.childNodes.map(function(t){return t.id.toString()}),u=c.map(a);s=s.concat(h.generateAllVisibleNodes_(c,u,o,i))}}return s}getSemanticPrimary(){return this.primary}getSemanticNodes(){return this.nodes}getNodes(){return this.allNodes}getDomNodes(){return this.domNodes}getDomPrimary(){return this.domPrimary_}toString(){return"Primary:"+this.domPrimary_+" Nodes:"+this.domNodes}clone(){const t=new h(this.nodes,this.primary);return t.domNodes=this.domNodes,t.domPrimary_=this.domPrimary_,t.allNodes=this.allNodes,t}}e.Focus=h},9797:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Levels=void 0;e.Levels=class r{constructor(){this.level_=[]}push(t){this.level_.push(t)}pop(){return this.level_.pop()}peek(){return this.level_[this.level_.length-1]||null}indexOf(t){const e=this.peek();return e?e.indexOf(t):null}find(r){var n=this.peek();if(!n)return null;for(let t=0,e=n.length;t<e;t++)if(r(n[t]))return n[t];return null}get(t){var e=this.peek();return!e||t<0||t>=e.length?null:e[t]}depth(){return this.level_.length}clone(){const t=new r;return t.level_=this.level_.slice(0),t}toString(){let r="";for(let t,e=0;t=this.level_[e];e++)r+="\n"+t.map(function(t){return t.toString()});return r}}},1214:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.RebuildStree=void 0;const n=r(5740),c=r(2298),o=r(3588),i=r(6537),a=r(3308),s=r(5656),l=r(7075),u=r(4795),p=r(1204);class h{constructor(t){this.mathml=t,this.factory=new i.SemanticNodeFactory,this.nodeDict={},this.mmlRoot=p.getSemanticRoot(t),this.streeRoot=this.assembleTree(this.mmlRoot),this.stree=l.SemanticTree.fromNode(this.streeRoot,this.mathml),this.xml=this.stree.xml(),a.default.getInstance().setNodeFactory(this.factory)}static addAttributes(t,e,r){r&&1===e.childNodes.length&&e.childNodes[0].nodeType!==n.NodeType.TEXT_NODE&&u.addAttributes(t,e.childNodes[0]),u.addAttributes(t,e)}static textContent(t,e,r){!r&&e.textContent?t.textContent=e.textContent:1<(r=p.splitAttribute(p.getAttribute(e,c.Attribute.OPERATOR))).length&&(t.textContent=r[1])}static isPunctuated(t){return!s.SemanticSkeleton.simpleCollapseStructure(t)&&t[1]&&s.SemanticSkeleton.contentCollapseStructure(t[1])}getTree(){return this.stree}assembleTree(t){const e=this.makeNode(t),r=p.splitAttribute(p.getAttribute(t,c.Attribute.CHILDREN)),n=p.splitAttribute(p.getAttribute(t,c.Attribute.CONTENT));if(h.addAttributes(e,t,!(r.length||n.length)),0===n.length&&0===r.length)return h.textContent(e,t),e;if(0<n.length){const t=p.getBySemanticId(this.mathml,n[0]);t&&h.textContent(e,t,!0)}e.contentNodes=n.map(t=>this.setParent(t,e)),e.childNodes=r.map(t=>this.setParent(t,e));t=p.getAttribute(t,c.Attribute.COLLAPSED);return t?this.postProcess(e,t):e}makeNode(t){const e=p.getAttribute(t,c.Attribute.TYPE),r=p.getAttribute(t,c.Attribute.ROLE),n=p.getAttribute(t,c.Attribute.FONT),o=p.getAttribute(t,c.Attribute.ANNOTATION)||"",i=p.getAttribute(t,c.Attribute.ID),a=p.getAttribute(t,c.Attribute.EMBELLISHED),s=p.getAttribute(t,c.Attribute.FENCEPOINTER),l=this.createNode(parseInt(i,10));return l.type=e,l.role=r,l.font=n||"unknown",l.parseAnnotation(o),s&&(l.fencePointer=s),a&&(l.embellished=a),l}makePunctuation(t){const e=this.createNode(t);return e.updateContent((0,o.invisibleComma)()),e.role="dummy",e}makePunctuated(t,e,r){const n=this.createNode(e[0]),o=(n.type="punctuated",n.embellished=t.embellished,n.fencePointer=t.fencePointer,n.role=r,e.splice(1,1)[0].slice(1));n.contentNodes=o.map(this.makePunctuation.bind(this)),this.collapsedChildren_(e)}makeEmpty(t,e,r){const n=this.createNode(e);n.type="empty",n.embellished=t.embellished,n.fencePointer=t.fencePointer,n.role=r}makeIndex(t,e,r){if(h.isPunctuated(e))return this.makePunctuated(t,e,r),void e[0];s.SemanticSkeleton.simpleCollapseStructure(e)&&!this.nodeDict[e.toString()]&&this.makeEmpty(t,e,r)}postProcess(t,e){const r=s.SemanticSkeleton.fromString(e).array;if("subsup"===t.type){const e=this.createNode(r[1][0]);return e.type="subscript",e.role="subsup",t.type="superscript",e.embellished=t.embellished,e.fencePointer=t.fencePointer,this.makeIndex(t,r[1][2],"rightsub"),this.makeIndex(t,r[2],"rightsuper"),this.collapsedChildren_(r),t}if("subscript"===t.type)return this.makeIndex(t,r[2],"rightsub"),this.collapsedChildren_(r),t;if("superscript"===t.type)return this.makeIndex(t,r[2],"rightsuper"),this.collapsedChildren_(r),t;if("tensor"===t.type)return this.makeIndex(t,r[2],"leftsub"),this.makeIndex(t,r[3],"leftsuper"),this.makeIndex(t,r[4],"rightsub"),this.makeIndex(t,r[5],"rightsuper"),this.collapsedChildren_(r),t;if("punctuated"===t.type){if(h.isPunctuated(r)){const e=r.splice(1,1)[0].slice(1);t.contentNodes=e.map(this.makePunctuation.bind(this))}return t}if("underover"!==t.type)return t;{const e=this.createNode(r[1][0]);return"overaccent"===t.childNodes[1].role?(e.type="overscore",t.type="underscore"):(e.type="underscore",t.type="overscore"),e.role="underover",e.embellished=t.embellished,e.fencePointer=t.fencePointer,this.collapsedChildren_(r),t}}createNode(t){var e=this.factory.makeNode(t);return this.nodeDict[t.toString()]=e}collapsedChildren_(t){const i=r=>{const n=this.nodeDict[r[0]];n.childNodes=[];for(let t=1,e=r.length;t<e;t++){var o=r[t];n.childNodes.push(s.SemanticSkeleton.simpleCollapseStructure(o)?this.nodeDict[o]:i(o))}return n};i(t)}setParent(t,e){const r=p.getBySemanticId(this.mathml,t),n=this.assembleTree(r);return n.parent=e,n}}e.RebuildStree=h},6295:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticWalker=void 0;const n=r(3284),o=r(9797);class i extends n.AbstractWalker{constructor(t,e,r,n){super(t,e,r,n),this.node=t,this.generator=e,this.highlighter=r,this.levels=null,this.restoreState()}initLevels(){const t=new o.Levels;return t.push([this.getFocus()]),t}up(){super.up();const e=this.previousLevel();return e?(this.levels.pop(),this.levels.find(function(t){return t.getSemanticNodes().some(function(t){return t.id.toString()===e})})):null}down(){super.down();var t=this.nextLevel();return 0===t.length?null:(this.levels.push(t),t[0])}combineContentChildren(t,e,r,n){switch(t){case"relseq":case"infixop":case"multirel":return this.makePairList(n,r);case"prefixop":return[this.focusFromId(n[0],r.concat(n))];case"postfixop":return[this.focusFromId(n[0],n.concat(r))];case"matrix":case"vector":case"fenced":return[this.focusFromId(n[0],[r[0],n[0],r[1]])];case"cases":return[this.focusFromId(n[0],[r[0],n[0]])];case"punctuated":return"text"===e?n.map(this.singletonFocus.bind(this)):n.length===r.length?r.map(this.singletonFocus.bind(this)):this.combinePunctuations(n,r,[],[]);case"appl":return[this.focusFromId(n[0],[n[0],r[0]]),this.singletonFocus(n[1])];case"root":return[this.singletonFocus(n[1]),this.singletonFocus(n[0])];default:return n.map(this.singletonFocus.bind(this))}}combinePunctuations(t,e,r,n){if(0===t.length)return n;var o=t.shift(),i=e.shift();return o===i?(r.push(i),this.combinePunctuations(t,e,r,n)):(e.unshift(i),r.push(o),t.length===e.length?(n.push(this.focusFromId(o,r.concat(e))),n):(n.push(this.focusFromId(o,r)),this.combinePunctuations(t,e,[],n)))}makePairList(r,n){if(0===r.length)return[];if(1===r.length)return[this.singletonFocus(r[0])];const o=[this.singletonFocus(r.shift())];for(let t=0,e=r.length;t<e;t++)o.push(this.focusFromId(r[t],[n[t],r[t]]));return o}left(){super.left();var t=this.levels.indexOf(this.getFocus());return null!==t&&this.levels.get(t-1)||null}right(){super.right();var t=this.levels.indexOf(this.getFocus());return null!==t&&this.levels.get(t+1)||null}findFocusOnLevel(e){return this.levels.find(t=>t.getSemanticPrimary().id===e)}}e.SemanticWalker=i},9806:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.SyntaxWalker=void 0;const o=r(707),n=r(3284),i=r(9797);class a extends n.AbstractWalker{constructor(t,e,r,n){super(t,e,r,n),this.node=t,this.generator=e,this.highlighter=r,this.levels=null,this.restoreState()}initLevels(){const t=new i.Levels;return t.push([this.primaryId()]),t}up(){super.up();var t=this.previousLevel();return t?(this.levels.pop(),this.singletonFocus(t)):null}down(){super.down();var t=this.nextLevel();if(0===t.length)return null;var e=this.singletonFocus(t[0]);return e&&this.levels.push(t),e}combineContentChildren(t,e,r,n){switch(t){case"relseq":case"infixop":case"multirel":return(0,o.interleaveLists)(n,r);case"prefixop":return r.concat(n);case"postfixop":return n.concat(r);case"matrix":case"vector":case"fenced":return n.unshift(r[0]),n.push(r[1]),n;case"cases":return n.unshift(r[0]),n;case"punctuated":return"text"===e?(0,o.interleaveLists)(n,r):n;case"appl":return[n[0],r[0],n[1]];case"root":return[n[1],n[0]];default:return n}}left(){super.left();var t=this.levels.indexOf(this.primaryId());if(null===t)return null;t=this.levels.get(t-1);return t?this.singletonFocus(t):null}right(){super.right();var t=this.levels.indexOf(this.primaryId());if(null===t)return null;t=this.levels.get(t+1);return t?this.singletonFocus(t):null}findFocusOnLevel(t){return this.singletonFocus(t.toString())}focusDomNodes(){return[this.getFocus().getDomPrimary()]}focusSemanticNodes(){return[this.getFocus().getSemanticPrimary()]}}e.SyntaxWalker=a},1799:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.TableWalker=void 0;const i=r(5740),o=r(8496),n=r(9806),a=r(179);class s extends n.SyntaxWalker{constructor(t,e,r,n){super(t,e,r,n),this.node=t,this.generator=e,this.highlighter=r,this.firstJump=null,this.key_=null,this.row_=0,this.currentTable_=null,this.keyMapping.set(o.KeyCode.ZERO,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.ONE,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.TWO,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.THREE,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.FOUR,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.FIVE,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.SIX,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.SEVEN,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.EIGHT,this.jumpCell.bind(this)),this.keyMapping.set(o.KeyCode.NINE,this.jumpCell.bind(this))}move(t){this.key_=t;t=super.move(t);return this.modifier=!1,t}up(){return this.moved=a.WalkerMoves.UP,this.eligibleCell_()?this.verticalMove_(!1):super.up()}down(){return this.moved=a.WalkerMoves.DOWN,this.eligibleCell_()?this.verticalMove_(!0):super.down()}jumpCell(){if(!this.isInTable_()||null===this.key_)return this.getFocus();if(this.moved===a.WalkerMoves.ROW){this.moved=a.WalkerMoves.CELL;const t=this.key_-o.KeyCode.ZERO;return this.isLegalJump_(this.row_,t)?this.jumpCell_(this.row_,t):this.getFocus()}const t=this.key_-o.KeyCode.ZERO;return t>this.currentTable_.childNodes.length?this.getFocus():(this.row_=t,this.moved=a.WalkerMoves.ROW,this.getFocus().clone())}undo(){var t=super.undo();return t===this.firstJump&&(this.firstJump=null),t}eligibleCell_(){var t=this.getFocus().getSemanticPrimary();return this.modifier&&"cell"===t.type&&-1!==s.ELIGIBLE_CELL_ROLES.indexOf(t.role)}verticalMove_(t){var e=this.previousLevel();if(!e)return null;var r=this.getFocus(),n=this.levels.indexOf(this.primaryId()),o=this.levels.pop(),e=this.levels.indexOf(e),t=this.levels.get(t?e+1:e-1);if(!t)return this.levels.push(o),null;this.setFocus(this.singletonFocus(t));e=this.nextLevel();return e[n]?(this.levels.push(e),this.singletonFocus(e[n])):(this.setFocus(r),this.levels.push(o),null)}jumpCell_(t,e){this.firstJump?this.virtualize(!1):(this.firstJump=this.getFocus(),this.virtualize(!0));var r=this.currentTable_.id.toString();let n;for(;-1===(n=this.levels.pop()).indexOf(r););this.levels.push(n),this.setFocus(this.singletonFocus(r)),this.levels.push(this.nextLevel());const o=this.currentTable_.childNodes[t-1];return this.setFocus(this.singletonFocus(o.id.toString())),this.levels.push(this.nextLevel()),this.singletonFocus(o.childNodes[e-1].id.toString())}isLegalJump_(t,e){const r=i.querySelectorAllByAttrValue(this.getRebuilt().xml,"id",this.currentTable_.id.toString())[0];if(!r||r.hasAttribute("alternative"))return!1;const n=this.currentTable_.childNodes[t-1];if(!n)return!1;const o=i.querySelectorAllByAttrValue(r,"id",n.id.toString())[0];return!(!o||o.hasAttribute("alternative")||!n||!n.childNodes[e-1])}isInTable_(){let t=this.getFocus().getSemanticPrimary();for(;t;){if(-1!==s.ELIGIBLE_TABLE_TYPES.indexOf(t.type))return this.currentTable_=t,!0;t=t.parent}return!1}}(e.TableWalker=s).ELIGIBLE_CELL_ROLES=["determinant","rowvector","binomial","squarematrix","multiline","matrix","vector","cases","table"],s.ELIGIBLE_TABLE_TYPES=["multiline","matrix","vector","cases","table"]},179:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.WalkerState=e.WalkerMoves=void 0,(r=e.WalkerMoves||(e.WalkerMoves={})).UP="up",r.DOWN="down",r.LEFT="left",r.RIGHT="right",r.REPEAT="repeat",r.DEPTH="depth",r.ENTER="enter",r.EXPAND="expand",r.HOME="home",r.SUMMARY="summary",r.DETAIL="detail",r.ROW="row",r.CELL="cell";class n{static resetState(t){delete n.STATE[t]}static setState(t,e){n.STATE[t]=e}static getState(t){return n.STATE[t]}}(e.WalkerState=n).STATE={}},3362:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.walkerMapping_=i.walker=void 0;const o=e(162),a=e(6295),s=e(9806),l=e(1799);i.walker=function(t,e,r,n,o){return(i.walkerMapping_[t.toLowerCase()]||i.walkerMapping_.dummy)(e,r,n,o)},i.walkerMapping_={dummy:(t,e,r,n)=>new o.DummyWalker(t,e,r,n),semantic:(t,e,r,n)=>new a.SemanticWalker(t,e,r,n),syntax:(t,e,r,n)=>new s.SyntaxWalker(t,e,r,n),table:(t,e,r,n)=>new l.TableWalker(t,e,r,n)}},1204:function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.getBySemanticId=e.getSemanticRoot=e.getAttribute=e.splitAttribute=void 0;const n=r(5740),o=r(2298);e.splitAttribute=function(t){return t?t.split(/,/):[]},e.getAttribute=function(t,e){return t.getAttribute(e)},e.getSemanticRoot=function(t){if(t.hasAttribute(o.Attribute.TYPE)&&!t.hasAttribute(o.Attribute.PARENT))return t;var r=n.querySelectorAllByAttr(t,o.Attribute.TYPE);for(let t,e=0;t=r[e];e++)if(!t.hasAttribute(o.Attribute.PARENT))return t;return t},e.getBySemanticId=function(t,e){return t.getAttribute(o.Attribute.ID)===e?t:n.querySelectorAllByAttrValue(t,o.Attribute.ID,e)[0]}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var __webpack_exports__={};!function(){var t=__webpack_require__(9515),e=__webpack_require__(3282),r=__webpack_require__(235),j=__webpack_require__(265),n=__webpack_require__(2388);function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}MathJax.loader&&MathJax.loader.checkVersion("startup",e.VERSION,"startup"),(0,t.combineWithMathJax)({_:{components:{loader:r,package:j,startup:n}}});var o,i,n={"a11y/semantic-enrich":["input/mml","a11y/sre"],"a11y/complexity":["a11y/semantic-enrich"],"a11y/explorer":["a11y/semantic-enrich","ui/menu"],"[mml]/mml3":["input/mml"],"[tex]/all-packages":["input/tex-base"],"[tex]/action":["input/tex-base","[tex]/newcommand"],"[tex]/autoload":["input/tex-base","[tex]/require"],"[tex]/ams":["input/tex-base"],"[tex]/amscd":["input/tex-base"],"[tex]/bbox":["input/tex-base","[tex]/ams","[tex]/newcommand"],"[tex]/boldsymbol":["input/tex-base"],"[tex]/braket":["input/tex-base"],"[tex]/bussproofs":["input/tex-base"],"[tex]/cancel":["input/tex-base","[tex]/enclose"],"[tex]/centernot":["input/tex-base"],"[tex]/color":["input/tex-base"],"[tex]/colorv2":["input/tex-base"],"[tex]/colortbl":["input/tex-base","[tex]/color"],"[tex]/configmacros":["input/tex-base","[tex]/newcommand"],"[tex]/enclose":["input/tex-base"],"[tex]/extpfeil":["input/tex-base","[tex]/newcommand","[tex]/ams"],"[tex]/html":["input/tex-base"],"[tex]/mathtools":["input/tex-base","[tex]/newcommand","[tex]/ams"],"[tex]/mhchem":["input/tex-base","[tex]/ams"],"[tex]/newcommand":["input/tex-base"],"[tex]/noerrors":["input/tex-base"],"[tex]/noundefined":["input/tex-base"],"[tex]/physics":["input/tex-base"],"[tex]/require":["input/tex-base"],"[tex]/setoptions":["input/tex-base"],"[tex]/tagformat":["input/tex-base"],"[tex]/textcomp":["input/tex-base","[tex]/textmacros"],"[tex]/textmacros":["input/tex-base"],"[tex]/unicode":["input/tex-base"],"[tex]/verb":["input/tex-base"],"[tex]/cases":["[tex]/empheq"],"[tex]/empheq":["input/tex-base","[tex]/ams"]},a=Array.from(Object.keys(n)).filter(function(t){return"[tex]"===t.substr(0,5)&&"[tex]/autoload"!==t&&"[tex]/colorv2"!==t&&"[tex]/all-packages"!==t}),a={startup:["loader"],"input/tex":["input/tex-base","[tex]/ams","[tex]/newcommand","[tex]/noundefined","[tex]/require","[tex]/autoload","[tex]/configmacros"],"input/tex-full":["input/tex-base","[tex]/all-packages"].concat(function(t){if(Array.isArray(t))return B(t)}(o=a)||function(){if("undefined"!=typeof Symbol&&null!=o[Symbol.iterator]||null!=o["@@iterator"])return Array.from(o)}()||function(t){if(t){if("string"==typeof t)return B(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?B(t,void 0):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),"[tex]/all-packages":a},n=((0,t.combineDefaults)(MathJax.config.loader,"dependencies",n),(0,t.combineDefaults)(MathJax.config.loader,"paths",{tex:"[mathjax]/input/tex/extensions",mml:"[mathjax]/input/mml/extensions",sre:"[mathjax]/sre/mathmaps"}),(0,t.combineDefaults)(MathJax.config.loader,"provides",a),(0,t.combineDefaults)(MathJax.config.loader,"source",{"[tex]/amsCd":"[tex]/amscd","[tex]/colorV2":"[tex]/colorv2","[tex]/configMacros":"[tex]/configmacros","[tex]/tagFormat":"[tex]/tagformat"}),r.Loader.preLoad("loader","startup","core","input/tex-full","output/chtml","output/chtml/fonts/tex.js","ui/menu","a11y/assistive-mml"),__webpack_require__(444)),a=__webpack_require__(6191),s=__webpack_require__(5009),l=__webpack_require__(3494),c=__webpack_require__(3670),u=__webpack_require__(805),p=__webpack_require__(9206),h=__webpack_require__(5722),d=__webpack_require__(4474),f=__webpack_require__(9e3),m=__webpack_require__(91),y=__webpack_require__(6336),g=__webpack_require__(1759),b=__webpack_require__(3909),v=__webpack_require__(9007),_=__webpack_require__(3948),S=__webpack_require__(9145),x=__webpack_require__(142),M=__webpack_require__(7590),O=__webpack_require__(3233),E=__webpack_require__(1334),A=__webpack_require__(6661),C=__webpack_require__(1581),w=__webpack_require__(5410),T=__webpack_require__(6850),N=__webpack_require__(3985),L=__webpack_require__(450),P=__webpack_require__(6405),D=__webpack_require__(3050),F=__webpack_require__(2756),I=__webpack_require__(7238),H=__webpack_require__(5741),q=__webpack_require__(6145),U=__webpack_require__(9878),G=__webpack_require__(7265),V=__webpack_require__(6030),X=__webpack_require__(7131),W=__webpack_require__(1314),z=__webpack_require__(4461),$=__webpack_require__(1349),J=__webpack_require__(4359),K=__webpack_require__(4770),Y=__webpack_require__(5022),Z=__webpack_require__(5184),Q=__webpack_require__(9102),tt=__webpack_require__(6325),et=__webpack_require__(4082),rt=__webpack_require__(9259),nt=__webpack_require__(2975),ot=__webpack_require__(4574),it=__webpack_require__(4596),at=__webpack_require__(7860),st=__webpack_require__(8823),lt=__webpack_require__(8912),ct=__webpack_require__(3811),ut=__webpack_require__(6272),pt=__webpack_require__(3683),ht=__webpack_require__(5138),dt=__webpack_require__(3726),ft=__webpack_require__(3363),mt=__webpack_require__(3335),yt=__webpack_require__(5713),gt=__webpack_require__(9923),bt=__webpack_require__(6469),vt=__webpack_require__(6751),_t=__webpack_require__(5368),St=__webpack_require__(7525),xt=__webpack_require__(103),Mt=__webpack_require__(7233),k=__webpack_require__(8666),Ot=__webpack_require__(4542),Et=__webpack_require__(4139),At=__webpack_require__(8054),Ct=__webpack_require__(6010),wt=__webpack_require__(7875),Tt=__webpack_require__(505),n=(MathJax.loader&&MathJax.loader.checkVersion("core",e.VERSION,"core"),(0,t.combineWithMathJax)({_:{adaptors:{HTMLAdaptor:n,browserAdaptor:a},components:{global:t},core:{DOMAdaptor:s,FindMath:l,Handler:c,HandlerList:u,InputJax:p,MathDocument:h,MathItem:d,MathList:f,MmlTree:{Attributes:m,MML:y,MathMLVisitor:g,MmlFactory:b,MmlNode:v,MmlNodes:{TeXAtom:_,maction:S,maligngroup:x,malignmark:M,math:O,mathchoice:E,menclose:A,merror:C,mfenced:w,mfrac:T,mglyph:N,mi:L,mmultiscripts:P,mn:D,mo:F,mpadded:I,mphantom:H,mroot:q,mrow:U,ms:G,mspace:V,msqrt:X,mstyle:W,msubsup:z,mtable:$,mtd:J,mtext:K,mtr:Y,munderover:Z,semantics:Q},MmlVisitor:tt,OperatorDictionary:et,SerializedMmlVisitor:rt},OutputJax:nt,Tree:{Factory:ot,Node:it,NodeFactory:at,Visitor:st,Wrapper:lt,WrapperFactory:ct}},handlers:{html_ts:ut,html:{HTMLDocument:pt,HTMLDomStrings:ht,HTMLHandler:dt,HTMLMathItem:ft,HTMLMathList:mt}},mathjax:yt,util:{AsyncLoad:gt,BBox:bt,BitField:vt,Entities:_t,FunctionList:St,LinkedList:xt,Options:Mt,PrioritizedList:k,Retries:Ot,StyleList:Et,Styles:At,lengths:Ct,numeric:wt,string:Tt}}}),MathJax.startup&&(MathJax.startup.registerConstructor("HTMLHandler",dt.HTMLHandler),MathJax.startup.registerConstructor("browserAdaptor",a.browserAdaptor),MathJax.startup.useHandler("HTMLHandler"),MathJax.startup.useAdaptor("browserAdaptor")),MathJax.loader&&(MathJax._.mathjax.mathjax.asyncLoad=function(t){return MathJax.loader.load(t)}),__webpack_require__(8462)),s=__webpack_require__(210),l=__webpack_require__(9899),c=__webpack_require__(4676),u=__webpack_require__(7073),p=__webpack_require__(2947),h=__webpack_require__(8929),d=__webpack_require__(1256),f=__webpack_require__(5450),m=__webpack_require__(8562),y=__webpack_require__(1130),g=__webpack_require__(9497),b=__webpack_require__(8292),v=__webpack_require__(5453),_=__webpack_require__(8803),S=__webpack_require__(9140),x=__webpack_require__(6521),M=__webpack_require__(8317),O=__webpack_require__(3971),E=__webpack_require__(8417),A=__webpack_require__(8174),C=__webpack_require__(583),w=__webpack_require__(7819),T=__webpack_require__(8021),N=__webpack_require__(2790),L=__webpack_require__(4387),P=__webpack_require__(1275),D=__webpack_require__(2942),F=__webpack_require__(1181),I=__webpack_require__(7693),H=__webpack_require__(1186),q=__webpack_require__(8603),U=__webpack_require__(6538),G=__webpack_require__(7191),V=__webpack_require__(8667),X=__webpack_require__(9499),W=__webpack_require__(3980),z=__webpack_require__(4934),$=__webpack_require__(1933),J=__webpack_require__(8963),K=__webpack_require__(3752),Y=__webpack_require__(8227),Z=__webpack_require__(6648),Q=__webpack_require__(6628),tt=__webpack_require__(5860),et=__webpack_require__(7960),rt=__webpack_require__(2784),nt=__webpack_require__(4207),ot=__webpack_require__(8458),it=__webpack_require__(5464),at=__webpack_require__(6471),st=__webpack_require__(1428),lt=__webpack_require__(6121),ct=__webpack_require__(3078),ut=__webpack_require__(8901),pt=__webpack_require__(332),ht=__webpack_require__(7535),ft=__webpack_require__(6224),mt=__webpack_require__(643),yt=__webpack_require__(1503),gt=__webpack_require__(836),bt=__webpack_require__(6944),vt=__webpack_require__(1496),_t=__webpack_require__(6793),St=__webpack_require__(1110),xt=__webpack_require__(5579),k=__webpack_require__(4234),Ot=__webpack_require__(4898),Et=__webpack_require__(3168),At=__webpack_require__(2612),Ct=__webpack_require__(7157),wt=__webpack_require__(7741),Tt=__webpack_require__(9365),dt=__webpack_require__(1527),a=__webpack_require__(2307),Nt=__webpack_require__(2675),Lt=__webpack_require__(58),Pt=__webpack_require__(8728),It=__webpack_require__(6841),kt=__webpack_require__(1442),Rt=__webpack_require__(1247);function jt(t,e){t=0<arguments.length&&void 0!==t?t:[];MathJax.startup&&(1<arguments.length&&void 0!==e&&!e||(MathJax.startup.registerConstructor("tex",MathJax._.input.tex_ts.TeX),MathJax.startup.useInput("tex")),MathJax.config.tex||(MathJax.config.tex={}),e=MathJax.config.tex.packages,MathJax.config.tex.packages=t,e&&(0,Mt.insert)(MathJax.config.tex,{packages:e}))}function Bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}MathJax.loader&&MathJax.loader.checkVersion("input/tex-full",e.VERSION,"input"),(0,t.combineWithMathJax)({_:{input:{tex_ts:n,tex:{AllPackages:s,Configuration:l,FilterUtil:c,FindTeX:u,MapHandler:p,NodeFactory:h,NodeUtil:d,ParseMethods:f,ParseOptions:m,ParseUtil:y,Stack:g,StackItem:b,StackItemFactory:v,Symbol:_,SymbolMap:S,Tags:x,TexConstants:M,TexError:O,TexParser:E,action:{ActionConfiguration:A},amscd:{AmsCdConfiguration:C,AmsCdMethods:w},ams:{AmsConfiguration:T,AmsItems:N,AmsMethods:L},autoload:{AutoloadConfiguration:P},base:{BaseConfiguration:D,BaseItems:F,BaseMethods:I},bbox:{BboxConfiguration:H},boldsymbol:{BoldsymbolConfiguration:q},braket:{BraketConfiguration:U,BraketItems:G,BraketMethods:V},bussproofs:{BussproofsConfiguration:X,BussproofsItems:W,BussproofsMethods:z,BussproofsUtil:$},cancel:{CancelConfiguration:J},cases:{CasesConfiguration:K},centernot:{CenternotConfiguration:Y},colortbl:{ColortblConfiguration:Z},colorv2:{ColorV2Configuration:Q},color:{ColorConfiguration:tt,ColorConstants:et,ColorMethods:rt,ColorUtil:nt},configmacros:{ConfigMacrosConfiguration:ot},empheq:{EmpheqConfiguration:it,EmpheqUtil:at},enclose:{EncloseConfiguration:st},extpfeil:{ExtpfeilConfiguration:lt},gensymb:{GensymbConfiguration:ct},html:{HtmlConfiguration:ut,HtmlMethods:pt},mathtools:{MathtoolsConfiguration:ht,MathtoolsItems:ft,MathtoolsMethods:mt,MathtoolsTags:yt,MathtoolsUtil:gt},mhchem:{MhchemConfiguration:bt},newcommand:{NewcommandConfiguration:vt,NewcommandItems:_t,NewcommandMethods:St,NewcommandUtil:xt},noerrors:{NoErrorsConfiguration:k},noundefined:{NoUndefinedConfiguration:Ot},physics:{PhysicsConfiguration:Et,PhysicsItems:At,PhysicsMethods:Ct},require:{RequireConfiguration:wt},setoptions:{SetOptionsConfiguration:Tt},tagformat:{TagFormatConfiguration:dt},textcomp:{TextcompConfiguration:a},textmacros:{TextMacrosConfiguration:Nt,TextMacrosMethods:Lt,TextParser:Pt},unicode:{UnicodeConfiguration:It},upgreek:{UpgreekConfiguration:kt},verb:{VerbConfiguration:Rt}}}}}),MathJax.loader&&MathJax.loader.checkVersion("[tex]/all-packages",e.VERSION,"tex-extension"),(0,t.combineWithMathJax)({_:{input:{tex:{AllPackages:s,autoload:{AutoloadConfiguration:P},require:{RequireConfiguration:wt}}}}}),MathJax.loader&&MathJax.loader.preLoad("[tex]/autoload","[tex]/require"),jt(["require"].concat(function(t){if(Array.isArray(t))return Bt(t)}(i=s.AllPackages)||function(){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)}()||function(t){if(t){if("string"==typeof t)return Bt(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Bt(t,void 0):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),!1),MathJax.loader&&MathJax.loader.preLoad("input/tex-base","[tex]/all-packages"),jt();var R,n=__webpack_require__(50),l=__webpack_require__(8042),c=__webpack_require__(8270),u=__webpack_require__(6797),p=__webpack_require__(5355),h=__webpack_require__(9261),d=__webpack_require__(9086),f=__webpack_require__(95),m=__webpack_require__(1148),y=__webpack_require__(8102),g=__webpack_require__(804),b=__webpack_require__(8147),v=__webpack_require__(2275),_=__webpack_require__(9063),S=__webpack_require__(6911),x=__webpack_require__(1653),M=__webpack_require__(6781),O=__webpack_require__(6460),E=__webpack_require__(6287),A=__webpack_require__(5964),C=__webpack_require__(8776),w=__webpack_require__(4798),T=__webpack_require__(4597),N=__webpack_require__(2970),L=__webpack_require__(5610),D=__webpack_require__(4300),F=__webpack_require__(8002),I=__webpack_require__(7056),H=__webpack_require__(1259),q=__webpack_require__(3571),U=__webpack_require__(6590),G=__webpack_require__(8650),V=__webpack_require__(421),X=__webpack_require__(5884),W=__webpack_require__(5552),z=__webpack_require__(3055),$=__webpack_require__(7519),J=__webpack_require__(4420),K=__webpack_require__(9800),Y=__webpack_require__(1160),Z=__webpack_require__(1956),Q=__webpack_require__(7490),tt=__webpack_require__(7313),et=__webpack_require__(7555),rt=__webpack_require__(2688),nt=__webpack_require__(5636),ot=__webpack_require__(5723),it=__webpack_require__(8009),at=__webpack_require__(5023),st=__webpack_require__(7096),lt=__webpack_require__(6898),ct=__webpack_require__(6991),ut=__webpack_require__(8411),pt=__webpack_require__(4126),ht=__webpack_require__(258),ft=__webpack_require__(4093),mt=__webpack_require__(905),yt=__webpack_require__(6237),gt=__webpack_require__(5164),bt=__webpack_require__(6319),vt=__webpack_require__(5766),_t=__webpack_require__(1971),St=__webpack_require__(167),xt=__webpack_require__(5806),k=(MathJax.loader&&MathJax.loader.checkVersion("output/chtml",e.VERSION,"output"),(0,t.combineWithMathJax)({_:{output:{chtml_ts:n,chtml:{FontData:l,Notation:c,Usage:u,Wrapper:p,WrapperFactory:h,Wrappers_ts:d,Wrappers:{TeXAtom:f,TextNode:m,maction:y,math:g,menclose:b,mfenced:v,mfrac:_,mglyph:S,mi:x,mmultiscripts:M,mn:O,mo:E,mpadded:A,mroot:C,mrow:w,ms:T,mspace:N,msqrt:L,msubsup:D,mtable:F,mtd:I,mtext:H,mtr:q,munderover:U,scriptbase:G,semantics:V}},common:{FontData:X,Notation:W,OutputJax:z,Wrapper:$,WrapperFactory:J,Wrappers:{TeXAtom:K,TextNode:Y,maction:Z,math:Q,menclose:tt,mfenced:et,mfrac:rt,mglyph:nt,mi:ot,mmultiscripts:it,mn:at,mo:st,mpadded:lt,mroot:ct,mrow:ut,ms:pt,mspace:ht,msqrt:ft,msubsup:mt,mtable:yt,mtd:gt,mtext:bt,mtr:vt,munderover:_t,scriptbase:St,semantics:xt}}}}}),MathJax.loader&&(0,t.combineDefaults)(MathJax.config.loader,"output/chtml",{checkReady:function(){return MathJax.loader.load("output/chtml/fonts/tex")}}),MathJax.startup&&(MathJax.startup.registerConstructor("chtml",n.CHTML),MathJax.startup.useOutput("chtml")),__webpack_require__(2760)),Ot=__webpack_require__(4005),Et=__webpack_require__(1015),At=__webpack_require__(6555),Ct=__webpack_require__(2183),Tt=__webpack_require__(3490),dt=__webpack_require__(9056),a=__webpack_require__(3019),Nt=__webpack_require__(2713),Lt=__webpack_require__(7517),Pt=__webpack_require__(4182),It=__webpack_require__(2679),kt=__webpack_require__(5469),Rt=__webpack_require__(775),P=__webpack_require__(9551),wt=__webpack_require__(6530),s=__webpack_require__(4409),l=__webpack_require__(5292),c=__webpack_require__(5887),u=__webpack_require__(1103),p=__webpack_require__(9124),h=__webpack_require__(6001),d=__webpack_require__(3696),f=__webpack_require__(9587),m=__webpack_require__(8348),y=__webpack_require__(1376),g=__webpack_require__(1439),b=__webpack_require__(331),v=__webpack_require__(4886),_=__webpack_require__(4471),S=__webpack_require__(5181),x=__webpack_require__(3526),M=__webpack_require__(5649),O=__webpack_require__(7153),E=__webpack_require__(5745),A=__webpack_require__(1411),C=__webpack_require__(6384),w=__webpack_require__(6041),T=__webpack_require__(8199),N=__webpack_require__(9848),L=__webpack_require__(7906),D=__webpack_require__(2644),F=__webpack_require__(4926),H=(MathJax.loader&&MathJax.loader.checkVersion("output/chtml/fonts/tex",e.VERSION,"chtml-font"),(0,t.combineWithMathJax)({_:{output:{chtml:{fonts:{tex_ts:k,tex:{"bold-italic":Ot,bold:Et,"fraktur-bold":At,fraktur:Ct,italic:Tt,largeop:dt,monospace:a,normal:Nt,"sans-serif-bold-italic":Lt,"sans-serif-bold":Pt,"sans-serif-italic":It,"sans-serif":kt,smallop:Rt,"tex-calligraphic-bold":P,"tex-size3":wt,"tex-size4":s,"tex-variant":l}}},common:{fonts:{tex:{"bold-italic":c,bold:u,delimiters:p,"double-struck":h,"fraktur-bold":d,fraktur:f,italic:m,largeop:y,monospace:g,normal:b,"sans-serif-bold-italic":v,"sans-serif-bold":_,"sans-serif-italic":S,"sans-serif":x,"script-bold":M,script:O,smallop:E,"tex-calligraphic-bold":A,"tex-calligraphic":C,"tex-mathit":w,"tex-oldstyle-bold":T,"tex-oldstyle":N,"tex-size3":L,"tex-size4":D,"tex-variant":F}}}}}}),MathJax.startup&&((0,t.combineDefaults)(MathJax.config,"chtml",{fontURL:j.Package.resolvePath("output/chtml/fonts/woff-v2",!1)}),I=(0,Mt.selectOptionsFromKeys)(MathJax.config.chtml||{},k.TeXFont.OPTIONS),(0,t.combineDefaults)(MathJax.config,"chtml",{font:new k.TeXFont(I)})),__webpack_require__(5865)),q=__webpack_require__(8310),Dt=__webpack_require__(4001),U=__webpack_require__(473),G=__webpack_require__(4414),Ft=(MathJax.loader&&MathJax.loader.checkVersion("ui/menu",e.VERSION,"ui"),(0,t.combineWithMathJax)({_:{ui:{menu:{MJContextMenu:H,Menu:q,MenuHandler:Dt,MmlVisitor:U,SelectableInfo:G}}}}),MathJax.startup&&"undefined"!=typeof window&&MathJax.startup.extendHandler(function(t){return(0,Dt.MenuHandler)(t)},20),__webpack_require__(351));function Ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}MathJax.loader&&MathJax.loader.checkVersion("a11y/assistive-mml",e.VERSION,"a11y"),(0,t.combineWithMathJax)({_:{a11y:{"assistive-mml":Ft}}}),MathJax.startup&&MathJax.startup.extendHandler(function(t){return(0,Ft.AssistiveMmlHandler)(t)}),r.Loader.preLoad("loader"),r.Loader.load.apply(r.Loader,function(t){if(Array.isArray(t))return Ht(t)}(R=r.CONFIG.load)||function(){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}()||function(t){if(t){if("string"==typeof t)return Ht(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ht(t,void 0):void 0}}(R)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).then(function(){return r.CONFIG.ready()}).catch(function(t){return r.CONFIG.failed(t)})}()}();