PageSourceSearch

https://ecmtb2026.org/_nuxt/yPP4dUTr.js

js ecmtb2026.org collected 2026-09-24 10:06:15 UTC 977,535 bytes, 233 lines download raw bytes

1import{g as db}from"./CxfkTsMZ.js";function ub(xr,Nn){for(var Bi=0;Bi<Nn.length;Bi++){const Hr=Nn[Bi];if(typeof Hr!="string"&&!Array.isArray(Hr)){for(const yr in Hr)if(yr!=="default"&&!(yr in xr)){const m=Object.getOwnPropertyDescriptor(Hr,yr);m&&Object.defineProperty(xr,yr,m.get?m:{enumerable:!0,get:()=>Hr[yr]})}}}return Object.freeze(Object.defineProperty(xr,Symbol.toStringTag,{value:"Module"}))}function Aa(xr){throw new Error('Could not dynamically require "'+xr+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Rf={},Mf;function pb(){if(Mf)return Rf;Mf=1;var xr={};return(()=>{var Nn,Bi,Hr={981(Ut,w){function Mt(ut,j){return j===void 0&&(j=Object),j&&typeof j.getOwnPropertyDescriptors=="function"&&(ut=j.create(null,j.getOwnPropertyDescriptors(ut))),j&&typeof j.freeze=="function"?j.freeze(ut):ut}function ot(ut,j){return Object.prototype.hasOwnProperty.call(ut,j)}var H=Mt({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0}),kt=Mt({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),rt=Mt({script:!1,style:!1,textarea:!0,title:!0});function nt(ut){return ut===Kt.HTML}var Kt=Mt({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Ue=Object.keys(Kt).map(function(ut){return Kt[ut]}),Vt=Mt({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});w.assign=function(ut,j){if(ut===null||typeof ut!="object")throw new TypeError("target is not an object");for(var Ct in j)ot(j,Ct)&&(ut[Ct]=j[Ct]);return ut},w.find=function(ut,j,Ct){if(Ct===void 0&&(Ct=Array.prototype),ut&&typeof Ct.find=="function")return Ct.find.call(ut,j);for(var _=0;_<ut.length;_++)if(ot(ut,_)){var ae=ut[_];if(j.call(void 0,ae,_,ut))return ae}},w.freeze=Mt,w.HTML_BOOLEAN_ATTRIBUTES=H,w.HTML_RAW_TEXT_ELEMENTS=rt,w.HTML_VOID_ELEMENTS=kt,w.hasDefaultHTMLNamespace=function(ut){return nt(ut)||ut===Kt.XML_XHTML_APPLICATION},w.hasOwn=ot,w.isHTMLBooleanAttribute=function(ut){return ot(H,ut.toLowerCase())},w.isHTMLRawTextElement=function(ut){var j=ut.toLowerCase();return ot(rt,j)&&!rt[j]},w.isHTMLEscapableRawTextElement=function(ut){var j=ut.toLowerCase();return ot(rt,j)&&rt[j]},w.isHTMLMimeType=nt,w.isHTMLVoidElement=function(ut){return ot(kt,ut.toLowerCase())},w.isValidMimeType=function(ut){return Ue.indexOf(ut)>-1},w.MIME_TYPE=Kt,w.NAMESPACE=Vt},985(Ut,w,Mt){var ot=Mt(981),H=Mt(553),kt=Mt(918),rt=Mt(334),nt=Mt(309),Kt=H.DOMImplementation,Ue=ot.hasDefaultHTMLNamespace,Vt=ot.isHTMLMimeType,ut=ot.isValidMimeType,j=ot.MIME_TYPE,Ct=ot.NAMESPACE,_=kt.ParseError,ae=nt.XMLReader;function Pt(X){return X.replace(/\r[\n\u0085]/g,`
2`).replace(/[\r\u0085\u2028\u2029]/g,`
3`)}function ie(X){if((X=X||{}).locator===void 0&&(X.locator=!0),this.assign=X.assign||ot.assign,this.domHandler=X.domHandler||vs,this.onError=X.onError||X.errorHandler,X.errorHandler&&typeof X.errorHandler!="function")throw new TypeError("errorHandler object is no longer supported, switch to onError!");X.errorHandler&&X.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=X.normalizeLineEndings||Pt,this.locator=!!X.locator,this.xmlns=this.assign(Object.create(null),X.xmlns)}function vs(X){var ft=X||{};this.mimeType=ft.mimeType||j.XML_APPLICATION,this.defaultNamespace=ft.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=ft.onError}function cs(X,ft){ft.lineNumber=X.lineNumber,ft.columnNumber=X.columnNumber}function Je(X,ft,P){return typeof X=="string"?X.substr(ft,P):X.length>=ft+P||ft?new java.lang.String(X,ft,P)+"":X}function Le(X,ft){X.currentElement?X.currentElement.appendChild(ft):X.doc.appendChild(ft)}ie.prototype.parseFromString=function(X,ft){if(!ut(ft))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+ft+'" is not val
3id.');var P=this.assign(Object.create(null),this.xmlns),U=rt.XML_ENTITIES,$=P[""]||null;Ue(ft)?(U=rt.HTML_ENTITIES,$=Ct.HTML):ft===j.XML_SVG_IMAGE&&($=Ct.SVG),P[""]=$,P.xml=P.xml||Ct.XML;var ht=new this.domHandler({mimeType:ft,defaultNamespace:$,onError:this.onError}),ct=this.locator?{}:void 0;this.locator&&ht.setDocumentLocator(ct);var J=new ae;return J.errorHandler=ht,J.domBuilder=ht,!ot.isHTMLMimeType(ft)&&typeof X!="string"&&J.errorHandler.fatalError("source is not a string"),J.parse(this.normalizeLineEndings(String(X)),P,U),ht.doc.documentElement||J.errorHandler.fatalError("missing root element"),ht.doc},vs.prototype={startDocument:function(){var X=new Kt;this.doc=Vt(this.mimeType)?X.createHTMLDocument(!1):X.createDocument(this.defaultNamespace,"")},startElement:function(X,ft,P,U){var $=this.doc,ht=$.createElementNS(X,P||ft),ct=U.length;Le(this,ht),this.currentElement=ht,this.locator&&cs(this.locator,ht);for(var J=0;J<ct;J++){X=U.getURI(J);var Et=U.getValue(J),at=(P=U.getQName(J),$.createAttributeNS(X,P));this.locator&&cs(U.getLocator(J),at),at.value=at.nodeValue=Et,ht.setAttributeNode(at)}},endElement:function(X,ft,P){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(X,ft){},endPrefixMapping:function(X){},processingInstruction:function(X,ft){var P=this.doc.createProcessingInstruction(X,ft);this.locator&&cs(this.locator,P),Le(this,P)},ignorableWhitespace:function(X,ft,P){},characters:function(X,ft,P){if(X=Je.apply(this,arguments)){if(this.cdata)var U=this.doc.createCDATASection(X);else U=this.doc.createTextNode(X);this.currentElement?this.currentElement.appendChild(U):/^\s*$/.test(X)&&this.doc.appendChild(U),this.locator&&cs(this.locator,U)}},skippedEntity:function(X){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(X){X&&(X.lineNumber=0),this.locator=X},comment:function(X,ft,P){X=Je.apply(this,arguments);var U=this.doc.createComment(X);this.locator&&cs(this.locator,U),Le(this,U)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(X,ft,P,U){var $=this.doc.implementation;if($&&$.createDocumentType){var ht=$.createDocumentType(X,ft,P,U);this.locator&&cs(this.locator,ht),Le(this,ht),this.doc.doctype=ht}},reportError:function(X,ft){if(typeof this.onError=="function")try{this.onError(X,ft,this)}catch(P){throw new _("Reporting "+X+' "'+ft+'" caused '+P,this.locator)}else console.error("[xmldom "+X+"]	"+ft,(function(P){if(P)return`
4@#[line:`+P.lineNumber+",col:"+P.columnNumber+"]"})(this.locator))},warning:function(X){this.reportError("warning",X)},error:function(X){this.reportError("error",X)},fatalError:function(X){throw this.reportError("fatalError",X),new _(X,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(X){vs.prototype[X]=function(){return null}}),w.__DOMHandler=vs,w.DOMParser=ie,w.normalizeLineEndings=Pt,w.onErrorStopParsing=function(X){if(X==="error")throw"onErrorStopParsing"},w.onWarningStopParsing=function(){throw"onWarningStopParsing"}},553(Ut,w,Mt){var ot=Mt(981),H=ot.find,kt=ot.hasDefaultHTMLNamespace,rt=ot.hasOwn,nt=ot.isHTMLMimeType,Kt=ot.isHTMLRawTextElement,Ue=ot.isHTMLVoidElement,Vt=ot.MIME_TYPE,ut=ot.NAMESPACE,j=Symbol(),Ct=Mt(918),_=Ct.DOMException,ae=Ct.DOMExceptionName,Pt=Mt(112);function ie(f){if(f!==j)throw new TypeError("Illegal constructor")}function vs(f){return f!==""}function cs(f,E){return rt(f,E)||(f[E]=!0),f}function Je(f){if(!f)return[];var E=(function(T){return T?T.split(/[\t\n\f\r ]+/).filter(vs):[]})(f);return Object.keys(E.reduce(cs,{}))}function Le(f){if(!Pt.QName_exact.test(f))throw new _(_.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+f+'"')}function X(f,E){Le(E),f=f||null;var T=null,M=E;if(E.indexOf(":")>=0){var O=E.split(":");T=O[0],M=O[1]}if(T!==null&&f===null)throw new _(_.NAMESPACE_ERR,"prefix is non-null and namespace is null");if(T==="xml"&&f!==ot.NAMESPACE.XML)throw new _(_.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if((T==="xmlns"||E==="xmlns")&&f!==ot.NAMESPACE.XMLNS)throw new _(_.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(f===ot.NAMESPACE.XMLNS&&T!=="xmlns"&&E!=="xmlns")throw new _(_.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[f,T,M]}function ft(f,E){for(var T in f)rt(f,T)&&(E[T]=f[T])}function P(f,E){var T=f.prototype;if(!(T instanceof E)){let M=function(){};M.prototype=E.prototype,ft(T,M=new M),f.prototype=T=M}T.constructor!=f&&(typeof f!="function"&&console.error("unknown Class:"+f),T.constructor=f)}var U={},$=U.ELEMENT_NODE=1,ht=U.ATTRIBUTE_NODE=2,ct=U.TEXT_NODE=3,J=U.CDATA_SECTION_NODE=4,Et=U.ENTITY_REFERENCE_NODE=5,at=U.ENTITY_NODE=6,bt=U.PROCESSING_INSTRUCTION_NODE=7,yt=U.COMMENT_NODE=8,Z=U.DOCUMENT_NODE=9,zt=U.DOCUMENT_TYPE_NODE=10,Ht=U.DOCUMENT_FRAGMENT_NODE=11,Ae=U.NOTATION_NODE=12,Xt=ot.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function Ie(f,E){if(E.length<f.length)return Ie(E,f);var T=null;for(var M in f){if(f[M]!==E[M])return T;T=f[M]}return T}function $t(f){return f.guid||(f.guid=Math.random()),f.guid}function Wt(){}function Se(f,E){this._node=f,this._refresh=E,Pe(this)}function Pe(f){var E=f._node._inc||f._node.ownerDocument._inc;if(f._inc!==E){var T=f._refresh(f._node);
4if(vr(f,"length",T.length),!f.$$length||T.length<f.$$length)for(var M=T.length;M in f;M++)rt(f,M)&&delete f[M];ft(T,f),f._inc=E}}function pe(){}function we(f,E){for(var T=0;T<f.length;){if(f[T]===E)return T;T++}}function Ts(f,E,T,M){if(M?E[we(E,M)]=T:(E[E.length]=T,E.length++),f){T.ownerElement=f;var O=f.ownerDocument;O&&(M&&Rs(O,f,M),(function(G,xt,Jt){G&&G._inc++;var Q=Jt.namespaceURI;Q===ut.XMLNS&&(xt._nsMap[Jt.prefix?Jt.localName:""]=Jt.value)})(O,f,T))}}function Cs(f,E,T){var M=we(E,T);if(M>=0){for(var O=E.length-1;M<=O;)E[M]=E[++M];if(E.length=O,f){var G=f.ownerDocument;G&&Rs(G,f,T),T.ownerElement=null}}}function bs(){}function vt(f){ie(f)}function Ss(f){return(f=="<"?"&lt;":f==">"&&"&gt;")||f=="&"&&"&amp;"||f=='"'&&"&quot;"||"&#"+f.charCodeAt()+";"}function Ls(f,E){gt(f,null,{enter:function(T){return!E(T)||gt.STOP}})}function gt(f,E,T){for(var M=[{node:f,context:E,phase:gt.ENTER}];M.length>0;){var O=M.pop();if(O.phase===gt.ENTER){var G=T.enter(O.node,O.context);if(G===gt.STOP)return gt.STOP;if(M.push({node:O.node,context:G,phase:gt.EXIT}),G==null)continue;for(var xt=O.node.lastChild;xt;)M.push({node:xt,context:G,phase:gt.ENTER}),xt=xt.previousSibling}else T.exit&&T.exit(O.node,O.context)}}function es(f,E){ie(f);var T=E||{};this.ownerDocument=this,this.contentType=T.contentType||Vt.XML_APPLICATION,this.type=nt(this.contentType)?"html":"xml"}function Rs(f,E,T,M){f&&f._inc++,T.namespaceURI===ut.XMLNS&&delete E._nsMap[T.prefix?T.localName:""]}function Ms(f,E,T){if(f&&f._inc){f._inc++;var M=E.childNodes;if(T&&!T.nextSibling)M[M.length++]=T;else{for(var O=E.firstChild,G=0;O;)M[G++]=O,O=O.nextSibling;M.length=G,delete M[M.length]}}}function Yt(f,E){if(f!==E.parentNode)throw new _(_.NOT_FOUND_ERR,"child's parent is not parent");var T=E.previousSibling,M=E.nextSibling;return T?T.nextSibling=M:f.firstChild=M,M?M.previousSibling=T:f.lastChild=T,Ms(f.ownerDocument,f),E.parentNode=null,E.previousSibling=null,E.nextSibling=null,E}function ee(f){return f&&f.nodeType===vt.DOCUMENT_TYPE_NODE}function He(f){return f&&f.nodeType===vt.ELEMENT_NODE}function Ye(f){return f&&f.nodeType===vt.TEXT_NODE}function Qs(f,E){var T=f.childNodes||[];if(H(T,He)||ee(E))return!1;var M=H(T,ee);return!(E&&M&&T.indexOf(M)>T.indexOf(E))}function le(f,E){var T=f.childNodes||[];if(H(T,function(O){return He(O)&&O!==E}))return!1;var M=H(T,ee);return!(E&&M&&T.indexOf(M)>T.indexOf(E))}function _e(f,E,T){if(!(function(M){return M&&(M.nodeType===vt.DOCUMENT_NODE||M.nodeType===vt.DOCUMENT_FRAGMENT_NODE||M.nodeType===vt.ELEMENT_NODE)})(f))throw new _(_.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+f.nodeType);if(T&&T.parentNode!==f)throw new _(_.NOT_FOUND_ERR,"child not in parent");if(!(function(M){return M&&(M.nodeType===vt.CDATA_SECTION_NODE||M.nodeType===vt.COMMENT_NODE||M.nodeType===vt.DOCUMENT_FRAGMENT_NODE||M.nodeType===vt.DOCUMENT_TYPE_NODE||M.nodeType===vt.ELEMENT_NODE||M.nodeType===vt.PROCESSING_INSTRUCTION_NODE||M.nodeType===vt.TEXT_NODE)})(E)||ee(E)&&f.nodeType!==vt.DOCUMENT_NODE)throw new _(_.HIERARCHY_REQUEST_ERR,"Unexpected node type "+E.nodeType+" for parent node type "+f.nodeType)}function Nt(f,E,T){var M=f.childNodes||[],O=E.childNodes||[];if(E.nodeType===vt.DOCUMENT_FRAGMENT_NODE){var G=O.filter(He);if(G.length>1||H(O,Ye))throw new _(_.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(G.length===1&&!Qs(f,T))throw new _(_.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(He(E)&&!Qs(f,T))throw new _(_.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(ee(E)){if(H(M,ee))throw new _(_.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var xt=H(M,He);if(T&&M.indexOf(xt)<M.indexOf(T))throw new _(_.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!T&&xt)throw new _(_.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function We(f,E,T){var M=f.childNodes||[],O=E.childNodes||[];if(E.nodeType===vt.DOCUMENT_FRAGMENT_NODE){var G=O.filter(He);if(G.length>1||H(O,Ye))throw new _(_.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");
4if(G.length===1&&!le(f,T))throw new _(_.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(He(E)&&!le(f,T))throw new _(_.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(ee(E)){if(H(M,function(Q){return ee(Q)&&Q!==T}))throw new _(_.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var xt=H(M,He);if(T&&M.indexOf(xt)<M.indexOf(T))throw new _(_.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function Es(f,E,T,M){_e(f,E,T),f.nodeType===vt.DOCUMENT_NODE&&(M||Nt)(f,E,T);var O=E.parentNode;if(O&&O.removeChild(E),E.nodeType===Ht){var G=E.firstChild;if(G==null)return E;var xt=E.lastChild}else G=xt=E;var Jt=T?T.previousSibling:f.lastChild;G.previousSibling=Jt,xt.nextSibling=T,Jt?Jt.nextSibling=G:f.firstChild=G,T==null?f.lastChild=xt:T.previousSibling=xt;do G.parentNode=f;while(G!==xt&&(G=G.nextSibling));return Ms(f.ownerDocument||f,f,E),E.nodeType==Ht&&(E.firstChild=E.lastChild=null),E}function Lt(f){ie(f),this._nsMap=Object.create(null)}function Bt(f){ie(f),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function Ke(f){ie(f)}function xs(f){ie(f)}function Us(f){ie(f)}function Ni(f){ie(f)}function ai(f){ie(f)}function ss(f){ie(f)}function er(f){ie(f)}function Hs(f){ie(f)}function _s(f){ie(f)}function Zs(f){ie(f)}function sr(){}function Fi(f){var E;E=typeof f=="function"?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:f}:f!=null?{requireWellFormed:!!f.requireWellFormed,splitCDATASections:f.splitCDATASections!==!1,nodeFilter:f.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var T=[],M=this.nodeType===Z&&this.documentElement||this,O=M.prefix,G=M.namespaceURI;if(G&&O==null&&(O=M.lookupPrefix(G))==null)var xt=[{namespace:G,prefix:null}];return vi(this,T,xt,E),T.join("")}function Zt(f,E,T){var M=f.prefix||"",O=f.namespaceURI;if(!O||M==="xml"&&O===ut.XML||O===ut.XMLNS)return!1;for(var G=T.length;G--;){var xt=T[G];if(xt.prefix===M)return xt.namespace!==O}return!0}function ds(f,E,T){f.push(" ",E,'="',T.replace(/[<>&"\t\n\r]/g,Ss),'"')}function vi(f,E,T,M){T||(T=[]);var O=M.nodeFilter,G=M.requireWellFormed,xt=M.splitCDATASections,Jt=(f.nodeType===Z?f:f.ownerDocument).type==="html";gt(f,{ns:T},{enter:function(Q,qe){var Ve=qe.ns;if(O){if(!(Q=O(Q)))return null;if(typeof Q=="string")return E.push(Q),null}switch(Q.nodeType){case $:var us=Q.attributes,ps=us.length,is=Q.tagName,ti=is;if(!Jt&&!Q.prefix&&Q.namespaceURI){for(var Qe,Ti=0;Ti<us.length;Ti++)if(us.item(Ti).name==="xmlns"){Qe=us.item(Ti).value;break}if(!Qe){for(var Vs=Ve.length-1;Vs>=0;Vs--)if((li=Ve[Vs]).prefix===""&&li.namespace===Q.namespaceURI){Qe=li.namespace;break}}if(Qe!==Q.namespaceURI)for(Vs=Ve.length-1;Vs>=0;Vs--){var li;if((li=Ve[Vs]).namespace===Q.namespaceURI){li.prefix&&(ti=li.prefix+":"+is);break}}}E.push("<",ti);for(var zs=Ve.slice(),ei=0;ei<ps;ei++)(Is=us.item(ei)).prefix=="xmlns"?zs.push({prefix:Is.localName,namespace:Is.value}):Is.nodeName=="xmlns"&&zs.push({prefix:"",namespace:Is.value});for(ei=0;ei<ps;ei++){var Is;if(Zt(Is=us.item(ei),0,zs)){var rr=Is.prefix||"",Xs=Is.namespaceURI;ds(E,rr?"xmlns:"+rr:"xmlns",Xs),zs.push({prefix:rr,namespace:Xs})}var Js=O?O(Is):Is;Js&&(typeof Js=="string"?E.push(Js):ds(E,Js.name,Js.value))}if(is===ti&&Zt(Q,0,zs)){var nr=Q.prefix||"";Xs=Q.namespaceURI,ds(E,nr?"xmlns:"+nr:"xmlns",Xs),zs.push({prefix:nr,namespace:Xs})}var ci=!Q.firstChild;if(ci&&(Jt||Q.namespaceURI===ut.HTML)&&(ci=Ue(is)),ci)return E.push("/>"),null;if(E.push(">"),Jt&&Kt(is)){for(var ze=Q.firstChild;ze;)ze.data?E.push(ze.data):vi(ze,E,zs.slice(),M),ze=ze.nextSibling;return E.push("</",ti,">"),null}return{ns:zs,tag:ti};case Z:case Ht:if(G&&Q.nodeType===Z&&Q.documentElement==null)throw new _("The Document has no documentElement",ae.InvalidStateError);return{ns:Ve};case ht:return ds(E,Q.name,Q.value),null;case ct:if(G&&Pt.InvalidChar.test(Q.data))throw new _("The Text node data contains characters outside the XML Char production",ae.InvalidStateError);return E.push(Q.data.replace(/[<&>]/g,Ss)),null;case J:if(G&&Q.data.indexOf("]]>")!==-1)throw new _('The CDATASection data contains "]]>"',ae.InvalidStateError);return xt?E.push(Pt.CDATA_START,Q.data.replace(/]]>/g,"]]]]><![CDATA[>"),Pt.CDATA_END):E.push(Pt.CDATA_START,Q.data,Pt.CDATA_END),null;case yt:if(G){if(Pt.InvalidChar.test(Q.data))throw new _("The comment node data contains characters outside the XML Char production",ae.InvalidStateError);if(Q.data.indexOf("--")!==-1||Q.data[Q.data.length-1]==="-")throw new _('The comment node data contains "--" or ends with "-"',ae.InvalidStateError)}return E.push(Pt.COMMENT_START,Q.data,Pt.COMMENT_END),null;case zt:var hi=Q.publicId,ws=Q.systemId;if(G){if(hi&&!Pt.PubidLiteral_match.test(hi))throw new _("DocumentType publicId is not a valid PubidLiteral",ae.InvalidStateError);if(ws&&ws!=="."&&!Pt.SystemLiteral_match.test(ws))throw new _("DocumentType systemId is not a valid SystemLiteral",ae.InvalidStateError);if(Q.internalSubset&&Q.internalSubset.indexOf("]>")!==-1)throw new _('DocumentType internalSubset contains "]>"',ae.InvalidStateError)}return E.push(Pt.DOCTYPE_DECL_START," ",Q.name),hi?(E.push(" ",Pt.PUBLIC," ",hi),ws&&ws!=="."&&E.push(" ",ws)):ws&&ws!=="."&&E.push(" ",Pt.SYSTEM," ",ws),Q.internalSubset&&E.push(" [",Q.internalSubset,"]"),E.push(">"),null;case bt:if(G){if(Q.target.indexOf(":")!==-1||Q.target.toLowerCase()==="xml")throw new _("The ProcessingInstruction target is not well-formed",ae.InvalidStateError);if(Pt.InvalidChar.test(Q.data))throw new _("The ProcessingInstruction data contains characters outside the XML Char production",ae.InvalidStateError);if(Q.data.indexOf("?>")!==-1)throw new _('The ProcessingInstruction data contains "?>"',ae.InvalidStateError)}return E.push("<?",Q.target," ",Q.data,"?>"),null;case Et:return E.push("&",Q.nodeName,";"),null;default:return E.push("??",Q.nodeName),null}},exit:function(Q,qe){qe&&qe.tag&&E.push("</",qe.tag,">")}})}function Nr(f,E,T){var M;return gt(E,null,{enter:function(O,G){var xt=new O.constructor(j);for(var Jt in O)if(rt(O,Jt)){var Q=O[Jt];typeof Q!="object"&&Q!=xt[Jt]&&(xt[Jt]=Q)}O.childNodes&&(xt.childNodes=new Wt),xt.ownerDocument=f;var qe=T;switch(xt.nodeType){case $:var Ve=O.attributes,us=xt.attributes=new pe,ps=Ve.length;us._ownerElement=xt;for(var is=0;is<ps;is++)xt.setAttributeNode(Nr(f,Ve.item(is),!0));break;case ht:qe=!0}return G!==null?G.appendChild(xt):M=xt,qe?xt:null}}),M}function vr(f,E,T){f[E]=T}function ir(f){for(var E=[],T=f.firstChild;T;)T.nodeType===$&&E.push(T),T=T.nextSibling;return E}Wt.prototype={length:0,item:function(f){return f>=0&&f<this.length?this[f]:null},toString:function(f){var E;E=typeof f=="function"?{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:f}:f?{requireWellFormed:!!f.requireWellFormed,splitCDATASections:f.splitCDATASections!==!1,nodeFilter:f.nodeFilter||null}:{requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};for(var T=[],M=0;M<this.length;M++)vi(this[M],T,null,E);return T.join("")},filter:function(f){return Array.prototype.filter.call(this,f)},indexOf:function(f){return Array.prototype.indexOf.call(this,f)}},Wt.prototype[Symbol.iterator]=function(){var f=this,E=0;return{next:function(){return E<f.length?{value:f[E++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},Se.prototype.item=function(f){return Pe(this),this[f]||null},P(Se,Wt),pe.prototype={length:0,item:Wt.prototype.item,getNamedItem:function(f){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(f=f.toLowerCase());for(var E=0;E<this.length;){var T=this[E];if(T.nodeName===f)return T;E++}return null},setNamedItem:function(f){var E=f.ownerElement;if(E&&E!==this._ownerElement)throw new _(_.INUSE_ATTRIBUTE_ERR);var T=this.getNamedItemNS(f.namespaceURI,f.localName);return T===f?f:(Ts(this._ownerElement,this,f,T),T)},setNamedItemNS:function(f){return this.setNamedItem(f)},removeNamedItem:function(f){var E=this.getNamedItem(f);if(!E)throw new _(_.NOT_FOUND_ERR,f);return Cs(this._ownerElement,this,E),E},removeNamedItemNS:function(f,E){var T=this.getNamedItemNS(f,E);if(!T)throw new _(_.NOT_FOUND_ERR,f?f+" : "+E:E);return Cs(this._ownerElement,this,T),T},getNamedItemNS:function(f,E){f||(f=null);for(var T=0;T<this.length;){var M=this[T];if(M.localName===E&&M.namespaceURI===f)return M;T++}return null}},pe.prototype[Symbol.iterator]=function(){var f=this,E=0;return{next:function(){return E<f.length?{value:f[E++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},bs.prototype={hasFeature:function(f,E){return!0},createDocument:function(f,E,T){var M=Vt.XML_APPLICATION;f===ut.HTML?M=Vt.XML_XHTML_APPLICATION:f===ut.SVG&&(M=Vt.XML_SVG_IMAGE);var O=new es(j,{contentType:M});if(O.implementation=this,O.childNodes=new Wt,O.doctype=T||null,T&&O.appendChild(T),E){var G=O.createElementNS(f,E);O.appendChild(G)}return O},createDocumentType:function(f,E,T,M){Le(f);var O=new ai(j);return O.name=f,O.nodeName=f,O.publicId=E||"",O.systemId=T||"",O.internalSubset=M||"",O.childNodes=new Wt,O},createHTMLDocument:function(f){var E=new es(j,{contentType:Vt.HTML});if(E.implementation=this,E.childNodes=new Wt,f!==!1){E.doctype=this.createDocumentType("html"),E.doctype.ownerDocument=E,E.appendChild(E.doctype);var T=E.createElement("html");E.appendChild(T);var M=E.createElement("head");if(T.appendChild(M),typeof f=="string"){var O=E.createElement("title");O.appendChild(E.createTextNode(f)),M.appendChild(O)}T.appendChild(E.createElement("body"))}return E}},vt.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var f=this.getRootNode();return f&&f.nodeType===f.DOCUMENT_NODE}
vendor: 4,624 bytes, line 4
4,contains:function(f){if(!f)return!1;var E=f;do{if(this===E)return!0;E=E.parentNode}while(E);return!1},getRootNode:function(f){var E=this;do{if(!E.parentNode)return E;E=E.parentNode}while(E)},isEqualNode:function(f){if(!f)return!1;for(var E=[{node:this,other:f}];E.length>0;){var T=E.pop(),M=T.node,O=T.other;if(M.nodeType!==O.nodeType)return!1;switch(M.nodeType){case M.DOCUMENT_TYPE_NODE:if(M.name!==O.name||M.publicId!==O.publicId||M.systemId!==O.systemId)return!1;break;case M.ELEMENT_NODE:if(M.namespaceURI!==O.namespaceURI||M.prefix!==O.prefix||M.localName!==O.localName||M.attributes.length!==O.attributes.length)return!1;for(var G=0;G<M.attributes.length;G++){var xt=M.attributes.item(G),Jt=O.getAttributeNodeNS(xt.namespaceURI,xt.localName);if(!Jt)return!1;E.push({node:xt,other:Jt})}break;case M.ATTRIBUTE_NODE:if(M.namespaceURI!==O.namespaceURI||M.localName!==O.localName||M.value!==O.value)return!1;break;case M.PROCESSING_INSTRUCTION_NODE:if(M.target!==O.target||M.data!==O.data)return!1;break;case M.TEXT_NODE:case M.CDATA_SECTION_NODE:case M.COMMENT_NODE:if(M.data!==O.data)return!1}if(M.childNodes.length!==O.childNodes.length)return!1;for(G=M.childNodes.length-1;G>=0;G--)E.push({node:M.childNodes[G],other:O.childNodes[G]})}return!0},isSameNode:function(f){return this===f},insertBefore:function(f,E){return Es(this,f,E)},replaceChild:function(f,E){Es(this,f,E,We),E&&this.removeChild(E)},removeChild:function(f){return Yt(this,f)},appendChild:function(f){return this.insertBefore(f,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(f){return Nr(this.ownerDocument||this,this,f)},normalize:function(){gt(this,null,{enter:function(f){for(var E=f.firstChild;E;){var T=E.nextSibling;T!==null&&T.nodeType===ct&&E.nodeType===ct?(f.removeChild(T),E.appendData(T.data)):E=T}return!0}})},isSupported:function(f,E){return this.ownerDocument.implementation.hasFeature(f,E)},lookupPrefix:function(f){for(var E=this;E;){var T=E._nsMap;if(T){for(var M in T)if(rt(T,M)&&T[M]===f)return M}E=E.nodeType==ht?E.ownerDocument:E.parentNode}return null},lookupNamespaceURI:function(f){for(var E=this;E;){var T=E._nsMap;if(T&&rt(T,f))return T[f];E=E.nodeType==ht?E.ownerDocument:E.parentNode}return null},isDefaultNamespace:function(f){return this.lookupPrefix(f)==null},compareDocumentPosition:function(f){if(this===f)return 0;var E=f,T=this,M=null,O=null;if(E instanceof Bt&&(E=(M=E).ownerElement),T instanceof Bt&&(T=(O=T).ownerElement,M&&E&&T===E))for(var G,xt=0;G=T.attributes[xt];xt++){if(G===M)return Xt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+Xt.DOCUMENT_POSITION_PRECEDING;if(G===O)return Xt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+Xt.DOCUMENT_POSITION_FOLLOWING}if(!E||!T||T.ownerDocument!==E.ownerDocument)return Xt.DOCUMENT_POSITION_DISCONNECTED+Xt.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+($t(T.ownerDocument)>$t(E.ownerDocument)?Xt.DOCUMENT_POSITION_FOLLOWING:Xt.DOCUMENT_POSITION_PRECEDING);if(O&&E===T)return Xt.DOCUMENT_POSITION_CONTAINS+Xt.DOCUMENT_POSITION_PRECEDING;if(M&&E===T)return Xt.DOCUMENT_POSITION_CONTAINED_BY+Xt.DOCUMENT_POSITION_FOLLOWING;for(var Jt=[],Q=E.parentNode;Q;){if(!O&&Q===T)return Xt.DOCUMENT_POSITION_CONTAINED_BY+Xt.DOCUMENT_POSITION_FOLLOWING;Jt.push(Q),Q=Q.parentNode}Jt.reverse();for(var qe=[],Ve=T.parentNode;Ve;){if(!M&&Ve===E)return Xt.DOCUMENT_POSITION_CONTAINS+Xt.DOCUMENT_POSITION_PRECEDING;qe.push(Ve),Ve=Ve.parentNode}qe.reverse();var us=Ie(Jt,qe);for(var ps in us.childNodes){var is=us.childNodes[ps];if(is===T)return Xt.DOCUMENT_POSITION_FOLLOWING;if(is===E)return Xt.DOCUMENT_POSITION_PRECEDING;if(qe.indexOf(is)>=0)return Xt.DOCUMENT_POSITION_FOLLOWING;if(Jt.indexOf(is)>=0)return Xt.DOCUMENT_POSITION_PRECEDING}return 0}},ft(U,vt),ft(U,vt.prototype),ft(Xt,vt),ft(Xt,vt.prototype),gt.STOP=Symbol("walkDOM.STOP"),gt.ENTER=0,gt.EXIT=1,es.prototype={implementation:null,nodeName:"#document",nodeType:Z,doctype:null,documentElement:null,_inc:1,insertBefore:function(f,E){if(f.nodeType===Ht){for(var T=f.firstChild;T;){var M=T.nextSibling;this.insertBefore(T,E),T=M}return f}return Es(this,f,E),f.ownerDocument=this,this.documentElement===null&&f.nodeType===$&&(this.documentElement=f),f},removeChild:function(f){var E=Yt(this,f);return E===this.documentElement&&(this.documentElement=null),E},replaceChild:function(f,E){Es(this,f,E,We),f.ownerDocument=this,E&&this.removeChild(E),He(f)&&(this.documentElement=f)},importNode:function(f,E){return(function(T,M,O){var G;return gt(M,null,{enter:function(xt,Jt){var Q=xt.cloneNode(!1);return Q.ownerDocument=T,Q.parentNode=null,Jt===null?G=Q:Jt.appendChild(Q),xt.nodeType===ht||O?Q:null}}),G}
4)(this,f,E)},getElementById:function(f){var E=null;return Ls(this.documentElement,function(T){if(T.nodeType==$&&T.getAttribute("id")==f)return E=T,!0}),E},createElement:function(f){var E=new Lt(j);return E.ownerDocument=this,this.type==="html"&&(f=f.toLowerCase()),kt(this.contentType)&&(E.namespaceURI=ut.HTML),E.nodeName=f,E.tagName=f,E.localName=f,E.childNodes=new Wt,(E.attributes=new pe)._ownerElement=E,E},createDocumentFragment:function(){var f=new _s(j);return f.ownerDocument=this,f.childNodes=new Wt,f},createTextNode:function(f){var E=new xs(j);return E.ownerDocument=this,E.childNodes=new Wt,E.appendData(f),E},createComment:function(f){var E=new Us(j);return E.ownerDocument=this,E.childNodes=new Wt,E.appendData(f),E},createCDATASection:function(f){if(f.indexOf("]]>")!==-1)throw new _(_.INVALID_CHARACTER_ERR,'data contains "]]>"');var E=new Ni(j);return E.ownerDocument=this,E.childNodes=new Wt,E.appendData(f),E},createProcessingInstruction:function(f,E){var T=new Zs(j);return T.ownerDocument=this,T.childNodes=new Wt,T.nodeName=T.target=f,T.nodeValue=T.data=E,T},createAttribute:function(f){if(!Pt.QName_exact.test(f))throw new _(_.INVALID_CHARACTER_ERR,'invalid character in name "'+f+'"');return this.type==="html"&&(f=f.toLowerCase()),this._createAttribute(f)},_createAttribute:function(f){var E=new Bt(j);return E.ownerDocument=this,E.childNodes=new Wt,E.name=f,E.nodeName=f,E.localName=f,E.specified=!0,E},createEntityReference:function(f){if(!Pt.Name.test(f))throw new _(_.INVALID_CHARACTER_ERR,'not a valid xml name "'+f+'"');if(this.type==="html")throw new _("document is an html document",ae.NotSupportedError);var E=new Hs(j);return E.ownerDocument=this,E.childNodes=new Wt,E.nodeName=f,E},createElementNS:function(f,E){var T=X(f,E),M=new Lt(j),O=M.attributes=new pe;return M.childNodes=new Wt,M.ownerDocument=this,M.nodeName=E,M.tagName=E,M.namespaceURI=T[0],M.prefix=T[1],M.localName=T[2],O._ownerElement=M,M},createAttributeNS:function(f,E){var T=X(f,E),M=new Bt(j);return M.ownerDocument=this,M.childNodes=new Wt,M.nodeName=E,M.name=E,M.specified=!0,M.namespaceURI=T[0],M.prefix=T[1],M.localName=T[2],M}},P(es,vt),Lt.prototype={nodeType:$,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return this.ownerDocument.type==="html"&&this.namespaceURI===ut.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(f){return!!this.getAttributeNode(f)},getAttribute:function(f){var E=this.getAttributeNode(f);return E?E.value:null},getAttributeNode:function(f){return this._isInHTMLDocumentAndNamespace()&&(f=f.toLowerCase()),this.attributes.getNamedItem(f)},setAttribute:function(f,E){this._isInHTMLDocumentAndNamespace()&&(f=f.toLowerCase());var T=this.getAttributeNode(f);T?T.value=T.nodeValue=""+E:((T=this.ownerDocument._createAttribute(f)).value=T.nodeValue=""+E,this.setAttributeNode(T))},removeAttribute:function(f){var E=this.getAttributeNode(f);E&&this.removeAttributeNode(E)},setAttributeNode:function(f){return this.attributes.setNamedItem(f)},setAttributeNodeNS:function(f){return this.attributes.setNamedItemNS(f)},removeAttributeNode:function(f){return this.attributes.removeNamedItem(f.nodeName)},removeAttributeNS:function(f,E){var T=this.getAttributeNodeNS(f,E);T&&this.removeAttributeNode(T)},hasAttributeNS:function(f,E){return this.getAttributeNodeNS(f,E)!=null},getAttributeNS:function(f,E){var T=this.getAttributeNodeNS(f,E);return T?T.value:null},setAttributeNS:function(f,E,T){var M=X(f,E)[2],O=this.getAttributeNodeNS(f,M);O?O.value=O.nodeValue=""+T:((O=this.ownerDocument.createAttributeNS(f,E)).value=O.nodeValue=""+T,this.setAttributeNode(O))},getAttributeNodeNS:function(f,E){return this.attributes.getNamedItemNS(f,E)},getElementsByClassName:function(f){var E=Je(f);return new Se(this,function(T){var M=[];return E.length>0&&Ls(T,function(O){if(O!==T&&O.nodeType===$){var G=O.getAttribute("class");if(G){var xt=f===G;if(!xt){var Jt=Je(G);xt=E.every((Q=Jt,function(qe){return Q&&Q.indexOf(qe)!==-1}))}xt&&M.push(O)}}var Q}),M})},getElementsByTagName:function(f){var E=(this.nodeType===Z?this:this.ownerDocument).type==="html",T=f.toLowerCase();return new Se(this,function(M){var O=[];return Ls(M,function(G){G!==M&&G.nodeType===$&&(f==="*"||G.getQualifiedName()===(E&&G.namespaceURI===ut.HTML?T:f))&&O.push(G)}),O})},getElementsByTagNameNS:function(f,E){return new Se(this,function(T){var M=[];return Ls(T,function(O){O===T||O.nodeType!==$||f!=="*"&&O.namespaceURI!==f||E!=="*"&&O.localName!=E||M.push(O)}),M})}},es.prototype.getElementsByClassName=Lt.prototype.getElementsByClassName,es.prototype.getElementsByTagName=Lt.prototype.getElementsByTagName,es.prototype.getElementsByTagNameNS=Lt.prototype.getElementsByTagNameNS,P(Lt,vt),Bt.prototype.nodeType=ht,P(Bt,vt),Ke.prototype={data:"",substringData:function(f,E){return this.data.substring(f,f+E)},appendData:function(f){f=this.data+f,this.nodeValue=this.data=f,this.length=f.length},insertData:function(f,E){this.replaceData(f,0,E)},deleteData:function(f,E){this.replaceData(f,E,"")},replaceData:function(f,E,T){T=this.data.substring(0,f)+T+this.data.substring(f+E),this.nodeValue=this.data=T,this.length=T.length}}
vendor: 2,183 bytes, line 4
4,P(Ke,vt),xs.prototype={nodeName:"#text",nodeType:ct,splitText:function(f){var E=this.data,T=E.substring(f);E=E.substring(0,f),this.data=this.nodeValue=E,this.length=E.length;var M=this.ownerDocument.createTextNode(T);return this.parentNode&&this.parentNode.insertBefore(M,this.nextSibling),M}},P(xs,Ke),Us.prototype={nodeName:"#comment",nodeType:yt},P(Us,Ke),Ni.prototype={nodeName:"#cdata-section",nodeType:J},P(Ni,xs),ai.prototype.nodeType=zt,P(ai,vt),ss.prototype.nodeType=Ae,P(ss,vt),er.prototype.nodeType=at,P(er,vt),Hs.prototype.nodeType=Et,P(Hs,vt),_s.prototype.nodeName="#document-fragment",_s.prototype.nodeType=Ht,P(_s,vt),Zs.prototype.nodeType=bt,P(Zs,Ke),sr.prototype.serializeToString=function(f,E){return Fi.call(f,E)},vt.prototype.toString=Fi;try{Object.defineProperty&&(Object.defineProperty(Se.prototype,"length",{get:function(){return Pe(this),this.$$length}}),Object.defineProperty(vt.prototype,"textContent",{get:function(){if(this.nodeType===$||this.nodeType===Ht){var f=[];return gt(this,null,{enter:function(E){return E.nodeType===$||E.nodeType===Ht||(E.nodeType===bt||E.nodeType===yt?null:void f.push(E.nodeValue))}}),f.join("")}return this.nodeValue},set:function(f){switch(this.nodeType){case $:case Ht:for(;this.firstChild;)this.removeChild(this.firstChild);(f||String(f))&&this.appendChild(this.ownerDocument.createTextNode(f));break;default:this.data=f,this.value=f,this.nodeValue=f}}}),Object.defineProperty(Lt.prototype,"children",{get:function(){return new Se(this,ir)}}),Object.defineProperty(es.prototype,"children",{get:function(){return new Se(this,ir)}}),Object.defineProperty(_s.prototype,"children",{get:function(){return new Se(this,ir)}}),vr=function(f,E,T){f["$$"+E]=T})}catch{}w._updateLiveList=Pe,w.Attr=Bt,w.CDATASection=Ni,w.CharacterData=Ke,w.Comment=Us,w.Document=es,w.DocumentFragment=_s,w.DocumentType=ai,w.DOMImplementation=bs,w.Element=Lt,w.Entity=er,w.EntityReference=Hs,w.LiveNodeList=Se,w.NamedNodeMap=pe,w.Node=vt,w.NodeList=Wt,w.Notation=ss,w.Text=xs,w.ProcessingInstruction=Zs,w.walkDOM=gt,w.XMLSerializer=sr},334(Ut,w,Mt){var ot=Mt(981).freeze;w.XML_ENTITIES=ot({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),w.HTML_ENTITIES=ot
vendor: 14,815 bytes, line 4
4({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:
4`
5`
vendor: 9,925 bytes, line 5
5,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"
5	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),w.entityMap=w.HTML_ENTITIES},918(Ut,w,Mt){function ot(j,Ct){j.prototype=Object.create(Error.prototype,{constructor:{value:j},name:{value:j.name,enumerable:!0,writable:Ct}})}var H=Mt(981).freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),kt=Object.keys(H);function rt(j){return typeof j=="number"&&j>=1&&j<=25}function nt(j,Ct){var _;rt(j)?(this.name=kt[j],this.message=Ct||""):(this.message=j,this.name=typeof(_=Ct)=="str
5ing"&&_.substring(_.length-H.Error.length)===H.Error?Ct:H.Error),Error.captureStackTrace&&Error.captureStackTrace(this,nt)}ot(nt,!0),Object.defineProperties(nt.prototype,{code:{enumerable:!0,get:function(){var j=kt.indexOf(this.name);return rt(j)?j:0}}});for(var Kt={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},Ue=Object.entries(Kt),Vt=0;Vt<Ue.length;Vt++)nt[Ue[Vt][0]]=Ue[Vt][1];function ut(j,Ct){this.message=j,this.locator=Ct,Error.captureStackTrace&&Error.captureStackTrace(this,ut)}ot(ut),w.DOMException=nt,w.DOMExceptionName=H,w.ExceptionCode=Kt,w.ParseError=ut},112(Ut,w){function Mt(Lt){try{typeof Lt!="function"&&(Lt=RegExp);var Bt=new Lt("𝌆","u").exec("𝌆");return!!Bt&&Bt[0].length===2}catch{}return!1}var ot=Mt();function H(Lt){if(Lt.source[0]!=="[")throw new Error(Lt+" can not be used with chars");return Lt.source.slice(1,Lt.source.lastIndexOf("]"))}function kt(Lt,Bt){if(Lt.source[0]!=="[")throw new Error("/"+Lt.source+"/ can not be used with chars_without");if(!Bt||typeof Bt!="string")throw new Error(JSON.stringify(Bt)+" is not a valid search");if(Lt.source.indexOf(Bt)===-1)throw new Error('"'+Bt+'" is not is /'+Lt.source+"/");if(Bt==="-"&&Lt.source.indexOf(Bt)!==1)throw new Error('"'+Bt+'" is not at the first postion of /'+Lt.source+"/");return new RegExp(Lt.source.replace(Bt,""),ot?"u":"")}function rt(Lt){var Bt=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(Ke){var xs=typeof Ke=="string";if(xs&&Bt===void 0&&Ke==="|")throw new Error("use regg instead of reg to wrap expressions with `|`!");return xs?Ke:Ke.source}).join(""),ot?"mu":"m")}function nt(Lt){if(arguments.length===0)throw new Error("no parameters provided");return rt.apply(nt,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var Kt=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;ot&&(Kt=rt("[",H(Kt),"\\u{10000}-\\u{10FFFF}","]"));var Ue=new RegExp("[^"+H(Kt)+"]",ot?"u":""),Vt=/[\x20\x09\x0D\x0A]/,ut=H(Vt),j=rt(Vt,"+"),Ct=rt(Vt,"*"),_=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;ot&&(_=rt("[",H(_),"\\u{10000}-\\u{10FFFF}","]"));var ae=rt("[",H(_),H(/[-.0-9\xB7]/),H(/[\u0300-\u036F\u203F-\u2040]/),"]"),Pt=rt(_,ae,"*"),ie=rt(ae,"+"),vs=rt("&",Pt,";"),cs=nt(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),Je=nt(vs,"|",cs),Le=rt("%",Pt,";"),X=nt(rt('"',nt(/[^%&"]/,"|",Le,"|",Je),"*",'"'),"|",rt("'",nt(/[^%&']/,"|",Le,"|",Je),"*","'")),ft=nt('"',nt(/[^<&"]/,"|",Je),"*",'"',"|","'",nt(/[^<&']/,"|",Je),"*","'"),P=rt(kt(_,":"),kt(ae,":"),"*"),U=rt(P,nt(":",P),"?"),$=rt("^",U,"$"),ht=rt("(",U,")"),ct=nt(/"[^"]*"|'[^']*'/),J=rt(/^<\?/,"(",Pt,")",nt(j,"(",Kt,"*?)"),"?",/\?>/),Et=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,at=nt('"',Et,'*"',"|","'",kt(Et,"'"),"*'"),bt="<!--",yt=rt(bt,nt(kt(Kt,"-"),"|",rt("-",kt(Kt,"-"))),"*","-->"),Z="#PCDATA",zt=nt(rt(/\(/,Ct,Z,nt(Ct,/\|/,Ct,U),"*",Ct,/\)\*/),"|",rt(/\(/,Ct,Z,Ct,/\)/)),Ht=nt("EMPTY","|","ANY","|",zt,"|",rt(/\([^>]+\)/,/[?*+]?/)),Ae=rt("<!ELEMENT",j,nt(U,"|",Le),j,nt(Ht,"|",Le),Ct,">"),Xt=rt("NOTATION",j,/\(/,Ct,Pt,nt(Ct,/\|/,Ct,Pt),"*",Ct,/\)/),Ie=rt(/\(/,Ct,ie,nt(Ct,/\|/,Ct,ie),"*",Ct,/\)/),$t=nt(Xt,"|",Ie),Wt=nt(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",$t),Se=nt(/#REQUIRED|#IMPLIED/,"|",nt(nt("#FIXED",j),"?",ft)),Pe=rt("<!ATTLIST",j,Pt,nt(j,Pt,j,Wt,j,Se),"*",Ct,">"),pe="about:legacy-compat",we=nt('"'+pe+'"',"|","'"+pe+"'"),Ts="SYSTEM",Cs="PUBLIC",bs=nt(nt(Ts,j,ct),"|",nt(Cs,j,at,j,ct)),vt=rt("^",nt(nt(Ts,j,"(?<SystemLiteralOnly>",ct,")"),"|",nt(Cs,j,"(?<PubidLiteral>",at,")",j,"(?<SystemLiteral>",ct,")"))),Ss=rt("^",at,"$"),Ls=rt("^",ct,"$"),gt=nt(j,"NDATA",j,Pt),es="<!ENTITY",Rs=rt(es,j,Pt,j,nt(X,"|",nt(bs,gt,"?")),Ct,">"),Ms=nt(X,"|",bs),Yt=nt(Rs,"|",rt(es,j,"%",j,Pt,j,Ms,Ct,">")),ee=rt(Cs,j,at),He=rt("<!NOTATION",j,Pt,j,nt(bs,"|",ee),Ct,">"),Ye=rt(Ct,"=",Ct),Qs=/1[.]\d+/,le=rt(j,"version",Ye,nt("'",Qs,"'","|",'"',Qs,'"')),_e=/[A-Za-z][-A-Za-z0-9._]*/,Nt=rt(/^<\?xml/,le,nt(j,"encoding",Ye,nt('"',_e,'"',"|","'",_e,"'")),"?",nt(j,"standalone",Ye,nt("'",nt("yes","|","no"),"'","|",'"',nt("yes","|","no"),'"')),"?",Ct,/\?>/),We=rt(Kt,"*?",/\]\]>/),Es=rt(/<!\[CDATA\[/,We);w.chars=H,w.chars_without=kt,w.detectUnicodeSupport=Mt,w.reg=rt,w.regg=nt,w.ABOUT_LEGACY_COMPAT=pe,w.ABOUT_LEGACY_COMPAT_SystemLiteral=we,w.AttlistDecl=Pe,w.CDATA_START="<![CDATA[",w.CDATA_END="]]>",w.CDSect=Es,w.Char=Kt,w.Comment=yt,w.COMMENT_START=bt,w.COMMENT_END="-->",w.DOCTYPE_DECL_START="<!DOCTYPE",w.elementdecl=Ae,w.EntityDecl=Yt,w.EntityValue=X,w.E
vendor: 4,731 bytes, line 5
5xternalID=bs,w.ExternalID_match=vt,w.Name=Pt,w.NotationDecl=He,w.Reference=Je,w.PEReference=Le,w.PI=J,w.PUBLIC=Cs,w.PubidLiteral=at,w.PubidLiteral_match=Ss,w.QName=U,w.QName_exact=$,w.QName_group=ht,w.S=j,w.SChar_s=ut,w.S_OPT=Ct,w.SYSTEM=Ts,w.SystemLiteral=ct,w.SystemLiteral_match=Ls,w.InvalidChar=Ue,w.UNICODE_REPLACEMENT_CHARACTER="�",w.UNICODE_SUPPORT=ot,w.XMLDecl=Nt},841(Ut,w,Mt){var ot=Mt(981);w.assign=ot.assign,w.hasDefaultHTMLNamespace=ot.hasDefaultHTMLNamespace,w.isHTMLMimeType=ot.isHTMLMimeType,w.isValidMimeType=ot.isValidMimeType,w.MIME_TYPE=ot.MIME_TYPE,w.NAMESPACE=ot.NAMESPACE;var H=Mt(918);w.DOMException=H.DOMException,w.DOMExceptionName=H.DOMExceptionName,w.ExceptionCode=H.ExceptionCode,w.ParseError=H.ParseError;var kt=Mt(553);w.Attr=kt.Attr,w.CDATASection=kt.CDATASection,w.CharacterData=kt.CharacterData,w.Comment=kt.Comment,w.Document=kt.Document,w.DocumentFragment=kt.DocumentFragment,w.DocumentType=kt.DocumentType,w.DOMImplementation=kt.DOMImplementation,w.Element=kt.Element,w.Entity=kt.Entity,w.EntityReference=kt.EntityReference,w.LiveNodeList=kt.LiveNodeList,w.NamedNodeMap=kt.NamedNodeMap,w.Node=kt.Node,w.NodeList=kt.NodeList,w.Notation=kt.Notation,w.ProcessingInstruction=kt.ProcessingInstruction,w.Text=kt.Text,w.XMLSerializer=kt.XMLSerializer;var rt=Mt(985);w.DOMParser=rt.DOMParser,w.normalizeLineEndings=rt.normalizeLineEndings,w.onErrorStopParsing=rt.onErrorStopParsing,w.onWarningStopParsing=rt.onWarningStopParsing},309(Ut,w,Mt){var ot=Mt(981),H=Mt(112),kt=Mt(918),rt=ot.isHTMLEscapableRawTextElement,nt=ot.isHTMLMimeType,Kt=ot.isHTMLRawTextElement,Ue=ot.hasOwn,Vt=ot.NAMESPACE,ut=kt.ParseError,j=kt.DOMException;function Ct(){}Ct.prototype={parse:function(P,U,$){var ht=this.domBuilder;ht.startDocument(),cs(U,U=Object.create(null)),(function(ct,J,Et,at,bt){var yt=nt(at.mimeType);ct.indexOf(H.UNICODE_REPLACEMENT_CHARACTER)>=0&&bt.warning("Unicode replacement character detected, source encoding issues?");function Z(Nt){if(Nt>65535){var We=55296+((Nt-=65536)>>10),Es=56320+(1023&Nt);return String.fromCharCode(We,Es)}return String.fromCharCode(Nt)}function zt(Nt){var We=Nt[Nt.length-1]===";"?Nt:Nt+";";if(!yt&&We!==Nt)return bt.error("EntityRef: expecting ;"),Nt;var Es=H.Reference.exec(We);if(!Es||Es[0].length!==We.length)return bt.error("entity not matching Reference production: "+Nt),Nt;var Lt=We.slice(1,-1);return Ue(Et,Lt)?Et[Lt]:Lt.charAt(0)==="#"?Z(parseInt(Lt.substring(1).replace("x","0x"))):(bt.error("entity not found:"+Nt),Nt)}function Ht(Nt){if(Nt>pe){var We=ct.substring(pe,Nt).replace(_,zt);$t&&Wt(pe),at.characters(We,0,Nt-pe),pe=Nt}}var Ae=0,Xt=0,Ie=/\r\n?|\n|$/g,$t=at.locator;function Wt(Nt,We){for(;Nt>=Xt&&(We=Ie.exec(ct));)Ae=Xt,Xt=We.index+We[0].length,$t.lineNumber++;$t.columnNumber=Nt-Ae+1}for(var Se=[{currentNSMap:J}],Pe=[],pe=0;;){try{var we=ct.indexOf("<",pe);if(we<0){if(!yt&&Pe.length>0)return bt.fatalError("unclosed xml tag(s): "+Pe.join(", "));if(!ct.substring(pe).match(/^\s*$/)){var Ts=at.doc,Cs=Ts.createTextNode(ct.substring(pe));if(Ts.documentElement)return bt.error("Extra content at the end of the document");Ts.appendChild(Cs),at.currentElement=Cs}return}if(we>pe){var bs=ct.substring(pe,we);yt||Pe.length!==0||(bs=bs.replace(new RegExp(H.S_OPT.source,"g"),""))&&bt.error("Unexpected content outside root element: '"+bs+"'"),Ht(we)}switch(ct.charAt(we+1)){case"/":var vt=ct.indexOf(">",we+2),Ss=ct.substring(we+2,vt>0?vt:void 0);if(!Ss)return bt.fatalError("end tag name missing");var Ls=vt>0&&H.reg("^",H.QName_group,H.S_OPT,"$").exec(Ss);if(!Ls)return bt.fatalError('end tag name contains invalid characters: "'+Ss+'"');if(!at.currentElement&&!at.doc.documentElement)return;var gt=Pe[Pe.length-1]||at.currentElement.tagName||at.doc.documentElement.tagName||"";if(gt!==Ls[1]){var es=Ls[1].toLowerCase();if(!yt||gt.toLowerCase()!==es)return bt.fatalError('Opening and ending tag mismatch: "'+gt+'" != "'+Ss+'"')}var Rs=Se.pop();Pe.pop();var Ms=Rs.localNSMap;if(at.endElement(Rs.uri,Rs.localName,gt),Ms)for(var Yt in Ms)Ue(Ms,Yt)&&at.endPrefixMapping(Yt);vt++;break;case"?":$t&&Wt(we),vt=X(ct,we,at,bt);break;case"!":$t&&Wt(we),vt=Le(ct,we,at,bt,yt);break;default:$t&&Wt(we);var ee=new ft,He=Se[Se.length-1].currentNSMap,Ye=(vt=Pt(ct,we,ee,He,zt,bt,yt),ee.length);if(ee.closed||(yt&&ot.isHTMLVoidElement(ee.tagName)?ee.closed=!0:Pe.push(ee.tagName)),$t&&Ye){for(var Qs=ae($t,{}),le=0;le<Ye;le++){var _e=ee[le];Wt(_e.offset),_e.locator=ae($t,{})}at.locator=Qs,ie(ee,at,He)&&Se.push(ee),at.locator=$t}else ie(ee,at,He)&&Se.push(ee);yt&&!ee.closed?vt=vs(ct,vt,ee.tagName,zt,at):vt++}}catch(Nt){if(Nt instanceof ut)throw Nt;if(Nt instanceof j)throw new ut(Nt.name+": "+Nt.message,at.locator,Nt);bt.error("element parse error: "+Nt),vt=-1}vt>
5pe?pe=vt:Ht(Math.max(we,pe)+1)}})(P,U,$,ht,this.errorHandler),ht.endDocument()}};var _=/&#?\w+;?/g;function ae(P,U){return U.lineNumber=P.lineNumber,U.columnNumber=P.columnNumber,U}function Pt(P,U,$,ht,ct,J,Et){function at(Ae,Xt,Ie){return Ue($.attributeNames,Ae)?J.fatalError("Attribute "+Ae+" redefined"):!Et&&Xt.indexOf("<")>=0?J.fatalError("Unescaped '<' not allowed in attributes values"):void $.addValue(Ae,Xt.replace(/[\t\n\r]/g," ").replace(_,ct),Ie)}for(var bt,yt=++U,Z=0;;){var zt=P.charAt(yt);switch(zt){case"=":if(Z===1)bt=P.slice(U,yt),Z=3;else{if(Z!==2)throw new Error("attribute equal must after attrName");Z=3}break;case"'":case'"':if(Z===3||Z===1){if(Z===1&&(J.warning('attribute value must after "="'),bt=P.slice(U,yt)),U=yt+1,!((yt=P.indexOf(zt,U))>0))throw new Error("attribute value no end '"+zt+"' match");at(bt,Ht=P.slice(U,yt),U-1),Z=5}else{if(Z!=4)throw new Error('attribute value must after "="');at(bt,Ht=P.slice(U,yt),U),J.warning('attribute "'+bt+'" missed start quot('+zt+")!!"),U=yt+1,Z=5}break;case"/":switch(Z){case 0:$.setTagName(P.slice(U,yt));case 5:case 6:case 7:Z=7,$.closed=!0;case 4:case 1:break;case 2:$.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return J.error("unexpected end of input"),Z==0&&$.setTagName(P.slice(U,yt)),yt;case">":switch(Z){case 0:$.setTagName(P.slice(U,yt));case 5:case 6:case 7:break;case 4:case 1:(Ht=P.slice(U,yt)).slice(-1)==="/"&&($.closed=!0,Ht=Ht.slice(0,-1));case 2:Z===2&&(Ht=bt),Z==4?(J.warning('attribute "'+Ht+'" missed quot(")!'),at(bt,Ht,U)):(Et||J.warning('attribute "'+Ht+'" missed value!! "'+Ht+'" instead!!'),at(Ht,Ht,U));break;case 3:if(!Et)return J.fatalError(`AttValue: ' or " expected`)}return yt;case"€":zt=" ";default:if(zt<=" ")switch(Z){case 0:$.setTagName(P.slice(U,yt)),Z=6;break;case 1:bt=P.slice(U,yt),Z=2;break;case 4:var Ht=P.slice(U,yt);J.warning('attribute "'+Ht+'" missed quot(")!!'),at(bt,Ht,U);case 5:Z=6}else switch(Z){case 2:Et||J.warning('attribute "'+bt+'" missed value!! "'+bt+'" instead2!!'),at(bt,bt,U),U=yt,Z=1;break;case 5:J.warning('attribute space is required"'+bt+'"!!');case 6:Z=1,U=yt;break;case 3:Z=4,U=yt;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}yt++}}function ie(P,U,$){for(var ht=P.tagName,ct=null,J=P.length;J--;){var Et=P[J],at=Et.qName,bt=Et.value;if((Ht=at.indexOf(":"))>0)var yt=Et.prefix=at.slice(0,Ht),Z=at.slice(Ht+1),zt=yt==="xmlns"&&Z;else Z=at,yt=null,zt=at==="xmlns"&&"";Et.localName=Z,zt!==!1&&(ct==null&&(ct=Object.create(null),cs($,$=Object.create(null))),$[zt]=ct[zt]=bt,Et.uri=Vt.XMLNS,U.startPrefixMapping(zt,bt))}for(J=P.length;J--;)(Et=P[J]).prefix&&(Et.prefix==="xml"&&(Et.uri=Vt.XML),Et.prefix!=="xmlns"&&(Et.uri=$[Et.prefix]));var Ht;(Ht=ht.indexOf(":"))>0?(yt=P.prefix=ht.slice(0,Ht),Z=P.localName=ht.slice(Ht+1)):(yt=null,Z=P.localName=ht);var Ae=P.uri=$[yt||""];if(U.startElement(Ae,Z,ht,P),!P.closed)return P.currentNSMap=$,P.localNSMap=ct,!0;if(U.endElement(Ae,Z,ht),ct)for(yt in ct)Ue(ct,yt)&&U.endPrefixMapping(yt)}function vs(P,U,$,ht,ct){var J=rt($);if(J||Kt($)){var Et=P.indexOf("</"+$+">",U),at=P.substring(U+1,Et);return J&&(at=at.replace(_,ht)),ct.characters(at,0,at.length),Et}return U+1}function cs(P,U){for(var $ in P)Ue(P,$)&&(U[$]=P[$])}function Je(P,U){var $=U;function ht(Et){return Et=Et||0,P.charAt($+Et)}function ct(Et){$+=Et=Et||1}function J(){return P.substring($)}return{char:ht,getIndex:function(){return $},getMatch:function(Et){var at=H.reg("^",Et).exec(J());return at?(ct(at[0].length),at[0]):null},getSource:function(){return P},skip:ct,skipBlanks:function(){for(var Et=0;$<P.length;){var at=ht();if(at!==" "&&at!==`
6`&&at!=="	"&&at!=="\r")return Et;Et++,ct()}return-1},substringFromIndex:J,substringStartsWith:function(Et){return P.substring($,$+Et.length)===Et},substringStartsWithCaseInsensitive:function(Et){return P.substring($,$+Et.length).toUpperCase()===Et.toUpperCase()}}}function Le(P,U,$,ht,ct){var J=Je(P,U);switch(ct?J.char(2).toUpperCase():J.char(2)){case"-":var Et=J.getMatch(H.Comment);return Et?($.comment(Et,H.COMMENT_START.length,Et.length-H.COMMENT_START.length-H.COMMENT_END.length),J.getIndex()):ht.fatalError("comment is not well-formed at position "+J.getIndex());case"[":var at=J.getMatch(H.CDSect);return at?ct||$.currentElement?($.startCDATA(),$.characters(at,H.CDATA_START.length,at.length-H.CDATA_START.length-H.CDATA_END.length),$.endCDATA(),J.getIndex()):ht.fatalError("CDATA outside of element"):ht.fatalError("Invalid CDATA starting at position "+U);case"D":if($.doc&&$.doc.documentElement)return ht.fatalError("Doctype not allowed inside or after documentElement at position "+J.getIndex());if(ct?!J.substringStartsWithCaseInsensitive(H.DOCTYPE_DECL_START):!J.substringStartsWith(H.DOCTYPE_DECL_START))return ht.fatalError("Expected "+H.DOCTYPE_DECL_START+" at position "+J.getIndex());if(J.skip(H.DOCTYPE_DECL_START.length),J.skipBlanks()<1)return ht.fatalError("Expected whitespace after "+H.DOCTYPE_DECL_START+" at position "+J.getIndex());var bt={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(bt.name=J.getMatch(H.Name),!bt.name)return ht.fatalError("doctype name missing or contains unexpected characters at position "+J.getIndex());if(ct&&bt.name.toLowerCase()!=="html"&&ht.warning("Unexpected DOCTYPE in HTML document at position "+J.getIndex()),J.skipBlanks(),J.substringStartsWith(H.PUBLIC)||J.substringStartsWith(H.SYSTEM)){var yt=H.Exter
6nalID_match.exec(J.substringFromIndex());if(!yt)return ht.fatalError("doctype external id is not well-formed at position "+J.getIndex());yt.groups.SystemLiteralOnly!==void 0?bt.systemId=yt.groups.SystemLiteralOnly:(bt.systemId=yt.groups.SystemLiteral,bt.publicId=yt.groups.PubidLiteral),J.skip(yt[0].length)}else if(ct&&J.substringStartsWithCaseInsensitive(H.SYSTEM)){if(J.skip(H.SYSTEM.length),J.skipBlanks()<1)return ht.fatalError("Expected whitespace after "+H.SYSTEM+" at position "+J.getIndex());if(bt.systemId=J.getMatch(H.ABOUT_LEGACY_COMPAT_SystemLiteral),!bt.systemId)return ht.fatalError("Expected "+H.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+H.SYSTEM+" at position "+J.getIndex())}return ct&&bt.systemId&&!H.ABOUT_LEGACY_COMPAT_SystemLiteral.test(bt.systemId)&&ht.warning("Unexpected doctype.systemId in HTML document at position "+J.getIndex()),ct||(J.skipBlanks(),bt.internalSubset=(function(Z,zt){function Ht(Wt,Se){var Pe=H.PI.exec(Wt.substringFromIndex());return Pe?Pe[1].toLowerCase()==="xml"?Se.fatalError("xml declaration is only allowed at the start of the document, but found at position "+Wt.getIndex()):(Wt.skip(Pe[0].length),Pe[0]):Se.fatalError("processing instruction is not well-formed at position "+Wt.getIndex())}var Ae=Z.getSource();if(Z.char()==="["){Z.skip(1);for(var Xt=Z.getIndex();Z.getIndex()<Ae.length;){if(Z.skipBlanks(),Z.char()==="]"){var Ie=Ae.substring(Xt,Z.getIndex());return Z.skip(1),Ie}var $t=null;if(Z.char()==="<"&&Z.char(1)==="!")switch(Z.char(2)){case"E":Z.char(3)==="L"?$t=Z.getMatch(H.elementdecl):Z.char(3)==="N"&&($t=Z.getMatch(H.EntityDecl));break;case"A":$t=Z.getMatch(H.AttlistDecl);break;case"N":$t=Z.getMatch(H.NotationDecl);break;case"-":$t=Z.getMatch(H.Comment)}else if(Z.char()==="<"&&Z.char(1)==="?")$t=Ht(Z,zt);else{if(Z.char()!=="%")return zt.fatalError("Error detected in Markup declaration");$t=Z.getMatch(H.PEReference)}if(!$t)return zt.fatalError("Error in internal subset at position "+Z.getIndex())}return zt.fatalError("doctype internal subset is not well-formed, missing ]")}})(J,ht)),J.skipBlanks(),J.char()!==">"?ht.fatalError("doctype not terminated with > at position "+J.getIndex()):(J.skip(1),$.startDTD(bt.name,bt.publicId,bt.systemId,bt.internalSubset),$.endDTD(),J.getIndex());default:return ht.fatalError('Not well-formed XML starting with "<!" at position '+U)}}function X(P,U,$,ht){var ct=P.substring(U).match(H.PI);if(!ct)return ht.fatalError("Invalid processing instruction starting at position "+U);if(ct[1].toLowerCase()==="xml"){if(U>0)return ht.fatalError("processing instruction at position "+U+" is an xml declaration which is only at the start of the document");if(!H.XMLDecl.test(P.substring(U)))return ht.fatalError("xml declaration is not well-formed")}return $.processingInstruction(ct[1],ct[2]),U+ct[0].length}function ft(){this.attributeNames=Object.create(null)}ft.prototype={setTagName:function(P){if(!H.QName_exact.test(P))throw new Error("invalid tagName:"+P);this.tagName=P},addValue:function(P,U,$){if(!H.QName_exact.test(P))throw new Error("invalid attribute:"+P);this.attributeNames[P]=this.length,this[this.length++]={qName:P,value:U,offset:$}},length:0,getLocalName:function(P){return this[P].localName},getLocator:function(P){return this[P].locator},getQName:function(P){return this[P].qName},getURI:function(P){return this[P].uri},getValue:function(P){return this[P].value}},w.XMLReader=Ct,w.parseUtils=Je,w.parseDoctypeCommentOrCData=Le},999(Ut,w,Mt){(function(){var ot=this;function H(d){return typeof d=="string"}function kt(d,p,b){return d.call.apply(d.bind,arguments)}function rt(d,p,b){if(!d)throw Error();if(2<arguments.length){var C=Array.prototype.slice.call(arguments,2);return function(){var R=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(R,C),d.apply(p,R)}}return function(){return d.apply(p,arguments)}}
6function nt(d,p,b){return(nt=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?kt:rt).apply(null,arguments)}function Kt(d){var p=_e;function b(){}b.prototype=p.prototype,d.G=p.prototype,d.prototype=new b,d.prototype.constructor=d,d.F=function(C,R,k){for(var pt=Array(arguments.length-2),st=2;st<arguments.length;st++)pt[st-2]=arguments[st];return p.prototype[R].apply(C,pt)}}var Ue=String.prototype.trim?function(d){return d.trim()}:function(d){return d.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function Vt(d,p){return d.indexOf(p)!=-1}function ut(d,p){return d<p?-1:d>p?1:0}var j,Ct=Array.prototype.indexOf?function(d,p,b){return Array.prototype.indexOf.call(d,p,b)}:function(d,p,b){if(b=b==null?0:0>b?Math.max(0,d.length+b):b,H(d))return H(p)&&p.length==1?d.indexOf(p,b):-1;for(;b<d.length;b++)if(b in d&&d[b]===p)return b;return-1},_=Array.prototype.forEach?function(d,p,b){Array.prototype.forEach.call(d,p,b)}:function(d,p,b){for(var C=d.length,R=H(d)?d.split(""):d,k=0;k<C;k++)k in R&&p.call(b,R[k],k,d)},ae=Array.prototype.filter?function(d,p,b){return Array.prototype.filter.call(d,p,b)}:function(d,p,b){for(var C=d.length,R=[],k=0,pt=H(d)?d.split(""):d,st=0;st<C;st++)if(st in pt){var ce=pt[st];p.call(b,ce,st,d)&&(R[k++]=ce)}return R},Pt=Array.prototype.reduce?function(d,p,b,C){return C&&(p=nt(p,C)),Array.prototype.reduce.call(d,p,b)}:function(d,p,b,C){var R=b;return _(d,function(k,pt){R=p.call(C,R,k,pt,d)}),R},ie=Array.prototype.some?function(d,p,b){return Array.prototype.some.call(d,p,b)}:function(d,p,b){for(var C=d.length,R=H(d)?d.split(""):d,k=0;k<C;k++)if(k in R&&p.call(b,R[k],k,d))return!0;return!1};t:{var vs=ot.navigator;if(vs){var cs=vs.userAgent;if(cs){j=cs;break t}}j=""}var Je,Le,X=Vt(j,"Opera")||Vt(j,"OPR"),ft=Vt(j,"Trident")||Vt(j,"MSIE"),P=Vt(j,"Edge"),U=Vt(j,"Gecko")&&!(Vt(j.toLowerCase(),"webkit")&&!Vt(j,"Edge"))&&!(Vt(j,"Trident")||Vt(j,"MSIE"))&&!Vt(j,"Edge"),$=Vt(j.toLowerCase(),"webkit")&&!Vt(j,"Edge");function ht(){var d=ot.document;return d?d.documentMode:void 0}t:{var ct="",J=(Le=j,U?/rv\:([^\);]+)(\)|;)/.exec(Le):P?/Edge\/([\d\.]+)/.exec(Le):ft?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Le):$?/WebKit\/(\S+)/.exec(Le):X?/(?:Version)[ \/]?(\S+)/.exec(Le):void 0);if(J&&(ct=J?J[1]:""),ft){var Et=ht();if(Et!=null&&Et>parseFloat(ct)){Je=String(Et);break t}}Je=ct}var at={};function bt(d){if(!at[d]){for(var p=0,b=Ue(String(Je)).split("."),C=Ue(String(d)).split("."),R=Math.max(b.length,C.length),k=0;p==0&&k<R;k++){var pt=b[k]||"",st=C[k]||"",ce=/(\d*)(\D*)/g,Be=/(\d*)(\D*)/g;do{var rs=ce.exec(pt)||["","",""],As=Be.exec(st)||["","",""];if(rs[0].length==0&&As[0].length==0)break;p=ut(rs[1].length==0?0:parseInt(rs[1],10),As[1].length==0?0:parseInt(As[1],10))||ut(rs[2].length==0,As[2].length==0)||ut(rs[2],As[2])}while(p==0)}at[d]=0<=p}}var yt=ot.document,Z=yt&&ft?ht()||(yt.compatMode=="CSS1Compat"?parseInt(Je,10):5):void 0,zt=ft&&!(9<=Number(Z)),Ht=ft&&!(8<=Number(Z));function Ae(d,p,b,C){this.a=d,this.nodeName=b,this.nodeValue=C,this.nodeType=2,this.parentNode=this.ownerElement=p}function Xt(d,p){var b=Ht&&p.nodeName=="href"?d.getAttribute(p.nodeName,2):p.nodeValue;return new Ae(p,d,p.nodeName,b)}function Ie(d){var p=null;if((b=d.nodeType)==1&&(p=(p=(p=d.textContent)==null||p==null?d.innerText:p)==null||p==null?"":p),typeof p!="string")if(zt&&d.nodeName.toLowerCase()=="title"&&b==1)p=d.text;else if(b==9||b==1){d=b==9?d.documentElement:d.firstChild;var b=0,C=[];for(p="";d;){do d.nodeType!=1&&(p+=d.nodeValue),zt&&d.nodeName.toLowerCase()=="title"&&(p+=d.text),C[b++]=d;while(d=d.firstChild);for(;b&&!(d=C[--b].nextSibling););}}else p=d.nodeValue;return""+p}function $t(d,p,b){if(p===null)return!0;try{if(!d.getAttribute)return!1}catch{return!1}return Ht&&p=="class"&&(p="className"),b==null?!!d.getAttribute(p):d.getAttribute(p,2)==b}function Wt(d,p,b,C,R){return(zt?Se:Pe).call(null,d,p,H(b)?b:null,H(C)?C:null,R||new gt)}function Se(d,p,b,C,R){if(d instanceof O||d.b==8||b&&d.b===null){var k=p.all;if(!k||(d=Cs(d))!="*"&&!(k=p.getElementsByTagName(d)))return R;if(b){for(var pt=[],st=0;p=k[st++];)$t(p,b,C)&&pt.push(p);k=pt}for(st=0;p=k[st++];)d=="*"&&p.tagName=="!"||Yt(R,p);return R}return Ts(d,p,b,C,R),R}function Pe(d,p,b,C,R){return p.getElementsByName&&C&&b=="name"&&!ft?(p=p.getElementsByName(C),_(p,function(k){d.a(k)&&Yt(R,k)}
6)):p.getElementsByClassName&&C&&b=="class"?(p=p.getElementsByClassName(C),_(p,function(k){k.className==C&&d.a(k)&&Yt(R,k)})):d instanceof ds?Ts(d,p,b,C,R):p.getElementsByTagName&&(p=p.getElementsByTagName(d.f()),_(p,function(k){$t(k,b,C)&&Yt(R,k)})),R}function pe(d,p,b,C,R){var k;if((d instanceof O||d.b==8||b&&d.b===null)&&(k=p.childNodes)){var pt=Cs(d);return(pt=="*"||(k=ae(k,function(st){return st.tagName&&st.tagName.toLowerCase()==pt}),k))&&(b&&(k=ae(k,function(st){return $t(st,b,C)})),_(k,function(st){pt=="*"&&(st.tagName=="!"||pt=="*"&&st.nodeType!=1)||Yt(R,st)})),R}return we(d,p,b,C,R)}function we(d,p,b,C,R){for(p=p.firstChild;p;p=p.nextSibling)$t(p,b,C)&&d.a(p)&&Yt(R,p);return R}function Ts(d,p,b,C,R){for(p=p.firstChild;p;p=p.nextSibling)$t(p,b,C)&&d.a(p)&&Yt(R,p),Ts(d,p,b,C,R)}function Cs(d){if(d instanceof ds){if(d.b==8)return"!";if(d.b===null)return"*"}return d.f()}function bs(d,p){if(!d||!p)return!1;if(d.contains&&p.nodeType==1)return d==p||d.contains(p);if(d.compareDocumentPosition!==void 0)return d==p||!!(16&d.compareDocumentPosition(p));for(;p&&d!=p;)p=p.parentNode;return p==d}function vt(d,p){if(d==p)return 0;if(d.compareDocumentPosition)return 2&d.compareDocumentPosition(p)?1:-1;if(ft&&!(9<=Number(Z))){if(d.nodeType==9)return-1;if(p.nodeType==9)return 1}if("sourceIndex"in d||d.parentNode&&"sourceIndex"in d.parentNode){var b=d.nodeType==1,C=p.nodeType==1;if(b&&C)return d.sourceIndex-p.sourceIndex;var R=d.parentNode,k=p.parentNode;return R==k?Ls(d,p):!b&&bs(R,p)?-1*Ss(d,p):!C&&bs(k,d)?Ss(p,d):(b?d.sourceIndex:R.sourceIndex)-(C?p.sourceIndex:k.sourceIndex)}return(b=(C=d.nodeType==9?d:d.ownerDocument||d.document).createRange()).selectNode(d),b.collapse(!0),(C=C.createRange()).selectNode(p),C.collapse(!0),b.compareBoundaryPoints(ot.Range.START_TO_END,C)}function Ss(d,p){var b=d.parentNode;if(b==p)return-1;for(var C=p;C.parentNode!=b;)C=C.parentNode;return Ls(C,d)}function Ls(d,p){for(var b=p;b=b.previousSibling;)if(b==d)return-1;return 1}function gt(){this.b=this.a=null,this.l=0}function es(d){this.node=d,this.a=this.b=null}function Rs(d,p){if(!d.a)return p;if(!p.a)return d;for(var b=d.a,C=p.a,R=null,k=null,pt=0;b&&C;){k=b.node;var st=C.node;k==st||k instanceof Ae&&st instanceof Ae&&k.a==st.a?(k=b,b=b.a,C=C.a):0<vt(b.node,C.node)?(k=C,C=C.a):(k=b,b=b.a),(k.b=R)?R.a=k:d.a=k,R=k,pt++}for(k=b||C;k;)k.b=R,R=R.a=k,pt++,k=k.a;return d.b=R,d.l=pt,d}function Ms(d,p){var b=new es(p);b.a=d.a,d.b?d.a.b=b:d.a=d.b=b,d.a=b,d.l++}function Yt(d,p){var b=new es(p);b.b=d.b,d.a?d.b.a=b:d.a=d.b=b,d.b=b,d.l++}function ee(d){return(d=d.a)?d.node:null}function He(d){return(d=ee(d))?Ie(d):""}function Ye(d,p){return new Qs(d,!!p)}function Qs(d,p){this.f=d,this.b=(this.c=p)?d.b:d.a,this.a=null}function le(d){var p=d.b;if(p==null)return null;var b=d.a=p;return d.b=d.c?p.b:p.a,b.node}function _e(d){this.i=d,this.b=this.g=!1,this.f=null}function Nt(d){return`
7  `+d.toString().split(`
8`).join(`
9  `)}function We(d,p){d.g=p}function Es(d,p){d.b=p}function Lt(d,p){var b=d.a(p);return b instanceof gt?+He(b):+b}function Bt(d,p){var b=d.a(p);return b instanceof gt?He(b):""+b}function Ke(d,p){var b=d.a(p);return b instanceof gt?!!b.l:!!b}function xs(d,p,b){_e.call(this,d.i),this.c=d,this.h=p,this.o=b,this.g=p.g||b.g,this.b=p.b||b.b,this.c==er&&(b.b||b.g||b.i==4||b.i==0||!p.f?p.b||p.g||p.i==4||p.i==0||!b.f||(this.f={name:b.f.name,s:p}):this.f={name:p.f.name,s:b})}function Us(d,p,b,C,R){var k;if(p=p.a(C),b=b.a(C),p instanceof gt&&b instanceof gt){for(C=le(p=Ye(p));C;C=le(p))for(k=le(R=Ye(b));k;k=le(R))if(d(Ie(C),Ie(k)))return!0;return!1}if(p instanceof gt||b instanceof gt){p instanceof gt?(R=p,C=b):(R=b,C=p);for(var pt=typeof C,st=le(k=Ye(R));st;st=le(k)){switch(pt){case"number":st=+Ie(st);break;case"boolean":st=!!Ie(st);break;case"string":st=Ie(st);break;default:throw Error("Illegal primitive type for comparison.")}if(R==p&&d(st,C)||R==b&&d(C,st))return!0}return!1}return R?typeof p=="boolean"||typeof b=="boolean"?d(!!p,!!b):typeof p=="number"||typeof b=="number"?d(+p,+b):d(p,b):d(+p,+b)}function Ni(d,p,b,C){this.a=d,this.w=p,this.i=b,this.m=C}!U&&!ft||ft&&9<=Number(Z)||U&&bt("1.9.1"),ft&&bt("9"),Kt(xs),xs.prototype.a=function(d){return this.c.m(this.h,this.o,d)},xs.prototype.toString=function(){return"Binary Expression: "+this.c+Nt(this.h)+Nt(this.o)},Ni.prototype.toString=function(){return this.a};var ai={};function ss(d,p,b,C){if(ai.hasOwnProperty(d))throw Error("Binary operator already created: "+d);return d=new Ni(d,p,b,C),ai[d.toString()]=d}ss("div",6,1,function(d,p,b){return Lt(d,b)/Lt(p,b)}),ss("mod",6,1,function(d,p,b){return Lt(d,b)%Lt(p,b)}),ss("*",6,1,function(d,p,b){return Lt(d,b)*Lt(p,b)}),ss("+",5,1,function(d,p,b){return Lt(d,b)+Lt(p,b)}),ss("-",5,1,function(d,p,b){return Lt(d,b)-Lt(p,b)}),ss("<",4,2,function(d,p,b){return Us(function(C,R){return C<R},d,p,b)}),ss(">",4,2,function(d,p,b){return Us(function(C,R){return C>R},d,p,b)}),ss("<=",4,2,function(d,p,b){return Us(function(C,R){return C<=R},d,p,b)}),ss(">=",4,2,function(d,p,b){return Us(function(C,R){return C>=R},d,p,b)});var er=ss("=",3,2,function(d,p,b){return Us(function(C,R){return C==R},d,p,b,!0)});function Hs(d,p,b){this.a=d,this.b=p||1,this.f=b||1}function _s(d,p){if(p.a.length&&d.i!=4)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");_e.call(this,d.i),this.c=d,this.h=p,this.g=d.g,this.b=d.b}function Zs(d,p){if(p.length<d.A)throw Error("Function "+d.j+" expects at least"+d.A+" arguments, "+p.length+" given");if(d.v!==null&&p.length>d.v)throw Error("Function "+d.j+" expects at most "+d.v+" arguments, "+p.length+" given");
9d.B&&_(p,function(b,C){if(b.i!=4)throw Error("Argument "+C+" to function "+d.j+" is not of type Nodeset: "+b)}),_e.call(this,d.i),this.h=d,this.c=p,We(this,d.g||ie(p,function(b){return b.g})),Es(this,d.D&&!p.length||d.C&&!!p.length||ie(p,function(b){return b.b}))}function sr(d,p,b,C,R,k,pt,st,ce){this.j=d,this.i=p,this.g=b,this.D=C,this.C=R,this.m=k,this.A=pt,this.v=st!==void 0?st:pt,this.B=!!ce}ss("!=",3,2,function(d,p,b){return Us(function(C,R){return C!=R},d,p,b,!0)}),ss("and",2,2,function(d,p,b){return Ke(d,b)&&Ke(p,b)}),ss("or",1,2,function(d,p,b){return Ke(d,b)||Ke(p,b)}),Kt(_s),_s.prototype.a=function(d){return d=this.c.a(d),us(this.h,d)},_s.prototype.toString=function(){return"Filter:"+Nt(this.c)+Nt(this.h)},Kt(Zs),Zs.prototype.a=function(d){return this.h.m.apply(null,(function(p){return Array.prototype.concat.apply(Array.prototype,arguments)})(d,this.c))},Zs.prototype.toString=function(){var d="Function: "+this.h;if(this.c.length){var p=Pt(this.c,function(b,C){return b+Nt(C)},"Arguments:");d=d+Nt(p)}return d},sr.prototype.toString=function(){return this.j};var Fi={};function Zt(d,p,b,C,R,k,pt,st){if(Fi.hasOwnProperty(d))throw Error("Function already created: "+d+".");Fi[d]=new sr(d,p,b,C,!1,R,k,pt,st)}function ds(d,p){switch(this.h=d,this.c=p!==void 0?p:null,this.b=null,d){case"comment":this.b=8;break;case"text":this.b=3;break;case"processing-instruction":this.b=7;break;case"node":break;default:throw Error("Unexpected argument")}}function vi(d){return d=="comment"||d=="text"||d=="processing-instruction"||d=="node"}function Nr(d){this.b=d,this.a=0}Zt("boolean",2,!1,!1,function(d,p){return Ke(p,d)},1),Zt("ceiling",1,!1,!1,function(d,p){return Math.ceil(Lt(p,d))},1),Zt("concat",3,!1,!1,function(d,p){return Pt((function(b,C,R){return 2>=arguments.length?Array.prototype.slice.call(b,C):Array.prototype.slice.call(b,C,R)})(arguments,1),function(b,C){return b+Bt(C,d)},"")},2,null),Zt("contains",2,!1,!1,function(d,p,b){return Vt(Bt(p,d),Bt(b,d))},2),Zt("count",1,!1,!1,function(d,p){return p.a(d).l},1,1,!0),Zt("false",2,!1,!1,function(){return!1},0),Zt("floor",1,!1,!1,function(d,p){return Math.floor(Lt(p,d))},1),Zt("id",4,!1,!1,function(d,p){function b(st){if(zt){var ce=C.all[st];if(ce){if(ce.nodeType&&st==ce.id)return ce;if(ce.length)return(function(Be,rs){var As;t:{As=Be.length;for(var Mn=H(Be)?Be.split(""):Be,ji=0;ji<As;ji++)if(ji in Mn&&rs.call(void 0,Mn[ji],ji,Be)){As=ji;break t}
9As=-1}return 0>As?null:H(Be)?Be.charAt(As):Be[As]})(ce,function(Be){return st==Be.id})}return null}return C.getElementById(st)}var C=(R=d.a).nodeType==9?R:R.ownerDocument,R=Bt(p,d).split(/\s+/),k=[];_(R,function(st){!(st=b(st))||0<=Ct(k,st)||k.push(st)}),k.sort(vt);var pt=new gt;return _(k,function(st){Yt(pt,st)}),pt},1),Zt("lang",2,!1,!1,function(){return!1},1),Zt("last",1,!0,!1,function(d){if(arguments.length!=1)throw Error("Function last expects ()");return d.f},0),Zt("local-name",3,!1,!0,function(d,p){var b=p?ee(p.a(d)):d.a;return b?b.localName||b.nodeName.toLowerCase():""},0,1,!0),Zt("name",3,!1,!0,function(d,p){var b=p?ee(p.a(d)):d.a;return b?b.nodeName.toLowerCase():""},0,1,!0),Zt("namespace-uri",3,!0,!1,function(){return""},0,1,!0),Zt("normalize-space",3,!1,!0,function(d,p){return(p?Bt(p,d):Ie(d.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1),Zt("not",2,!1,!1,function(d,p){return!Ke(p,d)},1),Zt("number",1,!1,!0,function(d,p){return p?Lt(p,d):+Ie(d.a)},0,1),Zt("position",1,!0,!1,function(d){return d.b},0),Zt("round",1,!1,!1,function(d,p){return Math.round(Lt(p,d))},1),Zt("starts-with",2,!1,!1,function(d,p,b){return p=Bt(p,d),d=Bt(b,d),p.lastIndexOf(d,0)==0},2),Zt("string",3,!1,!0,function(d,p){return p?Bt(p,d):Ie(d.a)},0,1),Zt("string-length",1,!1,!0,function(d,p){return(p?Bt(p,d):Ie(d.a)).length},0,1),Zt("substring",3,!1,!1,function(d,p,b,C){if(b=Lt(b,d),isNaN(b)||b==1/0||b==-1/0||(C=C?Lt(C,d):1/0,isNaN(C)||C===-1/0))return"";b=Math.round(b)-1;var R=Math.max(b,0);return d=Bt(p,d),C==1/0?d.substring(R):d.substring(R,b+Math.round(C))},2,3),Zt("substring-after",3,!1,!1,function(d,p,b){return p=Bt(p,d),d=Bt(b,d),(b=p.indexOf(d))==-1?"":p.substring(b+d.length)},2),Zt("substring-before",3,!1,!1,function(d,p,b){return p=Bt(p,d),d=Bt(b,d),(d=p.indexOf(d))==-1?"":p.substring(0,d)},2),Zt("sum",1,!1,!1,function(d,p){for(var b=Ye(p.a(d)),C=0,R=le(b);R;R=le(b))C+=+Ie(R);return C},1,1,!0),Zt("translate",3,!1,!1,function(d,p,b,C){p=Bt(p,d),b=Bt(b,d);var R=Bt(C,d);for(d={},C=0;C<b.length;C++){var k=b.charAt(C);k in d||(d[k]=R.charAt(C))}for(b="",C=0;C<p.length;C++)b+=(k=p.charAt(C))in d?d[k]:k;return b},3),Zt("true",2,!1,!1,function(){return!0},0),ds.prototype.a=function(d){return this.b===null||this.b==d.nodeType},ds.prototype.f=function(){return this.h},ds.prototype.toString=function(){var d="Kind Test: "+this.h;return this.c===null||(d+=Nt(this.c)),d};var vr=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,ir=/^\s/;function f(d,p){return d.b[d.a+(p||0)]}function E(d){return d.b[d.a++]}function T(d){return d.b.length<=d.a}function M(d){_e.call(this,3),this.c=d.substring(1,d.length-1)}function O(d,p){var b;this.j=d.toLowerCase(),b=this.j=="*"?"*":"http://www.w3.org/1999/xhtml",this.c=p?p.toLowerCase():b}function G(d,p){if(_e.call(this,d.i),this.h=d,this.c=p,this.g=d.g,this.b=d.b,this.c.length==1){var b=this.c[0];b.u||b.c!=Ti||(b=b.o).f()!="*"&&(this.f={name:b.f(),s:null})}}function xt(){_e.call(this,4)}function Jt(){_e.call(this,4)}function Q(d){return d=="/"||d=="//"}function qe(d){_e.call(this,4),this.c=d,We(this,ie(this.c,function(p){return p.g})),Es(this,ie(this.c,function(p){return p.b}))}function Ve(d,p){this.a=d,this.b=!!p}function us(d,p,b){for(b=b||0;b<d.a.length;b++)for(var C,R=d.a[b],k=Ye(p),pt=p.l,st=0;C=le(k);st++){var ce=d.b?pt-st:st+1;if(typeof(C=R.a(new Hs(C,ce,pt)))=="number")ce=ce==C;else if(typeof C=="string"||typeof C=="boolean")ce=!!C;else{if(!(C instanceof gt))throw Error("Predicate.evaluate returned an unexpected type.");ce=0<C.l}if(!ce){if(C=(ce=k).f,!(rs=ce.a))throw Error("Next must be called at least once before remove.");var Be=rs.b,rs=rs.a;Be?Be.a=rs:C.a=rs,rs?rs.b=Be:C.b=Be,C.l--,ce.a=null}}return p}function ps(d,p,b,C){_e.call(this,4),this.c=d,this.o=p,this.h=b||new Ve([]),this.u=!!C,p=0<(p=this.h).a.length?p.a[0].f:null,d.b&&p&&(d=p.name,d=zt?d.toLowerCase():d,this.f={name:d,s:p.s});t:{for(d=this.h,p=0;p<d.a.length;p++)if((b=d.a[p]).g||b.i==1||b.i==0){d=!0;break t}d=!1}this.g=d}function is(d,p,b,C){this.j=d,this.f=p,this.a=b,this.b=C}Kt(M),M.prototype.a=function(){return this.c}
9,M.prototype.toString=function(){return"Literal: "+this.c},O.prototype.a=function(d){var p=d.nodeType;return(p==1||p==2)&&(p=d.localName!==void 0?d.localName:d.nodeName,(this.j=="*"||this.j==p.toLowerCase())&&(this.c=="*"||this.c==(d.namespaceURI?d.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")))},O.prototype.f=function(){return this.j},O.prototype.toString=function(){return"Name Test: "+(this.c=="http://www.w3.org/1999/xhtml"?"":this.c+":")+this.j},Kt(G),Kt(xt),xt.prototype.a=function(d){var p=new gt;return(d=d.a).nodeType==9?Yt(p,d):Yt(p,d.ownerDocument),p},xt.prototype.toString=function(){return"Root Helper Expression"},Kt(Jt),Jt.prototype.a=function(d){var p=new gt;return Yt(p,d.a),p},Jt.prototype.toString=function(){return"Context Helper Expression"},G.prototype.a=function(d){var p=this.h.a(d);if(!(p instanceof gt))throw Error("Filter expression must evaluate to nodeset.");for(var b=0,C=(d=this.c).length;b<C&&p.l;b++){var R,k=d[b],pt=Ye(p,k.c.a);if(k.g||k.c!=zs)if(k.g||k.c!=Is)for(R=le(pt),p=k.a(new Hs(R));(R=le(pt))!=null;)p=Rs(p,R=k.a(new Hs(R)));else R=le(pt),p=k.a(new Hs(R));else{for(R=le(pt);(p=le(pt))&&(!R.contains||R.contains(p))&&8&p.compareDocumentPosition(R);R=p);p=k.a(new Hs(R))}}return p},G.prototype.toString=function(){var d;if(d="Path Expression:"+Nt(this.h),this.c.length){var p=Pt(this.c,function(b,C){return b+Nt(C)},"Steps:");d+=Nt(p)}return d},Kt(qe),qe.prototype.a=function(d){var p=new gt;return _(this.c,function(b){if(!((b=b.a(d))instanceof gt))throw Error("Path expression must evaluate to NodeSet.");p=Rs(p,b)}),p},qe.prototype.toString=function(){return Pt(this.c,function(d,p){return d+Nt(p)},"Union Expression:")},Ve.prototype.toString=function(){return Pt(this.a,function(d,p){return d+Nt(p)},"Predicates:")},Kt(ps),ps.prototype.a=function(d){var p=d.a,b=null,C=null,R=null,k=0;if((b=this.f)&&(C=b.name,R=b.s?Bt(b.s,d):null,k=1),this.u)if(this.g||this.c!=Vs)if(p=le(d=Ye(new ps(li,new ds("node")).a(d))))for(b=this.m(p,C,R,k);(p=le(d))!=null;)b=Rs(b,this.m(p,C,R,k));else b=new gt;else b=Wt(this.o,p,C,R),b=us(this.h,b,k);else b=this.m(d.a,C,R,k);return b},ps.prototype.m=function(d,p,b,C){return d=this.c.f(this.o,d,p,b),us(this.h,d,C)},ps.prototype.toString=function(){var d;if(d="Step:"+Nt("Operator: "+(this.u?"//":"/")),this.c.j&&(d+=Nt("Axis: "+this.c)),d+=Nt(this.o),this.h.a.length){var p=Pt(this.h.a,function(b,C){return b+Nt(C)},"Predicates:");d+=Nt(p)}return d},is.prototype.toString=function(){return this.j};var ti={};function Qe(d,p,b,C){if(ti.hasOwnProperty(d))throw Error("Axis already created: "+d);return p=new is(d,p,b,!!C),ti[d]=p}Qe("ancestor",function(d,p){for(var b=new gt,C=p;C=C.parentNode;)d.a(C)&&Ms(b,C);return b},!0),Qe("ancestor-or-self",function(d,p){var b=new gt,C=p;do d.a(C)&&Ms(b,C);while(C=C.parentNode);return b},!0);var Ti=Qe("attribute",function(d,p){var b=new gt;if((k=d.f())=="style"&&zt&&p.style)return Yt(b,new Ae(p.style,p,"style",p.style.cssText)),b;var C=p.attributes;if(C)if(d instanceof ds&&d.b===null||k=="*")for(var R,k=0;R=C[k];k++)zt?R.nodeValue&&Yt(b,Xt(p,R)):Yt(b,R);else(R=C.getNamedItem(k))&&(zt?R.nodeValue&&Yt(b,Xt(p,R)):Yt(b,R));return b},!1),Vs=Qe("child",function(d,p,b,C,R){return(zt?pe:we).call(null,d,p,H(b)?b:null,H(C)?C:null,R||new gt)},!1,!0);Qe("descendant",Wt,!1,!0);var li=Qe("descendant-or-self",function(d,p,b,C){var R=new gt;return $t(p,b,C)&&d.a(p)&&Yt(R,p),Wt(d,p,b,C,R)},!1,!0),zs=Qe("following",function(d,p,b,C){var R=new gt;do for(var k=p;k=k.nextSibling;)$t(k,b,C)&&d.a(k)&&Yt(R,k),R=Wt(d,k,b,C,R);while(p=p.parentNode);return R},!1,!0);Qe("following-sibling",function(d,p){for(var b=new gt,C=p;C=C.nextSibling;)d.a(C)&&Yt(b,C);return b},!1),Qe("namespace",function(){return new gt},!1);var ei=Qe("parent",function(d,p){var b=new gt;if(p.nodeType==9)return b;if(p.nodeType==2)return Yt(b,p.ownerElement),b;var C=p.parentNode;return d.a(C)&&Yt(b,C),b},!1),Is=Qe("preceding",function(d,p,b,C){var R=new gt,k=[];do k.unshift(p);while(p=p.parentNode);for(var pt=1,st=k.length;pt<st;pt++){var ce=[];for(p=k[pt];p=p.previousSibling;)ce.unshift(p);for(var Be=0,rs=ce.length;Be<rs;Be++)$t(p=ce[Be],b,C)&&d.a(p)&&Yt(R,p),R=Wt(d,p,b,C,R)}return R},!0,!0);Qe("preceding-sibling",function(d,p){for(var b=new gt,C=p;C=C.previousSibling;)d.a(C)&&Ms(b,C);return b},!0);var rr=Qe("self",function(d,p){var b=new gt;return d.a(p)&&Yt(b,p),b},!1);function Xs(d){_e.call(this,1),this.c=d,this.g=d.g,this.b=d.b}function Js(d){_e.call(this,1),this.c=d}function nr(d,p){this.a=d,this.b=p}function ci(d){for(var p,b=[];;){ze(d,"Missing right hand side of binary expression."),p=Ln(d);var C=E(d.a);if(!C)break;var R=(C=ai[C]||null)&&C.w;if(!R){d.a.a--;break}for(;b.length&&R<=b[b.length-1].w;)p=new xs(b.pop(),b.pop(),p);b.push(p,C)}for(;b.length;)p=new xs(b.pop(),b.pop(),p);return p}function ze(d,p){if(T(d.a))throw Error(p)}function hi(d,p){var b=E(d.a);if(b!=p)throw Error("Bad token, expected: "+p+" got: "+b)}function ws(d){if((d=E(d.a))!=")")throw Error("Bad token: "+d)}function vn(d){if(2>(d=E(d.a)).length)throw Error("Unclosed literal string");return new M(d)}function Tn(d){var p,b,C=[];if(Q(f(d.a))){if(p=E(d.a),b=f(d.a),p=="/"&&(T(d.a)||b!="."&&b!=".."&&b!="@"&&b!="*"&&!/(?![0-9])[\w]/.test(b)))return new xt;b=new xt,ze(d,"Missing next location step."),p=_r(d,p),C.push(p)}else{t:{switch(b=(p=f(d.a)).charAt(0)){case"$":throw Error("Variable reference not allowed in HTML XPath");case"(":E(d.a),p=ci(d),ze(d,'unclosed "("'),hi(d,")");break;case'"':case"'":p=vn(d);break;default:if(isNaN(+p)){if(vi(p)||!/(?![0-9])[\w]/.test(b)||f(d.a,1)!="("){p=null;break t}for(p=E(d.a),p=Fi[p]||null,E(d.a),b=[];f(d.a)!=")"&&(ze(d,"Missing function argument list."),b.push(ci(d)),f(d.a)==",");)E(d.a);ze(d,"Unclosed function argument list."),ws(d),p=new Zs(p,b)}else p=new Js(+E(d.a))}f(d.a)=="["&&(p=new _s(p,b=new Ve(Cn(d))))}
9if(p){if(!Q(f(d.a)))return p;b=p}else p=_r(d,"/"),b=new Jt,C.push(p)}for(;Q(f(d.a));)p=E(d.a),ze(d,"Missing next location step."),p=_r(d,p),C.push(p);return new G(b,C)}function _r(d,p){var b,C,R,k;if(p!="/"&&p!="//")throw Error('Step op should be "/" or "//"');if(f(d.a)==".")return C=new ps(rr,new ds("node")),E(d.a),C;if(f(d.a)=="..")return C=new ps(ei,new ds("node")),E(d.a),C;if(f(d.a)=="@")k=Ti,E(d.a),ze(d,"Missing attribute name");else if(f(d.a,1)=="::"){if(!/(?![0-9])[\w]/.test(f(d.a).charAt(0)))throw Error("Bad token: "+E(d.a));if(b=E(d.a),!(k=ti[b]||null))throw Error("No axis with name: "+b);E(d.a),ze(d,"Missing node name")}else k=Vs;if(b=f(d.a),!/(?![0-9])[\w\*]/.test(b.charAt(0)))throw Error("Bad token: "+E(d.a));if(f(d.a,1)=="("){if(!vi(b))throw Error("Invalid node type: "+b);if(!vi(b=E(d.a)))throw Error("Invalid type name: "+b);hi(d,"("),ze(d,"Bad nodetype");var pt=null;(R=f(d.a).charAt(0))!='"'&&R!="'"||(pt=vn(d)),ze(d,"Bad nodetype"),ws(d),b=new ds(b,pt)}else if((R=(b=E(d.a)).indexOf(":"))==-1)b=new O(b);else{var st;if((pt=b.substring(0,R))=="*")st="*";else if(!(st=d.b(pt)))throw Error("Namespace prefix not declared: "+pt);b=new O(b=b.substr(R+1),st)}return R=new Ve(Cn(d),k.a),C||new ps(k,b,R,p=="//")}function Cn(d){for(var p=[];f(d.a)=="[";){E(d.a),ze(d,"Missing predicate expression.");var b=ci(d);p.push(b),ze(d,"Unclosed predicate expression."),hi(d,"]")}return p}function Ln(d){if(f(d.a)=="-")return E(d.a),new Xs(Ln(d));var p=Tn(d);if(f(d.a)!="|")d=p;else{for(p=[p];E(d.a)=="|";)ze(d,"Missing next union location path."),p.push(Tn(d));d.a.a--,d=new qe(p)}return d}function Wr(d){switch(d.nodeType){case 1:return(function(p,b){var C=Array.prototype.slice.call(arguments,1);return function(){var R=C.slice();return R.push.apply(R,arguments),p.apply(this,R)}})(Sn,d);case 9:return Wr(d.documentElement);case 11:case 10:case 6:case 12:return An;default:return d.parentNode?Wr(d.parentNode):An}}function An(){return null}function Sn(d,p){if(d.prefix==p)return d.namespaceURI||"http://www.w3.org/1999/xhtml";var b=d.getAttributeNode("xmlns:"+p);return b&&b.specified?b.value||null:d.parentNode&&d.parentNode.nodeType!=9?Sn(d.parentNode,p):null}function Rn(d,p){if(!d.length)throw Error("Empty XPath expression.");var b=(function(R){R=R.match(vr);for(var k=0;k<R.length;k++)ir.test(R[k])&&R.splice(k,1);return new Nr(R)})(d);if(T(b))throw Error("Invalid XPath expression.");p?(function(R){var k=typeof R;if(k=="object"){if(!R)return"null";if(R instanceof Array)return"array";if(R instanceof Object)return k;var pt=Object.prototype.toString.call(R);if(pt=="[object Window]")return"object";if(pt=="[object Array]"||typeof R.length=="number"&&R.splice!==void 0&&R.propertyIsEnumerable!==void 0&&!R.propertyIsEnumerable("splice"))return"array";if(pt=="[object Function]"||R.call!==void 0&&R.propertyIsEnumerable!==void 0&&!R.propertyIsEnumerable("call"))return"function"}else if(k=="function"&&R.call===void 0)return"object";return k})(p)=="function"||(p=nt(p.lookupNamespaceURI,p)):p=function(){return null};var C=ci(new nr(b,p));if(!T(b))throw Error("Bad token: "+E(b));this.evaluate=function(R,k){return new ks(C.a(new Hs(R)),k)}}function ks(d,p){if(p==0)if(d instanceof gt)p=4;else if(typeof d=="string")p=2;else if(typeof d=="number")p=1;else{if(typeof d!="boolean")throw Error("Unexpected evaluation result.");p=3}if(p!=2&&p!=1&&p!=3&&!(d instanceof gt))throw Error("value could not be converted to the specified type");var b;switch(this.resultType=p,p){case 2:this.stringValue=d instanceof gt?He(d):""+d;break;case 1:this.numberValue=d instanceof gt?+He(d):+d;break;case 3:this.booleanValue=d instanceof gt?0<d.l:!!d;break;case 4:case 5:case 6:case 7:var C=Ye(d);b=[];for(var R=le(C);R;R=le(C))b.push(R instanceof Ae?R.a:R);this.snapshotLength=d.l,this.invalidIteratorState=!1;break;case 8:case 9:C=ee(d),this.singleNodeValue=C instanceof Ae?C.a:C;break;default:throw Error("Unknown XPathResult type.")}var k=0;this.iterateNext=function(){if(p!=4&&p!=5)throw Error("iterateNext called with wrong result type");return k>=b.length?null:b[k++]},this.snapshotItem=function(pt){if(p!=6&&p!=7)throw Error("snapshotItem called with wrong result type");return pt>=b.length||0>pt?null:b[pt]}}function ho(d){this.lookupNamespaceURI=Wr(d)}function qr(d,p){var b=d||ot,C=b.Document&&b.Document.prototype||b.document;C.evaluate&&!p||(b.XPathResult=ks,C.evaluate=function(R,k,pt,st){return new Rn(R,pt).evaluate(k,st)},C.createExpression=function(R,k){return new Rn(R,k)},C.createNSResolver=function(R){return new ho(R)})}Kt(Xs),Xs.prototype.a=function(d){return-Lt(this.c,d)},Xs.prototype.toString=function(){return"Unary Expression: -"+Nt(this.c)},Kt(Js),Js.prototype.a=function(){return this.c},Js.prototype.toString=function(){return"Number: "+this.c},ks.ANY_TYPE=0,ks.NUMBER_TYPE=1,ks.STRING_TYPE=2,ks.BOOLEAN_TYPE=3,ks.UNORDERED_NODE_ITERATOR_TYPE=4,ks.ORDERED_NODE_ITERATOR_TYPE=5,ks.UNORDERED_NODE_SNAPSHOT_TYPE=6,ks.ORDERED_NODE_SNAPSHOT_TYPE=7,ks.ANY_UNORDERED_NODE_TYPE=8,ks.FIRST_ORDERED_NODE_TYPE=9;var or,ar=["wgxpath","install"],di=ot;for((ar[0]in di)||!di.execScript||di.execScript("var "+ar[0]);ar.length&&(or=ar.shift());)ar.length||qr===void 0?di=di[or]?di[or]:di[or]={}:di[or]=qr;Ut.exports.install=qr,Ut.exports.XPathResultType={ANY_TYPE:0,NUMBER_TYPE:1,STRING_TYPE:2,BOOLEAN_TYPE:3,UNORDERED_NODE_ITERATOR_TYPE:4,ORDERED_NODE_ITERATOR_TYPE:5,UNORDERED_NODE_SNAPSHOT_TYPE:6,ORDERED_NODE_SNAPSHOT_TYPE:7,ANY_UNORDERED_NODE_TYPE:8,FIRST_ORDERED_NODE_TYPE:9}}).call(Mt.g)}},yr={};function m(Ut){var w=yr[Ut];if(w!==void 0)return w.exports;var Mt=yr[Ut]={exports:{}};return Hr[Ut](Mt,Mt.exports,m),Mt.exports}Bi=Object.getPrototypeOf?Ut=>Object.getPrototypeOf(Ut):Ut=>Ut.__proto__,m.t=function(Ut,w){if(1&w&&(Ut=this(Ut)),8&w||typeof Ut=="object"&&Ut&&(4&w&&Ut.__esMo
9dule||16&w&&typeof Ut.then=="function"))return Ut;var Mt=Object.create(null);m.r(Mt);var ot={};Nn=Nn||[null,Bi({}),Bi([]),Bi(Bi)];for(var H=2&w&&Ut;(typeof H=="object"||typeof H=="function")&&!~Nn.indexOf(H);H=Bi(H))Object.getOwnPropertyNames(H).forEach(kt=>ot[kt]=()=>Ut[kt]);return ot.default=()=>Ut,m.d(Mt,ot),Mt},m.d=(Ut,w)=>{for(var Mt in w)m.o(w,Mt)&&!m.o(Ut,Mt)&&Object.defineProperty(Ut,Mt,{enumerable:!0,get:w[Mt]})},m.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),m.o=(Ut,w)=>Object.prototype.hasOwnProperty.call(Ut,w),m.r=Ut=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Ut,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Ut,"__esModule",{value:!0})},(()=>{var Ut={};m.r(Ut),m.d(Ut,{GLOBAL:()=>lr,MathJax:()=>cr,combineConfig:()=>uh,combineDefaults:()=>si,combineWithMathJax:()=>Ks,isObject:()=>uo});var w={};m.r(w),m.d(w,{context:()=>Fe,hasWindow:()=>Vr});var Mt={};m.r(Mt),m.d(Mt,{Package:()=>ke,PackageError:()=>ph});var ot={};m.r(ot),m.d(ot,{PrioritizedList:()=>ii});var H={};m.r(H),m.d(H,{FunctionList:()=>Ui});var kt={};m.r(kt),m.d(kt,{CONFIG:()=>Re,Loader:()=>Ze,MathJax:()=>zr,PathFilters:()=>po});var rt={};m.r(rt),m.d(rt,{APPEND:()=>In,Expandable:()=>mo,OPTIONS:()=>kn,REMOVE:()=>wn,copy:()=>fh,defaultOptions:()=>ms,expandable:()=>hs,insert:()=>Xr,isObject:()=>Sa,keys:()=>Ma,lookup:()=>Jr,makeArray:()=>Ra,selectOptions:()=>du,selectOptionsFromKeys:()=>Df,separateOptions:()=>fo,userOptions:()=>Ws});var nt={};m.r(nt),m.d(nt,{CONFIG:()=>ys,MathJax:()=>me,Startup:()=>z});var Kt={};m.r(Kt),m.d(Kt,{AbstractDOMAdaptor:()=>pu});var Ue={};m.r(Ue),m.d(Ue,{HTMLAdaptor:()=>gh});var Vt={};m.r(Vt),m.d(Vt,{browserAdaptor:()=>fu});var ut={};m.r(ut),m.d(ut,{AbstractFindMath:()=>Ia});var j={};m.r(j),m.d(j,{AbstractInputJax:()=>Tr});var Ct={};m.r(Ct),m.d(Ct,{AbstractOutputJax:()=>On});var _={};m.r(_),m.d(_,{END:()=>Ci,LinkedList:()=>wa,ListItem:()=>go});var ae={};m.r(ae),m.d(ae,{AbstractMathList:()=>bh});var Pt={};m.r(Pt),m.d(Pt,{AbstractMathItem:()=>Eh,STATE:()=>K,newState:()=>Dn,protoItem:()=>ka});var ie={};m.r(ie),m.d(ie,{AbstractFactory:()=>bo});var vs={};m.r(vs),m.d(vs,{AbstractNodeFactory:()=>gu});var cs={};m.r(cs),m.d(cs,{Attributes:()=>bu,INHERIT:()=>fs});var Je={};m.r(Je),m.d(Je,{AbstractEmptyNode:()=>Eu,AbstractNode:()=>xh});var Le={};m.r(Le),m.d(Le,{AbstractMmlBaseNode:()=>Ds,AbstractMmlEmptyNode:()=>Oa,AbstractMmlLayoutNode:()=>pi,AbstractMmlNode:()=>Ot,AbstractMmlTokenNode:()=>Os,MATHVARIANTS:()=>xu,TEXCLASS:()=>S,TEXCLASSNAMES:()=>yh,TextNode:()=>Kr,XMLNode:()=>Eo,indentAttributes:()=>yu});var X={};m.r(X),m.d(X,{MmlMath:()=>xo});var ft={};m.r(ft),m.d(ft,{MmlMi:()=>Li});var P={};m.r(P),m.d(P,{MmlMn:()=>yo});var U={};m.r(U),m.d(U,{MMLSPACING:()=>vu,MO:()=>l,OPDEF:()=>fe,OPTABLE:()=>Hi,RANGES:()=>Nu,getRange:()=>Nh});var $={};m.r($),m.d($,{isPercent:()=>ri,quotePattern:()=>Da,replaceUnicode:()=>Lu,sortLength:()=>Tu,split:()=>mi,toEntity:()=>Au,unicodeChars:()=>No,unicodeString:()=>Cu});var ht={};m.r(ht),m.d(ht,{MmlMo:()=>Ps});var ct={};m.r(ct),m.d(ct,{MmlMtext:()=>Cr});var J={};m.r(J),m.d(J,{MmlMspace:()=>Lr});var Et={};m.r(Et),m.d(Et,{MmlMs:()=>vo});var at={};m.r(at),m.d(at,{MmlInferredMrow:()=>To,MmlMrow:()=>$r});var bt={};m.r(bt),m.d(bt,{MmlMfrac:()=>Co});var yt={};m.r(yt),m.d(yt,{MmlMsqrt:()=>Lo});var Z={};m.r(Z),m.d(Z,{MmlMroot:()=>Ao});var zt={};m.r(zt),m.d(zt,{MmlMstyle:()=>Pa});var Ht={};m.r(Ht),m.d(Ht,{MmlMerror:()=>Ba});var Ae={};m.r(Ae),m.d(Ae,{MmlMpadded:()=>So});var Xt={};m.r(Xt),m.d(Xt,{MmlMphantom:()=>Fa});var Ie={};m.r(Ie),m.d(Ie,{MmlMfenced:()=>Ro});var $t={};m.r($t),m.d($t,{MmlMenclose:()=>Mo});var Wt={};m.r(Wt),m.d(Wt,{MmlMaction:()=>Io});var Se={};m.r(Se),m.d(Se,{MmlMsub:()=>wo,MmlMsubsup:()=>Ai,MmlMsup:()=>ko});var Pe={};m.r(Pe),m.d(Pe,{MmlMover:()=>Pn,MmlMunder:()=>Oo,MmlMunderover:()=>_i});var pe={};m.r(pe),m.d(pe,{MmlMmultiscripts:()=>Do,MmlMprescripts:()=>ja,MmlNone:()=>Ua});var we={};m.r(we),m.d(we,{MmlMtable:()=>Po});var Ts={};
9m.r(Ts),m.d(Ts,{MmlMlabeledtr:()=>Ha,MmlMtr:()=>Bn});var Cs={};m.r(Cs),m.d(Cs,{MmlMtd:()=>Bo});var bs={};m.r(bs),m.d(bs,{MmlMaligngroup:()=>_a});var vt={};m.r(vt),m.d(vt,{MmlMalignmark:()=>Wa});var Ss={};m.r(Ss),m.d(Ss,{MmlMglyph:()=>Fo});var Ls={};m.r(Ls),m.d(Ls,{MmlAnnotation:()=>Uo,MmlAnnotationXML:()=>Gr,MmlSemantics:()=>jo});var gt={};m.r(gt),m.d(gt,{TeXAtom:()=>Fn});var es={};m.r(es),m.d(es,{MathChoice:()=>qa});var Rs={};m.r(Rs),m.d(Rs,{HtmlNode:()=>Va});var Ms={};m.r(Ms),m.d(Ms,{MML:()=>Su});var Yt={};m.r(Yt),m.d(Yt,{MmlFactory:()=>za});var ee={};m.r(ee),m.d(ee,{BitField:()=>Yr,BitFieldClass:()=>Ru});var He={};m.r(He),m.d(He,{handleRetriesFor:()=>Ho,retryAfter:()=>jn});var Ye={};m.r(Ye),m.d(Ye,{AbstractMathDocument:()=>Wi,RenderList:()=>Th,resetAllOptions:()=>Iu,resetOptions:()=>Mu});var Qs={};m.r(Qs),m.d(Qs,{AbstractHandler:()=>Ch});var le={};m.r(le),m.d(le,{HandlerList:()=>ku});var _e={};m.r(_e),m.d(_e,{AbstractVisitor:()=>_o});var Nt={};m.r(Nt),m.d(Nt,{DATAMJX:()=>Ou,MmlVisitor:()=>Un});var We={};m.r(We),m.d(We,{MathMLVisitor:()=>Wf});var Es={};m.r(Es),m.d(Es,{SerializedMmlVisitor:()=>Xa});var Lt={};m.r(Lt),m.d(Lt,{AbstractWrapper:()=>Du});var Bt={};m.r(Bt),m.d(Bt,{AbstractWrapperFactory:()=>Pu});var Ke={};m.r(Ke),m.d(Ke,{mathjax:()=>gs});var xs={};m.r(xs),m.d(xs,{HTMLMathItem:()=>Bu});var Us={};m.r(Us),m.d(Us,{HTMLMathList:()=>Fu});var Ni={};m.r(Ni),m.d(Ni,{HTMLDomStrings:()=>Ja});var ai={};m.r(ai),m.d(ai,{HTMLDocument:()=>Ka});var ss={};m.r(ss),m.d(ss,{HTMLHandler:()=>Lh});var er={};m.r(er),m.d(er,{RegisterHTMLHandler:()=>qf});var Hs={};m.r(Hs),m.d(Hs,{StyleJsonSheet:()=>qi});var _s={};m.r(_s),m.d(_s,{DraggableDialog:()=>fi,isDialog:()=>$a});var Zs={};m.r(Zs),m.d(Zs,{InfoDialog:()=>Qr});var sr={};m.r(sr),m.d(sr,{asyncLoad:()=>Sh});var Fi={};m.r(Fi),m.d(Fi,{BIGDIMEN:()=>gi,MATHSPACE:()=>ts,RELUNITS:()=>Mh,UNITS:()=>Rh,em:()=>Gt,length2em:()=>Ih,percent:()=>wh,px:()=>ju});var Zt={};m.r(Zt),m.d(Zt,{BBox:()=>he});var ds={};m.r(ds),m.d(ds,{add:()=>Vf,entities:()=>Si,numeric:()=>_u,options:()=>Uu,remove:()=>zf,translate:()=>Hu});var vi={};m.r(vi),m.d(vi,{Styles:()=>Oe,TRBL:()=>Vi,WSC:()=>Hn});var Nr={};m.r(Nr),m.d(Nr,{max:()=>Qa,sum:()=>Ar});var vr={};m.r(vr),m.d(vr,{FindTeX:()=>Za});var ir={};m.r(ir),m.d(ir,{default:()=>L});var f={};m.r(f),m.d(f,{TexConstant:()=>Dt});var E={};m.r(E),m.d(E,{default:()=>Sr});var T={};m.r(T),m.d(T,{ConfigurationType:()=>It,HandlerType:()=>At});var M={};m.r(M),m.d(M,{UnitUtil:()=>Qt});var O={};m.r(O),m.d(O,{default:()=>zu});var G={};m.r(G),m.d(G,{default:()=>V});var xt={};m.r(xt),m.d(xt,{BaseItem:()=>Ft,MmlStack:()=>Xu});var Jt={};m.r(Jt),m.d(Jt,{default:()=>$e});var Q={};m.r(Q),m.d(Q,{default:()=>$u});var qe={};m.r(qe),m.d(qe,{NodeFactory:()=>Zr});var Ve={};m.r(Ve),m.d(Ve,{KeyValueDef:()=>tn,KeyValueTypes:()=>Zf,ParseUtil:()=>dt});var us={};m.r(us),m.d(us,{ColumnParser:()=>Yu});var ps={};m.r(ps),m.d(ps,{default:()=>Hh});var is={};m.r(is),m.d(is,{AbstractTags:()=>Xo,AllTags:()=>Zu,Label:()=>tl,NoTags:()=>Qu,TagInfo:()=>el,TagsFactory:()=>zi});var ti={};m.r(ti),m.d(ti,{Macro:()=>Xi,Token:()=>il});var Qe={};m.r(Qe),m.d(Qe,{AbstractParseMap:()=>qh,AbstractTokenMap:()=>Wh,CharacterMap:()=>$s,CommandMap:()=>Ri,DelimiterMap:()=>_n,EnvironmentMap:()=>Ko,MacroMap:()=>sn,RegExpMap:()=>en,parseResult:()=>Jo});var Ti={};m.r(Ti),m.d(Ti,{MapHandler:()=>$o,SubHandler:()=>Wn,SubHandlers:()=>ep});var Vs={};m.r(Vs),m.d(Vs,{Configuration:()=>qs,ConfigurationHandler:()=>rl,ParserConfiguration:()=>zh});var li={};m.r(li),m.d(li,{ArrayItem:()=>hr,BeginItem:()=>ll,BreakItem:()=>Qh,CellItem:()=>e0,CloseItem:()=>Xh,DotsItem:()=>n0,EndItem:()=>Zh,EqnArrayItem:()=>cl,EquationItem:()=>a0,FnItem:()=>s0,LeftItem:()=>al,Middle:()=>Gh,MmlItem:()=>Yo,MstyleItem:()=>o0,NonscriptItem:()=>r0,NotItem:()=>i0,NullItem:()=>Jh,OpenItem:()=>nl,OverItem:()=>$h,PositionItem:()=>t0,PrimeItem:()=>Kh,RightItem:()=>Yh,StartItem:()=>Go,StopItem:()=>qn,StyleItem:()=>Vn,SubsupItem:()=>ol});var zs={};m.r(zs),m.d(zs,{default:()=>N,splitAlignArray:()=>rn});var ei={};m.r(ei),m.d(ei,{default:()=>Ge});var Is={};m.r(Is),m.d(Is,{BaseConfiguration:()=>rg,BaseTags:()=>np,Other:()=>rp});var rr={};m.r(rr),m.d(rr,{TeX:()=>nn});var Xs={};m.r(Xs),m.d(Xs,{FlalignItem:()=>c0,MultlineItem:()=>l0});var Js={};m.r(Js),m.d(Js,{NewcommandPriority:()=>op,NewcommandTables:()=>Bs,NewcommandUtil:()=>Ee});var nr={};m.r(nr),m.d(nr,{AmsMethods:()=>lt});var ci={};m.r(ci),m.d(ci,{BeginEnvItem:()=>ta}
9);var ze={};m.r(ze),m.d(ze,{default:()=>Ji});var hi={};m.r(hi),m.d(hi,{NewcommandConfig:()=>h0,NewcommandConfiguration:()=>ng});var ws={};m.r(ws),m.d(ws,{AmsConfiguration:()=>og,AmsTags:()=>cp});var vn={};m.r(vn),m.d(vn,{RequireConfiguration:()=>u0,RequireLoad:()=>d0,RequireMethods:()=>up,options:()=>pp});var Tn={};m.r(Tn),m.d(Tn,{AutoloadConfiguration:()=>lg});var _r={};m.r(_r),m.d(_r,{ConfigMacrosConfiguration:()=>cg});var Cn={};m.r(Cn),m.d(Cn,{NoUndefinedConfiguration:()=>hg});var Ln={};m.r(Ln),m.d(Ln,{TextParser:()=>Xn});var Wr={};m.r(Wr),m.d(Wr,{TextMacrosMethods:()=>F});var An={};m.r(An),m.d(An,{TextBaseConfiguration:()=>dg,TextMacrosConfiguration:()=>pg});var Sn={};m.r(Sn),m.d(Sn,{DIRECTION:()=>xe,H:()=>W,V:()=>D});var Rn={};m.r(Rn),m.d(Rn,{DIRECTION:()=>xe,FontData:()=>de,HFUZZ:()=>Jn,NOSTRETCH:()=>ea,VFUZZ:()=>on,mergeOptions:()=>ur});var ks={};m.r(ks),m.d(ks,{LineBBox:()=>Fs});var ho={};m.r(ho),m.d(ho,{LinebreakVisitor:()=>Ep,Linebreaks:()=>bp,NOBREAK:()=>an});var qr={};m.r(qr),m.d(qr,{CommonOutputJax:()=>ln,FONTPATH:()=>xp});var or={};m.r(or),m.d(or,{CommonWrapperFactory:()=>b0});var ar={};m.r(ar),m.d(ar,{CommonWrapper:()=>ni,SPACE:()=>sa});var di={};m.r(di),m.d(di,{ChtmlWrapper:()=>re,FONTSIZE:()=>x0});var d={};m.r(d),m.d(d,{CommonMathMixin:()=>Np});var p={};m.r(p),m.d(p,{ChtmlMath:()=>y0});var b={};m.r(b),m.d(b,{CommonMiMixin:()=>vp});var C={};m.r(C),m.d(C,{ChtmlMi:()=>N0});var R={};m.r(R),m.d(R,{Usage:()=>hl});var k={};m.r(k),m.d(k,{AddCSS:()=>gg,ChtmlFontData:()=>Mi,DIRECTION:()=>xe,FontData:()=>de,HFUZZ:()=>Jn,NOSTRETCH:()=>ea,VFUZZ:()=>on,mergeOptions:()=>ur});var pt={};m.r(pt),m.d(pt,{CommonMoMixin:()=>Tp});var st={};m.r(st),m.d(st,{ChtmlMo:()=>v0});var ce={};m.r(ce),m.d(ce,{CommonMnMixin:()=>Cp});var Be={};m.r(Be),m.d(Be,{ChtmlMn:()=>T0});var rs={};m.r(rs),m.d(rs,{CommonMsMixin:()=>Lp});var As={};m.r(As),m.d(As,{ChtmlMs:()=>C0});var Mn={};m.r(Mn),m.d(Mn,{CommonMtextMixin:()=>Ap});var ji={};m.r(ji),m.d(ji,{ChtmlMtext:()=>L0});var Xl={};m.r(Xl),m.d(Xl,{CommonMspaceMixin:()=>Sp});var Jl={};m.r(Jl),m.d(Jl,{ChtmlMspace:()=>A0});var Kl={};m.r(Kl),m.d(Kl,{CommonMpaddedMixin:()=>Rp});var $l={};m.r($l),m.d($l,{ChtmlMpadded:()=>S0});var Gl={};m.r(Gl),m.d(Gl,{ARROWDX:()=>Kn,ARROWX:()=>bi,ARROWY:()=>Ki,CommonArrow:()=>F0,CommonBorder:()=>O0,CommonBorder2:()=>D0,CommonDiagonalArrow:()=>B0,CommonDiagonalStrike:()=>P0,PADDING:()=>Rr,SOLID:()=>Mr,THICKNESS:()=>ve,arrowBBox:()=>k0,arrowBBoxHD:()=>ia,arrowBBoxW:()=>ra,arrowDef:()=>I0,arrowHead:()=>$i,diagonalArrowDef:()=>w0,fullBBox:()=>$n,fullBorder:()=>M0,fullPadding:()=>Mp,sideIndex:()=>cn,sideNames:()=>R0});var Yl={};m.r(Yl),m.d(Yl,{CommonMencloseMixin:()=>Ip});var Ql={};m.r(Ql),m.d(Ql,{ARROWDX:()=>Kn,ARROWX:()=>bi,ARROWY:()=>Ki,Arrow:()=>hn,Border:()=>oa,Border2:()=>j0,CommonArrow:()=>F0,CommonBorder:()=>O0,CommonBorder2:()=>D0,CommonDiagonalArrow:()=>B0,CommonDiagonalStrike:()=>P0,DiagonalArrow:()=>Ir,DiagonalStrike:()=>U0,PADDING:()=>Rr,RenderElement:()=>na,SOLID:()=>Mr,THICKNESS:()=>ve,arrowBBox:()=>k0,arrowBBoxHD:()=>ia,arrowBBoxW:()=>ra,arrowDef:()=>I0,arrowHead:()=>$i,diagonalArrowDef:()=>w0,fullBBox:()=>$n,fullBorder:()=>M0,fullPadding:()=>Mp,sideIndex:()=>cn,sideNames:()=>R0});var Zl={};m.r(Zl),m.d(Zl,{ChtmlMenclose:()=>H0});var tc={};m.r(tc),m.d(tc,{CommonInferredMrowMixin:()=>Op,CommonMrowMixin:()=>kp});var ec={};m.r(ec),m.d(ec,{ChtmlInferredMrow:()=>_0,ChtmlMrow:()=>ul});var sc={};m.r(sc),m.d(sc,{CommonMfencedMixin:()=>Dp});var ic={};m.r(ic),m.d(ic,{ChtmlMfenced:()=>W0});var rc={};m.r(rc),m.d(rc,{CommonMfracMixin:()=>Pp});var nc={};m.r(nc),m.d(nc,{ChtmlMfrac:()=>q0});var oc={};m.r(oc),m.d(oc,{CommonMsqrtMixin:()=>Bp});var ac={};m.r(ac),m.d(ac,{ChtmlMsqrt:()=>pl});var lc={};m.r(lc),m.d(lc,{CommonMrootMixin:()=>Fp});var cc={};m.r(cc),m.d(cc,{ChtmlMroot:()=>V0});var hc={};m.r(hc),m.d(hc,{CommonMsubMixin:()=>jp,CommonMsubsupMixin:()=>Hp,CommonMsupMixin:()=>Up});var dc={};m.r(dc),m.d(dc,{CommonScriptbaseMixin:()=>_p});var uc={};m.r(uc),m.d(uc,{ChtmlScriptbase:()=>ml});var pc={};m.r(pc),m.d(pc,{ChtmlMsub:()=>fl,ChtmlMsubsup:()=>Gn,ChtmlMsup:()=>gl});var mc={};m.r(mc),m.d(mc,{CommonMoverMixin:()=>qp,CommonMunderMixin:()=>Wp,CommonMunderoverMixin:()=>Vp});var fc={};m.r(fc),m.d(fc,{ChtmlMover:()=>X0,ChtmlMunder:()=>z0,ChtmlMunderover:()=>J0});var gc={};m.r(gc),m.d(gc,{CommonMmultiscriptsMixin:()=>Xp,NextScript:()=>zp,ScriptNames:()=>bg});var bc={};m.r(bc),m.d(bc,{ChtmlMmultiscripts:()=>K0});var Ec={};m.r(Ec),m.d(Ec,{BREAK_BELOW:()=>Jp,CommonMtableMixin:()=>Kp});var xc={};m.r(xc),m.d(xc,{ChtmlMtable:()=>$0});var yc={};m.r(yc),m.d(yc,{CommonMlabeledtrMixin:()=>Gp,CommonMtrMixin:()=>$p});var Nc={};m.r(Nc),m.d(Nc,{ChtmlMlabeledtr:()=>G0,ChtmlMtr:()=>aa});var vc={};m.r(vc),m.d(vc,{CommonMtdMixin:()=>Yp});var Tc={};m.r(Tc),m.d(Tc,{ChtmlMtd:()=>Y0});var Cc={};m.r(Cc),m.d(Cc,{CommonMactionMixin:()=>Qp,TooltipData:()=>bl});var Lc={};m.r(Lc),m.d(Lc,{ChtmlMaction:()=>Q0});var Ac={};m.r(Ac),m.d(Ac,{CommonMglyphMixin:()=>Zp});var Sc={};m.r(Sc),m.d(Sc,{ChtmlMglyph:()=>Z0});var Rc={};m.r(Rc),m.d(Rc,{CommonSemanticsMixin:()=>tm});var Mc={};m.r(Mc),m.d(Mc,{CommonXmlNodeMixin:()=>em});var Ic={};m.r(Ic),m.d(Ic,{ChtmlAnnotation:()=>ed,ChtmlAnnotationXML:()=>sd,ChtmlSemantics:()=>td,ChtmlXmlNode:()=>El});var wc={};
9m.r(wc),m.d(wc,{CommonTeXAtomMixin:()=>sm});var kc={};m.r(kc),m.d(kc,{ChtmlTeXAtom:()=>id});var Oc={};m.r(Oc),m.d(Oc,{CommonTextNodeMixin:()=>im});var Dc={};m.r(Dc),m.d(Dc,{ChtmlTextNode:()=>rd});var Pc={};m.r(Pc),m.d(Pc,{ChtmlHtmlNode:()=>nd});var Bc={};m.r(Bc),m.d(Bc,{ChtmlWrappers:()=>rm});var Fc={};m.r(Fc),m.d(Fc,{ChtmlWrapperFactory:()=>od});var jc={};m.r(jc),m.d(jc,{DefaultFont:()=>ld,fontName:()=>ad});var Uc={};m.r(Uc),m.d(Uc,{CHTML:()=>wr});var Hc={};m.r(Hc),m.d(Hc,{AddFontIds:()=>xg});var _c={};m.r(_c),m.d(_c,{MJContextMenu:()=>Yi});var Wc={};m.r(Wc),m.d(Wc,{addPreference:()=>k1,engineSetup:()=>I1,fromPreference:()=>Yd,locales:()=>$d,parseDOM:()=>w1,setupEngine:()=>M1,toEnriched:()=>Gd,toPreference:()=>O1});var qc={};m.r(qc),m.d(qc,{clearspeakMenu:()=>B1,localeMenu:()=>F1});var Vc={};m.r(Vc),m.d(Vc,{copyToClipboard:()=>jr,isMac:()=>va});var zc={};m.r(zc),m.d(zc,{annotation:()=>Bl,copyAnnotations:()=>U1,showAnnotations:()=>j1});var Xc={};m.r(Xc),m.d(Xc,{RadioCompare:()=>tu});var Jc={};m.r(Jc),m.d(Jc,{MmlVisitor:()=>_1});var Kc={};m.r(Kc),m.d(Kc,{Menu:()=>_t});var $c={};m.r($c),m.d($c,{MenuHandler:()=>V1,MenuMathDocumentMixin:()=>q1,MenuMathItemMixin:()=>W1});var Gc={};m.r(Gc),m.d(Gc,{FindMathML:()=>jl});var Yc={};m.r(Yc),m.d(Yc,{MathMLCompile:()=>Ul});var Qc={};m.r(Qc),m.d(Qc,{MathML:()=>Hl});var Zc={};m.r(Zc),m.d(Zc,{EnrichHandler:()=>eu,EnrichedMathDocumentMixin:()=>K1,EnrichedMathItemMixin:()=>J1,enrichVisitor:()=>X1});var th={};m.r(th),m.d(th,{InPlace:()=>su,SemAttr:()=>Te,buildLabel:()=>Y1,buildSpeech:()=>Q1,honk:()=>Z1,ssmlParsing:()=>$1});var eh={};m.r(eh),m.d(eh,{GeneratorPool:()=>tf});var sh={};m.r(sh),m.d(sh,{WorkerHandler:()=>ef});var ih={};m.r(ih),m.d(ih,{SpeechHandler:()=>iu,SpeechMathDocumentMixin:()=>af,SpeechMathItemMixin:()=>of});var rh={};m.r(rh),m.d(rh,{AbstractRegion:()=>_l,DummyRegion:()=>lf,HoverRegion:()=>xn,LiveRegion:()=>yi,SpeechRegion:()=>nu,StringRegion:()=>ru,ToolTip:()=>gr});var nh={};m.r(nh),m.d(nh,{AbstractExplorer:()=>lo});var oh={};m.r(oh),m.d(oh,{SpeechExplorer:()=>Ta,hasModifiers:()=>co,isContainer:()=>sb});var ah={};m.r(ah),m.d(ah,{AbstractMouseExplorer:()=>pf,ContentHoverer:()=>mf,FlameHoverer:()=>ff,Hoverer:()=>Wl,ValueHoverer:()=>ql});var lh={};m.r(lh),m.d(lh,{AbstractTreeExplorer:()=>ou,ContrastPicker:()=>Vl,FlameColorer:()=>gf,TreeColorer:()=>bf});var ch={};m.r(ch),m.d(ch,{ATTR:()=>br,getHighlighter:()=>lu});var hh={};m.r(hh),m.d(hh,{ExplorerPool:()=>Nf,RegionPool:()=>xf});var dh={};m.r(dh),m.d(dh,{ExplorerHandler:()=>Cf,ExplorerMathDocumentMixin:()=>Tf,ExplorerMathItemMixin:()=>vf,setA11yOption:()=>Lf,setA11yOptions:()=>ab});const ui="4.1.2",wf={},lr=typeof window<"u"?window:m.g!==void 0?m.g:typeof globalThis<"u"?globalThis:wf;function uo(r){return typeof r=="object"&&r!==null}function uh(r,t,e=!1){var s;for(const i of Object.keys(t))i!=="__esModule"&&r[i]!==t[i]&&t[i]!==null&&t[i]!==void 0&&(uo(r[i])&&uo(t[i])?uh(r[i],t[i],e||i==="_"):e&&(!((s=Object.getOwnPropertyDescriptor(r,i))===null||s===void 0)&&s.get)||(r[i]=t[i]));return r}function si(r,t,e){r[t]||(r[t]={}),r=r[t];for(const s of Object.keys(e))uo(r[s])&&uo(e[s])?si(r,s,e[s]):r[s]==null&&e[s]!=null&&(r[s]=e[s]);return r}function Ks(r){return uh(cr,r)}lr.MathJax!==void 0&&lr.MathJax.constructor==={}.constructor||(lr.MathJax={}),lr.MathJax.version||(lr.MathJax={version:ui,_:{},config:lr.MathJax});const cr=lr.MathJax;!Object.hasOwn&&cr.config.startup.polyfillHasOwn&&(Object.hasOwn=function(r,t){if(r==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(r),t)});const Vr=typeof window<"u",Fe={window:Vr?window:null,document:Vr?window.document:null,os:(()=>
vendor: 5,951 bytes, lines 9-10
9{if(Vr&&window.navigator){const r=window.navigator.appVersion,t=[["Win","Windows"],["Mac","MacOS"],["X11","Unix"],["Linux","Unix"]];for(const[e,s]of t)if(r.includes(e))return s;if(window.navigator.userAgent.includes("Android"))return"Unix"}else if(typeof process<"u")return{linux:"Unix",android:"Unix",aix:"Unix",freebsd:"Unix",netbsd:"Unix",openbsd:"Unix",sunos:"Unix",darwin:"MacOS",win32:"Windows",cygwin:"Windows"}[process.platform]||process.platform;return"unknown"})(),path:r=>r};Fe.os==="Windows"&&(Fe.path=r=>r.match(/^[/\\]?[a-zA-Z]:[/\\]/)?"file://"+r.replace(/\\/g,"/").replace(/^\//,""):r.replace(/^\//,"file:///"));class ph extends Error{constructor(t,e){super(t),this.package=e}}class ke{get canLoad(){return this.dependencyCount===0&&!this.noLoad&&!this.isLoading&&!this.hasFailed}static loadPromise(t){const e=Re[t]||{},s=e.extraLoads?Ze.load(...e.extraLoads):Promise.resolve(),i=e.checkReady||(()=>Promise.resolve());return s.then(()=>i())}static resolvePath(t,e=!0){const s={name:t,original:t,addExtension:e};return Ze.pathFilters.execute(s),s.name}static loadAll(){for(const t of this.packages.values())t.canLoad&&t.load()}constructor(t,e=!1){this.isLoaded=!1,this.result={},this.isLoading=!1,this.hasFailed=!1,this.dependents=[],this.dependencies=[],this.dependencyCount=0,this.provided=[],this.name=t,this.noLoad=e,ke.packages.set(t,this),this.promise=this.makePromise(this.makeDependencies())}makeDependencies(){const t=[],e=ke.packages,s=this.noLoad,i=this.name,n=[];Object.hasOwn(Re.dependencies,i)?n.push(...Re.dependencies[i]):i!=="core"&&n.push("core");for(const o of n){const a=e.get(o)||new ke(o,s);this.dependencies.includes(a)||(a.addDependent(this,s),this.dependencies.push(a),a.isLoaded||(this.dependencyCount++,t.push(a.promise)))}return t}makePromise(t){let e=new Promise((i,n)=>{this.resolve=i,this.reject=n});const s=Re[this.name]||{};return s.ready&&(e=e.then(i=>s.ready(this.name))),t.length&&(t.push(e),e=Promise.all(t).then(i=>i.join(", "))),s.failed&&e.catch(i=>s.failed(new ph(i,this.name))),e}load(){if(!this.isLoaded&&!this.isLoading&&!this.noLoad){this.isLoading=!0;const t=ke.resolvePath(this.name);Re.require?this.loadCustom(t):this.loadScript(t)}}loadCustom(t){try{const e=Re.require(t);e instanceof Promise?e.then(s=>this.result=s).then(()=>this.checkLoad()).catch(s=>this.failed(`Can't load "`+t+`"
10`+s.message.trim())):(this.result=e,this.checkLoad())}catch(e){this.failed(e.message)}}loadScript(t){const e=Fe.document.createElement("script");e.src=t,e.charset="UTF-8",e.onload=s=>this.checkLoad(),e.onerror=s=>this.failed(`Can't load "`+t+'"'),Fe.document.head.appendChild(e)}loaded(){this.isLoaded=!0,this.isLoading=!1;for(const t of this.dependents)t.requirementSatisfied();for(const t of this.provided)t.loaded();this.resolve(this.name)}failed(t){this.hasFailed=!0,this.isLoading=!1,this.reject(new ph(t,this.name))}checkLoad(){ke.loadPromise(this.name).then(()=>this.loaded()).catch(t=>this.failed(t))}requirementSatisfied(){this.dependencyCount&&(this.dependencyCount--,this.canLoad&&this.load())}provides(t=[]){for(const e of t){let s=ke.packages.get(e);s||(Re.dependencies[e]||(Re.dependencies[e]=[]),Re.dependencies[e].push(e),s=new ke(e,!0),s.isLoading=!0),this.provided.push(s)}}addDependent(t,e){this.dependents.push(t),e||this.checkNoLoad()}checkNoLoad(){if(this.noLoad){this.noLoad=!1;for(const t of this.dependencies)t.checkNoLoad()}}}ke.packages=new Map;class ii{constructor(){this.items=[],this.items=[]}[Symbol.iterator](){let t=0;const e=this.items;return{next:()=>({value:e[t++],done:t>e.length})}}add(t,e=ii.DEFAULTPRIORITY){let s=this.items.length;do s--;while(s>=0&&e<this.items[s].priority);return this.items.splice(s+1,0,{item:t,priority:e}),t}remove(t){let e=this.items.length;do e--;while(e>=0&&this.items[e].item!==t);return e>=0&&this.items.splice(e,1),this}}ii.DEFAULTPRIORITY=5;class Ui extends ii{constructor(t=null){super(),t&&this.addList(t)}addList(t){for(const e of t)Array.isArray(e)?this.add(e[0],e[1]):this.add(e)}execute(...t){for(const e of this)if(e.item(...t)===!1)return!1;return!0}asyncExecute(...t){let e=-1;const s=this.items;return new Promise((i,n)=>{(function o(){for(;++e<s.length;){const a=s[e].item(...t);if(a instanceof Promise)return void a.then(o).catch(c=>n(c));if(a===!1)return void i(!1)}i(!0)})()})}}const hu=cr.config||{};var kf=function(r,t,e,s){return new(e||(e=Promise))(function(i,n){function o(h){try{c(s.next(h))}catch(u){n(u)}}function a(h){try{c(s.throw(h))}catch(u){n(u)}}function c(h){var u;h.done?i(h.value):(u=h.value,u instanceof e?u:new e(function(x){x(u)})).then(o,a)}c((s=s.apply(r,[])).next())})};const po={source:r=>(Object.hasOwn(Re.source,r.name)&&(r.name=Re.source[r.name]),!0),normalize:r=>{const t=r.name;return t.match(/^(?:[a-z]+:\/)?\/|[a-z]:[/\\]|\[/i)||(r.name="[mathjax]/"+t.replace(/^\.\//,"")),!0},prefix:r=>{let t;for(;(t=r.name.match(/^\[([^\]]*)\]/))&&Object.hasOwn(Re.paths,t[1]);)r.name=Re.paths[t[1]]+r.name.substring(t[0].length);return!0},addExtension:r=>(r.addExtension&&!r.name.match(/\.[^/]+$/)&&(r.name+=".js"),!0)},mh=cr.version,Ze={versions:new Map,nestedLoads:[],ready(...r){r.length===0&&(r=Array.from(ke.packages.keys()));const t=[];for(const e of r){const s=ke.packages.get(e)||new ke(e,!0);t.push(s.promise)}return Promise.all(t)},load(...r){if(r.length===0)return Promise.resolve([]);let t=[];this.nestedLoads.unshift(t);const e=Promise.resolve().then(()=>kf(this,void 0,void 0,function*(){const s=[];for(const n of r){let o=ke.packages.get(n);o||(o=new ke(n),o.provides(Re.provides[n])),o.checkNoLoad(),s.push(o.promise.then(()=>(Re.versionWarnings&&o.isLoaded&&!Ze.versions.has(ke.resolvePath(n))&&console.warn(`No version information available for component ${n}`),o.result)))}ke.loadAll();const i=yield Promise.all(s);for(;t.length;){const n=Promise.all(t);t=this.nestedLoads[this.nestedLoads.indexOf(t)]=[],yield n}return this.nestedLoads.splice(this.nestedLoads.indexOf(t),1),i}));
10return this.nestedLoads.slice(1).forEach(s=>s.push(e)),e},preLoaded(...r){for(const t of r){let e=ke.packages.get(t);e||(e=new ke(t,!0),e.provides(Re.provides[t])),e.loaded()}},addPackageData(r,t){let e=Re[r];e||(e=Re[r]={});for(const[s,i]of Object.entries(t))if(Array.isArray(i)){e[s]||(e[s]=[]);const n=new Set([...e[s],...i]);e[s]=[...n]}else e[s]=i},defaultReady(){zr.startup!==void 0&&zr.config.startup.ready()},getRoot(){if(Fe.document){const r=Fe.document.currentScript||Fe.document.getElementById("MathJax-script");if(r&&r instanceof HTMLScriptElement)return r.src.replace(/\/[^/]*$/,"")}return hu?.loader?.paths?.mathjax||hu?.__dirname||"/"},checkVersion(r,t,e){return this.saveVersion(r),!(!Re.versionWarnings||t===mh)&&(console.warn(`Component ${r} uses ${t} of MathJax; version in use is ${mh}`),!0)},saveVersion(r){Ze.versions.set(ke.resolvePath(r),mh)},pathFilters:new Ui};Ze.pathFilters.add(po.source,0),Ze.pathFilters.add(po.normalize,10),Ze.pathFilters.add(po.prefix,20),Ze.pathFilters.add(po.addExtension,30);const zr=cr;if(zr.loader===void 0){si(zr.config,"loader",{paths:{mathjax:Ze.getRoot(),fonts:Fe.window?"https://cdn.jsdelivr.net/npm/@mathjax":"@mathjax"},source:{},dependencies:{},provides:{},load:[],ready:Ze.defaultReady.bind(Ze),failed:r=>console.log(`MathJax(${r.package||"?"}): ${r.message}`),require:null,pathFilters:[],versionWarnings:!0}),Ks({loader:Ze});for(const r of zr.config.loader.pathFilters)Array.isArray(r)?Ze.pathFilters.add(r[0],r[1]):Ze.pathFilters.add(r)}const Re=zr.config.loader,Of={}.constructor;function Sa(r){return typeof r=="object"&&r!==null&&(r.constructor===Of||r.constructor===mo)}const In="[+]",wn="[-]",kn={invalidOption:"warn",optionError:(r,t)=>{if(kn.invalidOption==="fatal")throw new Error(r);console.warn("MathJax: "+r)}};class mo{}function hs(r){return Object.assign(Object.create(mo.prototype),r)}function Ra(r){return Array.isArray(r)?r:[r]}function Ma(r){return r?Object.keys(r).concat(Object.getOwnPropertySymbols(r)):[]}function fh(r){const t={};for(const e of Ma(r)){const s=Object.getOwnPropertyDescriptor(r,e),i=s.value;Array.isArray(i)?s.value=Xr([],i,!1):Sa(i)&&(s.value=fh(i)),s.enumerable&&(t[e]=s)}return Object.defineProperties(r.constructor===mo?hs({}):{},t)}function Xr(r,t,e=!0){for(let s of Ma(t)){if(e&&r[s]===void 0&&r.constructor!==mo){typeof s=="symbol"&&(s=s.toString()),kn.optionError(`Invalid option "${s}" (no default value).`,s);continue}const i=t[s];let n=r[s];if(!Sa(i)||n===null||typeof n!="object"&&typeof n!="function")Array.isArray(i)?(r[s]=[],Xr(r[s],i,!1)):Sa(i)?r[s]=fh(i):r[s]=i;else{const o=Ma(i);Array.isArray(n)&&(o.length===1&&(o[0]===In||o[0]===wn)&&Array.isArray(i[o[0]])||o.length===2&&o.sort().join(",")===In+","+wn&&Array.isArray(i[In])&&Array.isArray(i[wn]))?(i[wn]&&(n=r[s]=n.filter(a=>i[wn].indexOf(a)<0)),i[In]&&(r[s]=[...n,...i[In]])):Xr(n,i,e)}}return r}function ms(r,...t){return t.forEach(e=>Xr(r,e,!1)),r}function Ws(r,...t){return t.forEach(e=>Xr(r,e,!0)),r}function du(r,...t){const e={};for(const s of t)Object.hasOwn(r,s)&&(e[s]=r[s]);return e}function Df(r,t){return du(r,...Object.keys(t))}function fo(r,...t){const e=[];for(const s of t){const i={},n={};for(const o of Object.keys(r||{}))(s[o]===void 0?n:i)[o]=r[o];e.push(i),r=n}return e.unshift(r),e}function Jr(r,t,e=null){return Object.hasOwn(t,r)?t[r]:e}var uu=function(r,t,e,s){return new(e||(e=Promise))(function(i,n){function o(h){try{c(s.next(h))}catch(u){n(u)}}function a(h){try{c(s.throw(h))}catch(u){n(u)}}function c(h){var u;h.done?i(h.value):(u=h.value,u instanceof e?u:new e(function(x){x(u)})).then(o,a)}c((s=s.apply(r,t||[])).next())})};class z{static toMML(t){return z.visitor.visitTree(t,this.document)}static registerConstructor(t,e){z.constructors[t]=e}static useHandler(t,e=!1){ys.handler&&!e||(ys.handler=t)}static useAdaptor(t,e=!1){ys.adaptor&&!e||(ys.adaptor=t)}static useInput(t,e=!1){Pf&&!e||ys.input.push(t)}static useOutput(t,e=!1){ys.output&&!e||(ys.output=t)}static extendHandler(t,e=10){z.extensions.add(t,e)}static defaultReady(){z.getComponents(),z.makeMethods(),z.pagePromise.then(()=>ys.pageReady()).then(()=>z.promiseResolve()).catch(t=>
vendor: 5,250 bytes, line 10
10z.promiseReject(t))}static defaultPageReady(){return(ys.loadAllFontFiles&&z.output.font?z.output.font.loadDynamicFiles():Promise.resolve()).then(()=>{var t;return(t=z.document.menu)===null||t===void 0?void 0:t.loadingPromise}).then(ys.typeset&&me.typesetPromise?()=>z.typesetPromise(ys.elements):Promise.resolve()).then(()=>z.promiseResolve())}static typesetPromise(t){return this.hasTypeset=!0,z.document.whenReady(()=>uu(this,void 0,void 0,function*(){z.document.options.elements=t,z.document.reset(),yield z.document.renderPromise()}))}static getComponents(){z.visitor=new me._.core.MmlTree.SerializedMmlVisitor.SerializedMmlVisitor,z.mathjax=me._.mathjax.mathjax,z.input=z.getInputJax(),z.output=z.getOutputJax(),z.adaptor=z.getAdaptor(),z.handler&&z.mathjax.handlers.unregister(z.handler),z.handler=z.getHandler(),z.handler&&(z.mathjax.handlers.register(z.handler),z.document=z.getDocument())}static makeMethods(){z.input&&z.output&&z.makeTypesetMethods();const t=z.output?z.output.name.toLowerCase():"";for(const e of z.input){const s=e.name.toLowerCase();z.makeMmlMethods(s,e),z.makeResetMethod(s,e),z.output&&z.makeOutputMethods(s,t,e)}me.done=()=>z.document.done(),me.whenReady=e=>z.document.whenReady(e)}static makeTypesetMethods(){me.typeset=(t=null)=>{this.hasTypeset=!0,z.document.options.elements=t,z.document.reset(),z.document.render()},me.typesetPromise=(t=null)=>z.typesetPromise(t),me.typesetClear=(t=null)=>{t?z.document.clearMathItemsWithin(t):z.document.clear()}}static makeOutputMethods(t,e,s){const i=t+"2"+e;me[i]=(n,o={})=>(o=Object.assign(Object.assign({},o),{format:s.name}),z.document.convert(n,o)),me[i+"Promise"]=(n,o={})=>(o=Object.assign(Object.assign({},o),{format:s.name}),z.document.convertPromise(n,o)),me[e+"Stylesheet"]=()=>z.output.styleSheet(z.document),"getMetricsFor"in z.output&&(me.getMetricsFor=(n,o)=>z.output.getMetricsFor(n,o))}static makeMmlMethods(t,e){const s=me._.core.MathItem.STATE;me[t+"2mml"]=(i,n={})=>(n=Object.assign(Object.assign({},n),{end:s.CONVERT,format:e.name}),z.toMML(z.document.convert(i,n))),me[t+"2mmlPromise"]=(i,...n)=>uu(this,[i,...n],void 0,function*(o,a={}){a=Object.assign(Object.assign({},a),{end:s.CONVERT,format:e.name});const c=yield z.document.convertPromise(o,a);return z.toMML(c)})}static makeResetMethod(t,e){me[t+"Reset"]=(...s)=>e.reset(...s)}static getInputJax(){const t=[];for(const e of ys.input){const s=z.constructors[e];if(!s)throw Error('Input Jax "'+e+'" is not defined (has it been loaded?)');t[e]=new s(me.config[e]),t.push(t[e])}return t}static getOutputJax(){const t=ys.output;if(!t)return null;const e=z.constructors[t];if(!e)throw Error('Output Jax "'+t+'" is not defined (has it been loaded?)');return new e(me.config[t])}static getAdaptor(){const t=ys.adaptor;if(!t||t==="none")return null;const e=z.constructors[t];if(!e)throw Error('DOMAdaptor "'+t+'" is not defined (has it been loaded?)');return e(me.config[t])}static getHandler(){const t=ys.handler;if(!t||t==="none"||!z.adaptor)return null;const e=z.constructors[t];if(!e)throw Error('Handler "'+t+'" is not defined (has it been loaded?)');let s=new e(z.adaptor,5);for(const i of z.extensions)s=i.item(s);return s}static getDocument(t=null){return z.mathjax.document(t||ys.document,Object.assign(Object.assign({},me.config.options),{InputJax:z.input,OutputJax:z.output}))}}z.extensions=new ii,z.constructors={},z.input=[],z.output=null,z.handler=null,z.adaptor=null,z.elements=null,z.document=null,z.promise=new Promise((r,t)=>{z.promiseResolve=r,z.promiseReject=t}),z.pagePromise=new Promise((r,t)=>{const e=lr.document;if(e&&e.readyState&&e.readyState!=="complete"&&e.readyState!=="interactive"){const s=()=>r();e.defaultView.addEventListener("load",s,!0),e.defaultView.addEventListener("DOMContentLoaded",s,!0)}else r()}),z.hasTypeset=!1,z.defaultOptionError=kn.optionError;const me=cr;me._.startup===void 0&&(si(me.config,"startup",{input:[],output:"",handler:null,adaptor:null,document:Fe.document||"",elements:null,typeset:!0,ready:z.defaultReady.bind(z),pageReady:z.defaultPageReady.bind(z),polyfillHasOwn:!0}),Ks({startup:z,options:{}}),me.config.startup.invalidOption&&(kn.invalidOption=me.config.startup.invalidOption),me.config.startup.optionError&&(kn.optionError=me.config.startup.optionError));const ys=me.config.startup,Pf=ys.input.length!==0;MathJax.loader&&MathJax.loader.checkVersion("startup",ui,"startup"),Ks({_:{components:{loader:kt,package:Mt,startup:nt}}}),Ze.preLoaded("loader","startup"),si(MathJax.config.loader,"dependencies",{"a11y/semantic-enrich":["input/mml","a11y/sre"],"a11y/speech":["a11y/semantic-enrich"],"a11y/complexity":["a11y/semantic-enrich"],"a11y/explorer":["a11y/speech"],"[mml]/mml3":["input/mml"],"[tex]/action":["input/tex-base"],"[tex]/ams":["input/tex-base","[tex]/newcommand"],"[tex]/amscd":["input/tex-base"],"[tex]/autoload":["input/tex-base","[tex]/require"],"[tex]/bbm":["input/tex-base"],"[tex]/bboldx":["input/tex-base","[tex]/textmacros"],"[tex]/bbox":["input/tex-base"],"[tex]/begingroup":["input/tex-base","[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]/cases":["[tex]/empheq"],"[tex]/center
10not":["input/tex-base"],"[tex]/color":["input/tex-base"],"[tex]/colortbl":["input/tex-base","[tex]/color"],"[tex]/colorv2":["input/tex-base"],"[tex]/configmacros":["input/tex-base","[tex]/newcommand"],"[tex]/dsfont":["input/tex-base"],"[tex]/empheq":["input/tex-base","[tex]/ams"],"[tex]/enclose":["input/tex-base"],"[tex]/extpfeil":["input/tex-base","[tex]/newcommand","[tex]/ams"],"[tex]/gensymb":["input/tex-base"],"[tex]/html":["input/tex-base"],"[tex]/mathtools":["input/tex-base","[tex]/newcommand","[tex]/ams","[tex]/boldsymbol"],"[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]/texhtml":["input/tex-base"],"[tex]/textcomp":["input/tex-base","[tex]/textmacros"],"[tex]/textmacros":["input/tex-base"],"[tex]/unicode":["input/tex-base"],"[tex]/units":["input/tex-base"],"[tex]/upgreek":["input/tex-base"],"[tex]/verb":["input/tex-base"],"ui/menu":["a11y/sre"]}),si(MathJax.config.loader,"paths",{tex:"[mathjax]/input/tex/extensions",mml:"[mathjax]/input/mml/extensions",sre:"[mathjax]/sre",mathmaps:"[sre]/mathmaps"}),si(MathJax.config.loader,"provides",{startup:["loader"],"input/tex":["input/tex-base","[tex]/ams","[tex]/newcommand","[tex]/textmacros","[tex]/noundefined","[tex]/require","[tex]/autoload","[tex]/configmacros"]}),si(MathJax.config.loader,"source",{"[tex]/amsCd":"[tex]/amscd","[tex]/colorV2":"[tex]/colorv2","[tex]/configMacros":"[tex]/configmacros","[tex]/tagFormat":"[tex]/tagformat"});class pu{constructor(t=null){this.canMeasureNodes=!0,this.document=t}node(t,e={},s=[],i){const n=this.create(t,i);this.setAttributes(n,e);for(const o of s)this.append(n,o);return n}setProperty(t,e,s){t[e]=s}getProperty(t,e){return t[e]}setAttributes(t,e){if(e.style&&typeof e.style!="string")for(const s of Object.keys(e.style))this.setStyle(t,s.replace(/-([a-z])/g,(i,n)=>n.toUpperCase()),e.style[s]);if(e.properties)for(const s of Object.keys(e.properties))t[s]=e.properties[s];for(const s of Object.keys(e))s==="style"&&typeof e.style!="string"||s==="properties"||this.setAttribute(t,s,e[s])}replace(t,e){return this.insert(t,e),this.remove(e),e}childNode(t,e){return this.childNodes(t)[e]}allClasses(t){const e=this.getAttribute(t,"class");return e?e.replace(/  +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /):[]}cssText(t){return this.kind(t)==="style"?this.textContent(t):""}}var Bf=function(r,t,e,s){return new(e||(e=Promise))(function(i,n){function o(h){try{c(s.next(h))}catch(u){n(u)}}function a(h){try{c(s.throw(h))}catch(u){n(u)}}function c(h){var u;h.done?i(h.value):(u=h.value,u instanceof e?u:new e(function(x){x(u)})).then(o,a)}c((s=s.apply(r,[])).next())})};class gh extends pu{constructor(t){super(t.document),this.canMeasureNodes=!0,this.window=t,this.parser=new t.DOMParser}parse(t,e="text/html"){return this.parser.parseFromString(t,e)}create(t,e){return e?this.document.createElementNS(e,t):this.document.createElement(t)}text(t){return this.document.createTextNode(t)}head(t=this.document){return t.head||t}body(t=this.document){return t.body||t}root(t=this.document){return t.documentElement||t}doctype(t=this.document){return t.doctype?`<!DOCTYPE ${t.doctype.name}>`:""}tags(t,e,s=null){const i=s?t.getElementsByTagNameNS(s,e):t.getElementsByTagName(e);return Array.from(i)}getElements(t,e){let s=[];for(const i of t)typeof i=="string"?s=s.concat(Array.from(this.document.querySelectorAll(i))):Array.isArray(i)||i instanceof this.window.NodeList||i instanceof this.window.HTMLCollection?s=s.concat(Array.from(i)):s.push(i);return s}getElement(t,e=this.document){return e.querySelector(t)}contains(t,e){return t.contains(e)}parent(t){return t.parentNode}append(t,e){return t.appendChild(e)}insert(t,e){return this.parent(e).insertBefore(t,e)}remove(t){return this.parent(t).removeChild(t)}replace(t,e){return this.parent(e).replaceChild(t,e)}clone(t,e=!0){return t.cloneNode(e)}split(t,e){return t.splitText(e)}next(t){return t.nextSibling}previous(t){return t.previousSibling}firstChild(t){return t.firstChild}
vendor: 4,449 bytes, lines 10-14
10lastChild(t){return t.lastChild}childNodes(t){return Array.from(t.childNodes)}childNode(t,e){return t.childNodes[e]}kind(t){const e=t.nodeType;return e===1||e===3||e===8?t.nodeName.toLowerCase():""}value(t){return t.nodeValue||""}textContent(t){return t.textContent}innerHTML(t){return t.innerHTML}outerHTML(t){return t.outerHTML}serializeXML(t){return new this.window.XMLSerializer().serializeToString(t)}setAttribute(t,e,s,i=null){return i?(e=i.replace(/.*\//,"")+":"+e.replace(/^.*:/,""),t.setAttributeNS(i,e,s)):(e==="style"&&(s=s.replace(/\n/g," ")),t.setAttribute(e,s))}getAttribute(t,e){return t.getAttribute(e)}removeAttribute(t,e){return t.removeAttribute(e)}hasAttribute(t,e){return t.hasAttribute(e)}allAttributes(t){return Array.from(t.attributes).map(e=>({name:e.name,value:e.value}))}addClass(t,e){t.classList?t.classList.add(e):t.className=(t.className+" "+e).trim()}removeClass(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/ /).filter(s=>s!==e).join(" ")}hasClass(t,e){return t.classList?t.classList.contains(e):t.className.split(/ /).includes(e)}setStyle(t,e,s){t.style[e]=String(s).replace(/\n/g," ")}getStyle(t,e){return t.style[e]}allStyles(t){return t.style.cssText}insertRules(t,e){for(const s of e)try{t.sheet.insertRule(s,t.sheet.cssRules.length)}catch(i){console.warn(`MathJax: can't insert css rule '${s}': ${i.message}`)}}cssText(t){return this.kind(t)!=="style"?"":Array.from(t.sheet.cssRules).map(e=>e.cssText).join(`
11`)}fontSize(t){const e=this.window.getComputedStyle(t);return parseFloat(e.fontSize||String(this.constructor.DEFAULT_FONT_SIZE))}fontFamily(t){return this.window.getComputedStyle(t).fontFamily||""}nodeSize(t,e=1,s=!1){if(s&&t.getBBox){const{width:i,height:n}=t.getBBox();return[i/e,n/e]}return[t.offsetWidth/e,t.offsetHeight/e]}nodeBBox(t){const{left:e,right:s,top:i,bottom:n}=t.getBoundingClientRect();return{left:e,right:s,top:i,bottom:n}}createWorker(t,e){return Bf(this,void 0,void 0,function*(){const{path:s,maps:i,worker:n}=e,o=`${s}/${n}`,a=`
12      self.maps = '${mu(i)}';
13      importScripts('${mu(o)}');
14    `,c=URL.createObjectURL(new Blob([a],{type:"text/javascript"})),h=new Worker(c);return h.onmessage=t,URL.revokeObjectURL(c),h})}}function mu(r){return[...r].map(t=>(t==="\\"||t==="'"?t="\\"+t:(t<" "||t>"~")&&(t=`\\u{${t.codePointAt(0).toString(16)}}`),t)).join("")}function fu(){return new gh(window)}gh.DEFAULT_FONT_SIZE=16;class Ia{constructor(t){const e=this.constructor;this.options=Ws(ms({},e.OPTIONS),t)}}Ia.OPTIONS={};class Tr{constructor(t={}){this.adaptor=null,this.mmlFactory=null;const e=this.constructor;this.options=Ws(ms({},e.OPTIONS),t),this.preFilters=new Ui(this.options.preFilters),this.postFilters=new Ui(this.options.postFilters)}get name(){return this.constructor.NAME}setAdaptor(t){this.adaptor=t}setMmlFactory(t){this.mmlFactory=t}initialize(){}reset(...t){}get processStrings(){return!0}findMath(t,e){return[]}executeFilters(t,e,s,i){const n={math:e,document:s,data:i};return t.execute(n),n.data}}Tr.NAME="generic",Tr.OPTIONS={preFilters:[],postFilters:[]};class On{constructor(t={}){this.adaptor=null;const e=this.constructor;this.options=Ws(ms({},e.OPTIONS),t),this.preFilters=new Ui(this.options.preFilters),this.postFilters=new Ui(this.options.postFilters)}get name(){return this.constructor.NAME}setAdaptor(t){this.adaptor=t}initialize(){}reset(...t){}getMetrics(t){}styleSheet(t){return null}pageElements(t){return null}executeFilters(t,e,s,i){const n={math:e,document:s,data:i};return t.execute(n),n.data}}On.NAME="generic",On.OPTIONS={preFilters:[],postFilters:[]};const Ci=Symbol();class go{constructor(t=null){this.next=null,this.prev=null,this.data=t}}class wa{constructor(...t){this.list=new go(Ci),this.list.next=this.list.prev=this.list,this.push(...t)}isBefore(t,e){return t<e}push(...t){for(const e of t){const s=new go(e);s.next=this.list,s.prev=this.list.prev,this.list.prev=s,s.prev.next=s}return this}pop(){const t=this.list.prev;return t.data===Ci?null:(this.list.prev=t.prev,t.prev.next=this.list,t.next=t.prev=null,t.data)}unshift(...t){for(const e of t.slice(0).reverse()){const s=new go(e);s.next=this.list.next,s.prev=this.list,this.list.next=s,s.next.prev=s}return this}shift(){const t=this.list.next;return t.data===Ci?null:(this.list.next=t.next,t.next.prev=this.list,t.next=t.prev=null,t.data)}remove(...t){const e=new Map;for(const i of t)e.set(i,!0);let s=this.list.next;for(;s.data!==Ci;){const i=s.next;
vendor: 8,430 bytes, line 14
14e.has(s.data)&&(s.prev.next=s.next,s.next.prev=s.prev,s.next=s.prev=null),s=i}return this}clear(){return this.list.next.prev=this.list.prev.next=null,this.list.next=this.list.prev=this.list,this}*[Symbol.iterator](){let t=this.list.next;for(;t.data!==Ci;)yield t.data,t=t.next}*reversed(){let t=this.list.prev;for(;t.data!==Ci;)yield t.data,t=t.prev}insert(t,e=null){e===null&&(e=this.isBefore.bind(this));const s=new go(t);let i=this.list.next;for(;i.data!==Ci&&e(i.data,s.data);)i=i.next;return s.prev=i.prev,s.next=i,i.prev.next=i.prev=s,this}sort(t=null){t===null&&(t=this.isBefore.bind(this));const e=[];for(const s of this)e.push(new wa(s));for(this.list.next=this.list.prev=this.list;e.length>1;){const s=e.shift(),i=e.shift();s.merge(i,t),e.push(s)}return e.length&&(this.list=e[0].list),this}merge(t,e=null){e===null&&(e=this.isBefore.bind(this));let s=this.list.next,i=t.list.next;for(;s.data!==Ci&&i.data!==Ci;)e(i.data,s.data)?([i.prev.next,s.prev.next]=[s,i],[i.prev,s.prev]=[s.prev,i.prev],[this.list.prev.next,t.list.prev.next]=[t.list,this.list],[this.list.prev,t.list.prev]=[t.list.prev,this.list.prev],[s,i]=[i.next,s]):s=s.next;return i.data!==Ci&&(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}}class bh extends wa{isBefore(t,e){return t.start.i<e.start.i||t.start.i===e.start.i&&t.start.n<e.start.n}}function ka(r,t,e,s,i,n,o=null){return{open:r,math:t,close:e,n:s,start:{n:i},end:{n},display:o}}class Eh{get isEscaped(){return this.display===null}constructor(t,e,s=!0,i={i:0,n:0,delim:""},n={i:0,n:0,delim:""}){this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={},this._state=K.UNPROCESSED,this.math=t,this.inputJax=e,this.display=s,this.start=i,this.end=n,this.root=null,this.typesetRoot=null,this.metrics={},this.inputData={},this.outputData={}}render(t){t.renderActions.renderMath(this,t)}rerender(t,e=K.RERENDER){this.state()>=e&&this.state(e-1),t.renderActions.renderMath(this,t,e)}convert(t,e=K.LAST){t.renderActions.renderConvert(this,t,e)}compile(t){this.state()<K.COMPILED&&(this.root=this.inputJax.compile(this,t),this.state(K.COMPILED))}typeset(t){this.state()<K.TYPESET&&(this.typesetRoot=t.outputJax[this.isEscaped?"escaped":"typeset"](this,t),this.state(K.TYPESET))}updateDocument(t){}removeFromDocument(t=!1){this.clear()}setMetrics(t,e,s,i){this.metrics={em:t,ex:e,containerWidth:s,scale:i}}state(t=null,e=!1){return t!=null&&(t<K.INSERTED&&this._state>=K.INSERTED&&this.removeFromDocument(e),t<K.TYPESET&&this._state>=K.TYPESET&&(this.outputData={}),t<K.COMPILED&&this._state>=K.COMPILED&&(this.inputData={}),this._state=t),this._state}reset(t=!1){this.state(K.UNPROCESSED,t)}clear(){}}const K={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function Dn(r,t){if(r in K)throw Error("State "+r+" already exists");K[r]=t}class bo{constructor(t=null){this.defaultKind="unknown",this.nodeMap=new Map,this.node={},t===null&&(t=this.constructor.defaultNodes);for(const e of Object.keys(t))this.setNodeClass(e,t[e])}create(t,...e){return(this.node[t]||this.node[this.defaultKind])(...e)}setNodeClass(t,e){this.nodeMap.set(t,e);const s=this.nodeMap.get(t);this.node[t]=(...i)=>new s(this,...i)}getNodeClass(t){return this.nodeMap.get(t)}deleteNodeClass(t){this.nodeMap.delete(t),delete this.node[t]}nodeIsKind(t,e){return t instanceof this.getNodeClass(e)}getKinds(){return Array.from(this.nodeMap.keys())}}bo.defaultNodes={};class gu extends bo{create(t,e={},s=[]){return this.node[t](e,s)}}const fs="_inherit_";class bu{constructor(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)}set(t,e){this.attributes[t]=e}setList(t){Object.assign(this.attributes,t)}unset(t){delete this.attributes[t]}get(t){let e=this.attributes[t];return e===fs&&(e=this.global[t]),e}getExplicit(t){return this.hasExplicit(t)?this.attributes[t]:void 0}hasExplicit(t){return Object.hasOwn(this.attributes,t)}hasOneOf(t){for(const e of t)if(this.hasExplicit(e))return!0;return!1}getList(...t){const e={};for(const s of t)e[s]=this.get(s);return e}setInherited(t,e){this.inherited[t]=e}getInherited(t){return this.inherited[t]}getDefault(t){return this.defaults[t]}isSet(t){return Object.hasOwn(this.attributes,t)||Object.hasOwn(this.inherited,t)}hasDefault(t){return t in this.defaults}getExplicitNames(){return Object.keys(this.attributes)}getInheritedNames(){return Object.keys(this.inherited)}getDefaultNames(){return Object.keys(this.defaults)}getGlobalNames(){return Object.keys(this.global)}getAllAttributes(){return this.attributes}getAllInherited(){return this.inherited}getAllDefaults(){return this.defaults}getAllGlobals(){return this.global}}class xh{constructor(t,e={},s=[]){this.factory=t,this.parent=null,this.properties={},this.childNodes=[];for(const i of Object.keys(e))this.setProperty(i,e[i]);s.length&&this.setChildren(s)}get kind(){return"unknown"}setProperty(t,e){this.properties[t]=e}getProperty(t){return this.properties[t]}getPropertyNames(){return Object.keys(this.properties)}getAllProperties(){return this.properties}removeProperty(...t){for(const e of t)delete this.properties[e]}isKind(t){return this.factory.nodeIsKind(this,t)}setChildren(t){this.childNodes=[];for(const e of t)this.appendChild(e)}appendChild(t){return this.childNodes.push(t),t.parent=this,t}replaceChild(t,e){const s=this.childIndex(e);return s!==null&&(this.childNodes[s]=t,t.parent=this,e.parent===this&&(e.parent=null)),t}removeChild(t){const e=this.childIndex(t);return e!==null&&(this.childNodes.splice(e,1),t.parent=null),t}childIndex(t){const e=this.childNodes.indexOf(t);return e===-1?null:e}copy(){const t=this.factory.create(this.kind);t.properties=Object.assign({},this.properties);for(const e of this.childNodes||[])e&&t.appendChild(e.copy());return t}findNodes(t){const e=[];return this.walkTree(s=>{s.isKind(t)&&e.push(s)}),e}walkTree(t,e){t(this,e);for(const s of this.childNodes)s&&s.walkTree(t,e);return e}toString(){return this.kind+"("+this.childNodes.join(",")+")"}}class Eu extends xh{setChildren(t){}appendChild(t){return t}replaceChild(t,e){return e}childIndex(t){return null}walkTree(t,e){return t(this,e),e}toString(){return this.kind}}const S={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,NONE:-1},yh=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER"],Ff=["","thinmathspace","mediummathspace","thickmathspace"],jf=[[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]],xu=new Set(["normal","bold","italic","bold-italic","double-struck","fraktur","bold-fraktur","script","bold-script","sans-serif","bold-sans-serif","sans-serif-italic","sans-serif-bold-italic","monospace","inital","tailed","looped","stretched"]),yu=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];class Ot extends xh{constructor(t,e={},s=[]){super(t),this.prevClass=null,this.prevLevel=null,this.texclass=null,this.arity<0&&(this.childNodes=[t.create("inferredMrow")],this.childNodes[0].parent=this),this.setChildren(s),this.attributes=new bu(t.getNodeClass(this.kind).defaults,t.getNodeClass("math").defaults),this.attributes.setList(e)}copy(t=!1){const e=this.factory.create(this.kind);if(e.properties=Object.assign({},this.properties),this.attributes){const s=this.attributes.getAllAttributes();for(const i of Object.keys(s))(i!=="id"||t)&&e.attributes.set(i,s[i])}if(this.childNodes&&this.childNodes.length){let s=this.childNodes;s.length===1&&s[0].isInferred&&(s=s[0].childNodes);for(const i of s)i?e.appendChild(i.copy()):e.childNodes.push(null)}return e}get texClass(){return this.texclass}set texClass(t){this.texclass=t}get isToken(){return!1}get isEmbellished(){return!1}get isSpacelike(){return!1}get linebreakContainer(){return!1}get linebreakAlign(){return"data-align"}get isEmpty(){for(const t of this.childNodes)if(t&&!t.isEmpty)return!1;return!0}get arity(){return 1/0}get isInferred(){return!1}get Parent(){let t=this.parent;for(;t&&t.notParent;)t=t.Parent;return t}get notParent(){return!1}setChildren(t){return this.arity<0?this.childNodes[0].setChildren(t):super.setChildren(t)}appendChild(t){if(this.arity<0)return this.childNodes[0].appendChild(t),t;
14if(t.isInferred){if(this.arity===1/0)return t.childNodes.forEach(s=>super.appendChild(s)),t;const e=t;(t=this.factory.create("mrow")).setChildren(e.childNodes),t.attributes=e.attributes;for(const s of e.getPropertyNames())t.setProperty(s,e.getProperty(s))}return super.appendChild(t)}replaceChild(t,e){return this.arity<0?(this.childNodes[0].replaceChild(t,e),t):super.replaceChild(t,e)}core(){return this}coreMO(){return this}coreIndex(){return 0}childPosition(){let t=null,e=this.parent;for(;e&&e.notParent;)t=e,e=e.parent;if(t=t||this,e){let s=0;for(const i of e.childNodes){if(i===t)return s;s++}}return null}setTeXclass(t){return this.getPrevClass(t),this.texClass!=null?this:t}updateTeXclass(t){t&&(this.prevClass=t.prevClass,this.prevLevel=t.prevLevel,t.prevClass=t.prevLevel=null,this.texClass=t.texClass)}getPrevClass(t){t&&(this.prevClass=t.texClass,this.prevLevel=t.attributes.get("scriptlevel"))}texSpacing(){const t=this.prevClass!=null?this.prevClass:S.NONE,e=this.texClass||S.ORD;if(t===S.NONE||e===S.NONE)return"";const s=jf[t][e];return(this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&s>=0?"":Ff[Math.abs(s)]}hasSpacingAttributes(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()}setInheritedAttributes(t={},e=!1,s=0,i=!1){var n,o,a;const c=this.attributes.getAllDefaults();for(const u of Object.keys(t)){if(Object.hasOwn(c,u)||Object.hasOwn(Ot.alwaysInherit,u)){const[x,A]=t[u];!((o=(n=Ot.noInherit[x])===null||n===void 0?void 0:n[this.kind])===null||o===void 0)&&o[u]||this.attributes.setInherited(u,A)}!((a=Ot.stopInherit[this.kind])===null||a===void 0)&&a[u]&&delete(t=Object.assign({},t))[u]}this.attributes.getExplicit("displaystyle")===void 0&&this.attributes.setInherited("displaystyle",e),this.attributes.getExplicit("scriptlevel")===void 0&&this.attributes.setInherited("scriptlevel",s),i&&this.setProperty("texprimestyle",i);const h=this.arity;if(h>=0&&h!==1/0&&(h===1&&this.childNodes.length===0||h!==1&&this.childNodes.length!==h))if(h<this.childNodes.length)this.childNodes=this.childNodes.slice(0,h);else for(;this.childNodes.length<h;)this.appendChild(this.factory.create("mrow"));if(this.linebreakContainer&&!this.isEmbellished){const u=this.linebreakAlign;if(u){const x=this.attributes.get(u)||"left";t=this.addInheritedAttributes(t,{indentalign:x,indentshift:"0",indentalignfirst:x,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"})}}this.setChildInheritedAttributes(t,e,s,i)}setChildInheritedAttributes(t,e,s,i){for(const n of this.childNodes)n.setInheritedAttributes(t,e,s,i)}addInheritedAttributes(t,e){const s=Object.assign({},t);for(const i of Object.keys(e))i!=="displaystyle"&&i!=="scriptlevel"&&i!=="style"&&(s[i]=[this.kind,e[i]]);return s}inheritAttributesFrom(t){const e=t.attributes,s=e.get("displaystyle"),i=e.get("scriptlevel"),n=e.isSet("mathsize")?{mathsize:["math",e.get("mathsize")]}:{},o=t.getProperty("texprimestyle")||!1;this.setInheritedAttributes(n,s,i,o)}verifyTree(t=null){if(t===null)return;this.verifyAttributes(t);const e=this.arity;t.checkArity&&e>=0&&e!==1/0&&(e===1&&this.childNodes.length===0||e!==1&&this.childNodes.length!==e)&&this.mError('Wrong number of children for "'+this.kind+'" node',t,!0),this.verifyChildren(t)}verifyAttributes(t){if(t.checkAttributes){const e=this.attributes,s=[];for(const i of e.getExplicitNames())i.substring(0,5)==="data-"||e.getDefault(i)!==void 0||i.match(/^(?:class|style|id|(?:xlink:)?href)$/)||s.push(i);s.length&&this.mError("Unknown attributes for "+this.kind+" node: "+s.join(", "),t)}if(t.checkMathvariants){const e=this.attributes.getExplicit("mathvariant");!e||xu.has(e)||this.getProperty("ignore-variant")||this.mError(`Invalid mathvariant: ${e}`,t,!0)}}verifyChildren(t){for(const e of this.childNodes)e.verifyTree(t)}mError(t,e,s=!1){if(this.parent&&this.parent.isKind("merror"))return null;const i=this.factory.create("merror");
vendor: 1,664 bytes, line 14
14if(i.attributes.set("data-mjx-message",t),e.fullErrors||s){const n=this.factory.create("mtext"),o=this.factory.create("text");o.setText(e.fullErrors?t:this.kind),n.appendChild(o),i.appendChild(n),this.parent.replaceChild(i,this),e.fullErrors||i.attributes.set("title",t)}else this.parent.replaceChild(i,this),i.appendChild(this);return i}}Ot.defaults={mathbackground:fs,mathcolor:fs,mathsize:fs,dir:fs},Ot.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}},mtr:{msqrt:{"data-vertical-align":!0},mroot:{"data-vertical-align":!0}},mlabeledtr:{msqrt:{"data-vertical-align":!0},mroot:{"data-vertical-align":!0}}},Ot.stopInherit={mtd:{columnalign:!0,rowalign:!0,groupalign:!0}},Ot.alwaysInherit={scriptminsize:!0,scriptsizemultiplier:!0,infixlinebreakstyle:!0},Ot.verifyDefaults={checkArity:!0,checkAttributes:!1,checkMathvariants:!0,fullErrors:!1,fixMmultiscripts:!0,fixMtables:!0};class Os extends Ot{get isToken(){return!0}get isEmpty(){for(const t of this.childNodes)if(!(t instanceof Kr)||t.getText().length)return!1;return!0}getText(){let t="";for(const e of this.childNodes)e instanceof Kr?t+=e.getText():"textContent"in e&&(t+=e.textContent());return t}setChildInheritedAttributes(t,e,s,i){for(const n of this.childNodes)n instanceof Ot&&n.setInheritedAttributes(t,e,s,i)}walkTree(t,e){t(this,e);for(const s of this.childNodes)s instanceof Ot&&s.walkTree(t,e);return e}}Os.defaults=Object.assign(Object.assign({},Ot.defaults),{mathvariant:"normal",mathsize:fs});class pi extends Ot{get isSpacelike(){return this.childNodes[0].isS
vendor: 5,156 bytes, line 14
14pacelike}get isEmbellished(){return this.childNodes[0].isEmbellished}get arity(){return-1}core(){return this.childNodes[0]}coreMO(){return this.childNodes[0].coreMO()}setTeXclass(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t}}pi.defaults=Ot.defaults;class Ds extends Ot{get isEmbellished(){return this.childNodes[0].isEmbellished}core(){return this.childNodes[0]}coreMO(){return this.childNodes[0].coreMO()}setTeXclass(t){this.getPrevClass(t),this.texClass=S.ORD;const e=this.childNodes[0];let s=null;e&&(this.isEmbellished||e.isKind("mi")?(s=e.setTeXclass(t),this.updateTeXclass(this.core())):(e.setTeXclass(null),e.isKind("TeXAtom")&&(this.texClass=e.texClass)));for(const i of this.childNodes.slice(1))i&&i.setTeXclass(null);return s||this}}Ds.defaults=Ot.defaults;class Oa extends Eu{get isToken(){return!1}get isEmpty(){return!0}get isEmbellished(){return!1}get isSpacelike(){return!1}get linebreakContainer(){return!1}get linebreakAlign(){return""}get arity(){return 0}get isInferred(){return!1}get notParent(){return!1}get Parent(){return this.parent}get texClass(){return S.NONE}get prevClass(){return S.NONE}get prevLevel(){return 0}hasSpacingAttributes(){return!1}get attributes(){return null}core(){return this}coreMO(){return this}coreIndex(){return 0}childPosition(){return 0}setTeXclass(t){return t}texSpacing(){return""}setInheritedAttributes(t,e,s,i){}inheritAttributesFrom(t){}verifyTree(t){}mError(t,e,s=!1){return null}}class Kr extends Oa{constructor(){super(...arguments),this.text=""}get kind(){return"text"}getText(){return this.text}setText(t){return this.text=t,this}copy(){return this.factory.create(this.kind).setText(this.getText())}toString(){return this.text}}class Eo extends Oa{constructor(){super(...arguments),this.xml=null,this.adaptor=null}get kind(){return"XML"}getXML(){return this.xml}setXML(t,e=null){return this.xml=t,this.adaptor=e,this}getSerializedXML(){return this.adaptor.serializeXML(this.xml)}copy(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))}toString(){return"XML data"}}class xo extends pi{get kind(){return"math"}get linebreakContainer(){return!0}get linebreakAlign(){return""}setChildInheritedAttributes(t,e,s,i){this.attributes.get("mode")==="display"&&this.attributes.setInherited("display","block"),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),e=!!this.attributes.get("displaystyle")||!this.attributes.get("displaystyle")&&this.attributes.get("display")==="block",this.attributes.setInherited("displaystyle",e),s=this.attributes.get("scriptlevel")||this.constructor.defaults.scriptlevel,super.setChildInheritedAttributes(t,e,s,i)}verifyTree(t=null){super.verifyTree(t),this.parent&&this.mError("Improper nesting of math tags",t,!0)}}xo.defaults=Object.assign(Object.assign({},pi.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:".4em",infixlinebreakstyle:"before",lineleading:"100%",linebreakmultchar:"⁢",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"});class Li extends Os{constructor(){super(...arguments),this.texclass=S.ORD}get kind(){return"mi"}setInheritedAttributes(t={},e=!1,s=0,i=!1){super.setInheritedAttributes(t,e,s,i),this.getText().match(Li.singleCharacter)&&!t.mathvariant&&this.attributes.setInherited("mathvariant","italic")}setTeXclass(t){this.getPrevClass(t);const e=this.getText();return e.length>1&&e.match(Li.operatorName)&&this.attributes.get("mathvariant")==="normal"&&this.getProperty("autoOP")===void 0&&this.getProperty("texClass")===void 0&&(this.texClass=S.OP,this.setProperty("autoOP",!0)),this}}Li.defaults=Object.assign({},Os.defaults),Li.operatorName=/^[a-z][a-z0-9]*$/i,Li.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/;class yo extends Os{constructor(){super(...arguments),this.texclass=S.ORD}get kind(){return"mn"}}function fe(r,t,e=S.BIN,s=null){return[r,t,e,s]}yo.defaults=Object.assign({},Os.defaults);const l={REL:fe(5,5,S.REL),WIDEREL:fe(5,5,S.REL,{accent:!0,stretchy:!0}),BIN4:fe(4,4,S.BIN),RELSTRETCH:fe(5,5,S.REL,{stretchy:!0}),ORD:fe(0,0,S.ORD),BIN3:fe(3,3,S.BIN),OPEN:fe(0,0,S.OPEN,{fence:!0,stretchy:!0,symmetric:!0}),CLOSE:fe(0,0,S.CLOSE,{fence:!0,stretchy:!0,symmetric:!0}),INTEGRAL:fe(3,3,S.OP,{largeop:!0,symmetric:!0}),ACCENT:fe(0,0,S.ORD,{accent:!0}),WIDEACCENT:fe(0,0,S.ORD,{accent:!0,stretchy:!0}),OP:fe(3,3,S.OP,{largeop:!0,movablelimits:!0,symmetric:!0}),RELACCENT:fe(5,5,S.REL,{accent:!0}),BIN0:fe(0,0,S.BIN),BIN5:fe(5,5,S.BIN),FENCE:fe(0,0,S.ORD,{fence:!0,stretchy:!0,symmetric:!0}),INNER:fe(1,1,S.INNER),ORD30:fe(3,0,S.ORD),NONE:fe(0,0,S.NONE),ORDSTRETCH0:fe(0,0,S.ORD,{stretchy:!0}),BINSTRETCH0:fe(0,0,S.BIN,{stretchy:!0}),RELSTRETCH0:fe(0,0,S.REL,{stretchy:!0}),CLOSE0:fe(0,0,S.CLOSE,{fence:!0}
vendor: 12,397 bytes, line 14
14),ORD3:fe(3,3,S.ORD),PUNCT03:fe(0,3,S.PUNCT,{linebreakstyle:"after"}),OPEN0:fe(0,0,S.OPEN,{fence:!0}),STRETCH4:fe(4,4,S.BIN,{stretchy:!0})},Nu=[[32,127,S.REL,"mo"],[160,191,S.ORD,"mo"],[192,591,S.ORD,"mi"],[688,879,S.ORD,"mo"],[880,6688,S.ORD,"mi"],[6832,6911,S.ORD,"mo"],[6912,7615,S.ORD,"mi"],[7616,7679,S.ORD,"mo"],[7680,8191,S.ORD,"mi"],[8192,8303,S.ORD,"mo"],[8304,8351,S.ORD,"mo"],[8448,8527,S.ORD,"mi"],[8528,8591,S.ORD,"mn"],[8592,8703,S.REL,"mo"],[8704,8959,S.BIN,"mo"],[8960,9215,S.ORD,"mo"],[9312,9471,S.ORD,"mn"],[9472,10223,S.ORD,"mo"],[10224,10239,S.REL,"mo"],[10240,10495,S.ORD,"mtext"],[10496,10623,S.REL,"mo"],[10624,10751,S.ORD,"mo"],[10752,11007,S.BIN,"mo"],[11008,11055,S.ORD,"mo"],[11056,11087,S.REL,"mo"],[11088,11263,S.ORD,"mo"],[11264,11744,S.ORD,"mi"],[11776,11903,S.ORD,"mo"],[11904,12255,S.ORD,"mi","normal"],[12272,12351,S.ORD,"mo"],[12352,42143,S.ORD,"mi","normal"],[42192,43055,S.ORD,"mi"],[43056,43071,S.ORD,"mn"],[43072,55295,S.ORD,"mi"],[63744,64255,S.ORD,"mi","normal"],[64256,65023,S.ORD,"mi"],[65024,65135,S.ORD,"mo"],[65136,65791,S.ORD,"mi"],[65792,65935,S.ORD,"mn"],[65936,74751,S.ORD,"mi","normal"],[74752,74879,S.ORD,"mn"],[74880,113823,S.ORD,"mi","normal"],[113824,119391,S.ORD,"mo"],[119648,119679,S.ORD,"mn"],[119808,120781,S.ORD,"mi"],[120782,120831,S.ORD,"mn"],[122624,129023,S.ORD,"mo"],[129024,129279,S.REL,"mo"],[129280,129535,S.ORD,"mo"],[131072,195103,S.ORD,"mi","normal"]];function Nh(r){const t=Hi.infix[r]||Hi.prefix[r]||Hi.postfix[r];if(t)return[0,0,t[2],"mo"];const e=r.codePointAt(0);for(const s of Nu)if(e<=s[1]){if(e>=s[0])return s;break}return[0,0,S.REL,"mo"]}const vu=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3],[1,1]],Hi={prefix:{"!":l.ORD,"(":l.OPEN,"+":l.BIN0,"-":l.BIN0,"[":l.OPEN,"{":l.OPEN,"|":l.OPEN,"||":l.BIN0,"¬":l.ORD,"±":l.BIN0,"‖":l.FENCE,"‘":l.OPEN0,"“":l.OPEN0,"ⅅ":l.ORD30,"ⅆ":l.ORD30,"∀":l.ORD,"∁":l.ORD,"∂":l.ORD30,"∃":l.ORD,"∄":l.ORD,"∇":l.ORD,"∏":l.OP,"∐":l.OP,"∑":l.OP,"−":l.BIN0,"∓":l.BIN0,"√":[3,0,S.ORD,{stretchy:!0}],"∛":l.ORD30,"∜":l.ORD30,"∟":l.ORD,"∠":l.ORD,"∡":l.ORD,"∢":l.ORD,"∫":l.INTEGRAL,"∬":l.INTEGRAL,"∭":l.INTEGRAL,"∮":l.INTEGRAL,"∯":l.INTEGRAL,"∰":l.INTEGRAL,"∱":l.INTEGRAL,"∲":l.INTEGRAL,"∳":l.INTEGRAL,"∴":l.REL,"∵":l.REL,"∼":[0,0,S.REL,{}],"⊾":l.ORD,"⊿":l.ORD,"⋀":l.OP,"⋁":l.OP,"⋂":l.OP,"⋃":l.OP,"⌈":l.OPEN,"⌊":l.OPEN,"⌐":l.ORD,"⌙":l.ORD,"❲":l.OPEN,"➕":l.ORD,"➖":l.ORD,"⟀":l.ORD,"⟦":l.OPEN,"⟨":l.OPEN,"⟪":l.OPEN,"⟬":l.OPEN,"⟮":l.OPEN,"⦀":l.FENCE,"⦃":l.OPEN,"⦅":l.OPEN,"⦇":l.OPEN,"⦉":l.OPEN,"⦋":l.OPEN,"⦍":l.OPEN,"⦏":l.OPEN,"⦑":l.OPEN,"⦓":l.OPEN,"⦕":l.OPEN,"⦗":l.OPEN,"⦙":l.FENCE,"⦛":l.ORD,"⦜":l.ORD,"⦝":l.ORD,"⦞":l.ORD,"⦟":l.ORD,"⦠":l.ORD,"⦡":l.ORD,"⦢":l.ORD,"⦣":l.ORD,"⦤":l.ORD,"⦥":l.ORD,"⦦":l.ORD,"⦧":l.ORD,"⦨":l.ORD,"⦩":l.ORD,"⦪":l.ORD,"⦫":l.ORD,"⦬":l.ORD,"⦭":l.ORD,"⦮":l.ORD,"⦯":l.ORD,"⧘":l.OPEN,"⧚":l.OPEN,"â§¼":l.OPEN,"⨀":l.OP,"⨁":l.OP,"⨂":l.OP,"⨃":l.OP,"⨄":l.OP,"⨅":l.OP,"⨆":l.OP,"⨇":l.OP,"⨈":l.OP,"⨉":l.OP,"⨊":l.OP,"⨋":l.INTEGRAL,"⨌":l.INTEGRAL,"⨍":l.INTEGRAL,"⨎":l.INTEGRAL,"⨏":l.INTEGRAL,"⨐":l.INTEGRAL,"⨑":l.INTEGRAL,"⨒":l.INTEGRAL,"⨓":l.INTEGRAL,"⨔":l.INTEGRAL,"⨕":l.INTEGRAL,"⨖":l.INTEGRAL,"⨗":l.INTEGRAL,"⨘":l.INTEGRAL,"⨙":l.INTEGRAL,"⨚":l.INTEGRAL,"⨛":l.INTEGRAL,"⨜":l.INTEGRAL,"⨝":l.OP,"⨞":l.OP,"⫬":l.ORD,"â«­":l.ORD,"⫼":l.OP,"â«¿":l.OP,"〈":l.OPEN},postfix:{"!!":l.BIN0,"!":l.CLOSE0,'"':l.ORD,"%":l.ORD,"&":l.ORD,"'":l.ACCENT,")":l.CLOSE,"++":l.BIN0,"--":l.BIN0,"]":l.CLOSE,"^":l.WIDEACCENT,_:l.WIDEACCENT,"`":l.ACCENT,"|":l.CLOSE,"||":l.BIN0,"}":l.CLOSE,"~":l.WIDEACCENT,"¨":l.ACCENT,"¯":l.WIDEACCENT,"°":l.ACCENT,"²":l.ORD,"³":l.ORD,"´":l.ACCENT,"¸":l.ACCENT,"¹":l.ORD,"ˆ":l.WIDEACCENT,"ˇ":l.WIDEACCENT,"ˉ":l.WIDEACCENT,"ˊ":l.ACCENT,"ˋ":l.ACCENT,"ˍ":l.WIDEACCENT,"˘":l.ACCENT,"˙":l.ACCENT,"˚":l.ACCENT,"˜":l.WIDEACCENT,"˝":l.ACCENT,"Ë·":l.WIDEACCENT,"̂":l.WIDEACCENT,"̑":l.ACCENT,"‖":l.FENCE,"’":l.CLOSE0,"‚":l.ORD,"‛":l.ORD,"”":l.CLOSE0,"„":l.ORD,"‟":l.ORD,"′":l.ORD,"″":l.ORD,"‴":l.ORD,"‵":l.ORD,"‶":l.ORD,"‷":l.ORD,"‾":l.WIDEACCENT,"⁗":l.ORD,"⃛":l.ACCENT,"⃜":l.ACCENT,"⌉":l.CLOSE,"⌋":l.CLOSE,"⌢":l.RELSTRETCH0,"⌣":l.RELSTRETCH0,"⎴":l.WIDEACCENT,"⎵":l.WIDEACCENT,"⏍":l.ORD,"⏜":l.WIDEACCENT,"⏝":l.WIDEACCENT,"⏞":l.WIDEACCENT,"⏟":l.WIDEACCENT,"⏠":l.WIDEACCENT,"⏡":l.WIDEACCENT,"❳":l.CLOSE,"⟧":l.CLOSE,"⟩":l.CLOSE,"⟫":l.CLOSE,"⟭":l.CLOSE,"⟯":l.CLOSE,"⦀":l.FENCE,"⦄":l.CLOSE,"⦆":l.CLOSE,"⦈":l.CLOSE,"⦊":l.CLOSE,"⦌":l.CLOSE,"⦎":l.CLOSE,"⦐":l.CLOSE,"⦒":l.CLOSE,"⦔":l.CLOSE,"⦖":l.CLOSE,"⦘":l.CLOSE,"⦙":l.FENCE,"⧙":l.CLOSE,"⧛":l.CLOSE,"â§½":l.CLOSE,"〉":l.CLOSE,"𞻰":l.BINSTRETCH0,"𞻱":l.BINSTRETCH0},infix:{"!":l.ORD,"!=":l.BIN5,"#":l.ORD,$:l.ORD,"%":l.ORD3,"&&":l.BIN4,"**":l.BIN3,"*":l.BIN3,"*=":l.BIN5,"+":l.BIN4,"+=":l.BIN5,",":l.PUNCT03,"":l.ORD,"-":l.BIN4,"-=":l.BIN5,"->":l.BIN5,".":l.ORD3,"..":l.BIN3,"...":l.INNER,"/":[4,4,S.ORD,{}],"//":l.BIN5,"/=":l.BIN5,":":[0,3,S.REL,{}],":=":l.BIN5,";":l.PUNCT03,"<":l.REL,"<=":l.REL,"<>":[3,3,S.REL,{}],"=":l.REL,"==":l.REL,">":l.REL,">=":l.REL,"?":[3,3,S.CLOSE,{fence:!0}],"@":l.ORD3,"\\":l.ORD,"^":[3,3,S.ORD,{accent:!0,stretchy:!0}],_:l.WIDEACCENT,"|":[5,5,S.ORD,{}],"||":l.BIN5,"±":l.BIN4,"·":l.BIN3,"×":l.BIN3,"÷":l.BIN4,"ʹ":l.ORD,"̀":l.ACCENT,"́":l.ACCENT,"̃":l.WIDEACCENT,"̄":l.ACCENT,"̆":l.ACCENT,"̇":l.ACCENT,"̈":l.ACCENT,"̌":l.ACCENT,"̲":l.WIDEACCENT,"̸":l.REL,"϶":l.REL,"―":l.ORDSTRETCH0,"‗":l.ORDSTRETCH0,"†":l.BIN3,"‡":l.BIN3,"•":l.BIN3,"…":l.INNER,"⁃":l.BIN3,"⁄":l.STRETCH4,"⁡":l.NONE,"⁢":l.NONE,"⁣":[0,0,S.NONE,{linebreakstyle:"after"}],"⁤":l.NONE,"⃗":l.ACCENT,ℑ:l.ORD,ℓ:l.ORD,"℘":l.ORD,ℜ:l.ORD,"←":l.WIDEREL,"↑":l.RELSTRETCH,"→":l.WIDEREL,"↓":l.RELSTRETCH,"↔":l.WIDEREL,"↕":l.RELSTRETCH,"↖":l.REL,"↗":l.REL,"↘":l.REL,"↙":l.REL,"↚":l.WIDEREL,"↛":l.WIDEREL,"↜":l.WIDEREL,"↝":l.WIDEREL,"↞":l.WIDEREL,"↟":l.RELSTRETCH,"↠":l.WIDEREL,"↡":l.RELSTRETCH,"↢":l.WIDEREL,"↣":l.WIDEREL,"↤":l.WIDEREL,"↥":l.RELSTRETCH,"↦":l.WIDEREL,"↧":l.RELSTRETCH,"↨":l.RELSTRETCH,"↩":l.WIDEREL,"↪":l.WIDEREL,"↫":l.WIDEREL,"↬":l.WIDEREL,"↭":l.WIDEREL,"↮":l.WIDEREL,"↯":l.REL,"↰":l.RELSTRETCH,"↱":l.RELSTRETCH,"↲":l.RELSTRETCH,"↳":l.RELSTRETCH,"↴":l.RELSTRETCH,"↵":l.RELSTRETCH,"↶":l.REL,"↷":l.REL,"↸":l.REL,"↹":l.WIDEREL,"↺":l.REL,"↻":l.REL,"↼":l.WIDEREL,"↽":l.WIDEREL,"↾":l.RELSTRETCH,"↿":l.RELSTRETCH,"⇀":l.WIDEREL,"⇁":l.WIDEREL,"⇂":l.RELSTRETCH,"⇃":l.RELSTRETCH,"⇄":l.WIDEREL,"⇅":l.RELSTRETCH,"⇆":l.WIDEREL,"⇇":l.WIDEREL,"⇈":l.RELSTRETCH,"⇉":l.WIDEREL,"⇊":l.RELSTRETCH,"⇋":l.WIDEREL,"⇌":l.WIDEREL,"⇍":l.WIDEREL,"⇎":l.WIDEREL,"⇏":l.WIDEREL,"⇐":l.WIDEREL,"⇑":l.RELSTRETCH,"⇒":l.WIDEREL,"⇓":l.RELSTRETCH,"⇔":l.WIDEREL,"⇕":l.RELSTRETCH,"⇖":l.REL,"⇗":l.REL,"⇘":l.REL,"⇙":l.REL,"⇚":l.WIDEREL,"⇛":l.WIDEREL,"⇜":l.WIDEREL,"⇝":l.WIDEREL,"⇞":l.RELSTRETCH,"⇟":l.RELSTRETCH,"⇠":l.WIDEREL,"⇡":l.RELSTRETCH,"⇢":l.WIDEREL,"⇣":l.RELSTRETCH,"⇤":l.WIDEREL,"⇥":l.WIDEREL,"⇦":l.WIDEREL,"⇧":l.RELSTRETCH,"⇨":l.WIDEREL,"⇩":l.RELSTRETCH,"⇪":l.RELSTRETCH,"⇫":l.RELSTRETCH,"⇬":l.RELSTRETCH,"⇭":l.RELSTRETCH,"⇮":l.RELSTRETCH,"⇯":l.RELSTRETCH,"⇰":l.WIDEREL,"⇱":l.REL,"⇲":l.REL,"⇳":l.RELSTRETCH,"⇴":l.WIDEREL,"⇵":l.RELSTRETCH,"⇶":l.WIDEREL,"⇷":l.WIDEREL,"⇸":l.WIDEREL,"⇹":l.WIDEREL,"⇺":l.WIDEREL,"⇻":l.WIDEREL,"⇼":l.WIDEREL,"⇽":l.WIDEREL,"⇾":l.WIDEREL,"⇿":l.WIDEREL,"∅":l.ORD,"∆":l.ORD,"∈":l.REL,"∉":l.REL,"∊":l.REL,"∋":l.REL,"∌":l.REL,"∍":l.REL,"−":l.BIN4,"∓":l.BIN4,"∔":l.BIN4,"∕":l.STRETCH4,"∖":l.BIN4,"∗":l.BIN3,"∘":l.BIN3,"∙":l.BIN3,"∝":l.REL,"∞":l.ORD,"∣":l.REL,"∤":l.REL,"∥":l.REL,"∦":l.REL,"∧":l.BIN4,"∨":l.BIN4,"∩":l.BIN4,"∪":l.BIN4,"∶":l.BIN4,"∷":l.REL,"∸":l.BIN4,"∹":l.REL,"∺":l.REL,"∻":l.REL,"∼":l.REL,"∽":l.REL,"∾":l.REL,"≀":l.BIN3,"≁":l.REL,"≂":l.REL,"≂̸":l.REL,"≃":l.REL,"≄":l.REL,"≅":l.REL,"≆":l.REL,"≇":l.REL,"≈":l.REL,"≉":l.REL,"≊":l.REL,"≋":l.REL,"≌":l.REL,"≍":l.REL,"≎":l.REL,"≏":l.REL,"≐":l.REL,"≑":l.REL,"≒":l.REL,"≓":l.REL,"≔":l.REL,"≕":l.REL,"≖":l.REL,"≗":l.REL,"≘":l.REL,"≙":l.REL,"≚":l.REL,"≛":l.REL,"≜":l.REL,"≝":l.REL,"≞":l.REL,"≟":l.REL,"≠":l.REL,"≡":l.REL,"≢":l.REL,"≣":l.REL,"≤":l.REL,"≥":l.REL,"≦":l.REL,"≦̸":l.REL,"≧":l.REL,"≧̸":l.REL,"≨":l.REL,"≩":l.REL,"≪":l.REL,"≪̸":l.REL,"≫":l.REL,"≫̸":l.REL,"≬":l.REL,"≭":l.REL,"≮":l.REL,"≯":l.REL,"≰":l.REL,"≱":l.REL,"≲":l.REL,"≳":l.REL,"≴":l.REL,"≵":l.REL,"≶":l.REL,"≷":l.REL,"≸":l.REL,"≹":l.REL,"≺":l.REL,"≻":l.REL,"≼":l.REL,"≽":l.REL,"≾":l.REL,"≾̸":l.REL,"≿":l.REL,"≿̸":l.REL,"⊀":l.REL,"⊁":l.REL,"⊂":l.REL,"⊃":l.REL,"⊄":l.REL,"⊅":l.REL,"⊆":l.REL,"⊇":l.REL,"⊈":l.REL,"⊉":l.REL,"⊊":l.REL,"⊋":l.REL,"⊌":l.BIN4,"⊍":l.BIN4,"⊎":l.BIN4,"⊏":l.REL,"⊏̸":l.REL,"⊐":l.REL,"⊐̸":l.REL,"⊑":l.REL,"⊒":l.REL,"⊓":l.BIN4,"⊔":l.BIN4,"⊕":l.BIN4,"⊖":l.BIN4,"⊗":l.BIN3,"⊘":l.BIN4,"⊙":l.BIN3,"⊚":l.BIN3,"⊛":l.BIN3,"⊜":l.REL,"⊝":l.BIN4,"⊞":l.BIN4,"⊟":l.BIN4,"⊠":l.BIN3,"⊡":l.BIN3,"⊢":l.REL,"⊣":l.REL,"⊤":l.ORD,"⊥":l.ORD,"⊦":l.REL,"⊧":l.REL,"⊨":l.REL,"⊩":l.REL,"⊪":l.REL,"⊫":l.REL,"⊬":l.REL,"⊭":l.REL,"⊮":l.REL,"⊯":l.REL,"⊰":l.REL,"⊱":l.REL,"⊲":l.REL,"⊳":l.REL,"⊴":l.REL,"⊵":l.REL,"⊶":l.REL,"⊷":l.REL,"⊸":l.REL,"⊺":l.BIN3,"⊻":l.BIN4,"⊼":l.BIN4,"⊽":l.BIN4,"⋄":l.BIN3,"⋅":l.BIN3,"⋆":l.BIN3,"⋇":l.BIN3,"⋈":l.REL,"⋉":l.BIN3,"⋊":l.BIN3,"⋋":l.BIN3,"⋌":l.BIN3,"⋍":l.REL,"⋎":l.BIN4,"⋏":l.BIN4,"⋐":l.REL,"⋑":l.REL,"⋒":l.BIN4,"⋓":l.BIN4,"⋔":l.REL,"⋕":l.REL,"⋖":l.REL,"⋗":l.REL,"⋘":l.REL,"⋙":l.REL,"⋚":l.REL,"⋛":l.REL,"⋜":l.REL,"⋝":l.REL,"⋞":l.REL,"⋟":l.REL,"⋠":l.REL,"⋡":l.REL,"⋢":l.REL,"⋣":l.REL,"⋤":l.REL,"⋥":l.REL,"⋦":l.REL,"⋧":l.REL,"⋨":l.REL,"⋩":l.REL,"⋪":l.REL,"⋫":l.REL,"⋬":l.REL,"⋭":l.REL,"⋮":l.ORD,"⋯":l.INNER,"⋰":l.INNER,"⋱":l.INNER,"⋲":l.REL,"⋳":l.REL,"⋴":l.REL,"⋵":l.REL,"⋶":l.REL,"⋷":l.REL,"⋸":l.REL,"⋹":l.REL,"⋺":l.REL,"⋻":l.REL,"⋼":l.REL,"⋽":l.REL,"⋾":l.REL,"⋿":l.REL,"⌁":l.REL,"⌅":l.BIN3,"⌆":l.BIN3,"〈":l.OPEN,"〉":l.CLOSE,"⍼":l.REL,"⎋":l.REL,"⎪":l.ORD,"⎯":l.ORDSTRETCH0,"⎰":l.OPEN,"⎱":l.CLOSE,"─":l.ORD,"△":l.BIN3,"▵":l.BIN3,"▹":l.BIN3,"▽":l.BIN3,"▿":l.BIN3,"◃":l.BIN3,"◯":l.BIN3,"♠":l.ORD,"♡":l.ORD,"♢":l.ORD,"♣":l.ORD,"♭":l.ORD,"♮":l.ORD,"♯":l.ORD,"❘":[5,5,S.REL,{stretchy:!0,symmetric:!0}],"➔":l.WIDEREL,"➕":l.BIN4,"➖":l.BIN4,"➗":l.BIN4,"➘":l.REL,"➙":l.WIDEREL,"➚":l.REL,"➛":l.WIDEREL,"➜":l.WIDEREL,"➝":l.WIDEREL,"➞":l.WIDEREL,"➟":l.WIDEREL,"➠":l.WIDEREL,"➡":l.WIDEREL,"➥":l.WIDEREL,"➦":l.WIDEREL,"➧":l.RELACCENT,"➨":l.WIDEREL,"➩":l.WIDEREL,"➪":l.WIDEREL,"➫":l.WIDEREL,"➬":l.WIDEREL,"➭":l.WIDEREL,"➮":l.WIDEREL,"➯":l.WIDEREL,"➱":l.WIDEREL,"➲":l.RELACCENT,"➳":l.WIDEREL,"➴":l.REL,"➵":l.WIDEREL,"➶":l.REL,"➷":l.REL,"➸":l.WIDEREL,"➹":l.REL,"➺":l.WIDEREL,"➻":l.WIDEREL,"➼":l.WIDEREL,"➽":l.WIDEREL,"➾":l.WIDEREL,"⟂":l.REL,"⟂̸":l.REL,"⟋":l.BIN3,"⟍":l.BIN3,"⟰":l.RELSTRETCH,"⟱":l.RELSTRETCH,"⟲":l.REL,"⟳":l.REL,"⟴":l.RELSTRETCH,"⟵":l.WIDEREL,"⟶":l.WIDEREL,"⟷":l.WIDEREL,"⟸":l.WIDEREL,"⟹":l.WIDEREL,"⟺":l.WIDEREL,"⟻":l.WIDEREL,"⟼":l.WIDEREL,"⟽":l.WIDEREL,"⟾":l.WIDEREL,"⟿":l.WIDEREL,"⤀":l.WIDEREL,"⤁":l.WIDEREL,"⤂":l.WIDEREL,"⤃":l.WIDEREL,"⤄":l.WIDEREL,"⤅":l.WIDEREL,"⤆":l.WIDEREL,"⤇":l.WIDEREL,"⤈":l.RELSTRETCH,"⤉":l.RELSTRETCH,"⤊":l.RELSTRETCH,"⤋":l.RELSTRETCH,"⤌":l.WIDEREL,"⤍":l.WIDEREL,"⤎":l.WIDEREL,"⤏":l.WIDEREL,"⤐":l.WIDEREL,"⤑":l.WIDEREL,"⤒":l.RELSTRETCH,"⤓":l.RELSTRETCH,"⤔":l.WIDEREL,"⤕":l.WIDEREL,"⤖":l.WIDEREL,"⤗":l.WIDEREL,"⤘":l.WIDEREL,"⤙":l.WIDEREL,"⤚":l.WIDEREL,"⤛":l.WIDEREL,"⤜":l.WIDEREL,"⤝":l.WIDEREL,"⤞":l.WIDEREL,"⤟":l.WIDEREL,"⤠":l.WIDEREL,"â¤
14¡":l.REL,"⤢":l.REL,"⤣":l.REL,"⤤":l.REL,"⤥":l.REL,"⤦":l.REL,"⤧":l.REL,"⤨":l.REL,"⤩":l.REL,"⤪":l.REL,"⤫":l.REL,"⤬":l.REL,"⤭":l.REL,"⤮":l.REL,"⤯":l.REL,"⤰":l.REL,"⤱":l.REL,"⤲":l.REL,"⤳":l.RELACCENT,"⤴":l.RELSTRETCH,"⤵":l.RELSTRETCH,"⤶":l.RELSTRETCH,"⤷":l.RELSTRETCH,"⤸":l.REL,"⤹":l.REL,"⤺":l.RELACCENT,"⤻":l.RELACCENT,"⤼":l.RELACCENT,"⤽":l.RELACCENT,"⤾":l.REL,"⤿":l.REL,"⥀":l.REL,"⥁":l.REL,"⥂":l.WIDEREL,"⥃":l.WIDEREL,"⥄":l.WIDEREL,"⥅":l.RELSTRETCH,"⥆":l.RELSTRETCH,"⥇":l.WIDEREL,"⥈":l.WIDEREL,"⥉":l.RELSTRETCH,"⥊":l.WIDEREL,"⥋":l.WIDEREL,"⥌":l.RELSTRETCH,"⥍":l.RELSTRETCH,"⥎":l.WIDEREL,"⥏":l.RELSTRETCH,"⥐":l.WIDEREL,"⥑":l.RELSTRETCH,"⥒":l.WIDEREL,"⥓":l.WIDEREL,"⥔":l.RELSTRETCH,"⥕":l.RELSTRETCH,"⥖":l.WIDEREL,"⥗":l.WIDEREL,"⥘":l.RELSTRETCH,"⥙":l.RELSTRETCH,"⥚":l.WIDEREL,"⥛":l.WIDEREL,"⥜":l.RELSTRETCH,"⥝":l.RELSTRETCH,"⥞":l.WIDEREL,"⥟":l.WIDEREL,"⥠":l.RELSTRETCH,"⥡":l.RELSTRETCH,"⥢":l.WIDEREL,"⥣":l.RELSTRETCH,"⥤":l.WIDEREL,"⥥":l.RELSTRETCH,"⥦":l.WIDEREL,"⥧":l.WIDEREL,"⥨":l.WIDEREL,"⥩":l.WIDEREL,"⥪":l.WIDEREL,"⥫":l.WIDEREL,"⥬":l.WIDEREL,"⥭":l.WIDEREL,"⥮":l.RELSTRETCH,"⥯":l.RELSTRETCH,"⥰":l.WIDEREL,"⥱":l.WIDEREL,"⥲":l.WIDEREL,"⥳":l.WIDEREL,"⥴":l.WIDEREL,"⥵":l.WIDEREL,"⥶":l.RELACCENT,"⥷":l.RELACCENT,"⥸":l.RELACCENT,"⥹":l.RELACCENT,"⥺":l.RELACCENT,"⥻":l.RELACCENT,"⥼":l.WIDEREL,"⥽":l.WIDEREL,"⥾":l.RELSTRETCH,"⥿":l.RELSTRETCH,"⦁":l.REL,"⦂":l.REL,"⦶":l.REL,"⦷":l.REL,"⦸":l.BIN4,"⦹":l.REL,"⦼":l.BIN4,"⧀":l.REL,"⧁":l.REL,"⧄":l.BIN4,"⧅":l.BIN4,"⧆":l.BIN3,"⧇":l.BIN3,"⧈":l.BIN3,"⧎":l.REL,"⧏":l.REL,"⧐":l.REL,"⧑":l.REL,"⧒":l.REL,"⧓":l.REL,"⧔":l.BIN3,"⧕":l.BIN3,"⧖":l.BIN3,"⧗":l.BIN3,"⧟":l.REL,"â§¡":l.REL,"â§¢":l.BIN3,"â§£":l.REL,"⧤":l.REL,"â§¥":l.REL,"⧦":l.REL,"â§´":l.REL,"â§µ":l.BIN4,"â§¶":l.BIN4,"â§·":l.BIN4,"⧸":l.BIN4,"â§¹":l.BIN4,"⧺":l.BIN4,"â§»":l.BIN4,"⨝":l.BIN3,"⨞":l.BIN3,"⨟":l.BIN4,"⨠":l.BIN4,"⨡":l.BIN4,"⨢":l.BIN4,"⨣":l.BIN4,"⨤":l.BIN4,"⨥":l.BIN4,"⨦":l.BIN4,"⨧":l.BIN4,"⨨":l.BIN4,"⨩":l.BIN4,"⨪":l.BIN4,"⨫":l.BIN4,"⨬":l.BIN4,"⨭":l.BIN4,"⨮":l.BIN4,"⨯":l.BIN3,"⨰":l.BIN3,"⨱":l.BIN3,"⨲":l.BIN3,"⨳":l.BIN3,"⨴":l.BIN3,"⨵":l.BIN3,"⨶":l.BIN3,"⨷":l.BIN3,"⨸":l.BIN4,"⨹":l.BIN4,"⨺":l.BIN4,"⨻":l.BIN3,"⨼":l.BIN3,"⨽":l.BIN3,"⨾":l.BIN4,"⨿":l.BIN3,"⩀":l.BIN4,"⩁":l.BIN4,"⩂":l.BIN4,"⩃":l.BIN4,"⩄":l.BIN4,"⩅":l.BIN4,"⩆":l.BIN4,"⩇":l.BIN4,"⩈":l.BIN4,"⩉":l.BIN4,"⩊":l.BIN4,"⩋":l.BIN4,"⩌":l.BIN4,"⩍":l.BIN4,"⩎":l.BIN4,"⩏":l.BIN4,"⩐":l.BIN3,"⩑":l.BIN4,"⩒":l.BIN4,"⩓":l.BIN4,"⩔":l.BIN4,"⩕":l.BIN4,"⩖":l.BIN4,"⩗":l.BIN4,"⩘":l.BIN4,"⩙":l.BIN4,"⩚":l.BIN4,"⩛":l.BIN4,"⩜":l.BIN4,"⩝":l.BIN4,"⩞":l.BIN4,"⩟":l.BIN4,"â© ":l.BIN4,"â©¡":l.BIN4,"â©¢":l.BIN4,"â©£":l.BIN4,"⩤":l.BIN3,"â©¥":l.BIN3,"⩦":l.REL,"â©§":l.REL,"⩨":l.REL,"â©©":l.REL,"⩪":l.REL,"â©«":l.REL,"⩬":l.REL,"â©­":l.REL,"â©®":l.REL,"⩯":l.REL,"â©°":l.REL,"⩱":l.REL,"⩲":l.REL,"⩳":l.REL,"â©´":l.REL,"⩵":l.REL,"â©¶":l.REL,"â©·":l.REL,"⩸":l.REL,"⩹":l.REL,"⩺":l.REL,"â©»":l.REL,"⩼":l.REL,"⩽":l.REL,"⩽̸":l.REL,"⩾":l.REL,"⩾̸":l.REL,"â©¿":l.REL,"⪀":l.REL,"⪁":l.REL,"⪂":l.REL,"⪃":l.REL,"⪄":l.REL,"⪅":l.REL,"⪆":l.REL,"⪇":l.REL,"⪈":l.REL,"⪉":l.REL,"⪊":l.REL,"⪋":l.REL,"⪌":l.REL,"⪍":l.REL,"⪎":l.REL,"⪏":l.REL,"⪐":l.REL,"⪑":l.REL,"⪒":l.REL,"⪓":l.REL,"⪔":l.REL,"⪕":l.REL,"⪖":l.REL,"⪗":l.REL,"⪘":l.REL,"⪙":l.REL,"⪚":l.REL,"⪛":l.REL,"⪜":l.REL,"⪝":l.REL,"⪞":l.REL,"⪟":l.REL,"⪠":l.REL,"⪡":l.REL,"⪢":l.REL,"⪣":l.REL,"⪤":l.REL,"⪥":l.REL,"⪦":l.REL,"⪧":l.REL,"⪨":l.REL,"⪩":l.REL,"⪪":l.REL,"⪫":l.REL,"⪬":l.REL,"⪭":l.REL,"⪮":l.REL,"⪯":l.REL,"⪯̸":l.REL,"⪰":l.REL,"⪰̸":l.REL,"⪱":l.REL,"⪲":l.REL,"⪳":l.REL,"⪴":l.REL,"⪵":l.REL,"⪶":l.REL,"⪷":l.REL,"⪸":l.REL,"⪹":l.REL,"⪺":l.REL,"⪻":l.REL,"⪼":l.REL,"⪽":l.REL,"⪾":l.REL,"⪿":l.REL,"⫀":l.REL,"⫁":l.REL,"⫂":l.REL,"⫃":l.REL,"⫄":l.REL,"⫅":l.REL,"⫆":l.REL,"⫇":l.REL,"⫈":l.REL,"⫉":l.REL,"⫊":l.REL,"⫋":l.REL,"⫌":l.REL,"⫍":l.REL,"⫎":l.REL,"⫏":l.REL,"⫐":l.REL,"⫑":l.REL,"⫒":l.REL,"⫓":l.REL,"⫔":l.REL,"⫕":l.REL,"⫖":l.REL,"⫗":l.REL,"⫘":l.REL,"⫙":l.REL,"⫚":l.REL,"⫛":l.BIN4,"⫝":l.BIN3,"⫝̸":l.REL,"⫞":l.REL,"⫟":l.REL,"â« ":l.REL,"â«¡":l.REL,"â«¢":l.REL,"â«£":l.REL,"⫤":l.REL,"â«¥":l.REL,"⫦":l.REL,"â«§":l.REL,"⫨":l.REL,"â«©":l.REL,"⫪":l.REL,"â««":l.REL,"â«®":l.REL,"⫲":l.REL,"⫳":l.REL,"â«´":l.REL,"⫵":l.REL,"â«¶":l.BIN4,"â«·":l.REL,"⫸":l.REL,"⫹":l.REL,"⫺":l.REL,"â«»":l.BIN4,"⫽":l.BIN4,"⫾":l.BIN3,"⬀":l.REL,"⬁":l.REL,"⬂":l.REL,"⬃":l.REL,"⬄":l.WIDEREL,"⬅":l.WIDEREL,"⬆":l.RELSTRETCH,"⬇":l.RELSTRETCH,"⬈":l.REL,"⬉":l.REL,"⬊":l.REL,"⬋":l.REL,"⬌":l.WIDEREL,"⬍":l.RELSTRETCH,"⬎":l.RELSTRETCH,"⬏":l.RELSTRETCH,"⬐":l.RELSTRETCH,"⬑":l.RELSTRETCH,"⬰":l.WIDEREL,"⬱":l.WIDEREL,"⬲":l.RELSTRETCH,"⬳":l.WIDEREL,"⬴":l.WIDEREL,"⬵":l.WIDEREL,"⬶":l.WIDEREL,"⬷":l.WIDEREL,"⬸":l.WIDEREL,"⬹":l.WIDEREL,"⬺":l.WIDEREL,"⬻":l.WIDEREL,"⬼":l.WIDEREL,"⬽":l.WIDEREL,"⬾":l.WIDEREL,"⬿":l.RELACCENT,"⭀":l.WIDEREL,"⭁":l.WIDEREL,"⭂":l.WIDEREL,"⭃":l.WIDEREL,"⭄":l.WIDEREL,"⭅":l.WIDEREL,"⭆":l.WIDEREL,"⭇":l.WIDEREL,"⭈":l.WIDEREL,"⭉":l.WIDEREL,"⭊"
14:l.WIDEREL,"⭋":l.WIDEREL,"⭌":l.WIDEREL,"⭍":l.REL,"⭎":l.REL,"⭏":l.REL,"⭚":l.REL,"⭛":l.REL,"⭜":l.REL,"⭝":l.REL,"⭞":l.REL,"⭟":l.REL,"⭠":l.WIDEREL,"⭡":l.RELSTRETCH,"⭢":l.WIDEREL,"⭣":l.RELSTRETCH,"⭤":l.WIDEREL,"⭥":l.RELSTRETCH,"⭦":l.REL,"⭧":l.REL,"⭨":l.REL,"⭩":l.REL,"⭪":l.WIDEREL,"⭫":l.RELSTRETCH,"⭬":l.WIDEREL,"⭭":l.RELSTRETCH,"⭮":l.REL,"⭯":l.REL,"⭰":l.WIDEREL,"⭱":l.RELSTRETCH,"⭲":l.WIDEREL,"⭳":l.RELSTRETCH,"⭶":l.REL,"⭷":l.REL,"⭸":l.REL,"⭹":l.REL,"⭺":l.WIDEREL,"⭻":l.RELSTRETCH,"⭼":l.WIDEREL,"⭽":l.RELSTRETCH,"⮀":l.WIDEREL,"⮁":l.RELSTRETCH,"⮂":l.WIDEREL,"⮃":l.RELSTRETCH,"⮄":l.WIDEREL,"⮅":l.RELSTRETCH,"⮆":l.WIDEREL,"⮇":l.RELSTRETCH,"⮈":l.RELACCENT,"⮉":l.REL,"⮊":l.RELACCENT,"⮋":l.REL,"⮌":l.REL,"⮍":l.REL,"⮎":l.REL,"⮏":l.REL,"⮔":l.REL,"⮕":l.WIDEREL,"⮠":l.RELSTRETCH,"⮡":l.RELSTRETCH,"⮢":l.RELSTRETCH,"⮣":l.RELSTRETCH,"⮤":l.RELSTRETCH,"⮥":l.RELSTRETCH,"⮦":l.RELSTRETCH,"⮧":l.RELSTRETCH,"⮨":l.WIDEREL,"⮩":l.WIDEREL,"⮪":l.WIDEREL,"⮫":l.WIDEREL,"⮬":l.RELSTRETCH,"⮭":l.RELSTRETCH,"⮮":l.RELSTRETCH,"⮯":l.RELSTRETCH,"⮰":l.REL,"⮱":l.REL,"⮲":l.REL,"⮳":l.REL,"⮴":l.REL,"⮵":l.REL,"⮶":l.REL,"⮷":l.REL,"⮸":l.RELSTRETCH,"⯑":l.REL,㫜:l.BIN3,"︷":l.WIDEACCENT,"︸":l.WIDEACCENT}};function Tu(r,t){return r.length!==t.length?t.length-r.length:r===t?0:r<t?-1:1}function Da(r){return r.replace(/([\^$(){}.+*?\-|[\]:\\])/g,"\\$1")}function No(r){return Array.from(r).map(t=>t.codePointAt(0))}function Cu(r){return String.fromCodePoint(...r)}function ri(r){return!!r.match(/%\s*$/)}function mi(r){return r.trim().split(/\s+/)}function Lu(r){return r.replace(/\\U(?:([0-9A-Fa-f]{4})|\{\s*([0-9A-Fa-f]{1,6})\s*\})|\\./g,(t,e,s)=>t==="\\\\"?"\\":String.fromCodePoint(parseInt(e||s,16)))}function Au(r){return`&#x${r.codePointAt(0).toString(16).toUpperCase()};`}class Ps extends Os{constructor(){super(...arguments),this._texClass=null,this.lspace=5/18,this.rspace=5/18}get texClass(){return this._texClass===null?this.getOperatorDef(this.getText())[2]:this._texClass}set texClass(t){this._texClass=t}get kind(){return"mo"}get isEmbellished(){return!0}coreParent(){let t=null,e=this;const s=this.factory.getNodeClass("math");for(;e&&e.isEmbellished&&e.coreMO()===this&&!(e instanceof s);)t=e,e=e.parent;return t||this}coreText(t){if(!t)return"";if(t.isEmbellished)return t.coreMO().getText();for(;((t.isKind("mrow")||t.isKind("TeXAtom")||t.isKind("mstyle")||t.isKind("mphantom"))&&t.childNodes.length===1||t.isKind("munderover"))&&t.childNodes[0];)t=t.childNodes[0];return t.isToken?t.getText():""}hasSpacingAttributes(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")}get isAccent(){let t=!1;const e=this.coreParent().parent;if(e){const s=e.isKind("mover")?e.childNodes[e.over].coreMO()?"accent":"":e.isKind("munder")?e.childNodes[e.under].coreMO()?"accentunder":"":e.isKind("munderover")?this===e.childNodes[e.over].coreMO()?"accent":this===e.childNodes[e.under].coreMO()?"accentunder":"":"";s&&(t=e.attributes.getExplicit(s)!==void 0?t:this.attributes.get("accent"))}return t}setTeXclass(t){const{form:e,fence:s}=this.attributes.getList("form","fence");
14return this.getProperty("texClass")===void 0&&this.hasSpacingAttributes()?null:(s&&this.texClass===S.REL&&(e==="prefix"&&(this.texClass=S.OPEN),e==="postfix"&&(this.texClass=S.CLOSE)),this.adjustTeXclass(t))}adjustTeXclass(t){const e=this.texClass;let s=this.prevClass;if(e===S.NONE)return t;if(t?(!t.getProperty("autoOP")||e!==S.BIN&&e!==S.REL||(s=t.texClass=S.ORD),s=this.prevClass=t.texClass||S.ORD,this.prevLevel=this.attributes.getInherited("scriptlevel")):s=this.prevClass=S.NONE,e!==S.BIN||s!==S.NONE&&s!==S.BIN&&s!==S.OP&&s!==S.REL&&s!==S.OPEN&&s!==S.PUNCT)if(s!==S.BIN||e!==S.REL&&e!==S.CLOSE&&e!==S.PUNCT){if(e===S.BIN){let i=null,n=this.parent;for(;n&&n.parent&&n.isEmbellished&&(n.childNodes.length===1||!n.isKind("mrow")&&n.core()===i);)i=n,n=n.parent;i=i||this,n.childNodes[n.childNodes.length-1]===i&&(this.texClass=S.ORD)}}else t.texClass=this.prevClass=S.ORD;else this.texClass=S.ORD;return this}setInheritedAttributes(t={},e=!1,s=0,i=!1){super.setInheritedAttributes(t,e,s,i);const n=this.getText();this.checkOperatorTable(n),this.checkPseudoScripts(n),this.checkPrimes(n),this.checkMathAccent(n)}getOperatorDef(t){const[e,s,i]=this.handleExplicitForm(this.getForms());this.attributes.setInherited("form",e);const n=this.constructor,o=n.OPTABLE,a=o[e][t]||o[s][t]||o[i][t];if(a)return a;this.setProperty("noDictDef",!0);const c=this.attributes.get("movablelimits");if((t.match(n.opPattern)||c)&&this.getProperty("texClass")===void 0)return fe(1,2,S.OP);const h=Nh(t),[u,x]=n.MMLSPACING[h[2]];return fe(u,x,h[2])}checkOperatorTable(t){const e=this.getOperatorDef(t);this.getProperty("texClass")===void 0&&(this.texClass=e[2]);for(const s of Object.keys(e[3]||{}))this.attributes.setInherited(s,e[3][s]);this.lspace=e[0]/18,this.rspace=e[1]/18}getForms(){let t=null,e=this.parent,s=this.Parent;for(;s&&s.isEmbellished;)t=e,e=s.parent,s=s.Parent;if(t=t||this,e&&e.isKind("mrow")&&e.nonSpaceLength()!==1){if(e.firstNonSpace()===t)return["prefix","infix","postfix"];if(e.lastNonSpace()===t)return["postfix","infix","prefix"]}return["infix","prefix","postfix"]}handleExplicitForm(t){if(this.attributes.isSet("form")){const e=this.attributes.get("form");t=[e].concat(t.filter(s=>s!==e))}return t}checkPseudoScripts(t){const e=this.constructor.pseudoScripts;if(!t.match(e))return;const s=this.coreParent().Parent,i=!s||!(s.isKind("msubsup")&&!s.isKind("msub"));this.setProperty("pseudoscript",i),i&&(this.attributes.setInherited("lspace",0),this.attributes.setInherited("rspace",0))}checkPrimes(t){const e=this.constructor.primes;if(!t.match(e))return;const s=this.constructor.remapPrimes,i=Cu(No(t).map(n=>s[n]));this.setProperty("primes",i)}checkMathAccent(t){const e=this.Parent;if(this.getProperty("mathaccent")!==void 0||!e||!e.isKind("munderover"))return;const[s,i,n]=e.childNodes;if(s.isEmbellished&&s.coreMO()===this)return;const o=!(!i||!i.isEmbellished||i.coreMO()!==this),a=!(!n||!n.isEmbellished||i.coreMO()!==this);(o||a)&&(this.isMathAccent(t)?this.setProperty("mathaccent",!0):this.isMathAccentWithWidth(t)&&this.setProperty("mathaccent",!1))}isMathAccent(t=this.getText()){const e=this.constructor.mathaccents;return!!t.match(e)}isMathAccentWithWidth(t=this.getText()){const e=this.constructor.mathaccentsWithWidth;return!!t.match(e)}}Ps.defaults=Object.assign(Object.assign({},Os.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:"100%",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),Ps.MMLSPACING=vu,Ps.OPTABLE=Hi,Ps.pseudoScripts=new RegExp(["^[\"'*`","ª","°","²-´","¹","º","‘-‟","′-‷⁗","⁰ⁱ","⁴-ⁿ","₀-₎","]+$"].join("")),Ps.primes=new RegExp([`^["'`,"‘-‟","]+$"].join("")),Ps.opPattern=/^[a-zA-Z]{2,}$/,Ps.remapPrimes={34:8243,39:8242,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246},Ps.mathaccents=new RegExp(["^[","´́ˊ","`̀ˋ","¨̈","~̃˜","¯̄ˉ","˘̆","ˇ̌","^̂ˆ","⃐⃑","⃖⃗⃡","˙̇","˚̊","⃛","⃜","]$"].join("")),Ps.mathaccentsWithWidth=new RegExp(["^[","←→↔","⏜⏝","⏞⏟","]$"].join(""));class Cr extends Os{constructor(){super(...arguments),this.texclass=S.ORD}get kind(){return"mtext"}get isSpacelike(){return!!this.getText().match(/^\s*$/)&&!this.attributes.hasOneOf(Cr.NONSPACELIKE)}}Cr.NONSPACELIKE=["style","mathbackground","background"],Cr.defaults=Object.assign({},Os.defaults);class Lr extends Os{constructor(){super(...arguments),this.texclass=S.NONE}setTeXclass(t){return t}get kind(){return"mspace"}get arity(){return 0}get isSpacelike(){return!this.attributes.hasExplicit("linebreak")&&this.canBreak}get hasNewline(){const t=this.attributes.get("linebreak");return this.canBreak&&(t==="newline"||t==="indentingnewline")}get canBreak(){return!this.attributes.hasOneOf(Lr.NONSPACELIKE)&&String(this.attributes.get("width")).trim().charAt(0)!=="-"}}Lr.NONSPACELIKE=["height","depth","style","mathbackground","background"],Lr.defaults=Object.assign(Object.assign({},Os.defaults),{width:"0em",height:"0ex",depth:"0ex",linebreak:"auto",indentshift:"auto",indentalign:"auto",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"});class vo extends Os{constructor(){super(...arguments),this.texclass=S.ORD}get kind(){return"ms"}}vo.defaults=Object.assign(Object.assign({},Os.defaults),{lquote:'"',rquote:'"'});class $r extends Ot{constructor(){super(...arguments),this._core=null}get kind(){return"mrow"}get isSpacelike(){for(const t of this.childNodes)if(!t.isSpacelike)return!1;return!0}get isEmbellished(){let t=!1,e=0;for(const s of this.childNodes){if(s){if(s.isEmbellished){if(t)return!1;t=!0,this._core=e}else if(!s.isSpacelike)return!1}e++}return t}core(){return this.isEmbellished&&this._core!=null?this.childNodes[this._core]:this}coreMO(){return this.isEmbellished&&this._core!=null?this.childNodes[this._core].coreMO():this}nonSpaceLength(){let t=0;for(const e of this.childNodes)e&&!e.isSpacelike&&t++;return t}firstNonSpace(){for(const t of this.childNodes)if(t&&!t.isSpacelike)return t;return null}lastNonSpace(){let t=this.childNodes.length;for(;--t>=0;){const e=this.childNodes[t];
14if(e&&!e.isSpacelike)return e}return null}setTeXclass(t){if(this.getProperty("open")!=null||this.getProperty("close")!=null){this.getPrevClass(t),t=null;for(const e of this.childNodes)t=e.setTeXclass(t);return this.texClass==null&&(this.texClass=S.INNER),this}for(const e of this.childNodes)t=e.setTeXclass(t);return this.childNodes[0]&&this.updateTeXclass(this.childNodes[0]),t}}$r.defaults=Object.assign({},Ot.defaults);class To extends $r{get kind(){return"inferredMrow"}get isInferred(){return!0}get notParent(){return!0}toString(){return"["+this.childNodes.join(",")+"]"}}To.defaults=$r.defaults;class Co extends Ds{get kind(){return"mfrac"}get arity(){return 2}get linebreakContainer(){return!0}get linebreakAlign(){return""}setTeXclass(t){this.getPrevClass(t);for(const e of this.childNodes)e.setTeXclass(null);return this}setChildInheritedAttributes(t,e,s,i){(!e||s>0)&&s++;const n=this.attributes.get("numalign"),o=this.attributes.get("denomalign"),a=this.addInheritedAttributes(Object.assign({},t),{numalign:n,indentshift:"0",indentalignfirst:n,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"}),c=this.addInheritedAttributes(Object.assign({},t),{denalign:o,indentshift:"0",indentalignfirst:o,indentshiftfirst:"0",indentalignlast:"indentalign",indentshiftlast:"indentshift"});this.childNodes[0].setInheritedAttributes(a,!1,s,i),this.childNodes[1].setInheritedAttributes(c,!1,s,!0)}}Co.defaults=Object.assign(Object.assign({},Ds.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:!1});class Lo extends Ot{constructor(){super(...arguments),this.texclass=S.ORD}get kind(){return"msqrt"}get arity(){return-1}get linebreakContainer(){return!0}setTeXclass(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this}setChildInheritedAttributes(t,e,s,i){this.childNodes[0].setInheritedAttributes(t,e,s,!0)}}Lo.defaults=Object.assign(Object.assign({},Ot.defaults),{"data-vertical-align":"bottom"});class Ao extends Ot{constructor(){super(...arguments),this.texclass=S.ORD}get kind(){return"mroot"}get arity(){return 2}get linebreakContainer(){return!0}setTeXclass(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this.childNodes[1].setTeXclass(null),this}setChildInheritedAttributes(t,e,s,i){this.childNodes[0].setInheritedAttributes(t,e,s,!0),this.childNodes[1].setInheritedAttributes(t,!1,s+2,i)}}Ao.defaults=Object.assign(Object.assign({},Ot.defaults),{"data-vertical-align":"bottom"});class Pa extends pi{get kind(){return"mstyle"}get notParent(){return this.childNodes[0]&&this.childNodes[0].childNodes.length===1}setInheritedAttributes(t={},e=!1,s=0,i=!1){this.attributes.setInherited("displaystyle",e),this.attributes.setInherited("scriptlevel",s),super.setInheritedAttributes(t,e,s,i)}setChildInheritedAttributes(t,e,s,i){let n=this.attributes.getExplicit("scriptlevel");n!=null&&(n=n.toString(),n.match(/^\s*[-+]/)?s+=parseInt(n):s=parseInt(n),i=!1);const o=this.attributes.getExplicit("displaystyle");o!=null&&(e=o===!0,i=!1);const a=this.attributes.getExplicit("data-cramped");a!=null&&(i=a),t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),this.childNodes[0].setInheritedAttributes(t,e,s,i)}}Pa.defaults=Object.assign(Object.assign({},pi.defaults),{scriptlevel:fs,displaystyle:fs,scriptsizemultiplier:1/Math.sqrt(2),scriptminsize:".4em",mathbackground:fs,mathcolor:fs,dir:fs,infixlinebreakstyle:"before"});class Ba extends Ot{constructor(){super(...arguments),this.texclass=S.ORD}get kind(){return"merror"}get arity(){return-1}get linebreakContainer(){return!0}}Ba.defaults=Object.assign({},Ot.defaults);class So extends pi{get kind(){return"mpadded"}get linebreakContainer(){return!0}setTeXclass(t){return this.getProperty("vbox")?(this.getPrevClass(t),this.texClass=S.ORD,this.childNodes[0].setTeXclass(null),this):super.setTeXclass(t)}}So.defaults=Object.assign(Object.assign({},pi.defaults),{width:"",height:"",depth:"",lspace:0,voffset:0});class Fa extends pi{constructor(){super(...arguments),this.texclass=S.ORD}get kind(){return"mphantom"}}Fa.defaults=Object.assign({},pi.defaults);class Ro extends Ot{constructor(){super(...arguments),this.texclass=S.INNER,this.separators=[],this.open=null,this.close=null}get kind(){return"mfenced"}setTeXclass(t){this.getPrevClass(t),this.open&&(t=this.open.setTeXclass(t)),this.childNodes[0]&&(t=this.childNodes[0].setTeXclass(t));for(let e=1,s=this.childNodes.length;e<s;
14e++)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.open&&this.close||this.updateTeXclass(this.open||this.childNodes[0]||this.close),t}setChildInheritedAttributes(t,e,s,i){this.addFakeNodes();for(const n of[this.open,this.close].concat(this.separators))n&&n.setInheritedAttributes(t,e,s,i);super.setChildInheritedAttributes(t,e,s,i)}addFakeNodes(){let{open:t,close:e,separators:s}=this.attributes.getList("open","close","separators");if(t=t.replace(/[ \t\n\r]/g,""),e=e.replace(/[ \t\n\r]/g,""),s=s.replace(/[ \t\n\r]/g,""),t&&(this.open=this.fakeNode(t,{fence:!0,form:"prefix"},S.OPEN)),s){for(;s.length<this.childNodes.length-1;)s+=s.charAt(s.length-1);let i=0;for(const n of this.childNodes.slice(1))n&&this.separators.push(this.fakeNode(s.charAt(i++)))}e&&(this.close=this.fakeNode(e,{fence:!0,form:"postfix"},S.CLOSE))}fakeNode(t,e={},s=null){const i=this.factory.create("text").setText(t),n=this.factory.create("mo",e,[i]);return n.texClass=s,n.parent=this,n}}Ro.defaults=Object.assign(Object.assign({},Ot.defaults),{open:"(",close:")",separators:","});class Mo extends Ot{constructor(){super(...arguments),this.texclass=S.ORD}get kind(){return"menclose"}get arity(){return-1}get linebreakContainer(){return!0}setTeXclass(t){return t=this.childNodes[0].setTeXclass(t),this.updateTeXclass(this.childNodes[0]),t}}Mo.defaults=Object.assign(Object.assign({},Ot.defaults),{notation:"longdiv"});class Io extends Ot{get kind(){return"maction"}get arity(){return 1}get selected(){const t=this.attributes.get("selection"),e=Math.max(1,Math.min(this.childNodes.length,t))-1;return this.childNodes[e]||this.factory.create("mrow")}get isEmbellished(){return this.selected.isEmbellished}get isSpacelike(){return this.selected.isSpacelike}core(){return this.selected.core()}coreMO(){return this.selected.coreMO()}verifyAttributes(t){super.verifyAttributes(t),this.attributes.get("actiontype")!=="toggle"&&this.attributes.hasExplicit("selection")&&this.attributes.unset("selection")}setTeXclass(t){this.attributes.get("actiontype")==="tooltip"&&this.childNodes[1]&&this.childNodes[1].setTeXclass(null);const e=this.selected;return t=e.setTeXclass(t),this.updateTeXclass(e),t}nextToggleSelection(){let t=Math.max(1,parseInt(this.attributes.get("selection"))+1);t>this.childNodes.length&&(t=1),this.attributes.set("selection",t)}setChildInheritedAttributes(t,e,s,i){var n,o;this.attributes.get("actiontype").toLowerCase()==="tooltip"?((n=this.childNodes[0])===null||n===void 0||n.setInheritedAttributes(t,e,s,i),(o=this.childNodes[1])===null||o===void 0||o.setInheritedAttributes(t,!1,1,!1)):super.setChildInheritedAttributes(t,e,s,i)}}Io.defaults=Object.assign(Object.assign({},Ot.defaults),{actiontype:"toggle",selection:1});class Ai extends Ds{get kind(){return"msubsup"}get arity(){return 3}get base(){return 0}get sub(){return 1}get sup(){return 2}setChildInheritedAttributes(t,e,s,i){const n=this.childNodes;n[0].setInheritedAttributes(t,e,s,i),n[1].setInheritedAttributes(t,!1,s+1,i||this.sub===1),n[2]&&n[2].setInheritedAttributes(t,!1,s+1,i||this.sub===2)}}Ai.defaults=Object.assign(Object.assign({},Ds.defaults),{subscriptshift:"",superscriptshift:""});class wo extends Ai{get kind(){return"msub"}get arity(){return 2}}wo.defaults=Object.assign({},Ai.defaults);class ko extends Ai{get kind(){return"msup"}get arity(){return 2}get sup(){return 1}get sub(){return 2}}ko.defaults=Object.assign({},Ai.defaults);class _i extends Ds{get kind(){return"munderover"}get arity(){return 3}get base(){return 0}get under(){return 1}get over(){return 2}get linebreakContainer(){return!0}setChildInheritedAttributes(t,e,s,i){const n=this.childNodes;n[0].setInheritedAttributes(t,e,s,i||!!n[this.over]);const o=!(e||!n[0].coreMO().attributes.get("movablelimits")),a=this.constructor.ACCENTS;n[1].setInheritedAttributes(t,!1,this.getScriptlevel(a[1],o,s),i||this.under===1),this.setInheritedAccent(1,a[1],e,s,i,o),n[2]&&(n[2].setInheritedAttributes(t,!1,this.getScriptlevel(a[2],o,s),i||this.under===2),this.setInheritedAccent(2,a[2],e,s,i,o))}getScriptlevel(t,e,s){return!e&&this.attributes.get(t)||s++,s}setInheritedAccent(t,e,s,i,n,o){const a=this.childNodes[t];
vendor: 23,410 bytes, lines 14-16
14if(!this.attributes.hasExplicit(e)&&a.isEmbellished){const c=a.coreMO().attributes.get("accent");this.attributes.setInherited(e,c),c!==this.attributes.getDefault(e)&&a.setInheritedAttributes({},s,this.getScriptlevel(e,o,i),n)}}}_i.defaults=Object.assign(Object.assign({},Ds.defaults),{accent:!1,accentunder:!1,align:"center"}),_i.ACCENTS=["","accentunder","accent"];class Oo extends _i{get kind(){return"munder"}get arity(){return 2}}Oo.defaults=Object.assign({},_i.defaults);class Pn extends _i{get kind(){return"mover"}get arity(){return 2}get over(){return 1}get under(){return 2}}Pn.defaults=Object.assign({},_i.defaults),Pn.ACCENTS=["","accent","accentunder"];class Do extends Ai{get kind(){return"mmultiscripts"}get arity(){return 1}setChildInheritedAttributes(t,e,s,i){this.childNodes[0].setInheritedAttributes(t,e,s,i);let n=!1;for(let o=1,a=0;o<this.childNodes.length;o++){const c=this.childNodes[o];if(c.isKind("mprescripts")){if(!n&&(n=!0,o%2==0)){const h=this.factory.create("none");this.childNodes.splice(o,0,h),h.parent=this,o++}}else{const h=i||a%2==0;c.setInheritedAttributes(t,!1,s+1,h),a++}}this.childNodes.length%2==(n?1:0)&&(this.appendChild(this.factory.create("none")),this.childNodes[this.childNodes.length-1].setInheritedAttributes(t,!1,s+1,i))}verifyChildren(t){let e=!1;const s=t.fixMmultiscripts;for(let i=0;i<this.childNodes.length;i++){const n=this.childNodes[i];n.isKind("mprescripts")&&(e?n.mError(n.kind+" can only appear once in "+this.kind,t,!0):(e=!0,i%2!=0||s||this.mError("There must be an equal number of prescripts of each type",t)))}this.childNodes.length%2!=(e?1:0)||s||this.mError("There must be an equal number of scripts of each type",t),super.verifyChildren(t)}}Do.defaults=Object.assign({},Ai.defaults);class ja extends Ot{get kind(){return"mprescripts"}get arity(){return 0}verifyTree(t){super.verifyTree(t),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",t,!0)}}ja.defaults=Object.assign({},Ot.defaults);class Ua extends Ot{get kind(){return"none"}get arity(){return 0}verifyTree(t){super.verifyTree(t),this.parent&&!this.parent.isKind("mmultiscripts")&&this.mError(this.kind+" must be a child of mmultiscripts",t,!0)}}Ua.defaults=Object.assign({},Ot.defaults);class Po extends Ot{constructor(){super(...arguments),this.properties={useHeight:!0},this.texclass=S.ORD}get kind(){return"mtable"}get linebreakContainer(){return!0}get linebreakAlign(){return""}setInheritedAttributes(t,e,s,i){for(const n of yu)t[n]&&this.attributes.setInherited(n,t[n][1]),this.attributes.hasExplicit(n)&&this.attributes.unset(n);super.setInheritedAttributes(t,e,s,i)}setChildInheritedAttributes(t,e,s,i){for(const a of this.childNodes)a.isKind("mtr")||this.replaceChild(this.factory.create("mtr"),a).appendChild(a);e=!(!this.attributes.getExplicit("displaystyle")&&!this.attributes.getDefault("displaystyle")),t=this.addInheritedAttributes(t,{columnalign:this.attributes.get("columnalign"),rowalign:"center","data-break-align":this.attributes.get("data-break-align")});const n=this.attributes.getExplicit("data-cramped"),o=mi(this.attributes.get("rowalign"));for(const a of this.childNodes)t.rowalign[1]=o.shift()||t.rowalign[1],a.setInheritedAttributes(t,e,s,!!n)}verifyChildren(t){let e=null;const s=this.factory;for(let i=0;i<this.childNodes.length;i++){const n=this.childNodes[i];if(n.isKind("mtr"))e=null;else{const o=n.isKind("mtd");if(e?(this.removeChild(n),i--):e=this.replaceChild(s.create("mtr"),n),e.appendChild(o?n:s.create("mtd",{},[n])),!t.fixMtables){n.parent.removeChild(n),n.parent=this,o&&e.appendChild(s.create("mtd"));const a=n.mError("Children of "+this.kind+" must be mtr or mlabeledtr",t,o);e.childNodes[e.childNodes.length-1].appendChild(a)}}}super.verifyChildren(t)}setTeXclass(t){this.getPrevClass(t);for(const e of this.childNodes)e.setTeXclass(null);return this}}Po.defaults=Object.assign(Object.assign({},Ot.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","data-break-align":"top"});class Bn extends Ot{get kind(){return"mtr"}get linebreakContainer(){return!0}get linebreakAlign(){return""}setChildInheritedAttributes(t,e,s,i){for(const a of this.childNodes)a.isKind("mtd")||this.replaceChild(this.factory.create("mtd"),a).appendChild(a);const n=mi(this.attributes.get("columnalign")),o=mi(this.attributes.get("data-break-align"));this.arity===1&&(n.unshift(this.parent.attributes.get("side")),o.unshift("top")),t=this.addInheritedAttributes(t,{rowalign:this.attributes.get("rowalign"),columnalign:"center","data-break-align":"top"});for(const a of this.childNodes)t.columnalign[1]=n.shift()||t.columnalign[1],t["data-vertical-align"]=[this.kind,o.shift()||t["data-break-align"][1]],a.setInheritedAttributes(t,e,s,i)}verifyChildren(t){if(!this.parent||this.parent.isKind("mtable")){for(const e of this.childNodes)e.isKind("mtd")||(this.replaceChild(this.factory.create("mtd"),e).appendChild(e),t.fixMtables||e.mError("Children of "+this.kind+" must be mtd",t));super.verifyChildren(t)}else this.mError(this.kind+" can only be a child of an mtable",t,!0)}setTeXclass(t){this.getPrevClass(t);for(const e of this.childNodes)e.setTeXclass(null);return this}}Bn.defaults=Object.assign(Object.assign({},Ot.defaults),{rowalign:fs,columnalign:fs,groupalign:fs,"data-break-align":"top"});class Ha extends Bn{get kind(){return"mlabeledtr"}get arity(){return 1}}class Bo extends Ds{get kind(){return"mtd"}get arity(){return-1}get linebreakContainer(){return!0}get linebreakAlign(){return"columnalign"}verifyChildren(t){!this.parent||this.parent.isKind("mtr")?super.verifyChildren(t):this.mError(this.kind+" can only be a child of an mtr or mlabeledtr",t,!0)}setTeXclass(t){return this.getPrevClass(t),this.childNodes[0].setTeXclass(null),this}}Bo.defaults=Object.assign(Object.assign({},Ds.defaults),{rowspan:1,columnspan:1,rowalign:fs,columnalign:fs,groupalign:fs,"data-vertical-align":"top"});class _a extends pi{get kind(){return"maligngroup"}get isSpacelike(){return!0}setChildInheritedAttributes(t,e,s,i){t=this.addInheritedAttributes(t,this.attributes.getAllAttributes()),super.setChildInheritedAttributes(t,e,s,i)}}_a.defaults=Object.assign(Object.assign({},pi.defaults),{groupalign:fs});class Wa extends Ot{get kind(){return"malignmark"}get arity(){return 0}get isSpacelike(){return!0}}Wa.defaults=Object.assign(Object.assign({},Ot.defaults),{edge:"left"});class Fo extends Os{constructor(){super(...arguments),this.texclass=S.ORD}get kind(){return"mglyph"}verifyAttributes(t){const{src:e,fontfamily:s,index:i}=this.attributes.getList("src","fontfamily","index");e!==""||s!==""&&i!==""?super.verifyAttributes(t):this.mError("mglyph must have either src or fontfamily and index attributes",t,!0)}}Fo.defaults=Object.assign(Object.assign({},Os.defaults),{alt:"",src:"",index:"",width:"auto",height:"auto",valign:"0em"});class jo extends Ds{get kind(){return"semantics"}get arity(){return 1}get notParent(){return!0}}jo.defaults=Object.assign(Object.assign({},Ds.defaults),{definitionUrl:null,encoding:null});class Gr extends Ot{get kind(){return"annotation-xml"}setChildInheritedAttributes(){}}Gr.defaults=Object.assign(Object.assign({},Ot.defaults),{definitionUrl:null,encoding:null,cd:"mathmlkeys",name:"",src:null});class Uo extends Gr{constructor(){super(...arguments),this.properties={isChars:!0}}get kind(){return"annotation"}}Uo.defaults=Object.assign({},Gr.defaults);class Fn extends Ds{get kind(){return"TeXAtom"}get arity(){return-1}get notParent(){return!0}constructor(t,e,s){super(t,e,s),this.texclass=S.ORD,this.setProperty("texClass",this.texClass)}setTeXclass(t){return this.childNodes[0].setTeXclass(null),this.adjustTeXclass(t)}adjustTeXclass(t){return t}}Fn.defaults=Object.assign({},Ds.defaults),Fn.prototype.adjustTeXclass=Ps.prototype.adjustTeXclass;class qa extends Ds{get kind(){return"MathChoice"}get arity(){return 4}get notParent(){return!0}setInheritedAttributes(t,e,s,i){const n=e?0:Math.max(0,Math.min(s,2))+1,o=this.childNodes[n]||this.factory.create("mrow");this.parent.replaceChild(o,this),o.setInheritedAttributes(t,e,s,i)}}qa.defaults=Object.assign({},Ds.defaults);class Va extends Eo{get kind(){return"html"}getHTML(){return this.getXML()}setHTML(t,e=null){try{e.getAttribute(t,"data-mjx-hdw")}catch{t=e.node("span",{},[t])}return this.setXML(t,e)}getSerializedHTML(){return this.adaptor.outerHTML(this.xml)}textContent(){return this.adaptor.textContent(this.xml)}toString(){const t=this.adaptor.kind(this.xml);return`HTML=<${t}>...</${t}>`}verifyTree(t){!this.parent||this.parent.isToken||this.mError("HTML can only be a child of a token element",t,!0)}}const Su={[xo.prototype.kind]:xo,[Li.prototype.kind]:Li,[yo.prototype.kind]:yo,[Ps.prototype.kind]:Ps,[Cr.prototype.kind]:Cr,[Lr.prototype.kind]:Lr,[vo.prototype.kind]:vo,[$r.prototype.kind]:$r,[To.prototype.kind]:To,[Co.prototype.kind]:Co,[Lo.prototype.kind]:Lo,[Ao.prototype.kind]:Ao,[Pa.prototype.kind]:Pa,[Ba.prototype.kind]:Ba,[So.prototype.kind]:So,[Fa.prototype.kind]:Fa,[Ro.prototype.kind]:Ro,[Mo.prototype.kind]:Mo,[Io.prototype.kind]:Io,[wo.prototype.kind]:wo,[ko.prototype.kind]:ko,[Ai.prototype.kind]:Ai,[Oo.prototype.kind]:Oo,[Pn.prototype.kind]:Pn,[_i.prototype.kind]:_i,[Do.prototype.kind]:Do,[ja.prototype.kind]:ja,[Ua.prototype.kind]:Ua,[Po.prototype.kind]:Po,[Ha.prototype.kind]:Ha,[Bn.prototype.kind]:Bn,[Bo.prototype.kind]:Bo,[_a.prototype.kind]:_a,[Wa.prototype.kind]:Wa,[Fo.prototype.kind]:Fo,[jo.prototype.kind]:jo,[Uo.prototype.kind]:Uo,[Gr.prototype.kind]:Gr,[Fn.prototype.kind]:Fn,[qa.prototype.kind]:qa,[Kr.prototype.kind]:Kr,[Eo.prototype.kind]:Eo,[Va.prototype.kind]:Va};class za extends gu{get MML(){return this.node}}za.defaultNodes=Su;class Yr{constructor(){this.bits=0}static allocate(...t){for(const e of t){if(this.has(e))throw new Error("Bit already allocated for "+e);if(this.next===Yr.MAXBIT)throw new Error("Maximum number of bits already allocated");this.names.set(e,this.next),this.next<<=1}}static has(t){return this.names.has(t)}set(t){this.bits|=this.getBit(t)}clear(t){this.bits&=~this.getBit(t)}isSet(t){return!!(this.bits&this.getBit(t))}reset(){this.bits=0}getBit(t){const e=this.constructor.names.get(t);if(!e)throw new Error("Unknown bit-field name: "+t);return e}}function Ru(...r){const t=class extends Yr{};return t.allocate(...r),t}function Ho(r){return new Promise(function t(e,s){const i=n=>{var o;n.retry instanceof Promise?n.retry.then(()=>t(e,s)).catch(a=>s(a)):!((o=n.restart)===null||o===void 0)&&o.isCallback?MathJax.Callback.After(()=>t(e,s),n.restart):s(n)};try{const n=r();n instanceof Promise?n.then(o=>e(o)).catch(o=>i(o)):e(n)}catch(n){i(n)}})}function jn(r){const t=new Error("MathJax retry -- an asynchronous action is required; try using one of the promise-based functions and await its resolution.");throw t.retry=r,t}Yr.MAXBIT=1<<31,Yr.next=1,Yr.names=new Map;var vh=function(r,t,e,s){return new(e||(e=Promise))(function(i,n){function o(h){try{c(s.next(h))}catch(u){n(u)}}function a(h){try{c(s.throw(h))}catch(u){n(u)}}function c(h){var u;h.done?i(h.value):(u=h.value,u instanceof e?u:new e(function(x){x(u)})).then(o,a)}c((s=s.apply(r,[])).next())})};class Th extends ii{static create(t){const e=new this;for(const s of Object.keys(t)){const[i,n]=this.action(s,t[s]);n&&e.add(i,n)}return e}static action(t,e){let s,i,n=!0;const o=e[0];if(e.length===1||typeof e[1]=="boolean")e.length===2&&(n=e[1]),[s,i]=this.methodActions(t);else if(typeof e[1]=="string")if(typeof e[2]=="string"){e.length===4&&(n=e[3]);const[a,c]=e.slice(1);[s,i]=this.methodActions(a,c)}else e.length===3&&(n=e[2]),[s,i]=this.methodActions(e[1]);else e.length===4&&(n=e[3]),[s,i]=e.slice(1);return[{id:t,renderDoc:s,renderMath:i,convert:n},o]}static methodActions(t,e=t){return[s=>(t&&s[t](),!1),(s,i)=>(e&&s[e](i),!1)]}renderDoc(t,e=K.UNPROCESSED){for(const s of this.items)if(s.priority>=e&&s.item.renderDoc(t))return}renderMath(t,e,s=K.UNPROCESSED){for(const i of this.items)if(i.priority>=s&&i.item.renderMath(t,e))return}renderConvert(t,e,s=K.LAST){for(const i of this.items)if(i.priority>s||i.item.convert&&i.item.renderMath(t,e))return}findID(t){for(const e of this.items)if(e.item.id===t)return e.item;return null}}const Mu={all:!1,processed:!1,inputJax:null,outputJax:null},Iu={all:!0,processed:!0,inputJax:[],outputJax:[]};class Uf extends Tr{compile(t){return null}}class Hf extends On{typeset(t,e=null){return null}escaped(t,e){return null}}class wu extends bh{}class Wi{constructor(t,e,s){const i=this.constructor;this.document=t,this.options=Ws(ms({},i.OPTIONS),s),this.math=new(this.options.MathList||wu),this.renderActions=Th.create(this.options.renderActions),this._actionPromises=[],this._readyPromise=Promise.resolve(),this.processed=new Wi.ProcessBits,this.outputJax=this.options.OutputJax||new Hf;let n=this.options.InputJax||[new Uf];Array.isArray(n)||(n=[n]),this.inputJax=n,this.adaptor=e,this.outputJax.setAdaptor(e),this.inputJax.map(o=>o.setAdaptor(e)),this.mmlFactory=this.options.MmlFactory||new za,this.inputJax.map(o=>o.setMmlFactory(this.mmlFactory)),this.outputJax.initialize(),this.inputJax.map(o=>o.initialize())}get kind(){return this.constructor.KIND}addRenderAction(t,...e){const[s,i]=Th.action(t,e);this.renderActions.add(s,i)}removeRenderAction(t){const e=this.renderActions.findID(t);e&&this.renderActions.remove(e)}render(){return this.clearPromises(),this.renderActions.renderDoc(this),this}renderPromise(){return this.whenReady(()=>Ho(()=>vh(this,void 0,void 0,function*(){return this.render(),yield this.actionPromises(),this.clearPromises(),this})))}rerender(t=K.RERENDER){return this.state(t-1),this.render(),this}rerenderPromise(t=K.RERENDER){return this.whenReady(()=>Ho(()=>vh(this,void 0,void 0,function*(){return this.rerender(t),yield this.actionPromises(),this.clearPromises(),this})))}convert(t,e={}){let{format:s,display:i,end:n,ex:o,em:a,containerWidth:c,scale:h,family:u}=Ws({format:this.inputJax[0].name,display:!0,end:K.LAST,em:16,ex:8,containerWidth:null,scale:1,family:""},e);c===null&&(c=80*o);const x=this.inputJax.reduce((I,q)=>q.name===s?q:I,null),A=new this.options.MathItem(t,x,i);return A.start.node=this.adaptor.body(this.document),A.setMetrics(a,o,c,h),u&&this.outputJax.options.mtextInheritFont&&(A.outputData.mtextFamily=u),u&&this.outputJax.options.merrorInheritFont&&(A.outputData.merrorFamily=u),this.clearPromises(),A.convert(this,n),A.typesetRoot||A.root}convertPromise(t,e={}){return this.whenReady(()=>Ho(()=>vh(this,void 0,void 0,function*(){const s=this.convert(t,e);return yield this.actionPromises(),this.clearPromises(),s})))}whenReady(t){return this._readyPromise=this._readyPromise.catch(e=>{}).then(()=>{const e=this._readyPromise;this._readyPromise=Promise.resolve();const s=t(),i=this._readyPromise.then(()=>s);return this._readyPromise=e,i})}actionPromises(){return Promise.all(this._actionPromises)}clearPromises(){this._actionPromises=[]}savePromise(t){this._actionPromises.push(t)}findMath(t=null){return this.processed.set("findMath"),this}compile(){if(!this.processed.isSet("compile")){const t=[];for(const e of this.math)this.compileMath(e),e.inputData.recompile!==void 0&&t.push(e);for(const e of t){const s=e.inputData.recompile;e.state(s.state),e.inputData.recompile=s,this.compileMath(e)}this.processed.set("compile")}return this}compileMath(t){try{t.compile(this)}catch(e){if(e.retry||e.restart)throw e;this.options.compileError(this,t,e),t.inputData.error=e}}compileError(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}typeset(){if(!this.processed.isSet("typeset")){for(const t of this.math)try{t.typeset(this)}catch(e){if(e.retry||e.restart)throw e;this.options.typesetError(this,t,e),t.outputData.error=e}this.processed.set("typeset")}return this}typesetError(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}getMetrics(){return this.processed.isSet("getMetrics")||(this.outputJax.getMetrics(this),this.processed.set("getMetrics")),this}updateDocument(){if(!this.processed.isSet("updateDocument")){for(const t of this.math.reversed())t.updateDocument(this);this.processed.set("updateDocument")}return this}removeFromDocument(t=!1){return this}state(t,e=!1){for(const s of this.math)s.state(t,e);return t<K.INSERTED&&this.processed.clear("updateDocument"),t<K.TYPESET&&(this.processed.clear("typeset"),this.processed.clear("getMetrics")),t<K.COMPILED&&this.processed.clear("compile"),t<K.FINDMATH&&this.processed.clear("findMath"),this}reset(t={processed:!0}){return(t=Ws(Object.assign({},Mu),t)).all&&Object.assign(t,Iu),t.processed&&this.processed.reset(),t.inputJax&&this.inputJax.forEach(e=>e.reset(...t.inputJax)),t.outputJax&&this.outputJax.reset(...t.outputJax),this}clear(){return this.reset(),this.math.clear(),this}done(){return Promise.resolve()}concat(t){return this.math.merge(t),this}clearMathItemsWithin(t){const e=this.getMathItemsWithin(t);for(const s of e.slice(0).reverse())s.clear();return this.math.remove(...e),e}getMathItemsWithin(t){Array.isArray(t)||(t=[t]);const e=this.adaptor,s=[],i=e.getElements(t,this.document);t:for(const n of this.math)for(const o of i)if(n.start.node&&e.contains(o,n.start.node)){s.push(n);continue t}return s}}Wi.KIND="MathDocument",Wi.OPTIONS={OutputJax:null,InputJax:null,MmlFactory:null,MathList:wu,MathItem:class extends Eh{},compileError:(r,t,e)=>{r.compileError(t,e)},typesetError:(r,t,e)=>{r.typesetError(t,e)},renderActions:hs({find:[K.FINDMATH,"findMath","",!1],compile:[K.COMPILED],metrics:[K.METRICS,"getMetrics","",!1],typeset:[K.TYPESET],update:[K.INSERTED,"updateDocument",!1]})},Wi.ProcessBits=Ru("findMath","compile","getMetrics","typeset","updateDocument");class _f extends Wi{}class Ch{constructor(t,e=5){this.documentClass=_f,this.adaptor=t,this.priority=e}get name(){return this.constructor.NAME}handlesDocument(t){return!1}create(t,e){return new this.documentClass(t,this.adaptor,e)}}Ch.NAME="generic";class ku extends ii{register(t){return this.add(t,t.priority)}unregister(t){this.remove(t)}handlesDocument(t){for(const e of this){const s=e.item;if(s.handlesDocument(t))return s}throw new Error("Can't find handler for document")}document(t,e=null){return this.handlesDocument(t).create(t,e)}}class _o{static methodName(t){return"visit"+(t.charAt(0).toUpperCase()+t.substring(1)).replace(/[^a-z0-9_]/gi,"_")+"Node"}constructor(t){this.nodeHandlers=new Map;for(const e of t.getKinds()){const s=this[_o.methodName(e)];s&&this.nodeHandlers.set(e,s)}}visitTree(t,...e){return this.visitNode(t,...e)}visitNode(t,...e){return(this.nodeHandlers.get(t.kind)||this.visitDefault).call(this,t,...e)}visitDefault(t,...e){if("childNodes"in t)for(const s of t.childNodes)this.visitNode(s,...e)}setNodeHandler(t,e){this.nodeHandlers.set(t,e)}removeNodeHandler(t){this.nodeHandlers.delete(t)}}const Ou="data-mjx-";class Un extends _o{constructor(t=null){t||(t=new za),super(t)}visitTextNode(t,...e){}visitXMLNode(t,...e){}visitHtmlNode(t,...e){}getKind(t){const e=t.kind;return Jr(e,this.constructor.rename,e)}getAttributeList(t){const e=this.constructor,s=Jr(t.kind,e.defaultAttributes,{}),i=Object.assign({},s,this.getDataAttributes(t),t.attributes.getAllAttributes()),n=e.variants;return Object.hasOwn(i,"mathvariant")&&(Object.hasOwn(n,i.mathvariant)?i.mathvariant=n[i.mathvariant]:t.getProperty("ignore-variant")&&delete i.mathvariant),i}getDataAttributes(t){const e={},s=t.attributes.getExplicit("mathvariant"),i=this.constructor.variants;s&&(t.getProperty("ignore-variant")||Object.hasOwn(i,s))&&this.setDataAttribute(e,"variant",s),t.getProperty("variantForm")&&this.setDataAttribute(e,"alternate","1"),t.getProperty("pseudoscript")&&this.setDataAttribute(e,"pseudoscript","true"),t.getProperty("autoOP")===!1&&this.setDataAttribute(e,"auto-op","false");const n=t.getProperty("vbox");n&&this.setDataAttribute(e,"vbox",n);const o=t.getProperty("scriptalign");o&&this.setDataAttribute(e,"script-align",o);const a=t.getProperty("mathaccent");a!==void 0&&(a&&!t.isMathAccent()||!a&&!t.isMathAccentWithWidth())&&this.setDataAttribute(e,"mathaccent",a.toString());const c=t.getProperty("texClass");if(c!==void 0){let h=!0;if(c===S.OP&&t.isKind("mi")){const u=t.getText();h=!(u.length>1&&u.match(Li.operatorName))}h&&this.setDataAttribute(e,"texclass",c<0?"NONE":yh[c])}return t.getProperty("smallmatrix")&&this.setDataAttribute(e,"smallmatrix","true"),e}setDataAttribute(t,e,s){t[Ou+e]=s}}Un.rename={TeXAtom:"mrow"},Un.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"},Un.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}};class Wf extends Un{constructor(){super(...arguments),this.document=null}visitTree(t,e){this.document=e;const s=e.createElement("top");return this.visitNode(t,s),this.document=null,s.firstChild}visitTextNode(t,e){e.appendChild(this.document.createTextNode(t.getText()))}visitXMLNode(t,e){e.appendChild(t.getXML().cloneNode(!0))}visitHtmlNode(t,e){e.appendChild(t.getHTML().cloneNode(!0))}visitInferredMrowNode(t,e){for(const s of t.childNodes)this.visitNode(s,e)}visitDefault(t,e){const s=this.document.createElement(this.getKind(t));this.addAttributes(t,s);for(const i of t.childNodes)this.visitNode(i,s);e.appendChild(s)}addAttributes(t,e){const s=this.getAttributeList(t);for(const i of Object.keys(s))e.setAttribute(i,s[i].toString())}}class Xa extends Un{visitTree(t){return this.visitNode(t,"")}visitTextNode(t,e){return this.quoteHTML(t.getText())}visitXMLNode(t,e){return e+t.getSerializedXML()}visitHtmlNode(t,e){return t.getSerializedHTML()}visitInferredMrowNode(t,e){const s=[];for(const i of t.childNodes)s.push(this.visitNode(i,e));return s.join(`
15`)}visitAnnotationNode(t,e){const s=this.childNodeMml(t,"","");return`${e}<annotation${this.getAttributes(t)}>${s}</annotation>`}visitDefault(t,e){const s=this.getKind(t),[i,n]=t.isToken||t.childNodes.length===0?["",""]:[`
16`,e],o=this.childNodeMml(t,e+"  ",i),a=o.match(/\S/)?i+o+n:"";return`${e}<${s}${this.getAttributes(t)}>${a}</${s}>`}childNodeMml(t,e,s){let i="";for(const n of t.childNodes)i+=this.visitNode(n,e)+s;return i}getAttributes(t){const e=[],s=this.getAttributeList(t);for(const i of Object.keys(s)){const n=String(s[i]);n!==void 0&&e.push(i+'="'+this.quoteHTML(n)+'"')}return e.length?" "+e.join(" "):""}quoteHTML(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/[\uD800-\uDBFF]./g,this.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,this.toEntity)}toEntity(t){return Au(t)}
vendor: 13,213 bytes, lines 16-23
16}class Du{get kind(){return this.node.kind}constructor(t,e){this.factory=t,this.node=e}wrap(t){return this.factory.wrap(t)}walkTree(t,e){if(t(this,e),"childNodes"in this)for(const s of this.childNodes)s&&s.walkTree(t,e);return e}}class Pu extends bo{wrap(t,...e){return this.create(t.kind,t,...e)}}const gs={version:ui,context:Fe,handlers:new ku,document:function(r,t){return gs.handlers.document(r,t)},handleRetriesFor:Ho,retryAfter:jn,asyncLoad:null,asyncIsSynchronous:!1};class Bu extends Eh{get adaptor(){return this.inputJax.adaptor}constructor(t,e,s=!0,i={node:null,n:0,delim:""},n={node:null,n:0,delim:""}){super(t,e,s,i,n)}updateDocument(t){if(this.state()<K.INSERTED){if(this.inputJax.processStrings){let 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.parent(e)&&this.adaptor.replace(this.typesetRoot,e);else{for(this.start.n&&(e=this.adaptor.split(e,this.start.n));e!==this.end.node;){const s=this.adaptor.next(e);this.adaptor.remove(e),e=s}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(K.INSERTED)}}updateStyleSheet(t){t.addStyleSheet()}removeFromDocument(t=!1){if(super.removeFromDocument(t),this.state()>=K.TYPESET){const e=this.adaptor,s=this.start.node;let i=e.text("");if(t){const n=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings)i=e.text(n);else{const o=e.parse(n,"text/html");i=e.firstChild(e.body(o))}}e.parent(s)&&e.replace(i,s),this.start.node=this.end.node=i,this.start.n=this.end.n=0}}}class Fu extends bh{}class Ja{constructor(t=null){const e=this.constructor;this.options=Ws(ms({},e.OPTIONS),t),this.init(),this.getPatterns()}init(){this.strings=[],this.string="",this.snodes=[],this.nodes=[],this.stack=[]}getPatterns(){const t=Ra(this.options.skipHtmlTags),e=Ra(this.options.ignoreHtmlClass),s=Ra(this.options.processHtmlClass);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i"),this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+e.join("|")+")(?: |$)"),this.processHtmlClass=new RegExp("(?:^| )(?:"+s+")(?: |$)")}pushString(){this.string.match(/\S/)&&(this.strings.push(this.string),this.nodes.push(this.snodes)),this.string="",this.snodes=[]}extendString(t,e){this.snodes.push([t,e.length]),this.string+=e}handleText(t,e){return e||this.extendString(t,this.adaptor.value(t)),this.adaptor.next(t)}handleTag(t,e){if(!e){const s=this.options.includeHtmlTags[this.adaptor.kind(t)];s instanceof Function?this.extendString(t,s(t,this.adaptor)):this.extendString(t,s)}return this.adaptor.next(t)}handleContainer(t,e){this.pushString();const s=this.adaptor.getAttribute(t,"class")||"",i=this.adaptor.kind(t)||"",n=this.processHtmlClass.exec(s);let o=t;return!this.adaptor.firstChild(t)||this.adaptor.getAttribute(t,"data-MJX")||!n&&this.skipHtmlTags.exec(i)?o=this.adaptor.next(t):(this.adaptor.next(t)&&this.stack.push([this.adaptor.next(t),e]),o=this.adaptor.firstChild(t),e=(e||this.ignoreHtmlClass.exec(s))&&!n),[o,e]}handleOther(t,e){return this.pushString(),this.adaptor.next(t)}find(t){this.init();const e=this.adaptor.next(t);let s=!1;const i=this.options.includeHtmlTags;for(;t&&t!==e;){const o=this.adaptor.kind(t);o==="#text"?t=this.handleText(t,s):Object.hasOwn(i,o)?t=this.handleTag(t,s):o?[t,s]=this.handleContainer(t,s):t=this.handleOther(t,s),!t&&this.stack.length&&(this.pushString(),[t,s]=this.stack.pop())}this.pushString();const n=[this.strings,this.nodes];return this.init(),n}}Ja.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","math","select","option","mjx-container"],includeHtmlTags:hs({br:`
17`,wbr:"","#comment":""}),ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"},Dn("STYLES",K.INSERTED+1);class Ka extends Wi{constructor(t,e,s){const[i,n]=fo(s,Ja.OPTIONS);super(t,e,i),this.domStrings=this.options.DomStrings||new Ja(n),this.domStrings.adaptor=e,this.styles=[]}findPosition(t,e,s,i){const n=this.adaptor,o=1/(i[t].length||1);let a=t;for(const[c,h]of i[t]){if(e<=h&&n.kind(c)==="#text")return{i:a,node:c,n:Math.max(e,0),delim:s};e-=h,a+=o}return{node:null,n:0,delim:s}}mathItem(t,e,s){const i=t.math,n=this.findPosition(t.n,t.start.n,t.open,s),o=this.findPosition(t.n,t.end.n,t.close,s);return new this.options.MathItem(i,e,t.display,n,o)}findMath(t){if(!this.processed.isSet("findMath")){this.adaptor.document=this.document,t=Ws({elements:this.options.elements||[this.adaptor.body(this.document)]},t);const e=this.adaptor.getElements(t.elements,this.document);for(const s of this.inputJax){const i=s.processStrings?this.findMathFromStrings(s,e):this.findMathFromDOM(s,e);this.math.merge(i)}this.processed.set("findMath")}return this}findMathFromStrings(t,e){const s=[],i=[];for(const o of e){const[a,c]=this.domStrings.find(o);s.push(...a),i.push(...c)}const n=new this.options.MathList;for(const o of t.findMath(s))n.push(this.mathItem(o,t,i));return n}findMathFromDOM(t,e){const s=[];for(const i of e)for(const n of t.findMath(i))s.push(new this.options.MathItem(n.math,t,n.display,n.start,n.end));return new this.options.MathList(...s)}updateDocument(){return this.processed.isSet("updateDocument")||(this.addPageElements(),this.addStyleSheet(),super.updateDocument(),this.processed.set("updateDocument")),this}addPageElements(){const t=this.adaptor,e=t.body(this.document),s=this.documentPageElements();if(s){const i=t.firstChild(e);i?t.insert(s,i):t.append(e,s)}}addStyleSheet(){const t=this.documentStyleSheet(),e=this.adaptor;if(t&&!e.parent(t)){const s=e.head(this.document),i=this.findSheet(s,e.getAttribute(t,"id"));i?e.replace(t,i):e.append(s,t)}}findSheet(t,e){if(e){for(const s of this.adaptor.tags(t,"style"))if(this.adaptor.getAttribute(s,"id")===e)return s}return null}removeFromDocument(t=!1){if(this.processed.isSet("updateDocument"))for(const e of this.math)e.state()>=K.INSERTED&&e.state(K.TYPESET,t);return this.processed.clear("updateDocument"),this}documentStyleSheet(){return this.outputJax.styleSheet(this)}documentPageElements(){return this.outputJax.pageElements(this)}addStyles(t){this.styles.push(t),"insertStyles"in this.outputJax&&this.outputJax.insertStyles(t)}getStyles(){return this.styles}}Ka.KIND="HTML",Ka.OPTIONS=Object.assign(Object.assign({},Wi.OPTIONS),{renderActions:hs(Object.assign(Object.assign({},Wi.OPTIONS.renderActions),{styles:[K.STYLES,"","updateStyleSheet",!1]})),MathList:Fu,MathItem:Bu,DomStrings:null});class Lh extends Ch{constructor(){super(...arguments),this.documentClass=Ka}handlesDocument(t){const e=this.adaptor;if(typeof t=="string")try{t=e.parse(t,"text/html")}catch{}return t instanceof e.window.Document||t instanceof e.window.HTMLElement||t instanceof e.window.DocumentFragment}create(t,e){const s=this.adaptor;if(typeof t=="string")t=s.parse(t,"text/html");else if(t instanceof s.window.HTMLElement||t instanceof s.window.DocumentFragment){const i=t;t=s.parse("","text/html"),s.append(s.body(t),i)}return super.create(t,e)}}function qf(r){const t=new Lh(r);return gs.handlers.register(t),t}class qi{get cssText(){return this.getStyleString()}constructor(t=null){this.styles={},this.addStyles(t)}addStyles(t){if(t)for(const e of Object.keys(t))this.styles[e]||(this.styles[e]={}),Object.assign(this.styles[e],t[e])}removeStyles(...t){for(const e of t)delete this.styles[e]}clear(){this.styles={}}getStyleString(){return this.getStyleRules().join(`
18
19`)}getStyleRules(t=this.styles,e=""){const s=Object.keys(t),i=new Array(s.length);let n=0;for(const o of s){const a=t[o];i[n++]=`${e}${o} {
20${this.getStyleDefString(a,e)}
21${e}}`}return i}getStyleDefString(t,e){const s=Object.keys(t),i=new Array(s.length);let n=0;for(const o of s)i[n++]=t[o]instanceof Object?e+this.getStyleRules({[o]:t[o]},e+"  ").join(`
22`+e):"  "+e+o+": "+t[o]+";";return i.join(`
23`+e)}}var Ah;const $a=!!(!((Ah=Fe.window)===null||Ah===void 0)&&Ah.HTMLDialogElement);class fi{constructor(t){this.minW=200,this.minH=80,this.tx=0,this.ty=0,this.dragging=!1,this.events=[["mousemove",this.MouseMove.bind(this)],["mouseup",this.MouseUp.bind(this)]],this.mode="",this.actions={down:{move:o=>{o.dialog.classList.add("mjx-moving")}},move:{move:(o,a)=>[a.x-o.x,a.y-o.y,0,0],top:(o,a)=>[0,(a.y-o.y)/2,0,o.y-a.y],bottom:(o,a)=>[0,(a.y-o.y)/2,0,a.y-o.y],left:(o,a)=>[(a.x-o.x)/2,0,o.x-a.x,0],right:(o,a)=>[(a.x-o.x)/2,0,a.x-o.x,0],topleft:(o,a)=>[(a.x-o.x)/2,(a.y-o.y)/2,o.x-a.x,o.y-a.y],topright:(o,a)=>[(a.x-o.x)/2,(a.y-o.y)/2,a.x-o.x,o.y-a.y],botleft:(o,a)=>[(a.x-o.x)/2,(a.y-o.y)/2,o.x-a.x,a.y-o.y],botright:(o,a)=>[(a.x-o.x)/2,(a.y-o.y)/2,a.x-o.x,a.y-o.y]},up:{move:o=>{o.dialog.classList.remove("mjx-moving")}},keymove:{left:()=>[-5,0,0,0],right:()=>[5,0,0,0],up:()=>[0,-5,0,0],down:()=>[0,5,0,0]},bigmove:{left:()=>[-20,0,0,0],right:()=>[20,0,0,0],up:()=>[0,-20,0,0],down:()=>[0,20,0,0]},keysize:{left:()=>[-3,0,-6,0],right:()=>[3,0,6,0],up:()=>[0,-3,0,-6],down:()=>[0,3,0,6]},bigsize:{left:()=>[-10,0,-20,0],right:()=>[10,0,20,0],up:()=>[0,-10,0,-20],down:()=>[0,10,0,20]}};const{adaptor:e,node:s=null}=t;this.init(e),this.node=s,this.background=$a?null:e.node("mjx-dialog-background"),this.x=this.y=0,this.dragging=!1,this.action="",this.dialog=this.html(t),this.title=this.dialog.firstChild.firstChild.firstChild,this.content=this.dialog.firstChild.firstChild.nextSibling;const i=this.dialog.lastChild;i.addEventListener("click",this.closeDialog.bind(this)),i.addEventListener("keydown",this.actionKey.bind(this,this.closeDialog.bind(this)));const n=this.dialog.lastChild.previousSibling;n.addEventListener("click",this.helpDialog.bind(this,e)),n.addEventListener("keydown",this.actionKey.bind(this,this.helpDialog.bind(this,e))),this.noDrag=Array.from(this.dialog.querySelectorAll('[data-drag="none"]'))}init(t){const e=this.constructor;if(!t.document.head.querySelector("#"+e.styleId)){const s=t.node("style",{id:e.styleId});s.textContent=new qi(e.styles).cssText,t.document.head.append(s)}}html(t){const{title:e,message:s,adaptor:i,styles:n=null,extraNodes:o=[],className:a=fi.className}=t;if(n){const u=i.node("style");u.textContent=new qi(n).cssText,o.unshift(u)}const c="mjx-dialog-label-"+fi.id++,h=i.node("dialog",{closedby:"any",class:("mjx-dialog "+a).trim()},[i.node("mjx-dialog",{"aria-labeledby":c},[i.node("mjx-title",{},[i.node("h1",{id:c,tabIndex:0})]),i.node("div",{"data-drag":"none",tabIndex:0})]),...o,i.node("mjx-dialog-spacer",{"aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"top","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"bottom","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"left","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"right","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"topleft","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"topright","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"botleft","aria-hidden":!0}),i.node("mjx-dialog-drag",{"data-drag":"botright","aria-hidden":!0}),i.node("mjx-dialog-help",{class:"mjx-dialog-button","data-drag":"none",tabIndex:0,role:"button","aria-label":"Dialog Help"},[i.node("mjx-dialog-icon",{"aria-hidden":!0},[i.text("?")])]),i.node("mjx-dialog-close",{class:"mjx-dialog-button","data-drag":"none",tabIndex:0,role:"button","aria-label":"Close Dialog Box"},[i.node("mjx-dialog-icon",{"aria-hidden":!0},[i.text("×")])])]);return h.firstChild.firstChild.firstChild.innerHTML=e,h.firstChild.childNodes[1].innerHTML=s,h}attach(){$a?(this.dialog.addEventListener("mousedown",this.MouseDown.bind(this)),this.dialog.addEventListener("keydown",this.KeyDown.bind(this),!0),document.body.append(this.dialog),this.dialog.showModal()):(this.background.addEventListener("mousedown",this.MouseDown.bind(this)),this.background.addEventListener("keydown",this.KeyDown.bind(this),!0),this.dialog.setAttribute("tabindex","0"),this.dialog.addEventListener("click",this.stop),this.background.append(this.dialog),document.body.append(this.background)),Fe.window.addEventListener("visibilitychange",this.Visibility.bind(this)),this.minW=Math.min(this.minW,this.dialog.clientWidth-8),this.minH=Math.min(this.minH,this.dialog.clientHeight-this.title.offsetHeight-8),this.title.focus()}dragAction(t,e=null){e&&this.stop(e);const s=this.actions[t][this.action],i=s?s(this,e):null;if(!i)return;let[n,o,a,c]=i;if(a){const h=this.w+a;h>=this.minW?(this.x=e?.x,this.w=h,this.dialog.style.maxWidth=this.dialog.style.width=h+"px"):n=0}if(c){const h=this.h+c;h>=this.minH+this.title.offsetHeight?(this.y=e?.y,this.h=h,this.dialog.style.maxHeight=this.dialog.style.height=h+"px"):o=0}(n||o)&&(n&&(this.x=e?.x,this.tx+=n||0),o&&(this.y=e?.y,this.ty+=o||0),this.dialog.style.transform=`translate(${this.tx}px, ${this.ty}px)`)}MouseDown(t){const e=t.target;if(!(t.buttons!==1||t.shiftKey||t.metaKey||t.altKey||t.ctrlKey))if(this.inDialog(t)){for(const s of this.noDrag)if(e===s||s.contains(e))return;this.action=e.getAttribute("data-drag")||"move",this.startDrag(t),this.dragAction("down",t)}else this.closeDialog(t)}
23MouseMove(t){t.buttons!==1&&this.endDrag(),this.dragging&&this.dragAction("move",t)}MouseUp(t){this.dragging&&(this.dragAction("up",t),this.endDrag())}Visibility(){Fe.document.hidden&&this.closeDialog()}KeyDown(t){const e=this.constructor.keyActions.get(t.key);e&&e(this,t)}escKey(t){this.closeDialog(t)}aKey(t){(t.ctrlKey||t.metaKey)&&(this.selectAll(),this.stop(t))}mKey(t){this.mode=this.mode==="move"?"":"move",this.stop(t)}sKey(t){this.mode=this.mode==="size"?"":"size",this.stop(t)}arrowKey(t,e){t.ctrlKey||this.dragging||(this.action=e,this.getWH(),t.altKey||this.mode==="move"?(this.dragAction(t.shiftKey?"bigmove":"keymove"),this.stop(t)):(t.metaKey||this.mode==="size")&&(this.dragAction(t.shiftKey?"bigsize":"keysize"),this.stop(t)),this.action="")}actionKey(t,e){e.code!=="Enter"&&e.code!=="Space"||t(e)}selectAll(){document.getSelection().selectAllChildren(this.content)}copyToClipboard(){this.selectAll();try{document.execCommand("copy")}catch(t){alert(`Can't copy to clipboard: ${t.message}`)}document.getSelection().removeAllRanges()}startDrag(t){this.x=t.x,this.y=t.y,this.getWH(),this.dragging=!0;const e=this.background||this.dialog;for(const[s,i]of this.events)e.addEventListener(s,i)}getWH(){this.w=this.dialog.clientWidth-8,this.h=this.dialog.clientHeight-8}endDrag(){this.action="",this.dragging=!1;const t=this.background||this.dialog;for(const[e,s]of this.events)t.removeEventListener(e,s)}closeDialog(t){var e;$a?(this.dialog.close(),this.dialog.remove()):this.background.remove(),(e=this.node)===null||e===void 0||e.focus(),t&&this.stop(t)}helpDialog(t,e){new fi({title:"MathJax Dialog Help",message:this.constructor.helpMessage,adaptor:t,className:"mjx-dialog-help",styles:{".mjx-dialog-help":{"max-width":"calc(min(50em, 80%))"}}}).attach(),this.stop(e)}inDialog(t){if(!this.dialog.contains(t.target))return!1;const{x:e,y:s}=t,{left:i,right:n,top:o,bottom:a}=this.dialog.getBoundingClientRect();return e>=i&&e<=n&&s>=o&&s<=a}stop(t){t.preventDefault&&t.preventDefault(),t.stopImmediatePropagation?t.stopImmediatePropagation():t.stopPropagation&&t.stopPropagation()}}fi.keyActions=new Map([["Escape",(r,t)=>r.escKey(t)],["a",(r,t)=>r.aKey(t)],["m",(r,t)=>r.mKey(t)],["s",(r,t)=>r.sKey(t)],["ArrowRight",(r,t)=>r.arrowKey(t,"right")],["ArrowLeft",(r,t)=>r.arrowKey(t,"left")],["ArrowUp",(r,t)=>r.arrowKey(t,"up")],["ArrowDown",(r,t)=>r.arrowKey(t,"down")]]),fi.styleId="MJX-DIALOG-styles",fi.className="",fi.id=0,fi.styles={"mjx-dialog-background":{display:"flex","flex-direction":"column","justify-content":"center",position:"fixed",top:0,left:0,right:0,bottom:0,"z-index":1001},".mjx-dialog":{"max-width":"calc(min(60em, 90%))","max-height":"calc(min(50em, 85%))",border:"3px outset","border-radius":"15px",color:"black","background-color":"#DDDDDD","box-shadow":"0px 10px 20px #808080",padding:"4px 4px",cursor:"grab",overflow:"visible",display:"flex","flex-direction":"column","align-items":"center",position:"fixed",top:"-4%"},".mjx-dialog.mjx-moving":{cursor:"grabbing"},'.mjx-dialog > input[type="button"]':{width:"fit-content"},".mjx-dialog > mjx-dialog-spacer":{display:"block",height:".75em","flex-shrink":0},".mjx-dialog::backdrop":{opacity:0,cursor:"default"},"mjx-dialog":{all:"initial",cursor:"inherit",width:"100%",display:"flex","flex-direction":"column","flex-grow":1,"flex-shrink":1,overflow:"hidden"},"mjx-dialog > mjx-title":{display:"block","text-align":"center",margin:".25em 1.75em",overflow:"hidden","white-space":"nowrap","-webkit-user-select":"none","user-select":"none","flex-shrink":0},"mjx-dialog > mjx-title > h1":{"font-size":"125%",margin:0},"mjx-dialog > div":{margin:"0 1em .5em",padding:"8px 18px",overflow:"auto",border:"2px inset black","background-color":"white","text-align":"left",cursor:"default","flex-grow":1,"flex-shrink":1},"mjx-dialog > div > pre":{margin:0},".mjx-dialog-button":{position:"absolute",top:"6px",height:"17px",width:"17px",cursor:"default",display:"block",border:"2px solid #AAA","border-radius":"18px","font-family":'"Courier New", Courier',"text-align":"center",color:"#F0F0F0","-webkit-user-select":"none","user-select":"none"},".mjx-dialog-button:hover":{color:"white !important",border:"2px s
23olid #CCC !important"},".mjx-dialog-button > mjx-dialog-icon":{display:"block","background-color":"#AAA",border:"1.5px solid","border-radius":"18px","line-height":0,padding:"8px 0 6px"},".mjx-dialog-button > mjx-dialog-icon:hover":{"background-color":"#CCC !important"},"mjx-dialog-close":{right:"6px","font-size":"20px;"},"mjx-dialog-help":{left:"6px","font-size":"14px;","font-weight":"bold"},".mjx-dialog-help mjx-dialog-help":{display:"none"},"mjx-dialog kbd":{display:"inline-block",padding:"3px 5px","font-size":"11px","line-height":"10px",color:"#444d56","vertical-align":"middle","background-color":"#fafbfc",border:"solid 1.5px #c6cbd1","border-bottom-color":"#959da5","border-radius":"3px","box-shadow":"inset -.5px -1px 0 #959da5"},'mjx-dialog-drag[data-drag="top"]':{height:"5px",position:"absolute",top:"-3px",left:"10px",right:"10px",cursor:"ns-resize"},'mjx-dialog-drag[data-drag="bottom"]':{height:"5px",position:"absolute",bottom:"-3px",left:"10px",right:"10px",cursor:"ns-resize"},'mjx-dialog-drag[data-drag="left"]':{width:"5px",position:"absolute",left:"-3px",top:"10px",bottom:"10px",cursor:"ew-resize"},'mjx-dialog-drag[data-drag="right"]':{width:"5px",position:"absolute",right:"-3px",top:"10px",bottom:"10px",cursor:"ew-resize"},'mjx-dialog-drag[data-drag="topleft"]':{width:"13px",height:"13px",position:"absolute",left:"-3px",top:"-3px",cursor:"nwse-resize"},'mjx-dialog-drag[data-drag="topright"]':{width:"13px",height:"13px",position:"absolute",right:"-3px",top:"-3px",cursor:"nesw-resize"},'mjx-dialog-drag[data-drag="botleft"]':{width:"13px",height:"13px",position:"absolute",left:"-3px",bottom:"-3px",cursor:"nesw-resize"},'mjx-dialog-drag[data-drag="botright"]':{width:"13px",height:"13px",position:"absolute",right:"-3px",bottom:"-3px",cursor:"nwse-resize"},"@media (prefers-color-scheme: dark)":{".mjx-dialog":{"background-color":"#303030","box-shadow":"0px 10px 20px #000",border:"3px outset #7C7C7C"},"mjx-dialog":{color:"#E0E0E0"},"mjx-dialog > div":{border:"2px inset #7C7C7C","background-color":"#222025"},".mjx-dialog a[href]":{color:"#86A7F5"},".mjx-dialog a[href]:visited":{color:"#DD98E2"},"mjx-dialog kbd":{color:"#F8F8F8","background-color":"#545454",border:"solid 1.5px #7A7C7E","border-bottom-color":"#707070","box-shadow":"inset -.5px -1px 0 #818589"},".mjx-dialog-button":{border:"2px solid #686868",color:"#A4A4A4"},".mjx-dialog-button:hover":{color:"#CBCBCB !important",border:"2px solid #888888 !important"},".mjx-dialog-button > mjx-dialog-icon":{"background-color":"#646464"},".mjx-dialog-button > mjx-dialog-icon:hover":{"background-color":"#888888 !important"}}},fi.helpMessage=`
24    <p>The dialog boxes in MathJax are movable and sizeable.</p>
25
26    <p>For mouse users, dragging any of the edges will enlarge or shrink
27    the dialog box by moving that side.  Dragging any of the corners
28    changes the two sides that meet at that corner.  Dragging elsewhere on
29    the dialog frame will move the dialog without changing its size.</p>
30
31    <p>For keyboard users, there are two ways to adjust the position
32    and size of the dialog box.  The first is to hold the
33    <kbd>Alt</kbd> or <kbd>Option</kbd> key and press any of the arrow
34    keys to move the dialog box in the given direction.  Hold the
35    <kbd>Win</kbd> or <kbd>Command</kbd> key and press any of the
36    arrow keys to enlarge or shrink the dialog box.  Left and right
37    move the right-hand edge of the dialog, while up and down move the
38    bottom edge of the dialog.
39    </p>
40
41    <p>For some users, holding two keys down at once may be difficult,
42    so the second way is to press the <kbd>m</kbd> to start "move"
43    mode, then use the arrow keys to move the dialog box in the given
44    direction.  Press <kbd>m</kbd> again to stop moving the dialog.
45    Similarly, press <kbd>s</kbd> to start and stop "sizing" mode,
46    where the arrows will change the size of the dialog box.</p>
47
48    <p>Holding a <kbd>shift</kbd> key along with the arrow key will
49    make larger changes in the size or position, for either method
50    described above.</p>
51
52    <p>Use <kbd>Tab</kbd> to move among the text, buttons, and links
53    within the dialog.  The <kbd>Enter</kbd> or <kbd>Space</kbd> key
54    activates the focused item.  The <kbd>Escape</kbd> key closes the
55    dialog, as does clicking outside the dialog box, or clicking the
56    "×" icon in the upper right-hand corner of the dialog.</p>
57  `;class Qr extends fi{static post(t){const e=new this(t);return e.attach(),e}}function Sh(r){return gs.asyncLoad?new Promise((t,e)=>{const s=gs.asyncLoad(r);s instanceof Promise?s.then(i=>t(i)).catch(i=>e(i)):t(s)}):Promise.reject(`Can't load '${r}': No mathjax.asyncLoad method specified`)}const gi=1e6,Rh={px:1,in:96,cm:96/2.54,mm:96/25.4},Mh={em:1,ex:.431,pt:.1,pc:1.2,mu:1/18},ts={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
57/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:gi};function Ih(r,t=0,e=1,s=16){if(typeof r!="string"&&(r=String(r)),r===""||r==null)return t;if(ts[r])return ts[r];const i=r.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!i||i[0]==="")return t;const n=parseFloat(i[1]||"1"),o=i[2];return Object.hasOwn(Rh,o)?n*Rh[o]/s/e:Object.hasOwn(Mh,o)?n*Mh[o]:o==="%"?n/100*t:n*t}function wh(r){return(100*r).toFixed(1).replace(/\.?0+$/,"")+"%"}function Gt(r){return Math.abs(r)<.001?"0":r.toFixed(3).replace(/\.?0+$/,"")+"em"}function ju(r,t=-gi,e=16){return r*=e,t&&r<t&&(r=t),Math.abs(r)<.1?"0":r.toFixed(1).replace(/\.0$/,"")+"px"}class he{static zero(){return new he({h:0,d:0,w:0})}static empty(){return new he}constructor(t={w:0,h:-gi,d:-gi}){this.w=t.w||0,this.h="h"in t?t.h:-gi,this.d="d"in t?t.d:-gi,this.L=this.R=this.ic=this.oc=this.sk=this.dx=0,this.scale=this.rscale=1,this.pwidth=""}empty(){return this.w=0,this.h=this.d=-gi,this}clean(){this.w===-gi&&(this.w=0),this.h===-gi&&(this.h=0),this.d===-gi&&(this.d=0)}rescale(t){this.w*=t,this.h*=t,this.d*=t}combine(t,e=0,s=0){const i=t.rscale,n=e+i*(t.w+t.L+t.R),o=s+i*t.h,a=i*t.d-s;n>this.w&&(this.w=n),o>this.h&&(this.h=o),a>this.d&&(this.d=a)}append(t){const 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)}updateFrom(t){this.h=t.h,this.d=t.d,this.w=t.w,t.pwidth&&(this.pwidth=t.pwidth)}copy(){const t=new he;return Object.assign(t,this),t}}he.fullWidth="100%",he.boxSides=[["Top",0,"h"],["Right",1,"w"],["Bottom",2,"d"],["Left",3,"w"]];const Uu={loadMissingEntities:!0},Si={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:"â
57‹†",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:"‘"},kh={};function Vf(r,t){Object.assign(Si,r),kh[t]=!0}function zf(r){delete Si[r]}function Hu(r){return r.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,Xf)}function Xf(r,t){if(t.charAt(0)==="#")return _u(t.slice(1));if(Si[t])return Si[t];if(Uu.loadMissingEntities){const e=t.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:t.charAt(0).toLowerCase();kh[e]||(kh[e]=!0,jn(Sh("./util/entities/"+e+".js")))}return r}function _u(r){const t=r.charAt(0)==="x"?parseInt(r.slice(1),16):parseInt(r);return String.fromCodePoint(t)}const Vi=["top","right","bottom","left"],Hn=["width","style","color"];function Oh(r){const t=r.split(/((?:'[^'\n]*'|"[^"\n]*"|,[\s\n]|[^\s\n])*)/g),e=[];for(;t.length>1;)t.shift(),e.push(t.shift());return e}function Wo(r){const t=Oh(this.styles[r]);t.length===0&&t.push(""),t.length===1&&t.push(t[0]),t.length===2&&t.push(t[0]),t.length===3&&t.push(t[1]);for(const e of Oe.connect[r].children)this.setStyle(this.childName(r,e),t.shift())}function Dh(r){const t=Oe.connect[r].children,e=[];for(const s of t){const i=this.styles[this.childName(r,s)];if(!i)return void delete this.styles[r];e.push(i)}e[3]===e[1]&&(e.pop(),e[2]===e[0]&&(e.pop(),e[1]===e[0]&&e.pop())
57),this.styles[r]=e.join(" ")}function Ph(r){Dh.call(this,r),this.combineChildren(r),Bh.call(this,r),this.combineParent(r)}function Bh(r){if(!Oe.connect[r])return;const t=[...Oe.connect[r].children],e=this.styles[this.childName(r,t.shift())];for(const s of t)if(this.styles[this.childName(r,s)]!==e)return void delete this.styles[r];e&&(this.styles[r]=e)}const Jf=/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,Kf=/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/;function Ga(r){const t={width:"",style:"",color:""};for(const e of Oh(this.styles[r]))e.match(Jf)&&t.width===""?t.width=e:e.match(Kf)&&t.style===""?t.style=e:t.color=e;for(const e of Oe.connect[r].children)this.setStyle(this.childName(r,e),t[e])}function Ya(r){const t=[];for(const e of Oe.connect[r].children){const s=this.styles[this.childName(r,e)];s&&t.push(s)}t.length>1?this.styles[r]=t.join(" "):delete this.styles[r]}const Wu={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|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 $f(r,t){for(const e of Oe.connect[r].children){const s=this.childName(r,e);if(Array.isArray(t[e])){const i=t[e];i.length&&(this.styles[s]=i.join(" "))}else t[e]!==""&&(this.styles[s]=t[e])}}class Oe{constructor(t=""){this.parse(t)}sanitizeValue(t){const e=this.constructor.pattern;if(!t.match(e.sanitize))return t;const s=(t=t.replace(e.value,"$1")).replace(/\\./g,"").replace(/(['"]).*?\1/g,"").replace(/[^'"]/g,"");return s.length&&(t+=s.charAt(0)),t}get cssText(){var t,e;const s=[];for(const i of Object.keys(this.styles)){const n=this.parentName(i),o=i.replace(/.*-/,""),a=this.childName(this.parentName(n),o);!this.styles[i]||this.styles[a]||this.styles[n]&&(!((e=(t=Oe.connect[n])===null||t===void 0?void 0:t.children)===null||e===void 0)&&e.includes(o))||s.push(`${i}: ${this.styles[i]};`)}return s.join(" ")}get styleList(){return Object.assign({},this.styles)}set(t,e){t=this.normalizeName(t),this.setStyle(t,String(e));const s=Oe.connect[t];if(s?.subPart)s.combine.call(this,t);else if(this.combineParent(t),t.match(/-.*-/)){const i=t.replace(/-.*-/,"-");Bh.call(this,i)}}combineParent(t){for(var e;t.match(/-/);){const i=t;t=this.parentName(t);const n=Oe.connect[t];if(!Oe.connect[i]&&!(!((e=n?.children)===null||e===void 0)&&e.includes(i.substring(t.length+1))))break;n.combine.call(this,t)}if(!this.styles[t])return;const s=Oe.connect[t];for(const i of s?.parts||[])delete this.styles[this.childName(t,i)]}get(t){return t=this.normalizeName(t),Object.hasOwn(this.styles,t)?this.styles[t]:""}setStyle(t,e){var s;this.styles[t]=this.sanitizeValue(e),!((s=Oe.connect[t])===null||s===void 0)&&s.children&&Oe.connect[t].split.call(this,t),e===""&&delete this.styles[t]}combineChildren(t){const e=this.parentName(t);for(const s of Oe.connect[t].children){const i=this.childName(e,s);Oe.connect[i].combine.call(this,i)}}parentName(t){const e=t.replace(/-[^-]*$/,"");return t===e?"":e}childName(t,e){var s;return e.match(/-/)?e:(!((s=Oe.connect[t])===null||s===void 0)&&s.subPart&&(e+=t.replace(/.*-/,"-"),t=this.parentName(t)),t+"-"+e)}normalizeName(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}parse(t=""){const e=this.constructor.pattern;this.styles={};const s=t.replace(/\n/g," ").replace(e.comment,"").split(e.style);for(;s.length>1;){const[i,n,o]=s.splice(0,3);if(i.match(/[^\s\n;]/))return;this.set(n,o)}}}function Ar(r){return r.reduce((t,e)=>t+e,0)}function Qa(r){return r.reduce((t,e)=>
57Math.max(t,e),0)}if(Oe.pattern={sanitize:/['";]/,value:/^((:?'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$).*/,style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},Oe.connect={padding:{children:Vi,split:Wo,combine:Dh},margin:{children:Vi,split:Wo,combine:Dh},border:{children:Vi,parts:Hn,split:function(r){for(const t of Oe.connect[r].children)this.setStyle(this.childName(r,t),this.styles[r])},combine:Bh},"border-top":{children:Hn,split:Ga,combine:Ya},"border-right":{children:Hn,split:Ga,combine:Ya},"border-bottom":{children:Hn,split:Ga,combine:Ya},"border-left":{children:Hn,split:Ga,combine:Ya},"border-width":{children:Vi,split:Wo,combine:Ph,subPart:!0},"border-style":{children:Vi,split:Wo,combine:Ph,subPart:!0},"border-color":{children:Vi,split:Wo,combine:Ph,subPart:!0},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:function(r){const t=Oh(this.styles[r]),e={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};for(const s of t){e.family||(e.family=s);for(const i of Object.keys(Wu))if((Array.isArray(e[i])||e[i]==="")&&s.match(Wu[i]))if(e.family===s&&(e.family=""),i==="size"){const[n,o]=s.split(/\//);e[i]=n,o&&(e["line-height"]=o)}else e.size===""&&(Array.isArray(e[i])?e[i].push(s):e[i]===""&&(e[i]=s))}$f.call(this,r,e),delete this.styles[r]},combine:function(r){}}},MathJax.loader&&MathJax.loader.checkVersion("core",ui,"core"),Ks({_:{adaptors:{HTMLAdaptor:Ue,browserAdaptor:Vt},components:{global:Ut},core:{DOMAdaptor:Kt,FindMath:ut,Handler:Qs,HandlerList:le,InputJax:j,MathDocument:Ye,MathItem:Pt,MathList:ae,MmlTree:{Attributes:cs,MML:Ms,MathMLVisitor:We,MmlFactory:Yt,MmlNode:Le,MmlNodes:{HtmlNode:Rs,TeXAtom:gt,maction:Wt,maligngroup:bs,malignmark:vt,math:X,mathchoice:es,menclose:$t,merror:Ht,mfenced:Ie,mfrac:bt,mglyph:Ss,mi:ft,mmultiscripts:pe,mn:P,mo:ht,mpadded:Ae,mphantom:Xt,mroot:Z,mrow:at,ms:Et,mspace:J,msqrt:yt,mstyle:zt,msubsup:Se,mtable:we,mtd:Cs,mtext:ct,mtr:Ts,munderover:Pe,semantics:Ls},MmlVisitor:Nt,OperatorDictionary:U,SerializedMmlVisitor:Es},OutputJax:Ct,Tree:{Factory:ie,Node:Je,NodeFactory:vs,Visitor:_e,Wrapper:Lt,WrapperFactory:Bt}},handlers:{html_ts:er,html:{HTMLDocument:ai,HTMLDomStrings:Ni,HTMLHandler:ss,HTMLMathItem:xs,HTMLMathList:Us}},mathjax:Ke,ui:{dialog:{DraggableDialog:_s,InfoDialog:Zs}},util:{AsyncLoad:sr,BBox:Zt,BitField:ee,Entities:ds,FunctionList:H,LinkedList:_,Options:rt,PrioritizedList:ot,Retries:He,StyleJson:Hs,Styles:vi,context:w,lengths:Fi,numeric:Nr,string:$}}}),MathJax.startup&&(MathJax.startup.registerConstructor("HTMLHandler",Lh),MathJax.startup.registerConstructor("browserAdaptor",fu),MathJax.startup.useHandler("HTMLHandler"),MathJax.startup.useAdaptor("browserAdaptor")),MathJax.loader){const r=MathJax.config.loader;MathJax._.mathjax.mathjax.asyncLoad=t=>t.substring(0,5)==="node:"?r.require(t):MathJax.loader.load(t).then(e=>e[0])}class Za extends Ia{constructor(t){super(t),this.getPatterns()}getPatterns(){const t=this.options,e=[],s=[],i=[];this.end={},this.env=this.sub=0;let n=1;t.inlineMath.forEach(o=>this.addPattern(e,o,!1)),t.displayMath.forEach(o=>this.addPattern(e,o,!0)),e.length&&s.push(e.sort(Tu).join("|")),t.processEnvironments&&(s.push("\\\\begin\\s*\\{([^}]*)\\}"),this.env=n,n++),t.processEscapes&&i.push("\\\\([\\\\$])"),t.processRefs&&i.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})"),i.length&&(s.push("("+i.join("|")+")"),this.sub=n),this.start=new RegExp(s.join("|"),"g"),this.hasPatterns=s.length>0}addPattern(t,e,s){const[i,n]=e;t.push(Da(i)),this.end[i]=[n,s,this.endPattern(n)]}endPattern(t,e){return new RegExp((e||Da(t))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")}findEnd(t,e,s,i){const[n,o,a]=i,c=a.lastIndex=s.index+s[0].length;let h,u=0;for(;h=a.exec(t);){if((h[1]||h[0])===n&&u===0)return ka(s[0],t.substring(c,h.index),h[0],e,s.index,h.index+h[0].length,o);h[0]==="{"?u++:h[0]==="}"&&u&&u--}return null}findMathInString(t,e,s){let i,n;for(this.start.lastIndex=0;i=this.start.exec(s);){if(i[this.env]!==void 0&&this.env){const o="\\\\end\\s*(\\{"+Da(i[this.env])+"\\})";n=this.findEnd(s,e,i,["{"+i[this.env]+"}",!0,this.endPattern(null,o)]),n&&(n.math=n.open+n.math+n.close,n.open=n.close="")}else if(i[this.sub]!==void 0&&this.sub){const o=i[this.sub],a=i.index+i[this.sub].length;n=o.length===2?ka("\\",o.substring(1),"",e,i.index,a):ka("",o,"",e,i.index,a,!1)}else n=this.findEnd(s,e,i,this.end[i[0]]);n&&(t.push(n),this.start.lastIndex=n.end.n)}}findMath(t){const e=[];
57if(this.hasPatterns)for(let s=0,i=t.length;s<i;s++)this.findMathInString(e,s,t[s]);return e}}Za.OPTIONS={inlineMath:[["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:!0,processEnvironments:!0,processRefs:!0};const qu={attrs:new Set(["autoOP","fnOP","movesupsub","subsupOK","texprimestyle","useHeight","variantForm","withDelims","mathaccent","open","close"]),createEntity:r=>String.fromCodePoint(parseInt(r,16)),getChildren:r=>r.childNodes,getText:r=>r.getText(),appendChildren(r,t){for(const e of t)r.appendChild(e)},setAttribute(r,t,e){r.attributes.set(t,e)},setProperty(r,t,e){r.setProperty(t,e)},setProperties(r,t){for(const e of Object.keys(t)){const s=t[e];e==="texClass"?(r.texClass=s,r.setProperty(e,s)):e==="movablelimits"?(r.setProperty("movablelimits",s),(r.isKind("mo")||r.isKind("mstyle"))&&r.attributes.set("movablelimits",s)):e==="inferred"||(qu.attrs.has(e)?r.setProperty(e,s):r.attributes.set(e,s))}},getProperty:(r,t)=>r.getProperty(t),getAttribute:(r,t)=>r.attributes.get(t),removeAttribute(r,t){r.attributes.unset(t)},removeProperties(r,...t){r.removeProperty(...t)},getChildAt:(r,t)=>r.childNodes[t],setChild(r,t,e){r.childNodes[t]=e,e&&(e.parent=r)},copyChildren(r,t){const e=r.childNodes;for(let s=0;s<e.length;s++)this.setChild(t,s,e[s])},copyAttributes(r,t){t.attributes=r.attributes;for(const[e,s]of Object.entries(r.getAllProperties()))t.setProperty(e,s)},isType:(r,t)=>r.isKind(t),isEmbellished:r=>r.isEmbellished,getTexClass:r=>r.texClass,getCoreMO:r=>r.coreMO(),isNode:r=>r instanceof Ot||r instanceof Oa,isInferred:r=>r.isInferred,getForm(r){if(!r.isKind("mo"))return null;const t=r,e=t.getForms();for(const s of e){const i=this.getOp(t,s);if(i)return i}return null},getOp:(r,t="infix")=>Ps.OPTABLE[t][r.getText()]||null,getMoAttribute(r,t){var e,s;if(!r.attributes.isSet(t))for(const i of["infix","postfix","prefix"]){const n=(s=(e=this.getOp(r,i))===null||e===void 0?void 0:e[3])===null||s===void 0?void 0:s[t];if(n!==void 0)return n}return r.attributes.get(t)}},L=qu,Dt={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"},Form:{PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"},LineBreak:{AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"},LineBreakStyle:{BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"},IndentAlign:{LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"},IndentShift:{INDENTSHIFT:"indentshift"},LineThickness:{THIN:"thin",MEDIUM:"medium",THICK:"thick"},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"},Align:{TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"},Lines:{NONE:"none",SOLID:"solid",DASHED:"dashed"},Side:{LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"},Width:{AUTO:"auto",FIT:"fit"},Actiontype:{TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"},Overflow:{LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"},Unit:{EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"},Attr:{LATEX:"data-latex",LATEXITEM:"data-latex-item"}};function Gf(r,t,e){const s=t.attributes,i=e.attributes;r.forEach(n=>{const o=i.getExplicit(n);o!=null&&s.set(n,o)})}function Yf(r,t){const e=(a,c)=>a.getExplicitNames().filter(h=>h!==c&&(h!=="stretchy"||a.getExplicit("stretchy"))&&h!=="data-latex"&&h!=="data-latex-item"),s=r.attributes,i=t.attributes,n=e(s,"lspace"),o=e(i,"rspace");if(n.length!==o.length)return!1;for(const a of n)if(s.getExplicit(a)!==i.getExplicit(a))return!1;return!0}function Vu(r,t,e){const s=[];
vendor: 7,917 bytes, lines 57-60
57for(const i of r.getList("m"+t+e)){const n=i.childNodes;if(n[i[t]]&&n[i[e]])continue;const o=i.parent,a=n[i[t]]?r.nodeFactory.create("node","m"+t,[n[i.base],n[i[t]]]):r.nodeFactory.create("node","m"+e,[n[i.base],n[i[e]]]);L.copyAttributes(i,a),o.replaceChild(a,i),s.push(i)}r.removeFromList("m"+t+e,s)}function Fh(r,t,e){const s=[];for(const i of r.getList(t)){if(i.attributes.get("displaystyle"))continue;const n=i.childNodes[i.base],o=n.coreMO();if(n.getProperty("movablelimits")&&!o.attributes.hasExplicit("movablelimits")){const a=r.nodeFactory.create("node",e,i.childNodes);L.copyAttributes(i,a),i.parent.replaceChild(a,i),s.push(i)}}r.removeFromList(t,s)}const Qf={cleanStretchy(r){var t;const e=r.data;for(const s of e.getList("fixStretchy"))if(L.getProperty(s,"fixStretchy")){const i=L.getForm(s);!((t=i?.[3])===null||t===void 0)&&t.stretchy&&L.setAttribute(s,"stretchy",!1),L.removeProperties(s,"fixStretchy")}},cleanAttributes(r){r.data.root.walkTree(t=>{const e=new Set((t.getProperty("keep-attrs")||"").split(/ /)),s=t.attributes;s.unset(Dt.Attr.LATEXITEM);for(const i of s.getExplicitNames())e.has(i)||s.get(i)!==s.getInherited(i)||s.unset(i)})},combineRelations(r){const t=[];for(const e of r.data.getList("mo")){if(e.getProperty("relationsCombined")||!e.parent||e.parent&&!L.isType(e.parent,"mrow")||L.getTexClass(e)!==S.REL)continue;let s;const i=e.parent.childNodes,n=i.indexOf(e)+1,o=L.getProperty(e,"variantForm");for(;n<i.length&&(s=i[n])&&L.isType(s,"mo")&&L.getTexClass(s)===S.REL;){if(o!==L.getProperty(s,"variantForm")||!Yf(e,s)){e.attributes.hasExplicit("rspace")||L.setAttribute(e,"rspace","0pt"),s.attributes.hasExplicit("lspace")||L.setAttribute(s,"lspace","0pt");break}L.appendChildren(e,L.getChildren(s)),Gf(["stretchy","rspace"],e,s);for(const a of s.getPropertyNames())e.setProperty(a,s.getProperty(a));s.attributes.get("data-latex")&&e.attributes.set("data-latex",e.attributes.get("data-latex")+s.attributes.get("data-latex")),i.splice(n,1),t.push(s),s.parent=null,s.setProperty("relationsCombined",!0),e.setProperty("texClass",S.REL)}e.attributes.setInherited("form",e.getForms()[0])}r.data.removeFromList("mo",t)},cleanSubSup(r){const t=r.data;t.error||(Vu(t,"sub","sup"),Vu(t,"under","over"))},moveLimits(r){const t=r.data;Fh(t,"munderover","msubsup"),Fh(t,"munder","msub"),Fh(t,"mover","msup")},setInherited(r){r.data.root.setInheritedAttributes({},r.math.display,0,!1)},checkScriptlevel(r){const t=r.data,e=[];for(const s of t.getList("mstyle")){if(s.childNodes[0].childNodes.length!==1)continue;const i=s.attributes;for(const o of["displaystyle","scriptlevel"])i.getExplicit(o)===i.getInherited(o)&&i.unset(o);const n=i.getExplicitNames();if(n.filter(o=>o.substring(0,10)!=="data-latex").length===0){const o=s.childNodes[0].childNodes[0];n.forEach(a=>o.attributes.set(a,i.get(a))),s.parent.replaceChild(o,s),e.push(s)}}t.removeFromList("mstyle",e)}},Sr=Qf;var It,At;(function(r){r.HANDLER="handler",r.FALLBACK="fallback",r.ITEMS="items",r.TAGS="tags",r.OPTIONS="options",r.NODES="nodes",r.PREPROCESSORS="preprocessors",r.POSTPROCESSORS="postprocessors",r.INIT="init",r.CONFIG="config",r.PRIORITY="priority",r.PARSER="parser"})(It||(It={})),(function(r){r.DELIMITER="delimiter",r.MACRO="macro",r.CHARACTER="character",r.ENVIRONMENT="environment"})(At||(At={}));const jh=7.2,Qt={UNIT_CASES:new class{constructor(r){this.num="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))",this.unit="",this.dimenEnd=/./,this.dimenRest=/./,this.map=new Map(r),this.updateDimen()}updateDimen(){this.unit=`(${Array.from(this.map.keys()).join("|")})`,this.dimenEnd=RegExp("^\\s*"+this.num+"\\s*"+this.unit+"\\s*$"),this.dimenRest=RegExp("^\\s*"+this.num+"\\s*"+this.unit+" ?")}set(r,t){return this.map.set(r,t),this.updateDimen(),this}get(r){return this.map.get(r)||this.map.get("pt")}delete(r){return!!this.map.delete(r)&&(this.updateDimen(),!0)}}([["em",1],["ex",.43],["pt",.1],["pc",1.2],["px",.1],["in",jh],["cm",jh/2.54],["mm",jh/25.4],["mu",1/18]]),matchDimen(r,t=!1){const e=r.match(t?Qt.UNIT_CASES.dimenRest:Qt.UNIT_CASES.dimenEnd);return e?(function([s,i,n]){return i!=="mu"?[s,i,n]:[Qt.em(Qt.UNIT_CASES.get(i)*parseFloat(s)).slice(0,-2),"em",n]})([e[1].replace(/,/,"."),e[4],e[0].length]):[null,null,0]},dimen2em(r){const[t,e]=Qt.matchDimen(r),s=parseFloat(t||"1");return Qt.UNIT_CASES.get(e)*s},em:r=>Math.abs(r)<6e-4?"0em":r.toFixed(3).replace(/\.?0+$/,"")+"em",trimSpaces(r){if(typeof r!="string")return r;let t=r.trim();return t.match(/\\$/)&&r.match(/ $/)&&(t+=" "),t}};class zu{constructor(t,e,s){this._factory=t,this._env=e,this.global={},this.stack=[],this.global={isInner:s},this.stack=[this._factory.create("start",this.global)],e&&(this.stack[0].env=e),this.env=this.stack[0].env}set env(t){this._env=t}get env(){return this._env}Push(...t){for(const e of t){if(!e)continue;const s=L.isNode(e)?this._factory.create("mml",e):e;s.global=this.global;const[i,n]=this.stack.length?this.Top().checkItem(s):[null,!0];n&&(i?(this.Pop(),this.Push(...i)):(s.isKind("null")||this.stack.push(s),s.env?(s.copyEnv&&Object.assign(s.env,this.env),this.env=s.env):s.env=this.env))}}Pop(){const t=this.stack.pop();return t.isOpen||delete t.env,this.env=this.stack.length?this.Top().env:{},t}Top(t=1){return this.stack.length<t?null:this.stack[this.stack.length-t]}Prev(t){const e=this.Top();return t?e.First:e.Pop()}get height(){return this.stack.length}toString(){return`stack[
58  `+this.stack.join(`
59  `)+`
60]`}}class qo{static processString(t,e){const s=t.split(qo.pattern);for(let i=1,n=s.length;i<n;i+=2){let o=s[i].charAt(0);o>="0"&&o<="9"?(s[i]=e[parseInt(s[i],10)-1],typeof s[i]=="number"&&(s[i]=s[i].toString())):o==="{"&&(o=s[i].substring(1),o>="0"&&o<="9"?(s[i]=e[parseInt(s[i].substring(1,s[i].length-1),10)-1],typeof s[i]=="number"&&(s[i]=s[i].toString())):s[i].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/)&&(s[i]="%"+s[i]))}return s.join("")}constructor(t,e,...s){this.id=t,this.message=qo.processString(e,s)}}qo.pattern=/%(\d+|\{\d+\}|\{[a-z]+:%\d+(?:\|(?:%\{\d+\}|%.|[^}])*)+\}|.)/g;const V=qo;class Xu{constructor(t){this._nodes=t,this.startStr="",this.startI=0,this.stopI=0}get nodes(){return this._nodes}Push(...t){this._nodes.push(...t)}Pop(){return this._nodes.pop()}get First(){return this._nodes[this.Size()-1]}set First(t){this._nodes[this.Size()-1]=t}get Last(){return this._nodes[0]}set Last(t){this._nodes[0]=t}Peek(t){return t==null&&(t=1),this._nodes.slice(this.Size()-t)}Size(){return this._nodes.length}Clear(){this._nodes=[]}toMml(t=!0,e){return this._nodes.length!==1||e?this.create("node",t?"inferredMrow":"mrow",this._nodes,{}):this.First}create(t,...e){return this.factory.configuration.nodeFactory.create(t,...e)}}class Ft extends Xu{constructor(t,...e){super(e),this.factory=t,this.global={},this._properties={},this.isOpen&&(this._env={})}get kind(){return"base"}get env(){return this._env}set env(t){this._env=t}get copyEnv(){return!0}getProperty(t){return this._properties[t]}setProperty(t,e){return this._properties[t]=e,this}get isOpen(){return!1}get isClose(){return!1}get isFinal(){return!1}isKind(t){return t===this.kind}checkItem(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 Ft.fail;throw new V("Misplaced","Misplaced %1",t.getName())}if(t.isClose&&this.getErrors(t.kind)){const[e,s]=this.getErrors(t.kind);throw new V(e,s,t.getName())}return t.isFinal?(this.Push(t.First),Ft.fail):Ft.success}clearEnv(){for(const t of Object.keys(this.env))delete this.env[t]}setProperties(t){return Object.assign(this._properties,t),this}getName(){return this.getProperty("name")}toString(){return this.kind+"["+this.nodes.join("; ")+"]"}getErrors(t){return this.constructor.errors[t]||Ft.errors[t]}addLatexItem(t,e=""){const s=this.startStr.slice(this.startI,this.stopI);if(s){const i=e?e+s:s;t.attributes.set(Dt.Attr.LATEXITEM,i),i!=="}"&&t.attributes.set(Dt.Attr.LATEX,i)}}}
60Ft.fail=[null,!1],Ft.success=[null,!0],Ft.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"]};class $e{constructor(t,e,s){this._string=t,this.configuration=s,this.macroCount=0,this.i=0,this.currentCS="",this.saveI=0;const i=Object.hasOwn(e,"isInner"),n=e.isInner;let o;if(delete e.isInner,e){o={};for(const a of Object.keys(e))o[a]=e[a]}this.configuration.pushParser(this),this.stack=new zu(this.itemFactory,o,!i||n),this.Parse(),this.Push(this.itemFactory.create("stop")),this.stack.env=o}get options(){return this.configuration.options}get itemFactory(){return this.configuration.itemFactory}get tags(){return this.configuration.tags}set string(t){this._string=t}get string(){return this._string}parse(t,e){const s=this.saveI;this.saveI=this.i-(t==="character"&&e[1]!=="&"?1:0);const i=this.configuration.handlers.get(t).parse(e);return t!=="macro"&&this.updateResult(e[1],s),this.saveI=s,i}lookup(t,e){return this.configuration.handlers.get(t).lookup(e)}contains(t,e){return this.configuration.handlers.get(t).contains(e)}toString(){let t="";for(const e of Array.from(this.configuration.handlers.keys()))t+=e+": "+this.configuration.handlers.get(e)+`
61`;return t}Parse(){let t;for(;this.i<this.string.length;)t=this.getCodePoint(),this.i+=t.length,this.parse(At.CHARACTER,[this,t])}Push(t){t instanceof Ft&&(t.startI=this.saveI,t.stopI=this.i,t.startStr=this.string),t instanceof Ot&&t.isInferred?this.PushAll(t.childNodes):this.stack.Push(t)}PushAll(t){for(const e of t)this.stack.Push(e)}mml(){if(!this.stack.Top().isKind("mml"))return null;const t=this.stack.Top().First;this.configuration.popParser();const e=this.trimTex(this.string);return e&&t.attributes.set(Dt.Attr.LATEX,e),t}convertDelimiter(t){var e;const s=this.lookup(At.DELIMITER,t);return(e=s?.char)!==null&&e!==void 0?e:null}getCodePoint(){const t=this.string.codePointAt(this.i);return t===void 0?"":String.fromCodePoint(t)}nextIsSpace(){return!!this.string.charAt(this.i).match(/\s/)}GetNext(){for(;this.nextIsSpace();)this.i++;return this.getCodePoint()}GetCS(){const 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++," ")}GetArgument(t,e=!1){switch(this.GetNext()){case"":if(!e)throw new V("MissingArgFor","Missing argument for %1",this.currentCS);return null;case"}":if(!e)throw new V("ExtraCloseMissingOpen","Extra close brace or missing open brace");return null;case"\\":return this.i++,"\\"+this.GetCS();case"{":{const i=++this.i;let n=1;for(;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"\\":this.i++;break;case"{":n++;break;case"}":if(--n===0)return this.string.slice(i,this.i-1)}throw new V("MissingCloseBrace","Missing close brace")}}const s=this.getCodePoint();return this.i+=s.length,s}GetBrackets(t,e,s=!1){if(this.GetNext()!=="[")return e;const i=++this.i;let n=0,o=0;for(;this.i<this.string.length;)switch(this.string.charAt(this.i++)){case"{":n++;break;case"\\":this.i++;break;case"}":if(n--<=0)throw new V("ExtraCloseLooking","Extra close brace while looking for %1","']'");break;case"[":n===0&&o++;break;case"]":if(n===0){if(!s||o===0)return this.string.slice(i,this.i-1);o--}}throw new V("MissingCloseBracket","Could not find closing ']' for argument to %1",this.currentCS)}GetDelimiter(t,e=!1){let s=this.GetNext();if(this.i+=s.length,this.i<=this.string.length&&(s==="\\"?s+=this.GetCS():s==="{"&&e&&(this.i--,s=this.GetArgument(t).trim()),this.contains(At.DELIMITER,s)))return this.convertDelimiter(s);throw new V("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)}GetDimen(t){if(this.GetNext()==="{"){const e=this.GetArgument(t),[s,i]=Qt.matchDimen(e);if(s)return s+i}else{const e=this.string.slice(this.i),[s,i,n]=Qt.matchDimen(e,!0);if(s)return this.i+=n,s+i}throw new V("MissingDimOrUnits","Missing dimension or its units for %1",this.currentCS)}GetUpTo(t,e){for(;this.nextIsSpace();)this.i++;const s=this.i;let i=0;for(;this.i<this.string.length;){const n=this.i;let o=this.GetNext();switch(this.i+=o.length,o){case"\\":o+=this.GetCS();break;case"{":i++;break;case"}
61":if(i===0)throw new V("ExtraCloseLooking","Extra close brace while looking for %1",e);i--}if(i===0&&o===e)return this.string.slice(s,n)}throw new V("TokenNotFoundForCommand","Could not find %1 for %2",e,this.currentCS)}ParseArg(t){return new $e(this.GetArgument(t),this.stack.env,this.configuration).mml()}ParseUpTo(t,e){return new $e(this.GetUpTo(t,e),this.stack.env,this.configuration).mml()}GetDelimiterArg(t){const e=Qt.trimSpaces(this.GetArgument(t));if(e==="")return null;if(this.contains(At.DELIMITER,e))return e;throw new V("MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",this.currentCS)}GetStar(){const t=this.GetNext()==="*";return t&&this.i++,t}create(t,...e){const s=this.configuration.nodeFactory.create(t,...e);return s.isToken&&s.attributes.hasExplicit("mathvariant")&&s.attributes.get("mathvariant").charAt(0)==="-"&&s.setProperty("ignore-variant",!0),s}trimTex(t){return t.trim()+(t.match(/(?:^|[^\\])(?:\\\\)*\\\s+$/)?" ":"")}updateResult(t,e){const s=this.stack.Prev(!0);if(!s)return;const i=Dt.Attr.LATEX,n=s.attributes.get(i),o=s.attributes.get(Dt.Attr.LATEXITEM);if(o!==void 0)return void(n||(t==="}"||o==="}"?this.composeBraces(s):s.attributes.set(i,o)));e=e<this.saveI?this.saveI:e;const a=this.trimTex(e!==this.i?this.string.slice(e,this.i):t);if(a&&a!==n&&(t!=="\\"||a!=="\\")){if(a==="_"||a==="^")s.setProperty("sub-sup",a);else{switch(s.getProperty("sub-sup")){case"^":if(s.childNodes[2]&&(a==="}"?this.composeBraces(s.childNodes[2]):s.childNodes[2].attributes.hasExplicit(i)||s.childNodes[2].attributes.set(i,a)),s.childNodes[1]){const c=s.childNodes[1].attributes.get(i);this.composeLatex(s,`_${c}^`,0,2)}else this.composeLatex(s,"^",0,2);return;case"_":if(s.childNodes[1]&&(a==="}"?this.composeBraces(s.childNodes[1]):s.childNodes[1].attributes.hasExplicit(i)||s.childNodes[1].attributes.set(i,a)),s.childNodes[2]){const c=s.childNodes[2].attributes.get(i);this.composeLatex(s,`^${c}_`,0,1)}else this.composeLatex(s,"_",0,1);return}if(a==="}")return void this.composeBraces(s)}s.attributes.set(i,a)}}composeLatex(t,e,s,i){if(!t.childNodes[s]||!t.childNodes[i])return;const n=Dt.Attr.LATEX,o=(t.childNodes[s].attributes.get(n)||"")+e+t.childNodes[i].attributes.get(n);t.attributes.set(n,o)}composeBraces(t){const e=this.composeBracedContent(t);t.attributes.set(Dt.Attr.LATEX,`{${e}}`)}composeBracedContent(t){var e,s;const i=((e=t.childNodes[0])===null||e===void 0?void 0:e.childNodes)||[];let n="";for(const o of i){const a=((s=o?.attributes)===null||s===void 0?void 0:s.get(Dt.Attr.LATEX))||"";a&&(n+=n&&n.match(/[a-zA-Z]$/)&&a.match(/^[a-zA-Z]/)?" "+a:a)}return n}}class Ju extends Ft{}class Ku extends bo{constructor(){super(...arguments),this.defaultKind="dummy",this.configuration=null}}Ku.DefaultStackItems={[Ju.prototype.kind]:Ju};const $u=Ku;class Zr{constructor(){this.mmlFactory=null,this.factory={node:Zr.createNode,token:Zr.createToken,text:Zr.createText,error:Zr.createError}}static createNode(t,e,s=[],i={},n){const o=t.mmlFactory.create(e);return o.setChildren(s),n&&o.appendChild(n),L.setProperties(o,i),o}static createToken(t,e,s={},i=""){const n=t.create("text",i);return t.create("node",e,[],s,n)}static createText(t,e){return e==null?null:t.mmlFactory.create("text").setText(e)}static createError(t,e){const s=t.create("text",e),i=t.create("node","mtext",[],{},s);return t.create("node","merror",[i],{"data-mjx-error":e})}setMmlFactory(t){this.mmlFactory=t}set(t,e){this.factory[t]=e}setCreators(t){for(const e in t)this.set(e,t[e])}create(t,...e){const s=(this.factory[t]||this.factory.node)(this,e[0],...e.slice(1));return t==="node"&&this.configuration.addNode(e[0],s),s}get(t){return this.factory[t]}}class tn{static oneof(...t){return new this("string",e=>t.includes(e),e=>e)}constructor(t,e,s){this.name=t,this.verify=e,this.convert=s}}const Zf={boolean:new tn("boolean",r=>r==="true"||r==="false",r=>r==="true"),number:new tn("number",r=>!!r.match(/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[-+]?\d+)?$/),r=>parseFloat(r)),integer:new tn("integer",r=>!!r.match(/^[-+]?\d+$/),r=>parseInt(r)),string:new tn("string",r=>!0,r=>r),dimen:new tn("dimen",r=>Qt.matchDimen(r)[0]!==null,r=>r)};function Uh(r,t){if(t===0)return r.replace(/^\s+/,"").replace(/([^\\\s]|^)((?:\\\\)*(?:\\\s)?)?\s+$/,"$1$2");for(;t>0;)r=r.trim().slice(1,-1),t--;return r}function Gu(r,t,e=!1,s=!1){const i=r.length;let n=0,o="",a=0,c=0,h=!0;for(;a<i;){const u=r[a++];switch(u){case"\\":o+=u+(r[a++]||""),h=!1;continue;case" ":break;case"{":h&&c++,n++;break;case"}":if(!n)throw new V("ExtraCloseMissingOpen","Extra close brace or missing open brace");n--,h=!1;break;default:if(!n&&t.includes(u))return[Uh(o,e?Math.min(1,c):c),u,r.slice(a)];c>n&&(c=n),h=!1}
61o+=u}if(n)throw new V("ExtraOpenMissingClose","Extra open brace or missing close brace");return s&&c?["","",Uh(o,1)]:[Uh(o,e?Math.min(1,c):c),"",r.slice(a)]}const dt={cols:(...r)=>r.map(t=>Qt.em(t)).join(" "),fenced(r,t,e,s,i="",n=""){const o=r.nodeFactory,a=o.create("node","mrow",[],{open:t,close:s,texClass:S.INNER});let c;if(i)c=new $e("\\"+i+"l"+t,r.parser.stack.env,r).mml();else{const h=o.create("text",t);c=o.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:S.OPEN},h)}if(L.appendChildren(a,[c,e]),i)c=new $e("\\"+i+"r"+s,r.parser.stack.env,r).mml();else{const h=o.create("text",s);c=o.create("node","mo",[],{fence:!0,stretchy:!0,symmetric:!0,texClass:S.CLOSE},h)}return n&&c.attributes.set("mathcolor",n),L.appendChildren(a,[c]),a},fixedFence(r,t,e,s){const i=r.nodeFactory.create("node","mrow",[],{open:t,close:s,texClass:S.ORD});return t&&L.appendChildren(i,[dt.mathPalette(r,t,"l")]),L.isType(e,"mrow")?L.appendChildren(i,L.getChildren(e)):L.appendChildren(i,[e]),s&&L.appendChildren(i,[dt.mathPalette(r,s,"r")]),i},mathPalette(r,t,e){t!=="{"&&t!=="}"||(t="\\"+t);const s="{\\big"+e+" "+t+"}";return new $e("\\mathchoice"+("{\\bigg"+e+" "+t+"}")+s+s+s,{},r).mml()},fixInitialMO(r,t){for(let e=0,s=t.length;e<s;e++){const i=t[e];if(i&&!L.isType(i,"mspace")&&(!L.isType(i,"TeXAtom")||L.getChildren(i)[0]&&L.getChildren(L.getChildren(i)[0]).length)){if(L.isEmbellished(i)||L.isType(i,"TeXAtom")&&L.getTexClass(i)===S.REL){const n=r.nodeFactory.create("node","mi");t.unshift(n)}break}}},internalMath(r,t,e,s){if(t=t.replace(/ +/g," "),r.configuration.options.internalMath)return r.configuration.options.internalMath(r,t,e,s);const i=s||r.stack.env.font,n=i?{mathvariant:i}:{};let o,a,c=[],h=0,u=0,x="",A=0;if(t.match(/\\?[${}\\]|\\\(|\\(?:eq)?ref\s*\{|\\U/)){for(;h<t.length;)if(o=t.charAt(h++),o==="$")x==="$"&&A===0?(a=r.create("node","TeXAtom",[new $e(t.slice(u,h-1),{},r.configuration).mml()]),c.push(a),x="",u=h):x===""&&(u<h-1&&c.push(dt.internalText(r,t.slice(u,h-1),n)),x="$",u=h);else if(o==="{"&&x!=="")A++;else if(o==="}")if(x==="}"&&A===0){const I=new $e(t.slice(u,h),{},r.configuration).mml();a=r.create("node","TeXAtom",[I],n),c.push(a),x="",u=h}else x!==""&&A&&A--;else if(o==="\\"){if(x===""&&t.substring(h).match(/^(eq)?ref\s*\{/)){const I=RegExp["$&"].length;u<h-1&&c.push(dt.internalText(r,t.slice(u,h-1),n)),x="}",u=h-1,h+=I}else if(o=t.charAt(h++),o==="("&&x==="")u<h-2&&c.push(dt.internalText(r,t.slice(u,h-2),n)),x=")",u=h;else if(o===")"&&x===")"&&A===0)a=r.create("node","TeXAtom",[new $e(t.slice(u,h-2),{},r.configuration).mml()]),c.push(a),x="",u=h;else if(o.match(/[${}\\]/)&&x==="")h--,t=t.substring(0,h-1)+t.substring(h);else if(o==="U"){const I=t.substring(h).match(/^\s*(?:([0-9A-F])|\{\s*([0-9A-F]+)\s*\})/);if(!I)throw new V("BadRawUnicode","Argument to %1 must a hexadecimal number with 1 to 6 digits","\\U");const q=String.fromCodePoint(parseInt(I[1]||I[2],16));t=t.substring(0,h-2)+q+t.substring(h+I[0].length),h=h-2+q.length}}if(x!=="")throw new V("MathNotTerminated","Math mode is not properly terminated")}return u<t.length&&c.push(dt.internalText(r,t.slice(u),n)),e!=null?c=[r.create("node","mstyle",c,{displaystyle:!1,scriptlevel:e})]:c.length>1&&(c=[r.create("node","mrow",c)]),c},internalText(r,t,e){t=t.replace(/\n+/g," ").replace(/^ +/,Si.nbsp).replace(/ +$/,Si.nbsp);const s=r.create("text",t);return r.create("node","mtext",[],e,s)},underOver(r,t,e,s,i){if(dt.checkMovableLimits(t),L.isType(t,"munderover")&&L.isEmbellished(t)){L.setProperties(L.getCoreMO(t),{lspace:0,rspace:0});const a=r.create("node","mo",[],{rspace:0});t=r.create("node","mrow",[a,t])}const n=r.create("node","munderover",[t]);L.setChild(n,s==="over"?n.over:n.under,e);let o=n;return i&&(o=r.create("node","TeXAtom",[r.create("node","mstyle",[n],{displaystyle:!0,scriptlevel:0})],{texClass:S.OP,movesupsub:!0})),L.setProperty(o,"subsupOK",!0),o},checkMovableLimits(r){const t=L.isType(r,"mo")?L.getForm(r):null;(L.getProperty(r,"movablelimits")||t&&t[3]&&t[3].movablelimits)&&L.setProperties(r,{movablelimits:!1})},setArrayAlign:(r,t,e)=>(e||(t=Qt.trimSpaces(t||"")),t==="t"?r.arraydef.align="baseline 1":t==="b"?r.arraydef.align="baseline -1":t==="c"?r.arraydef.align="axis":t&&(e?(e.string=`[${t}]`+e.string.slice(e.i),e.i=0):r.arraydef.align=t),r),substituteArgs(r,t,e){let s="",i="",n=0;for(;n<e.length;){let o=e.charAt(n++);if(o==="\\")s+=o+e.charAt(n++);else if(o==="#")if(o=e.charAt(n++),o==="#")s+=o;else{if(!o.match(/[1-9]/)||parseInt(o,10)>t.length)throw new V("IllegalMacroParam","Illegal macro parameter reference");i=dt.addArgs(r,dt.addArgs(r,i,s),t[parseInt(o,10)-1]),s=""}else s+=o}return dt.addArgs(r,i,s)},addArgs(r,t,e){if(e.match(/^[a-z]/i)&&t.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)&&(t+=" "),t.length+e.length>r.configuration.options.maxBuffer)throw new V("MaxBufferSize","MathJax internal buffer size exceeded; is there a recursive macro call?");return t+e},checkMaxMacros(r,t=!0){if(!(++r.macroCount<=r.configuration.options.maxMacros))throw t?new V("MaxMacroSub1","MathJax maximum macro substitution count exceeded; is here a recursive macro call?"):new V("MaxMacroSub2","MathJax maximum substitution count exceeded; is there a recursive latex environment?")},checkEqnEnv(r,t=!0){const e=r.stack.Top(),s=e.First;if(!(e.getProperty("nestable")&&t&&!s||e.getProperty("nestStart"))&&(!e.isKind("start")||s))throw new V("ErroneousNestingEq","Erroneous nesting of equation structures")},copyNode(r,t){const e=r.copy(),s=t.configuration;return e.walkTree(i=>
61{s.addNode(i.kind,i);const n=(i.getProperty("in-lists")||"").split(/,/);for(const o of n)o&&s.addNode(o,i)}),e},mmlFilterAttribute:(r,t,e)=>e,getFontDef(r){const t=r.stack.env.font;return t?{mathvariant:t}:{}},keyvalOptions(r,t=null,e=!1,s=!1){const i=(function(n,o=!1){const a={};let c,h,u,x=n,A=!0;for(;x;)[h,c,x]=Gu(x,["=",","],o,A),A=!1,c==="="?([u,c,x]=Gu(x,[","],o),u=u==="false"||u==="true"?JSON.parse(u):u,a[h]=u):h&&(a[h]=!0);return a})(r,s);if(t)for(const n of Object.keys(i))if(Object.hasOwn(t,n)){if(t[n]instanceof tn){const o=t[n],a=String(i[n]);if(!o.verify(a))throw new V("InvalidValue","Value for key '%1' is not of the expected type",n);i[n]=o.convert(a)}}else{if(e)throw new V("InvalidOption","Invalid option: %1",n);delete i[n]}return i},isLatinOrGreekChar:r=>!!r.normalize("NFD").match(/[a-zA-Z\u0370-\u03F0]/)};class Yu{constructor(){this.columnHandler={l:t=>t.calign[t.j++]="left",c:t=>t.calign[t.j++]="center",r:t=>t.calign[t.j++]="right",p:t=>this.getColumn(t,"top"),m:t=>this.getColumn(t,"middle"),b:t=>this.getColumn(t,"bottom"),w:t=>this.getColumn(t,"top",""),W:t=>this.getColumn(t,"top",""),"|":t=>this.addRule(t,"solid"),":":t=>this.addRule(t,"dashed"),">":t=>t.cstart[t.j]=(t.cstart[t.j]||"")+this.getBraces(t),"<":t=>t.cend[t.j-1]=(t.cend[t.j-1]||"")+this.getBraces(t),"@":t=>this.addAt(t,this.getBraces(t)),"!":t=>this.addBang(t,this.getBraces(t)),"*":t=>this.repeat(t),P:t=>this.macroColumn(t,">{$}p{#1}<{$}",1),M:t=>this.macroColumn(t,">{$}m{#1}<{$}",1),B:t=>this.macroColumn(t,">{$}b{#1}<{$}",1)," ":t=>{}},this.MAXCOLUMNS=1e4}process(t,e,s){const i={parser:t,template:e,i:0,j:0,c:"",cwidth:[],calign:[],cspace:[],clines:[],cstart:s.cstart,cend:s.cend,ralign:s.ralign,cextra:s.cextra};let n=0;for(;i.i<i.template.length;){if(n++>this.MAXCOLUMNS)throw new V("MaxColumns","Too many column specifiers (perhaps looping column definitions?)");const o=i.template.codePointAt(i.i),a=i.c=String.fromCodePoint(o);if(i.i+=a.length,!Object.hasOwn(this.columnHandler,a))throw new V("BadPreamToken","Illegal pream-token (%1)",a);this.columnHandler[a](i)}this.setColumnAlign(i,s),this.setColumnWidths(i,s),this.setColumnSpacing(i,s),this.setColumnLines(i,s),this.setPadding(i,s)}setColumnAlign(t,e){e.arraydef.columnalign=t.calign.join(" ")}setColumnWidths(t,e){if(!t.cwidth.length)return;const s=[...t.cwidth];s.length<t.calign.length&&s.push("auto"),e.arraydef.columnwidth=s.map(i=>i||"auto").join(" ")}setColumnSpacing(t,e){if(!t.cspace.length)return;const s=[...t.cspace];s.length<t.calign.length&&s.push("1em"),e.arraydef.columnspacing=s.slice(1).map(i=>i||"1em").join(" ")}setColumnLines(t,e){if(!t.clines.length)return;const s=[...t.clines];s[0]&&e.frame.push(["left",s[0]]),s.length>t.calign.length?e.frame.push(["right",s.pop()]):s.length<t.calign.length&&s.push("none"),s.length>1&&(e.arraydef.columnlines=s.slice(1).map(i=>i||"none").join(" "))}setPadding(t,e){if(!t.cextra[0]&&!t.cextra[t.calign.length-1])return;const s=t.calign.length-1,i=t.cspace,n=t.cextra[s]?i[s]:null;e.arraydef["data-array-padding"]=`${i[0]||".5em"} ${n||".5em"}`}getColumn(t,e,s="left"){t.calign[t.j]=s||this.getAlign(t),t.cwidth[t.j]=this.getDimen(t),t.ralign[t.j]=[e,t.cwidth[t.j],t.calign[t.j]],t.j++}getDimen(t){const e=this.getBraces(t);if(!Qt.matchDimen(e)[0])throw new V("MissingColumnDimOrUnits","Missing dimension or its units for %1 column declaration",t.c);return e}getAlign(t){return Jr(this.getBraces(t).toLowerCase(),{l:"left",c:"center",r:"right"},"")}getBraces(t){for(;t.template[t.i]===" ";)t.i++;if(t.i>=t.template.length)throw new V("MissingArgForColumn","Missing argument for %1 column declaration",t.c);if(t.template[t.i]!=="{")return t.template[t.i++];const e=++t.i;let s=1;for(;t.i<t.template.length;)switch(t.template.charAt(t.i++)){case"\\":t.i++;break;case"{":s++;break;case"}":if(--s===0)return t.template.slice(e,t.i-1)}throw new V("MissingCloseBrace","Missing close brace")}macroColumn(t,e,s){const i=[];for(;s>0&&s--;)i.push(this.getBraces(t));t.template=dt.substituteArgs(t.parser,i,e)+t.template.slice(t.i),t.i=0}addRule(t,e){t.clines[t.j]&&this.addAt(t,"\\,"),t.clines[t.j]=e,t.cspace[t.j]==="0"&&(t.cstart[t.j]="\\hspace{.5em}")}
vendor: 4,781 bytes, line 61
61addAt(t,e){const{cstart:s,cspace:i,j:n}=t;t.cextra[n]=!0,t.calign[n]="center",t.clines[n]&&(i[n]===".5em"?s[n-1]+="\\hspace{.25em}":i[n]||(t.cend[n-1]=(t.cend[n-1]||"")+"\\hspace{.5em}")),s[n]=e,i[n]="0",i[++t.j]="0"}addBang(t,e){const{cstart:s,cspace:i,j:n}=t;t.cextra[n]=!0,t.calign[n]="center",s[n]=(i[n]==="0"&&t.clines[n]?"\\hspace{.25em}":"")+e,i[n]||(i[n]=".5em"),i[++t.j]=".5em"}repeat(t){const e=this.getBraces(t),s=this.getBraces(t),i=parseInt(e);if(String(i)!==e)throw new V("ColArgNotNum","First argument to %1 column specifier must be a number","*");t.template=new Array(i).fill(s).join("")+t.template.substring(t.i),t.i=0}}const Vo=Dt.Variant;class zo{constructor(t,e=[]){this.options={},this.columnParser=new Yu,this.packageData=new Map,this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.handlers=t.handlers,this.nodeFactory=new Zr,this.nodeFactory.configuration=this,this.nodeFactory.setCreators(t.nodes),this.itemFactory=new $u(t.items),this.itemFactory.configuration=this,ms(this.options,...e),ms(this.options,t.options),this.mathStyle=zo.getVariant.get(this.options.mathStyle)||zo.getVariant.get("TeX")}pushParser(t){this.parsers.unshift(t)}popParser(){this.parsers.shift()}get parser(){return this.parsers[0]}clear(){this.parsers=[],this.root=null,this.nodeLists={},this.error=!1,this.tags.resetTag()}addNode(t,e){let s=this.nodeLists[t];if(s||(s=this.nodeLists[t]=[]),s.push(e),e.kind!==t){const i=L.getProperty(e,"in-lists")||"",n=(i?i.split(/,/):[]).concat(t).join(",");L.setProperty(e,"in-lists",n)}}getList(t){const e=this.nodeLists[t]||[],s=[];for(const i of e)this.inTree(i)&&s.push(i);return this.nodeLists[t]=s,s}removeFromList(t,e){const s=this.nodeLists[t]||[];for(const i of e){const n=s.indexOf(i);n>=0&&s.splice(n,1)}}inTree(t){for(;t&&t!==this.root;)t=t.parent;return!!t}}zo.getVariant=new Map([["TeX",(r,t)=>t&&r.match(/^[\u0391-\u03A9\u03F4]/)?Vo.NORMAL:""],["ISO",r=>Vo.ITALIC],["French",r=>r.normalize("NFD").match(/^[a-z]/)?Vo.ITALIC:Vo.NORMAL],["upright",r=>Vo.NORMAL]]);const Hh=zo;class tl{constructor(t="???",e=""){this.tag=t,this.id=e}}class el{constructor(t="",e=!1,s=!1,i=null,n="",o="",a=!1,c=""){this.env=t,this.taggable=e,this.defaultTags=s,this.tag=i,this.tagId=n,this.tagFormat=o,this.noTag=a,this.labelId=c}}class Xo{constructor(){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 el,this.history=[],this.stack=[],this.enTag=function(t,e){const s=this.configuration.nodeFactory,i=s.create("node","mtd",[t]),n=s.create("node","mlabeledtr",[e,i]);return s.create("node","mtable",[n],{side:this.configuration.options.tagSide,minlabelspacing:this.configuration.options.tagIndent,displaystyle:!0})}}start(t,e,s){this.currentTag&&this.stack.push(this.currentTag);const i=this.label;this.currentTag=new el(t,e,s),this.label=i}get env(){return this.currentTag.env}end(){this.history.push(this.currentTag);const t=this.label;this.currentTag=this.stack.pop(),t&&!this.label&&(this.label=t)}tag(t,e){this.currentTag.tag=t,this.currentTag.tagFormat=e?t:this.formatTag(t),this.currentTag.noTag=!1}notag(){this.tag("",!0),this.currentTag.noTag=!0}get noTag(){return this.currentTag.noTag}set label(t){this.currentTag.labelId=t}get label(){return this.currentTag.labelId}formatUrl(t,e){return e+"#"+encodeURIComponent(t)}formatTag(t){return["(",t,")"]}formatRef(t){return this.formatTag(t)}formatId(t){return"mjx-eqn:"+t.replace(/\s/g,"_")}formatNumber(t){return t.toString()}autoTag(){this.currentTag.tag==null&&(this.counter++,this.tag(this.formatNumber(this.counter),!1))}clearTag(){this.tag(null,!0),this.currentTag.tagId=""}getTag(t=!1){if(t)return this.autoTag(),this.makeTag();const e=this.currentTag;return e.taggable&&!e.noTag&&(e.defaultTags&&this.autoTag(),e.tag)?this.makeTag():null}resetTag(){this.history=[],this.redo=!1,this.refUpdate=!1,this.clearTag()}reset(t=0){this.resetTag(),this.counter=this.allCounter=t,this.allLabels={},this.allIds={},this.label=""}startEquation(t){this.history=[],this.stack=[],this.clearTag(),this.currentTag=new el("",void 0,void 0),this.labels={},this.ids={},this.counter=this.allCounter,this.redo=!1;const e=t.inputData.recompile;e&&(this.refUpdate=!0,this.counter=e.counter)}finishEquation(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)}finalize(t,e){if(!e.display||this.currentTag.env||this.currentTag.tag==null)return t;const s=this.makeTag();return this.enTag(t,s)}makeId(){this.currentTag.tagId=this.formatId(this.configuration.options.useLabelIds&&this.label||this.currentTag.tag)}makeTag(){var t;
vendor: 4,696 bytes, line 61
61this.makeId(),this.label&&(this.labels[this.label]=new tl(this.currentTag.tag,this.currentTag.tagId),this.label="");const e=this.currentTag.tagFormat,s=Array.isArray(e)?e:((t=e.match(/^(\(|\[|\{)(.*)(\}|\]|\))$/))===null||t===void 0?void 0:t.slice(1))||[e],i=new $e(s.map(n=>n?`\\text{${n}}`:"").join(""),{},this.configuration).mml();return this.configuration.nodeFactory.create("node","mtd",[i],{id:this.currentTag.tagId,rowalign:this.configuration.options.tagAlign})}}class Qu extends Xo{autoTag(){}getTag(){return this.currentTag.tag?super.getTag():null}}class Zu extends Xo{finalize(t,e){if(!e.display||this.history.find(function(i){return i.taggable}))return t;const s=this.getTag(!0);return this.enTag(t,s)}}const _h=new Map([["none",Qu],["all",Zu]]);let sl="none";const zi={OPTIONS:{tags:sl,tagSide:"right",tagIndent:"0.8em",useLabelIds:!0,ignoreDuplicateLabels:!1,tagAlign:"baseline"},add(r,t){_h.set(r,t)},addTags(r){for(const t of Object.keys(r))zi.add(t,r[t])},create(r){const t=_h.get(r)||_h.get(sl);if(!t)throw Error("Unknown tags class");return new t},setDefault(r){sl=r},getDefault:()=>zi.create(sl)};class il{constructor(t,e,s){this._token=t,this._char=e,this._attributes=s}get token(){return this._token}get char(){return this._char}get attributes(){return this._attributes}}class Xi{constructor(t,e,s=[]){this._token=t,this._func=e,this._args=s}get token(){return this._token}get func(){return this._func}get args(){return this._args}}function Jo(r){return r===void 0||r}class Wh{constructor(t,e){this._name=t,this._parser=e,$o.register(this)}get name(){return this._name}parserFor(t){return this.contains(t)?this.parser:null}parse([t,e]){const s=this.parserFor(e),i=this.lookup(e);return s&&i?Jo(s(t,i)):null}set parser(t){this._parser=t}get parser(){return this._parser}}class en extends Wh{constructor(t,e,s){super(t,e),this._regExp=s}contains(t){return this._regExp.test(t)}lookup(t){return this.contains(t)?t:null}}class qh extends Wh{constructor(){super(...arguments),this.map=new Map}lookup(t){return this.map.get(t)}contains(t){return this.map.has(t)}add(t,e){this.map.set(t,e)}remove(t){this.map.delete(t)}}class $s extends qh{constructor(t,e,s){super(t,e);for(const i of Object.keys(s)){const n=s[i],[o,a]=typeof n=="string"?[n,null]:n,c=new il(i,o,a);this.add(i,c)}}}class _n extends $s{parse([t,e]){return super.parse([t,"\\"+e])}}class sn extends qh{constructor(t,e,s={}){super(t,null);const i=n=>typeof n=="string"?s[n]:n;for(const[n,o]of Object.entries(e)){let a,c;Array.isArray(o)?(a=i(o[0]),c=o.slice(1)):(a=i(o),c=[]);const h=new Xi(n,a,c);this.add(n,h)}}parserFor(t){const e=this.lookup(t);return e?e.func:null}parse([t,e]){const s=this.lookup(e),i=this.parserFor(e);return s&&i?Jo(i(t,s.token,...s.args)):null}}class Ri extends sn{parse([t,e]){const s=this.lookup(e),i=this.parserFor(e);if(!s||!i)return null;const n=t.currentCS;t.currentCS="\\"+e;const o=i(t,"\\"+s.token,...s.args);return t.currentCS=n,Jo(o)}}class Ko extends sn{constructor(t,e,s,i={}){super(t,s,i),this.parser=e}parse([t,e]){const s=this.lookup(e),i=this.parserFor(e);return s&&i?Jo(this.parser(t,s.token,i,s.args)):null}}const tp=new Map,$o={register(r){tp.set(r.name,r)},getMap:r=>tp.get(r)};class Wn{constructor(){this._configuration=new ii,this._fallback=new Ui}add(t,e,s=ii.DEFAULTPRIORITY){for(const i of t.slice().reverse()){const n=$o.getMap(i);if(!n)return void this.warn(`Configuration '${i}' not found! Omitted.`);this._configuration.add(n,s)}e&&this._fallback.add(e,s)}remove(t,e=null){for(const s of t){const i=this.retrieve(s);i&&this._configuration.remove(i)}e&&this._fallback.remove(e)}parse(t){for(const{item:i}of this._configuration){const n=i.parse(t);if(n===Wn.FALLBACK)break;if(n)return n}const[e,s]=t;Array.from(this._fallback)[0].item(e,s)}lookup(t){const e=this.applicable(t);return e?e.lookup(t):null}contains(t){const e=this.applicable(t);return!(!e||e instanceof $s&&e.lookup(t).char===null)}toString(){const t=[];for(const{item:e}of this._configuration)t.push(e.name);return t.join(", ")}applicable(t){for(const{item:e}of this._configuration)if(e.contains(t))return e;return null}retrieve(t){for(const{item:e}of this._configuration)if(e.name===t)return e;return null}warn(t){console.log("TexParser Warning: "+t)}}Wn.FALLBACK=Symbol("fallback");class ep{constructor(){this.map=new Map}add(t,e,s=ii.DEFAULTPRIORITY){for(const i of Object.keys(t)){const n=i;let o=this.get(n);o||(o=new Wn,this.set(n,o)),o.add(t[n],e[n],s)}}remove(t,e){for(const s of Object.keys(t)){const i=this.get(s);i&&i.remove(t[s],e[s])}}set(t,e){this.map.set(t,e)}get(t){return this.map.get(t)}retrieve(t){for(const e of this.map.values()){const s=e.retrieve(t);if(s)return s}return null}
vendor: 10,328 bytes, line 61
61keys(){return this.map.keys()}}class qs{static makeProcessor(t,e){return Array.isArray(t)?t:[t,e]}static _create(t,e={}){var s;const i=(s=e.priority)!==null&&s!==void 0?s:ii.DEFAULTPRIORITY,n=e.init?this.makeProcessor(e.init,i):null,o=e.config?this.makeProcessor(e.config,i):null,a=(e.preprocessors||[]).map(u=>this.makeProcessor(u,i)),c=(e.postprocessors||[]).map(u=>this.makeProcessor(u,i)),h=e.parser||"tex";return new qs(t,e[It.HANDLER]||{},e[It.FALLBACK]||{},e[It.ITEMS]||{},e[It.TAGS]||{},e[It.OPTIONS]||{},e[It.NODES]||{},a,c,n,o,i,h)}static create(t,e={}){const s=qs._create(t,e);return rl.set(t,s),s}static local(t={}){return qs._create("",t)}constructor(t,e={},s={},i={},n={},o={},a={},c=[],h=[],u=null,x=null,A,I){this.name=t,this.handler=e,this.fallback=s,this.items=i,this.tags=n,this.options=o,this.nodes=a,this.preprocessors=c,this.postprocessors=h,this.initMethod=u,this.configMethod=x,this.priority=A,this.parser=I,this.handler=Object.assign({[At.CHARACTER]:[],[At.DELIMITER]:[],[At.MACRO]:[],[At.ENVIRONMENT]:[]},e)}get init(){return this.initMethod?this.initMethod[0]:null}get config(){return this.configMethod?this.configMethod[0]:null}}const Vh=new Map,rl={set(r,t){Vh.set(r,t)},get:r=>Vh.get(r),keys:()=>Vh.keys()};class zh{constructor(t,e=["tex"]){this.initMethod=new Ui,this.configMethod=new Ui,this.configurations=new ii,this.parsers=[],this.handlers=new ep,this.items={},this.tags={},this.options={},this.nodes={},this.parsers=e;for(const s of t.slice().reverse())this.addPackage(s);for(const{item:s,priority:i}of this.configurations)this.append(s,i)}init(){this.initMethod.execute(this)}config(t){this.configMethod.execute(this,t);for(const e of this.configurations)this.addFilters(t,e.item)}addPackage(t){const e=typeof t=="string"?t:t[0],s=this.getPackage(e);s&&this.configurations.add(s,typeof t=="string"?s.priority:t[1])}add(t,e,s={}){const i=this.getPackage(t);this.append(i),this.configurations.add(i,i.priority),this.init();const n=e.parseOptions;n.nodeFactory.setCreators(i.nodes);for(const o of Object.keys(i.items))n.itemFactory.setNodeClass(o,i.items[o]);zi.addTags(i.tags),ms(n.options,i.options),Ws(n.options,s),this.addFilters(e,i),i.config&&i.config(this,e)}getPackage(t){const e=rl.get(t);if(e&&!this.parsers.includes(e.parser))throw Error(`Package '${t}' doesn't target the proper parser`);return e||this.warn(`Package '${t}' not found.  Omitted.`),e}append(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),ms(this.options,t.options),Object.assign(this.nodes,t.nodes)}addFilters(t,e){for(const[s,i]of e.preprocessors)t.preFilters.add(s,i);for(const[s,i]of e.postprocessors)t.postFilters.add(s,i)}warn(t){console.warn("MathJax Warning: "+t)}}class Go extends Ft{constructor(t,e){super(t),this.global=e}get kind(){return"start"}get isOpen(){return!0}checkItem(t){if(t.isKind("stop")){let e=this.toMml();return this.global.isInner||(e=this.factory.configuration.tags.finalize(e,this.env)),[[this.factory.create("mml",e)],!0]}return super.checkItem(t)}}class qn extends Ft{get kind(){return"stop"}get isClose(){return!0}}class nl extends Ft{get kind(){return"open"}get isOpen(){return!0}checkItem(t){if(t.isKind("close")){const e=this.toMml(),s=this.create("node","TeXAtom",[e]);return t.addLatexItem(s),[[this.factory.create("mml",s)],!0]}return super.checkItem(t)}}nl.errors=Object.assign(Object.create(Ft.errors),{stop:["ExtraOpenMissingClose","Extra open brace or missing close brace"]});class Xh extends Ft{get kind(){return"close"}get isClose(){return!0}}class Jh extends Ft{get kind(){return"null"}}class Kh extends Ft{get kind(){return"prime"}checkItem(t){const[e,s]=this.Peek(2),i=(L.isType(e,"msubsup")||L.isType(e,"msup"))&&!L.getChildAt(e,e.sup),n=(L.isType(e,"munderover")||L.isType(e,"mover"))&&!L.getChildAt(e,e.over)&&!L.getProperty(e,"subsupOK");if(!i&&!n)return[[this.create("node",e.getProperty("movesupsub")?"mover":"msup",[e,s]),t],!0];const o=i?e.sup:e.over;return L.setChild(e,o,s),[[e,t],!0]}}class ol extends Ft{get kind(){return"subsup"}checkItem(t){if(t.isKind("open")||t.isKind("left"))return Ft.success;const e=this.First,s=this.getProperty("position");if(t.isKind("mml")){if(this.getProperty("primes"))if(s!==2)L.setChild(e,2,this.getProperty("primes"));else{L.setProperty(this.getProperty("primes"),"variantForm",!0);const n=this.create("node","mrow",[this.getProperty("primes"),t.First]);t.First=n}return L.setChild(e,s,t.First),this.getProperty("movesupsub")!=null&&L.setProperty(e,"movesupsub",this.getProperty("movesupsub")),[[this.factory.create("mml",e)],!0]}super.checkItem(t);const i=this.getErrors(["","sub","sup"][s]);throw new V(i[0],i[1],...i.splice(2))}}ol.errors=Object.assign(Object.create(Ft.errors),{stop:["MissingScript","Missing superscript or subscript argument"],sup:["MissingOpenForSup","Missing open brace for superscript"],sub:["MissingOpenForSub","Missing open brace for subscript"]});class $h extends Ft{constructor(t){super(t),this.setProperty("name","\\over")}get kind(){return"over"}get isClose(){return!0}checkItem(t){if(t.isKind("over"))throw new V("AmbiguousUseOf","Ambiguous use of %1",t.getName());if(t.isClose){let e=this.create("node","mfrac",[this.getProperty("num"),this.toMml(!1)]);return this.getProperty("thickness")!=null&&L.setAttribute(e,"linethickness",this.getProperty("thickness")),(this.getProperty("ldelim")||this.getProperty("rdelim"))&&(L.setProperty(e,"withDelims",!0),e=dt.fixedFence(this.factory.configuration,this.getProperty("ldelim"),e,this.getProperty("rdelim"))),e.attributes.set(Dt.Attr.LATEXITEM,this.getProperty("name")),[[this.factory.create("mml",e),t],!0]}return super.checkItem(t)}toString(){return"over["+this.getProperty("num")+" / "+this.nodes.join("; ")+"]"}}class al extends Ft{constructor(t,e){super(t),this.setProperty("delim",e)}get kind(){return"left"}get isOpen(){return!0}checkItem(t){if(t.isKind("right")){const e=dt.fenced(this.factory.configuration,this.getProperty("delim"),this.toMml(),t.getProperty("delim"),"",t.getProperty("color")),s=e.childNodes[0],i=e.childNodes[e.childNodes.length-1],n=this.factory.create("mml",e);return this.addLatexItem(s,"\\left"),t.addLatexItem(i,"\\right"),n.Peek()[0].attributes.set(Dt.Attr.LATEXITEM,"\\left"+t.startStr.slice(this.startI,t.stopI)),[[n],!0]}if(t.isKind("middle")){const e={stretchy:!0};t.getProperty("color")&&(e.mathcolor=t.getProperty("color"));const s=this.create("token","mo",e,t.getProperty("delim"));return t.addLatexItem(s,"\\middle"),this.Push(this.create("node","TeXAtom",[],{texClass:S.CLOSE}),s,this.create("node","TeXAtom",[],{texClass:S.OPEN})),this.env={},[[this],!0]}return super.checkItem(t)}}al.errors=Object.assign(Object.create(Ft.errors),{stop:["ExtraLeftMissingRight","Extra \\left or missing \\right"]});class Gh extends Ft{constructor(t,e,s){super(t),this.setProperty("delim",e),s&&this.setProperty("color",s)}get kind(){return"middle"}get isClose(){return!0}}class Yh extends Ft{constructor(t,e,s){super(t),this.setProperty("delim",e),s&&this.setProperty("color",s)}get kind(){return"right"}get isClose(){return!0}}class Qh extends Ft{get kind(){return"break"}constructor(t,e,s){super(t),this.setProperty("linebreak",e),this.setProperty("insert",s)}checkItem(t){var e,s;const i=this.getProperty("linebreak");if(t.isKind("mml")){const o=t.First;if(o.isKind("mo")){if((((s=(e=L.getOp(o))===null||e===void 0?void 0:e[3])===null||s===void 0?void 0:s.linebreakstyle)||L.getAttribute(o,"linebreakstyle"))!=="after")return L.setAttribute(o,"linebreak",i),[[t],!0];if(!this.getProperty("insert"))return[[t],!0]}}const n=this.create("token","mspace",{linebreak:i});return[[this.factory.create("mml",n),t],!0]}}class ll extends Ft{get kind(){return"begin"}get isOpen(){return!0}checkItem(t){if(t.isKind("end")){if(t.getName()!==this.getName())throw new V("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),t.getName());const e=this.toMml();return t.addLatexItem(e),[[this.factory.create("mml",e)],!0]}if(t.isKind("stop"))throw new V("EnvMissingEnd","Missing \\end{%1}",this.getName());return super.checkItem(t)}}class Zh extends Ft{get kind(){return"end"}get isClose(){return!0}}class Vn extends Ft{get kind(){return"style"}checkItem(t){if(!t.isClose)return super.checkItem(t);const e=this.create("node","mstyle",this.nodes,this.getProperty("styles"));return[[this.factory.create("mml",e),t],!0]}}class t0 extends Ft{get kind(){return"position"}checkItem(t){if(t.isClose)throw new V("MissingBoxFor","Missing box for %1",this.getName());if(t.isFinal){let 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 super.checkItem(t)}}class e0 extends Ft{get kind(){return"cell"}get isClose(){return!0}}class Yo extends Ft{get isFinal(){return!0}get kind(){return"mml"}}class s0 extends Ft{get kind(){return"fn"}checkItem(t){const e=this.First;if(e){if(t.isOpen)return Ft.success;if(!t.isKind("fn")){let s=t.First;if(!t.isKind("mml")||!s)return[[e,t],!0];if(L.isType(s,"mstyle")&&s.childNodes.length&&L.isType(s.childNodes[0].childNodes[0],"mspace")||L.isType(s,"mspace"))return[[e,t],!0];L.isEmbellished(s)&&(s=L.getCoreMO(s));const i=L.getForm(s);if(i!=null&&[0,0,1,1,0,1,1,0,0,0][i[2]])return[[e,t],!0]}return e.isKind("TeXAtom")&&e.isEmpty?[[e,t],!0]:[[e,this.create("token","mo",{texClass:S.NONE},Si.ApplyFunction),t],!0]}return super.checkItem(t)}}class i0 extends Ft{constructor(){super(...arguments),this.remap=$o.getMap("not_remap")}get kind(){return"not"}checkItem(t){let e,s,i;if(t.isKind("open")||t.isKind("left"))return Ft.success;if(t.isKind("mml")&&(L.isType(t.First,"mo")||L.isType(t.First,"mi")||L.isType(t.First,"mtext"))&&(e=t.First,s=L.getText(e),s.length===1&&!L.getProperty(e,"movesupsub")&&L.getChildren(e).length===1))return this.remap.contains(s)?(i=this.create("text",this.remap.lookup(s).char),L.setChild(e,0,i)):(i=this.create("text","
61̸"),L.appendChildren(e,[i])),[[t],!0];i=this.create("text","⧸");const n=this.create("node","mtext",[],{},i),o=this.create("node","mpadded",[n],{width:0});return e=this.create("node","TeXAtom",[o],{texClass:S.REL}),[[e,t],!0]}}class r0 extends Ft{get kind(){return"nonscript"}checkItem(t){if(t.isKind("mml")&&t.Size()===1){let e=t.First;if(e.isKind("mstyle")&&e.notParent&&(e=L.getChildren(L.getChildren(e)[0])[0]),e.isKind("mspace")){if(e!==t.First){const s=this.create("node","mrow",[t.Pop()]);t.Push(s)}this.factory.configuration.addNode("nonscript",t.First)}}return[[t],!0]}}class n0 extends Ft{get kind(){return"dots"}checkItem(t){if(t.isKind("open")||t.isKind("left"))return Ft.success;let e=this.getProperty("ldots");const s=t.First;if(t.isKind("mml")&&L.isEmbellished(s)){const i=L.getTexClass(L.getCoreMO(s));i!==S.BIN&&i!==S.REL||(e=this.getProperty("cdots"))}return[[e,t],!0]}}class hr extends Ft{constructor(){super(...arguments),this.table=[],this.row=[],this.frame=[],this.hfill=[],this.arraydef={},this.cstart=[],this.cend=[],this.cextra=[],this.atEnd=!1,this.ralign=[],this.breakAlign={cell:"",row:"",table:""},this.templateSubs=0}get kind(){return"array"}get isOpen(){return!0}get copyEnv(){return!1}checkItem(t){if(t.isClose&&!t.isKind("over")){if(t.getProperty("isEntry"))return this.EndEntry(),this.clearEnv(),this.StartEntry(),Ft.fail;if(t.getProperty("isCR"))return this.EndEntry(),this.EndRow(),this.clearEnv(),this.StartEntry(),Ft.fail;this.EndTable(),this.clearEnv();const e=this.factory.create("mml",this.createMml());if(this.getProperty("requireClose")){if(t.isKind("close"))return[[e],!0];throw new V("MissingCloseBrace","Missing close brace")}return[[e,t],!0]}return super.checkItem(t)}createMml(){const t=this.arraydef.scriptlevel;delete this.arraydef.scriptlevel;let e=this.create("node","mtable",this.table,this.arraydef);return t&&e.setProperty("smallmatrix",!0),this.breakAlign.table&&L.setAttribute(e,"data-break-align",this.breakAlign.table),this.getProperty("arrayPadding")&&(L.setAttribute(e,"data-frame-styles",""),L.setAttribute(e,"framespacing",this.getProperty("arrayPadding"))),e=this.handleFrame(e),t!==void 0&&(e=this.create("node","mstyle",[e],{scriptlevel:t})),(this.getProperty("open")||this.getProperty("close"))&&(e=dt.fenced(this.factory.configuration,this.getProperty("open"),e,this.getProperty("close"))),e}handleFrame(t){if(!this.frame.length)return t;const e=new Map(this.frame),s=this.frame.reduce((n,[,o])=>o===n?o:"",this.frame[0][1]);if(s){if(this.frame.length===4)return L.setAttribute(t,"frame",s),L.removeAttribute(t,"data-frame-styles"),t;if(s==="solid")return L.setAttribute(t,"data-frame-styles",""),t=this.create("node","menclose",[t],{notation:Array.from(e.keys()).join(" "),"data-padding":0})}const i=Vi.map(n=>e.get(n)||"none").join(" ");return L.setAttribute(t,"data-frame-styles",i),t}StartEntry(){const t=this.row.length;let e=this.cstart[t],s=this.cend[t];const i=this.ralign[t],n=this.cextra;if(!(e||s||i||n[t]||n[t+1]))return;let[o,a,c,h]=this.getEntry();if(!n[t]||this.atEnd&&!n[t+1]||(e+="&"),c!=="&"&&(h=!!a.trim()||!!(t||c&&c.substring(0,4)!=="\\end"),n[t+1]&&!n[t]&&(s=(s||"")+"&",this.atEnd=!0)),!h&&!o)return;const u=this.parser;if(h&&(e&&(a=dt.addArgs(u,e,a)),s&&(a=dt.addArgs(u,a,s)),i&&(a="\\text{"+a.trim()+"}"),(e||s||i)&&++this.templateSubs>u.configuration.options.maxTemplateSubtitutions))throw new V("MaxTemplateSubs","Maximum template substitutions exceeded; is there an invalid use of \\\\ in the template?");o&&(a=dt.addArgs(u,o,a)),u.string=dt.addArgs(u,a,u.string),u.i=0}getEntry(){const t=this.parser,e=/^([^]*?)([&{}]|\\\\|\\(?:begin|end)\s*\{array\}|\\cr|\\)/;let s,i=0,n=0,o=t.i;const a=["","","",!1];for(;(s=t.string.slice(o).match(e))!==null;)switch(o+=s[0].length,s[2]){case"\\":o++;break;case"{":i++;break;case"}":if(!i)return a;i--;break;case"\\begin{array}":i||n++;break;case"\\end{array}":if(!i&&n){n--;break}default:{if(i||n)continue;o-=s[2].length;let c=t.string.slice(t.i,o).trim();const h=c.match(/^(?:\s*\\(?:h(?:dash)?line|hfil{1,3}|rowcolor\s*\{.*?\}))+/);return h&&(c=c.slice(h[0].length)),t.string=t.string.slice(o),t.i=0,[h?.[0]||"",c,s[2],!0]}}return a}EndEntry(){const t=this.create("node","mtd",this.nodes);this.hfill.length&&(this.hfill[0]===0&&L.setAttribute(t,"columnalign","right"),this.hfill[this.hfill.length-1]===this.Size()&&L.setAttribute(t,"columnalign",L.getAttribute(t,"columnalign")?"center":"left"));const e=this.ralign[this.row.length];if(e){const[s,i,n]=e,o=this.create("node","mpadded",t.childNodes[0].childNodes,{width:i,"data-overflow":"auto","data-align":n,"data-vertical-align":s});o.setProperty("vbox",s),t.childNodes[0].childNodes=[],t.appendChild(o)}else this.breakAlign.cell&&L.setAttribute(t,"data-vertical-align",this.breakAlign.cell);this.breakAlign.cell="",this.row.push(t),this.Clear(),this.hfill=[]}EndRow(){let t="mtr";this.getProperty("isNumbered")&&this.row.length===3?(this.row.unshift(this.row.pop()),t="mlabeledtr"):this.getProperty("isLabeled")&&(t="mlabeledtr",this.setProperty("isLabeled",!1));const e=this.create("node",t,this.row);this.breakAlign.row&&(L.setAttribute(e,"data-break-align",this.breakAlign.row),this.breakAlign.row=""),this.addLatexItem(e),this.table.push(e),this.row=[],this.atEnd=!1}EndTable(){(this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.checkLines()}
vendor: 17,925 bytes, lines 61-62
61checkLines(){if(this.arraydef.rowlines){const t=this.arraydef.rowlines.split(/ /);t.length===this.table.length?(this.frame.push(["bottom",t.pop()]),t.length?this.arraydef.rowlines=t.join(" "):delete this.arraydef.rowlines):t.length<this.table.length-1&&(this.arraydef.rowlines+=" none")}if(this.getProperty("rowspacing")){const t=this.arraydef.rowspacing.split(/ /);for(;t.length<this.table.length;)t.push(this.getProperty("rowspacing")+"em");this.arraydef.rowspacing=t.join(" ")}}addRowSpacing(t){if(this.arraydef.rowspacing){const e=this.arraydef.rowspacing.split(/ /);if(!this.getProperty("rowspacing")){const i=Qt.dimen2em(e[0]);this.setProperty("rowspacing",i)}const s=this.getProperty("rowspacing");for(;e.length<this.table.length;)e.push(Qt.em(s));e[this.table.length-1]=Qt.em(Math.max(0,s+Qt.dimen2em(t))),this.arraydef.rowspacing=e.join(" ")}}}class cl extends hr{constructor(t,...e){super(t),this.maxrow=0,this.factory.configuration.tags.start(e[0],e[2],e[1])}get kind(){return"eqnarray"}EndEntry(){const t=this.arraydef.columnalign.split(/ /);(this.row.length&&t.length?t[this.row.length%t.length]:"right")!=="right"&&dt.fixInitialMO(this.factory.configuration,this.nodes),super.EndEntry()}EndRow(){this.row.length>this.maxrow&&(this.maxrow=this.row.length);const t=this.factory.configuration.tags.getTag();t&&(this.row=[t].concat(this.row),this.setProperty("isLabeled",!0)),this.factory.configuration.tags.clearTag(),super.EndRow()}EndTable(){super.EndTable(),this.factory.configuration.tags.end(),this.extendArray("columnalign",this.maxrow),this.extendArray("columnwidth",this.maxrow),this.extendArray("columnspacing",this.maxrow-1),this.extendArray("data-break-align",this.maxrow),this.addIndentshift()}extendArray(t,e){if(!this.arraydef[t])return;const s=this.arraydef[t].split(/ /),i=[...s];if(i.length>1){for(;i.length<e;)i.push(...s);this.arraydef[t]=i.slice(0,e).join(" ")}}addIndentshift(){const t=this.arraydef.columnalign.split(/ /);let e="";for(const s of t.keys()){if(t[s]==="left"&&s>0){const i=e==="center"?".7em":"2em";for(const n of this.table){const o=n.childNodes[n.isKind("mlabeledtr")?s+1:s];if(o){const a=this.create("node","mstyle",o.childNodes[0].childNodes,{indentshift:i});o.childNodes[0].childNodes=[],o.appendChild(a)}}}e=t[s]}}}class o0 extends ll{get kind(){return"mstyle"}constructor(t,e,s){super(t),this.attrList=e,this.setProperty("name",s)}checkItem(t){return t.isKind("end")&&t.getName()===this.getName()?[[this.create("node","mstyle",[this.toMml()],this.attrList)],!0]:super.checkItem(t)}}class a0 extends Ft{constructor(t,...e){super(t),this.factory.configuration.tags.start("equation",!0,e[0])}get kind(){return"equation"}get isOpen(){return!0}checkItem(t){if(t.isKind("end")){const e=this.toMml(),s=this.factory.configuration.tags.getTag();return this.factory.configuration.tags.end(),[[s?this.factory.configuration.tags.enTag(e,s):e,t],!0]}if(t.isKind("stop"))throw new V("EnvMissingEnd","Missing \\end{%1}",this.getName());return super.checkItem(t)}}const tg=1.2/.85,eg={fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1};function rn(r,t=1/0){const e=r.replace(/\s+/g,"").split("").map(s=>{const i={t:"top",b:"bottom",m:"middle",c:"center"}[s];if(!i)throw new V("BadBreakAlign","Invalid alignment character: %1",s);return i});if(e.length>t)throw new V("TooManyAligns","Too many alignment characters: %1",r);return t===1?e[0]:e.join(" ")}function sp(r,t){const e=r.stack.env,s=e.inRoot;e.inRoot=!0;const i=new $e(t,e,r.configuration);let n=i.mml();const o=i.stack.global;if(o.leftRoot||o.upRoot){const a={};o.leftRoot&&(a.width=o.leftRoot),o.upRoot&&(a.voffset=o.upRoot,a.height=o.upRoot),n=r.create("node","mpadded",[n],a)}return e.inRoot=s,n}const ip={Open(r,t){r.Push(r.itemFactory.create("open"))},Close(r,t){r.Push(r.itemFactory.create("close"))},Bar(r,t){const e=r.create("token","mo",{stretchy:!1,texClass:S.ORD},t);e.setProperty("keep-attrs","stretchy"),r.Push(e)},Tilde(r,t){r.Push(r.create("token","mtext",{},Si.nbsp))},Space(r,t){},Superscript(r,t){let e,s;r.GetNext().match(/\d/)&&(r.string=r.string.substring(0,r.i+1)+" "+r.string.substring(r.i+1));const i=r.stack.Top();i.isKind("prime")?([s,e]=i.Peek(2),r.stack.Pop()):(s=r.stack.Prev(),s||(s=r.create("token","mi",{},"")));const n=L.getProperty(s,"movesupsub");let o=L.isType(s,"msubsup")?s.sup:s.over;if(L.isType(s,"msubsup")&&!L.isType(s,"msup")&&L.getChildAt(s,s.sup)||L.isType(s,"munderover")&&!L.isType(s,"mover")&&L.getChildAt(s,s.over)&&!L.getProperty(s,"subsupOK"))throw new V("DoubleExponent","Double exponent: use braces to clarify");L.isType(s,"msubsup")&&!L.isType(s,"msup")||(n?((!L.isType(s,"munderover")||L.isType(s,"mover")||L.getChildAt(s,s.over))&&(s=r.create("node","munderover",[s],{movesupsub:!0})),o=s.over):(s=r.create("node","msubsup",[s]),o=s.sup)),r.Push(r.itemFactory.create("subsup",s).setProperties({position:o,primes:e,movesupsub:n}))},Subscript(r,t){let e,s;r.GetNext().match(/\d/)&&(r.string=r.string.substring(0,r.i+1)+" "+r.string.substring(r.i+1));const i=r.stack.Top();i.isKind("prime")?([s,e]=i.Peek(2),r.stack.Pop()):(s=r.stack.Prev(),s||(s=r.create("token","mi",{},"")));const n=L.getProperty(s,"movesupsub");let o=L.isType(s,"msubsup")?s.sub:s.under;if(L.isType(s,"msubsup")&&!L.isType(s,"msup")&&L.getChildAt(s,s.sub)||L.isType(s,"munderover")&&!L.isType(s,"mover")&&L.getChildAt(s,s.under)&&!L.getProperty(s,"subsupOK"))throw new V("DoubleSubscripts","Double subscripts: use braces to clarify");L.isType(s,"msubsup")&&!L.isType(s,"msup")||(n?((!L.isType(s,"munderover")||L.isType(s,"mover")||L.getChildAt(s,s.under))&&(s=r.create("node","munderover",[s],{movesupsub:!0})),o=s.under):(s=r.create("node","msubsup",[s]),o=s.sub)),r.Push(r.itemFactory.create("subsup",s).setProperties({position:o,primes:e,movesupsub:n}))},Prime(r,t){let e=r.stack.Prev();if(e||(e=r.create("token","mi")),L.isType(e,"msubsup")&&!L.isType(e,"msup")&&L.getChildAt(e,e.sup)||L.isType(e,"munderover")&&!L.isType(e,"mover")&&L.getChildAt(e,e.over)&&!L.getProperty(e,"subsupOK"))throw new V("DoubleExponentPrime","Prime causes double exponent: use braces to clarify");let s="";r.i--;do s+=Si.prime,r.i++,t=r.GetNext();while(t==="'"||t===Si.rsquo);s=["","′","″","‴","⁗"][s.length]||s;const i=r.create("token","mo",{variantForm:!0},s);r.Push(r.itemFactory.create("prime",e,i))},Comment(r,t){for(;r.i<r.string.length&&r.string.charAt(r.i)!==`
62`;)r.i++},Hash(r,t){throw new V("CantUseHash1","You can't use 'macro parameter character #' in math mode")},MathFont(r,t,e,s=""){const i=r.GetArgument(t),n=new $e(i,Object.assign(Object.assign({multiLetterIdentifiers:r.options.identifierPattern},r.stack.env),{font:e,italicFont:s,noAutoOP:!0}),r.configuration).mml();r.Push(r.create("node","TeXAtom",[n]))},SetFont(r,t,e){r.stack.env.font=e,r.Push(r.itemFactory.create("null"))},SetStyle(r,t,e,s,i){r.stack.env.style=e,r.stack.env.level=i,r.Push(r.itemFactory.create("style").setProperty("styles",{displaystyle:s,scriptlevel:i}))},SetSize(r,t,e){r.stack.env.size=e,r.Push(r.itemFactory.create("style").setProperty("styles",{mathsize:Gt(e)}))},Spacer(r,t,e){const s=r.create("node","mspace",[],{width:Gt(e)}),i=r.create("node","mstyle",[s],{scriptlevel:0});r.Push(i)},DiscretionaryTimes(r,t){r.Push(r.create("token","mo",{linebreakmultchar:"×"},"⁢"))},AllowBreak(r,t){r.Push(r.create("token","mspace"))},Break(r,t){r.Push(r.create("token","mspace",{linebreak:Dt.LineBreak.NEWLINE}))},Linebreak(r,t,e){let s=!0;const i=r.stack.Prev(!0);i&&i.isKind("mo")&&L.getMoAttribute(i,"linebreakstyle")!==Dt.LineBreakStyle.BEFORE&&(i.attributes.set("linebreak",e),s=!1),r.Push(r.itemFactory.create("break",e,s))},LeftRight(r,t){const e=t.substring(1);r.Push(r.itemFactory.create(e,r.GetDelimiter(t),r.stack.env.color))},NamedFn(r,t,e){e||(e=t.substring(1));const s=r.create("token","mi",{texClass:S.OP},e);r.Push(r.itemFactory.create("fn",s))},NamedOp(r,t,e){e||(e=t.substring(1)),e=e.replace(/&thinsp;/," ");const s=r.create("token","mo",{movablelimits:!0,movesupsub:!0,form:Dt.Form.PREFIX,texClass:S.OP},e);r.Push(s)},Limits(r,t,e){let s=r.stack.Prev(!0);if(!s||L.getTexClass(L.getCoreMO(s))!==S.OP&&L.getProperty(s,"movesupsub")==null)throw new V("MisplacedLimits","%1 is allowed only on operators",r.currentCS);const i=r.stack.Top();let n;L.isType(s,"munderover")&&!e?(n=r.create("node","msubsup"),L.copyChildren(s,n),s=i.Last=n):L.isType(s,"msubsup")&&e&&(n=r.create("node","munderover"),L.copyChildren(s,n),s=i.Last=n),L.setProperty(s,"movesupsub",!!e),L.setProperties(L.getCoreMO(s),{movablelimits:!1}),((L.isType(s,"mo")?L.getMoAttribute(s,"movableLimits"):L.getAttribute(s,"movablelimits"))||L.getProperty(s,"movablelimits"))&&L.setProperties(s,{movablelimits:!1})},Over(r,t,e,s){const i=r.itemFactory.create("over").setProperty("name",r.currentCS);e||s?(i.setProperty("ldelim",e),i.setProperty("rdelim",s)):t.match(/withdelims$/)&&(i.setProperty("ldelim",r.GetDelimiter(t)),i.setProperty("rdelim",r.GetDelimiter(t))),t.match(/^\\above/)?i.setProperty("thickness",r.GetDimen(t)):(t.match(/^\\atop/)||e||s)&&i.setProperty("thickness",0),r.Push(i)},Frac(r,t){const e=r.ParseArg(t),s=r.ParseArg(t),i=r.create("node","mfrac",[e,s]);r.Push(i)},Sqrt(r,t){const e=r.GetBrackets(t);let s=r.GetArgument(t);s==="\\frac"&&(s+="{"+r.GetArgument(s)+"}{"+r.GetArgument(s)+"}");let i=new $e(s,r.stack.env,r.configuration).mml();i=e?r.create("node","mroot",[i,sp(r,e)]):r.create("node","msqrt",[i]),r.Push(i)},Root(r,t){const e=r.GetUpTo(t,"\\of"),s=r.ParseArg(t),i=r.create("node","mroot",[s,sp(r,e)]);r.Push(i)},MoveRoot(r,t,e){if(!r.stack.env.inRoot)throw new V("MisplacedMoveRoot","%1 can appear only within a root",r.currentCS);if(r.stack.global[e])throw new V("MultipleMoveRoot","Multiple use of %1",r.currentCS);let s=r.GetArgument(t);if(!s.match(/-?[0-9]+/))throw new V("IntegerArg","The argument to %1 must be an integer",r.currentCS);s=parseInt(s,10)/15+"em",s.substring(0,1)!=="-"&&(s="+"+s),r.stack.global[e]=s},Accent(r,t,e,s){const i=r.ParseArg(t),n=Object.assign(Object.assign({},dt.getFontDef(r)),{accent:!0,mathaccent:s===void 0||s}),o=L.createEntity(e),a=r.create("token","mo",n,o);L.setAttribute(a,"stretchy",!!s);const c=L.isEmbellished(i)?L.getCoreMO(i):i;(L.isType(c,"mo")||L.getProperty(c,"movablelimits"))&&L.setProperties(c,{movablelimits:!1});const h=r.create("node","munderover");L.setChild(h,0,i),L.setChild(h,1,null),L.setChild(h,2,a);const u=r.create("node","TeXAtom",[h]);r.Push(u)},UnderOver(r,t,e,s){const i=L.createEntity(e),n=r.create("token","mo",{stretchy:!0,accent:!0},i);i.match(Ps.mathaccentsWithWidth)&&n.setProperty("mathaccent",!1);const o=t.charAt(1)==="o"?"over":"under",a=r.ParseArg(t);r.Push(dt.underOver(r,a,n,o,s))},Overset(r,t){const e=r.ParseArg(t),s=r.ParseArg(t),i=e.coreMO(),n=i.isKind("mo")&&L.getMoAttribute(i,"accent")===!0;dt.checkMovableLimits(s);const o=r.create("node","mover",[s,e],{accent:n});r.Push(o)},Underset(r,t){const e=r.ParseArg(t),s=r.ParseArg(t),i=e.coreMO(),n=i.isKind("mo")&&L.getMoAttribute(i,"accent")===!0;dt.checkMovableLimits(s);const o=r.create("node","munder",[s,e],{accentunder:n});r.Push(o)},Overunderset(r,t){const e=r.ParseArg(t),s=r.ParseArg(t),i=r.ParseArg(t),n=e.coreMO(),o=s.coreMO(),a=n.isKind("mo")&&L.getMoAttribute(n,"accent")===!0,c=o.isKind("mo")&&L.getMoAttribute(o,"accent")===!0;dt.checkMovableLimits(i);const h=r.create("node","munderover",[i,s,e],{accent:a,accentunder:c});r.Push(h)},TeXAtom(r,t,e){const s={texClass:e};let i,n;if(e===S.OP){s.movesupsub=s.movablelimits=!0;const o=r.GetArgument(t),a=o.match(/^\s*\\rm\s+([a-zA-Z0-9 ]+)$/);if(a)s.mathvariant=Dt.Variant.NORMAL,n=r.create("token","mi",s,a[1]);else{const c=new $e(o,r.stack.env,r.configuration).mml();n=r.create("node","TeXAtom",[c],s)}i=r.itemFactory.create("fn",n)}else i=r.create("node","TeXAtom",[r.ParseArg(t)],s);r.Push(i)},VBox(r,t,e){const s=new $e(r.GetArgument(t),r.stack.env,r.configuration),i={"data-vertical-align":e,texClass:S.ORD};s.stack.env.hsize&&(i.width=s.stack.env.hsize,i["data-overflow"]="linebreak");const n=r.create("node","mpadded",[s.mml()],i);n.setProperty("vbox",e),r.Push(n)},Hsize(r,t){r.GetNext()==="="&&r.i++,r.stack.env.hsize=r.GetDimen(t),r.Push(r.itemFactory.create("null"))},ParBox(r,t){const e=r.GetBrackets(t,"c"),s=r.GetDimen(t),i=dt.internalMath(r,r.GetArgument(t)),n=rn(e,1),o=r.create("node","mpadded",i,{width:s,"data-overflow":"linebreak","data-vertical-align":n});o.setProperty("vbox",n),r.Push(o)},BreakAlign(r,t){const e=r.stack.Top();if(!(e instanceof hr))throw new V("BreakNotInArray","%1 must be used in an alignment environment",r.currentCS);switch(r.GetArgument(t).trim()){case"c":if(e.First)throw new V("BreakFirstInEntry","%1 must be at the beginning of an alignment entry",r.currentCS+"{c}");e.breakAlign.cell=rn(r.GetArgument(t),1);break;case"r":if(e.row.length||e.First)throw new V("BreakFirstInRow","%1 must be at the beginning of an alignment row",r.currentCS+"{r}");e.breakAlign.row=rn(r.GetArgument(t));break;case"t":if(e.table.length||e.row.length||e.First)throw new V("BreakFirstInTable","%1 must be at the beginning of an alignment",r.currentCS+"{t}");e.breakAlign.table=rn(r.GetArgument(t));break;default:throw new V("BreakType","First argument to %1 must be one of c, r, or t",r.currentCS)}},MmlToken(r,t){const e=r.GetArgument(t);let s=r.GetBrackets(t,"").replace(/^\s+/,"");const i=r.GetArgument(t),n={},o=[];let a;try{a=r.create("node",e)}catch{a=null}if(!a||!a.isToken)throw new V("NotMathMLToken","%1 is not a token element",e);for(;s!=="";){const h=s.match(/^([a-z]+)\s*=\s*('[^'\n]*'|"[^"\n]*"|[^ ,\n]*)[\s\n]*,?[\s\n]*/i);if(!h)throw new V("InvalidMathMLAttr","Invalid MathML attribute: %1",s.split(/[\s\n=]/)[0]);if(!a.attributes.hasDefault(h[1])&&!eg[h[1]])throw new V("UnknownAttrForElement","%1 is not a recognized attribute for %2",h[1],e);let u=dt.mmlFilterAttribute(r,h[1],h[2].replace(/^(['"])(.*)\1$/,"$2"));u&&(u.toLowerCase()==="true"?u=!0:u.toLowerCase()==="false"&&(u=!1),n[h[1]]=u,o.push(h[1])),s=s.substring(h[0].length)}o.length&&a.setProperty("keep-attrs",o.join(" "));const c=r.create("text",Lu(i));a.appendChild(c),L.setProperties(a,n),r.Push(a)},Strut(r,t){const e=r.create("node","mrow"),s=r.create("node","mpadded",[e],{height:"8.6pt",depth:"3pt",width:0});r.Push(s)},Phantom(r,t,e,s){let i=r.create("node","mphantom",[r.ParseArg(t)]);(e||s)&&(i=r.create("node","mpadded",[i]),s&&(L.setAttribute(i,"height",0),L.setAttribute(i,"depth",0)),e&&L.setAttribute(i,"width",0));const n=r.create("node","TeXAtom",[i]);r.Push(n)},Smash(r,t){const e=Qt.trimSpaces(r.GetBrackets(t,"")),s=r.create("node","mpadded",[r.ParseArg(t)]);switch(e){case"b":L.setAttribute(s,"depth",0);break;case"t":L.setAttribute(s,"height",0);break;default:L.setAttribute(s,"height",0),L.setAttribute(s,"depth",0)}const i=r.create("node","TeXAtom",[s]);r.Push(i)},Lap(r,t){const e=r.create("node","mpadded",[r.ParseArg(t)],{width:0});t==="\\llap"&&L.setAttribute(e,"lspace","-1width");const s=r.create("node","TeXAtom",[e]);r.Push(s)},RaiseLower(r,t){let e=r.GetDimen(t);const s=r.itemFactory.create("position").setProperties({name:r.currentCS,move:"vertical"});e.charAt(0)==="-"&&(e=e.slice(1),t=t.substring(1)==="raise"?"\\lower":"\\raise"),t==="\\lower"?(s.setProperty("dh","-"+e),s.setProperty("dd","+"+e)):(s.setProperty("dh","+"+e),s.setProperty("dd","-"+e)),r.Push(s)},MoveLeftRight(r,t){let e=r.GetDimen(t),s=e.charAt(0)==="-"?e.slice(1):"-"+e;if(t==="\\moveleft"){const i=e;e=s,s=i}r.Push(r.itemFactory.create("position").setProperties({name:r.currentCS,move:"horizontal",left:r.create("node","mspace",[],{width:e}),right:r.create("node","mspace",[],{width:s})}))},Hskip(r,t,e=!1){const s=r.create("node","mspace",[],{width:r.GetDimen(t)});e&&L.setAttribute(s,"linebreak","nobreak"),r.Push(s)},Nonscript(r,t){r.Push(r.itemFactory.create("nonscript"))},Rule(r,t,e){const s={width:r.GetDimen(t),height:r.GetDimen(t),depth:r.GetDimen(t)};e!=="blank"&&(s.mathbackground=r.stack.env.color||"black");const i=r.create("node","mspace",[],s);r.Push(i)},rule(r,t){const e=r.GetBrackets(t),s=r.GetDimen(t),i=r.GetDimen(t);let n=r.create("node","mspace",[],{width:s,height:i,mathbackground:r.stack.env.color||"black"});e&&(n=r.create("node","mpadded",[n],{voffset:e}),e.match(/^-/)?(L.setAttribute(n,"height",e),L.setAttribute(n,"depth","+"+e.substring(1))):L.setAttribute(n,"height","+"+e)),r.Push(n)},MakeBig(r,t,e,s){const i=String(s*=tg).replace(/(\.\d\d\d).+/,"$1")+"em",n=r.GetDelimiter(t,!0),o=r.create("token","mo",{minsize:i,maxsize:i,fence:!0,stretchy:!0,symmetric:!0},n),a=r.create("node","TeXAtom",[o],{texClass:e});r.Push(a)},BuildRel(r,t){const e=r.ParseUpTo(t,"\\over"),s=r.ParseArg(t),i=r.create("node","munderover");L.setChild(i,0,s),L.setChild(i,1,null),L.setChild(i,2,e);const n=r.create("node","TeXAtom",[i],{texClass:S.REL});r.Push(n)},HBox(r,t,e,s){r.PushAll(dt.internalMath(r,r.GetArgument(t),e,s))},FBox(r,t){const e=dt.internalMath(r,r.GetArgument(t)),s=r.create("node","menclose",e,{notation:"box"});r.Push(s)},FrameBox(r,t){const e=r.GetBrackets(t),s=r.GetBrackets(t)||"c";let i=dt.internalMath(r,r.GetArgument(t));e&&(i=[r.create("node","mpadded",i,{width:e,"data-align":Jr(s,{l:"left",r:"right"},"center")})]);const n=r.create("node","TeXAtom",[r.create("node","menclose",i,{notation:"box"})],{texClass:S.ORD});r.Push(n)},MakeBox(r,t){const e=r.GetBrackets(t),s=r.GetBrackets(t,"c"),i=r.create("node","mpadded",dt.internalMath(r,r.GetArgument(t)));e&&L.setAttribute(i,"width",e);const n=Jr(s.toLowerCase(),{c:"center",r:"right"},"");n&&L.setAttribute(i,"data-align",n),s.toLowerCase()!==s&&L.setAttribute(i,"data-overflow","linebreak"),r.Push(i)},Not(r,t){r.Push(r.itemFactory.create("not"))},Dots(r,t){const e=L.createEntity("2026"),s=L.createEntity("22EF"),i=r.create("token","mo",{stretchy:!1},e),n=r.create("token","mo",{stretchy:!1},s);r.Push(r.itemFactory.create("dots").setProperties({ldots:i,cdots:n}
62))},Matrix(r,t,e,s,i,n,o,a,c,h){const u=r.GetNext();if(u==="")throw new V("MissingArgFor","Missing argument for %1",r.currentCS);u==="{"?r.i++:(r.string=u+"}"+r.string.slice(r.i+1),r.i=0);const x=r.itemFactory.create("array").setProperty("requireClose",!0);!e&&i||x.setProperty("arrayPadding",".2em .125em"),x.arraydef={rowspacing:o||"4pt",columnspacing:n||"1em"},c&&x.setProperty("isCases",!0),h&&(x.setProperty("isNumbered",!0),x.arraydef.side=h),(e||s)&&(x.setProperty("open",e),x.setProperty("close",s)),a==="D"&&(x.arraydef.displaystyle=!0),i!=null&&(x.arraydef.columnalign=i),r.Push(x)},Entry(r,t){r.Push(r.itemFactory.create("cell").setProperties({isEntry:!0,name:t}));const e=r.stack.Top(),s=e.getProperty("casesEnv");if(!e.getProperty("isCases")&&!s)return;const i=r.string;let n=0,o=-1,a=r.i,c=i.length;const h=s?new RegExp(`^\\\\end\\s*\\{${s.replace(/\*/,"\\*")}\\}`):null;for(;a<c;){const x=i.charAt(a);if(x==="{")n++,a++;else if(x==="}")n===0?c=0:(n--,n===0&&o<0&&(o=a-r.i),a++);else{if(x==="&"&&n===0)throw new V("ExtraAlignTab","Extra alignment tab in \\cases text");if(x==="\\"){const A=i.substring(a);A.match(/^((\\cr)[^a-zA-Z]|\\\\)/)||h&&A.match(h)?c=0:a+=2}else a++}}const u=i.substring(r.i,a);if(!u.match(/^\s*\\text[^a-zA-Z]/)||o!==u.replace(/\s+$/,"").length-1){const x=dt.internalMath(r,Qt.trimSpaces(u),0);r.PushAll(x),r.i=a}},Cr(r,t){r.Push(r.itemFactory.create("cell").setProperties({isCR:!0,name:t}))},CrLaTeX(r,t,e=!1){let s;if(!e&&(r.string.charAt(r.i)==="*"&&r.i++,r.string.charAt(r.i)==="[")){const o=r.GetBrackets(t,""),[a,c]=Qt.matchDimen(o);if(o&&!a)throw new V("BracketMustBeDimension","Bracket argument to %1 must be a dimension",r.currentCS);s=a+c}r.Push(r.itemFactory.create("cell").setProperties({isCR:!0,name:t,linebreak:!0}));const i=r.stack.Top();let n;i instanceof hr?s&&i.addRowSpacing(s):(n=r.create("node","mspace",[],{linebreak:Dt.LineBreak.NEWLINE}),s&&L.setAttribute(n,"data-lineleading",s),r.Push(n))},HLine(r,t,e){e==null&&(e="solid");const s=r.stack.Top();if(!(s instanceof hr)||s.Size())throw new V("Misplaced","Misplaced %1",r.currentCS);if(s.table.length){const i=s.arraydef.rowlines?s.arraydef.rowlines.split(/ /):[];for(;i.length<s.table.length;)i.push("none");i[s.table.length-1]=e,s.arraydef.rowlines=i.join(" ")}else s.frame.push(["top",e])},HFill(r,t){const e=r.stack.Top();if(!(e instanceof hr))throw new V("UnsupportedHFill","Unsupported use of %1",r.currentCS);e.hfill.push(e.Size())},NewColumnType(r,t){const e=r.GetArgument(t),s=r.GetBrackets(t,"0"),i=r.GetArgument(t);if(e.length!==1)throw new V("BadColumnName","Column specifier must be exactly one character: %1",e);if(!s.match(/^\d+$/))throw new V("PositiveIntegerArg","Argument to %1 must be a positive integer",s);const n=r.configuration.columnParser;n.columnHandler[e]=o=>n.macroColumn(o,i,parseInt(s)),r.Push(r.itemFactory.create("null"))},BeginEnd(r,t){const e=r.GetArgument(t);if(e.match(/\\/))throw new V("InvalidEnv","Invalid environment name '%1'",e);const s=r.configuration.handlers.get(At.ENVIRONMENT).lookup(e);if(s&&t==="\\end"){if(!s.args[0]){const i=r.itemFactory.create("end").setProperty("name",e);return void r.Push(i)}r.stack.env.closing=e}dt.checkMaxMacros(r,!1),r.parse(At.ENVIRONMENT,[r,e])},Array(r,t,e,s,i,n,o,a,c){i||(i=r.GetArgument("\\begin{"+t.getName()+"}"));const h=r.itemFactory.create("array");return t.getName()==="array"&&h.setProperty("arrayPadding",".5em .125em"),h.parser=r,h.arraydef={columnspacing:n||"1em",rowspacing:o||"4pt"},r.configuration.columnParser.process(r,i,h),e&&h.setProperty("open",r.convertDelimiter(e)),s&&h.setProperty("close",r.convertDelimiter(s)),(a||"").charAt(1)==="'"&&(h.arraydef["data-cramped"]=!0,a=a.charAt(0)),a==="D"?h.arraydef.displaystyle=!0:a&&(h.arraydef.displaystyle=!1),h.arraydef.scriptlevel=a==="S"?1:0,c&&(h.arraydef.useHeight=!1),r.Push(t),h.StartEntry(),h},AlignedArray(r,t,e=""){const s=r.GetBrackets("\\begin{"+t.getName()+"}"),i=ip.Array(r,t,null,null,null,null,null,e);return dt.setArrayAlign(i,s)},IndentAlign(r,t){const e=`\\begin{${t.getName()}}`,s=r.GetBrackets(e,""),i=r.GetBrackets(e,""),n=r.GetBrackets(e,"");
vendor: 15,864 bytes, line 62
62if(s&&!Qt.matchDimen(s)[0]||i&&!Qt.matchDimen(i)[0]||n&&!Qt.matchDimen(n)[0])throw new V("BracketMustBeDimension","Bracket argument to %1 must be a dimension",e);const o=r.GetArgument(e);if(o&&!o.match(/^([lcr]{1,3})?$/))throw new V("BadAlignment","Alignment must be one to three copies of l, c, or r");const a=[...o].map(h=>({l:"left",c:"center",r:"right"})[h]);a.length===1&&a.push(a[0]);const c={};for(const[h,u]of[["indentshiftfirst",s],["indentshift",i||s],["indentshiftlast",n],["indentalignfirst",a[0]],["indentalign",a[1]],["indentalignlast",a[2]]])u&&(c[h]=u);r.Push(r.itemFactory.create("mstyle",c,t.getName()))},Equation:(r,t,e,s=!0)=>(r.configuration.mathItem.display=s,r.stack.env.display=s,dt.checkEqnEnv(r),r.Push(t),r.itemFactory.create("equation",e).setProperty("name",t.getName())),EqnArray(r,t,e,s,i,n,o){const a=t.getName(),c=a==="gather"||a==="gather*";s&&dt.checkEqnEnv(r,!c),r.Push(t),i=(i=i.replace(/[^clr]/g,"").split("").join(" ")).replace(/l/g,"left").replace(/r/g,"right").replace(/c/g,"center"),n=rn(n);const h=r.itemFactory.create("eqnarray",a,e,s,r.stack.global);return h.arraydef={displaystyle:!0,columnalign:i,columnspacing:o||"1em",rowspacing:"3pt","data-break-align":n,side:r.options.tagSide,minlabelspacing:r.options.tagIndent},c&&h.setProperty("nestable",!0),h},HandleNoTag(r,t){r.tags.notag()},HandleLabel(r,t){const e=r.GetArgument(t);if(e!==""&&!r.tags.refUpdate){if(r.tags.label)throw new V("MultipleCommand","Multiple %1",r.currentCS);if(r.tags.label=e,(r.tags.allLabels[e]||r.tags.labels[e])&&!r.options.ignoreDuplicateLabels)throw new V("MultipleLabel","Label '%1' multiply defined",e);r.tags.labels[e]=new tl}},HandleRef(r,t,e){const s=r.GetArgument(t);let i=r.tags.allLabels[s]||r.tags.labels[s];i||(r.tags.refUpdate||(r.tags.redo=!0),i=new tl);let n=i.tag;e&&(n=r.tags.formatRef(n));const o=r.create("node","mrow",dt.internalMath(r,Array.isArray(n)?n.join(""):n),{href:r.tags.formatUrl(i.id,r.options.baseURL),class:"MathJax_ref"});r.Push(o)},Macro(r,t,e,s,i){if(s){const n=[];if(i!=null){const o=r.GetBrackets(t);n.push(o??i)}for(let o=n.length;o<s;o++)n.push(r.GetArgument(t));e=dt.substituteArgs(r,n,e)}r.string=dt.addArgs(r,e,r.string.slice(r.i)),r.i=0,dt.checkMaxMacros(r)},MathChoice(r,t){const e=r.ParseArg(t),s=r.ParseArg(t),i=r.ParseArg(t),n=r.ParseArg(t);r.Push(r.create("node","MathChoice",[e,s,i,n]))}},N=ip,Qo=Dt.Variant,sg={variable(r,t){var e;const s=dt.getFontDef(r),i=r.stack.env;if(i.multiLetterIdentifiers&&i.font!==""&&(t=((e=r.string.substring(r.i-1).match(i.multiLetterIdentifiers))===null||e===void 0?void 0:e[0])||t,r.i+=t.length-1,s.mathvariant===Qo.NORMAL&&i.noAutoOP&&t.length>1&&(s.autoOP=!1)),!s.mathvariant&&dt.isLatinOrGreekChar(t)){const o=r.configuration.mathStyle(t);o&&(s.mathvariant=o)}const n=r.create("token","mi",s,t);r.Push(n)},digit(r,t){const e=r.configuration.options.numberPattern,s=r.string.slice(r.i-1).match(e);if(!s)return!1;const i=dt.getFontDef(r),n=r.create("token","mn",i,s[0].replace(/[{}]/g,""));return r.i+=s[0].length-1,r.Push(n),!0},controlSequence(r,t){const e=r.GetCS();r.parse(At.MACRO,[r,e])},lcGreek(r,t){const e={mathvariant:r.configuration.mathStyle(t.char)||Qo.ITALIC},s=r.create("token","mi",e,t.char);r.Push(s)},ucGreek(r,t){const e={mathvariant:r.stack.env.font||r.configuration.mathStyle(t.char,!0)||Qo.NORMAL},s=r.create("token","mi",e,t.char);r.Push(s)},mathchar0mi(r,t){const e=t.attributes||{mathvariant:Qo.ITALIC},s=r.create("token","mi",e,t.char);r.Push(s)},mathchar0mo(r,t){const e=t.attributes||{};e.stretchy=!1;const s=r.create("token","mo",e,t.char);L.setProperty(s,"fixStretchy",!0),r.configuration.addNode("fixStretchy",s),r.Push(s)},mathchar7(r,t){const e=t.attributes||{mathvariant:Qo.NORMAL};r.stack.env.font&&(e.mathvariant=r.stack.env.font);const s=r.create("token","mi",e,t.char);r.Push(s)},delimiter(r,t){let e=t.attributes||{};e=Object.assign({fence:!1,stretchy:!1},e);const s=r.create("token","mo",e,t.char);t.char==="|"&&s.setProperty("keep-attrs","stretchy"),r.Push(s)},environment(r,t,e,s){const i=r.itemFactory.create("begin").setProperty("name",t);r.Push(e(r,i,...s.slice(1)))}},Ge=sg,Zo=Gt(ts.thickmathspace),Y=Dt.Variant;new en("letter",Ge.variable,/[a-z]/i),new en("digit",Ge.digit,/[0-9.,]/),new en("command",Ge.controlSequence,/^\\/),new sn("special",{"{":N.Open,"}":N.Close,"~":N.Tilde,"^":N.Superscript,_:N.Subscript,"|":N.Bar," ":N.Space,"	":N.Space,"\r":N.Space,"\n":N.Space,"'":N.Prime,"%":N.Comment,"&":N.Entry,"#":N.Hash," ":N.Space,"’":N.Prime}),new $s("lcGreek",Ge.lcGreek,{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:"φ"}),new $s("ucGreek",Ge.ucGreek,{Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω"}),new $s("mathchar0mi",Ge.mathchar0mi,{AA:"Å",S:["§",{mathvariant:Y.NORMAL}],aleph:["ℵ",{mathvariant:Y.NORMAL}],hbar:["ℏ",{variantForm:!0}],imath:"ı",jmath:"ȷ",ell:"ℓ",wp:["℘",{mathvariant:Y.NORMAL}],Re:["ℜ",{mathvariant:Y.NORMAL}],Im:["ℑ",{mathvariant:Y.NORMAL}],partial:["∂",{mathvariant:Y.ITALIC}],infty:["∞",{mathvariant:Y.NORMAL}],prime:["′",{variantForm:!0}],emptyset:["∅",{mathvariant:Y.NORMAL}],nabla:["∇",{mathvariant:Y.NORMAL}],top:["⊤",{mathvariant:Y.NORMAL}],bot:["⊥",{mathvariant:Y.NORMAL}],angle:["∠",{mathvariant:Y.NORMAL}],triangle:["△",{mathvariant:Y.NORMAL}],backslash:["\\",{mathvariant:Y.NORMAL}],forall:["∀",{mathvariant:Y.NORMAL}],exists:["∃",{mathvariant:Y.NORMAL}],neg:["¬",{mathvariant:Y.NORMAL}],lnot:["¬",{mathvariant:Y.NORMAL}],flat:["♭",{mathvariant:Y.NORMAL}],natural:["♮",{mathvariant:Y.NORMAL}],sharp:["♯",{mathvariant:Y.NORMAL}],clubsuit:["♣",{mathvariant:Y.NORMAL}],diamondsuit:["♢",{mathvariant:Y.NORMAL}],heartsuit:["♡",{mathvariant:Y.NORMAL}],spadesuit:["♠",{mathvariant:Y.NORMAL}]}),new $s("mathchar0mo",Ge.mathchar0mo,{surd:["√",{symmetric:!0}],coprod:["∐",{movesupsub:!0}],bigvee:["⋁",{movesupsub:!0}],bigwedge:["⋀",{movesupsub:!0}],biguplus:["⨄",{movesupsub:!0}],bigcap:["⋂",{movesupsub:!0}],bigcup:["⋃",{movesupsub:!0}],int:"∫",intop:["∫",{movesupsub:!0,movablelimits:!0}],iint:"∬",iiint:"∭",prod:["∏",{movesupsub:!0}],sum:["∑",{movesupsub:!0}],bigotimes:["⨂",{movesupsub:!0}],bigoplus:["⨁",{movesupsub:!0}],bigodot:["⨀",{movesupsub:!0}],oint:"∮",ointop:["∮",{movesupsub:!0,movablelimits:!0}],oiint:"∯",oiiint:"∰",bigsqcup:["⨆",{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:"÷",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:"⋱",iddots:"⋰",dotsc:"…",dotsb:"⋯",dotsm:"⋯",dotsi:"⋯",dotso:"…",ldotp:[".",{texClass:S.PUNCT}],cdotp:["⋅",{texClass:S.PUNCT}],colon:[":",{texClass:S.PUNCT}]}),new $s("mathchar7",Ge.mathchar7,{_:"_","#":"#",$:"$","%":"%","&":"&",And:"&"}),new _n("delimiter",Ge.delimiter,{"(":"(",")":")","[":"[","]":"]","<":"⟨",">":"⟩","\\lt":"⟨","\\gt":"⟩","/":"/","|":["|",{texClass:S.ORD}],".":"","\\lmoustache":"⎰","\\rmoustache":"⎱","\\lgroup":"⟮","\\rgroup":"⟯","\\arrowvert":"⏐","\\Arrowvert":"‖","\\bracevert":"⎪","\\Vert":["‖",{texClass:S.ORD}],"\\|":["‖",{texClass:S.ORD}],"\\vert":["|",{texClass:S.ORD}],"\\uparrow":"↑","\\downarrow":"↓","\\updownarrow":"↕","\\Uparrow":"⇑","\\Downarrow":"⇓","\\Updownarrow":"⇕","\\backslash":"\\","\\rangle":"⟩","\\langle":"⟨","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"⌉","\\lceil":"⌈","\\rfloor":"⌋","\\lfloor":"⌊","\\lbrack":"[","\\rbrack":"]"}),new Ri("macros",{displaystyle:[N.SetStyle,"D",!0,0],textstyle:[N.SetStyle,"T",!1,0],scriptstyle:[N.SetStyle,"S",!1,1],scriptscriptstyle:[N.SetStyle,"SS",!1,2],rm:[N.SetFont,Y.NORMAL],mit:[N.SetFont,Y.ITALIC],oldstyle:[N.SetFont,Y.OLDSTYLE],cal:[N.SetFont,Y.CALLIGRAPHIC],it:[N.SetFont,Y.MATHITALIC],bf:[N.SetFont,Y.BOLD],sf:[N.SetFont,Y.SANSSERIF],tt:[N.SetFont,Y.MONOSPACE],frak:[N.MathFont,Y.FRAKTUR],Bbb:[N.MathFont,Y.DOUBLESTRUCK],mathrm:[N.MathFont,Y.NORMAL],mathup:[N.MathFont,Y.NORMAL],mathnormal:[N.MathFont,""],mathbf:[N.MathFont,Y.BOLD],mathbfup:[N.MathFont,Y.BOLD],mathit:[N.MathFont,Y.MATHITALIC],mathbfit:[N.MathFont,Y.BOLDITALIC],mathbb:[N.MathFont,Y.DOUBLESTRUCK],mathfrak:[N.MathFont,Y.FRAKTUR],mathbffrak:[N.MathFont,Y.BOLDFRAKTUR],mathscr:[N.MathFont,Y.SCRIPT],mathbfscr:[N.MathFont,Y.BOLDSCRIPT],mathsf:[N.MathFont,Y.SANSSERIF],mathsfup:[N.MathFont,Y.SANSSERIF],mathbfsf:[N.MathFont,Y.BOLDSANSSERIF],mathbfsfup:[N.MathFont,Y.BOLDSANSSERIF],mathsfit:[N.MathFont,Y.SANSSERIFITALIC],mathbfsfit:[N.MathFont,Y.SANSSERIFBOLDITALIC],mathtt:[N.MathFont,Y.MONOSPACE],mathcal:[N.MathFont,Y.CALLIGRAPHIC],mathbfcal:[N.MathFont,Y.BOLDCALLIGRAPHIC],symrm:[N.MathFont,Y.NORMAL],symup:[N.MathFont,Y.NORMAL],symnormal:[N.MathFont,""],symbf:[N.MathFont,Y.BOLD,Y.BOLDITALIC],symbfup:[N.MathFont,Y.BOLD],symit:[N.MathFont,Y.ITALIC],symbfit:[N.MathFont,Y.BOLDITALIC],symbb:[N.MathFont,Y.DOUBLESTRUCK],symfrak:[N.MathFont,Y.FRAKTUR],symbffrak:[N.MathFont,Y.BOLDFRAKTUR],symscr:[N.MathFont,Y.SCRIPT],symbfscr:[N.MathFont,Y.BOLDSCRIPT],symsf:[N.MathFont,Y.SANSSERIF,Y.SANSSERIFITALIC],symsfup:[N.MathFont,Y.SANSSERIF],symbfsf:[N.MathFont,Y.BOLDSANSSERIF],symbfsfup:[N.MathFont,Y.BOLDSANSSERIF],symsfit:[N.MathFont,Y.SANSSERIFITALIC],symbfsfit:[N.MathFont,Y.SANSSERIFBOLDITALIC],symtt:[N.MathFont,Y.MONOSPACE],symcal:[N.MathFont,Y.CALLIGRAPHIC],symbfcal:[N.MathFont,Y.BOLDCALLIGRAPHIC],textrm:[N.HBox,null,Y.NORMAL],textup:[N.HBox,null,Y.NORMAL],textnormal:[N.HBox],textit:[N.HBox,null,Y.ITALIC],textbf:[N.HBox,null,Y.BOLD],textsf:[N.HBox,null,Y.SANSSERIF],texttt:[N.HBox,null,Y.MONOSPACE],Tiny:[N.SetSize,.5],tiny:[N.SetSize,.6],scriptsize:[N.SetSize,.7],SMALL:[N.SetSize,.7],Small:[N.SetSize,.8],footnotesize:[N.SetSize,.8],small:[N.SetSize,.9],normalsize:[N.SetSize,1],large:[N.SetSize,1.095],Large:[N.SetSize,1.2],LARGE:[N.SetSize,1.44],huge:[N.SetSize,1.728],Huge:[N.SetSize,2.074],HUGE:[N.SetSize,2.49],arcsin:N.NamedFn,arccos:N.NamedFn,arctan:N.NamedFn,arg:N.NamedFn,cos:N.NamedFn,cosh:N.NamedFn,cot:N.NamedFn,coth:N.NamedFn,csc:N.NamedFn,deg:N.NamedFn,det:N.NamedOp,dim:N.NamedFn,exp:N.NamedFn,gcd:N.NamedOp,hom:N.NamedFn,inf:N.NamedOp,ker:N.NamedFn,lg:N.NamedFn,lim:N.NamedOp,liminf:[N.NamedOp,"lim&thinsp;inf"],limsup:[N.NamedOp,"lim&thinsp;sup"],ln:N.NamedFn,log:N.NamedFn,max:N.NamedOp,min:N.NamedOp,Pr:N.NamedOp,sec:N.NamedFn,sin:N.NamedFn,sinh:N.NamedFn,sup:N.NamedOp,tan:N.NamedFn,tanh:N.NamedFn,limits:[N.Limits,!0],nolimits:[N.Limits,!1],overline:[N.UnderOver,"2015"],underline:[N.UnderOver,"2015"],overbrace:[N.UnderOver,"23DE",!0],underbrace:[N.UnderOver,"23DF",!0],overparen:[N.UnderOver,"23DC"],underparen:[N.UnderOver,"23DD"],overrightarrow:[N.UnderOver,"2192"],underrightarrow:[N.UnderOver,"2192"],overleftarrow:[N.UnderOver,"2190"],underleftarrow:[N.UnderOver,"2190"],overleftrightarrow:[N.UnderOver,"2194"],underleftrightarrow:[N.UnderOver,"2194"],overset:N.Overset,underset:N.Underset,overunderset:N.Overunderset,stackrel:[N.Macro,"\\mathrel{\\mathop{#2}\\limits^{#1}}",2],stackbin:[N.Macro,"\\mathbin{\\mathop{#2}\\limits^{#1}}",2],over:N.Over,overwithdelims:N.Over,atop:N.Over,atopwithdelims:N.Over,above:N.Over,abovewithdelims:N.Over,brace:[N.Over,"{","}"],brack:[N.Over,"[","]"],choose:[N.Over,"(",")"],frac:N.Frac,sqrt:N.Sqrt,root:N.Root,uproot:[N.MoveRoot,"upRoot"],leftroot:[N.MoveRoot,"leftRoot"],left:N.LeftRight,right:N.LeftRight,middle:N.LeftRight,llap:N.Lap,rlap:N.Lap,raise:N.RaiseLower,lower:N.RaiseLower,moveleft:N.MoveLeftRight,moveright:N.MoveLeftRight,",":[N.Spacer,ts.thinmathspace],":":[N.Spacer,ts.mediummathspace],">":[N.Spacer,ts.mediummathspace],";":[N.Spacer,ts.thickmathspace],"!":[N.Spacer,ts.negativethinmathspace],enspace:[N.Spacer,.5],quad:[N.Spacer,1],qquad:[N.Spacer,2],thinspace:[N.Spacer,ts.thinmathspace],negthinspace:[N.Spacer,ts.negativethinmathspace],"*":N.DiscretionaryTimes,allowbreak:N.AllowBreak,goodbreak:[N.Linebreak,Dt.LineBreak.GOODBREAK],badbreak:[N.Linebreak,Dt.LineBreak.BADBREAK],nobreak:[N.Linebreak,Dt.LineBreak.NOBREAK],break:N.Break,hskip:N.Hskip,hspace:N.Hskip,kern:[N.Hskip,!0],mskip:N.Hskip,mspace:N.Hskip,mkern:[N.Hskip,!0],rule:N.rule,Rule:[N.Rule],Space:[N.Rule,"blank"],nonscript:N.Nonscript,big:[N.MakeBig,S.ORD,.85],Big:[N.MakeBig,S.ORD,1.15],bigg:[N.MakeBig,S.ORD,1.45],Bigg:[N.MakeBig,S.ORD,1.75],bigl:[N.MakeBig,S.OPEN,.85],Bigl:[N.MakeBig,S.OPEN,1.15],biggl:[N.MakeBig,S.OPEN,1.45],Biggl:[N.MakeBig,S.OPEN,1.75],bigr:[N.MakeBig,S.CLOSE,.85],Bigr:[N.MakeBig,S.CLOSE,1.15],biggr:[N.MakeBig,S.CLOSE,1.45],Biggr:[N.MakeBig,S.CLOSE,1.75],bigm:[N.MakeBig,S.REL,.85],Bigm:[N.MakeBig,S.REL,1.15],biggm:[N.MakeBig,S.REL,1.45],Biggm:[N.MakeBig,S.REL,1.75],mathord:[N.TeXAtom,S.ORD],mathop:[N.TeXAtom,S.OP],mathopen:[N.TeXAtom,S.OPEN],mathclose:[N.TeXAtom,S.CLOSE],mathbin:[N.TeXAtom,S.BIN],mathrel:[N.TeXAtom,S.REL],mathpunct:[N.TeXAtom,S.PUNCT],mathinner:[N.TeXAtom,S.INNER],vtop:[N.VBox,"top"],vcenter:[N.VBox,"center"],vbox:[N.VBox,"bottom"],hsize:N.Hsize,parbox:N.ParBox,breakAlign:N.BreakAlign,buildrel:N.BuildRel,hbox:[N.HBox,0],text:N.HBox,mbox:[N.HBox,0],fbox:N.FBox,boxed:[N.Macro,"\\fbox{$\\displaystyle{#1}$}",1],framebox:N.FrameBox,makebox:N.MakeBox,strut:N.Strut,mathstrut:[N.Macro,"\\vphantom{(}"],phantom:N.Phantom,vphantom:[N.Phantom,1,0],hphantom:[N.Phantom,0,1],smash:N.Smash,acute:[N.Accent,"00B4"],grave:[N.Accent,"0060"],ddot:[N.Accent,"00A8"],dddot:[N.Accent,"20DB"],ddddot:[N.Accent,"20DC"],tilde:[N.Accent,"007E"],bar:[N.Accent,"00AF"],breve:[N.Accent,"02D8"],check:[N.Accent,"02C7"],hat:[N.Accent,"005E"],vec:[N.Accent,"2192",!1],dot:[N.Accent,"02D9"],widetilde:[N.Accent,"007E",!0],widehat:[N.Accent,"005E",!0],matrix:N.Matrix,array:N.Matrix,pmatrix:[N.Matrix,"(",")"],cases:[N.Matrix,"{","","left left",null,".2em",null,!0],eqalign:[N.Matrix,null,null,"right left",Zo,".5em","D"],displaylines:[N.Matrix,null,null,"center",null,".5em","D"],cr:N.Cr,"\\":N.CrLaTeX,newline:[N.CrLaTeX,!0],hline:N.HLine,hdashline:[N.HLine,"dashed"],eqalignno:[N.Matrix,null,null,"right left",Zo,".5em","D",null,"right"],leqalignno:[N.Matrix,null,null,"right left",Zo,".5em","D",null,"left"],hfill:N.HFill,hfil:N.HFill,hfilll:N.HFill,bmod:[N.Macro,`\\mmlToken{mo}
62[lspace="${Zo}" rspace="${Zo}"]{mod}`],pmod:[N.Macro,"\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:[N.Macro,"\\mathchoice{\\kern18mu}{\\kern12mu}{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:[N.Macro,"\\mathchoice{\\kern18mu}{\\kern8mu}{\\kern8mu}{\\kern8mu}(#1)",1],iff:[N.Macro,"\\;\\Longleftrightarrow\\;"],skew:[N.Macro,"{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],pmb:[N.Macro,"\\rlap{#1}\\kern1px{#1}",1],TeX:[N.Macro,"T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:[N.Macro,"L\\kern-.325em\\raise.21em{\\scriptstyle{A}}\\kern-.17em\\TeX"],not:N.Not,dots:N.Dots,space:N.Tilde," ":N.Tilde," ":N.Tilde,begin:N.BeginEnd,end:N.BeginEnd,label:N.HandleLabel,ref:N.HandleRef,nonumber:N.HandleNoTag,newcolumntype:N.NewColumnType,mathchoice:N.MathChoice,mmlToken:N.MmlToken}),new Ko("environment",Ge.environment,{displaymath:[N.Equation,null,!1],math:[N.Equation,null,!1,!1],array:[N.AlignedArray],darray:[N.AlignedArray,null,"D"],equation:[N.Equation,null,!0],eqnarray:[N.EqnArray,null,!0,!0,"rcl","bmt",dt.cols(0,ts.thickmathspace),".5em"],indentalign:[N.IndentAlign]}),new $s("not_remap",null,{"←":"↚","→":"↛","↔":"↮","⇐":"⇍","⇒":"⇏","⇔":"⇎","∈":"∉","∋":"∌","∣":"∤","∥":"∦","∼":"≁","~":"≁","≃":"≄","≅":"≇","≈":"≉","≍":"≭","=":"≠","≡":"≢","<":"≮",">":"≯","≤":"≰","≥":"≱","≲":"≴","≳":"≵","≶":"≸","≷":"≹","≺":"⊀","≻":"⊁","⊂":"⊄","⊃":"⊅","⊆":"⊈","⊇":"⊉","⊢":"⊬","⊨":"⊭","⊩":"⊮","⊫":"⊯","≼":"⋠","≽":"⋡","⊑":"⋢","⊒":"⋣","⊲":"⋪","⊳":"⋫","⊴":"⋬","⊵":"⋭","∃":"∄"});const ig=Dt.Variant;function rp(r,t){const e=r.stack.env.font,s=r.stack.env.italicFont,i=e?{mathvariant:e}:{},n=$o.getMap("remap").lookup(t),o=Nh(t),a=o[3],c=r.create("token",a,i,n?n.char:t),h=dt.isLatinOrGreekChar(t)?r.configuration.mathStyle(t,!0)||s:"",u=o[4]||(e&&h===ig.NORMAL?"":h);u&&c.attributes.set("mathvariant",u),a==="mo"&&(L.setProperty(c,"fixStretchy",!0),r.configuration.addNode("fixStretchy",c)),r.Push(c)}new $s("remap",null,{"-":"−","*":"∗","`":"‘"});class np extends Xo{}const rg=qs.create("base",{[It.CONFIG]:function(r,t){const e=t.parseOptions.options;e.digits&&(e.numberPattern=e.digits),new en("digit",Ge.digit,e.initialDigit),new en("letter",Ge.variable,e.initialLetter),r.handlers.get(At.CHARACTER).add(["letter","digit"],null,4)},[It.HANDLER]:{[At.CHARACTER]:["command","special"],[At.DELIMITER]:["delimiter"],[At.MACRO]:["delimiter","macros","lcGreek","ucGreek","mathchar0mi","mathchar0mo","mathchar7"],[At.ENVIRONMENT]:["environment"]},[It.FALLBACK]:{[At.CHARACTER]:rp,[At.MACRO]:function(r,t){throw new V("UndefinedControlSequence","Undefined control sequence %1","\\"+t)},[At.ENVIRONMENT]:function(r,t){throw new V("UnknownEnv","Unknown environment '%1'",t)}},[It.ITEMS]:{[Go.prototype.kind]:Go,[qn.prototype.kind]:qn,[nl.prototype.kind]:nl,[Xh.prototype.kind]:Xh,[Jh.prototype.kind]:Jh,[Kh.prototype.kind]:Kh,[ol.prototype.kind]:ol,[$h.prototype.kind]:$h,[al.prototype.kind]:al,[Gh.prototype.kind]:Gh,[Yh.prototype.kind]:Yh,[Qh.prototype.kind]:Qh,[ll.prototype.kind]:ll,[Zh.prototype.kind]:Zh,[Vn.prototype.kind]:Vn,[t0.prototype.kind]:t0,[e0.prototype.kind]:e0,[Yo.prototype.kind]:Yo,[s0.prototype.kind]:s0,[i0.prototype.kind]:i0,[r0.prototype.kind]:r0,[n0.prototype.kind]:n0,[hr.prototype.kind]:hr,[cl.prototype.kind]:cl,[a0.prototype.kind]:a0,[o0.prototype.kind]:o0},[It.OPTIONS]:{maxMacros:1e3,digits:"",numberPattern:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,initialDigit:/[0-9.,]/,identifierPattern:/^[a-zA-Z]+/,initialLetter:/[a-zA-Z]/,baseURL:Fe.document&&Fe.document.getElementsByTagName("base").length!==0?String(Fe.document.location).replace(/#.*$/,""):""},[It.TAGS]:{base:np},[It.POSTPROCESSORS]:[[function({data:r}){for(const t of r.getList("nonscript"))if(t.attributes.get("scriptlevel")>0){const e=t.parent;if(e.childNodes.splice(e.childIndex(t),1),r.removeFromList(t.kind,[t]),t.isKind("mrow")){const s=t.childNodes[0];r.removeFromList("mstyle",[s]),r.removeFromList("mspace",s.childNodes[0].childNodes)}}else t.isKind("mrow")&&(t.parent.replaceChild(t.childNodes[0],t),r.removeFromList("mrow",[t]))},-4]]});
vendor: 24,504 bytes, line 62
62class nn extends Tr{static configure(t){const e=new zh(t,["tex"]);return e.init(),e}static tags(t,e){zi.addTags(e.tags),zi.setDefault(t.options.tags),t.tags=zi.getDefault(),t.tags.configuration=t}constructor(t={}){const[e,s,i]=fo(t,nn.OPTIONS,Za.OPTIONS);super(s),this.findTeX=this.options.FindTeX||new Za(i);const n=this.options.packages,o=this.configuration=nn.configure(n),a=this._parseOptions=new Hh(o,[this.options,zi.OPTIONS]);Ws(a.options,e),o.config(this),nn.tags(a,o),this.postFilters.addList([[Sr.cleanSubSup,-7],[Sr.setInherited,-6],[Sr.checkScriptlevel,-5],[Sr.moveLimits,-4],[Sr.cleanStretchy,-3],[Sr.cleanAttributes,-2],[Sr.combineRelations,-1]])}setMmlFactory(t){super.setMmlFactory(t),this._parseOptions.nodeFactory.setMmlFactory(t)}get parseOptions(){return this._parseOptions}reset(t=0){this.parseOptions.tags.reset(t)}compile(t,e){let s,i;this.parseOptions.clear(),this.parseOptions.mathItem=t,this.executeFilters(this.preFilters,t,e,this.parseOptions),this.latex=t.math,this.parseOptions.tags.startEquation(t);try{i=new $e(this.latex,{display:t.display,isInner:!1},this.parseOptions),s=i.mml()}catch(n){if(!(n instanceof V))throw n;this.parseOptions.error=!0,s=this.options.formatError(this,n)}return s=this.parseOptions.nodeFactory.create("node","math",[s]),s.attributes.set(Dt.Attr.LATEX,this.latex),t.display&&L.setAttribute(s,"display","block"),this.parseOptions.tags.finishEquation(t),this.parseOptions.root=s,this.executeFilters(this.postFilters,t,e,this.parseOptions),i&&i.stack.env.hsize&&(L.setAttribute(s,"maxwidth",i.stack.env.hsize),L.setAttribute(s,"overflow","linebreak")),this.mathNode=this.parseOptions.root,this.mathNode}findMath(t){return this.findTeX.findMath(t)}formatError(t){const e=t.message.replace(/\n.*/,"");return this.parseOptions.nodeFactory.create("error",e,t.id,this.latex)}}nn.NAME="TeX",nn.OPTIONS=Object.assign(Object.assign({},Tr.OPTIONS),{FindTeX:null,packages:["base"],maxBuffer:5120,maxTemplateSubtitutions:1e4,mathStyle:"TeX",formatError:(r,t)=>r.formatError(t)});class l0 extends hr{constructor(t,...e){super(t),this.factory.configuration.tags.start("multline",!0,e[0])}get kind(){return"multline"}EndEntry(){this.table.length&&dt.fixInitialMO(this.factory.configuration,this.nodes);const t=this.getProperty("shove"),e=this.create("node","mtd",this.nodes,t?{columnalign:t}:{});this.setProperty("shove",null),this.row.push(e),this.Clear()}EndRow(){if(this.row.length!==1)throw new V("MultlineRowsOneCol","The rows within the %1 environment must have exactly one column","multline");const t=this.create("node","mtr",this.row);this.table.push(t),this.row=[]}EndTable(){if(super.EndTable(),this.table.length){const t=this.table.length-1;let e=-1;L.getAttribute(L.getChildren(this.table[0])[0],"columnalign")||L.setAttribute(L.getChildren(this.table[0])[0],"columnalign",Dt.Align.LEFT),L.getAttribute(L.getChildren(this.table[t])[0],"columnalign")||L.setAttribute(L.getChildren(this.table[t])[0],"columnalign",Dt.Align.RIGHT);const s=this.factory.configuration.tags.getTag();if(s){e=this.arraydef.side===Dt.Align.LEFT?0:this.table.length-1;const i=this.table[e],n=this.create("node","mlabeledtr",[s].concat(L.getChildren(i)));L.copyAttributes(i,n),this.table[e]=n}}this.factory.configuration.tags.end()}}class c0 extends cl{get kind(){return"flalign"}constructor(t,e,s,i,n){super(t),this.name=e,this.numbered=s,this.padded=i,this.center=n,this.factory.configuration.tags.start(e,s,s)}EndEntry(){super.EndEntry();const t=this.getProperty("xalignat");if(t&&this.row.length>t)throw new V("XalignOverflow","Extra %1 in row of %2","&",this.name)}EndRow(){let t;const e=this.row,s=this.getProperty("xalignat");for(;e.length<s;)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(),t&&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),super.EndRow();const i=this.table[this.table.length-1];if(this.getProperty("zeroWidthLabel")&&i.isKind("mlabeledtr")){const n=L.getChildren(i)[0],o=this.factory.configuration.options.tagSide,a=Object.assign({width:0},o==="right"?{lspace:"-1width"}:{}),c=this.create("node","mpadded",L.getChildren(n),a);n.setChildren([c])}}EndTable(){super.EndTable(),this.center&&this.maxrow<=2&&(delete this.arraydef.width,delete this.global.indentalign)}}var Bs;(function(r){r.NEW_DELIMITER="new-Delimiter",r.NEW_COMMAND="new-Command",r.NEW_ENVIRONMENT="new-Environment"})(Bs||(Bs={}));const op=-100,Ee={GetCSname(r,t){if(r.GetNext()!=="\\")throw new V("MissingCS","%1 must be followed by a control sequence",t);const e=Qt.trimSpaces(r.GetArgument(t)).substring(1);return this.checkProtectedMacros(r,e),e},GetCsNameArgument(r,t){let e=Qt.trimSpaces(r.GetArgument(t));if(e.charAt(0)==="\\"&&(e=e.substring(1)),!e.match(/^(.|[a-z]+)$/i))throw new V("IllegalControlSequenceName","Illegal control sequence name for %1",t);return this.checkProtectedMacros(r,e),e},GetArgCount(r,t){let e=r.GetBrackets(t);if(e&&(e=Qt.trimSpaces(e),!e.match(/^[0-9]+$/)))throw new V("IllegalParamNumber","Illegal number of parameters specified in %1",t);return e},GetTemplate(r,t,e){let s=r.GetNext();const i=[];let n=0,o=r.i;for(;r.i<r.string.length;){if(s=r.GetNext(),s==="#"){if(o!==r.i&&(i[n]=r.string.substring(o,r.i)),s=r.string.charAt(++r.i),!s.match(/^[1-9]$/))throw new V("CantUseHash2","Illegal use of # in template for %1",e);if(parseInt(s)!==++n)throw new V("SequentialParam","Parameters for %1 must be numbered sequentially",e);o=r.i+1}else if(s==="{")return o!==r.i&&(i[n]=r.string.substring(o,r.i),i[n].replace(/^ +/,"")===""&&i.slice(0,n).join("")==="")?n:i.length>0?[n.toString()].concat(i):n;r.i++}throw new V("MissingReplacementString","Missing replacement string for definition of %1",t)},GetParameter(r,t,e){if(e==null)return r.GetArgument(t);let s=r.i,i=0,n=!1;for(;r.i<r.string.length;){const o=r.string.charAt(r.i);if(o==="{")n=r.i===s,r.GetArgument(t),i=r.i-s;else{if(this.MatchParam(r,e))return n&&(s++,i-=2),r.string.substring(s,s+i);if(o==="\\"){r.i++,i++,n=!1;const a=r.string.substring(r.i).match(/[a-z]+|./i);a&&(r.i+=a[0].length,i=r.i-s)}else r.i++,i++,n=!1}}throw new V("RunawayArgument","Runaway argument for %1?",t)},MatchParam:(r,t)=>r.string.substring(r.i,r.i+t.length)!==t||t.match(/\\[a-z]+$/i)&&r.string.charAt(r.i+t.length).match(/[a-z]/i)?0:(r.i+=t.length,1),checkGlobal:(r,t,e)=>r.stack.env.isGlobal?r.configuration.packageData.get("begingroup").stack.checkGlobal(t,e):e.map(s=>r.configuration.handlers.retrieve(s)),checkProtectedMacros(r,t){var e;if(!((e=r.options.protectedMacros)===null||e===void 0)&&e.includes(t))throw new V("ProtectedMacro","The control sequence %1 can't be redefined",`\\${t}`)},addDelimiter(r,t,e,s){const i=t.substring(1);this.checkProtectedMacros(r,i);const[n,o]=Ee.checkGlobal(r,[i,t],[Bs.NEW_COMMAND,Bs.NEW_DELIMITER]);i!==t&&n.remove(i),o.add(t,new il(t,e,s)),delete r.stack.env.isGlobal},addMacro(r,t,e,s,i=""){this.checkProtectedMacros(r,t);const n=Ee.checkGlobal(r,[t],[Bs.NEW_COMMAND])[0];this.undefineDelimiter(r,"\\"+t),n.add(t,new Xi(i||t,e,s)),delete r.stack.env.isGlobal},addEnvironment(r,t,e,s){Ee.checkGlobal(r,[t],[Bs.NEW_ENVIRONMENT])[0].add(t,new Xi(t,e,s)),delete r.stack.env.isGlobal},undefineMacro(r,t){const e=Ee.checkGlobal(r,[t],[Bs.NEW_COMMAND])[0];e.remove(t),r.configuration.handlers.get(At.MACRO).applicable(t)&&(e.add(t,new Xi(t,()=>Wn.FALLBACK,[])),this.undefineDelimiter(r,"\\"+t)),delete r.stack.env.isGlobal},undefineDelimiter(r,t){const e=Ee.checkGlobal(r,[t],[Bs.NEW_DELIMITER])[0];e.remove(t),r.configuration.handlers.get(At.DELIMITER).applicable(t)&&e.add(t,new il(t,null,{})),delete r.stack.env.isGlobal}};function ap(r){if(!r||r.isInferred&&r.childNodes.length===0)return[null,null];if(r.isKind("msubsup")&&lp(r))return[r,null];const t=L.getChildAt(r,0);return r.isInferred&&t&&lp(t)?(r.childNodes.splice(0,1),[t,r]):[null,r]}function lp(r){const t=r.childNodes[0];return t&&t.isKind("mi")&&t.getText()===""}const lt={AmsEqnArray(r,t,e,s,i,n,o,a){const c=r.GetBrackets("\\begin{"+t.getName()+"}"),h=N.EqnArray(r,t,e,s,i,n,o,a);return dt.setArrayAlign(h,c,r)},AlignAt(r,t,e,s){const i=t.getName();let n,o="",a="";const c=[];s||(n=r.GetBrackets("\\begin{"+i+"}"));const h=r.GetArgument("\\begin{"+i+"}");if(h.match(/[^0-9]/))throw new V("PositiveIntegerArg","Argument to %1 must be a positive integer","\\begin{"+i+"}");let u=parseInt(h,10);for(;u>0;)o+="rl",a+="bt",c.push("0em 0em"),u--;const x=c.join(" ");if(s)return lt.EqnArray(r,t,e,s,o,a,x);const A=lt.EqnArray(r,t,e,s,o,a,x);return dt.setArrayAlign(A,n,r)},Multline(r,t,e){dt.checkEqnEnv(r),r.Push(t);const s=r.options.ams.multlineIndent,i=r.itemFactory.create("multline",e,r.stack);return i.arraydef={displaystyle:!0,rowspacing:".5em",columnspacing:"100%",width:r.options.ams.multlineWidth,side:r.options.tagSide,minlabelspacing:r.options.tagIndent,"data-array-padding":`${s} ${s}`,"data-width-includes-label":!0},i},XalignAt(r,t,e,s){const i=r.GetArgument("\\begin{"+t.getName()+"}");if(i.match(/[^0-9]/))throw new V("PositiveIntegerArg","Argument to %1 must be a positive integer","\\begin{"+t.getName()+"}");const n=s?"crl":"rlc",o=s?"mbt":"btm",a=s?"fit auto auto":"auto auto fit",c=lt.FlalignArray(r,t,e,s,!1,n,o,a,!0);return c.setProperty("xalignat",2*parseInt(i)),c},FlalignArray(r,t,e,s,i,n,o,a,c=!1){dt.checkEqnEnv(r),r.Push(t),n=n.split("").join(" ").replace(/r/g,"right").replace(/l/g,"left").replace(/c/g,"center"),o=rn(o);const h=r.itemFactory.create("flalign",t.getName(),e,s,i,r.stack);return h.arraydef={width:"100%",displaystyle:!0,columnalign:n,columnspacing:"0em",columnwidth:a,rowspacing:"3pt","data-break-align":o,side:r.options.tagSide,minlabelspacing:c?"0":r.options.tagIndent,"data-width-includes-label":!0},h.setProperty("zeroWidthLabel",c),h},HandleDeclareOp(r,t){const e=r.GetStar()?"*":"",s=Ee.GetCsNameArgument(r,t),i=r.GetArgument(t);Ee.addMacro(r,s,lt.Macro,[`\\operatorname${e}{${i}}`]),r.Push(r.itemFactory.create("null"))},HandleOperatorName(r,t){const e=r.GetStar(),s=Qt.trimSpaces(r.GetArgument(t));let i=new $e(s,Object.assign(Object.assign({},r.stack.env),{font:Dt.Variant.NORMAL,multiLetterIdentifiers:r.options.ams.operatornamePattern,operatorLetters:!0,noAutoOP:!0}),r.configuration).mml();if(i.isKind("mi")?i.removeProperty("autoOP"):i=r.create("node","TeXAtom",[i]),L.setProperties(i,{movesupsub:e,movablelimits:!0,texClass:S.OP}),!e){const n=r.GetNext(),o=r.i;n==="\\"&&++r.i&&r.GetCS()!=="limits"&&(r.i=o)}r.Push(r.itemFactory.create("fn",i))},SideSet(r,t){const[e,s]=ap(r.ParseArg(t)),[i,n]=ap(r.ParseArg(t)),o=r.ParseArg(t);let a=o;e&&(s?e.replaceChild(r.create("node","mphantom",[r.create("node","mpadded",[dt.copyNode(o,r)],{width:0})]),L.getChildAt(e,0)):(a=r.create("node","mmultiscripts",[o]),i&&L.appendChildren(a,[L.getChildAt(i,1)||r.create("node","none"),L.getChildAt(i,2)||r.create("node","none")]),L.setProperty(a,"scriptalign","left"),L.appendChildren(a,[r.create("node","mprescripts"),L.getChildAt(e,1)||r.create("node","none"),L.getChildAt(e,2)||r.create("node","none")]))),i&&a===o&&(i.replaceChild(o,L.getChildAt(i,0)),a=i);const c=r.create("node","TeXAtom",[],{texClass:S.OP,movesupsub:!0,movablelimits:!0});s&&(e&&c.appendChild(e),c.appendChild(s)),c.appendChild(a),n&&c.appendChild(n),r.Push(c)},operatorLetter:(r,t)=>!!r.stack.env.operatorLetters&&Ge.variable(r,t),MultiIntegral(r,t,e){let s=r.GetNext();if(s==="\\"){const i=r.i;s=r.GetArgument(t),r.i=i,s==="\\limits"&&(e="\\!\\!\\mathop{\\,\\,"+e+"}")}r.string=e+" "+r.string.slice(r.i),r.i=0},xArrow(r,t,e,s,i,n=0){const o={width:"+"+Qt.em((s+i)/18),lspace:Qt.em(s/18)},a=r.GetBrackets(t),c=r.ParseArg(t),h=r.create("node","mspace",[],{depth:".2em"});let u=r.create("token","mo",{stretchy:!0,texClass:S.ORD},String.fromCodePoint(e));n&&u.attributes.set("minsize",Qt.em(n)),u=r.create("node","mstyle",[u],{scriptlevel:0});const x=r.create("node","munderover",[u]);let A=r.create("node","mpadded",[c,h],o);if(L.setAttribute(A,"voffset","-.2em"),L.setAttribute(A,"height","-.2em"),L.setChild(x,x.over,A),a){const I=new $e(a,r.stack.env,r.configuration).mml(),q=r.create("node","mspace",[],{height:".75em"});A=r.create("node","mpadded",[I,q],o),L.setAttribute(A,"voffset",".15em"),L.setAttribute(A,"depth","-.15em"),L.setChild(x,x.under,A)}L.setProperty(x,"subsupOK",!0),r.Push(r.create("node","TeXAtom",[r.create("node","TeXAtom",[],{texClass:S.NONE}),x],{texClass:S.REL}))},HandleShove(r,t,e){const s=r.stack.Top();if(s.kind!=="multline")throw new V("CommandOnlyAllowedInEnv","%1 only allowed in %2 environment",r.currentCS,"multline");if(s.Size())throw new V("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",r.currentCS);s.setProperty("shove",e)},CFrac(r,t){let e=Qt.trimSpaces(r.GetBrackets(t,""));const s=r.GetArgument(t),i=r.GetArgument(t),n={l:Dt.Align.LEFT,r:Dt.Align.RIGHT,"":""},o=new $e("\\strut\\textstyle{"+s+"}",r.stack.env,r.configuration).mml(),a=new $e("\\strut\\textstyle{"+i+"}",r.stack.env,r.configuration).mml(),c=r.create("node","mfrac",[o,a]);if(e=n[e],e==null)throw new V("IllegalAlign","Illegal alignment specified in %1",r.currentCS);e&&L.setProperties(c,{numalign:e,denomalign:e}),r.Push(c)},Genfrac(r,t,e,s,i,n){e==null&&(e=r.GetDelimiterArg(t)),s==null&&(s=r.GetDelimiterArg(t)),i==null&&(i=r.GetArgument(t)),n==null&&(n=Qt.trimSpaces(r.GetArgument(t)));const o=r.ParseArg(t),a=r.ParseArg(t);let c=r.create("node","mfrac",[o,a]);if(i!==""&&L.setAttribute(c,"linethickness",i),(e||s)&&(L.setProperty(c,"withDelims",!0),c=dt.fixedFence(r.configuration,e,c,s)),n!==""){const h=parseInt(n,10),u=["D","T","S","SS"][h];if(u==null)throw new V("BadMathStyleFor","Bad math style for %1",r.currentCS);c=r.create("node","mstyle",[c]),u==="D"?L.setProperties(c,{displaystyle:!0,scriptlevel:0}):L.setProperties(c,{displaystyle:!1,scriptlevel:h-1})}r.Push(c)},HandleTag(r,t){if(!r.tags.currentTag.taggable&&r.tags.env)throw new V("CommandNotAllowedInEnv","%1 not allowed in %2 environment",r.currentCS,r.tags.env);if(r.tags.currentTag.tag)throw new V("MultipleCommand","Multiple %1",r.currentCS);const e=r.GetStar(),s=Qt.trimSpaces(r.GetArgument(t));r.tags.tag(s,e),r.Push(r.itemFactory.create("null"))},HandleNoTag:N.HandleNoTag,HandleRef:N.HandleRef,Macro:N.Macro,Accent:N.Accent,Tilde:N.Tilde,Array:N.Array,Spacer:N.Spacer,NamedOp:N.NamedOp,EqnArray:N.EqnArray,Equation:N.Equation};new $s("AMSmath-mathchar0mo",Ge.mathchar0mo,{iiiint:["⨌",{texClass:S.OP}]}),new en("AMSmath-operatorLetter",lt.operatorLetter,/[-*]/i),new Ri("AMSmath-macros",{mathring:[lt.Accent,"02DA"],nobreakspace:lt.Tilde,negmedspace:[lt.Spacer,ts.negativemediummathspace],negthickspace:[lt.Spacer,ts.negativethickmathspace],idotsint:[lt.MultiIntegral,"\\int\\cdots\\int"],dddot:[lt.Accent,"20DB"],ddddot:[lt.Accent,"20DC"],sideset:lt.SideSet,boxed:[lt.Macro,"\\fbox{$\\displaystyle{#1}$}",1],tag:lt.HandleTag,notag:lt.HandleNoTag,eqref:[lt.HandleRef,!0],substack:[lt.Macro,"\\begin{subarray}{c}#1\\end{subarray}",1],injlim:[lt.NamedOp,"inj&thinsp;lim"],projlim:[lt.NamedOp,"proj&thinsp;lim"],varliminf:[lt.Macro,"\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:[lt.Macro,"\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:[lt.Macro,"\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}"],varprojlim:[lt.Macro,"\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}"],DeclareMathOperator:lt.HandleDeclareOp,operatorname:lt.HandleOperatorName,genfrac:lt.Genfrac,frac:[lt.Genfrac,"","","",""],tfrac:[lt.Genfrac,"","","","1"],dfrac:[lt.Genfrac,"","","","0"],binom:[lt.Genfrac,"(",")","0",""],tbinom:[lt.Genfrac,"(",")","0","1"],dbinom:[lt.Genfrac,"(",")","0","0"],cfrac:lt.CFrac,shoveleft:[lt.HandleShove,Dt.Align.LEFT],shoveright:[lt.HandleShove,Dt.Align.RIGHT],xrightarrow:[lt.xArrow,8594,5,10],xleftarrow:[lt.xArrow,8592,10,5]}),new Ko("AMSmath-environment",Ge.environment,{"equation*":[lt.Equation,null,!1],"eqnarray*":[lt.EqnArray,null,!1,!0,"rcl","bmt",dt.cols(0,ts.thickmathspace),".5em"],align:[lt.EqnArray,null,!0,!0,"rl","bt",dt.cols(0,2)],"align*":[lt.EqnArray,null,!1,!0,"rl","bt",dt.cols(0,2)],multline:[lt.Multline,null,!0],"multline*":[lt.Multline,null,!1],split:[lt.EqnArray,null,!1,!1,"rl","bt",dt.cols(0)],gather:[lt.EqnArray,null,!0,!0,"c","m"],"gather*":[lt.EqnArray,null,!1,!0,"c","m"],alignat:[lt.AlignAt,null,!0,!0],"alignat*":[lt.AlignAt,null,!1,!0],alignedat:[lt.AlignAt,null,!1,!1],aligned:[lt.AmsEqnArray,null,null,null,"rl","bt",dt.cols(0,2),".5em","D"],gathered:[lt.AmsEqnArray,null,null,null,"c","m",null,".5em","D"],xalignat:[lt.XalignAt,null,!0,!0],"xalignat*":[lt.XalignAt,null,!1,!0],xxalignat:[lt.XalignAt,null,!1,!1],flalign:[lt.FlalignArray,null,!0,!1,!0,"rlc","btm","auto auto fit"],"flalign*":[lt.FlalignArray,null,!1,!1,!0,"rlc","btm","auto auto fit"],subarray:[lt.Array,null,null,null,null,dt.cols(0),"0.1em","S",!0],smallmatrix:[lt.Array,null,null,null,"c",dt.cols(1/3),".2em","S",!0],matrix:[lt.Array,null,null,null,"c"],pmatrix:[lt.Array,null,"(",")","c"],bmatrix:[lt.Array,null,"[","]","c"],Bmatrix:[lt.Array,null,"\\{","\\}","c"],vmatrix:[lt.Array,null,"\\vert","\\vert","c"],Vmatrix:[lt.Array,null,"\\Vert","\\Vert","c"],cases:[lt.Array,null,"\\{",".","ll",null,".2em","T"]}),new _n("AMSmath-delimiter",Ge.delimiter,{"\\lvert":["|",{texClass:S.OPEN}],"\\rvert":["|",{texClass:S.CLOSE}],"\\lVert":["‖",{texClass:S.OPEN}],"\\rVert":["‖",{texClass:S.CLOSE}]}),new $s("AMSsymbols-mathchar0mi",Ge.mathchar0mi,{digamma:"ϝ",varkappa:"ϰ",varGamma:["Γ",{mathvariant:Dt.Variant.ITALIC}],varDelta:["Δ",{mathvariant:Dt.Variant.ITALIC}],varTheta:["Θ",{mathvariant:Dt.Variant.ITALIC}],varLambda:["Λ",{mathvariant:Dt.Variant.ITALIC}],varXi:["Ξ",{mathvariant:Dt.Variant.ITALIC}],varPi:["Π",{mathvariant:Dt.Variant.ITALIC}],varSigma:["Σ",{mathvariant:Dt.Variant.ITALIC}],varUpsilon:["Υ",{mathvariant:Dt.Variant.ITALIC}],varPhi:["Φ",{mathvariant:Dt.Variant.ITALIC}],varPsi:["Ψ",{mathvariant:Dt.Variant.ITALIC}],varOmega:["Ω",{mathvariant:Dt.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:Dt.Variant.NORMAL}],bigstar:"★",sphericalangle:"∢",measuredangle:"∡",nexists:"∄",complement:"∁",mho:"℧",eth:["ð",{mathvariant:Dt.Variant.NORMAL}],Finv:"Ⅎ",diagup:"╱",Game:"⅁",diagdown:"╲",Bbbk:["k",{mathvariant:Dt.Variant.DOUBLESTRUCK}],yen:"¥",circledR:"®",checkmark:"✓",maltese:"✠"}),new $s("AMSsymbols-mathchar0mo",Ge.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:"⊨",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 _n("AMSsymbols-delimiter",Ge.delimiter,{"\\ulcorner":"⌜","\\urcorner":"⌝","\\llcorner":"⌞","\\lrcorner":"⌟"}),new Ri("AMSsymbols-macros",{implies:[lt.Macro,"\\;\\Longrightarrow\\;"],impliedby:[lt.Macro,"\\;\\Longleftarrow\\;"]});class ta extends Ft{get kind(){return"beginEnv"}get isOpen(){return!0}checkItem(t){if(t.isKind("end")){if(t.getName()!==this.getName())throw new V("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 V("EnvMissingEnd","Missing \\end{%1}",this.getName());return super.checkItem(t)}}const zn={NewCommand(r,t){const e=Ee.GetCsNameArgument(r,t),s=Ee.GetArgCount(r,t),i=r.GetBrackets(t),n=r.GetArgument(t);Ee.addMacro(r,e,zn.Macro,[n,s,i]),r.Push(r.itemFactory.create("null"))},NewEnvironment(r,t){const e=Qt.trimSpaces(r.GetArgument(t)),s=Ee.GetArgCount(r,t),i=r.GetBrackets(t),n=r.GetArgument(t),o=r.GetArgument(t);Ee.addEnvironment(r,e,zn.BeginEnv,[!0,n,o,s,i]),r.Push(r.itemFactory.create("null"))},MacroDef(r,t){const e=Ee.GetCSname(r,t),s=Ee.GetTemplate(r,t,"\\"+e),i=r.GetArgument(t);s instanceof Array?Ee.addMacro(r,e,zn.MacroWithTemplate,[i].concat(s)):Ee.addMacro(r,e,zn.Macro,[i,s]),r.Push(r.itemFactory.create("null"))},Let(r,t){const e=Ee.GetCSname(r,t);let s=r.GetNext();s==="="&&(r.i++,s=r.GetNext());const i=r.configuration.handlers;if(r.Push(r.itemFactory.create("null")),s==="\\"){if(e===(t=Ee.GetCSname(r,t)))return;const o=i.get(At.MACRO).applicable(t);if(o instanceof sn){const c=o.lookup(t);return void Ee.addMacro(r,e,c.func,c.args,c.token)}if(o instanceof $s&&!(o instanceof _n)){const c=o.lookup(t),h=u=>o.parser(u,c);return void Ee.addMacro(r,e,h,[e,c.char])}const a=i.get(At.DELIMITER).lookup("\\"+t);return a?void Ee.addDelimiter(r,"\\"+e,a.char,a.attributes):(Ee.checkProtectedMacros(r,e),Ee.undefineMacro(r,e),void Ee.undefineDelimiter(r,"\\"+e))}r.i++;const n=i.get(At.DELIMITER).lookup(s);n?Ee.addDelimiter(r,"\\"+e,n.char,n.attributes):Ee.addMacro(r,e,zn.Macro,[s])},MacroWithTemplate(r,t,e,s,...i){const n=parseInt(s,10);if(i.length){const o=[];
62if(r.GetNext(),i[0]&&!Ee.MatchParam(r,i[0]))throw new V("MismatchUseDef","Use of %1 doesn't match its definition",t);if(n){for(let a=0;a<n;a++)o.push(Ee.GetParameter(r,t,i[a+1]));e=dt.substituteArgs(r,o,e)}}r.string=dt.addArgs(r,e,r.string.slice(r.i)),r.i=0,dt.checkMaxMacros(r)},BeginEnv(r,t,e,s,i,n){const o=t.getName();if(r.stack.env.closing===o){if(delete r.stack.env.closing,r.stack.global.beginEnv&&(r.stack.global.beginEnv--,s)){const a=r.string.slice(r.i);r.string=dt.addArgs(r,r.string.substring(0,r.i),s),r.Parse(),r.string=a,r.i=0}return r.itemFactory.create("end").setProperty("name",o)}if(i){const a=[];if(n!=null){const c=r.GetBrackets(`\\begin{${o}}`);a.push(c??n)}for(let c=a.length;c<i;c++)a.push(r.GetArgument(`\\begin{${o}}`));e=dt.substituteArgs(r,a,e),s=dt.substituteArgs(r,[],s)}return r.string=dt.addArgs(r,e,r.string.slice(r.i)),r.i=0,r.stack.global.beginEnv=(r.stack.global.beginEnv||0)+1,r.itemFactory.create("beginEnv").setProperty("name",o)},Macro:N.Macro},Ji=zn;function h0(r,t){t.parseOptions.packageData.has("newcommand")||(t.parseOptions.packageData.set("newcommand",{}),new _n(Bs.NEW_DELIMITER,Ge.delimiter,{}),new Ri(Bs.NEW_COMMAND,{}),new Ko(Bs.NEW_ENVIRONMENT,Ge.environment,{}),t.parseOptions.handlers.add({[At.CHARACTER]:[],[At.DELIMITER]:[Bs.NEW_DELIMITER],[At.MACRO]:[Bs.NEW_DELIMITER,Bs.NEW_COMMAND],[At.ENVIRONMENT]:[Bs.NEW_ENVIRONMENT]},{},op))}new Ri("Newcommand-macros",{newcommand:Ji.NewCommand,renewcommand:Ji.NewCommand,newenvironment:Ji.NewEnvironment,renewenvironment:Ji.NewEnvironment,def:Ji.MacroDef,let:Ji.Let});const ng=qs.create("newcommand",{[It.HANDLER]:{macro:["Newcommand-macros"]},[It.ITEMS]:{[ta.prototype.kind]:ta},[It.OPTIONS]:{maxMacros:1e3,protectedMacros:["begingroupSandbox"]},[It.CONFIG]:h0});class cp extends Xo{}const og=qs.create("ams",{[It.HANDLER]:{[At.CHARACTER]:["AMSmath-operatorLetter"],[At.DELIMITER]:["AMSsymbols-delimiter","AMSmath-delimiter"],[At.MACRO]:["AMSsymbols-mathchar0mi","AMSsymbols-mathchar0mo","AMSsymbols-delimiter","AMSsymbols-macros","AMSmath-mathchar0mo","AMSmath-macros","AMSmath-delimiter"],[At.ENVIRONMENT]:["AMSmath-environment"]},[It.ITEMS]:{[l0.prototype.kind]:l0,[c0.prototype.kind]:c0},[It.TAGS]:{ams:cp},[It.OPTIONS]:{multlineWidth:"",ams:{operatornamePattern:/^[-*a-zA-Z0-9]+/,multlineWidth:"100%",multlineIndent:"1em"}},[It.CONFIG]:h0}),ag=me.config;function hp(r,t){const e=r.parseOptions.options.require,s=r.parseOptions.packageData.get("require").required,i=t.substring(e.prefix.length);if(!s.includes(i)){s.push(i);const n=(function(o,a=[]){const c=o.parseOptions.options.require.prefix,h=[];for(const u of a)if(u.substring(0,c.length)===c)try{hp(o,u)}catch(x){if(!x.retry)throw x;h.push(x.retry)}return h.length?Promise.all(h):null})(r,Re.dependencies[t]);n?gs.retryAfter(n.then(()=>dp(r,t,i))):dp(r,t,i)}}function dp(r,t,e){const s=rl.get(e);if(s){let i=ag[t]||{};s.options&&Object.keys(s.options).length===1&&s.options[e]&&(i={[e]:i}),r.configuration.add(e,r,i);const n=r.parseOptions.packageData.get("require").configured;s.preprocessors.length&&!n.has(e)&&(n.set(e,!0),gs.retryAfter(Promise.resolve()))}}function d0(r,t){var e,s;const i=r.options.require,n=i.allow,o=(t.substring(0,1)==="["?"":i.prefix)+t;if(!(Object.hasOwn(n,o)?n[o]:Object.hasOwn(n,t)?n[t]:i.defaultAllow))throw new V("BadRequire",'Extension "%1" is not allowed to be loaded',o);const a=ke.packages.get(o);if(a||gs.retryAfter(Ze.load(o).catch(u=>{})),a.hasFailed)throw new V("RequireFail",'Extension "%1" failed to load',t);const c=(e=Re[o])===null||e===void 0?void 0:e.rendererExtensions,h=(s=me.startup.document)===null||s===void 0?void 0:s.menu;c&&h&&h.addRequiredExtensions(c),hp(r.configuration.packageData.get("require").jax,o)}const up={Require(r,t){const e=r.GetArgument(t);if(e.match(/[^_a-zA-Z0-9]/)||e==="")throw new V("BadPackageName","Argument for %1 is not a valid package name",t);d0(r,e),r.Push(r.itemFactory.create("null"))}},pp={require:{allow:hs({base:!1,autoload:!1,configmacros:!1,tagformat:!1,setoptions:!1,texhtml:!1}),defaultAllow:!0,prefix:"tex"}};new Ri("require",{require:up.Require});const u0=qs.create("require",{[It.HANDLER]:{[At.MACRO]:["require"]},[It.CONFIG]:function(r,t){t.parseOptions.packageData.set("require",{jax:t,required:[...t.options.packages],configured:new Map});const e=t.parseOptions.options.require,s=e.prefix;if(s.match(/[^_a-zA-Z0-9]/))throw Error("Illegal characters used in \\require prefix");Re.paths[s]||(Re.paths[s]="[mathjax]/input/tex/extensions"),e.prefix="["+s+"]/"},[It.OPTIONS]:pp});function p0(r,t,e,s){if(ke.packages.has(r.options.require.prefix+e)){const i=r.options.autoload[e],[n,o]=i.length===2&&Array.isArray(i[0])?i:[i,[]];for(const a of n)mp.remove(a);for(const a of o)fp.remove(a);
vendor: 6,773 bytes, lines 62-63
62r.string=(s?t+" ":"\\begin{"+t.slice(1)+"}")+r.string.slice(r.i),r.i=0}d0(r,e)}const mp=new Ri("autoload-macros",{}),fp=new Ri("autoload-environments",{}),lg=qs.create("autoload",{[It.HANDLER]:{[At.MACRO]:["autoload-macros"],[At.ENVIRONMENT]:["autoload-environments"]},[It.OPTIONS]:{autoload:hs({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:["data","href","class","style","cssId"],mhchem:["ce","pu"],newcommand:["newcommand","renewcommand","newenvironment","renewenvironment","def","let"],unicode:["unicode","U","char"],verb:["verb"]})},[It.CONFIG]:function(r,t){const e=t.parseOptions,s=e.handlers.get(At.MACRO),i=e.handlers.get(At.ENVIRONMENT),n=e.options.autoload;e.packageData.set("autoload",{Autoload:p0});for(const o of Object.keys(n)){const a=n[o],[c,h]=a.length===2&&Array.isArray(a[0])?a:[a,[]];for(const u of c)s.lookup(u)&&u!=="color"||mp.add(u,new Xi(u,p0,[o,!0]));for(const u of h)i.lookup(u)||fp.add(u,new Xi(u,p0,[o,!1]))}e.packageData.get("require")||u0.config(r,t)},[It.INIT]:function(r){r.options.require||ms(r.options,u0.options)},[It.PRIORITY]:10}),m0="configmacros-map",f0="configmacros-active-map",g0="configmacros-env-map";function gp(r,t,e){const s=e.parseOptions.handlers.retrieve(t),i=e.parseOptions.options[r];for(const n of Object.keys(i)){const o=typeof i[n]=="string"?[i[n]]:i[n],a=Array.isArray(o[2])?new Xi(n,Ji.MacroWithTemplate,o.slice(0,2).concat(o[2])):new Xi(n,Ji.Macro,o);s.add(n,a)}}const cg=qs.create("configmacros",{[It.INIT]:function(r){new sn(f0,{}),new Ri(m0,{}),new Ko(g0,Ge.environment,{}),r.append(qs.local({handler:{[At.CHARACTER]:[f0],[At.MACRO]:[m0],[At.ENVIRONMENT]:[g0]},priority:3}))},[It.CONFIG]:function(r,t){(function(e){gp("active",f0,e)})(t),(function(e){gp("macros",m0,e)})(t),(function(e){const s=e.parseOptions.handlers.retrieve(g0),i=e.parseOptions.options.environments;for(const n of Object.keys(i))s.add(n,new Xi(n,Ji.BeginEnv,[!0].concat(i[n])))})(t)},[It.ITEMS]:{[ta.prototype.kind]:ta},[It.OPTIONS]:{active:hs({}),macros:hs({}),environments:hs({})}}),hg=qs.create("noundefined",{[It.FALLBACK]:{[At.MACRO]:function(r,t){const e=r.create("text","\\"+t),s=r.options.noundefined,i={};for(const n of["color","background","size"])s[n]&&(i["math"+n]=s[n]);r.Push(r.create("node","mtext",[],i,e))}},[It.OPTIONS]:{noundefined:{color:"red",background:"",size:""}},[It.PRIORITY]:3});class Xn extends $e{get texParser(){return this.configuration.packageData.get("textmacros").texParser}get tags(){return this.texParser.tags}constructor(t,e,s,i){super(t,e,s),this.level=i}mml(){return this.copyLists(),this.configuration.popParser(),this.level!=null?this.create("node","mstyle",this.nodes,{displaystyle:!1,scriptlevel:this.level}):this.nodes.length===1?this.nodes[0]:this.create("node","mrow",this.nodes)}copyLists(){const t=this.texParser.configuration;for(const[e,s]of Object.entries(this.configuration.nodeLists))for(const i of s)t.addNode(e,i);this.configuration.nodeLists={}}Parse(){this.text="",this.nodes=[],this.envStack=[],super.Parse()}saveText(){if(this.text){const t=this.stack.env.mathvariant,e=dt.internalText(this,this.text,t?{mathvariant:t}:{});this.text="",this.Push(e)}}Push(t){if(this.text&&this.saveText(),t instanceof qn)return super.Push(t);t instanceof Vn?this.stack.env.mathcolor=this.stack.env.color:t instanceof Ot&&(this.addAttributes(t),this.nodes.push(t))}PushMath(t){const e=this.stack.env;for(const s of["mathsize","mathcolor"])e[s]&&!t.attributes.hasExplicit(s)&&(t.isToken||t.isKind("mstyle")||(t=this.create("node","mstyle",[t])),L.setAttribute(t,s,e[s]));t.isInferred&&(t=this.create("node","mrow",t.childNodes)),t.isKind("TeXAtom")||(t=this.create("node","TeXAtom",[t])),this.nodes.push(t)}addAttributes(t){const e=this.stack.env;if(t.isToken)for(const s of["mathsize","mathcolor","mathvariant"])e[s]&&!t.attributes.hasExplicit(s)&&L.setAttribute(t,s,e[s])}ParseTextArg(t,e){const s=this.GetArgument(t);return e=Object.assign(Object.assign({},this.stack.env),e),new Xn(s,e,this.configuration).mml()}ParseArg(t){return new Xn(this.GetArgument(t),this.stack.env,this.configuration).mml()}Error(t,e,...s){throw new V(t,e,...s)}}const F={Comment(r,t){for(;r.i<r.string.length&&r.string.charAt(r.i)!==`
63`;)r.i++;r.i++},Math(r,t){r.saveText();const e=r.i;let s,i,n=0;for(;i=r.GetNext();)switch(s=r.i++,i){case"\\":r.GetCS()===")"&&(i="\\(");case"$":if(n===0&&t===i){const o=r.texParser.configuration,a=new $e(r.string.substring(e,s),r.stack.env,o).mml();return void r.PushMath(a)}break;case"{":n++;break;case"}":n===0&&r.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace"),n--}r.Error("MathNotTerminated","Math mode is not properly terminated")},MathModeOnly(r,t){r.Error("MathModeOnly","'%1' allowed only in math mode",t)},Misplaced(r,t){r.Error("Misplaced","Misplaced '%1'",t)},OpenBrace(r,t){const e=r.stack.env;r.envStack.push(e),r.stack.env=Object.assign({},e)},CloseBrace(r,t){r.envStack.length?(r.saveText(),r.stack.env=r.envStack.pop()):r.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace")},OpenQuote(r,t){r.string.charAt(r.i)===t?(r.text+="“",r.i++):r.text+="‘"},CloseQuote(r,t){r.string.charAt(r.i)===t?(r.text+="”",r.i++):r.text+="’"},Tilde(r,t){r.text+=" "},Space(r,t){r.text+=" ",r.GetNext()},SelfQuote(r,t){r.text+=t.substring(1)},Insert(r,t,e){r.text+=e},Accent(r,t,e){const s=r.ParseArg(t),i=r.create("token","mo",{},e);r.addAttributes(i),r.Push(r.create("node","mover",[s,i]))},Emph(r,t){const e=r.stack.env.mathvariant==="-tex-mathit"?"normal":"-tex-mathit";r.Push(r.ParseTextArg(t,{mathvariant:e}))},TextFont(r,t,e){r.saveText(),r.Push(r.ParseTextArg(t,{mathvariant:e}))},SetFont(r,t,e){r.saveText(),r.stack.env.mathvariant=e},SetSize(r,t,e){r.saveText(),r.stack.env.mathsize=e},CheckAutoload(r,t){const e=r.configuration.packageData.get("autoload"),s=r.texParser;t=t.slice(1);const i=s.lookup(At.MACRO,t);if(!i||e&&i._func===e.Autoload){if(s.parse(At.MACRO,[s,t]),!i)return;jn(Promise.resolve())}s.parse(At.MACRO,[r,t])},Macro:N.Macro,Spacer:N.Spacer,Hskip:N.Hskip,rule:N.rule,Rule:N.Rule,HandleRef:N.HandleRef,UnderOver:N.UnderOver,Lap:N.Lap,Phantom:N.Phantom,Smash:N.Smash,MmlToken:N.MmlToken},dr=Dt.Variant;new sn("text-special",{$:F.Math,"%":F.Comment,"^":F.MathModeOnly,_:F.MathModeOnly,"&":F.Misplaced,"#":F.Misplaced,"~":F.Tilde," ":F.Space,"	":F.Space,"\r":F.Space,"\n":F.Space," ":F.Tilde,"{":F.OpenBrace,"}
63":F.CloseBrace,"`":F.OpenQuote,"'":F.CloseQuote}),new Ri("text-macros",{"(":F.Math,$:F.SelfQuote,_:F.SelfQuote,"%":F.SelfQuote,"{":F.SelfQuote,"}":F.SelfQuote," ":F.SelfQuote,"&":F.SelfQuote,"#":F.SelfQuote,"\\":[F.Macro,"$\\\\$"],"'":[F.Accent,"´"],"’":[F.Accent,"´"],"`":[F.Accent,"`"],"‘":[F.Accent,"`"],"^":[F.Accent,"^"],'"':[F.Accent,"¨"],"~":[F.Accent,"~"],"=":[F.Accent,"¯"],".":[F.Accent,"˙"],u:[F.Accent,"˘"],v:[F.Accent,"ˇ"],emph:F.Emph,rm:[F.SetFont,dr.NORMAL],mit:[F.SetFont,dr.ITALIC],oldstyle:[F.SetFont,dr.OLDSTYLE],cal:[F.SetFont,dr.CALLIGRAPHIC],it:[F.SetFont,"-tex-mathit"],bf:[F.SetFont,dr.BOLD],sf:[F.SetFont,dr.SANSSERIF],tt:[F.SetFont,dr.MONOSPACE],frak:[F.TextFont,dr.FRAKTUR],Bbb:[F.TextFont,dr.DOUBLESTRUCK],Tiny:[F.SetSize,.5],tiny:[F.SetSize,.6],scriptsize:[F.SetSize,.7],SMALL:[F.SetSize,.7],Small:[F.SetSize,.8],footnotesize:[F.SetSize,.8],small:[F.SetSize,.9],normalsize:[F.SetSize,1],large:[F.SetSize,1.095],Large:[F.SetSize,1.2],LARGE:[F.SetSize,1.44],huge:[F.SetSize,1.73],Huge:[F.SetSize,2.07],HUGE:[F.SetSize,2.49],textnormal:[F.Macro,"{\\rm #1}",1],textup:[F.Macro,"{\\rm #1}",1],textrm:[F.Macro,"{\\rm #1}",1],textit:[F.Macro,"{\\it #1}",1],textbf:[F.Macro,"{\\bf #1}",1],textsf:[F.Macro,"{\\sf #1}",1],texttt:[F.Macro,"{\\tt #1}",1],dagger:[F.Insert,"†"],ddagger:[F.Insert,"‡"],S:[F.Insert,"§"],AA:[F.Insert,"Å"],ldots:[F.Insert,"…"],vdots:[F.Insert,"⋮"],",":[F.Spacer,ts.thinmathspace],":":[F.Spacer,ts.mediummathspace],">":[F.Spacer,ts.mediummathspace],";":[F.Spacer,ts.thickmathspace],"!":[F.Spacer,ts.negativethinmathspace],enspace:[F.Spacer,.5],quad:[F.Spacer,1],qquad:[F.Spacer,2],thinspace:[F.Spacer,ts.thinmathspace],negthinspace:[F.Spacer,ts.negativethinmathspace],hskip:F.Hskip,hspace:F.Hskip,kern:F.Hskip,mskip:F.Hskip,mspace:F.Hskip,mkern:F.Hskip,rule:F.rule,Rule:[F.Rule],Space:[F.Rule,"blank"],color:F.CheckAutoload,textcolor:F.CheckAutoload,colorbox:F.CheckAutoload,fcolorbox:F.CheckAutoload,href:F.CheckAutoload,style:F.CheckAutoload,class:F.CheckAutoload,data:F.CheckAutoload,cssId:F.CheckAutoload,unicode:F.CheckAutoload,U:F.CheckAutoload,char:F.CheckAutoload,ref:[F.HandleRef,!1],eqref:[F.HandleRef,!0],underline:[F.UnderOver,"2015"],llap:F.Lap,rlap:F.Lap,phantom:F.Phantom,vphantom:[F.Phantom,1,0],hphantom:[F.Phantom,0,1],smash:F.Smash,mmlToken:F.MmlToken});const dg=qs.create("text-base",{[It.PARSER]:"text",[It.PRIORITY]:1,[It.HANDLER]:{[At.CHARACTER]:["command","text-special"],[At.MACRO]:["text-macros"]},[It.FALLBACK]:{[At.CHARACTER]:(r,t)=>{r.text+=t},[At.MACRO]:(r,t)=>{const e=r.texParser,s=e.lookup(At.MACRO,t);s&&s._func!==F.Macro&&r.Error("MathMacro","%1 is only supported in math mode","\\"+t),e.parse(At.MACRO,[r,t])}},[It.ITEMS]:{[Go.prototype.kind]:Go,[qn.prototype.kind]:qn,[Yo.prototype.kind]:Yo,[Vn.prototype.kind]:Vn}});function ug(r,t,e,s){const i=r.configuration.packageData.get("textmacros");return r instanceof Xn||(i.texParser=r),i.parseOptions.clear(),[new Xn(t,s?{mathvariant:s}:{},i.parseOptions,e).mml()]}const pg=qs.create("textmacros",{[It.PRIORITY]:1,[It.CONFIG]:(r,t)=>{const e=new zh(t.parseOptions.options.textmacros.packages,["tex","text"]);e.init();const s=new Hh(e,[]);s.options=t.parseOptions.options,e.config(t),zi.addTags(e.tags),s.tags=zi.getDefault(),s.tags.configuration=s,s.packageData=t.parseOptions.packageData,s.packageData.set("textmacros",{textConf:e,parseOptions:s,jax:t,texParser:null}),s.options.internalMath=ug},[It.PREPROCESSORS]:[r=>{const t=r.data.packageData.get("textmacros");t.parseOptions.nodeFactory.setMmlFactory(t.jax.mmlFactory)}],[It.OPTIONS]:{textmacros:{packages:["text-base"]}}});MathJax.loader&&MathJax.loader.checkVersion("input/tex",ui,"input"),Ks({_:{input:{tex_ts:rr,tex:{ColumnParser:us,Configuration:Vs,FilterUtil:E,FindTeX:vr,HandlerTypes:T,MapHandler:Ti,NodeFactory:qe,NodeUtil:ir,ParseMethods:ei,ParseOptions:ps,ParseUtil:Ve,Stack:O,StackItem:xt,StackItemFactory:Q,Tags:is,TexConstants:f,TexError:G,TexParser:Jt,Token:ti,TokenMap:Qe,UnitUtil:M,ams:{AmsConfiguration:ws,AmsItems:Xs,AmsMethods:nr},autoload:{AutoloadConfiguration:Tn},base:{BaseConfiguration:Is,BaseItems:li,BaseMethods:zs},configmacros:{ConfigMacrosConfiguration:_r},newcommand:{NewcommandConfiguration:hi,NewcommandItems:ci,NewcommandMethods:ze,NewcommandUtil:Js},noundefined:{NoUndefinedConfiguration:Cn},require:{RequireConfiguration:vn},textmacros:{TextMacrosConfiguration:An,TextMacrosMethods:Wr,TextParser:Ln}}}}}),Ze.preLoaded("input/tex-base","[tex]/ams","[tex]/newcommand","[tex]/textmacros","[tex]/noundefined","[tex]/require","[tex]/autoload","[tex]/configmacros"),(function(r=[],t=!0){if(MathJax.startup){t&&(MathJax.startup.registerConstructor("tex",MathJax._.input.tex_ts.TeX),MathJax.startup.useInput("tex")),MathJax.config.tex||(MathJax.config.tex={});let e=MathJax.config.tex.packages;MathJax.config.tex.packages=r,e&&(Array.isArray(e)&&(e={"[+]":e.filter(s=>!r.includes(s))}),Xr(MathJax.config.tex,{packages:e}))}})(["base","ams","newcommand","textmacros","noundefined","require","autoload","configmacros"]);const xe={None:"",Vertical:"v",Horizontal:"h"},D=xe.Vertical,W=xe.Horizontal;var mg=function(r,t,e,s){return new(e||(e=Promise))(function(i,n){function o(h){try{c(s.next(h))}catch(u){n(u)}}function a(h){try{c(s.throw(h))}catch(u){n(u)}}function c(h){var u;h.done?i(h.value):(u=h.value,u instanceof e?u:new e(function(x){x(u)})).then(o,a)}c((s=s.apply(r,[])).next())})};const on=.07,Jn=.07,ea={dir:xe.None};function ur(r,t,e){return e?ms(r,{[t]:e})[t]:r[t]}class de{get CLASS(){return this.constructor}static charOptions(t,e){const s=t[e];if(!Array.isArray(s))throw Error(`Character data hasn't been loaded for 0x${e.toString(16).toUpperCase()}`);return s.length===3&&(s[3]={}),s[3]}static defineDynamicFiles(t,e=""){const s={};
vendor: 9,175 bytes, lines 63-64
63return(t||[]).forEach(([i,n,o])=>{s[i]={extension:e,file:i,variants:n,delimiters:o||[],promise:null,failed:!1,setup:a=>{s[i].failed=!0}}}),s}static dynamicSetup(t,e,s,i={},n=null){const o=t?this.dynamicExtensions.get(t):null;(t?o.files:this.dynamicFiles)[e].setup=a=>{Object.keys(s).forEach(c=>a.defineChars(c,s[c])),a.defineDelimiters(i),t&&this.adjustDelimiters(a.delimiters,Object.keys(i),o.sizeN,o.stretchN),n&&a.addDynamicFontCss(n)}}static adjustDelimiters(t,e,s,i){e.forEach(n=>{const o=t[parseInt(n)];"dir"in o&&(o.variants&&(o.variants=this.adjustArrayIndices(o.variants,s)),o.stretchv&&(o.stretchv=this.adjustArrayIndices(o.stretchv,i)))})}static adjustArrayIndices(t,e){return t.map(s=>s<0?e-1-s:s)}static addExtension(t,e=""){const s={name:t.name,prefix:e||`[${t.name}-extension]/${this.JAX.toLowerCase()}/dynamic`,files:this.defineDynamicFiles(t.ranges,t.name),sizeN:this.defaultSizeVariants.length,stretchN:this.defaultStretchVariants.length};this.dynamicExtensions.set(t.name,s);for(const[i,n]of[["options","OPTIONS"],["variants","defaultVariants"],["variantSmp","VariantSmp"],["cssFonts","defaultCssFonts"],["accentMap","defaultAccentMap"],["moMap","defaultMoMap"],["mnMap","defaultMnMap"],["parameters","defaultParams"],["chars","defaultChars"],["sizeVariants","defaultSizeVariants"],["stretchVariants","defaultStretchVariants"]])ur(this,n,t[i]);t.delimiters&&(Object.assign(this.defaultDelimiters,t.delimiters),this.adjustDelimiters(this.defaultDelimiters,Object.keys(t.delimiters),s.sizeN,s.stretchN))}constructor(t=null){this.variant={},this.delimiters={},this.cssFontMap={},this.cssFontPrefix="",this.remapChars={},this.skewIcFactor=.75;const e=this.CLASS;this.options=Ws(ms({},e.OPTIONS),t),this.params=Object.assign({},e.defaultParams),this.sizeVariants=[...e.defaultSizeVariants],this.stretchVariants=[...e.defaultStretchVariants],this.defineCssFonts(e.defaultCssFonts),this.cssFamilyPrefix=e.defaultCssFamilyPrefix,this.createVariants(e.defaultVariants),this.defineDelimiters(e.defaultDelimiters),Object.keys(e.defaultChars).forEach(s=>this.defineChars(s,e.defaultChars[s])),this.defineRemap("accent",e.defaultAccentMap),this.defineRemap("mo",e.defaultMoMap),this.defineRemap("mn",e.defaultMnMap),this.defineDynamicCharacters(e.dynamicFiles),e.dynamicExtensions.forEach(s=>this.defineDynamicCharacters(s.files))}setOptions(t){ms(this.options,t)}addExtension(t,e=""){const s=this.constructor.JAX.toLowerCase(),i={name:t.name,prefix:e||`[${t.name}-extension]/${s}/dynamic`,files:this.CLASS.defineDynamicFiles(t.ranges,e),sizeN:this.sizeVariants.length,stretchN:this.stretchVariants.length};this.CLASS.dynamicExtensions.set(t.name,i),ms(this.options,t.options||{}),ms(this.params,t.parameters||{}),ur(this,"sizeVariants",t.sizeVariants),ur(this,"stretchVariants",t.stretchVariants),ur(this.constructor,"VariantSmp",t.variantSmp),this.defineCssFonts(ur({cssFonts:{}},"cssFonts",t.cssFonts)),this.createVariants(ur({variants:[]},"variants",t.variants)),t.delimiters&&(this.defineDelimiters(ur({delimiters:{}},"delimiters",t.delimiters)),this.CLASS.adjustDelimiters(this.delimiters,Object.keys(t.delimiters),i.sizeN,i.stretchN));for(const n of Object.keys(t.chars||{}))this.defineChars(n,t.chars[n]);return this.defineRemap("accent",t.accentMap),this.defineRemap("mo",t.moMap),this.defineRemap("mn",t.mnMap),t.ranges&&this.defineDynamicCharacters(i.files),[]}get styles(){return this._styles}set styles(t){this._styles=t}createVariant(t,e=null,s=null){const i={linked:[],chars:Object.create(e?this.variant[e].chars:{})};this.variant[s]&&(Object.assign(i.chars,this.variant[s].chars),this.variant[s].linked.push(i.chars),i.chars=Object.create(i.chars)),this.remapSmpChars(i.chars,t),this.variant[t]=i}remapSmpChars(t,e){const s=this.CLASS;let i=s.VariantSmp[e];if(typeof i=="string"&&(i=s.VariantSmp[i]),!i)return;const n=s.SmpRemap,o=[null,null,s.SmpRemapGreekU,s.SmpRemapGreekL];for(const[c,h,u]of s.SmpRanges){const x=i[c];if(x){for(let A=h;A<=u;A++){if(A===930)continue;const I=x+A-h;t[A]=this.smpChar(n[I]||I)}if(o[c])for(const A of Object.keys(o[c]).map(I=>parseInt(I)))t[A]=this.smpChar(x+o[c][A])}}const a=i[5]||{};for(const c of Object.keys(a))t[c]=this.smpChar(i[5][c])}smpChar(t){return[,,,{smp:t}]}createVariants(t){for(const e of t)this.createVariant(e[0],e[1],e[2])}defineChars(t,e){const s=this.variant[t];Object.assign(s.chars,e);for(const i of s.linked)Object.assign(i,e)}defineCssFonts(t){Object.assign(this.cssFontMap,t);for(const e of Object.keys(t))this.cssFontMap[e][0]==="unknown"&&(this.cssFontMap[e][0]=this.options.unknownFamily)}defineDelimiters(t){Object.assign(this.delimiters,t)}defineRemap(t,e){e&&(Object.hasOwn(this.remapChars,t)||(this.remapChars[t]={}),Object.assign(this.remapChars[t],e))}defineDynamicCharacters(t){for(const e of Object.keys(t)){const s=t[e];for(const i of Object.keys(s.variants))this.defineChars(i,this.flattenRanges(s.variants[i],s));this.defineDelimiters(this.flattenRanges(s.delimiters,s))}}flattenRanges(t,e){const s={};for(const i of t)if(Array.isArray(i))for(let n=i[0];n<=i[1];n++)s[n]=e;else s[i]=e;return s}dynamicFileName(t){const e=t.extension?this.CLASS.dynamicExtensions.get(t.extension).prefix:this.options.dynamicPrefix;return t.file.match(/^(?:[/[]|[a-z]+:\/\/|[a-z]:)/i)?t.file:e+"/"+t.file.replace(/(\.js)?$/,".js")}loadDynamicFile(t){return mg(this,void 0,void 0,function*(){return t.failed?Promise.reject(new Error(`dynamic file '${t.file}' failed to load`)):(t.promise||(t.promise=Sh(this.dynamicFileName(t)).catch(e=>{t.failed=!0,console.warn(e)})),t.promise.then(()=>t.setup(this)))})}loadDynamicFiles(){const t=this.CLASS.dynamicFiles,e=Object.keys(t).map(s=>this.loadDynamicFile(t[s]));for(const s of this.CLASS.dynamicExtensions.values())e.push(...Object.keys(s.files).map(i=>this.loadDynamicFile(s.files[i])));return Promise.all(e)}loadDynamicFilesSync(){if(!gs.asyncIsSynchronous)throw Error(`MathJax(loadDynamicFilesSync): mathjax.asyncLoad must be specified and synchronous
64    Try importing #js/../components/require.mjs and #js/util/asyncLoad/node.js`);const t=this.CLASS.dynamicFiles;Object.keys(t).forEach(e=>this.loadDynamicFileSync(t[e]));for(const e of this.CLASS.dynamicExtensions.values())Object.keys(e.files).forEach(s=>this.loadDynamicFileSync(e.files[s]))}loadDynamicFileSync(t){if(!t.promise){t.promise=Promise.resolve();try{gs.asyncLoad(this.dynamicFileName(t))}catch(e){t.failed=!0,console.warn(e)}t.setup(this)}}addDynamicFontCss(t,e){}getDelimiter(t){const e=this.delimiters[t];return e&&!("dir"in e)?(this.delimiters[t]=null,jn(this.loadDynamicFile(e)),null):e}getSizeVariant(t,e){const s=this.getDelimiter(t);return s&&s.variants&&(e=s.variants[e]),this.sizeVariants[e]}getStretchVariant(t,e){const s=this.getDelimiter(t);return this.stretchVariants[s.stretchv?s.stretchv[e]:0]}getStretchVariants(t){return[0,1,2,3].map(e=>this.getStretchVariant(t,e))}getChar(t,e){const s=this.variant[t].chars[e];if(s&&!Array.isArray(s)){const i=this.variant[t];return delete i.chars[e],i.linked.forEach(n=>delete n[e]),jn(this.loadDynamicFile(s)),null}return s}getVariant(t){return this.variant[t]}getCssFont(t){return this.cssFontMap[t]||["serif",!1,!1]}getFamily(t){return this.cssFamilyPrefix?this.cssFamilyPrefix+", "+t:t}getRemappedChar(t,e){return(this.remapChars[t]||{})[e]}}de.OPTIONS={unknownFamily:"serif",dynamicPrefix:"."},de.JAX="common",de.NAME="",de.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"],["-smallop","normal"],["-largeop","normal"],["-tex-calligraphic","italic"],["-tex-bold-calligraphic","bold-italic"],["-tex-oldstyle","normal"],["-tex-bold-oldstyle","bold"],["-tex-mathit","italic"],["-tex-variant","normal"]],de.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],"-smallop":["unknown",!1,!1],"-largeop":["unknown",!1,!1],"-tex-calligraphic":["cursive",!0,!1],"-tex-bold-calligraphic":["cursive",!0,!0],"-tex-oldstyle":["unknown",!1,!1],"-tex-bold-oldstyle":["unknown",!1,!0],"-tex-mathit":["unknown",!0,!1],"-tex-variant":["unknown",!1,!1]},de.defaultCssFamilyPrefix="",de.VariantSmp={bold:[119808,119834,120488,120514,120782,{988:120778,989:120779}],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,12
640302,120662,120688,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406,120720,120746],monospace:[120432,120458,,,120822]},de.SmpRanges=[[0,65,90],[1,97,122],[2,913,937],[3,945,969],[4,48,57]],de.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},de.SmpRemapGreekU={8711:25,1012:17},de.SmpRemapGreekL={977:27,981:29,982:31,1008:28,1009:30,1013:26,8706:25},de.defaultAccentMap={94:"ˆ",126:"˜",768:"ˋ",769:"ˊ",770:"ˆ",771:"˜",772:"ˉ",774:"˘",775:"˙",776:"¨",778:"˚",780:"ˇ",8594:"⃗"},de.defaultMoMap={45:"−"},de.defaultMnMap={45:"−"},de.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:.06,scriptspace:.05,nulldelimiterspace:.12,delimiterfactor:901,delimitershortfall:.3,rule_factor:1.25,min_rule_thickness:1.25,separation_factor:1.75,extra_ic:.033,extender_factor:.333},de.defaultDelimiters={},de.defaultChars={},de.defaultSizeVariants=[],de.defaultStretchVariants=[],de.dynamicFiles={},de.dynamicExtensions=new Map;class Fs extends he{static from(t,e,s=null){const i=new this;return Object.assign(i,t),i.lineLeading=e,s&&(i.indentData=s),i}constructor(t,e=null){super(t),this.indentData=null,this.isFirst=!1,this.originalL=this.L,e&&(this.start=e)}append(t){this.isFirst&&(t.originalL+=t.L,t.L=0),t.indentData&&(this.indentData=t.indentData),this.lineLeading=t.lineLeading,super.append(t),this.isFirst=t.isFirst}copy(){const t=Fs.from(this,this.lineLeading);return t.indentData=this.indentData,t.lineLeading=this.lineLeading,t}getIndentData(t){let{indentalign:e,indentshift:s,indentalignfirst:i,indentshiftfirst:n,indentalignlast:o,indentshiftlast:a}=t.attributes.getAllAttributes();i==="indentalign"&&(i=t.attributes.getInherited("indentalign")),n==="indentshift"&&(n=t.attributes.getInherited("indentshift")),o==="indentalign"&&(o=e),a==="indentshift"&&(a=s),this.indentData=[[i,n],[e,s],[o,a]]}copyIndentData(t){return t.indentData.map(([e,s])=>[e,s])}}const an=1e6;class bp extends _o{breakToWidth(t,e){}}class Ep extends bp{constructor(){super(...arguments),this.PENALTY={newline:t=>0,nobreak:t=>an,goodbreak:t=>t-200*this.state.depth,badbreak:t=>t+200*this.state.depth,auto:t=>t},this.FACTORS={depth:t=>t+800*this.state.depth,width:t=>t+Math.floor((this.state.width-this.state.w)/this.state.width*2500),tail:t=>t+Math.floor(this.state.width/Math.max(1e-4,this.state.mathLeft-this.state.w)*500),open:(t,e)=>{const s=e.node.prevClass;if(s===S.BIN||s===S.REL||s===S.OP)return t+5e3;const i=this.getPrevious(e);if(i&&(i.attributes.get("form")!=="postfix"||i.attributes.get("linebreak")==="nobreak"))return t+5e3;const n=e.node.Parent;return n?.isKind("mmultiscripts")&&e.node===this.getFirstToken(n)&&n.childNodes.filter(o=>o.isKind("mprescripts")).length?an:t-500},close:(t,e)=>{var s;const i=e.node.Parent;return!i?.isKind("msubsup")||i.isKind("mmultiscripts")&&(!((s=i.childNodes[1])===null||s===void 0)&&s.isKind("mprescripts"))||e.node!==this.getLastToken(i.childNodes[0])?t+500:an},space:(t,e)=>{const s=e;if(!s.canBreak)return an;const i=s.getBBox().w;return i<0?an:i<1?t:t-100*(i+4)},separator:t=>t+500,fuzz:t=>.99*t},this.TEXCLASS={[S.BIN]:t=>t-250,[S.REL]:t=>t-500}}breakToWidth(t,e){const s=this.state;this.state=this.createState(t),this.state.width=e;const i=t.breakCount;for(let n=0;n<=i;n++)(t.lineBBox[n]||t.getLineBBox(n)).w>e&&this.breakLineToWidth(t,n);for(const[n,o]of this.state.breaks){if(o===null){const a=n.coreMO();a.setBreakStyle(a.node.attributes.get("linebreakstyle")||"before")}else n.setBreakAt(o);n.invalidateBBox()}this.state=s}createState(t){const e=t.getBBox().w;return{breaks:new Set,potential:[],width:0,w:0,prevWidth:0,prevBreak:null,depth:0,mathWidth:e,mathLeft:e}}breakLineToWidth(t,e){const s=this.state;s.potential=[],s.w=0,s.prevWidth=0,s.prevBreak=null,s.depth=0,this.visitNode(t,e)}addWidth(t,e=null){e===null&&(e=t.L+t.w+t.R),e&&(e*=t.rscale,this.state.w+=e,this.state.potential.length&&(this.state.potential[0][4]+=e),this.processBreak())}processBreak(){const t=this.state;for(;t.potential.length&&t.w>this.state.width;){const e=t.potential.pop(),[s,,i,n,o]=e;t.breaks.add(s),t.w=t.potential.reduce((a,c)=>a+c[4],n+o),t.prevBreak&&t.prevWidth+i<=t.width?(t.breaks.delete(t.prevBreak[0]),t.prevWidth+=i):t.prevWidth=i+n,t.potential.forEach(a=>a[2]-=i),t.prevBreak=e,t.mathLeft-=i}}pushBreak(t,e,s,i){var n;const o=this.state;if(!(e>=an||o.w===0&&o.prevWidth===0)){for(;o.potential.length&&o.potential[0][1]>this.FACTORS.fuzz(e);){const a=o.potential.shift();o.potential.length&&(o.potential[0][4]+=a[4])}o.potential.unshift([[t,i],e,o.w-(((n=o.prevBreak)===null||n===void 0?void 0:n[3])||0),s,0])}}getBorderLR(t){var e;const s=t.styleData;if(!s)return[0,0];const i=((e=s?.border)===null||e===void 0?void 0:e.width)||[0,0,0,0],n=s?.padding||[0,0,0,0];return[i[3]+n[3],i[1]+n[1]]}getFirstToken(t){return t.isToken?t:this.getFirstToken(t.childNodes[0])}getLastToken(t){return t.isToken?t:this.getLastToken(t.childNodes[t.childNodes.length-1])}visitNode(t,e){t&&(this.state.depth++,t.node.isEmbellished&&!t.node.isKind("mo")?this.visitEmbellishedOperator(t,e):super.visitNode(t,e),this.state.depth--)}visitDefault(t,e){var s;const i=t.getLineBBox(e);
vendor: 5,154 bytes, line 64
64if(t.node.isToken||t.node.linebreakContainer||!(!((s=t.childNodes)===null||s===void 0)&&s[0]))this.addWidth(i);else{const[n,o]=this.getBorderLR(t);e===0&&this.addWidth(i,i.L+n),this.visitNode(t.childNodes[0],e),e===t.breakCount&&this.addWidth(i,i.R+o)}}visitEmbellishedOperator(t,e){const s=t.coreMO(),i=Fs.from(t.getOuterBBox(),t.linebreakOptions.lineleading);i.getIndentData(s.node);const n=s.getBreakStyle(s.node.attributes.get("linebreakstyle")),o=s.processIndent("",i.indentData[1][1],"",i.indentData[0][1],this.state.width)[1],a=this.moPenalty(s);if(n==="before")this.pushBreak(t,a,o-i.L,null),this.addWidth(i);else{this.addWidth(i);const c=(n==="after"?0:s.multChar?s.multChar.getBBox().w:i.w)+o;this.pushBreak(t,a,c,null)}}visitMoNode(t,e){const s=t,i=Fs.from(s.getOuterBBox(),s.linebreakOptions.lineleading);i.getIndentData(s.node);const n=s.getBreakStyle(s.node.attributes.get("linebreakstyle")),o=s.processIndent("",i.indentData[1][1],"",i.indentData[0][1],this.state.width)[1],a=this.moPenalty(s);if(n==="before")this.pushBreak(t,a,o-i.L,null),this.addWidth(i);else{this.addWidth(i);const c=(n==="after"?0:s.multChar?s.multChar.getBBox().w:i.w)+o;this.pushBreak(t,a,c,null)}}moPenalty(t){const{linebreak:e,fence:s,form:i}=t.node.attributes.getList("linebreak","fence","form"),n=this.FACTORS;let o=n.tail(n.width(0));const a=s&&i==="prefix"||t.node.texClass===S.OPEN,c=s&&i==="postfix"||t.node.texClass===S.CLOSE;return a&&(o=n.open(o,t),this.state.depth++),c&&(o=n.close(o,t),this.state.depth--),o=(this.TEXCLASS[t.node.texClass]||(h=>h))(o),(this.PENALTY[e]||(h=>h))(n.depth(o))}getPrevious(t){let e=t.node,s=e.parent,i=s.childIndex(e);for(;s&&(s.notParent||s.isKind("mrow"))&&i===0;)e=s,s=e.parent,i=s.childIndex(e);if(!s||!i)return null;const n=s.childNodes[i-1];return n.isEmbellished?n.coreMO():null}visitMspaceNode(t,e){const s=t.getLineBBox(e),i=t;if(i.canBreak){const n=this.mspacePenalty(i);s.getIndentData(t.node);const o=t.processIndent("",s.indentData[1][1],"",s.indentData[0][1],this.state.width)[1];this.pushBreak(t,n,o-s.w,null)}this.addWidth(s)}mspacePenalty(t){const e=t.node.attributes.get("linebreak"),s=this.FACTORS,i=s.space(s.tail(s.width(0)),t);return(this.PENALTY[e]||(n=>n))(s.depth(i))}visitMtextNode(t,e){if(!t.getText().match(/ /))return void this.visitDefault(t,e);const s=t;s.clearBreakPoints();const i=s.textWidth(" "),n=t.getBBox(),[o,a]=this.getBorderLR(t);this.addWidth(n,n.L+o);const c=s.childNodes;for(const h of c.keys()){const u=c[h];if(u.node.isKind("text")){const x=u.node.getText().split(/ /),A=x.pop();for(const I of x.keys())this.addWidth(n,s.textWidth(x[I])),this.pushBreak(t,this.mtextPenalty(),-i,[h,I+1]),this.addWidth(n,i);this.addWidth(n,s.textWidth(A))}else this.addWidth(u.getBBox())}this.addWidth(n,n.R+a)}mtextPenalty(){const t=this.FACTORS;return t.depth(t.tail(t.width(0)))}visitMrowNode(t,e){const s=t.lineBBox[e]||t.getLineBBox(e),[i,n]=s.start||[0,0],[o,a]=s.end||[t.childNodes.length-1,0],[c,h]=this.getBorderLR(t);this.addWidth(s,s.L+c);for(let u=i;u<=o;u++)this.visitNode(t.childNodes[u],u===i?n:u===o?a:0);this.addWidth(s,s.R+h)}visitInferredMrowNode(t,e){this.state.depth--,this.visitMrowNode(t,e),this.state.depth++}visitMfracNode(t,e){const s=t;!s.node.attributes.get("bevelled")&&s.getOuterBBox().w>this.state.width&&(this.breakToWidth(s.childNodes[0],this.state.width),this.breakToWidth(s.childNodes[1],this.state.width)),this.visitDefault(t,e)}visitMsqrtNode(t,e){if(t.getOuterBBox().w>this.state.width){const s=t,i=s.childNodes[s.base];this.breakToWidth(i,this.state.width-s.rootWidth()),s.getStretchedSurd()}this.visitDefault(t,e)}visitMrootNode(t,e){this.visitMsqrtNode(t,e)}visitMsubNode(t,e){this.visitDefault(t,e);const s=t,i=s.getOffset()[0],n=s.scriptChild.getOuterBBox(),[o,a]=this.getBorderLR(t);this.addWidth(s.getLineBBox(e),i+o+n.rscale*n.w+s.font.params.scriptspace+a)}visitMsupNode(t,e){this.visitDefault(t,e);const s=t,i=s.getOffset()[0],n=s.scriptChild.getOuterBBox(),[o,a]=this.getBorderLR(t);this.addWidth(s.getLineBBox(e),i+o+n.rscale*n.w+s.font.params.scriptspace+a)}visitMsubsupNode(t,e){this.visitDefault(t,e);const s=t,i=s.subChild.getOuterBBox(),n=s.supChild.getOuterBBox(),o=s.getAdjustedIc(),a=Math.max(i.rscale*i.w,o+n.rscale*n.w)+s.font.params.scriptspace,[c,h]=this.getBorderLR(t);this.addWidth(t.getLineBBox(e),c+a+h)}visitMmultiscriptsNode(t,e){const s=t,i=s.scriptData;if(i.numPrescripts){const n=Math.max(i.psup.rscale*i.psup.w,i.psub.rscale*i.psub.w);this.addWidth(t.getLineBBox(e),n+s.font.params.scriptspace)}if(this.visitDefault(t,e),i.numScripts){const n=Math.max(i.sup.rscale*i.sup.w,i.sub.rscale*i.sub.w);this.addWidth(t.getLineBBox(e),n+s.font.params.scriptspace)}}visitMfencedNode(t,e){const s=t,i=t.getLineBBox(e),[n,o]=this.getBorderLR(t);e===0&&this.addWidth(i,i.L+n),this.visitNode(s.mrow,e),e===t.breakCount&&this.addWidth(i,i.R+o)}visitMactionNode(t,e){const s=t,i=t.getLineBBox(e),[n,o]=this.getBorderLR(t);e===0&&this.addWidth(i,i.L+n),this.visitNode(s.selected,e),e===t.breakCount&&this.addWidth(i,i.R+o)}}(function(){for(const r of Object.keys(Hi.postfix)){const t=Hi.postfix[r][3];t&&t.fence&&(t.linebreakstyle="after")}
64Hi.infix["⁡"]=[...Hi.infix["⁡"]],Hi.infix["⁡"][3]={linebreak:"nobreak"}})();const xp="@mathjax/%%FONT%%-font";class ln extends On{get forceInlineBreaks(){return!1}constructor(t={},e=null,s=null){const[i,n]=t.fontData instanceof de?[t.fontData.constructor,t.fontData]:[t.fontData||s,null],[o,a]=fo(t,i.OPTIONS);super(o),this.factory=this.options.wrapperFactory||new e,this.factory.jax=this,this.styleJson=this.options.styleJson||new qi,this.font=n||new i(a),this.font.setOptions({mathmlSpacing:this.options.mathmlSpacing}),this.constructor.genericFont=i,this.unknownCache=new Map;const c=this.options.linebreaks.LinebreakVisitor||Ep;this.linebreaks=new c(this.factory)}setAdaptor(t){super.setAdaptor(t),this.options.htmlHDW==="auto"&&(this.options.htmlHDW=t.canMeasureNodes?"ignore":"force")}addExtension(t,e=""){return this.font.addExtension(t,e)}typeset(t,e){const s=this.constructor,i=s.genericFont;s.genericFont=this.font.constructor,this.setDocument(e);const n=this.createNode();try{this.toDOM(t,n,e)}finally{s.genericFont=i}return n}createNode(){const t=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:t})}setScale(t,e){let s=this.getInitialScale()*this.options.scale;if(e.node.attributes.get("overflow")==="scale"&&this.math.display){const i=e.getOuterBBox().w,n=Math.max(0,this.math.metrics.containerWidth-4)/this.pxPerEm;i>n&&i&&(s*=n/i)}s!==1&&this.adaptor.setStyle(t,"fontSize",wh(s))}getInitialScale(){return this.math.metrics.scale}toDOM(t,e,s=null){var i;this.setDocument(s),this.math=t,this.container=e,this.pxPerEm=t.metrics.ex/this.font.params.x_height,this.executeFilters(this.preFilters,t,s,e),this.nodeMap=new Map,t.root.attributes.getAllInherited().overflow=this.options.displayOverflow;const n=t.root.attributes.get("overflow");this.adaptor.setAttribute(e,"overflow",n),n==="linebreak"&&this.getLinebreakWidth();const o=this.options.linebreaks.inline&&!t.display;let a=!!t.root.getProperty("inlineMarked");!a||o&&this.forceInlineBreaks===t.root.getProperty("inlineForced")||(this.unmarkInlineBreaks(t.root),t.root.removeProperty("inlineMarked"),t.root.removeProperty("inlineForced"),a=!1),o&&!a&&(this.markInlineBreaks((i=t.root.childNodes)===null||i===void 0?void 0:i[0]),t.root.setProperty("inlineMarked",!0),t.root.setProperty("inlineForced",this.forceInlineBreaks)),t.root.setTeXclass(null);const c=this.factory.wrap(t.root);this.setScale(e,c),this.processMath(c,e),this.nodeMap=null,this.executeFilters(this.postFilters,t,s,e)}getBBox(t,e){this.setDocument(e),this.math=t,t.root.setTeXclass(null),this.nodeMap=new Map;const s=this.factory.wrap(t.root).getOuterBBox();return this.nodeMap=null,s}getLinebreakWidth(){const t=this.math.metrics.containerWidth/this.pxPerEm,e=this.math.root.attributes.get("maxwidth")||this.options.linebreaks.width;this.containerWidth=Ih(e,t,1,this.pxPerEm)}markInlineBreaks(t){if(!t)return;const e=this.forceInlineBreaks;let s=!1,i=!1,n="";for(const o of t.childNodes)if(n)i=this.markInlineBreak(i,e,n,t,o),n="",s=!1;else if(o.isEmbellished){if(o===t.childNodes[0])continue;const a=o.coreMO(),c=a.texClass,h=a.attributes.get("linebreak"),u=a.attributes.get("linebreakstyle");(c===S.BIN||c===S.REL||c===S.ORD&&a.hasSpacingAttributes()||h!=="auto")&&h!=="nobreak"&&(u==="before"?s&&h==="auto"||(i=this.markInlineBreak(i,e,h,t,o,a)):n=h),s=h==="newline"&&u==="after"}else if(o.isKind("mspace")){const a=o.attributes.get("linebreak");a!=="nobreak"&&o.canBreak&&(i=this.markInlineBreak(i,e,a,t,o)),s=a==="newline"}else s=!1,o.isKind("mstyle")&&!o.attributes.get("style")&&!o.attributes.hasExplicit("mathbackground")||o.isKind("semantics")?(this.markInlineBreaks(o.childNodes[0]),o.getProperty("process-breaks")&&(o.setProperty("inline-breaks",!0),o.childNodes[0].setProperty("inline-breaks",!0),t.parent.setProperty("process-breaks","true"))):o.isKind("mrow")&&o.attributes.get("data-semantic-added")&&(this.markInlineBreaks(o),o.getProperty("process-breaks")&&(o.setProperty("inline-breaks",!0),t.parent.setProperty("process-breaks","true")))}markInlineBreak(t,e,s,i,n,o=null){return n.setProperty("breakable",!0),e&&s!=="newline"?(n.setProperty("forcebreak",!0),o?.setProperty("forcebreak",!0)):(n.removeProperty("forcebreak"),o?.removeProperty("forcebreak"),s==="newline"&&n.setProperty("newline",!0)),t||(i.setProperty("process-breaks",!0),i.parent.setProperty("process-breaks",!0),t=!0),t}unmarkInlineBreaks(t){if(t&&(t.removeProperty("forcebreak"),t.removeProperty("breakable"),t.coreMO().removeProperty("forcebreak"),t.getProperty("process-breaks"))){t.removeProperty("process-breaks");for(const e of t.childNodes)this.unmarkInlineBreaks(e)}}getMetrics(t){this.setDocument(t);const e=this.adaptor,s=this.getMetricMaps(t);for(const i of t.math){const n=e.parent(i.start.node);
vendor: 6,404 bytes, lines 64-66
64if(i.state()<K.METRICS&&n){const o=s[i.display?1:0],{em:a,ex:c,containerWidth:h,scale:u,family:x}=o.get(n);i.setMetrics(a,c,h,u),this.options.mtextInheritFont&&(i.outputData.mtextFamily=x),this.options.merrorInheritFont&&(i.outputData.merrorFamily=x),i.state(K.METRICS)}}}getMetricsFor(t,e){const s=this.options.mtextInheritFont||this.options.merrorInheritFont,i=this.getTestElement(t,e),n=Object.assign(Object.assign({},this.measureMetrics(i,s)),{display:e});return this.adaptor.remove(i),n}getMetricMaps(t){const e=this.adaptor,s=[new Map,new Map];for(const o of t.math){const a=e.parent(o.start.node);if(a&&o.state()<K.METRICS){const c=s[o.display?1:0];c.has(a)||c.set(a,this.getTestElement(a,o.display))}}const i=this.options.mtextInheritFont||this.options.merrorInheritFont,n=[new Map,new Map];for(const o of n.keys())for(const a of s[o].keys())n[o].set(a,this.measureMetrics(s[o].get(a),i));for(const o of n.keys())for(const a of s[o].values())e.remove(a);return n}getTestElement(t,e){const s=this.adaptor;if(!this.testInline){this.testInline=this.html("mjx-test",{style:{display:"inline-block",width:"100%","font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","text-indent":0,"text-transform":"none","letter-spacing":"normal","word-spacing":"normal",overflow:"hidden",height:"1px","margin-right":"-1px"}},[this.html("mjx-left-box",{style:{display:"inline-block",width:0,float:"left"}}),this.html("mjx-ex-box",{style:{position:"absolute",overflow:"hidden",width:"1px",height:"60ex"}}),this.html("mjx-right-box",{style:{display:"inline-block",width:0,float:"right"}})]),this.testDisplay=s.clone(this.testInline),s.setStyle(this.testDisplay,"display","table"),s.setStyle(this.testDisplay,"margin-right",""),s.setStyle(s.firstChild(this.testDisplay),"display","none");const i=s.lastChild(this.testDisplay);s.setStyle(i,"display","table-cell"),s.setStyle(i,"width","10000em"),s.setStyle(i,"float","")}return s.append(t,s.clone(e?this.testDisplay:this.testInline))}measureMetrics(t,e){const s=this.adaptor,i=e?s.fontFamily(t):"",n=s.fontSize(t),[o,a]=s.nodeSize(s.childNode(t,1)),c=o?a/60:n*this.options.exFactor;return{em:n,ex:c,containerWidth:o?s.getStyle(t,"display")==="table"?s.nodeSize(s.lastChild(t))[0]-1:s.nodeBBox(s.lastChild(t)).left-s.nodeBBox(s.firstChild(t)).left-2:1e6,scale:Math.max(this.options.minScale,this.options.matchFontHeight?c/this.font.params.x_height/n:1),family:i}}styleSheet(t){if(this.setDocument(t),this.styleJson.clear(),this.styleJson.addStyles(this.constructor.commonStyles),"getStyles"in t)for(const e of t.getStyles())this.styleJson.addStyles(e);return this.addWrapperStyles(this.styleJson),this.addFontStyles(this.styleJson),this.html("style",{id:"MJX-styles"},[this.text(`
65`+this.styleJson.cssText+`
66`)])}addFontStyles(t){t.addStyles(this.font.styles)}addWrapperStyles(t){for(const e of this.factory.getKinds())this.addClassStyles(this.factory.getNodeClass(e),t)}addClassStyles(t,e){t.addStyles(e,this)}insertStyles(t){}setDocument(t){t&&(this.document=t,this.adaptor.document=t.document)}html(t,e={},s=[],i){return this.adaptor.node(t,e,s,i)}text(t){return this.adaptor.text(t)}fixed(t,e=3){return Math.abs(t)<6e-4?"0":t.toFixed(e).replace(/\.?0+$/,"")}measureText(t,e,s=["",!1,!1]){const i=this.unknownText(t,e);if(e==="-explicitFont"){const n=this.cssFontStyles(s);this.adaptor.setAttributes(i,{style:n})}return this.measureTextNodeWithCache(i,t,e,s)}measureTextNodeWithCache(t,e,s,i=["",!1,!1]){s==="-explicitFont"&&(s=[i[0],i[1]?"T":"F",i[2]?"T":"F",""].join("-")),this.unknownCache.has(s)||this.unknownCache.set(s,new Map);const n=this.unknownCache.get(s),o=n.get(e);if(o)return o;const a=this.measureTextNode(t);return n.set(e,a),a}cssFontStyles(t,e={}){const[s,i,n]=t;return e["font-family"]=this.font.getFamily(s),i&&(e["font-style"]="italic"),n&&(e["font-weight"]="bold"),e}getFontData(t){return t||(t=new Oe),[this.font.getFamily(t.get("font-family")),t.get("font-style")==="italic",t.get("font-weight")==="bold"]}}ln.NAME="Common",ln.OPTIONS=Object.assign(Object.assign({},On.OPTIONS),{scale:1,minScale:.5,mtextInheritFont:!1,merrorInheritFont:!1,mtextFont:"",merrorFont:"serif",mathmlSpacing:!1,skipAttributes:{},exFactor:.5,displayAlign:"center",displayIndent:"0",displayOverflow:"overflow",linebreaks:{inline:!0,width:"100%",lineleading:.2,LinebreakVisitor:null},font:"",fontExtensions:[],htmlHDW:"auto",wrapperFactory:null,fontData:null,fontPath:xp,styleJson:null}),ln.commonStyles={'mjx-container[overflow="scroll"][display]':{overflow:"auto clip","min-width":"initial !important"},'mjx-container[overflow="truncate"][display]':{overflow:"hidden clip","min-width":"initial !important"},"mjx-container[display]":{display:"block","text-align":"center","justify-content":"center",margin:".7em 0",padding:".3em 2px"},'mjx-container[display][width="full"]':{display:"flex"},'mjx-container[justify="left"]':{"text-align":"left","justify-content":"left"},'mjx-container[justify="right"]':{"text-align":"right","justify-content":"right"}};class b0 extends Pu{constructor(){super(...arguments),this.jax=null}get Wrappers(){return this.node}}b0.defaultNodes={};const E0=2/18,fg=5/18;function yp(r,t,e){return t?r?E0:fg:r?e<E0?0:E0:e}const sa={[Gt(0)]:"0",[Gt(2/18)]:"1",[Gt(3/18)]:"2",[Gt(4/18)]:"3",[Gt(5/18)]:"4",[Gt(6/18)]:"5"};class ni extends Du{static addStyles(t,e){t.addStyles(this.styles)}get jax(){return this.factory.jax}get adaptor(){return this.factory.jax.adaptor}get metrics(){return this.factory.jax.math.metrics}get containerWidth(){return this.parent?this.parent.containerWidth:this.jax.containerWidth}get linebreaks(){return this.jax.linebreaks}get linebreakOptions(){return this.jax.options.linebreaks}get fixesPWidth(){return!this.node.notParent&&!this.node.isToken}get breakCount(){if(this._breakCount<0){const t=this.node;this._breakCount=t.isEmbellished?this.coreMO().embellishedBreakCount:t.arity<0&&!t.linebreakContainer&&this.childNodes[0].isStack?this.childNodes[0].breakCount:0}return this._breakCount}breakTop(t,e){return this.node.linebreakContainer||!this.parent?t:this.parent.breakTop(t,this)}constructor(t,e,s=null){super(t,e),this.parent=null,this.dom=null,this.removedStyles=null,this.styles=null,this.styleData=null,this.variant="",this.bboxComputed=!1,this._breakCount=-1,this.lineBBox=[],this.stretch=ea,this.font=null,this.parent=s,this.font=t.jax.font,this.bbox=he.zero(),this.get
66Styles(),this.getStyleData(),this.getVariant(),this.getScale(),this.getSpace(),this.childNodes=e.childNodes.map(i=>{const n=this.wrap(i);return n.bbox.pwidth&&(e.notParent||e.isKind("math"))&&(this.bbox.pwidth=he.fullWidth),n})}wrap(t,e=null){const s=this.factory.wrap(t,e||this);return e&&e.childNodes.push(s),this.jax.nodeMap.set(t,s),s}getBBox(t=!0){if(this.bboxComputed)return this.bbox;const e=t?this.bbox:he.zero();return this.computeBBox(e),this.bboxComputed=t,e}getOuterBBox(t=!0){var e;const s=this.getBBox(t);if(!this.styleData)return s;const i=this.styleData.padding,n=((e=this.styleData.border)===null||e===void 0?void 0:e.width)||[0,0,0,0],o=this.styleData.margin||[0,0,0,0],a=s.copy();for(const[,c,h]of he.boxSides)a[h]+=i[c]+n[c]+o[c];return a}getUnbrokenHD(){const t=this.breakCount+1;let e=0,s=0;for(let i=0;i<t;i++){const{h:n,d:o}=this.getLineBBox(i);n>e&&(e=n),o>s&&(s=o)}return[e,s]}computeBBox(t,e=!1){t.empty();for(const s of this.childNodes)t.append(s.getOuterBBox());t.clean(),this.fixesPWidth&&this.setChildPWidths(e)&&this.computeBBox(t,!0)}getLineBBox(t){if(!this.lineBBox[t]){const e=this.breakCount;if(e){const s=this.embellishedBBox(t)||this.computeLineBBox(t);this.lineBBox[t]=s,t===0&&(!this.node.isKind("mo")&&this.node.isEmbellished?s.originalL=this.getBBox().L:s.L=this.getBBox().L),t===e&&(s.R=this.getBBox().R)}else{const s=this.getOuterBBox();this.lineBBox[t]=Fs.from(s,this.linebreakOptions.lineleading)}}return this.lineBBox[t]}embellishedBBox(t){if(!this.node.isEmbellished||this.node.isKind("mo"))return null;const e=this.coreMO();return e.moLineBBox(t,e.embellishedBreakStyle,this.getOuterBBox())}computeLineBBox(t){return this.getChildLineBBox(this.childNodes[0],t)}getBreakNode(t){var e,s;if(!t.start)return[this,null];const[i,n]=t.start;if(this.node.isEmbellished)return[this,this.coreMO()];const o=!((s=(e=this.childNodes[0])===null||e===void 0?void 0:e.node)===null||s===void 0)&&s.isInferred||this.node.isKind("semantics")?this.childNodes[0].childNodes:this.childNodes;return this.node.isToken||!o[i]?[this,null]:o[i].getBreakNode(o[i].getLineBBox(n))}getChildLineBBox(t,e){const s=this.breakCount;let i=t.getLineBBox(e);return(this.styleData||this.bbox.L||this.bbox.R)&&(i=i.copy()),this.addMiddleBorders(i),e===0?(i.L+=this.bbox.L,this.addLeftBorders(i)):e===s&&(i.R+=this.bbox.R,this.addRightBorders(i)),i}sideStyleSize(t){var e;const s=this.styleData.border,i=this.styleData.padding,n=this.styleData.margin;return(((e=s?.width)===null||e===void 0?void 0:e[t])||0)+(i?.[t]||0)+(n?.[t]||0)}addLeftBorders(t){this.styleData&&(t.w+=this.sideStyleSize(3))}addMiddleBorders(t){this.styleData&&(t.h+=this.sideStyleSize(0),t.d+=this.sideStyleSize(2))}addRightBorders(t){this.styleData&&(t.w+=this.sideStyleSize(1))}setChildPWidths(t,e=null,s=!0){if(t)return!1;s&&(this.bbox.pwidth="");let i=!1;for(const n of this.childNodes){const o=n.getBBox();o.pwidth&&n.setChildPWidths(t,e===null?o.w:e,s)&&(i=!0)}return i}breakToWidth(t){}invalidateBBox(t=!0){(this.bboxComputed||this._breakCount>=0)&&(this.bboxComputed=!1,this.lineBBox=[],this._breakCount=-1,this.parent&&t&&this.parent.invalidateBBox())}copySkewIC(t){var e,s,i;const n=this.childNodes[0];!((e=n?.bbox)===null||e===void 0)&&e.sk&&(t.sk=n.bbox.sk),!((s=n?.bbox)===null||s===void 0)&&s.dx&&(t.dx=n.bbox.dx);const o=this.childNodes[this.childNodes.length-1];!((i=o?.bbox)===null||i===void 0)&&i.ic&&(t.ic=o.bbox.ic,t.w+=t.ic)}getStyles(){const t=this.node.attributes.getExplicit("style");if(!t)return;const e=this.styles=new Oe(t);for(let s=0,i=ni.removeStyles.length;s<i;s++){const n=ni.removeStyles[s];e.get(n)&&(this.removedStyles||(this.removedStyles={}),this.removedStyles[n]=e.get(n),e.set(n,""))}}getStyleData(){if(!this.styles)return;const t=Array(4).fill(0),e=Array(4).fill(0),s=Array(4).fill(0),i=Array(4),n=Array(4);let o=!1,a=!1,c=!1;for(const[h,u]of he.boxSides){const x="border"+h,A=this.styles.get(x+"Width");A&&(a=!0,s[u]=Math.max(0,this.length2em(A,1)),i[u]=this.styles.get(x+"Style")||"solid",n[u]=this.styles.get(x+"Color"));const I=this.styles.get("padding"+h);I&&(o=!0,t[u]=Math.max(0,this.length2em(I,1)));const q=this.styles.get("margin"+h);q&&(c=!0,e[u]=this.length2em(q,1))}this.styleData=o||a||c?{padding:t,margin:e,border:a?{width:s,style:i,color:n}:null}:null}getVariant(){if(!this.node.isToken)return;const t=this.node.attributes;let e=t.get("mathvariant");if(t.hasExplicit("mathvariant"))this.font.getVariant(e)||(console.warn(`Invalid variant: ${e}`),e="normal");else{const s=t.getList("fontfamily","fontweight","fontstyle");if(this.removedStyles){const i=this.removedStyles;
66i.fontFamily&&(s.family=i.fontFamily),i.fontWeight&&(s.weight=i.fontWeight),i.fontStyle&&(s.style=i.fontStyle)}s.fontfamily&&(s.family=s.fontfamily),s.fontweight&&(s.weight=s.fontweight),s.fontstyle&&(s.style=s.fontstyle),s.weight&&s.weight.match(/^\d+$/)&&(s.weight=parseInt(s.weight)>600?"bold":"normal"),s.family?e=this.explicitVariant(s.family,s.weight,s.style):(this.node.getProperty("variantForm")&&(e="-tex-variant"),e=(ni.BOLDVARIANTS[s.weight]||{})[e]||e,e=(ni.ITALICVARIANTS[s.style]||{})[e]||e)}this.variant=e}explicitVariant(t,e,s){let i=this.styles;return i||(i=this.styles=new Oe),i.set("fontFamily",t),e&&i.set("fontWeight",e),s&&i.set("fontStyle",s),"-explicitFont"}getScale(){let t=1;const e=this.parent,s=e?e.bbox.scale:1,i=this.node.attributes,n=Math.min(i.get("scriptlevel"),2);let o=i.get("fontsize"),a=this.node.isToken||this.node.isKind("mstyle")?i.get("mathsize"):i.getInherited("mathsize");if(n!==0&&(t=Math.pow(i.get("scriptsizemultiplier"),n)),this.removedStyles&&this.removedStyles.fontSize&&!o&&(o=this.removedStyles.fontSize),o&&!i.hasExplicit("mathsize")&&(a=o),a!=="1"&&(t*=this.length2em(a,1,1)),n!==0){const c=this.length2em(i.get("scriptminsize"),.4,1);t<c&&(t=c)}this.bbox.scale=t,this.bbox.rscale=t/s}getSpace(){const t=this.isTopEmbellished(),e=this.node.hasSpacingAttributes();this.jax.options.mathmlSpacing||e?t&&this.getMathMLSpacing():this.getTeXSpacing(t,e)}getMathMLSpacing(){const t=this.node.coreMO(),e=t.coreParent(),s=e.parent;if(!s||!s.isKind("mrow")||s.childNodes.length===1)return;const i=s.childIndex(e);if(i===null)return;const n=t.getProperty("noDictDef"),o=t.attributes,a=o.get("scriptlevel")>0;if(this.bbox.L=o.isSet("lspace")?Math.max(0,this.length2em(o.get("lspace"))):yp(a,n,t.lspace),this.bbox.R=o.isSet("rspace")?Math.max(0,this.length2em(o.get("rspace"))):yp(a,n,t.rspace),!i)return;const c=s.childNodes[i-1];if(!c.isEmbellished)return;const h=this.jax.nodeMap.get(c).getBBox();h.R&&(this.bbox.L=Math.max(0,this.bbox.L-h.R))}getTeXSpacing(t,e){if(!e){const s=this.node.texSpacing();s&&(this.bbox.L=this.length2em(s))}if(t||e){const s=this.node.coreMO().attributes;s.isSet("lspace")&&(this.bbox.L=Math.max(0,this.length2em(s.get("lspace")))),s.isSet("rspace")&&(this.bbox.R=Math.max(0,this.length2em(s.get("rspace"))))}}isTopEmbellished(){return this.node.isEmbellished&&!(this.node.parent&&this.node.parent.isEmbellished)}core(){return this.jax.nodeMap.get(this.node.core())}coreMO(){return this.jax.nodeMap.get(this.node.coreMO())}coreRScale(){let t=this.bbox.rscale,e=this.coreMO();for(;e!==this&&e;)t*=e.bbox.rscale,e=e.parent;return t}getRScale(){let t=1,e=this;for(;e;)t*=e.bbox.rscale,e=e.parent;return t}getText(){let t="";if(this.node.isToken)for(const e of this.node.childNodes)e instanceof Kr&&(t+=e.getText());return t}canStretch(t){if(this.stretch=ea,this.node.isEmbellished){const e=this.core();e&&e.node!==this.node&&e.canStretch(t)&&(this.stretch=e.stretch)}return this.stretch.dir!==xe.None}getAlignShift(){let{indentalign:t,indentshift:e,indentalignfirst:s,indentshiftfirst:i}=this.node.attributes.getAllAttributes();return s!=="indentalign"&&(t=s),i!=="indentshift"&&(e=i),this.processIndent(t,e)}processIndent(t,e,s="",i="",n=this.metrics.containerWidth){return this.jax.math.display?(s&&s!=="auto"||(s=this.jax.math.root.getProperty("inlineMarked")?"left":this.jax.options.displayAlign),i&&i!=="auto"||(i=this.jax.math.root.getProperty("inlineMarked")?"0":this.jax.options.displayIndent),t==="auto"&&(t=s),e==="auto"&&(e=i,t!=="right"||e.match(/^\s*0[a-z]*\s*$/)||(e=("-"+e.trim()).replace(/^--/,""))),[t,this.length2em(e,n)]):["left",0]}getAlignX(t,e,s){return s==="right"?t-(e.w+e.R)*e.rscale:s==="left"?e.L*e.rscale:(t-e.w*e.rscale)/2}getAlignY(t,e,s,i,n){return n==="top"?t-s:n==="bottom"?i-e:n==="center"?(t-s-(e-i))/2:0}getWrapWidth(t){return this.childNodes[t].getBBox().w}getChildAlign(t){return"left"}percent(t){return wh(t)}em(t){return Gt(t)}px(t,e=-gi){return ju(t,e,this.metrics.em)}length2em(t,e=1,s=null){s===null&&(s=this.bbox.scale);const i=this.font.params.rule_thickness,n=Jr(t,{medium:1,thin:2/3,thick:5/3},0);return n?n*i:Ih(t,e,s,this.jax.pxPerEm)}unicodeChars(t,e=this.variant){let s=No(t);const i=this.font.getVariant(e);
66if(i&&i.chars){const n=i.chars;s=s.map(o=>{var a,c;return((c=(a=n[o])===null||a===void 0?void 0:a[3])===null||c===void 0?void 0:c.smp)||o})}return s}remapChars(t){return t}mmlText(t){return this.node.factory.create("text").setText(t)}mmlNode(t,e={},s=[]){return this.node.factory.create(t,e,s)}createMo(t){const e=this.node.factory,s=e.create("text").setText(t),i=e.create("mo",{stretchy:!0},[s]);i.inheritAttributesFrom(this.node),i.parent=this.node.parent;const n=this.wrap(i);return n.parent=this,n}getVariantChar(t,e){const s=this.font.getChar(t,e)||[0,0,0,{unknown:!0}];return s.length===3&&(s[3]={}),s}html(t,e={},s=[]){return this.jax.html(t,e,s)}}ni.kind="unknown",ni.styles={},ni.removeStyles=["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","font"],ni.skipAttributes={fontfamily:!0,fontsize:!0,fontweight:!0,fontstyle:!0,color:!0,background:!0,class:!0,href:!0,style:!0,xmlns:!0},ni.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"}},ni.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"}};const x0={"70.7%":"s","70%":"s","50%":"ss","60%":"Tn","85%":"sm","120%":"lg","144%":"Lg","173%":"LG","207%":"hg","249%":"HG"};class re extends ni{toCHTML(t){this.toEmbellishedCHTML(t)||this.addChildren(this.standardChtmlNodes(t))}toEmbellishedCHTML(t){if(t.length<=1||!this.node.isEmbellished)return!1;const e=this.adaptor;t.forEach(n=>e.append(n,this.html("mjx-linestrut")));const s=this.coreMO().embellishedBreakStyle,i=[];for(const[n,o]of[[t[0],"before"],[t[1],"after"]])s!==o?(this.toCHTML([n]),i.push(this.dom[0]),o==="after"&&e.removeAttribute(this.dom[0],"space")):i.push(this.createChtmlNodes([n])[0]);return this.dom=i,!0}addChildren(t){for(const e of this.childNodes)e.toCHTML(t)}standardChtmlNodes(t){this.markUsed();const e=this.createChtmlNodes(t);return this.handleStyles(),this.handleScale(),this.handleBorders(),this.handleColor(),this.handleSpace(),this.handleAttributes(),this.handlePWidth(),e}markUsed(){this.jax.wrapperUsage.add(this.kind)}createChtmlNodes(t){this.dom=t.map(e=>this.html("mjx-"+this.node.kind)),t=this.handleHref(t);for(const e of t.keys())this.adaptor.append(t[e],this.dom[e]);return this.dom}handleHref(t){const e=this.node.attributes.get("href");return e?t.map(s=>this.adaptor.append(s,this.html("a",{href:e}))):t}handleStyles(){if(!this.styles)return;const t=this.styles.cssText;if(t){const e=this.adaptor;this.dom.forEach(i=>e.setAttribute(i,"style",t));const s=this.styles.get("font-family");s&&this.dom.forEach(i=>e.setStyle(i,"font-family",this.font.cssFamilyPrefix+", "+s))}}handleScale(){this.dom.forEach(t=>this.setScale(t,this.bbox.rscale))}setScale(t,e){const s=Math.abs(e-1)<.001?1:e;if(t&&s!==1){const i=this.percent(s);x0[i]?this.adaptor.setAttribute(t,"size",x0[i]):this.adaptor.setStyle(t,"fontSize",i)}return t}handleSpace(){const t=this.adaptor,e=!!this.node.getProperty("breakable")&&!this.node.getProperty("newline"),s=this.dom.length-1;for(const i of[[this.getLineBBox(0).L,"space","marginLeft",0],[this.getLineBBox(s).R,"rspace","marginRight",s]]){const[n,o,a,c]=i,h=this.em(n);if(e&&o==="space"){const u=t.node("mjx-break",sa[h]?{size:sa[h]}:{style:`letter-spacing: ${this.em(n-1)}`},[t.text(" ")]);t.insert(u,this.dom[c])}else n&&(sa[h]?t.setAttribute(this.dom[c],o,sa[h]):t.setStyle(this.dom[c],a,h))}}handleBorders(){var t,e;const s=(t=this.styleData)===null||t===void 0?void 0:t.border,i=(e=this.styleData)===null||e===void 0?void 0:e.padding,n=this.dom.length-1;if(!s||!n)return;const o=this.adaptor;for(const a of this.dom.keys()){const c=this.dom[a];a&&(s.width[3]&&o.setStyle(c,"border-left"," none"),i[3]&&o.setStyle(c,"padding-left","0")),a!==n&&(s.width[1]&&o.setStyle(c,"border-right","none"),i[1]&&o.setStyle(c,"padding-right","0"))}}handleColor(){var t;const e=this.adaptor,s=this.node.attributes,i=s.getExplicit("mathcolor")||s.getExplicit("color"),n=s.getExplicit("mathbackground")||s.getExplicit("background")||((t=this.styles)===null||t===void 0?void 0:t.get("background-color"));i&&this.dom.forEach(o=>e.setStyle(o,"color",i)),n&&this.dom.forEach(o=>e.setStyle(o,"backgroundColor",n))}handleAttributes(){const t=this.adaptor,e=this.node.attributes,s=e.getAllDefaults(),i=re.skipAttributes;for(const n of e.getExplicitNames())if(i[n]===!1||!(n in s)&&!i[n]&&!t.hasAttribute(this.dom[0],n)
66){const o=e.getExplicit(n);this.dom.forEach(a=>t.setAttribute(a,n,o))}if(e.get("class")){const n=e.get("class").trim().split(/ +/);for(const o of n)this.dom.forEach(a=>t.addClass(a,o))}this.node.getProperty("inline-breaks")&&this.dom.forEach(n=>t.setAttribute(n,"inline-breaks","true"))}handlePWidth(){if(this.bbox.pwidth){const t=this.adaptor;this.bbox.pwidth===he.fullWidth?this.dom.forEach(e=>t.setAttribute(e,"width","full")):this.dom.forEach(e=>t.setStyle(e,"width",this.bbox.pwidth))}}setIndent(t,e,s){const i=this.adaptor;if(e==="center"||e==="left"){const n=this.getBBox().L;s+n&&i.setStyle(t,"margin-left",this.em(s+n))}if(e==="center"||e==="right"){const n=this.getBBox().R;s+n&&i.setStyle(t,"margin-right",this.em(-s+n))}}drawBBox(){const{w:t,h:e,d:s,R:i}=this.getOuterBBox(),n=this.html("mjx-box",{style:{opacity:.25,"margin-left":this.em(-t-i)}},[this.html("mjx-box",{style:{height:this.em(e),width:this.em(t),"background-color":"red"}}),this.html("mjx-box",{style:{height:this.em(s),width:this.em(t),"margin-left":this.em(-t),"vertical-align":this.em(-s),"background-color":"green"}})]),o=this.dom[0]||this.parent.dom[0],a=this.adaptor.getAttribute(o,"size");a&&this.adaptor.setAttribute(n,"size",a);const c=this.adaptor.getStyle(o,"fontSize");c&&this.adaptor.setStyle(n,"fontSize",c),this.adaptor.append(this.adaptor.parent(o),n),this.adaptor.setStyle(o,"backgroundColor","#FFEE00")}html(t,e={},s=[]){return this.jax.html(t,e,s)}text(t){return this.jax.text(t)}char(t){return this.font.charSelector(t).substring(1)}}function Np(r){return class extends r{getWrapWidth(t){return this.parent?this.getBBox().w:this.metrics.containerWidth/this.jax.pxPerEm}computeBBox(t,e=!1){super.computeBBox(t,e);const s=this.node.attributes;if(!this.parent&&this.jax.math.display&&s.get("overflow")==="linebreak"){const i=this.containerWidth;t.w>i&&this.childNodes[0].breakToWidth(i),t.updateFrom(this.childNodes[0].getBBox())}}}}re.kind="unknown",re.autoStyle=!0;const y0=(function(){var r;const t=Np(re);return(r=class extends t{handleDisplay(e){const s=this.adaptor,[i,n]=this.getAlignShift();if(i!=="center"&&s.setAttribute(e,"justify",i),this.bbox.pwidth===he.fullWidth){if(s.setAttribute(e,"width","full"),this.jax.table){let{L:o,w:a,R:c}=this.jax.table.getOuterBBox();i==="right"?c=Math.max(c||-n,-n):i==="left"?o=Math.max(o||n,n):i==="center"&&(a+=2*Math.abs(n));const h=this.em(Math.max(0,o+a+c));s.setStyle(e,"min-width",h),s.setStyle(this.jax.table.dom[0],"min-width",h)}}else this.setIndent(this.dom[0],i,n)}handleInline(e){const s=this.adaptor,i=s.getStyle(this.dom[0],"margin-right");i&&(s.setStyle(this.dom[0],"margin-right",""),s.setStyle(e,"margin-right",i),s.setStyle(e,"width","0"))}toCHTML(e){super.toCHTML(e);const s=this.adaptor;this.node.attributes.get("display")==="block"?(s.setAttribute(this.dom[0],"display","true"),s.setAttribute(e[0],"display","true"),this.handleDisplay(e[0])):this.handleInline(e[0]),s.addClass(this.dom[0],`${this.font.cssFontPrefix}-N`)}setChildPWidths(e,s=null,i=!0){return!!this.parent&&super.setChildPWidths(e,s,i)}handleAttributes(){super.handleAttributes();const e=this.adaptor;this.node.getProperty("process-breaks")&&this.dom.forEach(s=>e.setAttribute(s,"breakable","true"))}}).kind=xo.prototype.kind,r.styles={"mjx-math":{"line-height":0,"text-align":"left","text-indent":0,"font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","letter-spacing":"normal","word-wrap":"normal","word-spacing":"normal",direction:"ltr",padding:"1px 0"},'mjx-container[jax="CHTML"][display="true"] mjx-math':{padding:0},"mjx-math[breakable]":{display:"inline"},'mjx-container[jax="CHTML"] mjx-break':{"white-space":"normal","line-height":"0","clip-path":"rect(0 0 0 0)","font-family":"MJX-BRK !important"},'mjx-break[size="0"]':{"letter-spacing":"-0.999em"},'mjx-break[size="1"]':{"letter-spacing":"-0.889em"},'mjx-break[size="2"]':{"letter-spacing":"-0.833em"},'mjx-break[size="3"]':{"letter-spacing":"-0.778em"},'mjx-break[size="4"]':{"letter-spacing":"-0.722em"}
vendor: 8,534 bytes, line 66
66,'mjx-break[size="5"]':{"letter-spacing":"-0.667em"}},r})();function vp(r){return class extends r{computeBBox(t,e=!1){super.computeBBox(t),this.copySkewIC(t)}}}const N0=(function(){var r;const t=vp(re);return(r=class extends t{}).kind=Li.prototype.kind,r})();class hl{constructor(){this.used=new Set,this.needsUpdate=[]}add(t){const e=JSON.stringify(t);this.used.has(e)||this.needsUpdate.push(t),this.used.add(e)}has(t){return this.used.has(JSON.stringify(t))}clear(){this.used.clear(),this.needsUpdate=[]}update(){const t=this.needsUpdate;return this.needsUpdate=[],t}}class Mi extends de{constructor(){super(...arguments),this.charUsage=new hl,this.delimUsage=new hl,this.fontUsage={},this.newFonts=0}static charOptions(t,e){return super.charOptions(t,e)}static addFontURLs(t,e,s){for(const i of Object.keys(e)){const n=Object.assign({},e[i]);n.src=n.src.replace(/%%URL%%/,s),t[i]=n}}static addDynamicFontCss(t,e,s){const i={};for(const n of e){const o=n.slice(4);i[`@font-face /* ${o} */`]={"font-family":n,src:`url("%%URL%%/${n.toLowerCase()}.woff2") format("woff2")`},t[`.${o}`]={"font-family":`${this.defaultCssFamilyPrefix}, ${n}`}}this.addFontURLs(t,i,s)}static addExtension(t,e=""){super.addExtension(t,e),t.fonts&&this.addDynamicFontCss(this.defaultStyles,t.fonts,t.fontURL)}addExtension(t,e=""){if(super.addExtension(t,e),!t.fonts||!this.options.adaptiveCSS)return[];const s={},i=new qi;return this.constructor.addDynamicFontCss(s,t.fonts,t.fontURL),i.addStyles(s),i.getStyleRules()}adaptiveCSS(t){this.options.adaptiveCSS=t}clearCache(){this.options.adaptiveCSS&&(this.charUsage.clear(),this.delimUsage.clear())}createVariant(t,e=null,s=null){super.createVariant(t,e,s),this.variant[t].letter=this.constructor.defaultVariantLetters[t]}defineChars(t,e){super.defineChars(t,e);const s=this.variant[t].letter,i=this.constructor;for(const n of Object.keys(e)){const o=parseInt(n);if(!Array.isArray(e[o]))continue;const a=i.charOptions(e,o);a.f===void 0&&(a.f=s);for(const[c,h]of i.combiningChars)if(o>=c&&o<=h){a.cmb=!0;break}}}addDynamicFontCss(t,e=this.options.fontURL){this.constructor.addDynamicFontCss(this.fontUsage,t,e)}updateDynamicStyles(){const t=this.fontUsage;return this.fontUsage={},this.options.adaptiveCSS||this.updateStyles(t),t}get styles(){const t=this.constructor,e=Object.assign(Object.assign({},t.defaultStyles),this.fontUsage);return this.fontUsage={},t.addFontURLs(e,t.defaultFonts,this.options.fontURL),this.options.adaptiveCSS?this.updateStyles(e):this.allStyles(e),e}updateStyles(t){for(const e of this.delimUsage.update())this.addDelimiterStyles(t,e,this.getDelimiter(e));for(const[e,s]of this.charUsage.update()){const i=this.variant[e];this.addCharStyles(t,i.letter,s,i.chars[s])}return t}allStyles(t){var e;for(const s of Object.keys(this.delimiters)){const i=parseInt(s);this.addDelimiterStyles(t,i,this.delimiters[i])}for(const s of Object.keys(this.variant)){const i=this.variant[s],n=i.letter;for(const o of Object.keys(i.chars)){const a=parseInt(o),c=i.chars[a];!(!((e=c?.[3])===null||e===void 0)&&e.smp)&&Array.isArray(c)&&(c.length<4&&(c[3]={}),this.addCharStyles(t,n,a,c))}}}addDelimiterStyles(t,e,s){if(!s.stretch)return;const i=s.c&&s.c!==e?this.charSelector(s.c):this.charSelector(e);s.dir===xe.Vertical?this.addDelimiterVStyles(t,e,i,s):this.addDelimiterHStyles(t,e,i,s)}addDelimiterVStyles(t,e,s,i){const n=i.HDW,[o,a,c,h]=i.stretch,[u,x,A,I]=this.getStretchVariants(e),q=this.addDelimiterVPart(t,s,"beg",o,u,n);this.addDelimiterVPart(t,s,"ext",a,x,n);const et=this.addDelimiterVPart(t,s,"end",c,A,n);if(h){const Rt=this.addDelimiterVPart(t,s,"mid",h,I,n),Ce=this.em(Rt/2-.03);t[`mjx-stretchy-v${s} > mjx-ext:first-of-type`]={height:"50%","border-width":`${this.em1(q-.03)} 0 ${Ce}`},t[`mjx-stretchy-v${s} > mjx-ext:last-of-type`]={height:"50%","border-width":`${Ce} 0 ${this.em1(et-.03)}`}}else(et||q)&&(t[`mjx-stretchy-v${s} > mjx-ext`]["border-width"]=`${this.em1(q-.03)} 0 ${this.em1(et-.03)}`)}addDelimiterVPart(t,e,s,i,n,o){if(!i)return 0;let a=0;const[c,h,u]=this.getChar(n,i),x={width:this.em0(u)};if(s!=="ext"){const A=u>o[2]?this.em((o[2]-u)/2):"auto",I=s==="beg"?c:s==="end"?-h:(c-h)/2;x.margin=`${this.em(I)} ${A} ${this.em(-I)}`}else{a=on;const A=Math.max(on,c+h-on);x["line-height"]=this.em0(A);const I=c-A/2-on;I&&(t[`mjx-stretchy-v${e} > mjx-ext > mjx-spacer`]={"margin-top":this.em(I)})}return t[`mjx-stretchy-v${e} > mjx-${s}`]=x,Math.max(0,c+h-a)}addDelimiterHStyles(t,e,s,i){const n=[...i.HDW],[o,a,c,h]=i.stretch,[u,x,A,I]=this.getStretchVariants(e);if(i.hd&&!this.options.mathmlSpacing){const Rt=this.params.extender_factor;n[0]=n[0]*(1-Rt)+i.hd[0]*Rt,n[1]=n[1]*(1-Rt)+i.hd[1]*Rt}const q=this.addDelimiterHPart(t,s,"beg",o,u,n);this.addDelimiterHPart(t,s,"ext",a,x,n);const et=this.addDelimiterHPart(t,s,"end",c,A,n);if(h){const Rt=this.addDelimiterHPart(t,s,"mid",h,I,n),Ce=this.em0(Rt/2-.03);t[`mjx-stretchy-h${s} > mjx-ext:first-of-type`]={width:"50%","border-width":`0 ${Ce} 0 ${this.em0(q-.03)}`},t[`mjx-stretchy-h${s} > mjx-ext:last-of-type`]={width:"50%","border-width":`0 ${this.em0(et-.03)} 0 ${Ce}`}}else(q||et)&&(t[`mjx-stretchy-h${s} > mjx-ext`]["border-width"]=`0 ${this.em0(et-.06)} 0 ${this.em0(q-.06)}`);i.ext&&(t[`mjx-stretchy-h${s} > mjx-ext > mjx-spacer`]["letter-spacing"]=this.em(-i.ext-Jn))}addDelimiterHPart(t,e,s,i,n,o){if(!i)return 0;let[,,a,c]=this.getChar(n,i);const h={padding:this.padding(o,a-o[2])};if(s==="ext"){const u=h.padding.split(/ /);u[1]=u[3]="0",h.padding=u.join(" "),!a&&c.dx&&(a=2*c.dx-.06),t[`mjx-stretchy-h${e} > mjx-${s} > mjx-spacer`]={"margin-left":this.em(-a/2)},c.cmb&&(t[`mjx-stretchy-h${e} > mjx-${s} > mjx-c`]={width:this.em(a),"text-align":"right"})}else s==="mid"?h.margin=`0 ${this.em(-a/2)}`:h[s=="end"?"margin-left":"margin-right"]=this.em(-a),this.checkCombiningChar(c,h);return t[`mjx-stretchy-h${e} > mjx-${s}`]=h,a}addCharStyles(t,e,s,i){const n=i[3],o=n.f!==void 0?n.f:e,a=n.ff||(o?`${this.cssFontPrefix}-${o}`:""),c="mjx-c"+this.charSelector(s)+(a?"."+a:""),h=n.oc||n.ic||0,u={padding:this.padding(i,h)};n.oc&&(t[c+"[noic]"]={"padding-right":this.em(i[2])}),this.checkCombiningChar(n,u),t[c+(u["margin-left"]&&!a?`:not([class*="${this.cssFontPrefix}-"])`:"")]=u}checkCombiningChar(t,e){if(!t.cmb)return;const s=e.padding.split(/ /);e.width=s[1],s[1]="0",s[3]||s.pop(),e.padding=s.join(" "),e.width==="0"&&t.dx&&(e.width=this.em(2*t.dx),e["margin-left"]="-"+e.width)}em(t){return Gt(t)}em0(t){return Gt(Math.max(0,t))}em1(t){const e=Gt(Math.max(0,t));return e==="0"?".1px":e}padding([t,e,s],i=0){return[t,s+i,e,0].map(this.em0).join(" ")}charSelector(t){return".mjx-c"+t.toString(16).toUpperCase()}}function gg(r,t){for(const e of Object.keys(t)){const s=parseInt(e),i=t[s];i.c&&(i.c=i.c.replace(/\\[0-9A-F]+/gi,n=>String.fromCodePoint(parseInt(n.substring(1),16)))),Object.assign(de.charOptions(r,s),i)}return r}function Tp(r){return class extends r{get breakCount(){return this.breakStyle?1:0}get embellishedBreakCount(){return this.embellishedBreakStyle?1:0}get embellishedBreakStyle(){return this.breakStyle||this.getBreakStyle()}protoBBox(t){const e=this.stretch.dir!==xe.None;e&&this.size===null&&this.getStretchedVariant([0]),e&&this.size<0||(super.computeBBox(t),t.w!==0||!this.node.attributes.hasExplicit("fence")||this.node.getText()!==""||this.node.texClass!==S.OPEN&&this.node.texClass!==S.CLOSE||this.jax.options.mathmlSpacing||(t.R=this.font.params.nulldelimiterspace),this.copySkewIC(t))}getAccentOffset(){const t=he.empty();return this.protoBBox(t),-t.w/2}getCenterOffset(t=null){return t||(t=he.empty(),super.computeBBox(t)),(t.h+t.d)/2+this.font.params.axis_height-t.h}getStretchedVariant(t,e=!1){if(this.stretch.dir===xe.None)return;let s=this.getWH(t);const i=this.getSize("minsize",0),n=this.getSize("maxsize",1/0),o=this.node.getProperty("mathaccent");s=Math.max(i,Math.min(n,s));const a=this.font.params.delimiterfactor/1e3,c=this.font.params.delimitershortfall,h=i||e?s:o?Math.min(s/a,s+c):Math.max(s*a,s-c),u=this.getText().codePointAt(0);let x=this.stretch;this.size&&(this.stretch=x=this.font.getDelimiter(u),this.size=null);const A=x.c||u;let I=0;if(x.sizes)for(const q of x.sizes){if(q>=h)return o&&I&&I--,void this.setDelimSize(A,I);I++}x.stretch?(this.size=-1,this.invalidateBBox(),this.getStretchBBox(t,this.checkExtendedHeight(s,x),x)):this.setDelimSize(A,I-1)}setDelimSize(t,e){const s=this.stretch;this.variant=this.font.getSizeVariant(t,e),this.size=e;const i=s.schar&&s.schar[Math.min(e,s.schar.length-1)]||t;this.stretch=Object.assign(Object.assign({},s),{c:i}
66),this.childNodes[0].invalidateBBox()}getSize(t,e){const s=this.node.attributes;return s.isSet(t)&&(e=this.length2em(s.get(t),1,1)),e}getWH(t){if(t.length===0)return 0;if(t.length===1)return t[0];const[e,s]=t,i=this.font.params.axis_height;return this.node.attributes.get("symmetric")?2*Math.max(e-i,s+i):e+s}getStretchBBox(t,e,s){Object.hasOwn(s,"min")&&s.min>e&&(e=s.min);let[i,n,o]=s.HDW;if(this.stretch.dir===xe.Vertical)[i,n]=this.getBaseline(t,e,s);else if(o=e,this.stretch.hd&&!this.jax.options.mathmlSpacing){const a=this.font.params.extender_factor;i=i*(1-a)+this.stretch.hd[0]*a,n=n*(1-a)+this.stretch.hd[1]*a}this.bbox.h=i,this.bbox.d=n,this.bbox.w=o}getBaseline(t,e,s){const i=t.length===2&&t[0]+t[1]===e,n=this.node.attributes.get("symmetric"),[o,a]=i?t:[e,0];let[c,h]=[o+a,0];if(n){const u=this.font.params.axis_height;i&&(c=2*Math.max(o-u,a+u)),h=c/2-u}else if(i)h=a;else{const[u,x]=s.HDW||[.75,.25];h=x*(c/(u+x))}return[c-h,h]}checkExtendedHeight(t,e){if(e.fullExt){const[s,i]=e.fullExt;t=i+Math.ceil(Math.max(0,t-i)/s)*s}return t}setBreakStyle(t=""){var e;if(this.breakStyle=!((e=this.node.parent)===null||e===void 0)&&e.isEmbellished&&!t?"":this.getBreakStyle(t),this.breakCount&&this.multChar){const s=this.parent.node.childIndex(this.node),i=this.parent.node.childNodes[s+1];i&&i.setTeXclass(this.multChar.node)}}getBreakStyle(t=""){const e=this.node.attributes;let s=t||(e.get("linebreak")==="newline"||this.node.getProperty("forcebreak")?e.get("linebreakstyle"):"");return s==="infixlinebreakstyle"&&(s=e.get(s)),s}getMultChar(){const t=this.node.attributes.get("linebreakmultchar");t&&this.getText()==="⁢"&&t!=="⁢"&&(this.multChar=this.createMo(t))}constructor(t,e,s=null){super(t,e,s),this.size=null,this.isAccent=this.node.isAccent,this.getMultChar(),this.setBreakStyle()}computeBBox(t,e=!1){if(this.protoBBox(t),this.node.attributes.get("symmetric")&&this.stretch.dir!==xe.Horizontal){const s=this.getCenterOffset(t);t.h+=s,t.d-=s}this.node.getProperty("mathaccent")&&(this.stretch.dir===xe.None||this.size>=0)&&(t.w=0)}computeLineBBox(t){return this.moLineBBox(t,this.breakStyle)}moLineBBox(t,e,s=null){const i=this.node.attributes.get("lineleading"),n=this.length2em(i,this.linebreakOptions.lineleading);if(t===0&&e==="before"){const a=Fs.from(he.zero(),n);return a.originalL=this.bbox.L,this.bbox.L=0,a}let o=Fs.from(s||this.getOuterBBox(),n);return t===1&&(e==="after"?(o.w=o.h=o.d=0,o.isFirst=!0,this.bbox.R=0):e==="duplicate"?o.L=0:this.multChar&&(o=Fs.from(this.multChar.getOuterBBox(),n)),o.getIndentData(this.node)),o}canStretch(t){if(this.stretch.dir!==xe.None)return this.stretch.dir===t;if(!this.node.attributes.get("stretchy"))return!1;const e=this.getText();if(Array.from(e).length!==1)return!1;const s=this.font.getDelimiter(e.codePointAt(0));return this.stretch=s&&s.dir===t?s:ea,this.stretch.dir!==xe.None}getVariant(){this.node.attributes.get("largeop")?this.variant=this.node.attributes.get("displaystyle")?"-largeop":"-smallop":this.node.attributes.hasExplicit("mathvariant")||this.node.getProperty("pseudoscript")!==!1?super.getVariant():this.variant="-tex-variant"}remapChars(t){const e=this.node.getProperty("primes");if(e)return No(e);if(t.length===1){const s=this.node.coreParent().parent,i=this.isAccent&&!s.isKind("mrow")?"accent":"mo",n=this.font.getRemappedChar(i,t[0]);n&&(t=this.unicodeChars(n,this.variant))}return t}}}Mi.OPTIONS=Object.assign(Object.assign({},de.OPTIONS),{dynamicPrefix:"./chtml/dynamic",fontURL:"./chtml/woff2"}),Mi.JAX="CHTML",Mi.defaultVariantLetters={},Mi.defaultStyles={},Mi.defaultFonts={},Mi.combiningChars=[[768,879],[8400,8447]];const v0=(function(){var r;const t=Tp(re);return r=class extends t{toCHTML(e){const s=this.adaptor,i=this.node.attributes,n=i.get("symmetric")&&this.stretch.dir!==xe.Horizontal,o=this.stretch.dir!==xe.None;o&&this.size===null&&this.getStretchedVariant([]),e.length>1&&e.forEach(c=>s.append(c,this.html("mjx-linestrut")));const a=this.standardChtmlNodes(e);if(a.length>1&&this.breakStyle!=="duplicate"){const c=this.breakStyle==="after"?1:0;s.remove(a[c]),a[c]=null}if(o&&this.size<0)this.stretchHTML(a);else{if(n||i.get("largeop")){const c=this.em(this.getCenterOffset());c!=="0"&&a.forEach(h=>h&&s.setStyle(h,"verticalAlign",c))}this.node.getProperty("mathaccent")&&a.forEach(c=>{s.setStyle(c,"width","0"),s.setStyle(c,"margin-left",this.em(this.getAccentOffset()))}),a[0]&&this.addChildren([a[0]]),a[1]&&(this.multChar||this).addChildren([a[1]])}}stretchHTML(e){const s=this.getText().codePointAt(0);this.font.delimUsage.add(s),this.childNodes[0].markUsed();const i=this.stretch,n=i.stretch,o=this.font.getStretchVariants(s),a=[],c=[];for(let Rt=0;Rt<n.length;Rt++)n[Rt]&&(c[Rt]=this.font.getChar(o[Rt],n[Rt]));const{h,d:u,w:x}=this.bbox,A={};if(i.dir===xe.Vertical)this.createAssembly(c,n,o,a,h+u,on,`
67`),a.push(this.html("mjx-mark")),A.height=this.em(h+u),A.verticalAlign=this.em(-u);else{const Rt=(i.ext||0)+Jn;
vendor: 41,531 bytes, line 67
67this.createAssembly(c,n,o,a,x,Rt),A.width=this.em(x)}const I={class:this.char(i.c||s),style:A},q=this.html("mjx-stretchy-"+i.dir,I,a),et=this.adaptor;e[0]&&et.append(e[0],q),e[1]&&et.append(e[1],e[0]?et.clone(q):q)}createAssembly(e,s,i,n,o,a,c=""){e=[...e,null,null,null].slice(0,4);let[h,u,x,A]=e.map(et=>et?c?et[0]+et[1]:et[2]:0);u=Math.max(0,u-a);const[I,q]=e[3]?[(o-A)/2-h,(o-A)/2-x]:[o-h-x,0];this.createPart("mjx-beg",e[0],s[0],i[0],n),this.createPart("mjx-ext",e[1],s[1],i[1],n,I,u,c,h,A/2||x),e[3]&&(this.createPart("mjx-mid",e[3],s[3],i[3],n),this.createPart("mjx-ext",e[1],s[1],i[1],n,q,u,c,A/2,x)),this.createPart("mjx-end",e[2],s[2],i[2],n)}createPart(e,s,i,n,o,a=0,c=0,h="",u=0,x=0){if(i){const A=s[3],I=A.f||(n==="normal"?"":this.font.getVariant(n).letter),q=A.ff||(I?`${this.font.cssFontPrefix}-${I}`:""),et=A.c||String.fromCodePoint(i);let Rt=[];if(e==="mjx-ext"&&(c||A.dx)){if(a<0&&h)return void o.push(this.html(e,Object.assign(Object.assign({},q?{class:q}:{}),{style:{"border-width":`${this.em(u+a/2)} 0 ${this.em(x+a/2)}`,"clip-path":"none"}})));c||(c=Math.max(Jn,2*A.dx-Jn));const Ce=Math.min(Math.ceil(a/c)+1,500);if(A.cmb){Rt.push(this.html("mjx-spacer"));for(let Ns=0;Ns<Ce;Ns++)Rt.push(this.html("mjx-c",{},[this.text(et)]))}else Rt=[this.html("mjx-spacer",{},[this.text(Array(Ce).fill(et).join(h))])]}else Rt=[this.text(et)];o.push(this.html(e,q?{class:q}:{},Rt))}}},r.kind=Ps.prototype.kind,r.styles={"mjx-stretchy-h":{display:"inline-block"},[["beg","ext","end","mid"].map(e=>`mjx-stretchy-h > mjx-${e}`).join(", ")]:{display:"inline-block",width:0,"text-align":"right"},"mjx-stretchy-h > mjx-ext":{"clip-path":"padding-box polygon(0 -1em, 100% -1em, 100% calc(100% + 1em), 0 calc(100% + 1em))",width:"100%",border:"0px solid transparent","box-sizing":"border-box","text-align":"left"},"mjx-stretchy-v":{display:"inline-block","text-align":"center"},[["beg","ext","end","mid"].map(e=>`mjx-stretchy-v > mjx-${e}`).join(", ")]:{display:"block",height:0,margin:"0 auto"},"mjx-stretchy-v > mjx-ext > mjx-spacer":{display:"block"},"mjx-stretchy-v > mjx-ext":{"clip-path":"padding-box polygon(-1em 0, calc(100% + 1em) 0, calc(100% + 1em) 100%, -1em 100%)",height:"100%",border:"0.1px solid transparent","box-sizing":"border-box","white-space":"pre"},"mjx-mark":{display:"inline-block",height:0}},r})();function Cp(r){return class extends r{remapChars(t){if(t.length){const e=this.font.getRemappedChar("mn",t[0]);if(e){const s=this.unicodeChars(e,this.variant);s.length===1?t[0]=s[0]:t=s.concat(t.slice(1))}}return t}}}const T0=(function(){var r;const t=Cp(re);return(r=class extends t{}).kind=yo.prototype.kind,r})();function Lp(r){return class extends r{createText(t){const e=this.wrap(this.mmlText(t));return e.parent=this,e}constructor(t,e,s=null){super(t,e,s);const i=this.node.attributes,n=i.getList("lquote","rquote");this.variant!=="monospace"&&(i.isSet("lquote")||n.lquote!=='"'||(n.lquote="“"),i.isSet("rquote")||n.rquote!=='"'||(n.rquote="”")),this.childNodes.unshift(this.createText(n.lquote)),this.childNodes.push(this.createText(n.rquote))}}}const C0=(function(){var r;const t=Lp(re);return(r=class extends t{}).kind=vo.prototype.kind,r})();function Ap(r){var t;return t=class extends r{constructor(){super(...arguments),this.breakPoints=[]}textWidth(e){let s=this.textNode;if(!s){const i=this.node.factory.create("text");i.parent=this.node,s=this.textNode=this.factory.wrap(i),s.parent=this}return s.node.setText(e),s.invalidateBBox(!1),s.getBBox().w}get breakCount(){return this.breakPoints.length}getVariant(){const e=this.jax.options,s=this.jax.math.outputData,i=(!!s.merrorFamily||!!e.merrorFont)&&this.node.Parent.isKind("merror");if(s.mtextFamily||e.mtextFont||i){const n=this.node.attributes.get("mathvariant"),o=this.constructor.INHERITFONTS[n]||this.jax.font.getCssFont(n),a=o[0]||(i?s.merrorFamily||e.merrorFont:s.mtextFamily||e.mtextFont);return void(this.variant=this.explicitVariant(a,o[2]?"bold":"",o[1]?"italic":""))}super.getVariant()}setBreakAt(e){this.breakPoints.push(e)}clearBreakPoints(){this.breakPoints=[]}computeLineBBox(e){const s=Fs.from(this.getOuterBBox(),this.linebreakOptions.lineleading);return this.breakCount&&(s.w=this.getBreakWidth(e),e===0?(s.R=0,this.addLeftBorders(s)):(s.L=0,s.indentData=[["left","0"],["left","0"],["left","0"]],e===this.breakCount&&this.addRightBorders(s))),s}getBreakWidth(e){const s=this.childNodes;let[i,n]=this.breakPoints[e-1]||[0,0];const[o,a]=this.breakPoints[e]||[s.length,0];let c=s[i].node.getText().split(/ /);if(i===o)return this.textWidth(c.slice(n,a).join(" "));let h=this.textWidth(c.slice(n).join(" "));for(;++i<o&&i<s.length;)h+=s[i].getBBox().w;return i<s.length&&(c=s[i].node.getText().split(/ /),h+=this.textWidth(c.slice(0,a).join(" "))),h}},t.INHERITFONTS={normal:["",!1,!1],bold:["",!1,!0],italic:["",!0,!1],"bold-italic":["",!0,!0]},t}const L0=(function(){var r;const t=Ap(re);return(r=class extends t{toCHTML(e){if(!this.breakCount)return void super.toCHTML(e);const s=this.standardChtmlNodes(e),i=this.textNode.node,n=this.childNodes;for(const o of s.keys()){const a=[s[o]];this.adaptor.append(s[o],this.html("mjx-linestrut"));let[c,h]=this.breakPoints[o-1]||[0,0];const[u,x]=this.breakPoints[o]||[n.length,0];let A=n[c].node.getText().split(/ /);if(c!==u){for(i.setText(A.slice(h).join(" ")),this.textNode.toCHTML(a);++c<u&&c<n.length;)n[c].toCHTML(a);c<n.length&&(A=n[c].node.getText().split(/ /),i.setText(A.slice(0,x).join(" ")),this.textNode.toCHTML(a))}else i.setText(A.slice(h,x).join(" ")),this.textNode.toCHTML(a)}}}).kind=Cr.prototype.kind,r})();function Sp(r){return class extends r{get canBreak(){return this.node.canBreak}get breakCount(){return this.breakStyle?1:0}setBreakStyle(t=""){this.breakStyle=t||(this.node.hasNewline||this.node.getProperty("forcebreak")?"before":"")}constructor(t,e,s=null){super(t,e,s),this.setBreakStyle()}computeBBox(t,e=!1){const s=this.node.attributes;t.w=this.length2em(s.get("width"),0),t.h=this.length2em(s.get("height"),0),t.d=this.length2em(s.get("depth"),0)}computeLineBBox(t){const e=this.node.attributes.get("data-lineleading"),s=this.length2em(e,this.linebreakOptions.lineleading),i=Fs.from(he.zero(),s);return t===1&&(i.getIndentData(this.node),i.w=this.getBBox().w,i.isFirst=i.w===0),i}}}const A0=(function(){var r;const t=Sp(re);return(r=class extends t{toCHTML(e){e.length>1&&e.forEach(a=>this.adaptor.append(a,this.html("mjx-linestrut")));const s=this.standardChtmlNodes(e);let{w:i,h:n,d:o}=this.getBBox();i<0&&(this.adaptor.setStyle(s[0],"marginRight",this.em(i)),i=0),i&&!this.breakCount&&this.adaptor.setStyle(s[0],"width",this.em(i)),n=Math.max(0,n+o),n&&this.adaptor.setStyle(s[0],"height",this.em(Math.max(0,n))),o&&this.adaptor.setStyle(s[0],"verticalAlign",this.em(-o))}}).kind=Lr.prototype.kind,r})();function Rp(r){return class extends r{get containerWidth(){const t=this.node.attributes,e=t.get("width").toString();return e.match(/^[-+]|%$/)||t.get("data-overflow")!=="linebreak"?this.parent.containerWidth:this.length2em(e)}getDimens(){const t=this.node.attributes.getList("width","height","depth","lspace","voffset"),e=this.childNodes[0].getOuterBBox();let{w:s,h:i,d:n}=e;const o=s,a=i,c=n;let h=0,u=0,x=0;t.width!==""&&(s=this.dimen(t.width,e,"w",0)),t.height!==""&&(i=this.dimen(t.height,e,"h",0)),t.depth!==""&&(n=this.dimen(t.depth,e,"d",0)),t.voffset!==""&&(u=this.dimen(t.voffset,e)),t.lspace!==""&&(h=this.dimen(t.lspace,e));const A=this.node.attributes.get("data-align");return A&&(x=this.getAlignX(s,e,A)),[a,c,o,i-a,n-c,s-o,h,u,x]}dimen(t,e,s="",i=null){const n=(t=String(t)).match(/width|height|depth/),o=n?e[n[0].charAt(0)]:s?e[s]:0;let a=this.length2em(t,o)||0;return t.match(/^[-+]/)&&s&&(a+=o),i!=null&&(a=Math.max(i,a)),a}setBBoxDimens(t){const[e,s,i,n,o,a]=this.getDimens();t.w=i+a,t.h=e+n,t.d=s+o}computeBBox(t,e=!1){if(this.setBBoxDimens(t),this.childNodes[0].getOuterBBox().w>t.w){const s=this.node.attributes.get("data-overflow");(s==="linebreak"||s==="auto"&&this.jax.math.root.attributes.get("overflow")==="linebreak")&&(this.childNodes[0].breakToWidth(t.w),this.setBBoxDimens(t))}this.setChildPWidths(e,t.w)}getWrapWidth(t){return this.getBBox().w}getChildAlign(t){return this.node.attributes.get("data-align")||"left"}}}const S0=(function(){var r;const t=Rp(re);return(r=class extends t{toCHTML(e){if(this.toEmbellishedCHTML(e))return;let s=this.standardChtmlNodes(e);const i=[],n={},[,,o,a,c,h,u,x,A]=this.getDimens();if((h||this.childNodes[0].getBBox().pwidth)&&(n.width=this.em(o+h)),(a||c)&&(n.margin=this.em(a)+" 0 "+this.em(c)),u+A||x){n.position="relative";const I=this.html("mjx-rbox",{style:{left:this.em(u+A),top:this.em(-x),"max-width":n.width}});u+A&&this.childNodes[0].getBBox().pwidth&&(this.adaptor.setAttribute(I,"width","full"),this.adaptor.setStyle(I,"left",this.em(u))),i.push(I)}s=[this.adaptor.append(s[0],this.html("mjx-block",{style:n},i))],this.childNodes[0].childNodes.length?this.childNodes[0].toCHTML([i[0]||s[0]]):(a||c)&&this.adaptor.append(i[0]||s[0],this.html("mjx-box"))}}).kind=So.prototype.kind,r.styles={"mjx-mpadded":{display:"inline-block"},"mjx-rbox":{display:"inline-block",position:"relative"}},r})(),bi=4,Kn=1,Ki=2,ve=.067,Rr=.2,Mr=ve+"em solid",cn={top:0,right:1,bottom:2,left:3},R0=Object.keys(cn),$n=r=>new Array(4).fill(r.thickness+r.padding),Mp=r=>new Array(4).fill(r.padding),M0=r=>new Array(4).fill(r.thickness),$i=r=>Math.max(r.padding,r.thickness*(r.arrowhead.x+r.arrowhead.dx+1)),ia=(r,t)=>{if(r.childNodes[0]){const{h:e,d:s}=r.childNodes[0].getBBox();t[0]=t[2]=Math.max(0,r.thickness*r.arrowhead.y-(e+s)/2)}return t},ra=(r,t)=>{if(r.childNodes[0]){const{w:e}=r.childNodes[0].getBBox();t[1]=t[3]=Math.max(0,r.thickness*r.arrowhead.y-e/2)}return t},I0={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"]},w0={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"]},k0={up:r=>ra(r,[$i(r),0,r.padding,0]),down:r=>ra(r,[r.padding,0,$i(r),0]),right:r=>ia(r,[0,$i(r),0,r.padding]),left:r=>ia(r,[0,r.padding,0,$i(r)]),updown:r=>ra(r,[$i(r),0,$i(r),0]),leftright:r=>ia(r,[0,$i(r),0,$i(r)])},O0=function(r){return t=>{const e=cn[t];return[t,{renderer:r,bbox:s=>{const i=[0,0,0,0];return i[e]=s.thickness+s.padding,i},border:s=>{const i=[0,0,0,0];return i[e]=s.thickness,i}}]}},D0=function(r){return(t,e,s)=>{const i=cn[e],n=cn[s];return[t,{renderer:r,bbox:o=>{const a=o.thickness+o.padding,c=[0,0,0,0];return c[i]=c[n]=a,c},border:o=>{const a=[0,0,0,0];return a[i]=a[n]=o.thickness,a},remove:e+" "+s}]}},P0=function(r){return t=>{const e="mjx-"+t.charAt(0)+"strike";return[t+"diagonalstrike",{renderer:r(e),bbox:$n}]}},B0=function(r){return t=>{const[e,s,i,n]=w0[t];return[t+"arrow",{renderer:(o,a)=>{const[c,h]=o.arrowAW(),u=o.arrow(h,e*(c-s),i);r(o,u)},bbox:o=>{const{a,x:c,y:h}=o.arrowData(),[u,x,A]=[o.arrowhead.x,o.arrowhead.y,o.arrowhead.dx],[I,q]=o.getArgMod(u+A,x),et=h+(I>a?o.thickness*q*Math.sin(I-a):0),Rt=c+(I>Math.PI/2-a?o.thickness*q*Math.sin(I+a-Math.PI/2):0);return[et,Rt,et,Rt]},remove:n}]}},F0=function(r){return t=>{const[e,s,i,n]=I0[t];return[t+"arrow",{renderer:(o,a)=>{const{w:c,h,d:u}=o.getBBox(),[x,A]=i?[h+u,"X"]:[c,"Y"],I=o.getOffset(A),q=o.arrow(x,e,s,A,I);r(o,q)},bbox:k0[t],remove:n}]}};function Ip(r){return class extends r{getParameters(){const t=this.node.attributes,e=t.get("data-padding");e!==void 0&&(this.padding=this.length2em(e,Rr));const s=t.get("data-thickness");s!==void 0&&(this.thickness=this.length2em(s,ve));const i=t.get("data-arrowhead");if(i!==void 0){const[n,o,a]=mi(i);this.arrowhead={x:n?parseFloat(n):bi,y:o?parseFloat(o):Ki,dx:a?parseFloat(a):Kn}}}getNotations(){const t=this.constructor.notations;for(const e of mi(this.node.attributes.get("notation"))){const s=t.get(e);s&&(this.notations[e]=s,s.renderChild&&(this.renderChild=s.renderer))}}removeRedundantNotations(){for(const t of Object.keys(this.notations))if(this.notations[t]){const e=this.notations[t].remove||"";for(const s of e.split(/ /))delete this.notations[s]}}initializeNotations(){for(const t of Object.keys(this.notations)){const e=this.notations[t].init;e&&e(this)}}getBBoxExtenders(){const t=[0,0,0,0];for(const e of Object.keys(this.notations))this.maximizeEntries(t,this.notations[e].bbox(this));return t}getPadding(){const t=[0,0,0,0];for(const e of Object.keys(this.notations)){const s=this.notations[e].border;s&&this.maximizeEntries(t,s(this))}return[0,1,2,3].map(e=>this.TRBL[e]-t[e])}maximizeEntries(t,e){for(let s=0;s<t.length;s++)t[s]<e[s]&&(t[s]=e[s])}getOffset(t){const[e,s,i,n]=this.TRBL,o=(t==="X"?s-n:i-e)/2;return Math.abs(o)>.001?o:0}getArgMod(t,e){return[Math.atan2(e,t),Math.sqrt(t*t+e*e)]}arrow(t,e,s,i="",n=0){return null}arrowData(){const[t,e]=[this.padding,this.thickness],s=e*(this.arrowhead.x+Math.max(1,this.arrowhead.dx)),{h:i,d:n,w:o}=this.childNodes[0].getBBox(),a=i+n,c=Math.sqrt(a*a+o*o),h=Math.max(t,s*o/c),u=Math.max(t,s*a/c),[x,A]=this.getArgMod(o+2*h,a+2*u);return{a:x,W:A,x:h,y:u}}arrowAW(){const{h:t,d:e,w:s}=this.childNodes[0].getBBox(),[i,n,o,a]=this.TRBL;return this.getArgMod(a+s+n,i+t+e+o)}createMsqrt(t){const e=this.node.factory.create("msqrt");e.inheritAttributesFrom(this.node),e.childNodes[0]=t.node;const s=this.wrap(e);return s.parent=this,s}sqrtTRBL(){const t=this.msqrt.getBBox(),e=this.msqrt.childNodes[0].getBBox();return[t.h-e.h,0,t.d-e.d,t.w-e.w]}constructor(t,e,s=null){super(t,e,s),this.notations={},this.renderChild=null,this.msqrt=null,this.padding=Rr,this.thickness=ve,this.arrowhead={x:bi,y:Ki,dx:Kn},this.TRBL=[0,0,0,0],this.getParameters(),this.getNotations(),this.removeRedundantNotations(),this.initializeNotations(),this.TRBL=this.getBBoxExtenders()}computeBBox(t,e=!1){const[s,i,n,o]=this.TRBL,a=this.childNodes[0].getBBox();t.combine(a,o,0),t.h+=s,t.d+=n,t.w+=i,this.setChildPWidths(e)}}}const na=function(r,t=""){return(e,s)=>{const i=e.adjustBorder(e.html("mjx-"+r));if(t){const n=e.getOffset(t);if(e.thickness!==ve||n){const o=`translate${t}(${e.Em(e.thickness/2-n)})`;e.adaptor.setStyle(i,"transform",o)}}e.adaptor.append(e.dom[0],i)}},oa=function(r){return O0((t,e)=>{t.adaptor.setStyle(e,"border-"+r,t.Em(t.thickness)+" solid")})(r)},j0=function(r,t,e){return D0((s,i)=>{const n=s.Em(s.thickness)+" solid";s.adaptor.setStyle(i,"border-"+t,n),s.adaptor.setStyle(i,"border-"+e,n)})(r,t,e)},U0=function(r,t){return P0(e=>(s,i)=>{const{w:n,h:o,d:a}=s.getBBox(),[c,h]=s.getArgMod(n,o+a),u=t*s.thickness/2,x=s.adjustBorder(s.html(e,{style:{width:s.Em(h),transform:"rotate("+s.fixed(-t*c)+"rad) translateY("+u+"em)"}}));s.adaptor.append(s.dom[0],x)})(r)},Ir=function(r){return B0((t,e)=>{t.adaptor.append(t.dom[0],e)})(r)},hn=function(r){return F0((t,e)=>{t.adaptor.append(t.dom[0],e)})(r)};function wp(r,t){return Math.atan2(r,t).toFixed(3).replace(/\.?0+$/,"")}const dl=wp(Kn,Ki),H0=(function(){var r;const t=Ip(re);return(r=class extends t{adjustArrow(e,s){const i=this.thickness,n=this.arrowhead;if(n.x===bi&&n.y===Ki&&n.dx===Kn&&i===ve)return;const[o,a]=[i*n.x,i*n.y].map(q=>this.em(q)),c=wp(n.dx,n.y),[h,u,x,A,I]=this.adaptor.childNodes(e);this.adjustHead(u,[a,"0","1px",o],c),this.adjustHead(x,["1px","0",a,o],"-"+c),this.adjustHead(A,[a,o,"1px","0"],"-"+c),this.adjustHead(I,["1px",o,a,"0"],c),this.adjustLine(h,i,n.x,s)}adjustHead(e,s,i){e&&(this.adaptor.setStyle(e,"border-width",s.join(" ")),this.adaptor.setStyle(e,"transform","skewX("+i+"rad)"))}adjustLine(e,s,i,n){this.adaptor.setStyle(e,"borderTop",this.em(s)+" solid"),this.adaptor.setStyle(e,"top",this.em(-s/2)),this.adaptor.setStyle(e,"right",this.em(s*(i-1))),n&&this.adaptor.setStyle(e,"left",this.em(s*(i-1)))}moveArrow(e,s,i){if(!i)return;const n=this.adaptor.getStyle(e,"transform");this.adaptor.setStyle(e,"transform",`translate${s}(${this.em(-i)})${n?" "+n:""}`)}adjustBorder(e){return this.thickness!==ve&&this.adaptor.setStyle(e,"borderWidth",this.em(this.thickness)),e}adjustThickness(e){return this.thickness!==ve&&this.adaptor.setStyle(e,"strokeWidth",this.fixed(this.thickness)),e}fixed(e,s=3){return Math.abs(e)<6e-4?"0":e.toFixed(s).replace(/\.?0+$/,"")}Em(e){return super.em(e)}toCHTML(e){const s=this.adaptor,i=this.standardChtmlNodes(e),n=s.append(i[0],this.html("mjx-box"));this.renderChild?this.renderChild(this,n):this.childNodes[0].toCHTML([n]);for(const a of Object.keys(this.notations)){const c=this.notations[a];c.renderChild||c.renderer(this,n)}const o=this.getPadding();for(const a of R0){const c=cn[a];o[c]>0&&s.setStyle(n,"padding-"+a,this.em(o[c]))}}arrow(e,s,i,n="",o=0){const a=this.getBBox().w,c={width:this.em(e)};a!==e&&(c.left=this.em((a-e)/2)),s&&(c.transform="rotate("+this.fixed(s)+"rad)");const h=this.html("mjx-arrow",{style:c},[this.html("mjx-aline"),this.html("mjx-rthead"),this.html("mjx-rbhead")]);return i&&(this.adaptor.append(h,this.html("mjx-lthead")),this.adaptor.append(h,this.html("mjx-lbhead")),this.adaptor.setAttribute(h,"double","true")),this.adjustArrow(h,i),this.moveArrow(h,n,o),h}}).kind=Mo.prototype.kind,r.styles={"mjx-menclose":{position:"relative"},"mjx-menclose > mjx-dstrike":{display:"inline-block",left:0,top:0,position:"absolute","border-top":Mr,"transform-origin":"top left"},"mjx-menclose > mjx-ustrike":{display:"inline-block",left:0,bottom:0,position:"absolute","border-top":Mr,"transform-origin":"bottom left"},"mjx-menclose > mjx-hstrike":{"border-top":Mr,position:"absolute",left:0,right:0,bottom:"50%",transform:"translateY("+Gt(ve/2)+")"},"mjx-menclose > mjx-vstrike":{"border-left":Mr,position:"absolute",top:0,bottom:0,right:"50%",transform:"translateX("+Gt(ve/2)+")"},"mjx-menclose > mjx-rbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:Mr,"border-radius":Gt(ve+Rr)},"mjx-menclose > mjx-cbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:Mr,"border-radius":"50%"},"mjx-menclose > mjx-arrow":{position:"absolute",left:0,bottom:"50%",height:0,width:0},"mjx-menclose > mjx-arrow > mjx-aline":{display:"block",position:"absolute","box-sizing":"border-box","transform-origin":"bottom",left:0,top:Gt(-ve/2),right:Gt(ve*(bi-1)),height:0,"border-top":Gt(ve)+" solid","border-left":0,"border-right":0},"mjx-menclose > mjx-arrow[double] > mjx-aline":{display:"block",position:"absolute","box-sizing":"border-box","transform-origin":"bottom",left:Gt(ve*(bi-1)),height:0,"border-left":Gt(ve*bi)+" solid","border-right":0},"mjx-menclose > mjx-arrow > mjx-rthead":{display:"block",position:"absolute","box-sizing":"border-box","transform-origin":"bottom",transform:"skewX("+dl+"rad)",right:0,bottom:"-1px","border-left":Gt(ve*bi)+" solid","border-right":0,"border-bottom":"1px solid transparent","border-top":Gt(ve*Ki)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-rbhead":{display:"block",position:"absolute","box-sizing":"border-box",transform:"skewX(-"+dl+"rad)","transform-origin":"top",right:0,top:"-1px","border-left":Gt(ve*bi)+" solid","border-right":0,"border-top":"1px solid transparent","border-bottom":Gt(ve*Ki)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lthead":{display:"block",position:"absolute","box-sizing":"border-box",transform:"skewX(-"+dl+"rad)","transform-origin":"bottom",left:0,bottom:"-1px","border-left":0,"border-right":Gt(ve*bi)+" solid","border-bottom":"1px solid transparent","border-top":Gt(ve*Ki)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lbhead":{display:"block",position:"absolute","box-sizing":"border-box",transform:"skewX("+dl+"rad)","transform-origin":"top",left:0,top:"-1px","border-left":0,"border-right":Gt(ve*bi)+" solid","border-top":"1px solid transparent","border-bottom":Gt(ve*Ki)+" solid transparent"},"mjx-menclose > mjx-dbox-top":{position:"absolute",top:0,bottom:"50%",left:0,width:Gt(1.5*Rr),"border-width":Gt(ve),"border-style":"solid solid none none","border-radius":"0 100% 0 0","box-sizing":"border-box"},"mjx-menclose > mjx-dbox-bot":{position:"absolute",top:"50%",bottom:0,left:0,width:Gt(1.5*Rr),"border-width":Gt(ve),"border-style":"none solid solid none","border-radius":"0 0 100% 0","box-sizing":"border-box"}},r.notations=new Map([oa("top"),oa("right"),oa("bottom"),oa("left"),j0("actuarial","top","right"),j0("madruwb","bottom","right"),U0("up",1),U0("down",-1),["horizontalstrike",{renderer:na("hstrike","Y"),bbox:e=>[0,e.padding,0,e.padding]}],["verticalstrike",{renderer:na("vstrike","X"),bbox:e=>[e.padding,0,e.padding,0]}],["box",{renderer:(e,s)=>{e.adaptor.setStyle(s,"border",e.Em(e.thickness)+" solid")},bbox:$n,border:M0,remove:"left right top bottom"}],["roundedbox",{renderer:na("rbox"),bbox:$n}],["circle",{renderer:na("cbox"),bbox:$n}],["phasorangle",{renderer:(e,s)=>{const{h:i,d:n}=e.getBBox(),[o,a]=e.getArgMod(1.75*e.padding,i+n),c=e.thickness*Math.sin(o)*.9;e.adaptor.setStyle(s,"border-bottom",e.Em(e.thickness)+" solid");const h=e.adjustBorder(e.html("mjx-ustrike",{style:{width:e.Em(a),transform:`translateX(${e.Em(c)}) rotate(${e.fixed(-o)}rad)`}}));e.adaptor.append(e.dom[0],h)},bbox:e=>{const s=e.padding/2,i=e.thickness;return[2*s,s,s+i,3*s+i]},border:e=>[0,0,e.thickness,0],remove:"bottom"}],hn("up"),hn("down"),hn("left"),hn("right"),hn("updown"),hn("leftright"),Ir("updiagonal"),Ir("northeast"),Ir("southeast"),Ir("northwest"),Ir("southwest"),Ir("northeastsouthwest"),Ir("northwestsoutheast"),["longdiv",{renderer:(e,s)=>{const i=e.adaptor;i.setStyle(s,"border-top",e.Em(e.thickness)+" solid");const n=i.append(e.dom[0],e.html("mjx-dbox-top")),o=i.append(e.dom[0],e.html("mjx-dbox-bot")),a=e.thickness,c=e.padding;a!==ve&&(i.setStyle(n,"border-width",e.Em(a)),i.setStyle(o,"border-width",e.Em(a))),c!==Rr&&(i.setStyle(n,"width",e.Em(1.5*c)),i.setStyle(o,"width",e.Em(1.5*c)))},bbox:e=>{const s=e.padding,i=e.thickness;return[s+i,s,s,2*s+i/2]}}],["radical",{renderer:(e,s)=>{e.msqrt.toCHTML([s]);const i=e.sqrtTRBL();e.adaptor.setStyle(e.msqrt.dom[0],"margin",i.map(n=>e.Em(-n)).join(" "))},init:e=>{e.msqrt=e.createMsqrt(e.childNodes[0])},bbox:e=>e.sqrtTRBL(),renderChild:!0}]]),r})();function kp(r){return class extends r{stretchChildren(){const t=[];for(const i of this.childNodes)i.canStretch(xe.Vertical)&&t.push(i);const e=t.length,s=this.childNodes.length;if(e&&s>1){let i=0,n=0;const o=e>1&&e===s;for(const a of this.childNodes){const c=a.stretch.dir===xe.None;if(o||c){const h=a.getBBox().rscale;let[u,x]=a.getUnbrokenHD();u*=h,x*=h,u>i&&(i=u),x>n&&(n=x)}}for(const a of t){const c=a.coreRScale();a.coreMO().getStretchedVariant([i/c,n/c])}}}get fixesPWidth(){return!1}get breakCount(){return this._breakCount<0&&(this._breakCount=this.childNodes.length?this.childNodes.reduce((t,e)=>t+e.breakCount,0):0),this._breakCount}breakTop(t,e){const s=this;return this.isStack?this.parent.breakTop(s,s):s}constructor(t,e,s=null){super(t,e,s),this.dh=0;const i=this;this.isStack=!this.parent||this.parent.node.isInferred||this.parent.breakTop(i,i)!==i,this.stretchChildren();for(const n of this.childNodes)if(n.bbox.pwidth){this.bbox.pwidth=he.fullWidth;break}}computeBBox(t,e=!1){const s=this.breakCount;this.lineBBox=s?[new Fs({h:.75,d:.25,w:0},[0,0])]:[],t.empty();for(const i of this.childNodes.keys()){const n=this.childNodes[i];t.append(n.getOuterBBox()),s&&this.computeChildLineBBox(n,i)}t.clean(),s&&!this.coreMO().node.isEmbellished&&this.computeLinebreakBBox(t),this.fixesPWidth&&this.setChildPWidths(e)&&this.computeBBox(t,!0),this.vboxAdjust(t)}computeLinebreakBBox(t){var e;t.empty();const s=this.isStack,i=this.lineBBox,n=i.length-1;if(s)for(const a of i.keys()){const c=i[a];this.addMiddleBorders(c),a===0&&this.addLeftBorders(c),a===n&&this.addRightBorders(c)}let o=0;for(const a of i.keys()){const c=i[a];t.combine(c,0,o),o-=Math.max(.25,c.d)+c.lineLeading+Math.max(.75,((e=i[a+1])===null||e===void 0?void 0:e.h)||0)}s?(i[0].L=this.bbox.L,i[n].R=this.bbox.R):(t.w=Math.max(...this.lineBBox.map(a=>a.w)),this.shiftLines(t),this.jax.math.display||this.linebreakOptions.inline||(t.pwidth=he.fullWidth,this.node.isInferred&&(this.parent.bbox.pwidth=he.fullWidth))),t.clean()}vboxAdjust(t){if(!this.parent)return;const e=this.breakCount,s=this.parent.node.attributes.get("data-vertical-align");if(e&&s==="bottom")this.dh=e?t.d-this.lineBBox[e-1].d:0;else{if(!(s==="center"||e&&s==="middle"))return void(this.dh=0);{const{h:i,d:n}=t,o=this.font.params.axis_height;this.dh=(i+n)/2+o-i}}t.h+=this.dh,t.d-=this.dh}computeChildLineBBox(t,e){const s=this.lineBBox[this.lineBBox.length-1];s.end=[e,0],s.append(t.getLineBBox(0));const i=t.breakCount+1;if(i!==1)for(let n=1;n<i;n++){const o=new Fs({h:.75,d:.25,w:0});o.start=o.end=[e,n],o.isFirst=!0,o.append(t.getLineBBox(n)),this.lineBBox.push(o)}}getLineBBox(t){return this.getBBox(),this.isStack?super.getLineBBox(t):Fs.from(this.getOuterBBox(),this.linebreakOptions.lineleading)}shiftLines(t){var e,s;const i=t.w,n=this.lineBBox,o=n.length-1,[a,c]=((e=n[1].indentData)===null||e===void 0?void 0:e[0])||["left","0"];for(const h of n.keys()){const u=n[h],[x,A]=h===0?[a,c]:((s=u.indentData)===null||s===void 0?void 0:s[h===o?2:1])||["left","0"],[I,q]=this.processIndent(x,A,a,c,i);u.L=0,u.L=this.getAlignX(i,u,I)+q;const et=u.L+u.w;et>t.w&&(t.w=et)}}setChildPWidths(t,e=null,s=!0){return this.breakCount?!t&&(e!==null&&this.bbox.w!==e&&(this.bbox.w=e,this.shiftLines(this.bbox)),!0):super.setChildPWidths(t,e,s)}breakToWidth(t){this.linebreaks.breakToWidth(this,t)}}}function Op(r){return class extends r{getScale(){this.bbox.scale=this.parent.bbox.scale,this.bbox.rscale=1}}}const ul=(function(){var r;const t=kp(re);return r=class extends t{constructor(){super(...arguments),this.linebreakCount=0}toCHTML(e){const s=this.linebreakCount=this.isStack?0:this.breakCount;s||!this.node.isInferred?e=this.standardChtmlNodes(e):this.dom=e,this.addChildren(e),s?this.placeLines(e,s):(this.handleVerticalAlign(e[0]),this.handleNegativeWidth(e[0]))}placeLines(e,s){var i,n;this.getBBox();const o=this.lineBBox,a=this.adaptor,[c,h]=((i=o[1].indentData)===null||i===void 0?void 0:i[0])||["left","0"];for(const u of e.keys()){const x=o[u],[A,I]=u===0?[c,h]:((n=x.indentData)===null||n===void 0?void 0:n[u===s?2:1])||["left","0"],[q,et]=this.processIndent(A,I,c,h);a.setAttribute(e[u],"align",q),et&&a.setStyle(e[u],"margin-left",this.em(et)),u<s&&this.jax.math.display&&a.setStyle(e[u],"margin-bottom",this.em(x.lineLeading))}}handleVerticalAlign(e){this.dh&&this.adaptor.setStyle(this.adaptor.parent(e),"vertical-align",this.em(this.dh))}handleNegativeWidth(e){const{w:s}=this.getBBox();s<0&&(this.adaptor.setStyle(e,"width",this.em(Math.max(0,s))),this.adaptor.setStyle(e,"marginRight",this.em(s)))}createChtmlNodes(e){const s=this.linebreakCount;if(!s)return super.createChtmlNodes(e);const i=this.adaptor,n=this.node.isInferred?"mjx-linestack":"mjx-"+this.node.kind;if(this.dom=[i.append(e[0],this.html(n))],n!=="mjx-mrow"||this.isStack||i.setAttribute(this.dom[0],"break-top","true"),this.node.getProperty("process-breaks")&&i.setAttribute(this.dom[0],"breakable","true"),this.node.isInferred||!this.isStack){const a=this.parent.node.attributes.get("data-vertical-align");a!=="middle"&&a!=="center"&&a!=="bottom"||i.setAttribute(this.dom[0],"break-align",a)}this.dom=[i.append(this.handleHref(e)[0],this.dom[0])];const o=Array(s);for(let a=0;a<=s;a++)o[a]=i.append(this.dom[0],this.html("mjx-linebox",{lineno:a}));return o}addChildren(e){let s=0;for(const i of this.childNodes){const n=i.breakCount;i.toCHTML(e.slice(s,s+n+1)),s+=n}}},r.kind=$r.prototype.kind,r.styles={"mjx-linestack, mjx-mrow[break-top]":{display:"inline-table",width:"100%"},'mjx-linestack[break-align="bottom"], mjx-mrow[break-top][break-align="bottom"]':{display:"inline-block"},'mjx-linestack[break-align="middle"], mjx-mrow[break-top][break-align="middle"]':{"vertical-align":"middle"},'mjx-linestack[break-align="center"], mjx-mrow[break-top][break-align="center"]':{"vertical-align":"middle"},"mjx-linestack[breakable]":{display:"inline"},"mjx-linestack[breakable] > mjx-linebox":{display:"inline"},"mjx-linestack[breakable] > mjx-linebox::before":{"white-space":"pre",content:'"\\A"'},"mjx-linestack[breakable] > mjx-linebox::after":{"white-space":"normal",content:'" "',"letter-spacing":"-.999em","font-family":"MJX-BRK"},"mjx-linestack[breakable] > mjx-linebox:first-of-type::before":{display:"none"},"mjx-linestack[breakable] > mjx-linebox:last-of-type::after":{display:"none"},"mjx-linebox":{display:"block"},'mjx-linebox[align="left"]':{"text-align":"left"},'mjx-linebox[align="center"]':{"text-align":"center"},'mjx-linebox[align="right"]':{"text-align":"right"},"mjx-linestrut":{display:"inline-block",height:"1em","vertical-align":"-.25em"}},r})(),_0=(function(){var r;const t=Op(ul);return(r=class extends t{}).kind=To.prototype.kind,r})();function Dp(r){return class extends r{createMrow(){const t=this.node.factory.create("inferredMrow");t.inheritAttributesFrom(this.node),this.mrow=this.wrap(t),this.mrow.parent=this}addMrowChildren(){const t=this.node,e=this.mrow;this.addMo(t.open),this.childNodes.length&&e.childNodes.push(this.childNodes[0]);let s=0;for(const i of this.childNodes.slice(1))this.addMo(t.separators[s++]),e.childNodes.push(i);this.addMo(t.close),e.stretchChildren()}addMo(t){if(!t)return;const e=this.wrap(t);this.mrow.childNodes.push(e),e.parent=this.mrow}constructor(t,e,s=null){super(t,e,s),this.mrow=null,this.createMrow(),this.addMrowChildren()}computeBBox(t,e=!1){t.updateFrom(this.mrow.getOuterBBox()),this.setChildPWidths(e)}get breakCount(){return this.mrow.breakCount}computeLineBBox(t){return this.mrow.getLineBBox(t)}}}const W0=(function(){var r;const t=Dp(re);return(r=class extends t{toCHTML(e){const s=this.standardChtmlNodes(e);this.mrow.toCHTML(s)}}).kind=Ro.prototype.kind,r})();function Pp(r){return class extends r{getFractionBBox(t,e,s){const i=this.childNodes[0].getOuterBBox(),n=this.childNodes[1].getOuterBBox(),o=this.font.params.axis_height,{T:a,u:c,v:h}=this.getTUV(e,s);t.combine(i,0,o+a+Math.max(i.d*i.rscale,c)),t.combine(n,0,o-a-Math.max(n.h*n.rscale,h)),t.w+=2*this.pad+.2}getTUV(t,e){const s=this.font.params,i=s.axis_height,n=(t?3.5:1.5)*e;return{T:(t?3.5:1.5)*e,u:(t?s.num1:s.num2)-i-n,v:(t?s.denom1:s.denom2)+i-n}}getAtopBBox(t,e){const{u:s,v:i,nbox:n,dbox:o}=this.getUVQ(e);t.combine(n,0,s),t.combine(o,0,-i),t.w+=2*this.pad}getUVQ(t){const e=this.childNodes[0].getOuterBBox(),s=this.childNodes[1].getOuterBBox(),i=this.font.params;let[n,o]=t?[i.num1,i.denom1]:[i.num3,i.denom2];const a=(t?7:3)*i.rule_thickness;let c=n-e.d*e.scale-(s.h*s.scale-o);return c<a&&(n+=(a-c)/2,o+=(a-c)/2,c=a),{u:n,v:o,q:c,nbox:e,dbox:s}}getBevelledBBox(t,e){const{u:s,v:i,delta:n,nbox:o,dbox:a}=this.getBevelData(e),c=this.bevel.getOuterBBox();t.combine(o,0,s),t.combine(c,t.w-n/2,0),t.combine(a,t.w-n/2,i)}getBevelData(t){const e=this.childNodes[0].getOuterBBox(),s=this.childNodes[1].getOuterBBox(),i=t?.4:.15,n=Math.max(e.scale*(e.h+e.d),s.scale*(s.h+s.d))+2*i,o=this.font.params.axis_height;return{H:n,delta:i,u:e.scale*(e.d-e.h)/2+o+i,v:s.scale*(s.d-s.h)/2+o-i,nbox:e,dbox:s}}isDisplay(){const{displaystyle:t,scriptlevel:e}=this.node.attributes.getList("displaystyle","scriptlevel");return t&&e===0}constructor(t,e,s=null){if(super(t,e,s),this.bevel=null,this.pad=this.node.getProperty("withDelims")?0:this.font.params.nulldelimiterspace,this.node.attributes.get("bevelled")){const{H:i}=this.getBevelData(this.isDisplay()),n=this.bevel=this.createMo("/");n.node.attributes.set("symmetric",!0),n.canStretch(xe.Vertical),n.getStretchedVariant([i],!0)}}computeBBox(t,e=!1){t.empty();const{linethickness:s,bevelled:i}=this.node.attributes.getList("linethickness","bevelled"),n=this.isDisplay();let o=null;if(i)this.getBevelledBBox(t,n);else{const a=this.length2em(String(s),.06);o=-2*this.pad,a===0?this.getAtopBBox(t,n):(this.getFractionBBox(t,n,a),o-=.2),o+=t.w}t.clean(),this.setChildPWidths(e,o)}canStretch(t){return!1}getChildAlign(t){const e=this.node.attributes;return e.get("bevelled")?"left":e.get(["numalign","denomalign"][t])}getWrapWidth(t){const 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}}}const q0=(function(){var r;const t=Pp(re);return(r=class extends t{toCHTML(e){if(this.toEmbellishedCHTML(e))return;this.standardChtmlNodes(e);const{linethickness:s,bevelled:i}=this.node.attributes.getList("linethickness","bevelled"),n=this.isDisplay();if(i)this.makeBevelled(n);else{const o=this.length2em(String(s),.06);o===0?this.makeAtop(n):this.makeFraction(n,o)}}makeFraction(e,s){const{numalign:i,denomalign:n}=this.node.attributes.getList("numalign","denomalign"),o=e?{type:"d"}:{},a=this.node.getProperty("withDelims")?Object.assign(Object.assign({},o),{delims:"true"}):Object.assign({},o),c=i!=="center"?{align:i}:{},h=n!=="center"?{align:n}:{},u=Object.assign({},o),x=Object.assign({},o),A=this.font.params;if(s!==.06){const et=A.axis_height,Rt=this.font.params.rule_factor,Ce=this.em(s),{T:Ns,u:ls,v:Er}=this.getTUV(e,s),Ca=(e?this.em(3*s):Ce)+" -.1em";o.style={height:Ce,"border-top":this.em(s*Rt)+" solid",margin:Ca};const La=this.em(Math.max(0,ls));x.style={height:La,"vertical-align":"-"+La},u.style={height:this.em(Math.max(0,Er))},a.style={"vertical-align":this.em(et-Ns)}}let I,q;this.adaptor.append(this.dom[0],this.html("mjx-frac",a,[I=this.html("mjx-num",c,[this.html("mjx-nstrut",x)]),this.html("mjx-dbox",{},[this.html("mjx-dtable",{},[this.html("mjx-line",o),this.html("mjx-row",{},[q=this.html("mjx-den",h,[this.html("mjx-dstrut",u)])])])])])),this.childNodes[0].toCHTML([I]),this.childNodes[1].toCHTML([q])}makeAtop(e){const{numalign:s,denomalign:i}=this.node.attributes.getList("numalign","denomalign"),n=e?{type:"d",atop:!0}:{atop:!0},o=this.node.getProperty("withDelims")?Object.assign(Object.assign({},n),{delims:!0}):Object.assign({},n),a=s!=="center"?{align:s}:{},c=i!=="center"?{align:i}:{},{v:h,q:u}=this.getUVQ(e);let x,A;a.style={"padding-bottom":this.em(u)},o.style={"vertical-align":this.em(-h)},this.adaptor.append(this.dom[0],this.html("mjx-frac",o,[x=this.html("mjx-num",a),A=this.html("mjx-den",c)])),this.childNodes[0].toCHTML([x]),this.childNodes[1].toCHTML([A])}makeBevelled(e){const s=this.adaptor;s.setAttribute(this.dom[0],"bevelled","ture");const i=s.append(this.dom[0],this.html("mjx-num"));this.childNodes[0].toCHTML([i]),this.bevel.toCHTML(this.dom);const n=s.append(this.dom[0],this.html("mjx-den"));this.childNodes[1].toCHTML([n]);const{u:o,v:a,delta:c}=this.getBevelData(e);o&&s.setStyle(i,"verticalAlign",this.em(o)),a&&s.setStyle(n,"verticalAlign",this.em(a));const h=this.em(-c/2);s.setStyle(this.bevel.dom[0],"marginLeft",h),s.setStyle(this.bevel.dom[0],"marginRight",h)}}).kind=Co.prototype.kind,r.styles={"mjx-frac":{display:"inline-block","vertical-align":"0.17em",padding:"0 .22em"},'mjx-frac[type="d"]':{"vertical-align":".04em"},"mjx-frac[delims]":{padding:"0 .1em"},"mjx-frac[atop]":{padding:"0 .12em"},"mjx-frac[atop][delims]":{padding:"0"},"mjx-dtable":{display:"inline-table",width:"100%"},"mjx-dtable > mjx-line, mjx-dtable > mjx-row":{"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":".075em solid",margin:".06em -.1em",overflow:"hidden"},'mjx-line[type="d"]':{margin:".18em -.1em"}},r})();function Bp(r){return class extends r{get base(){return 0}get root(){return null}combineRootBBox(t,e,s){}getPQ(t){const e=this.font.params.rule_thickness,s=this.font.params.surd_height,i=this.node.attributes.get("displaystyle")?this.font.params.x_height:e;return[i,t.h+t.d>this.surdH?(t.h+t.d-(this.surdH-e-s-i/2))/2:s+i/4]}getRootDimens(t,e){return[0,0,0,0]}rootWidth(){return 1.25}getStretchedSurd(){const t=this.font.params.rule_thickness,e=this.font.params.surd_height,s=this.node.attributes.get("displaystyle")?this.font.params.x_height:t,{h:i,d:n}=this.childNodes[this.base].getOuterBBox();this.surdH=i+n+t+e+s/4,this.surd.getStretchedVariant([this.surdH-n,n],!0)}constructor(t,e,s=null){super(t,e,s),this.surd=this.createMo("√"),this.surd.canStretch(xe.Vertical),this.getStretchedSurd()}computeBBox(t,e=!1){t.empty();const s=this.surd.getBBox(),i=new he(this.childNodes[this.base].getOuterBBox()),n=this.getPQ(s)[1],o=this.font.params.rule_thickness,a=this.font.params.surd_height,c=i.h+n+o,[h]=this.getRootDimens(s,c);t.h=c+a,this.combineRootBBox(t,s,c),t.combine(s,h,c-s.h),t.combine(i,h+s.w,0),t.clean(),this.setChildPWidths(e)}invalidateBBox(){super.invalidateBBox(),this.surd.childNodes[0].invalidateBBox()}}}const pl=(function(){var r;const t=Bp(re);return r=class extends t{toCHTML(e){const s=this.surd,i=this.childNodes[this.base],n=s.getBBox(),o=i.getOuterBBox(),[,a]=this.getPQ(n),c=this.font.params.surd_height,h=o.h+a+c,u=this.adaptor,x=this.standardChtmlNodes(e);let A,I,q,et;this.root!=null&&(q=u.append(x[0],this.html("mjx-root")),et=this.childNodes[this.root]);const Rt=u.append(x[0],this.html("mjx-sqrt",{},[A=this.html("mjx-surd"),I=this.html("mjx-box",{style:{paddingTop:this.em(a)}})]));c!==.06&&u.setStyle(I,"border-top-width",this.em(c*this.font.params.rule_factor)),this.addRoot(q,et,n,h),s.toCHTML([A]),i.toCHTML([I]),s.size<0&&u.addClass(Rt,"mjx-tall")}addRoot(e,s,i,n){}},r.kind=Lo.prototype.kind,r.styles={"mjx-root":{display:"inline-block","white-space":"nowrap"},"mjx-surd":{display:"inline-block","vertical-align":"top"},"mjx-sqrt":{display:"inline-block","padding-top":".075em"},"mjx-sqrt > mjx-box":{"border-top":".075em solid","padding-left":".03em","margin-left":"-.03em"},"mjx-sqrt.mjx-tall > mjx-box":{"padding-left":".3em","margin-left":"-.3em"}},r})();function Fp(r){return class extends r{get root(){return 1}combineRootBBox(t,e,s){const i=this.childNodes[this.root].getOuterBBox(),n=this.getRootDimens(e,s)[1];t.combine(i,0,n)}getRootDimens(t,e){const s=this.surd,i=this.childNodes[this.root].getOuterBBox(),n=(s.size<0?.5:.6)*t.w,{w:o,rscale:a}=i,c=Math.max(o,n/a),h=Math.max(0,c-o);return[c*a-n,this.rootHeight(i,t,s.size,e),h]}rootHeight(t,e,s,i){const n=e.h+e.d;return(s<0?1.9:.55*n)-(n-i)+Math.max(0,t.d*t.rscale)}rootWidth(){const t=this.childNodes[this.root].getOuterBBox();return .4+t.w*t.rscale}}}const V0=(function(){var r;const t=Fp(pl);return r=class extends t{addRoot(e,s,i,n){s.toCHTML([e]);const o=this.adaptor,[a,c,h]=this.getRootDimens(i,n);o.setStyle(e,"verticalAlign",this.em(c)),o.setStyle(e,"width",this.em(a)),h&&o.setStyle(o.firstChild(e),"paddingLeft",this.em(h))}},r.kind=Ao.prototype.kind,r})();function jp(r){var t;return(t=class extends r{get scriptChild(){return this.childNodes[this.node.sub]}getOffset(){return[this.baseIsChar?0:this.getAdjustedIc(),-this.getV()]}}).useIC=!1,t}function Up(r){return class extends r{get scriptChild(){return this.childNodes[this.node.sup]}getOffset(){return[this.getAdjustedIc()-(this.baseRemoveIc?0:this.baseIc),this.getU()]}}}function Hp(r){var t;return t=class extends r{constructor(){super(...arguments),this.UVQ=null}get subChild(){return this.childNodes[this.node.sub]}get supChild(){return this.childNodes[this.node.sup]}get scriptChild(){return this.supChild}getUVQ(e=this.subChild.getOuterBBox(),s=this.supChild.getOuterBBox()){const i=this.baseCore,n=i.getLineBBox(i.breakCount);if(this.UVQ)return this.UVQ;const o=this.font.params,a=3*o.rule_thickness,c=this.length2em(this.node.attributes.get("subscriptshift"),o.sub2),h=this.baseCharZero(n.d*this.baseScale+o.sub_drop*e.rscale),u=s.d*s.rscale,x=e.h*e.rscale;let[A,I]=[this.getU(),Math.max(h,c)],q=A-u-(x-I);if(q<a){I+=a-q;const et=.8*o.x_height-(A-u);et>0&&(A+=et,I-=et)}return A=Math.max(this.length2em(this.node.attributes.get("superscriptshift"),A),A),I=Math.max(this.length2em(this.node.attributes.get("subscriptshift"),I),I),q=A-u-(x-I),this.UVQ=[A,-I,q],this.UVQ}appendScripts(e){const[s,i]=[this.subChild.getOuterBBox(),this.supChild.getOuterBBox()],n=this.getBaseWidth(),o=this.getAdjustedIc(),[a,c]=this.getUVQ(),h=e.d-this.baseChild.getLineBBox(this.baseChild.breakCount).d;return e.combine(s,n+(this.baseIsChar?0:o),c-h),e.combine(i,n+o,a-h),e.w+=this.font.params.scriptspace,e}},t.useIC=!1,t}function _p(r){var t;return t=class extends r{get baseChild(){return this.childNodes[this.node.base]}get scriptChild(){return this.childNodes[1]}getBaseCore(){let e=this.getSemanticBase()||this.childNodes[0],s=e?.node;for(;e&&(e.childNodes.length===1&&(s.isKind("mrow")||s.isKind("TeXAtom")||s.isKind("mstyle")||s.isKind("mpadded")&&!s.getProperty("vbox")||s.isKind("mphantom")||s.isKind("semantics"))||s.isKind("munderover")&&e.isMathAccent);
67)this.setBaseAccentsFor(e),e=e.childNodes[0],s=e?.node;return e||(this.baseHasAccentOver=this.baseHasAccentUnder=!1),e||this.childNodes[0]}setBaseAccentsFor(e){e.node.isKind("munderover")&&(this.baseHasAccentOver===null&&(this.baseHasAccentOver=!!e.node.attributes.get("accent")),this.baseHasAccentUnder===null&&(this.baseHasAccentUnder=!!e.node.attributes.get("accentunder")))}getSemanticBase(){const e=this.node.attributes.getExplicit("data-semantic-fencepointer");return this.getBaseFence(this.baseChild,e)}getBaseFence(e,s){if(!e||!e.node.attributes||!s)return null;if(e.node.attributes.getExplicit("data-semantic-id")===s)return e;for(const i of e.childNodes){const n=this.getBaseFence(i,s);if(n)return n}return null}getBaseScale(){let e=this.baseCore,s=1;for(;e&&e!==this;)s*=e.getOuterBBox().rscale,e=e.parent;return s}getBaseIc(){return this.baseCore.getOuterBBox().ic*this.baseScale}getAdjustedIc(){return this.baseIc?1.05*this.baseIc+.05:0}isCharBase(){const e=this.baseCore;return(e.node.isKind("mo")&&e.size===null||e.node.isKind("mi")||e.node.isKind("mn"))&&e.bbox.rscale===1&&Array.from(e.getText()).length===1}checkLineAccents(){if(this.node.isKind("munderover"))if(this.node.isKind("mover"))this.isLineAbove=this.isLineAccent(this.scriptChild);else if(this.node.isKind("munder"))this.isLineBelow=this.isLineAccent(this.scriptChild);else{const e=this;this.isLineAbove=this.isLineAccent(e.overChild),this.isLineBelow=this.isLineAccent(e.underChild)}}isLineAccent(e){const s=e.coreMO().node;return s.isToken&&s.getText()==="―"}getBaseWidth(){const e=this.baseChild.getLineBBox(this.baseChild.breakCount);return e.w*e.rscale-(this.baseRemoveIc?this.baseIc:0)+this.font.params.extra_ic}getOffset(){return[0,0]}baseCharZero(e){const s=!!this.baseCore.node.attributes.get("largeop"),i=!(!this.baseCore.node.isKind("mo")||!this.baseCore.size),n=this.baseScale;return!this.baseIsChar||s||i||n!==1?e:0}getV(){const e=this.baseCore,s=e.getLineBBox(e.breakCount),i=this.scriptChild.getOuterBBox(),n=this.font.params,o=this.length2em(this.node.attributes.get("subscriptshift"),n.sub1);return Math.max(this.baseCharZero(s.d*this.baseScale+n.sub_drop*i.rscale),o,i.h*i.rscale-.8*n.x_height)}getU(){const e=this.baseCore,s=e.getLineBBox(e.breakCount),i=this.scriptChild.getOuterBBox(),n=this.font.params,o=this.node.attributes.getList("displaystyle","superscriptshift"),a=this.node.getProperty("texprimestyle")?n.sup3:o.displaystyle?n.sup1:n.sup2,c=this.length2em(o.superscriptshift,a);return Math.max(this.baseCharZero(s.h*this.baseScale-n.sup_drop*i.rscale),c,i.d*i.rscale+1/4*n.x_height)}hasMovableLimits(){const e=this.node.attributes.get("displaystyle"),s=this.baseChild.coreMO().node;return!e&&!!s.attributes.get("movablelimits")}getOverKU(e,s){const i=this.node.attributes.get("accent"),n=this.font.params,o=s.d*s.rscale,a=n.rule_thickness*n.separation_factor,c=this.baseHasAccentOver?a:0,h=this.isLineAbove?3*n.rule_thickness:a,u=(i?h:Math.max(n.big_op_spacing1,n.big_op_spacing3-Math.max(0,o)))-c;return[u,e.h*e.rscale+u+o]}getUnderKV(e,s){const i=this.node.attributes.get("accentunder"),n=this.font.params,o=s.h*s.rscale,a=n.rule_thickness*n.separation_factor,c=this.baseHasAccentUnder?a:0,h=this.isLineBelow?3*n.rule_thickness:a,u=(i?h:Math.max(n.big_op_spacing2,n.big_op_spacing4-o))-c;return[u,-(e.d*e.rscale+u+o)]}getDeltaW(e,s=[0,0,0]){const i=this.node.attributes.get("align"),n=e.map(h=>h.w*h.rscale);n[0]-=this.baseRemoveIc&&!this.baseCore.node.attributes.get("largeop")?this.baseIc:0;const o=Math.max(...n),a=[];let c=0;for(const h of n.keys())a[h]=(i==="center"?(o-n[h])/2:i==="right"?o-n[h]:0)+s[h],a[h]<c&&(c=-a[h]);if(c)for(const h of a.keys())a[h]+=c;return[1,2].map(h=>a[h]+=e[h]?e[h].dx*e[0].rscale:0),a}getDelta(e,s=!1){const i=this.node.attributes.get("accent");let{sk:n,ic:o}=this.baseCore.getOuterBBox();return i&&(n-=e.getOuterBBox().sk),((i&&!s?n:0)+this.font.skewIcFactor*o)*this.baseScale}stretchChildren(){const e=[];for(const n of this.childNodes)n.canStretch(xe.Horizontal)&&e.push(n);const s=e.length,i=this.childNodes.length;if(s&&i>1){let n=0;const o=s>1&&s===i;for(const a of this.childNodes){const c=a.stretch.dir===xe.None;if(o||c){const{w:h,rscale:u}=a.getOuterBBox(c);h*u>n&&(n=h*u)}}
vendor: 7,801 bytes, line 67
67for(const a of e){const c=a.coreMO();c.size===null&&c.getStretchedVariant([n/a.coreRScale()])}}}constructor(e,s,i=null){super(e,s,i),this.baseScale=1,this.baseIc=0,this.baseRemoveIc=!1,this.baseIsChar=!1,this.baseHasAccentOver=null,this.baseHasAccentUnder=null,this.isLineAbove=!1,this.isLineBelow=!1,this.isMathAccent=!1;const n=this.baseCore=this.getBaseCore();n&&(this.setBaseAccentsFor(n),this.baseScale=this.getBaseScale(),this.baseIc=this.getBaseIc(),this.baseIsChar=this.isCharBase(),this.isMathAccent=this.baseIsChar&&this.scriptChild&&this.scriptChild.coreMO().node.getProperty("mathaccent")!==void 0,this.checkLineAccents(),this.baseRemoveIc=!this.isLineAbove&&!this.isLineBelow&&(!this.constructor.useIC||this.isMathAccent))}computeBBox(e,s=!1){e.empty(),e.append(this.baseChild.getOuterBBox()),this.appendScripts(e),e.clean(),this.setChildPWidths(s)}appendScripts(e){const s=this.getBaseWidth(),[i,n]=this.getOffset();return e.combine(this.scriptChild.getOuterBBox(),s+i,n),e.w+=this.font.params.scriptspace,e}get breakCount(){return this._breakCount<0&&(this._breakCount=this.node.isEmbellished?this.coreMO().embellishedBreakCount:this.node.linebreakContainer?0:this.childNodes[0].breakCount),this._breakCount}breakTop(e,s){return this.node.linebreakContainer||!this.parent||this.node.childIndex(s.node)?e:this.parent.breakTop(e,this)}computeLineBBox(e){const s=this.breakCount;if(!s)return Fs.from(this.getOuterBBox(),this.linebreakOptions.lineleading);const i=this.baseChild.getLineBBox(e).copy();return e<s?(e===0&&this.addLeftBorders(i),this.addMiddleBorders(i)):(this.appendScripts(i),this.addMiddleBorders(i),this.addRightBorders(i)),i}},t.useIC=!0,t}const ml=(function(){var r;const t=_p(re);return(r=class extends t{toCHTML(e){if(this.toEmbellishedCHTML(e))return;this.dom=this.standardChtmlNodes(e);const[s,i]=this.getOffset(),n=s-(this.baseRemoveIc?this.baseIc:0),o={"vertical-align":this.em(i)};n&&(o["margin-left"]=this.em(n)),this.baseChild.toCHTML(this.dom);const a=this.dom[this.dom.length-1];this.scriptChild.toCHTML([this.adaptor.append(a,this.html("mjx-script",{style:o}))])}markUsed(){super.markUsed(),this.jax.wrapperUsage.add(Gn.kind)}setDeltaW(e,s){for(let i=0;i<s.length;i++)s[i]&&this.adaptor.setStyle(e[i],"paddingLeft",this.em(s[i]))}adjustOverDepth(e,s){s.d>=0||this.adaptor.setStyle(e,"marginBottom",this.em(s.d*s.rscale))}adjustUnderDepth(e,s){if(s.d>=0)return;const i=this.adaptor,n=this.em(s.d),o=this.html("mjx-box",{style:{"margin-bottom":n,"vertical-align":n}});for(const a of i.childNodes(i.firstChild(e)))i.append(o,a);i.append(i.firstChild(e),o)}adjustBaseHeight(e,s){if(this.node.attributes.get("accent")){const i=this.font.params.x_height*this.baseScale;s.h<i&&(this.adaptor.setStyle(e,"paddingTop",this.em(i-s.h)),s.h=i)}}}).kind="scriptbase",r})(),fl=(function(){var r;const t=jp(ml);return(r=class extends t{}).kind=wo.prototype.kind,r})(),gl=(function(){var r;const t=Up(ml);return(r=class extends t{}).kind=ko.prototype.kind,r})(),Gn=(function(){var r;const t=Hp(ml);return(r=class extends t{toCHTML(e){if(this.toEmbellishedCHTML(e))return;const s=this.adaptor,i=this.standardChtmlNodes(e),[n,o,a]=[this.baseChild,this.supChild,this.subChild],[,c,h]=this.getUVQ(),u={"vertical-align":this.em(c)};n.toCHTML(i);const x=s.append(i[i.length-1],this.html("mjx-script",{style:u}));o.toCHTML([x]),s.append(x,this.html("mjx-spacer",{style:{"margin-top":this.em(h)}})),a.toCHTML([x]);const A=this.getAdjustedIc();A&&(s.setStyle(o.dom[0],"marginLeft",this.em(A/o.bbox.rscale)),this.baseIsChar||s.setStyle(a.dom[0],"marginLeft",this.em(A/o.bbox.rscale))),this.baseRemoveIc&&s.setStyle(x,"marginLeft",this.em(-this.baseIc))}}).kind=Ai.prototype.kind,r.styles={"mjx-script":{display:"inline-block","padding-right":".05em","padding-left":".033em"},"mjx-script > mjx-spacer":{display:"block"}},r})();function Wp(r){return class extends r{get scriptChild(){return this.childNodes[this.node.under]}constructor(...t){super(...t),this.stretchChildren()}computeBBox(t,e=!1){if(this.hasMovableLimits())return void super.computeBBox(t,e);t.empty();const s=this.baseChild.getOuterBBox(),i=this.scriptChild.getOuterBBox(),n=this.getUnderKV(s,i)[1],o=this.isLineBelow?0:this.getDelta(this.scriptChild,!0),[a,c]=this.getDeltaW([s,i],[0,-o]);t.combine(s,a,0),t.combine(i,c,n),t.d+=this.font.params.big_op_spacing5,t.clean(),this.setChildPWidths(e)}}}function qp(r){return class extends r{get scriptChild(){return this.childNodes[this.node.over]}constructor(...t){super(...t),this.stretchChildren()}computeBBox(t){if(this.hasMovableLimits())return void super.computeBBox(t);t.empty();const e=this.baseChild.getOuterBBox(),s=this.scriptChild.getOuterBBox();this.node.attributes.get("accent")&&(e.h=Math.max(e.h,this.font.params.x_height*this.baseScale));const i=this.getOverKU(e,s)[1],n=this.isLineAbove?0:this.getDelta(this.scriptChild),[o,a]=this.getDeltaW([e,s],[0,n]);t.combine(e,o,0),t.combine(s,a,i),t.h+=this.font.params.big_op_spacing5,t.clean()}}}function Vp(r){return class extends r{get underChild(){return this.childNodes[this.node.under]}get overChild(){return this.childNodes[this.node.over]}get subChild(){return this.underChild}get supChild(){return this.overChild}constructor(...t){super(...t),this.stretchChildren()}computeBBox(t){if(this.hasMovableLimits())return void super.computeBBox(t);t.empty();const e=this.overChild.getOuterBBox(),s=this.baseChild.getOuterBBox(),i=this.underChild.getOuterBBox();this.node.attributes.get("accent")&&(s.h=Math.max(s.h,this.font.params.x_height*this.baseScale));const n=this.getOverKU(s,e)[1],o=this.getUnderKV(s,i)[1],a=this.getDelta(this.overChild),c=this.getDelta(this.underChild,!0),[h,u,x]=this.getDeltaW([s,i,e],[0,this.isLineBelow?0:-c,this.isLineAbove?0:a]);t.combine(s,h,0),t.combine(e,x,n),t.combine(i,u,o);const A=this.font.params.big_op_spacing5;t.h+=A,t.d+=A,t.clean()}}}const z0=(function(){var r;const t=Wp(fl);return(r=class extends t{toCHTML(e){if(this.toEmbellishedCHTML(e))return;if(this.hasMovableLimits())return super.toCHTML(e),void this.adaptor.setAttribute(this.dom[0],"limits","false");this.dom=this.standardChtmlNodes(e);const s=this.adaptor.append(this.adaptor.append(this.dom[0],this.html("mjx-row")),this.html("mjx-base")),i=this.adaptor.append(this.adaptor.append(this.dom[0],this.html("mjx-row")),this.html("mjx-under"));this.baseChild.toCHTML([s]),this.scriptChild.toCHTML([i]);const n=this.baseChild.getOuterBBox(),o=this.scriptChild.getOuterBBox(),a=this.getUnderKV(n,o)[0],c=this.isLineBelow?0:this.getDelta(this.scriptChild,!0);this.adaptor.setStyle(i,"paddingTop",this.em(a)),this.setDeltaW([s,i],this.getDeltaW([n,o],[0,-c])),this.adjustUnderDepth(i,o)}}).kind=Oo.prototype.kind,r.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"}},r})(),X0=(function(){var r;const t=qp(gl);return(r=class extends t{toCHTML(e){if(this.toEmbellishedCHTML(e))return;if(this.hasMovableLimits())return super.toCHTML(e),void this.adaptor.setAttribute(this.dom[0],"limits","false");this.dom=this.standardChtmlNodes(e);const s=this.adaptor.append(this.dom[0],this.html("mjx-over")),i=this.adaptor.append(this.dom[0],this.html("mjx-base"));this.scriptChild.toCHTML([s]),this.baseChild.toCHTML([i]);const n=this.scriptChild.getOuterBBox(),o=this.baseChild.getOuterBBox();this.adjustBaseHeight(i,o);const a=this.getOverKU(o,n)[0],c=this.isLineAbove?0:this.getDelta(this.scriptChild);this.adaptor.setStyle(s,"paddingBottom",this.em(a)),this.setDeltaW([i,s],this.getDeltaW([o,n],[0,c])),this.adjustOverDepth(s,n)}}).kind=Pn.prototype.kind,r.styles={'mjx-mover:not([limits="false"])':{"padding-top":".1em"},[["base","over"].map(e=>`mjx-mover:not([limits="false"]) > mjx-${e}
67`).join(", ")]:{display:"block","text-align":"left"}},r})(),J0=(function(){var r;const t=Vp(Gn);return(r=class extends t{toCHTML(e){if(this.toEmbellishedCHTML(e))return;if(this.hasMovableLimits())return super.toCHTML(e),void this.adaptor.setAttribute(this.dom[0],"limits","false");this.dom=this.standardChtmlNodes(e);const s=this.adaptor.append(this.dom[0],this.html("mjx-over")),i=this.adaptor.append(this.adaptor.append(this.dom[0],this.html("mjx-box")),this.html("mjx-munder")),n=this.adaptor.append(this.adaptor.append(i,this.html("mjx-row")),this.html("mjx-base")),o=this.adaptor.append(this.adaptor.append(i,this.html("mjx-row")),this.html("mjx-under"));this.overChild.toCHTML([s]),this.baseChild.toCHTML([n]),this.underChild.toCHTML([o]);const a=this.overChild.getOuterBBox(),c=this.baseChild.getOuterBBox(),h=this.underChild.getOuterBBox();this.adjustBaseHeight(n,c);const u=this.getOverKU(c,a)[0],x=this.getUnderKV(c,h)[0],A=this.getDelta(this.overChild),I=this.getDelta(this.underChild,!0);this.adaptor.setStyle(s,"paddingBottom",this.em(u)),this.adaptor.setStyle(o,"paddingTop",this.em(x)),this.setDeltaW([n,o,s],this.getDeltaW([c,h,a],[0,this.isLineBelow?0:-I,this.isLineAbove?0:A])),this.adjustOverDepth(s,a),this.adjustUnderDepth(o,h)}}).kind=_i.prototype.kind,r.styles={'mjx-munderover:not([limits="false"])':{"padding-top":".1em"},[["over","box"].map(e=>`mjx-munderover:not([limits="false"]) > mjx-${e}`).join(", ")]:{display:"block"}},r})(),zp={base:"subList",subList:"supList",supList:"subList",psubList:"psupList",psupList:"psubList"},bg=["sup","sup","psup","psub"];function Xp(r){return class extends r{combinePrePost(t,e){const s=new he(t);return s.combine(e,0,0),s}getScriptData(){const t=this.scriptData={base:null,sub:he.empty(),sup:he.empty(),psub:he.empty(),psup:he.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}getScriptBBoxLists(){const t={base:[],subList:[],supList:[],psubList:[],psupList:[]};let e="base";for(const s of this.childNodes)s.node.isKind("mprescripts")?e="psubList":(t[e].push(s.getOuterBBox()),e=zp[e]);return this.firstPrescript=t.subList.length+t.supList.length+2,this.padLists(t.subList,t.supList),this.padLists(t.psubList,t.psupList),t}padLists(t,e){t.length>e.length&&e.push(he.empty())}combineBBoxLists(t,e,s,i){for(let n=0;n<s.length;n++){const[o,a,c]=this.getScaledWHD(s[n]),[h,u,x]=this.getScaledWHD(i[n]),A=Math.max(o,h);t.w+=A,e.w+=A,a>t.h&&(t.h=a),c>t.d&&(t.d=c),u>e.h&&(e.h=u),x>e.d&&(e.d=x)}}getScaledWHD(t){const{w:e,h:s,d:i,rscale:n}=t;return[e*n,s*n,i*n]}getCombinedUV(){const t=this.scriptData,e=this.combinePrePost(t.sub,t.psub),s=this.combinePrePost(t.sup,t.psup);return this.getUVQ(e,s)}addPrescripts(t,e,s){const i=this.scriptData;if(i.numPrescripts){const n=this.font.params.scriptspace;t.combine(i.psup,n,e),t.combine(i.psub,n,s)}return t}addPostscripts(t,e,s){const i=this.scriptData;if(i.numScripts){const n=t.w;t.combine(i.sup,n,e),t.combine(i.sub,n,s),t.w+=this.font.params.scriptspace}return t}constructor(...t){super(...t),this.scriptData=null,this.firstPrescript=0,this.getScriptData()}appendScripts(t){t.empty();const[e,s]=this.getCombinedUV();return this.addPrescripts(t,e,s),t.append(this.scriptData.base),this.addPostscripts(t,e,s),t.clean(),t}computeLineBBox(t){const e=this.baseChild.breakCount,s=this.baseChild.getLineBBox(t).copy();let i=s;const[n,o]=this.getCombinedUV();return t===0?(i=Fs.from(this.addPrescripts(he.zero(),n,o),this.linebreakOptions.lineleading),i.append(s),this.addLeftBorders(i),i.L=this.bbox.L):t===e&&(i=this.addPostscripts(i,n,o),this.addRightBorders(i),i.R=this.bbox.R),this.addMiddleBorders(i),i}getUVQ(t,e){if(!this.UVQ){let[s,i,n]=[0,0,0];t.w===0?s=this.getU():e.w===0?s=-this.getV():[s,i,n]=super.getUVQ(t,e),this.UVQ=[s,i,n]}return this.UVQ}}}const K0=(function(){var r;const t=Xp(Gn);return(r=class extends t{toCHTML(e){if(this.toEmbellishedCHTML(e))return;const s=this.standardChtmlNodes(e),i=this.scriptData,n=this.node.getProperty("scriptalign")||"right left",[o,a]=mi(n+" "+n),[c,h]=this.getCombinedUV();if(i.numPrescripts){const u=this.addScripts(this.dom[0],c,-h,!0,i.psub,i.psup,this.firstPrescript,i.numPrescripts);o!=="right"&&this.adaptor.setAttribute(u,"script-align",o)}if(this.childNodes[0].toCHTML(s),i.numScripts){const u=this.addScripts(this.dom[this.dom.length-1],c,-h,!1,i.sub,i.sup,1,i.numScripts);a!=="left"&&this.adaptor.setAttribute(u,"script-align",a)}}addScripts(e,s,i,n,o,a,c,h){const u=this.adaptor,x=s-a.d+(i-o.h),A=s<0&&i===0?o.h+s:s,I=x>0?{style:{height:this.em(x)}}:{},q=A?{style:{"vertical-align":this.em(A)}}:{},et=this.html("mjx-row"),Rt=this.html("mjx-row",I),Ce=this.html("mjx-row"),Ns="mjx-"+(n?"pre":"")+"scripts",ls=c+2*h;for(;c<ls;)this.childNodes[c++].toCHTML([u.append(Ce,this.html("mjx-cell"))]),this.childNodes[c++].toCHTML([u.append(et,this.html("mjx-cell"))]);return u.append(e,this.html(Ns,q,[et,Rt,Ce]))}}).kind=Do.prototype.kind,r.styles={"mjx-prescripts":{display:"inline-table","padding-left":".05em"},"mjx-scripts":{display:"inline-table","padding-right":".05em"},"mjx-prescripts > mjx-row > mjx-cell":{"text-align":"right"},'[script-align="left"] > mjx-row > mjx-cell':{"text-align":"left"},'[script-align="center"] > mjx-row > mjx-cell':{"text-align":"center"},'[script-align="right"] > mjx-row > mjx-cell':{"text-align":"right"},"mjx-none":{display:"inline-block",height:"1px"}},r})(),Jp=.333;function Kp(r){return class extends r{get tableRows(){return this.childNodes}findContainer(){let t=this,e=t.parent;for(;e&&(e.node.notParent||e.node.isKind("mrow"));)t=e,e=e.parent;this.container=e,this.containerI=t.node.childPosition()}getPercentageWidth(){if(this.hasLabels)this.bbox.pwidth=he.fullWidth;else{const t=this.node.attributes.get("width");ri(t)&&(this.bbox.pwidth=t)}}stretchRows(){const t=this.node.attributes.get("equalrows"),e=t?this.getEqualRowHeight():0,{H:s,D:i}=t?this.getTableData():{H:[0],D:[0]},n=this.tableRows;for(let o=0;o<this.numRows;o++){const a=t?[(e+s[o]-i[o])/2,(e-s[o]+i[o])/2]:null;n[o].stretchChildren(a)}}stretchColumns(){const t=this.getColumnAttributes("columnwidth",0);for(let e=0;e<this.numCols;e++){const s=typeof this.cWidths[e]=="number"?this.cWidths[e]:null;this.stretchColumn(e,s),s!==null&&this.breakColumn(e,s,t[e])}}stretchColumn(t,e){const s=[];for(const n of this.tableRows){const o=n.getChild(t);if(o){const a=o.childNodes[0];a.stretch.dir===xe.None&&a.canStretch(xe.Horizontal)&&s.push(a)}}const i=s.length;if(i&&e===null){e=0;const n=i===this.childNodes.length;for(const o of this.tableRows){const a=o.getChild(t);if(a){const c=a.childNodes[0],h=c.stretch.dir===xe.None;if(n||h){const{w:u}=c.getBBox(h);u>e&&(e=u)}}}}if(e!==null){const n=this.getTableData().W;for(const o of s){let a=o.getBBox().w;o.coreMO().getStretchedVariant([Math.max(e,a)/o.coreRScale()]),a=o.getBBox().w,a>n[t]&&(n[t]=a)}}}breakColumn(t,e,s){if(this.jax.math.root.attributes.get("overflow")!=="linebreak"||!this.jax.math.display)return;const{H:i,D:n}=this.getTableData();let o=0,a=0;for(const c of this.tableRows){const h=c.getChild(t);if(h){const x=c.getBBox().rscale,A=h.getBBox();if(h&&A.w*x>e){h.childNodes[0].breakToWidth(e);const I=c.node.attributes.get("rowalign");this.updateHDW(h,t,o,I,i,n)}A.w*x>a&&(a=A.w*x)}const u=c.getBBox();u.h=i[o],u.d=n[o],o++}(s==="fit"||s==="auto"||ri(s)||a>this.cWidths[t])&&(this.cWidths[t]=a)}getTableData(){if(this.data)return this.data;const t=new Array(this.numRows).fill(0),e=new Array(this.numRows).fill(0),s=new Array(this.numCols).fill(0),i=new Array(this.numRows),n=new Array(this.numRows),o=[0],a=this.tableRows;for(let h=0;h<a.length;h++){const u=a[h],x=u.node.attributes.get("rowalign");for(let A=0;A<u.numCells;A++){const I=u.getChild(A);this.updateHDW(I,A,h,x,t,e,s),this.recordPWidthCell(I,A)}i[h]=t[h],n[h]=e[h],u.labeled&&this.updateHDW(u.childNodes[0],0,h,x,t,e,o),u.bbox.h=t[h],u.bbox.d=e[h]}const c=o[0];return this.data={H:t,D:e,W:s,NH:i,ND:n,L:c},this.data}updateHDW(t,e,s,i,n,o,a=null){let{h:c,d:h,w:u}=t.getBBox();const x=t.parent.bbox.rscale;t.parent.bbox.rscale!==1&&(c*=x,h*=x,u*=x),this.node.getProperty("useHeight")&&(c<.75&&(c=.75),h<.25&&(h=.25)),i=t.node.attributes.get("rowalign")||i,Object.hasOwn(this.adjustHD,i)||(i="other"),this.adjustHD[i](c,h,n,o,s),a&&u>a[e]&&(a[e]=u)}recordPWidthCell(t,e){t.childNodes[0]&&t.childNodes[0].getBBox().pwidth&&this.pwidthCells.push([t,e])}setColumnPWidths(){const t=this.cWidths;for(const[e,s]of this.pwidthCells)e.setChildPWidths(!1,t[s])&&(e.invalidateBBox(),e.getBBox())}getBBoxHD(t){const[e,s]=this.getAlignmentRow();if(s===null){const i=this.font.params.axis_height,n=t/2;return{top:[0,t],center:[n,n],bottom:[t,0],baseline:[n,n],axis:[n+i,n-i]}[e]||[n,n]}{const i=this.getVerticalPosition(s,e);return[i,t-i]}}getBBoxLR(){var t;if(this.hasLabels){const e=this.node.attributes,s=e.get("side");let[i,n]=this.getPadAlignShift(s);const o=this.hasLabels&&!!e.get("data-width-includes-label");return o&&this.frame&&this.fSpace[0]&&(i-=this.fSpace[0]),n!=="center"||o?s==="left"?[i,0]:[0,i]:[i,i]}return[((t=this.bbox)===null||t===void 0?void 0:t.L)||0,0]}getPadAlignShift(t){const{L:e}=this.getTableData();let s=e+this.length2em(this.node.attributes.get("minlabelspacing"));const[i,n]=this.styles==null?["",""]:[this.styles.get("padding-left"),this.styles.get("padding-right")];(i||n)&&(s=Math.max(s,this.length2em(i||"0"),this.length2em(n||"0")));let[o,a]=this.getAlignShift();return o===t&&(a=t==="left"?Math.max(s,a)-s:Math.min(-s,a)+s),[s,o,a]}getWidth(){return this.pWidth||this.getBBox().w}adjustWideTable(){const t=this.node.attributes;if(t.get("width")!=="auto")return;const[e,s]=this.getPadAlignShift(t.get("side")),i=Math.max(this.containerWidth/10,this.containerWidth-e-(s==="center"?e:0));
67this.naturalWidth()>i&&this.adjustColumnWidths(i)}naturalWidth(){return Ar(this.getComputedWidths().concat(this.cLines,this.cSpace))+2*this.fLine+this.fSpace[0]+this.fSpace[2]}getEqualRowHeight(){const{H:t,D:e}=this.getTableData(),s=Array.from(t.keys()).map(i=>t[i]+e[i]);return Math.max(...s)}getComputedWidths(){const t=this.getTableData().W;let e=Array.from(t.keys()).map(s=>typeof this.cWidths[s]=="number"?this.cWidths[s]:t[s]);return this.node.attributes.get("equalcolumns")&&(e=Array(e.length).fill(Qa(e))),e}getColumnWidths(){const t=this.node.attributes.get("width");if(this.node.attributes.get("equalcolumns"))return this.getEqualColumns(t);const e=this.getColumnAttributes("columnwidth",0);return t==="auto"?this.getColumnWidthsAuto(e):ri(t)?this.getColumnWidthsPercent(e):this.getColumnWidthsFixed(e,this.length2em(t))}getEqualColumns(t){const e=Math.max(1,this.numCols);let s;if(t==="auto"){const{W:i}=this.getTableData();s=Qa(i)}else if(ri(t))s=this.percent(1/e);else{const i=Ar([].concat(this.cLines,this.cSpace))+this.fSpace[0]+this.fSpace[2];s=Math.max(0,this.length2em(t)-i)/e}return Array(this.numCols).fill(s)}getColumnWidthsAuto(t){return t.map(e=>e==="auto"||e==="fit"?null:ri(e)?e:this.length2em(e))}getColumnWidthsPercent(t){const e=t.includes("fit"),{W:s}=e?this.getTableData():{W:null};return Array.from(t.keys()).map(i=>{const n=t[i];return n==="fit"?null:n==="auto"?e?s[i]:null:ri(n)?n:this.length2em(n)})}getColumnWidthsFixed(t,e){const s=Array.from(t.keys()),i=s.filter(x=>t[x]==="fit"),n=s.filter(x=>t[x]==="auto"),o=i.length||n.length,{W:a}=o?this.getTableData():{W:null},c=e-Ar([].concat(this.cLines,this.cSpace))-this.fSpace[0]-this.fSpace[2];let h=c;s.forEach(x=>{const A=t[x];h-=A==="fit"||A==="auto"?a[x]:this.length2em(A,c)});const u=o&&h>0?h/o:0;return s.map(x=>{const A=t[x];return A==="fit"?a[x]+u:A==="auto"?a[x]+(i.length===0?u:0):this.length2em(A,c)})}adjustColumnWidths(t){const{W:e}=this.getTableData(),s=this.getColumnAttributes("columnwidth",0),i=Array.from(s.keys()),n=[...i.filter(u=>s[u]==="fit").sort((u,x)=>e[x]-e[u]),...i.filter(u=>s[u]==="auto").sort((u,x)=>e[x]-e[u]),...i.filter(u=>ri(s[u])).sort((u,x)=>e[x]-e[u]),...i.filter(u=>s[u]!=="fit"&&s[u]!=="auto"&&!ri(s[u])).sort((u,x)=>e[x]-e[u])];if(!n.length)return;this.cWidths=i.map(u=>typeof this.cWidths[u]=="number"?this.cWidths[u]:e[u]);const o=t-Ar([].concat(this.cLines,this.cSpace))-this.fSpace[0]-this.fSpace[2];let a=Ar(this.cWidths)-o,c=0,h=0;for(;h<n.length&&(c+=e[n[h++]],!(c&&a/c<Jp)););a=1-a/c,n.slice(0,h).forEach(u=>this.cWidths[u]*=a)}getVerticalPosition(t,e){const s=this.node.attributes.get("equalrows"),{H:i,D:n}=this.getTableData(),o=s?this.getEqualRowHeight():0,a=this.getRowHalfSpacing();let c=this.fLine;for(let x=0;x<t;x++)c+=a[x]+(s?o:i[x]+n[x])+a[x+1]+this.rLines[x];const[h,u]=s?[(o+i[t]-n[t])/2,(o-i[t]+n[t])/2]:[i[t],n[t]];return c+={top:0,center:a[t]+(h+u)/2,bottom:a[t]+h+u+a[t+1],baseline:a[t]+h,axis:a[t]+h-.25}[e]||0,c}getFrameSpacing(){const t=this.fframe?this.convertLengths(this.getAttributeArray("framespacing")):[0,0];t[2]=t[0];const e=this.node.attributes.get("data-array-padding");if(e){const[s,i]=this.convertLengths(mi(e));t[0]=s,t[2]=i}return t}getEmHalfSpacing(t,e,s=1){const i=this.addEm(e,2/s);return i.unshift(this.em(t[0]*s)),i.push(this.em(t[1]*s)),i}getRowHalfSpacing(){const t=this.rSpace.map(e=>e/2);return t.unshift(this.fSpace[1]),t.push(this.fSpace[1]),t}getColumnHalfSpacing(){const t=this.cSpace.map(e=>e/2);return t.unshift(this.fSpace[0]),t.push(this.fSpace[2]),t}getAlignmentRow(){const[t,e]=mi(this.node.attributes.get("align"));if(e==null)return[t,null];let s=parseInt(e);return s<0&&(s+=this.numRows+1),[t,s<1||s>this.numRows?null:s-1]}getColumnAttributes(t,e=1){const s=this.numCols-e,i=this.getAttributeArray(t);if(i.length===0)return null;for(;i.length<s;)i.push(i[i.length-1]);return i.length>s&&i.splice(s),i}getRowAttributes(t,e=1){const s=this.numRows-e,i=this.getAttributeArray(t);if(i.length===0)return null;for(;i.length<s;)i.push(i[i.length-1]);return i.length>s&&i.splice(s),i}getAttributeArray(t){const e=this.node.attributes.get(t);return e?mi(e):[this.node.attributes.getDefault(t)]}addEm(t,e=1){return t?t.map(s=>this.em(s/e)):null}convertLengths(t){return t?t.map(e=>this.length2em(e)):null}constructor(t,e,s=null){super(t,e,s),this.numCols=0,this.numRows=0,this.data=null,this.pwidthCells=[],this.pWidth=0,this.adjustHD={top:(o,a,c,h,u)=>{o>c[u]&&(h[u]-=o-c[u],c[u]=o),o+a>c[u]+h[u]&&(h[u]=o+a-c[u])},bottom:(o,a,c,h,u)=>{a>h[u]&&(c[u]-=a-h[u],h[u]=a),o+a>c[u]+h[u]&&(c[u]=o+a-h[u])},center:(o,a,c,h,u)=>{o+a>c[u]+h[u]&&(c[u]=h[u]=(o+a)/2)},other:(o,a,c,h,u)=>{o>c[u]&&(c[u]=o),a>h[u]&&(h[u]=a)}},this.numCols=Qa(this.tableRows.map(o=>o.numCells)),this.numRows=this.childNodes.length,this.hasLabels=this.childNodes.reduce((o,a)=>o||a.node.isKind("mlabeledtr"),!1),this.findContainer(),this.isTop=!this.container||this.container.node.isKind("math")&&!this.container.parent,this.isTop&&(this.jax.table=this),this.getPercentageWidth();const i=this.node.attributes,n=i.get("frame");this.frame=n!=="none",this.fframe=this.frame||i.get("data-frame-styles")!==void 0,this.fLine=this.frame?.07:0,this.fSpace=this.getFrameSpacing(),this.cSpace=this.convertLengths(this.getColumnAttributes("columnspacing")),this.rSpace=this.convertLengths(this.getRowAttributes("rowspacing")),this.cLines=this.getColumnAttributes("columnlines").map(o=>o==="none"?0:.07),this.rLines=this.getRowAttributes("rowlines").map(o=>o==="none"?0:.07),this.cWidths=this.getColumnWidths(),this.adjustWideTable(),this.stretchColumns(),this.stretchRows()}getStyles(){super.getStyles();const t=this.node.attributes.get("data-frame-styles");if(!t)return;this.styles||(this.styles=new Oe(""));const e=t.split(/ /);for(const s of Vi.keys()){const i=e[s];i!=="none"&&this.styles.set(`border-${Vi[s]}`,`.07em ${i}`)}}computeBBox(t,e=!1){const{H:s,D:i}=this.getTableData();let n,o;
67if(this.node.attributes.get("equalrows")){const A=this.getEqualRowHeight();n=Ar([].concat(this.rLines,this.rSpace))+A*this.numRows}else n=Ar(s.concat(i,this.rLines,this.rSpace));n+=2*(this.fLine+this.fSpace[1]),o=this.naturalWidth();const a=this.node.attributes.get("width");a!=="auto"&&(o=Math.max(this.length2em(a,0)+2*this.fLine,o));const[c,h]=this.getBBoxHD(n);t.h=c,t.d=h,t.w=o;const[u,x]=this.getBBoxLR();t.L=u,t.R=x,ri(a)||this.setColumnPWidths()}setChildPWidths(t,e,s){const i=this.node.attributes.get("width");if(!ri(i))return!1;this.hasLabels||(this.bbox.pwidth="",this.container.bbox.pwidth="");const{w:n,L:o,R:a}=this.bbox,c=this.node.attributes.get("data-width-includes-label"),h=Math.max(n,this.length2em(i,Math.max(e,o+n+a)))-(c?o+a:0),u=this.node.attributes.get("equalcolumns")?Array(this.numCols).fill(this.percent(1/Math.max(1,this.numCols))):this.getColumnAttributes("columnwidth",0);return this.cWidths=this.getColumnWidthsFixed(u,h),this.pWidth=this.naturalWidth(),this.isTop&&(this.bbox.w=this.pWidth),this.setColumnPWidths(),this.pWidth!==n&&this.parent.invalidateBBox(),this.pWidth!==n}getAlignShift(){return this.isTop?super.getAlignShift():[this.container.getChildAlign(this.containerI),0]}}}const $0=(function(){var r;const t=Kp(re);return r=class extends t{constructor(e,s,i=null){super(e,s,i),this.itable=this.html("mjx-itable"),this.labels=this.html("mjx-itable")}getAlignShift(){const e=super.getAlignShift();return this.isTop||(e[1]=0),e}toCHTML(e){const s=this.standardChtmlNodes(e);this.adaptor.append(s[0],this.html("mjx-table",{},[this.itable]));for(const i of this.childNodes)i.toCHTML([this.itable]);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()}shiftColor(){const e=this.adaptor,s=e.getStyle(this.dom[0],"backgroundColor");s&&(e.setStyle(this.dom[0],"backgroundColor",""),e.setStyle(this.itable,"backgroundColor",s))}padRows(){const e=this.adaptor;for(const s of e.childNodes(this.itable))for(;e.childNodes(s).length<this.numCols;)e.append(s,this.html("mjx-mtd",{extra:!0}))}handleColumnSpacing(){const e=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,s=this.getEmHalfSpacing([this.fSpace[0],this.fSpace[2]],this.cSpace,e);for(const i of this.tableRows){let n=0;for(const o of i.tableCells){const a=s[n++],c=s[n],h=o?o.dom[0]:this.adaptor.childNodes(i.dom[0])[n];(n>1&&a!=="0.4em"||a!=="0"&&n===1)&&this.adaptor.setStyle(h,"paddingLeft",a),(n<this.numCols&&c!=="0.4em"||c!=="0"&&n===this.numCols)&&this.adaptor.setStyle(h,"paddingRight",c)}}}handleColumnLines(){if(this.node.attributes.get("columnlines")==="none")return;const e=this.getColumnAttributes("columnlines");for(const s of this.childNodes){let i=0;const n=this.adaptor.childNodes(s.dom[0]).slice(1);for(const o of n){const a=e[i++];a!=="none"&&this.adaptor.setStyle(o,"borderLeft",".07em "+a)}}}handleColumnWidths(){for(const e of this.childNodes){let s=0;for(const i of this.adaptor.childNodes(e.dom[0])){const n=this.cWidths[s++];if(n!==null){const o=typeof n=="number"?this.em(n):n;this.adaptor.setStyle(i,"width",o),this.adaptor.setStyle(i,"maxWidth",o),this.adaptor.setStyle(i,"minWidth",o)}}}}handleRowSpacing(){const e=this.childNodes[0]?1/this.childNodes[0].getBBox().rscale:1,s=this.getEmHalfSpacing([this.fSpace[1],this.fSpace[1]],this.rSpace,e),i=this.fframe;let n=0;for(const o of this.childNodes){const a=s[n++],c=s[n];for(const h of o.childNodes)(n>1&&a!=="0.215em"||i&&n===1)&&this.adaptor.setStyle(h.dom[0],"paddingTop",a),(n<this.numRows&&c!=="0.215em"||i&&n===this.numRows)&&this.adaptor.setStyle(h.dom[0],"paddingBottom",c)}}handleRowLines(){if(this.node.attributes.get("rowlines")==="none")return;const e=this.getRowAttributes("rowlines");let s=0;for(const i of this.childNodes.slice(1)){const n=e[s++];if(n!=="none")for(const o of this.adaptor.childNodes(i.dom[0]))this.adaptor.setStyle(o,"borderTop",".07em "+n)}}handleRowHeights(){this.node.attributes.get("equalrows")&&this.handleEqualRows()}handleEqualRows(){const e=this.getRowHalfSpacing(),{H:s,D:i,NH:n,ND:o}=this.getTableData(),a=this.getEqualRowHeight();for(let c=0;c<this.numRows;c++){const h=this.childNodes[c];this.setRowHeight(h,a+e[c]+e[c+1]+this.rLines[c]),a!==n[c]+o[c]&&this.setRowBaseline(h,a,(a-s[c]+i[c])/2)}}setRowHeight(e,s){this.adaptor.setStyle(e.dom[0],"height",this.em(s))}setRowBaseline(e,s,i){const n=e.node.attributes.get("rowalign");for(const o of e.childNodes)if(this.setCellBaseline(o,n,s,i))break}setCellBaseline(e,s,i,n){const o=e.node.attributes.get("rowalign");if(o==="baseline"||o==="axis"){const a=this.adaptor,c=a.lastChild(e.dom[0]);a.setStyle(c,"height",this.em(i)),a.setStyle(c,"verticalAlign",this.em(-n));const h=e.parent;if(!(h.node.isKind("mlabeledtr")&&e===h.childNodes[0]||s!=="baseline"&&s!=="axis"))return!0}return!1}handleFrame(){if(this.frame&&this.fLine){const e=this.node.attributes.get("frame");this.adaptor.setStyle(this.itable,"border",`${this.em(this.fLine)} ${e}`)}}handleWidth(){const e=this.adaptor,s=this.dom[0],{w:i,L:n,R:o}=this.getBBox();e.setStyle(s,"minWidth",this.em(n+i+o));let a=this.node.attributes.get("width");
vendor: 15,936 bytes, line 67
67if(ri(a))e.setStyle(s,"width",""),e.setAttribute(s,"width","full");else if(!this.hasLabels){if(a==="auto")return;a=this.em(this.length2em(a)+2*this.fLine)}const c=e.firstChild(s);if(e.setStyle(c,"width",a),e.setStyle(c,"minWidth",this.em(i)),n||o){e.setStyle(s,"margin","");const h=this.node.attributes.get("data-width-includes-label")?"padding":"margin";n===o?e.setStyle(c,h,"0 "+this.em(o)):e.setStyle(c,h,"0 "+this.em(o)+" 0 "+this.em(n))}e.setAttribute(this.itable,"width","full")}handleAlign(){const[e,s]=this.getAlignmentRow(),i=this.dom[0];if(s===null)e!=="axis"&&this.adaptor.setAttribute(i,"align",e);else{const n=this.getVerticalPosition(s,e);this.adaptor.setAttribute(i,"align","top"),this.adaptor.setStyle(i,"verticalAlign",this.em(n))}}handleJustify(){const e=this.getAlignShift()[0];e!=="center"&&this.adaptor.setAttribute(this.dom[0],"justify",e)}handleLabels(){if(!this.hasLabels)return;const e=this.labels,s=this.node.attributes,i=this.adaptor,n=s.get("side");i.setAttribute(this.dom[0],"side",n),i.setAttribute(e,"align",n),i.setStyle(e,n,"0");const[o,a]=this.addLabelPadding(n);if(a){const c=i.firstChild(this.dom[0]);this.setIndent(c,o,a)}this.updateRowHeights(),this.addLabelSpacing()}addLabelPadding(e){const[,s,i]=this.getPadAlignShift(e),n={};if(e==="right"&&!this.node.attributes.get("data-width-includes-label")){const o=this.node.attributes.get("width"),{w:a,L:c,R:h}=this.getBBox();n.style={width:ri(o)?"calc("+o+" + "+this.em(c+h)+")":this.em(c+a+h)}}return this.adaptor.append(this.dom[0],this.html("mjx-labels",n,[this.labels])),[s,i]}updateRowHeights(){const{H:e,D:s,NH:i,ND:n}=this.getTableData(),o=this.getRowHalfSpacing();for(let a=0;a<this.numRows;a++){const c=this.childNodes[a];this.setRowHeight(c,e[a]+s[a]+o[a]+o[a+1]+this.rLines[a]),e[a]!==i[a]||s[a]!==n[a]?this.setRowBaseline(c,e[a]+s[a],s[a]):c.node.isKind("mlabeledtr")&&this.setCellBaseline(c.childNodes[0],"",e[a]+s[a],s[a])}}addLabelSpacing(){const e=this.adaptor,s=this.node.attributes.get("equalrows"),{H:i,D:n}=this.getTableData(),o=s?this.getEqualRowHeight():0,a=this.getRowHalfSpacing();let c=this.fLine,h=e.firstChild(this.labels);for(let u=0;u<this.numRows;u++)this.childNodes[u].node.isKind("mlabeledtr")?(c&&e.insert(this.html("mjx-mtr",{style:{height:this.em(c)}}),h),e.setStyle(h,"height",this.em((s?o:i[u]+n[u])+a[u]+a[u+1])),h=e.next(h),c=this.rLines[u]):c+=a[u]+(s?o:i[u]+n[u])+a[u+1]+this.rLines[u]}},r.kind=Po.prototype.kind,r.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%"}},r})();function $p(r){return class extends r{get numCells(){return this.childNodes.length}get labeled(){return!1}get tableCells(){return this.childNodes}getChild(t){return this.childNodes[t]}getChildBBoxes(){return this.childNodes.map(t=>t.getBBox())}stretchChildren(t=null){const e=[],s=this.labeled?this.childNodes.slice(1):this.childNodes;for(const o of s){const a=o.childNodes[0];a.canStretch(xe.Vertical)&&e.push(a)}const i=e.length,n=this.childNodes.length;if(i&&n>1&&!t){let o=0,a=0;const c=i>1&&i===n;for(const h of s){const u=h.childNodes[0],x=u.stretch.dir===xe.None;if(c||x){const{h:A,d:I}=u.getBBox(x);A>o&&(o=A),I>a&&(a=I)}}t=[o,a]}if(t)for(const o of e){const a=o.coreRScale();o.coreMO().getStretchedVariant(t.map(c=>c*a))}}get fixesPWidth(){return!1}}}function Gp(r){return class extends r{get numCells(){return Math.max(0,this.childNodes.length-1)}get labeled(){return!0}get tableCells(){return this.childNodes.slice(1)}getChild(t){return this.childNodes[t+1]}getChildBBoxes(){return this.childNodes.slice(1).map(t=>t.getBBox())}}}const aa=(function(){var r;const t=$p(re);return(r=class extends t{toCHTML(e){super.toCHTML(e);const s=this.node.attributes.get("rowalign");s!=="baseline"&&this.adaptor.setAttribute(this.dom[0],"rowalign",s);const{h:i,d:n}=this.getBBox();this.adaptor.setStyle(this.dom[0],"height",this.em(i+n))}}).kind=Bn.prototype.kind,r.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"}},r})(),G0=(function(){var r;const t=Gp(aa);return(r=class extends t{toCHTML(e){super.toCHTML(e);const s=this.adaptor.firstChild(this.dom[0]);if(s){this.adaptor.remove(s);const i=this.node.attributes.get("rowalign"),n=i!=="baseline"&&i!=="axis"?{rowalign:i}:{},o=this.html("mjx-mtr",n,[s]);this.adaptor.append(this.parent.labels,o)}}markUsed(){super.markUsed(),this.jax.wrapperUsage.add(aa.kind)}}).kind=Ha.prototype.kind,r.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"}},r})();function Yp(r){return class extends r{get fixesPWidth(){return!1}invalidateBBox(){this.bboxComputed=!1,this.lineBBox=[]}getWrapWidth(t){const e=this.parent.parent,s=this.parent,i=this.node.childPosition()-(s.labeled?1:0);return typeof e.cWidths[i]=="number"?e.cWidths[i]:e.getTableData().W[i]}getChildAlign(t){return this.node.attributes.get("columnalign")}}}const Y0=(function(){var r;const t=Yp(re);return(r=class extends t{toCHTML(e){super.toCHTML(e);const s=this.node.attributes.get("rowalign"),i=this.node.attributes.get("columnalign");s!==this.parent.node.attributes.get("rowalign")&&this.adaptor.setAttribute(this.dom[0],"rowalign",s),i==="center"||this.parent.kind==="mlabeledtr"&&this===this.parent.childNodes[0]&&i===this.parent.parent.node.attributes.get("side")||this.adaptor.setStyle(this.dom[0],"textAlign",i),this.parent.parent.node.getProperty("useHeight")&&this.adaptor.append(this.dom[0],this.html("mjx-tstrut"))}}).kind=Bo.prototype.kind,r.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"}},r})(),bl={dx:".2em",dy:".1em",postDelay:600,clearDelay:100,hoverTimer:new Map,clearTimer:new Map,stopTimers:(r,t)=>{t.clearTimer.has(r)&&(clearTimeout(t.clearTimer.get(r)),t.clearTimer.delete(r)),t.hoverTimer.has(r)&&(clearTimeout(t.hoverTimer.get(r)),t.hoverTimer.delete(r))}};function Qp(r){return class extends r{get selected(){const t=this.node.attributes.get("selection"),e=Math.max(1,Math.min(this.childNodes.length,t))-1;return this.childNodes[e]||this.wrap(this.node.selected)}getParameters(){const t=this.node.attributes.get("data-offsets"),[e,s]=mi(t||"");this.tipDx=this.length2em(e||bl.dx),this.tipDy=this.length2em(s||bl.dy)}constructor(t,e,s=null){super(t,e,s);const i=this.constructor.actions,n=this.node.attributes.get("actiontype"),[o,a]=i.get(n)||[(c,h)=>{},{}];this.action=o,this.data=a,this.getParameters()}computeBBox(t,e=!1){t.updateFrom(this.selected.getOuterBBox()),this.selected.setChildPWidths(e)}get breakCount(){return this.node.isEmbellished?this.selected.coreMO().embellishedBreakCount:this.selected.breakCount}computeLineBBox(t){return this.getChildLineBBox(this.selected,t)}}}const Q0=(function(){var r;const t=Qp(re);return(r=class extends t{setEventHandler(e,s,i=null){(i?[i]:this.dom).forEach(n=>n.addEventListener(e,s))}Em(e){return this.em(e)}toCHTML(e){if(this.toEmbellishedCHTML(e))return;const s=this.standardChtmlNodes(e);this.selected.toCHTML(s),this.action(this,this.data)}}).kind=Io.prototype.kind,r.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","line-height":0,padding:".2em",border:"1px solid #888","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"},"mjx-container [data-mjx-collapsed]":{color:"#55F"},"@media (prefers-color-scheme: dark) /* chtml maction */":{"mjx-tool > mjx-tip":{border:"1px solid #888","background-color":"#303030",color:"#E0E0E0","box-shadow":"2px 2px 5px #000"},"mjx-status":{"background-color":"#303030",color:"#E0E0E0"},"mjx-container [data-mjx-collapsed]":{color:"#88F"}}},r.actions=new Map([["toggle",[(e,s)=>{e.dom.forEach(a=>{e.adaptor.setAttribute(a,"toggle",e.node.attributes.get("selection"))});const i=e.factory.jax.math,n=e.factory.jax.document,o=e.node;e.setEventHandler("click",a=>{i.end.node||(i.start.node=i.end.node=i.typesetRoot,i.start.n=i.end.n=0),o.nextToggleSelection(),i.rerender(n,o.attributes.get("data-maction-id")?K.ENRICHED:K.RERENDER),a.stopPropagation()})},{}]],["tooltip",[(e,s)=>{const i=e.childNodes[1];if(i)if(i.node.isKind("mtext")){const n=i.node.getText();e.dom.forEach(o=>e.adaptor.setAttribute(o,"title",n))}else{const n=e.adaptor;for(const o of e.dom){const a=n.append(o,e.html("mjx-tool",{style:{bottom:e.Em(-e.tipDy),right:e.Em(-e.tipDx)}},[e.html("mjx-tip")]));i.toCHTML([n.firstChild(a)]),e.setEventHandler("mouseover",c=>{s.stopTimers(o,s);const h=setTimeout(()=>n.setStyle(a,"display","block"),s.postDelay);s.hoverTimer.set(o,h),c.stopPropagation()},o),e.setEventHandler("mouseout",c=>{s.stopTimers(o,s);const h=setTimeout(()=>n.setStyle(a,"display",""),s.clearDelay);s.clearTimer.set(o,h),c.stopPropagation()},o)}}},bl]],["statusline",[(e,s)=>{const i=e.childNodes[1];if(i&&i.node.isKind("mtext")){const n=e.adaptor,o=i.node.getText();e.dom.forEach(a=>n.setAttribute(a,"statusline",o)),e.setEventHandler("mouseover",a=>{if(s.status===null){const c=n.body(n.document);s.status=n.append(c,e.html("mjx-status",{},[e.text(o)]))}a.stopPropagation()}),e.setEventHandler("mouseout",a=>{s.status&&(n.remove(s.status),s.status=null),a.stopPropagation()})}},{status:null}]]]),r})();function Zp(r){return class extends r{constructor(t,e,s=null){super(t,e,s),this.getParameters()}getParameters(){const{width:t,height:e,valign:s,src:i,index:n}=this.node.attributes.getList("width","height","valign","src","index");if(i)this.width=t==="auto"?1:this.length2em(t),this.height=e==="auto"?1:this.length2em(e),this.valign=this.length2em(s||"0");else{const o=String.fromCodePoint(parseInt(n)),a=this.node.factory;this.charWrapper=this.wrap(a.create("text").setText(o)),this.charWrapper.parent=this}}computeBBox(t,e=!1){this.charWrapper?t.updateFrom(this.charWrapper.getBBox()):(t.w=this.width,t.h=this.height+this.valign,t.d=-this.valign)}}}const Z0=(function(){var r;const t=Zp(re);return(r=class extends t{toCHTML(e){const s=this.standardChtmlNodes(e);if(this.charWrapper)return void this.charWrapper.toCHTML(s);const{src:i,alt:n}=this.node.attributes.getList("src","alt"),o={width:this.em(this.width),height:this.em(this.height)};this.valign&&(o.verticalAlign=this.em(this.valign));const a=this.html("img",{src:i,style:o,alt:n,title:n});this.adaptor.append(s[0],a)}}).kind=Fo.prototype.kind,r.styles={"mjx-mglyph > img":{display:"inline-block",border:0,padding:0}},r})();function tm(r){return class extends r{computeBBox(t,e=!1){if(this.childNodes.length){const{w:s,h:i,d:n}=this.childNodes[0].getBBox();t.w=s,t.h=i,t.d=n}}get breakCount(){return this.node.isEmbellished?this.coreMO().embellishedBreakCount:this.childNodes[0].breakCount}}}function em(r){class t extends r{constructor(s,i,n=null){super(s,i,n),this.rscale=this.getRScale()}computeBBox(s,i=!1){const n=this.node.getXML(),o=this.getHDW(n,"use","force"),{h:a,d:c,w:h}=o?this.splitHDW(o):this.measureXmlNode(n);s.w=h,s.h=a,s.d=c}getHTML(){let s=this.adaptor.clone(this.node.getXML());const i=this.getFontStyles();return(this.getHDW(s,"force")||this.jax.options.scale!==1)&&(s=this.addHDW(s,i)),this.html("mjx-html",{variant:this.parent.variant,style:i},[s])}getHDW(s,i,n=i){const o=this.jax.options.htmlHDW,a=this.adaptor.getAttribute(s,"data-mjx-hdw");return!a||o!==i&&o!==n?null:a}splitHDW(s){const i=1/this.metrics.scale,[n,o,a]=mi(s).map(c=>this.length2em(c||"0")*i);return{h:n,d:o,w:a}}getFontStyles(){var s;const i=this.adaptor,n=this.metrics;return{"font-family":((s=this.parent.styles)===null||s===void 0?void 0:s.get("font-family"))||n.family||i.fontFamily(i.parent(this.jax.math.start.node))||"initial","font-size":this.jax.fixed(n.em*this.rscale)+"px"}}measureXmlNode(s){const i=this.adaptor,n=this.html("mjx-xml-block",{style:{display:"inline-block"}},[i.clone(s)]),o=this.html("mjx-baseline",{style:{display:"inline-block",width:0,height:0}}),a=this.getFontStyles(),c=this.html("mjx-measure-xml",{style:a},[o,n]),h=this.jax.container;i.append(i.parent(this.jax.math.start.node),h),i.append(h,c);const u=this.metrics,x=u.em*u.scale*this.rscale,{left:A,right:I,bottom:q,top:et}=i.nodeBBox(n),Rt=(I-A)/x,Ce=(i.nodeBBox(o).top-et)/x,Ns=(q-et)/x-Ce;return i.remove(h),i.remove(c),{w:Rt,h:Ce,d:Ns}}getStyles(){}getScale(){}getVariant(){}}return t.autoStyle=!1,t.styles={"mjx-measure-xml":{position:"absolute",left:0,top:0,display:"inline-block","line-height":"normal","white-space":"normal"},"mjx-html":{display:"inline-block","line-height":"normal","text-align":"initial","white-space":"initial"},"mjx-html-holder":{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0}},t}const td=(function(){var r;const t=tm(re);return(r=class extends t{toCHTML(e){if(this.toEmbellishedCHTML(e))return;const s=this.standardChtmlNodes(e);this.childNodes.length&&this.childNodes[0].toCHTML(s)}}).kind=jo.prototype.kind,r})(),ed=(function(){var r;return(r=class extends re{toCHTML(t){super.toCHTML(t)}computeBBox(){return this.bbox}}).kind=Uo.prototype.kind,r})(),sd=(function(){var r;return(r=class extends re{}).kind=Gr.prototype.kind,r.styles={"mjx-annotation-xml":{"font-family":"initial","line-height":"normal"}},r})(),El=(function(){var r;const t=em(re);return(r=class extends t{toCHTML(e){this.markUsed(),this.dom=[this.adaptor.append(e[0],this.getHTML())]}
vendor: 4,664 bytes, line 67
67addHDW(e,s){const i=this.jax.options.scale,{h:n,d:o,w:a}=this.bbox,c=i*this.metrics.scale;return s.width=this.em(a*c),s.height=this.em((n+o)*c),s["vertical-align"]=this.em(-o*c),s.position="relative",this.html("mjx-html-holder",{style:{transform:`scale(${this.jax.fixed(i)})`,"transform-origin":"top left"}},[e])}}).kind=Eo.prototype.kind,r})();function sm(r){return class extends r{computeBBox(t,e=!1){super.computeBBox(t,e),this.childNodes[0]&&this.childNodes[0].bbox.ic&&(t.ic=this.childNodes[0].bbox.ic)}}}const id=(function(){var r;const t=sm(re);return(r=class extends t{toCHTML(e){super.toCHTML(e),this.dom.forEach(s=>this.adaptor.setAttribute(s,"texclass",yh[this.node.texClass]))}}).kind=Fn.prototype.kind,r})();function im(r){return class extends r{remappedText(t,e){const s=this.parent.stretch.c;return s?[s]:this.parent.remapChars(this.unicodeChars(t,e))}computeBBox(t,e=!1){const s=this.parent.variant,i=this.node.getText();if(s==="-explicitFont"){const n=this.jax.getFontData(this.parent.styles),{w:o,h:a,d:c}=this.jax.measureText(i,s,n);t.h=a,t.d=c,t.w=o}else{const n=this.remappedText(i,s);let o="";t.empty();for(let a=0;a<n.length;a++){const[c,h,u,x]=this.getVariantChar(s,n[a]);if(x.unknown)o+=String.fromCodePoint(n[a]);else{if(o=this.addUtextBBox(t,o,s),this.updateBBox(t,c,h,u),t.ic=x.ic||0,t.sk=x.sk||0,t.dx=x.dx||0,!x.oc||a<n.length-1)continue;const A=this.parent.childNodes;if(this.node!==A[A.length-1].node)continue;const I=this.parent.parent.node;let q=I.isKind("mrow")||I.isInferred?I.childNodes[I.childIndex(this.parent.node)+1]:null;q?.isKind("mo")&&q.getText()==="⁢"&&(q=I.childNodes[I.childIndex(q)+1]),q&&q.attributes.get("mathvariant")===s?t.oc=x.oc:t.ic=x.oc}}this.addUtextBBox(t,o,s),n.length>1&&(t.sk=0),t.clean()}}addUtextBBox(t,e,s){if(e){const{h:i,d:n,w:o}=this.jax.measureText(e,s);this.updateBBox(t,i,n,o)}return""}updateBBox(t,e,s,i){t.w+=i,e>t.h&&(t.h=e),s>t.d&&(t.d=s)}getStyles(){}getVariant(){}getScale(){}getSpace(){}}}const rd=(function(){var r;const t=im(re);return r=class extends t{toCHTML(e){this.markUsed();const s=e[0],i=this.adaptor,n=this.parent.variant,o=this.node.getText();if(o.length===0)return;const a=this.getBBox();if(n==="-explicitFont")i.append(s,this.jax.unknownText(o,n,a.w));else{let c="";const h=this.remappedText(o,n),u=h.length>1?this.em(this.parent.getBBox().h):"",x=h.length;for(let A=0;A<x;A++){const I=h[A],q=this.getVariantChar(n,I)[3];if(q.unknown)c+=String.fromCodePoint(I);else{c=this.addUtext(c,n,s);const et=q.ff||(q.f?`${this.font.cssFontPrefix}-${q.f}`:""),Rt=i.append(s,this.html("mjx-c",{class:this.char(I)+(et?" "+et:"")},[this.text(q.c||String.fromCodePoint(I))]));(A<x-1||a.oc)&&i.setAttribute(Rt,"noic","true"),u&&i.setStyle(Rt,"padding-top",u),this.font.charUsage.add([n,I])}}this.addUtext(c,n,s)}}addUtext(e,s,i){return e&&this.adaptor.append(i,this.jax.unknownText(e,s)),""}},r.kind=Kr.prototype.kind,r.autoStyle=!1,r.styles={"mjx-c":{display:"inline-block",width:0,"text-align":"right"},"mjx-utext":{display:"inline-block",padding:".75em 0 .2em 0"}},r})(),nd=(function(){var r;return(r=class extends El{}).kind=Va.prototype.kind,r})(),rm={[y0.kind]:y0,[ul.kind]:ul,[_0.kind]:_0,[N0.kind]:N0,[v0.kind]:v0,[T0.kind]:T0,[C0.kind]:C0,[L0.kind]:L0,[A0.kind]:A0,[S0.kind]:S0,[H0.kind]:H0,[q0.kind]:q0,[pl.kind]:pl,[V0.kind]:V0,[fl.kind]:fl,[gl.kind]:gl,[Gn.kind]:Gn,[z0.kind]:z0,[X0.kind]:X0,[J0.kind]:J0,[K0.kind]:K0,[W0.kind]:W0,[$0.kind]:$0,[aa.kind]:aa,[G0.kind]:G0,[Y0.kind]:Y0,[Q0.kind]:Q0,[Z0.kind]:Z0,[td.kind]:td,[ed.kind]:ed,[sd.kind]:sd,[El.kind]:El,[id.kind]:id,[rd.kind]:rd,[nd.kind]:nd,[re.kind]:re};class od extends b0{}od.defaultNodes=rm;const Eg={40:{dir:D,sizes:[.997,1.095,1.195,1.445,1.793,2.093,2.393,2.991],stretch:[9115,9116,9117],HDW:[.748,.248,.875]},41:{dir:D,sizes:[.997,1.095,1.195,1.445,1.793,2.093,2.393,2.991],stretch:[9118,9119,9120],HDW:[.748,.248,.875]},45:{c:8722,dir:W,stretch:[0,8722],HDW:[.583,.083,.778],ext:.112,hd:[.583,.083]},47:{dir:D,sizes:[1.001,1.311,1.717,2.249,2.945,3.859,5.055,6.621]},61:{dir:W,stretch:[0,61],HDW:[.367,-.133,.778],ext:.112,hd:[.367,-.133]},91:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9121,9122,9123],HDW:[.75,.25,.667]},92:{dir:D,sizes:[1.001,1.311,1.717,2.249,2.945,3.859,5.055,6.621]},93:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9124,9125,9126],HDW:[.75,.25,.667]},94:{c:770,dir:W,sizes:[.5,.644,.768,.919,1.1,1.32,1.581,1.896]},95:{c:8211,dir:W,stretch:[0,8211],HDW:[.277,-.255,.5],ext:.001,hd:[.277,-.255]},123:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9127,123,9129,9128],stretchv:[0,1,0,0],HDW:[.75,.25,.902]}
vendor: 21,049 bytes, line 67
67,124:{dir:D,sizes:[1.001,1.203,1.443,1.735,2.085,2.505,3.005,3.605],schar:[124,8739],stretch:[0,8739],stretchv:[0,2],HDW:[.75,.25,.333]},125:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9131,123,9133,9132],stretchv:[0,1,0,0],HDW:[.75,.25,.902]},126:{c:771,dir:W,sizes:[.5,.652,.778,.931,1.115,1.335,1.599,1.915]},175:{c:773,dir:W,sizes:[.392,.568],stretch:[0,773],stretchv:[0,1],HDW:[.67,-.63,0],hd:[.67,-.63]},710:{c:770,dir:W,sizes:[.5,.644,.768,.919,1.1,1.32,1.581,1.896]},711:{c:780,dir:W,sizes:[.366,.644,.768,.919,1.1,1.32,1.581,1.896]},713:{c:773,dir:W,sizes:[.392,.568],stretch:[0,773],stretchv:[0,1],HDW:[.67,-.63,0],hd:[.67,-.63]},728:{c:774,dir:W,sizes:[.376,.658,.784,.937,1.12,1.341,1.604,1.92]},732:{c:771,dir:W,sizes:[.5,.652,.778,.931,1.115,1.335,1.599,1.915]},770:{dir:W,sizes:[.5,.644,.768,.919,1.1,1.32,1.581,1.896]},771:{dir:W,sizes:[.5,.652,.778,.931,1.115,1.335,1.599,1.915]},773:{dir:W,sizes:[.392,.568],stretch:[0,773],stretchv:[0,1],HDW:[.67,-.63,0],hd:[.67,-.63]},774:{dir:W,sizes:[.376,.658,.784,.937,1.12,1.341,1.604,1.92]},780:{dir:W,sizes:[.366,.644,.768,.919,1.1,1.32,1.581,1.896]},8211:{dir:W,stretch:[0,8211],HDW:[.277,-.255,.5],ext:.001,hd:[.277,-.255]},8212:{dir:W,stretch:[0,8212],HDW:[.277,-.255,1],ext:.001,hd:[.277,-.255]},8213:{dir:W,stretch:[0,8213],HDW:[.27,-.23,1.152],ext:.112,hd:[.27,-.23]},8214:{dir:D,sizes:[1.001,1.203,1.443,1.735,2.085,2.503,3.004,3.607],schar:[8214,8741],stretch:[0,8741],stretchv:[0,2],HDW:[.75,.25,.555]},8254:{c:175,dir:W,sizes:[.392,.568],stretch:[0,773],stretchv:[0,1],HDW:[.67,-.63,0],hd:[.67,-.63]},8260:{dir:D,sizes:[1.001,1.311,1.717,2.249,2.945,3.859,5.055,6.621]},8400:{dir:W,sizes:[.422,.667],stretch:[8400,8400],stretchv:[3,1],HDW:[.711,-.601,0],hd:[.631,-.601]},8401:{dir:W,sizes:[.422,.667],stretch:[0,8400,8401],stretchv:[0,1,4],HDW:[.711,-.601,0],hd:[.631,-.601]},8406:{dir:W,sizes:[.416,.659],stretch:[8406,8400],stretchv:[3,1],HDW:[.711,-.521,0],hd:[.631,-.601]},8407:{dir:W,sizes:[.416,.659],stretch:[0,8400,8407],stretchv:[0,1,4],HDW:[.711,-.521,0],hd:[.631,-.601]},8417:{dir:W,sizes:[.47,.715],stretch:[8406,8400,8407],stretchv:[3,1,4],HDW:[.711,-.521,0],hd:[.631,-.601]},8428:{dir:W,sizes:[.422,.667],stretch:[0,845,8428],stretchv:[0,1,4],HDW:[-.171,.281,0],hd:[-.171,.201]},8429:{dir:W,sizes:[.422,.667],stretch:[8429,845],stretchv:[3,1],HDW:[-.171,.281,0],hd:[-.171,.201]},8430:{dir:W,sizes:[.416,.659],stretch:[8430,845],stretchv:[3,1],HDW:[-.091,.281,0],hd:[-.171,.201]},8431:{dir:W,sizes:[.416,.659],stretch:[0,845,8431],stretchv:[0,1,4],HDW:[-.091,.281,0],hd:[-.171,.201]},8512:{dir:D,sizes:[.684,1.401],variants:[0,2]},8592:{dir:W,sizes:[1,1.463],variants:[0,0],schar:[8592,10229],stretch:[8592,8592],stretchv:[3,1],HDW:[.51,.01,1],hd:[.274,-.226]},8593:{dir:D,sizes:[.883,1.349],variants:[0,2],stretch:[8593,8593],stretchv:[3,1],HDW:[.679,.203,.5]},8594:{dir:W,sizes:[1,1.463],variants:[0,0],schar:[8594,10230],stretch:[0,8592,8594],stretchv:[0,1,4],HDW:[.51,.01,1],hd:[.274,-.226]},8595:{dir:D,sizes:[.883,1.349],variants:[0,2],stretch:[0,8593,8595],stretchv:[0,1,4],HDW:[.703,.179,.5]},8596:{dir:W,sizes:[1,1.442],variants:[0,0],schar:[8596,10231],stretch:[8592,8592,8594],stretchv:[3,1,4],HDW:[.51,.01,1],hd:[.274,-.226]},8597:{dir:D,sizes:[1.015,1.015],variants:[0,2],stretch:[8593,8593,8595],stretchv:[3,1,4],HDW:[.757,.257,.5]},8598:{dir:D,sizes:[.918,1.384],variants:[0,2]},8599:{dir:D,sizes:[.918,1.384],variants:[0,2]},8600:{dir:D,sizes:[.918,1.384],variants:[0,2]},8601:{dir:D,sizes:[.918,1.384],variants:[0,2]},8602:{dir:W,sizes:[.997,1.463],variants:[0,2],stretch:[8602,8592,0,8602],stretchv:[3,1,0,1],HDW:[.51,.01,.997],hd:[.274,-.226]},8603:{dir:W,sizes:[.997,1.463],variants:[0,2],stretch:[0,8592,8603,8602],stretchv:[0,1,4,1],HDW:[.51,.01,.997],hd:[.274,-.226]},8606:{dir:W,sizes:[1.017,1.463],variants:[0,2],stretch:[8606,8592],stretchv:[3,1],HDW:[.51,.01,1.017],hd:[.274,-.226]},8608:{dir:W,sizes:[1.017,1.463],variants:[0,2],stretch:[0,8592,8608],stretchv:[0,1,4],HDW:[.51,.01,1.017],hd:[.274,-.226]},8610:{dir:W,sizes:[1.192,1.658],variants:[0,2],stretch:[8592,8592,8610],stretchv:[3,1,4],HDW:[.51,.01,1.192],hd:[.274,-.226]},8611:{dir:W,sizes:[1.192,1.658],variants:[0,2],stretch:[8611,8592,8594],stretchv:[3,1,4],HDW:[.51,.01,1.192],hd:[.274,-.226]},8612:{dir:W,sizes:[.977,1.443],variants:[0,0],schar:[8612,10235],stretch:[8592,8592,8612],stretchv:[3,1,4],HDW:[.51,.011,.977],hd:[.274,-.226]},8614:{dir:W,sizes:[.977,1.443],variants:[0,0],schar:[8614,10236],stretch:[8614,8592,8594],stretchv:[3,1,4],HDW:[.51,.011,.977],hd:[.274,-.226]},8617:{dir:W,sizes:[.997,1.463],variants:[0,2],stretch:[8592,8617,8617],stretchv:[3,1,4],HDW:[.546,.01,.997],hd:[.274,-.226]},8618:{dir:W,sizes:[.997,1.463],variants:[0,2],stretch:[8618,8617,8594],stretchv:[3,1,4],HDW:[.546,.01,.997],hd:[.274,-.226]},8619:{dir:W,sizes:[.997,1.463],variants:[0,2],stretch:[8592,8617,8619],stretchv:[3,1,4],HDW:[.55,.05,.997],hd:[.274,-.226]},8620:{dir:W,sizes:[.997,1.463],variants:[0,2],stretch:[8620,8617,8594],stretchv:[3,1,4],HDW:[.55,.05,.997],hd:[.274,-.226]},8630:{dir:W,sizes:[.98,1.33],variants:[0,2]},8631:{dir:W,sizes:[.98,1.33],variants:[0,2]},8636:{dir:W,sizes:[1,1.478],variants:[0,2],stretch:[8636,8636],stretchv:[3,1],HDW:[.499,-.226,1],hd:[.273,-.226]},8637:{dir:W,sizes:[1.012,1.478],variants:[0,2],stretch:[8637,8636],stretchv:[3,1],HDW:[.273,0,1.012],hd:[.273,-.226]},8638:{dir:D,sizes:[.901,1.367],variants:[0,2],stretch:[8638,8638],stretchv:[3,1],HDW:[.697,.203,.441]},8639:{dir:D,sizes:[.901,1.367],variants:[0,2],stretch:[8639,8639],stretchv:[3,1],HDW:[.697,.203,.441]},8640:{dir:W,sizes:[1,1.478],variants:[0,2],stretch:[0,8636,8640],stretchv:[0,1,4],HDW:[.499,-.226,1],hd:[.273,-.226]},8641:{dir:W,sizes:[1.012,1.478],variants:[0,2],stretch:[0,8636,8641],stretchv:[0,1,4],HDW:[.273,0,1.012],hd:[.273,-.226]},8642:{dir:D,sizes:[.901,1.367],variants:[0,2],stretch:[0,8638,8642],stretchv:[0,1,4],HDW:[.703,.197,.441]},8643:{dir:D,sizes:[.901,1.367],variants:[0,2],stretch:[0,8639,8643],stretchv:[0,1,4],HDW:[.703,.197,.441]},8644:{dir:W,sizes:[1.018,1.484],variants:[0,2],stretch:[8644,8644,8644],stretchv:[3,1,4],HDW:[.669,.172,1.018],hd:[.432,-.065]},8645:{dir:D,sizes:[.907,1.373],variants:[0,2],stretch:[8645,8645,8645],stretchv:[3,1,4],HDW:[.703,.203,.896]},8646:{dir:W,sizes:[1.018,1.484],variants:[0,2],stretch:[8646,8644,8646],stretchv:[3,1,4],HDW:[.669,.172,1.018],hd:[.432,-.065]},8647:{dir:W,sizes:[.997,1.463],variants:[0,2],stretch:[8647,8647],stretchv:[3,1],HDW:[.75,.25,.997],hd:[.512,.012]},8648:{dir:D,sizes:[.883,1.349],variants:[0,2],stretch:[8648,8648],stretchv:[3,1],HDW:[.679,.203,.992]},8649:{dir:W,sizes:[.997,1.463],variants:[0,2],stretch:[0,8647,8649],stretchv:[0,1,4],HDW:[.75,.25,.997],hd:[.512,.012]},8650:{dir:D,sizes:[.883,1.349],variants:[0,2],stretch:[0,8648,8650],stretchv:[0,1,4],HDW:[.703,.179,.992]},8651:{dir:W,sizes:[1.018,1.484],variants:[0,2],stretch:[8651,8651,8651],stretchv:[3,1,4],HDW:[.598,.098,1.018],hd:[.369,-.131]},8652:{dir:W,sizes:[1.018,1.484],variants:[0,2],stretch:[8652,8651,8652],stretchv:[3,1,4],HDW:[.598,.098,1.018],hd:[.369,-.131]},8653:{dir:W,sizes:[.991,1.457],variants:[0,2],stretch:[8653,8654,0,8653],stretchv:[3,1,0,1],HDW:[.52,.02,.991],hd:[.369,-.131]},8654:{dir:W,sizes:[1.068,1.534],variants:[0,2],stretch:[8656,8654,8658,8653],stretchv:[3,1,4,1],HDW:[.52,.02,1.068],hd:[.369,-.131]},8655:{dir:W,sizes:[.991,1.457],variants:[0,2],stretch:[0,8654,8658,8653],stretchv:[0,1,4,1],HDW:[.52,.02,.991],hd:[.369,-.131]},8656:{dir:W,sizes:[1,1.457],variants:[0,0],schar:[8656,10232],stretch:[8656,8656],stretchv:[3,1],HDW:[.52,.02,1],hd:[.369,-.131]},8657:{dir:D,sizes:[.88,1.346],variants:[0,2],stretch:[8657,8657],stretchv:[3,1],HDW:[.676,.203,.652]},8658:{dir:W,sizes:[1,1.457],variants:[0,0],schar:[8658,10233],stretch:[0,8656,8658],stretchv:[0,1,4],HDW:[.52,.02,1],hd:[.369,-.131]},8659:{dir:D,sizes:[.88,1.346],variants:[0,2],stretch:[0,8657,8659],stretchv:[0,1,4],HDW:[.703,.176,.652]},8660:{dir:W,sizes:[1,1.534],variants:[0,0],schar:[8660,10234],stretch:[8656,8656,8658],stretchv:[3,1,4],HDW:[.52,.02,1],hd:[.369,-.131]},8661:{dir:D,sizes:[.957,1.423],variants:[0,2],stretch:[8657,8657,8659],stretchv:[3,1,4],HDW:[.728,.228,.652]},8666:{dir:W,sizes:[1.015,1.461],variants:[0,2],stretch:[8666,8666],stretchv:[3,1],HDW:[.617,.117,1.015],hd:[.466,-.034]},8667:{dir:W,sizes:[1.015,1.461],variants:[0,2],stretch:[0,8666,8667],stretchv:[0,1,4],HDW:[.617,.117,1.015],hd:[.466,-.034]},8693:{dir:D,sizes:[.907,1.373],variants:[0,2],stretch:[8693,8645,8693],stretchv:[3,1,4],HDW:[.703,.203,.896]},8694:{dir:W,sizes:[.997,1.463],variants:[0,2],stretch:[0,8694,8694],stretchv:[0,1,4],HDW:[.99,.49,.997],hd:[.751,.251]},8719:{dir:D,sizes:[1.001,1.401],variants:[0,2]},8720:{dir:D,sizes:[1.001,1.401],variants:[0,2]},8721:{dir:D,sizes:[1.001,1.401],variants:[0,2]},8722:{dir:W,stretch:[0,8722],HDW:[.583,.083,.778],ext:.112,hd:[.583,.083]},8725:{c:47,dir:D,sizes:[1.001,1.311,1.717,2.249,2.945,3.859,5.055,6.621]},8730:{dir:D,sizes:[1.001,1.201,1.801,2.401,3.001],stretch:[8730,8730,9143],stretchv:[3,1,0],HDW:[.04,.96,1.056],fullExt:[.64,2.44]},8739:{dir:D,sizes:[1.001,1.203,1.443,1.735,2.085,2.505,3.005,3.605],stretch:[0,8739],stretchv:[0,2],HDW:[.75,.25,.333]},8741:{dir:D,sizes:[1.001,1.203,1.443,1.735,2.085,2.503,3.004,3.607],stretch:[0,8741],stretchv:[0,2],HDW:[.75,.25,.555]},8747:{dir:D,sizes:[1.112,2.223],variants:[0,2],stretch:[8992,9134,8993],HDW:[.805,.306,1.185]},8748:{dir:D,sizes:[1.112,2.223],variants:[0,2]},8749:{dir:D,sizes:[1.112,2.223],variants:[0,2]},8750:{dir:D,sizes:[1.112,2.223],variants:[0,2]},8751:{dir:D,sizes:[1.112,2.223],variants:[0,2]},8752:{dir:D,sizes:[1.112,2.223],variants:[0,2]},8753:{dir:D,sizes:[1.112,2.223],variants:[0,2]},8754:{dir:D,sizes:[1.112,2.223],variants:[0,2]},8755:{dir:D,sizes:[1.112,2.223],variants:[0,2]},8801:{dir:W,stretch:[0,8801],HDW:[.464,-.036,.778],ext:.112,hd:[.464,-.036]},8803:{dir:W,stretch:[0,8803],HDW:[.561,.061,.778],ext:.112,hd:[.561,.061]},8866:{dir:D,sizes:[.685,.869],variants:[0,0],schar:[8866,10205]},8867:{dir:D,sizes:[.685,.869],variants:[0,0],schar:[8867,10206]},8868:{dir:D,sizes:[.685,.869],variants:[0,0],schar:[8868,10201]},8869:{dir:D,sizes:[.685,.869],variants:[0,0],schar:[8869,10200]},8896:{dir:D,sizes:[1.045,1.394],variants:[0,2]},8897:{dir:D,sizes:[1.045,1.394],variants:[0,2]},8898:{dir:D,sizes:[1.023,1.357],variants:[0,2]},8899:{dir:D,sizes:[1.023,1.357],variants:[0,2]},8968:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9121,9122],HDW:[.75,.25,.667]},8969:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[9124,9125],HDW:[.75,.25,.667]},8970:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[0,9122,9123],HDW:[.75,.25,.667]},8971:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[0,9125,9126],HDW:[.75,.25,.667]},8978:{c:9180,dir:W,sizes:[.504,1.006,1.508,2.012,2.516,3.02,3.524,4.032],stretch:[9180,9180,9180],stretchv:[3,1,4],HDW:[.796,-.502,.504],hd:[.796,-.689]},8994:{c:9180,dir:W,sizes:[.504,1.006,1.508,2.012,2.516,3.02,3.524,4.032],stretch:[9180,9180,9180],stretchv:[3,1,4],HDW:[.796,-.502,.504],hd:[.796,-.689]},8995:{c:9181,dir:W,sizes:[.504,1.006,1.508,2.012,2.516,3.02,3.524,4.032],stretch:[9181,9181,9181],stretchv:[3,1,4],HDW:[-.072,.366,.504],hd:[-.259,.366]},9001:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],schar:[9001,10216]},9002:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],schar:[9002,10217]},9130:{dir:D,sizes:[.748],stretch:[0,9130],HDW:[.748,0,.902]},9135:{c:8211,dir:W,stretch:[0,8211],HDW:[.277,-.255,.5],ext:.001,hd:[.277,-.255]},9136:{dir:D,sizes:[1.125],stretch:[9127,9130,9133],HDW:[.75,.375,.902]},9137:{dir:D,sizes:[1.125],stretch:[9131,9130,9129],HDW:[.75,.375,.902]},9140:{dir:W,sizes:[.36,.735,1.11,1.485,1.86,2.235,2.61,2.985],stretch:[9140,9140,9140],stretchv:[3,1,4],HDW:[.772,-.504,.36],hd:[.772,-.706]},9141:{dir:W,sizes:[.36,.735,1.11,1.485,1.86,2.235,2.61,2.985],stretch:[9141,9141,9141],stretchv:[3,1,4],HDW:[-.074,.342,.36],hd:[-.276,.342]},9168:{dir:D,sizes:[.642],stretch:[0,9168],HDW:[.642,0,.333]},9180:{dir:W,sizes:[.504,1.006,1.508,2.012,2.516,3.02,3.524,4.032],stretch:[9180,9180,9180],stretchv:[3,1,4],HDW:[.796,-.502,.504],hd:[.796,-.689]},9181:{dir:W,sizes:[.504,1.006,1.508,2.012,2.516,3.02,3.524,4.032],stretch:[9181,9181,9181],stretchv:[3,1,4],HDW:[-.072,.366,.504],hd:[-.259,.366]},9182:{dir:W,sizes:[.492,.993,1.494,1.996,2.498,3,3.502,4.006],stretch:[9182,175,9182,9182],stretchv:[3,1,4,1],HDW:[.85,-.493,.492],hd:[.724,-.618]},9183:{dir:W,sizes:[.492,.993,1.494,1.996,2.498,3,3.502,4.006],stretch:[9183,95,9183,9183],stretchv:[3,1,4,1],HDW:[-.062,.419,.492],hd:[-.188,.294]},9184:{dir:W,sizes:[.546,1.048,1.55,2.056,2.564,3.068,3.574,4.082],stretch:[9184,9184,9184],stretchv:[3,1,4],HDW:[.873,-.605,.546],hd:[.873,-.766]},9185:{dir:W,sizes:[.546,1.048,1.55,2.056,2.564,3.068,3.574,4.082],stretch:[9185,9185,9185],stretchv:[3,1,4],HDW:[-.175,.443,.546],hd:[-.336,.443]},9472:{c:8211,dir:W,stretch:[0,8211],HDW:[.277,-.255,.5],ext:.001,hd:[.277,-.255]},10072:{c:8739,dir:D,sizes:[1.001,1.203,1.443,1.735,2.085,2.505,3.005,3.605],stretch:[0,8739],stretchv:[0,2],HDW:[.75,.25,.333]},10197:{dir:D,sizes:[.511,.628],variants:[0,2]},10198:{dir:D,sizes:[.511,.628],variants:[0,2]},10199:{dir:D,sizes:[.511,.628],variants:[0,2]},10214:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[10214,10214,10214],stretchv:[3,1,4],HDW:[.75,.25,1.007]},10215:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001],stretch:[10215,10215,10215],stretchv:[3,1,4],HDW:[.75,.25,1.007]},10216:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},10217:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},10218:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},10219:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},10222:{dir:D,sizes:[1.025,1.127,1.229,1.483,1.837,2.141,2.445,3.053],stretch:[10222,10222,10222],stretchv:[3,1,4],HDW:[.762,.262,.647]},10223:{dir:D,sizes:[1.025,1.127,1.229,1.483,1.837,2.141,2.445,3.053],stretch:[10223,10223,10223],stretchv:[3,1,4],HDW:[.762,.262,.647]},10229:{c:8592,dir:W,sizes:[1,1.463],variants:[0,0],schar:[8592,10229],stretch:[8592,8592],stretchv:[3,1],HDW:[.51,.01,1],hd:[.274,-.226]},10230:{c:8594,dir:W,sizes:[1,1.463],variants:[0,0],schar:[8594,10230],stretch:[0,8592,8594],stretchv:[0,1,4],HDW:[.51,.01,1],hd:[.274,-.226]},10231:{c:8596,dir:W,sizes:[1,1.442],variants:[0,0],schar:[8596,10231],stretch:[8592,8592,8594],stretchv:[3,1,4],HDW:[.51,.01,1],hd:[.274,-.226]},10232:{c:8656,dir:W,sizes:[1,1.457],variants:[0,0],schar:[8656,10232],stretch:[8656,8656],stretchv:[3,1],HDW:[.52,.02,1],hd:[.369,-.131]},10233:{c:8658,dir:W,sizes:[1,1.457],variants:[0,0],schar:[8658,10233],stretch:[0,8656,8658],stretchv:[0,1,4],HDW:[.52,.02,1],hd:[.369,-.131]},10234:{c:8660,dir:W,sizes:[1,1.534],variants:[0,0],schar:[8660,10234],stretch:[8656,8656,8658],stretchv:[3,1,4],HDW:[.52,.02,1],hd:[.369,-.131]},10235:{c:8612,dir:W,sizes:[.977,1.443],variants:[0,0],schar:[8612,10235],stretch:[8592,8592,8612],stretchv:[3,1,4],HDW:[.51,.011,.977],hd:[.274,-.226]},10236:{c:8614,dir:W,sizes:[.977,1.443],variants:[0,0],schar:[8614,10236],stretch:[8614,8592,8594],stretchv:[3,1,4],HDW:[.51,.011,.977],hd:[.274,-.226]},10570:{dir:W,sizes:[1.012],stretch:[8636,8636,8641],stretchv:[3,1,4],HDW:[.499,0,1.012],hd:[.273,-.226]},10571:{dir:W,sizes:[1.012],stretch:[8637,8636,8640],stretchv:[3,1,4],HDW:[.499,0,1.012],hd:[.273,-.226]},10574:{dir:W,sizes:[1],stretch:[8636,8636,8640],stretchv:[3,1,4],HDW:[.499,-.226,1],hd:[.273,-.226]},10576:{dir:W,sizes:[1],stretch:[8637,8636,8641],stretchv:[3,1,4],HDW:[.273,0,1],hd:[.273,-.226]},10586:{dir:W,sizes:[1],stretch:[8636,8636,8612],stretchv:[3,1,4],HDW:[.51,.011,1],hd:[.273,-.226]},10587:{dir:W,sizes:[1],stretch:[8614,8636,8640],stretchv:[3,1,4],HDW:[.51,.011,1],hd:[.273,-.226]},10590:{dir:W,sizes:[1],stretch:[8637,8636,8612],stretchv:[3,1,4],HDW:[.51,.011,1],hd:[.273,-.226]},10591:{dir:W,sizes:[1],stretch:[8614,8636,8641],stretchv:[3,1,4],HDW:[.51,.011,1],hd:[.273,-.226]},10627:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},10628:{dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},10629:{dir:D,sizes:[.997,1.095,1.195,1.445,1.793,2.093,2.393,2.991]},10630:{dir:D,sizes:[.997,1.095,1.195,1.445,1.793,2.093,2.393,2.991]},10744:{dir:D,sizes:[1.076,1.917],variants:[0,2]},10745:{dir:D,sizes:[1.076,1.917],variants:[0,2]},10748:{dir:D,sizes:[1.001,1.083,1.185,1.433,1.793,2.093,2.383,2.997]},10749:{dir:D,sizes:[1.001,1.083,1.185,1.433,1.793,2.093,2.383,2.997]},10752:{dir:D,sizes:[.987,1.305],variants:[0,2]},10753:{dir:D,sizes:[.987,1.305],variants:[0,2]},10754:{dir:D,sizes:[.987,1.305],variants:[0,2]},10755:{dir:D,sizes:[1.023,1.357],variants:[0,2]},10756:{dir:D,sizes:[1.023,1.357],variants:[0,2]},10757:{dir:D,sizes:[1.029,1.373],variants:[0,2]},10758:{dir:D,sizes:[1.029,1.373],variants:[0,2]},10759:{dir:D,sizes:[1.045,1.907],variants:[0,2]},10760:{dir:D,sizes:[1.045,1.907],variants:[0,2]},10761:{dir:D,sizes:[.981,1.261],variants:[0,2]},10762:{dir:D,sizes:[1.001,1.401],variants:[0,2]},10763:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10764:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10765:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10766:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10767:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10768:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10769:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10770:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10771:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10772:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10773:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10774:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10775:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10776:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10777:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10778:{dir:D,sizes:[1.112,2.223],variants:[0,2]},10779:{dir:D,sizes:[1.274,2.464],variants:[0,2]},10780:{dir:D,sizes:[1.274,2.486],variants:[0,2]},10781:{dir:D,sizes:[.767,1.073],variants:[0,2]},10782:{dir:D,sizes:[.767,1.074],variants:[0,2]},10784:{dir:D,sizes:[.595,.835],variants:[0,2]},10785:{dir:D,sizes:[.901,1.261],variants:[0,2]},11004:{dir:D,sizes:[1.001,1.915],variants:[0,2]},11007:{dir:D,sizes:[1.241,1.915],variants:[0,2]},12296:{c:10216,dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},12297:{c:10217,dir:D,sizes:[1.001,1.101,1.201,1.451,1.801,2.101,2.401,3.001]},65079:{c:9182,dir:W,sizes:[.492,.993,1.494,1.996,2.498,3,3.502,4.006],stretch:[9182,175,9182,9182],stretchv:[3,1,4,1],HDW:[.85,-.493,.492],hd:[.724,-.618]},65080:{c:9183,dir:W,sizes:[.492,.993,1.494,1.996,2.498,3,3.502,4.006],stretch:[9183,95,9183,9183],stretchv:[3,1,4,1],HDW:[-.062,.419,.492],hd:[-.188,.294]},126704:{dir:D,sizes:[.527,.738]},126705:{dir:D,sizes:[.531,.744]}},nm=(function(r){var t;return(t=class extends r{}).defaultVariants=[...de.defaultVariants,["-size3","normal"],["-size4","normal"],["-size5","normal"],["-size6","normal"],["-size7","normal"],["-lf-tp","normal"],["-rt-bt","normal"],["-ex-md","normal"],["-bbold","normal"],["-upsmall","normal"],["-uplarge","normal"]],t.VariantSmp=Object.assign(Object.assign({},de.VariantSmp),{"-bbold":[120120,120146,,,120792]}),t.defaultCssFonts=Object.assign(Object.assign({},de.defaultCssFonts),{"-size3":["serif",!1,!1],"-size4":["serif",!1,!1],"-size5":["serif",!1,!1],"-size6":["serif",!1,!1],"-size7":["serif",!1,!1],"-lf-tp":["serif",!1,!1],"-rt-bt":["serif",!1,!1],"-ex-md":["serif",!1,!1],"-bbold":["serif",!1,!1],"-upsmall":["serif",!1,!1],"-uplarge":["serif",!1,!1]}),t.defaultAccentMap={94:"ˆ",126:"˜",768:"ˋ",769:"ˊ",770:"ˆ",771:"˜",772:"ˉ",774:"˘",775:"˙",776:"¨",778:"˚",780:"ˇ",8594:"⃗"},t.defaultParams=Object.assign(Object.assign({},de.defaultParams),{x_height:.442}),t.defaultSizeVariants=["normal","-smallop","-largeop","-size3","-size4","-size5","-size6","-size7"],t.defaultStretchVariants=["normal","-ex-md","-size3","-lf-tp","-rt-bt"],t})(Mi);class Gi extends nm{constructor(){super(...arguments),this.cssFontPrefix="NCM"}}Gi.NAME="MathJaxNewcm",Gi.OPTIONS=Object.assign(Object.assign({},nm.OPTIONS),{fontURL:"@mathjax/mathjax-newcm-font/js/chtml/woff2",dynamicPrefix:"@mathjax/mathjax-newcm-font/js/chtml/dynamic"}),Gi.defaultCssFamilyPrefix="MJX-NCM-ZERO",Gi.defaultVariantLetters={normal:"",bold:"B",italic:"I","bold-italic":"BI","double-struck":"DS",fraktur:"F","bold-fraktur":"FB","sans-serif":"SS","bold-sans-serif":"SSB","sans-serif-italic":"SSI","sans-serif-bold-italic":"SSBI",monospace:"M","-smallop":"SO","-largeop":"LO","-size3":"S3","-size4":"S4","-size5":"S5","-size6":"S6","-size7":"S7","-tex-mathit":"MI","-tex-calligraphic":"C","-tex-bold-calligraphic":"CB","-tex-oldstyle":"OS","-tex-bold-oldstyle":"OB","-tex-variant":"V","-lf-tp":"LT","-rt-bt":"RB","-ex-md":"EM","-bbold":"B-a","-upsmall":"U","-uplarge":"U-a",script:"S","bold-script":"SB"},Gi.defaultDelimiters=Eg,Gi
vendor: 57,961 bytes, line 67
67.defaultChars={normal:{32:[0,0,.332],33:[.716,0,.278],34:[.705,-.423,.374],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.778],39:[.705,-.423,.278],40:[.748,.248,.389],41:[.748,.248,.389],42:[.75,-.32,.5],43:[.583,.083,.778],44:[.106,.193,.278],45:[.245,-.187,.333],46:[.106,0,.278],47:[.75,.25,.5],48:[.666,.022,.5],49:[.666,0,.5],50:[.666,0,.5,{sk:-.01}],51:[.666,.022,.5],52:[.677,0,.5,{sk:.103}],53:[.666,.022,.5],54:[.666,.022,.5,{sk:.068}],55:[.676,.022,.5,{sk:-.147}],56:[.666,.022,.5,{sk:.011}],57:[.666,.022,.5],58:[.431,0,.278],59:[.431,.193,.278],60:[.547,.052,.778],61:[.367,-.133,.778],62:[.547,.047,.778],63:[.705,0,.472],64:[.705,.011,.778],65:[.716,0,.75],66:[.683,0,.708,{sk:-.014}],67:[.705,.022,.722,{sk:.044}],68:[.683,0,.764],69:[.68,0,.681,{sk:.013}],70:[.68,0,.653],71:[.705,.022,.785,{sk:.013}],72:[.683,0,.75],73:[.683,0,.361],74:[.683,.022,.514,{sk:.06}],75:[.683,0,.778,{sk:-.011}],76:[.683,0,.625,{sk:-.119}],77:[.683,0,.917],78:[.683,0,.75],79:[.705,.022,.778],80:[.683,0,.681],81:[.705,.194,.778],82:[.683,.022,.736,{sk:-.026}],83:[.705,.022,.556],84:[.677,0,.722],85:[.683,.022,.75,{sk:.02}],86:[.683,.022,.75],87:[.683,.022,1.028],88:[.683,0,.75],89:[.683,0,.75],90:[.683,0,.611,{sk:.011}],91:[.75,.25,.278],92:[.75,.25,.5],93:[.75,.25,.278],94:[.745,-.561,.556,{ic:.006}],95:[-.1,.14,.333],96:[.698,-.509,.5,{sk:-.031}],97:[.448,.011,.5,{sk:-.036}],98:[.694,.011,.556,{sk:-.142}],99:[.448,.011,.444,{sk:.027}],100:[.694,.011,.556,{sk:.109}],101:[.448,.011,.444,{sk:.014}],102:[.705,0,.306,{ic:.051,sk:.043}],103:[.453,.206,.5,{sk:-.024}],104:[.694,0,.556,{sk:-.132}],105:[.657,0,.278],106:[.657,.205,.306],107:[.694,0,.528,{sk:-.128}],108:[.694,0,.278],109:[.442,0,.833],110:[.442,0,.556,{sk:.013}],111:[.448,.011,.5],112:[.442,.194,.556,{sk:.032}],113:[.442,.194,.528],114:[.442,0,.392,{sk:-.015}],115:[.448,.011,.394],116:[.615,.011,.389,{sk:-.034}],117:[.442,.011,.556,{sk:-.017}],118:[.431,.011,.528,{sk:.014}],119:[.431,.011,.722],120:[.431,0,.528],121:[.431,.205,.528],122:[.431,0,.444],123:[.75,.25,.5],124:[.75,.25,.278],125:[.75,.25,.5],126:[.309,-.191,.556,{ic:.001}],160:[0,0,.332],163:[.683,.035,.75],165:[.683,0,.75],167:[.705,.205,.444],168:[.652,-.557,.5],172:[.367,-.133,.667],175:[.62,-.589,.5],176:[.683,-.406,.375],177:[.583,.084,.778],180:[.698,-.509,.5,{sk:.031}],181:[.441,.194,.556],182:[.694,.194,.611],183:[.303,-.197,.278],215:[.491,-.009,.778],240:[.696,.011,.5],247:[.504,.004,.778],305:[.442,0,.278],567:[.442,.205,.306],710:[.694,-.515,.5],711:[.693,-.514,.5],713:[.62,-.589,.5],714:[.698,-.509,.5,{sk:.031}],715:[.698,-.509,.5,{sk:-.031}],717:[-.193,.233,.333,{ic:.018}],728:[.69,-.518,.5],729:[.657,-.551,.278],730:[.705,-.529,.75],732:[.653,-.556,.5],767:[-.025,.275,0,{dx:.274}],768:[.733,-.544,0,{dx:.294}],769:[.733,-.544,0,{dx:.234}],770:[.694,-.515,.5],771:[.653,-.556,.5,{sk:.016}],772:[.64,-.609,0,{dx:.264}],773:[.67,-.63,0,{dx:.264}],774:[.73,-.592,0,{dx:.264}],775:[.677,-.571,0,{dx:.265}],776:[.672,-.577,0,{dx:.264}],778:[.725,-.549,0,{dx:.264}],780:[.726,-.577,0,{dx:.264}],824:[.75,.25,0,{sk:-.263}],913:[.716,0,.75],914:[.683,0,.708,{sk:-.068}],915:[.68,0,.625,{sk:-.015}],916:[.716,0,.833],917:[.68,0,.681,{sk:-.022}],918:[.683,0,.611,{sk:.011}],919:[.683,0,.75],920:[.705,.022,.778],921:[.683,0,.361],922:[.683,0,.778,{sk:-.011}],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,{sk:-.058}],931:[.683,0,.722,{sk:-.011}],932:[.677,0,.722],933:[.705,0,.778],934:[.683,0,.722],935:[.683,0,.75,{sk:-.014}],936:[.683,0,.778],937:[.705,0,.722],945:[.442,.011,.641,{ic:.006,sk:.031}],946:[.706,.194,.558],947:[.442,.215,.586],948:[.712,.011,.474],949:[.453,.022,.535,{sk:-.024}],950:[.697,.205,.53,{sk:-.041}],951:[.442,.216,.53,{sk:-.047}],952:[.705,.011,.488],953:[.442,.011,.308,{sk:-.056}],954:[.442,.011,.53,{sk:-.018}],955:[.694,.013,.537,{ic:.029,sk:-.204}],956:[.442,.216,.53,{sk:-.028}],957:[.442,0,.502,{sk:-.042}],958:[.697,.205,.53,{sk:-.069}],959:[.448,.011,.5],960:[.431,.011,.586,{sk:-.014}],961:[.442,.216,.488],962:[.442,.108,.474],963:[.431,.011,.599],964:[.431,.012,.53,{sk:-.033}],965:[.442,.011,.53,{sk:-.014}],966:[.442,.218,.641,{sk:-.018}],967:[.442,.205,.641,{ic:.004,sk:-.057}],968:[.694,.205,.641,{sk:.028}],969:[.442,.011,.641],977:[.705,.011,.53,{sk:.026}],978:[.715,0,.778],981:[.694,.205,.641],982:[.431,.011,.836,{sk:-.014}],1008:[.442,.012,.624,{sk:-.015}],1009:[.442,.194,.488],1012:[.705,.022,.778],1013:[.431,.011,.414,{ic:.015,sk:.024}],1014:[.431,.011,.414,{ic:.058}],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],8199:[0,0,.5],8200:[0,0,.25],8201:[0,0,.2],8202:[0,0,.1],8203:[0,0,0],8204:[0,0,0],8205:[0,0,0],8208:[.245,-.187,.333],8209:[.245,-.187,.333],8210:[.342,-.302,.68],8211:[.277,-.255,.5],8212:[.277,-.255,1],8213:[.27,-.23,1.152],8214:[.75,.25,.398],8216:[.693,-.394,.278],8217:[.694,-.395,.278],8220:[.693,-.394,.472],8221:[.694,-.395,.472],8224:[.705,.216,.444],8225:[.705,.205,.444],8230:[.106,0,.837],8231:[.266,-.16,.276],8239:[0,0,.2],8242:[.748,-.43,.311],8243:[.748,-.43,.511],8244:[.748,-.43,.711],8245:[.748,-.43,.311],8246:[.748,-.43,.511],8247:[.748,-.43,.711],8260:[.75,.25,.5],8279:[.748,-.43,.911],8287:[0,0,.222],8288:[0,0,0],8289:[0,0,0],8290:[0,0,0],8291:[0,0,0],8292:[0,0,0],8356:[.683,.035,.75],8364:[.705,.022,.627],8400:[.711,-.601,0,{dx:.264}],8401:[.711,-.601,0,{dx:.264}],8402:[.75,.25,0,{sk:-.264}],8406:[.711,-.521,0,{dx:.264}],8407:[.711,-.521,0,{dx:.264}],8411:[.696,-.604,0,{dx:.264}],8412:[.696,-.604,0,{dx:.264}],8417:[.711,-.521,0,{dx:.264}],8428:[-.171,.281,0,{dx:.264}],8429:[-.171,.281,0,{dx:.264}],8430:[-.091,.281,0,{dx:.264}],8431:[-.091,.281,0,{dx:.264}],8455:[.705,.022,.53],8462:[.694,.011,.576,{sk:-.033}],8463:[.694,.011,.576],8486:[.705,0,.722],8487:[.684,.021,.722],8490:[.683,0,.778,{sk:-.011}],8491:[.892,0,.75],8498:[.68,0,.653],8501:[.693,0,.611],8502:[.723,.04,.604],8503:[.721,.03,.528],8504:[.71,.035,.574],8592:[.51,.01,1],8593:[.679,.203,.5],8594:[.51,.01,1],8595:[.703,.179,.5],8596:[.51,.01,1],8597:[.757,.257,.5],8598:[.714,.203,1],8599:[.714,.203,1],8600:[.703,.214,1],8601:[.703,.214,1],8602:[.51,.01,.997],8603:[.51,.01,.997],8606:[.51,.01,1.017],8608:[.51,.01,1.017],8610:[.51,.01,1.192],8611:[.51,.01,1.192],8612:[.51,.011,.977],8614:[.51,.011,.977],8617:[.55,.01,.997],8618:[.55,.01,.997],8619:[.55,.05,.997],8620:[.55,.05,.997],8622:[.51,.01,.996],8630:[.562,-.229,.98],8631:[.562,-.229,.98],8634:[.68,.06,.771],8635:[.68,.06,.771],8636:[.503,-.23,1],8637:[.27,.003,1.012],8638:[.697,.203,.441],8639:[.697,.203,.441],8640:[.503,-.23,1],8641:[.27,.003,1.012],8642:[.703,.197,.441],8643:[.703,.197,.441],8644:[.672,.172,1.018],8645:[.703,.203,.896],8646:[.672,.172,1.018],8647:[.75,.25,.997],8648:[.679,.203,.992],8649:[.75,.25,.997],8650:[.703,.179,.992],8651:[.6,.1,1.018],8652:[.6,.1,1.018],8653:[.52,.02,.991],8654:[.52,.02,1.068],8655:[.52,.02,.991],8656:[.52,.02,1],8657:[.676,.203,.611],8658:[.52,.02,1],8659:[.703,.176,.611],8660:[.52,.02,1],8661:[.728,.228,.611],8666:[.617,.117,1.015],8667:[.617,.117,1.015],8672:[.51,.01,1],8673:[.692,.192,.684],8674:[.51,.01,1],8675:[.692,.192,.684],8676:[.51,.01,1.018],8677:[.51,.01,1.018],8693:[.703,.203,.896],8694:[.99,.49,.997],8704:[.688,-.002,.666],8705:[.684,0,.556],8706:[.716,.022,.586],8707:[.684,0,.556],8708:[.789,.105,.556],8709:[.772,.078,.5],8710:[.716,0,.833],8711:[.683,.033,.833],8712:[.543,.043,.667],8713:[.73,.23,.667],8715:[.543,.043,.667],8716:[.73,.23,.667],8718:[.554,0,.666],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8722:[.583,.083,.778],8723:[.584,.083,.778],8724:[.785,.083,.778],8725:[.603,.103,.568],8726:[.603,.103,.568],8727:[.462,-.039,.5],8728:[.4,-.1,.412],8729:[.445,-.055,.5],8730:[.04,.96,.833,{ic:.02}],8733:[.442,.011,.778],8734:[.442,.011,1],8735:[.679,-.013,.778],8736:[.724,-.013,.778],8737:[.724,.109,.778],8738:[.562,.062,.778],8739:[.75,.25,.278],8740:[.75,.25,.388],8741:[.75,.25,.5],8742:[.75,.25,.556],8743:[.602,.02,.667],8744:[.601,.02,.667],8745:[.604,.02,.667],8746:[.604,.02,.667],8747:[.805,.306,.545,{ic:.12}],8748:[.805,.306,.915,{ic:.12}],8749:[.805,.306,1.285,{ic:.12}],8750:[.805,.306,.615,{ic:.05}],8751:[.805,.306,.985,{ic:.05}],8752:[.805,.306,1.355,{ic:.05}],8753:[.805,.306,.675,{ic:.02}],8754:[.805,.306,.662,{ic:.02}],8755:[.805,.306,.662,{ic:.02}],8756:[.416,-.084,.516],8757:[.416,-.084,.516],8758:[.422,-.078,.278],8759:[.422,-.078,.516],8760:[.504,-.23,.778],8761:[.422,-.078,.906],8764:[.366,-.134,.773],8765:[.366,-.134,.773],8766:[.466,-.034,.901],8767:[.492,-.008,.778],8768:[.583,.083,.28],8769:[.482,-.018,.773],8770:[.38,-.032,.778],8771:[.468,-.12,.778],8772:[.603,.103,.778],8773:[.552,-.036,.778],8774:[.614,.048,.778],8775:[.603,.103,.778],8776:[.457,-.043,.773],8777:[.603,.103,.773],8778:[.541,-.036,.778],8779:[.541,.041,.773],8780:[.541,-.036,.778],8781:[.498,-.002,.778],8784:[.601,-.133,.778],8788:[.422,-.078,.906],8789:[.422,-.078,.906],8797:[.793,-.133,.778],8799:[.803,-.133,.778],8800:[.73,.23,.778],8801:[.464,-.036,.778],8802:[.73,.23,.778],8803:[.561,.061,.778],8804:[.631,.119,.778],8805:[.631,.119,.778],8806:[.715,.203,.778],8807:[.715,.203,.778],8808:[.715,.287,.778],8809:[.715,.287,.778],8810:[.554,.047,1],8811:[.546,.054,1],8812:[.77,.27,.434],8813:[.73,.23,.778],8814:[.73,.23,.778],8815:[.73,.23,.778],8816:[.73,.23,.778],8817:[.73,.23,.778],8818:[.636,.125,.776],8819:[.636,.125,.776],8820:[.691,.191,.776],8821:[.691,.191,.776],8822:[.741,.241,.778],8823:[.741,.241,.778],8824:[.776,.276,.778],8825:[.776,.276,.778],8826:[.547,.047,.778],8827:[.547,.047,.778],8828:[.639,.139,.738],8829:[.639,.139,.738],8830:[.682,.17,.773],8831:[.682,.17,.773],8832:[.73,.23,.778],8833:[.73,.23,.778],8834:[.543,.043,.778],8835:[.543,.043,.778],8836:[.73,.23,.778],8837:[.73,.23,.778],8838:[.627,.127,.778],8839:[.627,.127,.778],8840:[.73,.23,.778],8841:[.73,.23,.778],8842:[.627,.211,.778],8843:[.627,.211,.778],8845:[.604,.02,.667],8846:[.604,.02,.667],8847:[.543,.043,.778],8848:[.543,.043,.778],8849:[.627,.127,.778],8850:[.627,.127,.778],8851:[.604,.02,.667],8852:[.604,.02,.667],8853:[.591,.093,.782],8854:[.591,.093,.782],8855:[.591,.093,.782],8856:[.591,.093,.782],8857:[.591,.093,.782],8858:[.591,.093,.782],8859:[.591,.093,.782],8860:[.591,.093,.782],8861:[.591,.093,.782],8862:[.583,.083,.778],8863:[.583,.083,.778],8864:[.583,.083,.778],8865:[.583,.083,.778],8866:[.684,0,.611],8867:[.684,0,.611],8868:[.664,.02,.778],8869:[.684,0,.778],8870:[.684,0,.445],8871:[.684,0,.445],8872:[.684,0,.612],8873:[.684,0,.673],8874:[.684,0,.841],8875:[.684,0,.653],8876:[.684,0,.565],8877:[.684,0,.732],8878:[.684,0,.793],8879:[.684,0,.773],8880:[.563,.063,.778],8881:[.563,.063,.778],8882:[.547,.047,.738],8883:[.547,.047,.738],8884:[.605,.105,.738],8885:[.605,.105,.738],8890:[.664,.02,.778],8896:[.78,.282,.833],8897:[.783,.28,.833],8898:[.772,.25,.833],8899:[.75,.272,.833],8900:[.48,-.02,.5],8901:[.303,-.197,.278],8902:[.486,-.008,.5],8904:[.505,.005,.623],8905:[.505,.005,.623],8906:[.505,.005,.623],8907:[.505,.005,.623],8908:[.505,.005,.623],8909:[.468,-.12,.778],8910:[.584,.02,.733],8911:[.584,.02,.733],8930:[.73,.23,.778],8931:[.73,.23,.778],8938:[.73,.23,.738],8939:[.73,.23,.738],8940:[.73,.23,.738],8941:[.73,.23,.738],8942:[.582,.082,.218],8943:[.303,-.197,.776],8944:[.5,0,.613],8945:[.5,0,.613],8967:[.783,.313,.28],8968:[.75,.25,.444],8969:[.75,.25,.444],8970:[.75,.25,.444],8971:[.75,.25,.444],8972:[.274,.103,.818],8973:[.274,.103,.818],8974:[.603,-.226,.818],8975:[.603,-.226,.818],8976:[.367,-.133,.667],8985:[.367,-.133,.667],8988:[.77,-.49,.392],8989:[.77,-.49,.392],8990:[.01,.27,.392],8991:[.01,.27,.392],8992:[1.344,0,1.185],8993:[.806,.538,1.185],8994:[.381,-.13,1],8995:[.371,-.133,1],9001:[.75,.25,.389],9002:[.75,.25,.389],9115:[1.495,0,.875],9116:[.498,0,.875],9117:[1.495,0,.875],9118:[1.495,0,.875],9119:[.498,0,.875],9120:[1.495,0,.875],9121:[1.5,0,.667],9122:[1,0,.667],9123:[1.5,0,.667],9124:[1.5,0,.667],9125:[1,0,.667],9126:[1.5,0,.667],9127:[.75,0,.902],9128:[1.5,0,.902],9129:[.75,0,.902],9130:[.748,0,.902],9131:[.75,0,.902],9132:[1.5,0,.902],9133:[.75,0,.902],9134:[.806,0,1.185],9135:[.27,-.23,.396],9136:[.75,.375,.752],9137:[.75,.375,.752],9138:[.846,0,1.576],9139:[.847,0,1.576],9140:[.726,-.552,.36],9141:[-.122,.296,.36],9143:[1.82,0,1.056],9144:[1.765,.235,.659],9145:[1.765,.235,.659],9168:[.642,0,.333],9180:[.727,-.572,.504],9181:[-.142,.297,.504],9182:[.783,-.539,.492],9183:[-.109,.353,.492],9184:[.829,-.657,.546,{ic:.006}],9185:[-.227,.399,.546,{ic:.006}],9204:[.422,-.082,.356],9205:[.422,-.078,.356],9206:[.38,-.12,.356],9207:[.38,-.12,.356],9632:[.583,.083,.778],9633:[.583,.083,.778],9642:[.358,-.142,.328],9643:[.358,-.142,.328],9650:[.741,.005,.968],9651:[.741,.005,.968],9652:[.592,-.144,.626],9653:[.592,-.144,.626],9654:[.678,.178,.858],9655:[.678,.178,.858],9656:[.625,-.111,.626],9657:[.625,-.111,.626],9658:[.625,-.111,.866],9659:[.625,-.111,.866],9660:[.505,.241,.968],9661:[.505,.241,.968],9662:[.592,-.144,.626],9663:[.592,-.144,.626],9664:[.678,.178,.858],9665:[.678,.178,.858],9666:[.625,-.111,.626],9667:[.625,-.111,.626],9668:[.625,-.111,.866],9669:[.625,-.111,.866],9670:[.713,.213,1.025],9671:[.713,.213,1.025],9674:[.61,.11,.572],9675:[.592,.092,.796],9679:[.592,.092,.796],9702:[.445,-.055,.5],9711:[.701,.201,1.013],9720:[.679,-.013,.778],9721:[.679,-.013,.778],9722:[.679,-.013,.778],9723:[.533,.033,.706],9724:[.533,.033,.706],9725:[.483,-.017,.566],9726:[.483,-.017,.566],9727:[.679,-.013,.778],10072:[.694,.083,.525],10200:[.684,.184,.946],10201:[.684,.184,.986],10205:[.684,.184,.946],10206:[.684,.184,.946],10214:[.75,.25,.41],10215:[.75,.25,.41],10216:[.75,.25,.389],10217:[.75,.25,.389],10218:[.75,.25,.57],10219:[.75,.25,.57],10220:[.748,.248,.389],10221:[.748,.248,.389],10222:[.762,.262,.287],10223:[.762,.262,.287],10229:[.51,.01,1.463],10230:[.51,.01,1.463],10231:[.51,.01,1.442],10232:[.52,.02,1.457],10233:[.52,.02,1.457],10234:[.52,.02,1.534],10235:[.51,.011,1.443],10236:[.51,.011,1.443],10237:[.52,.021,1.437],10238:[.52,.021,1.437],10506:[.702,.202,.846],10507:[.702,.202,.846],10570:[.503,.003,1.012],10571:[.503,.003,1.012],10574:[.503,-.23,1],10576:[.27,.003,1],10578:[.503,.019,1.088],10579:[.503,.019,1.088],10582:[.502,.019,1.088],10583:[.502,.019,1.088],10586:[.51,.011,1],10587:[.51,.011,1],10590:[.51,.011,1],10591:[.51,.011,1],10602:[.6,-.133,1.018],10603:[.368,.099,1.018],10604:[.6,-.133,1.018],10605:[.368,.099,1.018],10606:[.703,.203,.8],10607:[.703,.203,.8],10620:[.563,.063,.778],10621:[.563,.063,.778],10622:[.546,.046,.726],10623:[.546,.046,.726],10624:[.75,.25,.694],10647:[.748,.248,.278],10648:[.748,.248,.278],10741:[.603,.103,.556],10743:[.603,.103,.556],10744:[.75,.325,.5],10745:[.75,.325,.5],10752:[.743,.243,1.111],10753:[.743,.243,1.111],10754:[.743,.243,1.111],10755:[.75,.272,.833],10756:[.75,.272,.833],10757:[.764,.264,.833],10758:[.764,.264,.833],10759:[.78,.282,1.082],10760:[.799,.264,1.082],10761:[.74,.24,1.092],10764:[.805,.306,1.655,{ic:.12}],10765:[.805,.306,.615,{ic:.05}],10766:[.805,.306,.615,{ic:.05}],10767:[.805,.306,.615,{ic:.05}],10768:[.805,.306,.615,{ic:.05}],10769:[.805,.306,.675,{ic:.02}],10770:[.805,.306,.615,{ic:.05}],10771:[.805,.306,.615,{ic:.05}],10772:[.805,.306,.615,{ic:.05}],10773:[.805,.306,.545,{ic:.12}],10774:[.805,.306,.545,{ic:.12}],10775:[.805,.306,.794],10776:[.805,.306,.665],10777:[.805,.306,.665],10778:[.805,.306,.645,{ic:.02}],10779:[.967,.306,.545,{ic:.12}],10780:[.805,.468,.645,{ic:.02}],10799:[.496,-.004,.778],10815:[.683,0,.75],10877:[.634,.134,.778],10878:[.634,.134,.778],10885:[.721,.205,.776],10886:[.721,.205,.776],10887:[.667,.167,.778],10888:[.667,.167,.778],10889:[.753,.321,.776],10890:[.721,.289,.776],10891:[.977,.477,.778],10892:[.977,.477,.778],10901:[.629,.134,.778],10902:[.629,.129,.778],10927:[.631,.119,.778],10928:[.631,.119,.778],10929:[.631,.203,.778],10930:[.631,.203,.778],10931:[.716,.203,.778],10932:[.716,.203,.778],10933:[.716,.287,.778],10934:[.716,.287,.778],10935:[.816,.205,.776],10936:[.816,.205,.776],10937:[.816,.321,.776],10938:[.816,.321,.776],10949:[.543,.203,.698],10950:[.543,.203,.698],10955:[.543,.287,.698],10956:[.543,.287,.698],10974:[.684,0,.381],10975:[.342,.02,.778],10976:[.342,.02,.778],10977:[.684,0,.778],10978:[.684,0,.612],10979:[.684,0,.673],10980:[.684,0,.612],10981:[.684,0,.653],10982:[.684,0,.673],10983:[.622,-.062,.784],10984:[.622,-.062,.784],10985:[.812,.02,.778],10986:[.592,-.092,.784],10987:[.592,-.092,.784],10994:[.75,.25,.62],10995:[.75,.25,.773],10996:[.75,.25,.694],10997:[.75,.25,.694],11004:[.75,.25,.694],119808:[.698,0,.869],119809:[.686,0,.818,{sk:-.026}],119810:[.697,.011,.831,{sk:.051}],119811:[.686,0,.882,{sk:-.04}],119812:[.68,0,.756],119813:[.68,0,.724,{sk:-.02}],119814:[.697,.011,.904,{sk:.015}],119815:[.686,0,.9],119816:[.686,0,.436],119817:[.686,.011,.594,{sk:.051}],119818:[.686,0,.901,{sk:-.013}],119819:[.686,0,.692,{sk:-.114}],119820:[.686,0,1.092],119821:[.686,0,.9],119822:[.697,.011,.864],119823:[.686,0,.786,{sk:-.021}],119824:[.697,.194,.864],119825:[.686,.011,.863,{sk:-.044}],119826:[.697,.011,.639,{sk:-.025}],119827:[.675,0,.8],119828:[.686,.011,.885],119829:[.686,.008,.869],119830:[.686,.008,1.189],119831:[.686,0,.869,{sk:-.017}],119832:[.686,0,.869],119833:[.686,0,.703,{sk:.013}],119834:[.453,.006,.559,{sk:-.049}],119835:[.694,.006,.639,{sk:-.194}],119836:[.453,.006,.511,{sk:.043}],119837:[.694,.006,.639,{sk:.124}],119838:[.453,.006,.527,{sk:.018}],119839:[.7,0,.351,{ic:.086,sk:.033}],119840:[.455,.201,.575,{sk:-.032}],119841:[.694,0,.639,{sk:-.172}],119842:[.685,0,.319],119843:[.685,.2,.351,{sk:.013}],119844:[.694,0,.607,{sk:-.177}],119845:[.694,0,.319,{sk:-.024}],119846:[.45,0,.958,{sk:.012}],119847:[.45,0,.639],119848:[.453,.006,.575],119849:[.45,.194,.639,{sk:.043}],119850:[.45,.194,.607,{sk:-.013}],119851:[.45,0,.474,{sk:-.021}],119852:[.453,.006,.454],119853:[.635,.006,.447,{sk:-.029}],119854:[.45,.006,.639,{sk:-.024}],119855:[.444,.004,.607],119856:[.444,.004,.831],119857:[.444,0,.607],119858:[.444,.2,.607],119859:[.444,0,.511],119860:[.716,0,.75,{sk:.175}],119861:[.683,0,.759,{sk:.115}],119862:[.705,.022,.715,{ic:.045,sk:.105}],119863:[.683,0,.828,{sk:.088}],119864:[.68,0,.738,{ic:.028,sk:.115}],119865:[.68,0,.643,{ic:.108,sk:.102}],119866:[.705,.022,.786,{sk:.093}],119867:[.683,0,.831,{ic:.05,sk:.089}],119868:[.684,.001,.44,{ic:.057,sk:.084}],119869:[.683,.022,.555,{ic:.078,sk:.151}],119870:[.684,0,.849,{ic:.04,sk:.09}],119871:[.684,0,.681,{sk:.019}],119872:[.683,0,.97,{ic:.074,sk:.085}],119873:[.683,0,.803,{ic:.078,sk:.082}],119874:[.705,.022,.763,{sk:.114}],119875:[.683,0,.642,{ic:.112,sk:.072}],119876:[.705,.194,.791,{sk:.1}],119877:[.683,.022,.759,{sk:.084}],119878:[.705,.022,.613,{ic:.032,sk:.093}],119879:[.677,0,.584,{ic:.12,sk:.016}],119880:[.683,.022,.683,{ic:.077,sk:.022}],119881:[.683,.022,.583,{ic:.187,sk:-.019}],119882:[.683,.022,.944,{ic:.104}],119883:[.683,0,.828,{ic:.023,sk:.097}],119884:[.683,.001,.581,{ic:.181,sk:-.027}],119885:[.683,0,.683,{ic:.04,sk:.114}],119886:[.442,.011,.529,{sk:.022}],119887:[.694,.011,.429,{sk:-.011}],119888:[.442,.011,.433,{sk:.101}],119889:[.694,.011,.52,{sk:.182}],119890:[.442,.011,.466,{sk:.067}],119891:[.705,.205,.49,{ic:.062,sk:.172}],119892:[.442,.205,.477,{sk:.077}],119894:[.661,.011,.345,{sk:.074}],119895:[.661,.205,.412,{sk:.153}],119896:[.694,.011,.521,{sk:-.011}],119897:[.694,.011,.298,{sk:.055}],119898:[.442,.011,.878,{sk:.017}],119899:[.442,.011,.6,{sk:.025}],119900:[.442,.011,.485,{sk:.072}],119901:[.442,.194,.503,{sk:.092}],119902:[.442,.194,.446,{ic:.006,sk:.053}],119903:[.442,.011,.451,{sk:.021}],119904:[.442,.011,.469,{sk:.061}],119905:[.626,.011,.361,{sk:.044}],119906:[.442,.011,.572,{sk:.019}],119907:[.442,.011,.485,{sk:.051}],119908:[.442,.011,.716,{sk:.047}],119909:[.442,.011,.572,{sk:.043}],119910:[.442,.205,.49,{sk:.059}],119911:[.442,.011,.465,{ic:.002,sk:.102}],119912:[.711,0,.869,{sk:.173}],119913:[.686,0,.866,{sk:.11}],119914:[.703,.017,.817,{ic:.038,sk:.113}],119915:[.686,0,.938,{sk:.063}],119916:[.68,0,.81,{ic:.015,sk:.124}],119917:[.68,0,.689,{ic:.12,sk:.104}],119918:[.703,.017,.887,{sk:.102}],119919:[.686,0,.982,{ic:.045,sk:.091}],119920:[.686,0,.511,{ic:.055,sk:.086}],119921:[.686,.017,.631,{ic:.063,sk:.176}],119922:[.686,0,.971,{ic:.032,sk:.137}],119923:[.686,0,.756,{sk:.018}],119924:[.686,0,1.142,{ic:.074,sk:.086}],119925:[.686,0,.95,{ic:.077,sk:.083}],119926:[.703,.017,.837,{sk:.11}],119927:[.686,0,.723,{ic:.126,sk:.07}],119928:[.703,.194,.869,{sk:.093}],119929:[.686,.017,.872,{ic:.009,sk:.1}],119930:[.703,.017,.693,{ic:.021,sk:.097}],119931:[.675,0,.637,{ic:.135,sk:.014}],119932:[.686,.017,.8,{ic:.077,sk:.06}],119933:[.686,.017,.678,{ic:.207,sk:.016}],119934:[.686,.017,1.093,{ic:.114}],119935:[.686,0,.947,{ic:.006,sk:.132}],119936:[.686,0,.675,{ic:.2,sk:.022}],119937:[.686,0,.773,{ic:.032,sk:.122}],119938:[.452,.008,.633,{sk:.019}],119939:[.694,.008,.521,{sk:-.035}],119940:[.452,.008,.513,{sk:.101}],119941:[.694,.008,.61,{sk:.219}],119942:[.452,.008,.554,{sk:.063}],119943:[.702,.202,.568,{ic:.058,sk:.169}],119944:[.452,.202,.545,{sk:.067}],119945:[.694,.008,.668,{sk:-.078}],119946:[.694,.008,.405,{sk:.08}],119947:[.694,.202,.471,{sk:.163}],119948:[.694,.008,.604,{sk:-.026}],119949:[.694,.008,.348,{sk:.074}],119950:[.452,.008,1.032,{sk:.06}],119951:[.452,.008,.713,{sk:.032}],119952:[.452,.008,.585,{sk:.074}],119953:[.452,.194,.601,{sk:.112}],119954:[.452,.194,.542,{ic:.001,sk:.059}],119955:[.452,.008,.529,{sk:.018}],119956:[.452,.008,.531,{sk:.059}],119957:[.643,.008,.415,{sk:.063}],119958:[.452,.008,.681,{sk:.038}],119959:[.453,.008,.567,{sk:.069}],119960:[.453,.008,.831,{sk:.101}],119961:[.452,.008,.659,{sk:.029}],119962:[.452,.202,.59,{sk:.078}],119963:[.452,.008,.555,{sk:.076}],120484:[.442,.011,.322],120485:[.442,.205,.384,{sk:.083}],120488:[.698,0,.869],120489:[.686,0,.818,{sk:-.075}],120490:[.68,0,.692,{sk:-.019}],120491:[.698,0,.958],120492:[.68,0,.756,{sk:-.027}],120493:[.686,0,.703,{sk:.013}],120494:[.686,0,.9],120495:[.697,.011,.894],120496:[.686,0,.436],120497:[.686,0,.901,{sk:-.013}],120498:[.698,0,.806],120499:[.686,0,1.092],120500:[.686,0,.9],120501:[.675,0,.767],120502:[.697,.011,.864],120503:[.68,0,.9],120504:[.686,0,.786,{sk:-.063}],120505:[.697,.011,.894],120506:[.686,0,.831,{sk:-.015}],120507:[.675,0,.8],120508:[.697,0,.894],120509:[.686,0,.831],120510:[.686,0,.869,{sk:-.017}],120511:[.686,0,.894],120512:[.697,0,.831],120513:[.686,.025,.958],120514:[.452,.008,.743,{ic:.007,sk:.015}],120515:[.703,.194,.647],120516:[.452,.211,.679],120517:[.718,.008,.551,{sk:-.011}],120518:[.461,.017,.597,{sk:-.025}],120519:[.703,.202,.615,{sk:-.041}],120520:[.452,.211,.615,{sk:-.051}],120521:[.702,.008,.567],120522:[.452,.008,.359,{ic:.004,sk:-.068}],120523:[.452,.008,.615,{ic:.004,sk:-.034}],120524:[.694,.012,.618,{ic:.048,sk:-.227}],120525:[.452,.211,.615,{ic:.004,sk:-.036}],120526:[.453,0,.583,{sk:-.04}],120527:[.703,.202,.615,{sk:-.072}],120528:[.453,.006,.575],120529:[.444,.009,.679,{sk:-.011}],120530:[.452,.211,.567],120531:[.452,.105,.551],120532:[.444,.008,.695],120533:[.444,.012,.615,{sk:-.035}],120534:[.453,.008,.615,{sk:-.019}],120535:[.452,.216,.743,{sk:-.015}],120536:[.452,.202,.743,{ic:.003,sk:-.063}],120537:[.694,.202,.743,{sk:.032}],120538:[.453,.008,.743],120539:[.711,.017,.679],120540:[.444,.008,.506,{ic:.003,sk:.04}],120541:[.702,.008,.615,{sk:.033}],120542:[.452,.01,.724,{sk:-.018}],120543:[.694,.202,.743],120544:[.452,.194,.567],120545:[.444,.008,.966,{sk:-.01}],120546:[.716,0,.75,{sk:.177}],120547:[.683,0,.759,{sk:.077}],120548:[.68,0,.615,{ic:.108,sk:.072}],120549:[.716,0,.833,{sk:.17}],120550:[.68,0,.738,{ic:.028,sk:.092}],120551:[.683,0,.683,{ic:.04,sk:.11}],120552:[.683,0,.831,{ic:.05,sk:.089}],120553:[.705,.022,.763,{sk:.117}],120554:[.684,.001,.44,{ic:.057,sk:.084}],120555:[.684,0,.849,{ic:.04,sk:.09}],120556:[.716,0,.694,{sk:.17}],120557:[.683,0,.97,{ic:.074,sk:.085}],120558:[.683,0,.803,{ic:.078,sk:.082}],120559:[.677,0,.742,{ic:.035,sk:.097}],120560:[.705,.022,.763,{sk:.117}],120561:[.68,0,.831,{ic:.049,sk:.089}],120562:[.683,0,.642,{ic:.112,sk:.049}],120563:[.705,.022,.763,{sk:.117}],120564:[.683,0,.78,{ic:.026,sk:.104}],120565:[.677,0,.584,{ic:.12,sk:.012}],120566:[.705,0,.583,{ic:.118}],120567:[.683,0,.667,{sk:.082}],120568:[.683,0,.828,{ic:.023,sk:.097}],120569:[.683,0,.612,{ic:.081,sk:.025}],120570:[.705,0,.772,{ic:.014,sk:.137}],120571:[.683,.033,.833],120572:[.442,.011,.64,{sk:.072}],120573:[.706,.194,.566,{ic:.008,sk:.148}],120574:[.442,.215,.518,{ic:.025,sk:.111}],120575:[.712,.011,.444,{ic:.008,sk:.107}],120576:[.453,.022,.466,{sk:.051}],120577:[.697,.205,.438,{ic:.036,sk:.067}],120578:[.442,.216,.497,{sk:.1}],120579:[.705,.011,.469,{sk:.075}],120580:[.442,.011,.354],120581:[.442,.011,.576,{sk:.043}],120582:[.694,.013,.583,{sk:-.053}],120583:[.442,.216,.603,{sk:.048}],120584:[.442,0,.494,{ic:.03,sk:.028}],120585:[.697,.205,.438,{ic:.008,sk:.06}],120586:[.442,.011,.485],120587:[.431,.011,.57,{sk:.043}],120588:[.442,.216,.517,{sk:.096}],120589:[.442,.108,.363,{ic:.046,sk:.044}],120590:[.431,.011,.571],120591:[.431,.012,.437,{ic:.074}],120592:[.442,.011,.54,{sk:.036}],120593:[.442,.218,.654,{sk:.028}],120594:[.442,.205,.626,{sk:.018}],120595:[.694,.205,.651,{sk:.143}],120596:[.442,.011,.622,{sk:.034}],120597:[.716,.022,.531,{ic:.035,sk:.069}],120598:[.431,.011,.406,{sk:.066}],120599:[.705,.011,.591,{sk:.116}],120600:[.442,.012,.624,{sk:.053}],120601:[.694,.205,.596,{sk:.125}],120602:[.442,.194,.517,{sk:.102}],120603:[.431,.011,.828,{sk:.039}],120604:[.711,0,.869,{sk:.174}],120605:[.686,0,.866,{sk:.069}],120606:[.68,0,.657,{ic:.12,sk:.071}],120607:[.711,0,.958,{sk:.168}],120608:[.68,0,.81,{ic:.015,sk:.098}],120609:[.686,0,.773,{ic:.032,sk:.117}],120610:[.686,0,.982,{ic:.045,sk:.09}],120611:[.703,.017,.867,{sk:.108}],120612:[.686,0,.511,{ic:.055,sk:.085}],120613:[.686,0,.971,{ic:.032,sk:.093}],120614:[.711,0,.806,{sk:.167}],120615:[.686,0,1.142,{ic:.074,sk:.085}],120616:[.686,0,.95,{ic:.077,sk:.082}],120617:[.675,0,.841,{ic:.026,sk:.104}],120618:[.703,.017,.837,{sk:.111}],120619:[.68,0,.982,{ic:.044,sk:.09}],120620:[.686,0,.723,{ic:.126,sk:.039}],120621:[.703,.017,.867,{sk:.108}],120622:[.686,0,.885,{ic:.019,sk:.108}],120623:[.675,0,.637,{ic:.135,sk:.01}],120624:[.703,0,.671,{ic:.131}],120625:[.686,0,.767,{sk:.08}],120626:[.686,0,.947,{ic:.006,sk:.106}],120627:[.686,0,.714,{ic:.078,sk:.029}],120628:[.703,0,.879,{ic:.007,sk:.135}],120629:[.686,.025,.958],120630:[.452,.008,.761,{sk:.059}],120631:[.703,.194,.66,{sk:.153}],120632:[.452,.211,.59,{ic:.027,sk:-.02}],120633:[.718,.008,.522,{sk:.115}],120634:[.461,.017,.529,{sk:.058}],120635:[.703,.202,.508,{ic:.014,sk:.083}],120636:[.452,.211,.6,{sk:.019}],120637:[.702,.008,.562,{sk:.062}],120638:[.452,.008,.412],120639:[.452,.008,.668,{sk:.025}],120640:[.694,.012,.671,{sk:-.072}],120641:[.452,.211,.708,{sk:.042}],120642:[.453,0,.577,{ic:.026,sk:.028}],120643:[.703,.202,.508,{sk:.061}],120644:[.452,.008,.585],120645:[.444,.009,.682,{sk:.046}],120646:[.452,.211,.612,{sk:.1}],120647:[.452,.105,.424,{ic:.038,sk:-.029}],120648:[.444,.008,.686],120649:[.444,.012,.521,{ic:.083}],120650:[.453,.008,.631,{sk:.037}],120651:[.452,.216,.747,{sk:.033}],120652:[.452,.202,.718,{sk:.011}],120653:[.694,.202,.758,{sk:.151}],120654:[.453,.008,.718,{sk:.039}],120655:[.711,.017,.628,{ic:.029,sk:.079}],120656:[.444,.008,.483,{sk:.074}],120657:[.702,.008,.692,{sk:.119}],120658:[.452,.01,.724,{sk:.053}],120659:[.694,.202,.713,{sk:.126}],120660:[.452,.194,.612,{sk:.094}],120661:[.444,.008,.975,{sk:.043}],120778:[.68,0,.783],120779:[.445,.267,.628],120782:[.655,.011,.575],120783:[.655,0,.575],120784:[.655,0,.575,{sk:-.011}],120785:[.655,.011,.575],120786:[.656,0,.575,{sk:.127}],120787:[.655,.011,.575],120788:[.655,.011,.575,{sk:.048}],120789:[.676,.011,.575,{sk:-.164}],120790:[.655,.011,.575,{sk:.011}],120791:[.655,.011,.575]},bold:{32:[0,0,.383],33:[.705,0,.35],34:[.697,-.418,.481],35:[.694,.194,.958],36:[.75,.056,.575],37:[.75,.056,.958],38:[.705,.011,.894],39:[.697,-.418,.319],40:[.75,.249,.447],41:[.75,.249,.447],42:[.75,-.306,.575],43:[.633,.132,.894],44:[.156,.194,.319],45:[.271,-.174,.383],46:[.156,0,.319],47:[.75,.25,.575],58:[.444,0,.319],59:[.444,.194,.319],60:[.587,.086,.894],61:[.393,-.108,.894],62:[.587,.086,.894],63:[.7,0,.543],64:[.7,.006,.894],91:[.75,.25,.319],92:[.75,.25,.575],93:[.75,.25,.319],94:[.744,-.562,.556,{ic:.005}],95:[-.101,.189,.869],96:[.704,-.509,.575],123:[.75,.25,.575],124:[.76,.26,.319],125:[.75,.25,.575],126:[.311,-.189,.556,{ic:.001}],160:[0,0,.383],163:[.686,.031,.869],165:[.686,0,.869],167:[.712,.212,.695],168:[.677,-.537,.575],172:[.403,-.098,.894],175:[.633,-.581,.575],176:[.686,-.367,.431],177:[.693,0,.894],180:[.704,-.509,.575],181:[.45,.194,.639],182:[.694,.194,.703],183:[.396,-.24,.278],215:[.543,.042,.894],240:[.702,.006,.575],247:[.582,.08,.894],305:[.45,0,.319,{sk:.262}],567:[.45,.2,.351,{sk:.197}],710:[.71,-.503,.575],711:[.71,-.503,.575],713:[.633,-.581,.575],714:[.704,-.509,.575],715:[.704,-.509,.575],717:[-.247,.307,.383,{ic:.029}],728:[.7,-.513,.575],729:[.685,-.529,.319],730:[.714,-.492,.338],732:[.661,-.553,.575],767:[-.035,.286,0,{dx:.287}],768:[.704,-.509,0,{dx:.317}],769:[.704,-.509,0,{dx:.242}],770:[.71,-.503,0,{dx:.279}],771:[.661,-.553,0,{dx:.279}],772:[.633,-.581,0,{dx:.279}],773:[.697,-.636,.894],774:[.7,-.513,0,{dx:.279}],775:[.685,-.529,0,{dx:.279}],776:[.677,-.537,0,{dx:.28}],778:[.764,-.542,0,{dx:.28}],780:[.71,-.503,0,{dx:.279}],824:[.748,.249,0],978:[.697,0,.87],1014:[.442,.011,.43],8192:[0,0,.575],8193:[0,0,1.15],8194:[0,0,.575],8195:[0,0,1.15],8196:[0,0,.383],8197:[0,0,.288],8198:[0,0,.192],8199:[0,0,.575],8200:[0,0,.319],8201:[0,0,.23],8202:[0,0,.032],8203:[0,0,0],8204:[0,0,0],8205:[0,0,0],8208:[.271,-.174,.383],8209:[.271,-.174,.383],8210:[.312,-.236,.575],8211:[.312,-.236,.575],8212:[.312,-.236,1.15],8214:[.75,.25,.499],8216:[.694,-.344,.319],8217:[.694,-.344,.319],8220:[.694,-.344,.571],8221:[.694,-.344,.571],8224:[.702,.211,.511],8225:[.702,.202,.511],8230:[.156,0,.838],8260:[.696,.01,.648],8356:[.686,.031,.869],8364:[.697,.011,.72],8486:[.697,0,.831],8487:[.686,.011,.831],8592:[.5,0,1.15],8593:[.694,.204,.575],8594:[.5,0,1.15],8595:[.704,.194,.575],8599:[.725,0,.894],8600:[.694,.031,.894],8710:[.698,0,1.028],8722:[.281,-.22,.894],8730:[.757,.094,.543,{ic:.064}],8734:[.47,.026,1.15],8738:[.634,.132,.894],8902:[.501,-.001,.575],8994:[.365,-.15,.894],9001:[.751,.25,.447],9002:[.751,.25,.447],9675:[.761,.261,1.277],9702:[.381,-.077,.894],10214:[.751,.249,.463],10215:[.751,.249,.463]},italic:{32:[0,0,.358],33:[.716,0,.307,{ic:.068}],34:[.705,-.423,.401,{ic:.048}],35:[.694,.194,.818,{ic:.01}],36:[.75,.056,.5,{ic:.091}],37:[.75,.056,.818,{ic:.028}],38:[.716,.022,.767,{ic:.037}],39:[.705,-.423,.307,{ic:.048}],40:[.75,.25,.409,{ic:.107}],41:[.75,.25,.409],42:[.75,-.319,.511,{ic:.072}],43:[.557,.057,.767],44:[.106,.193,.307],45:[.243,-.187,.358],46:[.106,0,.307],47:[.75,.25,.511,{ic:.105}],48:[.666,.022,.511,{ic:.044}],49:[.666,0,.511],50:[.666,.022,.511,{ic:.04}],51:[.666,.022,.511,{ic:.051}],52:[.666,.194,.511],53:[.665,.022,.511,{ic:.056}],54:[.666,.022,.511,{ic:.057}],55:[.666,.022,.511,{ic:.114}],56:[.666,.022,.511,{ic:.043}],57:[.666,.022,.511,{ic:.042}],58:[.431,0,.307],59:[.431,.193,.307],60:[.54,.04,.778,{ic:.049}],61:[.367,-.133,.767,{ic:.01}],62:[.54,.04,.778],63:[.716,0,.511,{ic:.04}],64:[.705,.011,.767,{ic:.022}],91:[.75,.25,.307,{ic:.139}],92:[.75,.25,.5],93:[.75,.25,.307,{ic:.052}],94:[.745,-.561,.556,{ic:.153}],95:[-.11,.14,.743],96:[.696,-.505,.511],123:[.75,.25,.5,{ic:.113}],124:[.75,.25,.278,{ic:.066}],125:[.75,.25,.5],126:[.309,-.191,.556,{ic:.072}],160:[0,0,.358],168:[.649,-.553,.511,{ic:.032}],175:[.616,-.586,.511,{ic:.061}],176:[.683,-.428,.383,{ic:.079}],180:[.696,-.505,.511,{ic:.028}],305:[.442,.011,.322],567:[.442,.205,.384,{sk:.083}],710:[.686,-.509,.511,{ic:.024}],711:[.692,-.515,.511,{ic:.061}],713:[.616,-.586,.511,{ic:.061}],714:[.696,-.505,.511,{ic:.028}],715:[.696,-.505,.511],728:[.686,-.516,.511,{ic:.052}],729:[.654,-.548,.307,{ic:.051}],730:[.705,-.529,.831],732:[.651,-.55,.511,{ic:.057}],767:[-.025,.275,0,{dx:.275}],768:[.696,-.505,0,{dx:.136}],769:[.696,-.505,0,{dx:.077}],770:[.686,-.509,0,{dx:.123}],771:[.651,-.55,0,{dx:.105}],772:[.616,-.586,0,{dx:.105}],773:[.681,-.641,.766,{ic:.062}],774:[.686,-.516,0,{dx:.089}],775:[.654,-.548,0,{dx:.105}],776:[.649,-.553,0,{dx:.096}],778:[.705,-.529,0,{dx:.101}],780:[.692,-.515,0,{dx:.086}],824:[.748,.248,0],978:[.722,0,.778,{ic:.007}],1014:[.442,.011,.43],8192:[0,0,.511],8193:[0,0,1.022],8194:[0,0,.511],8195:[0,0,1.022],8196:[0,0,.341],8197:[0,0,.256],8198:[0,0,.17],8199:[0,0,.511],8200:[0,0,.307],8201:[0,0,.204],8202:[0,0,.026],8203:[0,0,0],8204:[0,0,0],8205:[0,0,0],8208:[.243,-.187,.358,{ic:.001}],8209:[.243,-.187,.358,{ic:.001}],8210:[.277,-.255,.511,{ic:.04}],8211:[.277,-.255,.511,{ic:.04}],8212:[.277,-.255,1.022,{ic:.014}],8214:[.75,.25,.398,{ic:.066}],8216:[.693,-.394,.307,{ic:.053}],8217:[.694,-.395,.307,{ic:.066}],8220:[.693,-.394,.49,{ic:.053}],8221:[.694,-.395,.49,{ic:.064}],8230:[.106,0,.684],8260:[.683,0,.603,{ic:.093}],8356:[.683,.032,.743,{ic:.003}],8364:[.705,.022,.576,{ic:.126}],8486:[.705,0,.716,{ic:.043}],8487:[.684,.021,.716,{ic:.071}],8592:[.512,.011,.971],8593:[.694,.195,.512,{ic:.07}],8594:[.513,.01,.971],8595:[.695,.194,.512],8710:[.716,0,.833],8722:[.27,-.23,.767],8730:[.735,.104,.46,{ic:.226}],8734:[.456,.025,.92,{ic:.022}],8738:[.557,.057,.767,{ic:.047}],8902:[.483,-.019,.511,{ic:.063}],9001:[.751,.249,.409,{ic:.105}],9002:[.751,.249,.409],9675:[.772,.272,1.073,{ic:.003}],9702:[.379,-.081,.767],10214:[.751,.249,.422,{ic:.138}],10215:[.751,.249,.422,{ic:.052}]},"bold-italic":{32:[0,0,.414],33:[.711,0,.386,{ic:.044}],34:[.703,-.422,.518,{ic:.048}],35:[.694,.194,.944],36:[.75,.056,.575,{ic:.079}],37:[.75,.056,.944,{ic:.002}],38:[.711,.017,.886,{ic:.011}],39:[.703,-.422,.356,{ic:.048}],40:[.75,.249,.473,{ic:.094}],41:[.75,.249,.473],42:[.75,-.306,.591,{ic:.057}],43:[.603,.102,.886],44:[.147,.194,.356],45:[.269,-.175,.414],46:[.147,0,.356],47:[.75,.25,.591,{ic:.09}],48:[.661,.017,.591,{ic:.045}],49:[.661,0,.591],50:[.661,.017,.591,{ic:.027}],51:[.661,.017,.591,{ic:.037}],52:[.661,.194,.591],53:[.661,.017,.591,{ic:.037}],54:[.661,.017,.591,{ic:.037}],55:[.661,.017,.591,{ic:.115}],56:[.661,.017,.591,{ic:.027}],57:[.661,.017,.591,{ic:.03}],58:[.444,0,.356],59:[.444,.194,.356],60:[.587,.086,.894,{ic:.046}],61:[.393,-.108,.886],62:[.587,.086,.894],63:[.711,0,.591,{ic:.023}],64:[.702,.008,.886,{ic:.01}],91:[.75,.25,.356,{ic:.129}],92:[.75,.25,.575],93:[.75,.25,.356,{ic:.036}],94:[.744,-.562,.556,{ic:.151}],95:[-.097,.153,.866],96:[.699,-.502,.591],123:[.75,.25,.575,{ic:.109}],124:[.75,.25,.319,{ic:.059}],125:[.75,.25,.575],126:[.307,-.193,.556,{ic:.071}],160:[0,0,.414],168:[.667,-.535,.591,{ic:.045}],175:[.626,-.576,.591,{ic:.047}],176:[.686,-.392,.443,{ic:.081}],180:[.699,-.502,.591,{ic:.005}],305:[.452,.008,.394,{sk:.236}],567:[.452,.202,.439,{sk:.142}],710:[.704,-.497,.591,{ic:.012}],711:[.704,-.497,.591,{ic:.052}],713:[.626,-.576,.591,{ic:.047}],714:[.699,-.502,.591,{ic:.005}],715:[.699,-.502,.591],717:[-.247,.307,.383,{ic:.032}],728:[.69,-.511,.591,{ic:.037}],729:[.674,-.527,.356,{ic:.048}],730:[.702,-.534,.949],732:[.66,-.541,.591,{ic:.042}],767:[-.035,.286,0,{dx:.272}],768:[.699,-.502,0,{dx:.188}],769:[.699,-.502,0,{dx:.113}],770:[.704,-.497,0,{dx:.165}],771:[.66,-.541,0,{dx:.145}],772:[.626,-.576,0,{dx:.145}],773:[.708,-.647,.885,{ic:.049}],774:[.69,-.511,0,{dx:.13}],775:[.674,-.527,0,{dx:.144}],776:[.667,-.535,0,{dx:.145}],778:[.702,-.534,0,{dx:.141}],780:[.704,-.497,0,{dx:.124}],824:[.749,.249,0],978:[.697,0,.87,{ic:.103}],1014:[.442,.011,.43,{ic:.04}],8192:[0,0,.591],8193:[0,0,1.182],8194:[0,0,.591],8195:[0,0,1.182],8196:[0,0,.394],8197:[0,0,.296],8198:[0,0,.197],8199:[0,0,.591],8200:[0,0,.355],8201:[0,0,.236],8202:[0,0,.029],8203:[0,0,0],8204:[0,0,0],8205:[0,0,0],8208:[.269,-.175,.414],8209:[.269,-.175,.414],8210:[.293,-.257,.591,{ic:.036}],8211:[.292,-.256,.591,{ic:.037}],8212:[.292,-.256,1.182,{ic:.006}],8214:[.75,.25,.499,{ic:.059}],8216:[.694,-.353,.356,{ic:.037}],8217:[.694,-.353,.356,{ic:.059}],8220:[.694,-.353,.59,{ic:.038}],8221:[.694,-.353,.59,{ic:.059}],8230:[.147,0,.842],8260:[.696,.01,.713,{ic:.08}],8356:[.686,.031,.866,{ic:.008}],8364:[.703,.017,.664,{ic:.115}],8486:[.703,0,.827,{ic:.031}],8487:[.686,.017,.827,{ic:.056}],8592:[.518,.017,1.121],8593:[.694,.204,.592,{ic:.069}],8594:[.518,.017,1.121],8595:[.704,.194,.592],8710:[.699,0,1.028],8722:[.281,-.22,.886],8730:[.757,.094,.531,{ic:.243}],8734:[.473,.029,1.06,{ic:.044}],8738:[.604,.102,.886,{ic:.035}],8902:[.501,-.001,.591,{ic:.048}],9001:[.75,.25,.473,{ic:.09}],9002:[.751,.25,.473],9675:[.772,.272,1.239],9702:[.386,-.072,.886],10214:[.751,.249,.488,{ic:.129}],10215:[.751,.249,.488,{ic:.037}]},"double-struck":{},fraktur:{},"bold-fraktur":{},"sans-serif":{717:[-.208,.286,.333,{ic:.038}],767:[-.023,.277,0,{dx:.274}],824:[.749,.25,0],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],8199:[0,0,.5],8200:[0,0,.278],8201:[0,0,.2],8202:[0,0,.028],8203:[0,0,0],8204:[0,0,0],8205:[0,0,0],8356:[.694,.022,.667],8599:[.718,-.001,.778],8600:[.694,.024,.778],8710:[.694,0,.833],8902:[.491,.006,.5,{ic:.023}],8994:[.363,-.133,.778],9675:[.772,.272,1.111]},"bold-sans-serif":{717:[-.253,.389,.367,{ic:.067}],767:[-.025,.319,0,{dx:.294}],824:[.759,.257,0],8192:[0,0,.55],8193:[0,0,1.1],8194:[0,0,.55],8195:[0,0,1.1],8196:[0,0,.367],8197:[0,0,.275],8198:[0,0,.183],8199:[0,0,.55],8200:[0,0,.305],8201:[0,0,.22],8202:[0,0,.031],8203:[0,0,0],8204:[0,0,0],8205:[0,0,0],8356:[.694,.047,.733],8599:[.734,.023,.856],8600:[.72,.037,.856],8710:[.694,0,.916],8902:[.519,.031,.55,{ic:.015}],8994:[.381,-.095,.856],9675:[.772,.272,1.222]},"sans-serif-italic":{717:[-.208,.286,.333],767:[-.023,.277,0,{dx:.272}],824:[.749,.25,0],8192:[0,0,.5],8193:[0,0,.5],8194:[0,0,.333],8195:[0,0,.25],8196:[0,0,.167],8197:[0,0,.5],8198:[0,0,.278],8199:[0,0,.2],8200:[0,0,.028],8201:[0,0,0],8202:[0,0,0],8203:[0,0,0],8204:[0,0,0],8205:[0,0,0],8356:[.694,.022,.667],8599:[.718,-.001,.778,{ic:.095}],8600:[.694,.025,.778,{ic:.029}],8710:[.694,0,.833],8902:[.515,.008,.5,{ic:.09}],8994:[.364,-.133,.778],9675:[.772,.272,1.111,{ic:.008}]},"sans-serif-bold-italic":{717:[-.253,.389,.367,{ic:.003}],767:[-.025,.319,0,{dx:.327}],824:[.759,.257,0],8192:[0,0,.55],8193:[0,0,1.1],8194:[0,0,.55],8195:[0,0,1.1],8196:[0,0,.367],8197:[0,0,.275],8198:[0,0,.183],8199:[0,0,.55],8200:[0,0,.305],8201:[0,0,.22],8202:[0,0,.031],8203:[0,0,0],8204:[0,0,0],8205:[0,0,0],8356:[.694,.047,.733],8599:[.734,.023,.856,{ic:.086}],8600:[.72,.037,.856,{ic:.049}],8710:[.694,0,.916],8902:[.519,.031,.55,{ic:.076}],8994:[.381,-.095,.856],9675:[.772,.272,1.222,{ic:.046}]},monospace:{717:[-.025,.095,.525,{ic:.035}],767:[-.008,.359,.525],824:[.694,.083,.525],8193:[0,0,.525],8195:[0,0,.525],8199:[0,0,.525],8200:[0,0,.525],8356:[.611,.011,.525],8599:[.619,0,.525,{ic:.035}],8600:[.611,.008,.525,{ic:.035}],8710:[.651,0,.525],8902:[.555,-.057,.525],8994:[.414,-.195,.525],9675:[.705,.233,.525,{ic:.075}],64263:[0,0,.525]},"-smallop":{40:[.797,.297,.422],41:[.797,.297,.422],47:[.905,.405,.617],91:[.8,.3,.34],92:[.905,.405,.617],93:[.8,.3,.34],123:[.801,.301,.54],125:[.801,.301,.54],770:[.746,-.571,.644,{ic:.001}],771:[.751,-.55,.652],773:[.67,-.63,.568],774:[.743,-.578,.658,{ic:.001}],780:[.741,-.566,.644,{ic:.001}],8260:[.905,.405,.617],8400:[.711,-.601,.667],8401:[.711,-.601,.667],8406:[.711,-.521,.659],8407:[.711,-.521,.659],8417:[.711,-.521,.715],8428:[-.171,.281,.667],8429:[-.171,.281,.667],8430:[-.091,.281,.659],8431:[-.091,.281,.659],8725:[.605,.105,.572],8726:[.605,.105,.572],8730:[.85,.35,1,{ic:.02}],8739:[.851,.351,.333],8741:[.851,.351,.555],8968:[.8,.3,.458],8969:[.8,.3,.458],8970:[.8,.3,.458],8971:[.8,.3,.458],9140:[.73,-.546,.735],9141:[-.116,.3,.735],9180:[.745,-.54,1.006],9181:[-.11,.315,1.006],9182:[.815,-.509,.993,{ic:.001}],9183:[-.079,.385,.993],9184:[.853,-.613,1.048,{ic:.006}],9185:[-.183,.423,1.048,{ic:.006}],10214:[.8,.3,.444],10215:[.8,.3,.444],10216:[.8,.3,.428],10217:[.8,.3,.428],10218:[.8,.3,.623],10219:[.8,.3,.623],10222:[.813,.313,.305],10223:[.813,.313,.305],10627:[.801,.301,.54],10628:[.801,.301,.54],10629:[.797,.297,.422],10630:[.797,.297,.422],10748:[.791,.291,.422],10749:[.791,.291,.422],126704:[.72,.017,1.953,{sk:-.383}],126705:[.708,.035,2.524,{sk:-.957}]},"-largeop":{40:[.847,.347,.458],41:[.847,.347,.458],47:[1.108,.608,.768],91:[.85,.35,.417],92:[1.108,.608,.768],93:[.85,.35,.417],123:[.85,.35,.583],125:[.85,.35,.583],770:[.746,-.571,.768,{ic:.001}],771:[.753,-.548,.778],774:[.743,-.578,.784,{ic:.001}],780:[.741,-.566,.768,{ic:.001}],8260:[1.108,.608,.768],8512:[.95,.45,1.353,{sk:-.418}],8719:[.95,.45,1.278],8720:[.95,.45,1.278],8721:[.95,.45,1.444],8725:[.608,.107,.577],8726:[.608,.107,.577],8730:[1.15,.651,1,{ic:.02}],8739:[.971,.471,.333],8741:[.971,.471,.555],8747:[1.361,.861,.669,{ic:.33}],8748:[1.361,.861,1.089,{ic:.33}],8749:[1.361,.861,1.509,{ic:.33}],8750:[1.361,.861,.669,{ic:.33}],8751:[1.361,.861,1.089,{ic:.33}],8752:[1.361,.861,1.509,{ic:.33}],8753:[1.361,.861,.669,{ic:.33}],8754:[1.361,.861,.669,{ic:.33}],8755:[1.361,.861,.669,{ic:.33}],8896:[.958,.456,1.111],8897:[.956,.458,1.111],8898:[.939,.417,1.111],8899:[.917,.439,1.111],8968:[.85,.35,.472],8969:[.85,.35,.472],8970:[.85,.35,.472],8971:[.85,.35,.472],9140:[.735,-.541,1.11],9141:[-.111,.305,1.11],9180:[.761,-.511,1.508],9181:[-.081,.331,1.508],9182:[.818,-.509,1.494],9183:[-.078,.387,1.494],9184:[.854,-.612,1.55,{ic:.006}],9185:[-.182,.424,1.55,{ic:.006}],10145:[.469,-.031,1.423],10197:[.621,.006,.888,{sk:-.025}],10198:[.621,.006,.888,{sk:-.08}],10199:[.621,.006,1.03,{sk:-.143}],10214:[.85,.35,.48],10215:[.85,.35,.48],10216:[.85,.35,.472],10217:[.85,.35,.472],10218:[.85,.35,.682],10219:[.85,.35,.682],10222:[.864,.364,.323],10223:[.864,.364,.323],10627:[.85,.35,.583],10628:[.85,.35,.583],10629:[.847,.347,.458],10630:[.847,.347,.458],10744:[1.239,.677,.597,{ic:.053}],10745:[1.239,.677,.5,{ic:.15}],10748:[.842,.342,.422],10749:[.842,.342,.422],10752:[.902,.402,1.511],10753:[.902,.402,1.511],10754:[.902,.402,1.511],10755:[.917,.439,1.111],10756:[.917,.439,1.111],10757:[.936,.436,1.111],10758:[.936,.436,1.111],10759:[1.225,.693,1.945,{sk:-.723}],10760:[1.23,.681,1.945],10761:[.88,.38,1.371],10762:[.95,.45,1.474,{sk:-.395}],10763:[1.361,.861,1.056],10764:[1.361,.861,1.929,{ic:.33}],10765:[1.361,.861,.669,{ic:.33}],10766:[1.361,.861,.669,{ic:.33}],10767:[1.361,.861,.669,{ic:.33}],10768:[1.361,.861,.669,{ic:.33}],10769:[1.361,.861,.669,{ic:.33}],10770:[1.361,.861,.669,{ic:.33}],10771:[1.361,.861,.669,{ic:.33}],10772:[1.361,.861,.669,{ic:.33}],10773:[1.361,.861,.669,{ic:.33}],10774:[1.361,.861,.669,{ic:.33}],10775:[1.361,.861,.669,{ic:.33}],10776:[1.361,.861,.669,{ic:.33}],10777:[1.361,.861,.849,{ic:.15}],10778:[1.361,.861,.849,{ic:.15}],10779:[1.602,.861,.763,{ic:.44}],10780:[1.361,1.124,.789,{ic:.33}],10781:[.921,.151,1.291,{sk:-.395}],10782:[.885,.188,1.046,{sk:-.204}],10784:[.774,.081,1.52,{sk:-.253}],10785:[.976,.284,.784,{sk:.106}],11004:[1.237,.677,.694,{sk:.22}],11007:[1.237,.677,.478,{sk:.226}]},"-size3":{40:[.972,.472,.523],41:[.972,.472,.523],47:[1.374,.874,.964],91:[.975,.475,.444],92:[1.374,.874,.964],93:[.975,.475,.444],123:[.975,.475,.624],125:[.975,.475,.624],770:[.747,-.571,.919,{ic:.001}],771:[.757,-.543,.931],774:[.743,-.577,.937,{ic:.001}],780:[.741,-.565,.919,{ic:.001}],8260:[1.374,.874,.964],8725:[.61,.109,.581],8726:[.61,.109,.581],8730:[1.45,.951,1,{ic:.02}],8739:[1.117,.617,.333],8741:[1.117,.617,.555],8968:[.975,.475,.499],8969:[.975,.475,.499],8970:[.975,.475,.499],8971:[.975,.475,.499],9140:[.742,-.535,1.485],9141:[-.105,.312,1.485],9180:[.767,-.509,2.012],9181:[-.079,.337,2.012],9182:[.825,-.506,1.996],9183:[-.075,.394,1.996],9184:[.858,-.61,2.056,{ic:.006}],9185:[-.18,.428,2.056,{ic:.006}],10214:[.975,.475,.555],10215:[.975,.475,.555],10216:[.975,.475,.537],10217:[.975,.475,.537],10218:[.975,.475,.781],10219:[.975,.475,.781],10222:[.991,.491,.37],10223:[.991,.491,.37],10627:[.975,.475,.624],10628:[.975,.475,.624],10629:[.972,.472,.523],10630:[.972,.472,.523],10748:[.966,.466,.467],10749:[.966,.466,.467]},"-size4":{40:[1.146,.646,.597],41:[1.146,.646,.597],47:[1.722,1.222,1.222],91:[1.15,.65,.472],92:[1.722,1.222,1.222],93:[1.15,.65,.472],123:[1.15,.65,.667],125:[1.15,.65,.667],770:[.747,-.57,1.1,{ic:.001}],771:[.762,-.539,1.115],774:[.743,-.576,1.12,{ic:.001}],780:[.742,-.565,1.1,{ic:.001}],8260:[1.722,1.222,1.222],8725:[.613,.113,.588],8726:[.613,.113,.588],8730:[1.75,1.25,1,{ic:.02}],8739:[1.292,.792,.333],8741:[1.292,.792,.555],8968:[1.15,.65,.528],8969:[1.15,.65,.528],8970:[1.15,.65,.528],8971:[1.15,.65,.528],9140:[.75,-.527,1.86],9141:[-.097,.32,1.86],9180:[.774,-.506,2.516],9181:[-.076,.344,2.516],9182:[.833,-.502,2.498],9183:[-.071,.402,2.498],9184:[.863,-.607,2.564,{ic:.006}],9185:[-.177,.433,2.564,{ic:.006}],10214:[1.15,.65,.66],10215:[1.15,.65,.66],10216:[1.15,.65,.611],10217:[1.15,.65,.611],10218:[1.15,.65,.905],10219:[1.15,.65,.905],10222:[1.168,.668,.432],10223:[1.168,.668,.432],10627:[1.15,.65,.667],10628:[1.15,.65,.667],10629:[1.146,.646,.597],10630:[1.146,.646,.597],10748:[1.146,.646,.467,{ic:.023}],10749:[1.146,.646,.467,{ic:.023}]},"-size5":{40:[1.296,.796,.663],41:[1.296,.796,.663],47:[2.179,1.679,1.557],91:[1.3,.8,.499],92:[2.179,1.679,1.557],93:[1.3,.8,.499],123:[1.3,.8,.707],125:[1.3,.8,.707],770:[.748,-.569,1.32,{ic:.001}],771:[.766,-.534,1.335],774:[.743,-.575,1.341,{ic:.001}],780:[.743,-.564,1.32,{ic:.001}],8260:[2.179,1.679,1.557],8725:[.616,.115,.593],8726:[.616,.115,.593],8739:[1.502,1.002,.333],8741:[1.501,1.001,.555],8968:[1.3,.8,.555],8969:[1.3,.8,.555],8970:[1.3,.8,.555],8971:[1.3,.8,.555],9140:[.757,-.521,2.235],9141:[-.091,.327,2.235],9180:[.78,-.506,3.02],9181:[-.076,.35,3.02],9182:[.838,-.5,3],9183:[-.07,.408,3],9184:[.866,-.607,3.068,{ic:.006}],9185:[-.177,.436,3.068,{ic:.006}],10214:[1.3,.8,.75],10215:[1.3,.8,.75],10216:[1.3,.8,.677],10217:[1.3,.8,.677],10218:[1.3,.8,1.011],10219:[1.3,.8,1.011],10222:[1.32,.82,.485],10223:[1.32,.82,.485],10627:[1.3,.8,.707],10628:[1.3,.8,.707],10629:[1.296,.796,.663],10630:[1.296,.796,.663],10748:[1.296,.796,.467,{ic:.077}],10749:[1.296,.796,.467,{ic:.077}]},"-size6":{40:[1.446,.946,.736],41:[1.446,.946,.736],47:[2.777,2.277,1.997],91:[1.45,.95,.528],92:[2.777,2.277,1.997],93:[1.45,.95,.528],123:[1.45,.95,.75],125:[1.45,.95,.75],770:[.748,-.57,1.581,{ic:.001}],771:[.769,-.532,1.599],774:[.744,-.574,1.604,{ic:.001}],780:[.742,-.564,1.581,{ic:.001}],8260:[2.777,2.277,1.997],8725:[.619,.119,.6],8726:[.619,.119,.6],8739:[1.752,1.252,.333],8741:[1.751,1.252,.555],8968:[1.45,.95,.583],8969:[1.45,.95,.583],8970:[1.45,.95,.583],8971:[1.45,.95,.583],9140:[.764,-.513,2.61],9141:[-.083,.334,2.61],9180:[.787,-.505,3.524],9181:[-.075,.357,3.524],9182:[.845,-.498,3.502],9183:[-.067,.414,3.502],9184:[.869,-.606,3.574,{ic:.006}],9185:[-.176,.439,3.574,{ic:.006}],10214:[1.45,.95,.838],10215:[1.45,.95,.838],10216:[1.45,.95,.75],10217:[1.45,.95,.75],10218:[1.45,.95,1.124],10219:[1.45,.95,1.124],10222:[1.472,.972,.541],10223:[1.472,.972,.541],10627:[1.45,.95,.75],10628:[1.45,.95,.75],10629:[1.446,.946,.736],10630:[1.446,.946,.736],10748:[1.447,.936,.467,{ic:.131}],10749:[1.447,.936,.467,{ic:.131}]},"-size7":{40:[1.745,1.245,.875],41:[1.745,1.245,.875],47:[3.56,3.06,2.572],91:[1.75,1.25,.667],92:[3.56,3.06,2.572],93:[1.75,1.25,.667],123:[1.75,1.25,.902],125:[1.75,1.25,.902],770:[.749,-.569,1.896],771:[.773,-.527,1.915],774:[.744,-.573,1.92,{ic:.001}],780:[.743,-.563,1.896],8260:[3.56,3.06,2.572],8725:[.623,.122,.607],8726:[.623,.122,.607],8739:[2.052,1.552,.333],8741:[2.053,1.553,.555],8968:[1.75,1.25,.623],8969:[1.75,1.25,.623],8970:[1.75,1.25,.623],8971:[1.75,1.25,.623],9140:[.772,-.504,2.985],9141:[-.074,.342,2.985],9180:[.796,-.502,4.032],9181:[-.072,.366,4.032],9182:[.854,-.493,4.006],9183:[-.062,.423,4.006],9184:[.873,-.605,4.082,{ic:.006}],9185:[-.175,.443,4.082,{ic:.006}],10214:[1.75,1.25,1.007],10215:[1.75,1.25,1.007],10216:[1.75,1.25,.908],10217:[1.75,1.25,.908],10218:[1.75,1.25,1.362],10219:[1.75,1.25,1.362],10222:[1.776,1.276,.647],10223:[1.776,1.276,.647],10627:[1.75,1.25,.902],10628:[1.75,1.25,.902],10629:[1.745,1.245,.875],10630:[1.745,1.245,.875],10748:[1.751,1.251,.467,{ic:.257}],10749:[1.751,1.251,.467,{ic:.592}]},"-tex-mathit":{65:[.716,0,.743],66:[.683,0,.704,{oc:.03}],67:[.705,.022,.716,{oc:.096}],68:[.683,0,.755,{oc:.02}],69:[.68,0,.678,{oc:.069}],70:[.68,0,.653,{oc:.082}],71:[.705,.022,.774,{oc:.038}],72:[.683,0,.743,{oc:.109}],73:[.683,0,.386,{oc:.115}],74:[.683,.022,.525,{oc:.097}],75:[.683,0,.769,{oc:.09}],76:[.683,0,.627],77:[.683,0,.897,{oc:.105}],78:[.683,0,.743,{oc:.109}],79:[.705,.022,.767,{oc:.021}],80:[.683,0,.678,{oc:.052}],81:[.705,.194,.767,{oc:.021}],82:[.683,.022,.729],83:[.705,.022,.562,{oc:.07}],84:[.677,0,.716,{oc:.09}],85:[.683,.022,.743,{oc:.109}],86:[.683,.022,.743,{oc:.125}],87:[.683,.022,.999,{oc:.125}],88:[.683,0,.743,{oc:.082}],89:[.683,0,.743,{oc:.131}],90:[.683,0,.613,{oc:.091}],97:[.442,.011,.511,{oc:.014}],98:[.694,.011,.46],99:[.442,.011,.46,{oc:.01}],100:[.694,.011,.511,{oc:.049}],101:[.442,.011,.46,{oc:.008}],102:[.705,.205,.307,{oc:.145}],103:[.442,.205,.46,{oc:.027}],104:[.694,.011,.511,{oc:.024}],105:[.654,.011,.307,{oc:.051}],106:[.654,.205,.307,{oc:.051}],107:[.694,.011,.46,{oc:.042}],108:[.694,.011,.256,{oc:.05}],109:[.442,.011,.818,{oc:.024}],110:[.442,.011,.562,{oc:.024}],111:[.442,.011,.511],112:[.442,.194,.511],113:[.442,.194,.46,{oc:.037}],114:[.442,.011,.422,{oc:.067}],115:[.442,.011,.409,{oc:.01}],116:[.626,.011,.332,{oc:.041}],117:[.442,.011,.537,{oc:.024}],118:[.442,.011,.46,{oc:.033}],119:[.442,.011,.664,{oc:.033}],120:[.442,.011,.464,{oc:.054}],121:[.442,.205,.486,{oc:.03}],122:[.442,.011,.409,{oc:.055}]},"-tex-calligraphic":{},"-tex-bold-calligraphic":{},"-tex-oldstyle":{48:[.472,.022,.57],49:[.472,0,.404],50:[.472,0,.554],51:[.472,.216,.563],52:[.485,.194,.517],53:[.472,.216,.547],54:[.666,.022,.563],55:[.485,.213,.503],56:[.666,.022,.563],57:[.472,.216,.563]},"-tex-bold-oldstyle":{48:[.461,.011,.654],49:[.461,0,.494],50:[.461,0,.636],51:[.461,.205,.648],52:[.488,.194,.595],53:[.461,.205,.63],54:[.655,.011,.648],55:[.488,.199,.579],56:[.655,.011,.648],57:[.461,.205,.648]},"-tex-variant":{8216:[.549,-.096,.407],8217:[.549,-.096,.407],8218:[.549,-.096,.407],8219:[.549,-.096,.407],8220:[.549,-.096,.647],8221:[.549,-.096,.647],8222:[.549,-.096,.647],8223:[.549,-.096,.647],8242:[.549,-.096,.407],8243:[.549,-.096,.647],8244:[.549,-.096,.887],8245:[.549,-.096,.407],8246:[.549,-.096,.647],8247:[.549,-.096,.887],8279:[.549,-.096,1.127],8463:[.694,.011,.511,{ic:.024}],8592:[.437,-.063,.5],8594:[.437,-.063,.5],8709:[.597,.097,.778],8722:[.27,-.23,.5],8726:[.431,.022,.777],8730:[.75,.25,.833,{ic:.02}],8733:[.472,-.028,.777],8739:[.431,.022,.222],8740:[.431,.022,.222,{ic:.019}],8741:[.431,.022,.388],8742:[.431,.022,.388,{ic:.02}],8764:[.367,-.133,.777],8776:[.483,-.056,.777],8808:[.753,.276,.777],8809:[.753,.276,.777],8816:[.92,.42,.777],8817:[.92,.42,.777],8840:[.828,.328,.777],8841:[.828,.328,.777],8842:[.636,.248,.777],8843:[.636,.248,.777],8902:[.485,-.019,.5],8994:[.378,-.122,.777],8995:[.378,-.142,.777],10887:[.803,.303,.777],10888:[.803,.303,.777],10955:[.753,.325,.777],10956:[.753,.325,.777]},"-lf-tp":{8400:[.711,-.601,.208],8406:[.711,-.521,.205],8429:[-.171,.281,.208],8430:[-.091,.281,.205],8592:[.51,.01,.507],8593:[.505,0,.5],8602:[.51,.01,.386],8606:[.51,.01,.507],8607:[.505,0,.572],8611:[.51,.01,.58],8614:[.51,.011,.499],8615:[.498,0,.632],8618:[.546,-.226,.507],8620:[.55,.05,.507],8636:[.499,-.226,.513],8637:[.273,0,.512],8638:[.513,0,.441],8639:[.513,0,.441],8644:[.432,.172,.515],8645:[.514,0,.896],8646:[.669,-.065,.514],8647:[.75,.25,.507],8648:[.505,0,.992],8651:[.598,-.131,.515],8652:[.369,.098,.514],8653:[.52,.02,.384],8656:[.52,.02,.504],8657:[.504,0,.652],8666:[.617,.117,.506],8693:[.515,0,.896],8730:[.62,0,1.056,{ic:.013}],9140:[.772,-.504,1.493],9141:[-.074,.342,1.493],9180:[.796,-.502,2.016],9181:[-.072,.366,2.016],9182:[.724,-.493,1.002],9183:[-.062,.294,1.002],9184:[.873,-.605,2.041],9185:[-.175,.443,2.041],10214:[1,0,1.007],10215:[1,0,1.007],10222:[1.526,0,.647],10223:[1.526,0,.647],10572:[.513,0,.616],10573:[.513,0,.616],11057:[.99,.49,.507]},"-rt-bt":{8401:[.711,-.601,.208],8407:[.711,-.521,.205],8428:[-.171,.281,.208],8431:[-.091,.281,.205],8594:[.51,.01,.507],8595:[.505,0,.5],8603:[.51,.01,.386],8608:[.51,.01,.507],8609:[.505,0,.572],8610:[.51,.01,.58],8612:[.51,.011,.499],8613:[.498,0,.632],8617:[.546,-.226,.507],8619:[.55,.05,.507],8640:[.499,-.226,.513],8641:[.273,0,.513],8642:[.513,0,.441],8643:[.513,0,.441],8644:[.669,-.065,.514],8645:[.515,0,.896],8646:[.432,.172,.515],8649:[.75,.25,.507],8650:[.505,0,.992],8651:[.369,.098,.514],8652:[.598,-.131,.515],8654:[.52,.02,.406],8658:[.52,.02,.504],8659:[.504,0,.652],8667:[.617,.117,.506],8693:[.514,0,.896],8694:[.99,.49,.507],9140:[.772,-.504,1.492],9141:[-.074,.342,1.492],9180:[.796,-.502,2.016],9181:[-.072,.366,2.016],9182:[.724,-.493,1.001],9183:[-.062,.294,1.001],9184:[.873,-.605,2.041,{ic:.006}],9185:[-.175,.443,2.041,{ic:.006}],10214:[1,0,1.007],10215:[1,0,1.007],10222:[1.526,0,.647],10223:[1.526,0,.647],10572:[.513,0,.616],10573:[.513,0,.616]},"-ex-md":{95:[-.188,.294,.994],123:[.748,0,.902],175:[.724,-.618,.994],773:[.67,-.63,.19],8400:[.631,-.601,.139],8592:[.274,-.226,.337],8593:[.337,0,.5],8602:[.51,.01,.386],8617:[.274,-.226,.337],8636:[.273,-.226,.341],8638:[.341,0,.441],8639:[.341,0,.441],8644:[.432,-.065,.343],8645:[.343,0,.896],8647:[.512,.012,.337],8648:[.337,0,.992],8651:[.369,-.131,.343],8653:[.52,.02,.384],8654:[.369,-.131,.102],8656:[.369,-.131,.336],8657:[.336,0,.652],8666:[.466,-.034,.337],8694:[.751,.251,.337],8730:[.64,0,1.056],9140:[.772,-.706,.995],9141:[-.276,.342,.995],9180:[.796,-.689,.994],9181:[-.259,.366,.994],9182:[.85,-.618,2.003],9183:[-.188,.419,2.003],9184:[.873,-.766,1.36],9185:[-.336,.443,1.36],10214:[1,0,1.007],10215:[1,0,1.007],10222:[.998,0,.647],10223:[.998,0,.647],10572:[.337,0,.616]},"-bbold":{8450:[.705,.022,.722,{sk:.386}],8461:[.683,0,.833,{sk:.234}],8469:[.683,0,.833,{sk:.256}],8473:[.683,0,.736,{sk:.289}],8474:[.705,.194,.778,{sk:.157}],8477:[.683,.022,.792,{sk:.259}],8484:[.683,0,.75,{sk:-.056}],8508:[.431,.011,.687,{sk:.237}],8509:[.442,.215,.518,{ic:.025,sk:.284}],8510:[.68,0,.737,{sk:.335}],8511:[.68,0,.862,{sk:.126}],8512:[.683,0,.839,{sk:.021}],8517:[.683,0,.794,{ic:.023,sk:.13}],8518:[.694,.011,.673,{ic:.042,sk:.073}],8519:[.448,.011,.444,{ic:.03,sk:.297}],8520:[.691,0,.395,{ic:.028,sk:.314}],8521:[.691,.205,.423,{ic:.038,sk:.357}],120120:[.683,0,.863,{sk:.23}],120121:[.683,0,.764,{sk:.298}],120123:[.683,0,.794,{sk:.221}],120124:[.68,0,.736,{sk:.394}],120125:[.68,0,.709,{sk:.065}],120126:[.705,.022,.785,{sk:.406}],120128:[.683,0,.467,{sk:.311}],120129:[.683,.022,.597,{sk:.101}],120130:[.683,0,.833,{sk:.281}],120131:[.683,0,.68,{sk:.336}],120132:[.684,0,1,{sk:.329}],120134:[.705,.022,.778,{sk:.157}],120138:[.705,.022,.556,{sk:.366}],120139:[.677,0,.754,{sk:.338}],120140:[.683,.022,.806,{sk:.301}],120141:[.683,.008,.804,{sk:.253}],120142:[.683,.022,1.058,{sk:.283}],120143:[.683,0,.866,{sk:.208}],120144:[.683,0,.868,{sk:.21}],120146:[.448,.011,.614,{sk:.034}],120147:[.694,.011,.673,{sk:.09}],120148:[.448,.011,.444,{sk:.328}],120149:[.694,.011,.673,{sk:.05}],120150:[.448,.011,.444,{sk:.251}],120151:[.705,0,.423,{ic:.051,sk:.049}],120152:[.453,.206,.5,{sk:.305}],120153:[.694,0,.676,{sk:.033}],120154:[.691,0,.395,{sk:.2}],120155:[.691,.205,.423,{sk:.215}],120156:[.694,0,.648,{sk:.129}],120157:[.694,0,.394,{sk:.085}],120158:[.442,0,.95,{sk:-.192}],120159:[.442,0,.673,{sk:.049}],120160:[.448,.011,.5,{sk:.039}],120161:[.442,.194,.673,{sk:.021}],120162:[.442,.194,.645,{sk:.225}],120163:[.442,0,.509,{sk:.311}],120164:[.448,.011,.394,{sk:.43}],120165:[.615,.011,.506,{sk:.246}],120166:[.442,.011,.673,{sk:.305}],120167:[.431,.011,.635,{sk:.013}],120168:[.431,.011,.635,{ic:.155,sk:.243}],120169:[.431,0,.645,{sk:.216}],120170:[.431,.205,.635,{sk:.122}],120171:[.431,0,.561,{sk:.025}],120792:[.666,.022,.5,{sk:.281}],120793:[.666,0,.624,{sk:.12}],120794:[.666,0,.5,{sk:.198}],120795:[.666,.022,.5,{sk:.063}],120796:[.677,0,.627,{sk:.102}],120797:[.666,.022,.5,{sk:.148}],120798:[.666,.022,.5,{sk:.304}],120799:[.676,.022,.55,{sk:.061}],120800:[.666,.022,.5,{sk:.038}],120801:[.666,.022,.5,{sk:.03}]},"-upsmall":{8747:[.805,.306,.665],8748:[.805,.306,1.035],8749:[.805,.306,1.405],8750:[.81,.312,.665],8751:[.805,.306,1.035],8752:[.805,.306,1.405],8753:[.805,.306,.695],8754:[.805,.306,.665],8755:[.805,.306,.665],10764:[.805,.306,1.775],10765:[.805,.306,.665],10766:[.805,.306,.665],10776:[.805,.306,.665],10777:[.805,.306,.665],10778:[.805,.306,.665],10779:[.967,.306,.665,{ic:.002}],10780:[.805,.468,.665],58230:[.805,.306,.665],58231:[.805,.306,.665],58261:[.805,.306,.665],58263:[.805,.306,.665],58264:[.805,.306,.665],58265:[.805,.306,.665],58266:[.805,.306,.665,{ic:.085}],58267:[.798,.299,.695],58323:[.805,.306,.665],59991:[.805,.306,.707]},"-uplarge":{8747:[1.361,.861,.763],8748:[1.361,.861,1.175],8749:[1.361,.861,1.623],8750:[1.363,.861,.899],8751:[1.361,.861,1.295],8752:[1.361,.861,1.699],8753:[1.361,.861,.999],8754:[1.361,.861,.999],8755:[1.361,.861,.999],10763:[1.361,.861,1.056],10764:[1.361,.861,2.019],10765:[1.361,.861,.999],10766:[1.361,.861,.999],10767:[1.361,.861,.999],10768:[1.361,.861,.999],10769:[1.361,.861,.999],10770:[1.361,.861,.895],10771:[1.361,.861,.871],10772:[1.361,.861,.831,{ic:.077}],10773:[1.361,.861,.903],10774:[1.361,.861,.883],10775:[1.361,.861,.967],10776:[1.361,.861,.875],10777:[1.361,.861,.955],10778:[1.361,.861,.967],10779:[1.602,.861,.999],10780:[1.361,1.124,.807]},script:{},"bold-script":{}},
67Gi.defaultStyles=Object.assign(Object.assign({},Mi.defaultStyles),{'mjx-container[jax="CHTML"] > mjx-math.NCM-N[breakable] > *':{"font-family":"MJX-NCM-ZERO, MJX-NCM-N"},".NCM-N":{"font-family":"MJX-NCM-ZERO, MJX-NCM-N"},".NCM-B":{"font-family":"MJX-NCM-ZERO, MJX-NCM-B"},".NCM-I":{"font-family":"MJX-NCM-ZERO, MJX-NCM-I"},".NCM-BI":{"font-family":"MJX-NCM-ZERO, MJX-NCM-BI"},".NCM-DS":{"font-family":"MJX-NCM-ZERO, MJX-NCM-DS"},".NCM-F":{"font-family":"MJX-NCM-ZERO, MJX-NCM-F"},".NCM-FB":{"font-family":"MJX-NCM-ZERO, MJX-NCM-FB"},".NCM-SS":{"font-family":"MJX-NCM-ZERO, MJX-NCM-SS"},".NCM-SSB":{"font-family":"MJX-NCM-ZERO, MJX-NCM-SSB"},".NCM-SSI":{"font-family":"MJX-NCM-ZERO, MJX-NCM-SSI"},".NCM-SSBI":{"font-family":"MJX-NCM-ZERO, MJX-NCM-SSBI"},".NCM-M":{"font-family":"MJX-NCM-ZERO, MJX-NCM-M"},".NCM-SO":{"font-family":"MJX-NCM-ZERO, MJX-NCM-SO"},".NCM-LO":{"font-family":"MJX-NCM-ZERO, MJX-NCM-LO"},".NCM-S3":{"font-family":"MJX-NCM-ZERO, MJX-NCM-S3"},".NCM-S4":{"font-family":"MJX-NCM-ZERO, MJX-NCM-S4"},".NCM-S5":{"font-family":"MJX-NCM-ZERO, MJX-NCM-S5"},".NCM-S6":{"font-family":"MJX-NCM-ZERO, MJX-NCM-S6"},".NCM-S7":{"font-family":"MJX-NCM-ZERO, MJX-NCM-S7"},".NCM-MI":{"font-family":"MJX-NCM-ZERO, MJX-NCM-MI"},".NCM-C":{"font-family":"MJX-NCM-ZERO, MJX-NCM-C"},".NCM-CB":{"font-family":"MJX-NCM-ZERO, MJX-NCM-CB"},".NCM-OS":{"font-family":"MJX-NCM-ZERO, MJX-NCM-OS"},".NCM-OB":{"font-family":"MJX-NCM-ZERO, MJX-NCM-OB"},".NCM-V":{"font-family":"MJX-NCM-ZERO, MJX-NCM-V"},".NCM-LT":{"font-family":"MJX-NCM-ZERO, MJX-NCM-LT"},".NCM-RB":{"font-family":"MJX-NCM-ZERO, MJX-NCM-RB"},".NCM-EM":{"font-family":"MJX-NCM-ZERO, MJX-NCM-EM"},".NCM-B-a":{"font-family":"MJX-NCM-ZERO, MJX-NCM-B-a"},".NCM-U":{"font-family":"MJX-NCM-ZERO, MJX-NCM-U"},".NCM-U-a":{"font-family":"MJX-NCM-ZERO, MJX-NCM-U-a"},".NCM-S":{"font-family":"MJX-NCM-ZERO, MJX-NCM-S"},".NCM-SB":{"font-family":"MJX-NCM-ZERO, MJX-NCM-SB"}}),Gi.defaultFonts=Object.assign(Object.assign({},Mi.defaultFonts),{"@font-face /* MJX-NCM-ZERO */":{"font-family":"MJX-NCM-ZERO",src:'url("%%URL%%/mjx-ncm-zero.woff2") format("woff2")'},"@font-face /* MJX-BRK */":{"font-family":"MJX-BRK",src:'url("%%URL%%/mjx-ncm-brk.woff2") format("woff2")'},"@font-face /* MJX-NCM-N */":{"font-family":"MJX-NCM-N",src:'url("%%URL%%/mjx-ncm-n.woff2") format("woff2")'},"@font-face /* MJX-NCM-B */":{"font-family":"MJX-NCM-B",src:'url("%%URL%%/mjx-ncm-b.woff2") format("woff2")'},"@font-face /* MJX-NCM-I */":{"font-family":"MJX-NCM-I",src:'url("%%URL%%/mjx-ncm-i.woff2") format("woff2")'},"@font-face /* MJX-NCM-BI */":{"font-family":"MJX-NCM-BI",src:'url("%%URL%%/mjx-ncm-bi.woff2") format("woff2")'},"@font-face /* MJX-NCM-DS */":{"font-family":"MJX-NCM-DS",src:'url("%%URL%%/mjx-ncm-ds.woff2") format("woff2")'},"@font-face /* MJX-NCM-F */":{"font-family":"MJX-NCM-F",src:'url("%%URL%%/mjx-ncm-f.woff2") format("woff2")'},"@font-face /* MJX-NCM-FB */":{"font-family":"MJX-NCM-FB",src:'url("%%URL%%/mjx-ncm-fb.woff2") format("woff2")'},"@font-face /* MJX-NCM-SS */":{"font-family":"MJX-NCM-SS",src:'url("%%URL%%/mjx-ncm-ss.woff2") format("woff2")'},"@font-face /* MJX-NCM-SSB */":{"font-family":"MJX-NCM-SSB",src:'url("%%URL%%/mjx-ncm-ssb.woff2") format("woff2")'},"@font-face /* MJX-NCM-SSI */":{"font-family":"MJX-NCM-SSI",src:'url("%%URL%%/mjx-ncm-ssi.woff2") format("woff2")'},"@font-face /* MJX-NCM-SSBI */":{"font-family":"MJX-NCM-SSBI",src:'url("%%URL%%/mjx-ncm-ssbi.woff2") format("woff2")'},"@font-face /* MJX-NCM-M */":{"font-family":"MJX-NCM-M",src:'url("%%URL%%/mjx-ncm-m.woff2") format("woff2")'},"@font-face /* MJX-NCM-SO */":{"font-family":"MJX-NCM-SO",src:'url("%%URL%%/mjx-ncm-so.woff2") format("woff2")'},"@font-face /* MJX-NCM-LO */":{"font-family":"MJX-NCM-LO",src:'url("%%URL%%/mjx-ncm-lo.woff2") format("woff2")'},"@font-face /* MJX-NCM-S3 */":{"font-family":"MJX-NCM-S3",src:'url("%%URL%%/mjx-ncm-s3.woff2") format("woff2")'},"@font-face /* MJX-NCM-S4 */":{"font-family":"MJX-NCM-S4",src:'url("%%URL%%/mjx-ncm-s4.woff2") format("woff2")'},"@font-face /* MJX-NCM-S5 */":{"font-family":"MJX-NCM-S5",src:'url("%%URL%%/mjx-ncm-s5.woff2") format("woff2")'},"@font-face /* MJX-NCM-S6 */":{"font-family":"MJX-NCM-S6",src:'url("%%URL%%/mjx-ncm-s6.woff2") format("woff2")'},"@font-face /* MJX-NCM-S7 */":{"font-family":"MJX-NCM-S7",src:'url("%%URL%%/mjx-ncm-s7.woff2") format("woff2")'},"@font-face /* MJX-NCM-MI */":{"font-family":"MJX-NCM-MI",src:'url("%%URL%%/mjx-ncm-mi.woff2") format("woff2")'},"@font-face /* MJX-NCM-C */":{"font-family":"MJX-NCM-C",src:'url("%%URL%%/mjx-ncm-c.woff2") format("woff2")'},"@font-face /* MJX-NCM-CB */":{"font-family":"MJX-NCM-CB",src:'url("%%URL%%/mjx-ncm-cb.woff2") format("woff2")'},"@font-face /* MJX-NCM-OS */":{"font-family":"MJX-NCM-OS",src:'url("%%URL%%/mjx-ncm-os.woff2") format("woff2")'},"@font-face /* MJX-NCM-OB */":{"font-family":"MJX-NCM-OB",src:'url("%%URL%%/mjx-ncm-ob.woff2") format("woff2")'}
67,"@font-face /* MJX-NCM-V */":{"font-family":"MJX-NCM-V",src:'url("%%URL%%/mjx-ncm-v.woff2") format("woff2")'},"@font-face /* MJX-NCM-LT */":{"font-family":"MJX-NCM-LT",src:'url("%%URL%%/mjx-ncm-lt.woff2") format("woff2")'},"@font-face /* MJX-NCM-RB */":{"font-family":"MJX-NCM-RB",src:'url("%%URL%%/mjx-ncm-rb.woff2") format("woff2")'},"@font-face /* MJX-NCM-EM */":{"font-family":"MJX-NCM-EM",src:'url("%%URL%%/mjx-ncm-em.woff2") format("woff2")'},"@font-face /* MJX-NCM-B-a */":{"font-family":"MJX-NCM-B-a",src:'url("%%URL%%/mjx-ncm-b-a.woff2") format("woff2")'},"@font-face /* MJX-NCM-U */":{"font-family":"MJX-NCM-U",src:'url("%%URL%%/mjx-ncm-u.woff2") format("woff2")'},"@font-face /* MJX-NCM-U-a */":{"font-family":"MJX-NCM-U-a",src:'url("%%URL%%/mjx-ncm-u-a.woff2") format("woff2")'},"@font-face /* MJX-NCM-S */":{"font-family":"MJX-NCM-S",src:'url("%%URL%%/mjx-ncm-s.woff2") format("woff2")'},"@font-face /* MJX-NCM-SB */":{"font-family":"MJX-NCM-SB",src:'url("%%URL%%/mjx-ncm-sb.woff2") format("woff2")'}}),Gi.dynamicFiles=Mi
vendor: 22,662 bytes, line 67
67.defineDynamicFiles([["latin",{normal:[[192,214],[216,239],[241,246],[248,304],[306,566],[568,591],[7680,7835],7838,[7840,7929],11377]}],["latin-b",{bold:[[192,214],[216,239],[241,246],[248,304],[306,566],[568,591],[7680,7699],[7704,7707],[7710,7719],[7722,7755],[7764,7779],[7784,7799],[7804,7833],7835,7838,[7840,7929],11377]}],["latin-i",{italic:[[192,214],[216,239],[241,246],[248,304],[306,566],[568,591],[7680,7699],[7704,7707],[7710,7719],[7722,7755],[7764,7779],[7784,7799],[7804,7833],7835,7838,[7840,7929]]}],["latin-bi",{"bold-italic":[[192,214],[216,239],[241,246],[248,304],[306,566],[568,591],[7680,7699],[7704,7707],[7710,7719],[7722,7755],[7764,7779],[7784,7799],[7804,7833],7835,7838,[7840,7929]]}],["double-struck",{normal:[8450,8461,8469,8473,8474,8477,8484,[8508,8512],[8517,8521],120120,120121,[120123,120126],[120128,120132],120134,[120138,120144],[120146,120171],[120792,120801]],"double-struck":[305,567]}],["fraktur",{normal:[8460,8465,8476,8488,8493,120068,120069,[120071,120074],[120077,120084],[120086,120092],[120094,120119],[120172,120223]],fraktur:[305,567],"bold-fraktur":[305,567]}],["script",{normal:[8458,8459,8464,8466,8467,8472,8475,8492,[8495,8497],8499,8500,119964,119966,119967,119970,119973,119974,[119977,119980],[119982,119993],119995,[119997,120003],[120005,120067]],script:[],"bold-script":[]}],["sans-serif",{normal:[[8513,8516],[120224,120431],[120662,120777],[120802,120821]],"sans-serif":[[32,47],[58,64],[91,96],[123,126],160,163,165,167,168,172,[175,177],[180,183],215,240,247,305,567,710,711,[713,715],[728,730],732,[768,776],778,780,[913,929],[931,937],[945,969],977,978,981,982,1008,1009,[1012,1014],[8208,8212],8214,8216,8217,8220,8221,8224,8225,8230,8260,8364,8486,8487,[8592,8595],8722,8734],"bold-sans-serif":[32,33,[35,47],58,59,61,63,64,[91,96],[123,126],160,163,165,167,168,172,[175,177],[180,183],215,240,247,305,567,710,711,[713,715],[728,730],732,[768,776],778,780,978,1014,[8208,8212],8214,8216,8217,8220,8221,8224,8225,8230,8260,8364,8486,8487,[8592,8595],8722,8734],"sans-serif-italic":[[32,64],[91,96],[123,126],160,163,165,167,168,172,[175,177],[180,183],215,240,247,305,567,710,711,[713,715],[728,730],732,[768,776],778,780,[913,929],[931,937],[945,969],977,978,981,982,1008,1009,[1012,1014],[8208,8212],8214,8216,8217,8220,8221,8224,8225,8230,8260,8364,8486,8487,[8592,8595],8722,8734],"sans-serif-bold-italic":[32,33,[35,59],61,63,64,[91,96],[123,126],160,163,165,167,168,172,[175,177],[180,183],215,240,247,305,567,710,711,[713,715],[728,730],732,[768,776],778,780,978,1014,[8208,8212],8214,8216,8217,8220,8221,8224,8225,8230,8260,8364,8486,8487,[8592,8595],8722,8734]}],["sans-serif-r",{"sans-serif":[[192,214],[216,239],[241,246],[248,304],[306,566],[568,591],[7680,7699],[7704,7707],[7710,7719],[7722,7755],[7764,7779],[7784,7799],[7804,7833],7835,7838,[7840,7929],11377]}],["sans-serif-b",{"bold-sans-serif":[[192,214],[216,239],[241,246],[248,304],[306,566],[568,591],[7680,7699],[7704,7707],[7710,7719],[7722,7755],[7764,7779],[7784,7799],[7804,7833],7835,7838,[7840,7929],11377]}],["sans-serif-i",{"sans-serif-italic":[[192,214],[216,239],[241,246],[248,304],[306,566],[568,591],[7680,7699],[7704,7707],[7710,7719],[7722,7755],[7764,7779],[7784,7799],[7804,7833],7835,7838,[7840,7929],11377]}],["sans-serif-bi",{"sans-serif-bold-italic":[[192,214],[216,239],[241,246],[248,304],[306,566],[568,591],[7680,7699],[7704,7707],[7710,7719],[7722,7755],[7764,7779],[7784,7799],[7804,7833],7835,7838,[7840,7929],11377]}],["sans-serif-ex",{"sans-serif":[161,162,164,166,[169,171],173,174,184,[186,191],[688,709],712,716,[718,727],731,[733,766],777,779,[781,823],[825,846],[848,879],3647,7620,7621,7624,7625,8218,8219,8222,8223,8226,8233,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8319,8320,8353,8358,8361,8363,8369,8370,8451,8470,8471,8478,8480,8482,8494,[8592,8595],8730,8738,8960,9001,9002,9250,9251,9474,9553,9702,9773,9792,9834,9901,9902,9906,10013,10214,10215,11800,59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59959,59962,59966,59970,59973,60163,60164,60168,60175,60177,60178,60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,61699,61700,61705,[61719,61726],[61729,61731],[61734,61741],61743,[61747,61752],61757,[61761,61766],[61771,61788],[61791,61797],61800,[61804,61810],61813,[61817,61819],[61822,61824],61826,61828,61829,[61832,61839],61842,61850,61854,61855,61857,61859,61860,[61863,61877],62082,62083,62110,62113,62116,[62119,62121],62124,62126,62127,[62560,62568],[62570,62578],63166,[63187,63190],63198,[64256,64260],65126],"bold-sans-serif":[161,162,164,166,[169,171],173,174,184,[186,191],[688,709],712,716,[718,727],731,[733,766],777,779,[781,823],[825,846],[848,879],3647,7620,7621,7624,7625,8218,8219,8222,8223,8226,8233,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8319,8320,8353,8358,8361,8363,8369,8370,8451,8470,8471,8478,8480,8482,8494,[8592,8595],8730,8738,8960,9001,9002,9250,9251,9474,9553,9702,9773,9792,9834,9901,9902,9906,10013,10214,10215,11800,59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,61699,61700,61705,[61719,61726],[61729,61731],[61734,61741],61743,[61747,61752],61757,[61761,61766],[61771,61788],[61791,61797],61800,[61804,61810],61813,[61817,61819],[61822,61824],61826,61828,61829,[61832,61839],61842,61850,61854,61855,61857,61859,61860,[61863,61877],62082,62083,62110,62113,62116,[62119,62121],62124,62126,62127,[62560,62568],[62570,62578],63166,[63187,63190],63198,[64256,64260],65126],"sans-serif-italic":[161,162,164,166,[169,171],173,174,184,[186,191],[688,709],712,716,[718,727],731,[733,766],777,779,[781,823],[825,846],[848,879],3647,7620,7621,7624,7625,8218,8219,8222,8223,8226,8233,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8319,8320,8353,8358,8361,8363,8369,8370,8451,8470,8471,8478,8480,8482,8494,[8592,8595],8730,8738,8960,9001,9002,9250,9251,9474,9553,9702,9773,9792,9834,9901,9902,9906,10013,10214,10215,11800,59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,61699,61700,61705,[61719,61726],[61729,61731],[61734,61741],61743,[61747,61752],61757,[61761,61766],[61771,61788],[61791,61797],61800,[61804,61810],61813,[61817,61819],[61822,61824],61826,61828,61829,[61832,61839],61842,61850,61854,61855,61857,61859,61860,[61863,61877],62082,62083,62110,62113,62116,[62119,62121],62124,62126,62127,[62560,62568],[62570,62578],63166,[63187,63190],63198,[64256,64260],65126],"sans-serif-bold-italic":[161,162,164,166,[169,171],173,174,184,[186,191],[688,709],712,716,[718,727],731,[733,766],777,779,[781,823],[825,879],3647,7620,7621,7624,7625,8218,8219,8222,8223,8226,8233,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8319,8320,8353,8358,8361,8363,8369,8370,8451,8470,8471,8478,8480,8482,8494,[8592,8595],8730,8738,8960,9001,9002,9250,9251,9474,9553,9702,9773,9792,9834,9901,9902,9906,10013,10214,10215,11800,59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,61699,61700,61705,[61719,61726],[61729,61731],[61734,61741],61743,[61747,61752],61757,[61761,61766],[61771,61788],[61791,61797],61800,[61804,61810],61813,[61817,61819],[61822,61824],61826,61828,61829,[61832,61839],61842,61850,61854,61855,61857,61859,61860,[61863,61877],62082,62083,62110,62113,62116,[62119,62121],62124,62126,62127,[62560,62568],[62570,62578],63166,[63187,63190],63198,[64256,64260],65126]}],["monospace",{normal:[[120432,120483],[120822,120831]],monospace:[[32,47],[58,64],[91,96],[123,126],160,163,165,167,168,172,[175,177],[180,183],215,240,247,305,567,710,711,[728,730],732,[768,776],778,780,[913,929],[931,937],[945,969],977,978,981,982,1008,1009,[1012,1014],[8208,8212],8214,8216,8217,8220,8221,8224,8225,8230,8260,8364,8486,8487,[8592,8595],8722,8734]}],["monospace-l",{monospace:[[192,214],[216,239],[241,246],[248,304],[306,566],[568,591],[7680,7699],[7704,7707],[7710,7719],[7722,7755],[7764,7779],[7784,7799],[7804,7833],7835,7838,[7840,7929],11377]}],["monospace-ex",{monospace:[161,162,164,166,[169,171],173,174,184,[186,191],[592,709],712,716,[718,727],731,[733,766],777,779,[781,823],[825,887],[890,895],[900,906],908,[910,912],[938,944],[970,976],979,980,[983,995],1010,1011,[1015,1143],[1146,1158],[1160,1230],[1232,1273],[1276,1279],1298,1299,[1306,1309],3647,7424,7431,7434,7435,7437,7448,7449,7452,[7491,7499],7501,[7503,7507],[7510,7512],7514,7515,7517,7518,7520,7521,7544,[7568,7571],7575,7620,7621,7624,7625,[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],8218,8219,8222,8223,8226,8233,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8319,8320,8353,8358,8361,8363,8369,8370,8451,8470,8471,8478,8480,8482,8494,[8592,8595],8730,8738,8960,9001,9002,9250,9251,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,[9552,9579],9702,9773,9792,9834,9901,9902,9906,10013,10214,10215,11800,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60259,60261,60270,60271,[60424,60430],60432,60433,61699,61700,61705,[61719,61726],[61729,61731],[61734,61741],61743,[61747,61752],61757,[61761,61766],[61771,61788],[61791,61797],61800,[61804,61810],61813,[61817,61819],[61822,61824],61826,61828,61829,[61832,61839],61842,61850,61854,61855,61857,61859,61860,[61863,61877],62082,62083,62110,62113,62116,[62119,62121],62124,62126,62127,[62560,62568],[62570,62578],63166,[63187,63190],63198,[64256,64262],65126]}],["calligraphic",{"-tex-calligraphic":[[65,90]],"-tex-bold-calligraphic":[[65,90]]}],["math",{normal:[8714,8717,8731,8732,8762,8763,8782,8783,[8785,8787],[8790,8796],8798,8844,[8886,8889],[8891,8895],8903,[8912,8929],[8932,8937],[8946,8959],[10176,10199],[10202,10204],[10207,10213],[10625,10646],[10649,10740],10742,[10746,10751],10762,10763,[10781,10798],[10800,10814],[10816,10876],[10879,10884],[10893,10900],[10903,10926],[10939,10948],[10951,10954],[10957,10973],[10988,10993],[10998,11003],[11005,11007]]}],["symbols",{normal:[127,161,162,164,166,[169,171],173,174,178,179,[185,191],3647,8215,8218,8219,8222,8223,[8226,8229],8233,8240,8241,[8248,8259],[8261,8278],[8280,8286],8319,8320,8353,8358,[8361,8363],8369,8370,8448,8449,[8451,8454],8456,8457,8468,8470,8471,[8478,8483],8485,8489,8494,[8505,8507],[8522,8527],[8960,8966],[8977,8984],8986,8987,[8996,9e3],[9003,9114],9142,[9146,9165],9167,[9169,9179],[9186,9203],[9208,9215],9250,9251,11159,11193,11209,[11216,11241],[11248,11263],11800,12306,12310,12311,12336,[64256,64262],65126,65279]},[8215]],["symbols-b-i",{bold:[161,162,164,166,[169,171],173,174,[186,191],3647,8218,8219,8222,8223,8226,8233,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8319,8320,8353,8358,[8361,8363],8369,8370,8451,8470,8471,8478,8480,8482,8494,8960,9250,9251,11800,[64256,64262],65126],italic:[[161,167],[169,174],177,[181,183],[186,191],215,240,247,3647,8218,8219,[8222,8226],8233,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8320,8353,8358,8361,8363,8369,8370,8451,8470,8471,8478,8480,8482,8494,8960,9250,9251,11800,[64256,64262],65126],"bold-italic":[[161,167],[169,174],177,[181,183],[186,191],215,240,247,3647,8218,8219,[8222,8226],8233,8240,8241,[8249,8251],8253,8255,8256,8261,8262,8274,8276,8320,8353,8358,[8361,8363],8369,8370,8451,8470,8471,8478,8480,8482,8494,8960,9250,9251,11800,[64256,64262],65126]}],["greek",{normal:[[880,887],[890,895],[900,906],908,[910,912],[938,944],[970,976],979,980,[983,1007],1010,1011,[1015,1023],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[11392,11507],[11513,11519]],bold:[[880,887],[890,895],[900,906],908,[910,912],[938,944],[970,976],979,980,[983,987],[990,1007],1010,1011,[1015,1023],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[11392,11507],[11513,11519]],italic:[[880,887],[890,895],[900,906],908,[910,912],[938,944],[970,976],979,980,[983,1007],1010,1011,[1015,1023],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[11392,11507],[11513,11519]],"bold-italic":[[880,887],[890,895],[900,906],908,[910,912],[938,944],[970,976],979,980,[983,1007],1010,1011,[1015,1023],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190],[11392,11507],[11513,11519]]}],["greek-ss",{"sans-serif":[[880,887],[890,895],[900,906],908,[910,912],[938,944],[970,976],979,980,[983,1007],1010,1011,[1015,1023],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190]],"bold-sans-serif":[[880,887],[890,895],[900,906],908,[910,912],[938,944],[970,976],979,980,[983,1007],1010,1011,[1015,1023],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8121],[8123,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190]],"sans-serif-italic":[[880,887],[890,895],[900,906],908,[910,912],[938,944],[970,976],979,980,[983,1007],1010,1011,[1015,1023],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190]],"sans-serif-bold-italic":[[880,887],[890,895],[900,906],908,[910,912],[938,944],[970,976],979,980,[983,1007],1010,1011,[1015,1023],[7936,7957],[7960,7965],[7968,8005],[8008,8013],[8016,8023],8025,8027,8029,[8031,8061],[8064,8116],[8118,8121],[8123,8132],[8134,8147],[8150,8155],[8157,8175],[8178,8180],[8182,8190]]}],["cyrillic",{normal:[[1024,1143],[1146,1158],[1160,1230],[1232,1273],[1276,1279],1298,1299,[1306,1309]],bold:[[1024,1143],[1146,1158],[1160,1230],[1232,1273],[1276,1279],1298,1299,[1306,1309]],italic:[[1024,1143],[1146,1158],[1160,1225],[1227,1230],[1232,1273],[1276,1279],1298,1299,[1306,1309]],"bold-italic":[[1024,1143],[1146,1158],[1160,1225],[1227,1230],[1232,1273],[1276,1279],1298,1299,[1306,1309]]}],["cyrillic-ss",{"sans-serif":[[1024,1143],[1146,1158],[1160,1230],[1232,1273],[1276,1279],1298,1299,[1306,1309]],"bold-sans-serif":[[1024,1143],[1146,1158],[1160,1230],[1232,1273],[1276,1279],1298,1299,[1306,1309]],"sans-serif-italic":[[1024,1143],[1146,1158],[1160,1230],[1232,1273],[1276,1279],1298,1299,[1306,1309]],"sans-serif-bold-italic":[[1024,1143],[1146,1158],[1160,1230],[1232,1273],[1276,1279],1298,1299,[1306,1309]]}],["phonetics",{normal:[[592,687],7424,7431,7434,7435,7437,7448,7449,7452,[7491,7499],7501,[7503,7507],[7510,7512],7514,7515,7517,7518,7520,7521,7544,[7568,7571],7575],bold:[[592,687],7424,7431,7434,7435,7437,7448,7449,7452,[7491,7499],7501,[7503,7507],[7510,7512],7514,7515,7517,7518,7520,7521,7544,[7568,7571],7575],italic:[[592,685],687],"bold-italic":[[592,687]]}],["phonetics-ss",{"sans-serif":[[592,687],7424,7431,7434,7435,7437,7448,7449,7452,[7491,7499],7501,[7503,7507],[7510,7512],7514,7515,7517,7518,7520,7521,7544,[7568,7571],7575],"bold-sans-serif":[[592,687],7424,7431,7434,7435,7437,7448,7449,7452,[7491,7499],7501,[7503,7507],[7510,7512],7514,7515,7517,7518,7520,7521,7544,[7568,7571],7575],"sans-serif-italic":[[592,687],7424,7431,7434,7435,7437,7448,7449,7452,[7491,7499],7501,[7503,7507],[7510,7512],7514,7515,7517,7518,7520,7521,7544,[7568,7571],7575],"sans-serif-bold-italic":[[592,687],7424,7431,7434,7435,7437,7448,7449,7452,[7491,7499],7501,[7503,7507],[7510,7512],7514,7515,7517,7518,7520,7521,7544,[7568,7571],7575]}],["hebrew",{normal:[[1425,1479],[1488,1514],[1519,1525],1527,[64285,64335]],bold:[[1425,1479],[1488,1515],[1519,1525],1527,[64285,64335]],italic:[[1425,1479],[1488,1514],[1519,1525],1527,[64285,64335]],"bold-italic":[[1425,1479],[1488,1515],[1519,1525],1527,[64285,64335]]}],["devanagari",{normal:[[2304,2431]],bold:[],italic:[],"bold-italic":[]}],["cherokee",{normal:[[5024,5109],[5112,5117]],bold:[[5024,5109],[5112,5117]],italic:[[5024,5115]],"bold-italic":[[5024,5115]]}],["arabic",{normal:[[126464,126498],126500,126503,[126505,126514],[126516,126519],126521,126523,126530,126535,126537,126539,[126541,126543],126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],126704,126705],bold:[],italic:[],"bold-italic":[]}],["braille-d",{normal:[[10240,10495]]}],["braille",{"sans-serif":[[10240,10495]]}],["arrows",{normal:[8604,8605,8607,8609,8613,8615,8616,8621,[8623,8629],8632,8633,[8662,8665],[8668,8671],[8678,8692],[8695,8703],9166,10145,[10224,10228],10239,[10496,10505],[10508,10569],10572,10573,10575,10577,10580,10581,10584,10585,10588,10589,[10592,10601],[10608,10619],[11008,11026],[11056,11087],[11098,11123],[11126,11157],[11160,11192],[11244,11247]],"-largeop":[8593,8595,[8597,8603],[8606,8611],8613,8615,[8617,8622],[8624,8627],8630,8631,[8636,8655],8657,8659,[8661,8667],[8678,8681],8691,8693,8694,[11012,11015],11020,11021,11057],"-lf-tp":[[8678,8681],10503,11013,11014],"-rt-bt":[[8678,8681],10502,11015,11020],"-ex-md":[8678,8679,11013,11014]},[8607,8609,8613,8615,8621,8622,[8624,8627],[8662,8665],8668,8669,[8678,8681],8691,10145,10237,10238,10502,10503,10572,10573,10575,10577,10588,10589,10592,10593,[11012,11015],11020,11021,11057]],["marrows",{normal:[[129024,129035],[129040,129095],[129104,129113],[129120,129159],[129168,129197],129200,129201]}],["accents",{normal:[184,[688,709],712,716,[718,727],731,[733,766],777,779,[781,823],[825,879],7620,7621,7624,7625,[8403,8405],8408,[8413,8415],[8420,8427],8432],"-smallop":[785,[812,816],818,819,831,845],"-largeop":[785,[812,816]],"-size3":[785,[812,816]],"-size4":[785,[812,816]],"-size5":[785,[812,816]],"-size6":[785,[812,816]],"-size7":[785,[812,816]],"-ex-md":[818,819,831,845]},[785,[812,816],818,819,831,845,8425]],["accents-b-i",{bold:[184,[688,709],712,716,[718,727],731,[733,766],777,779,[781,823],[825,846],[848,879],7620,7621,7624,7625],italic:[184,[688,700],[702,709],712,716,[718,727],731,[733,766],777,779,[781,823],[825,846],[848,879]],"bold-italic":[184,[688,709],712,716,[718,727],731,[733,766],777,779,[781,823],[825,846],[848,879]]}],["shapes",{normal:[8962,[8998,9e3],9003,[9211,9214],[9472,9631],[9634,9641],[9644,9649],9672,9673,[9676,9678],[9680,9701],[9703,9710],[9712,9719],9728,9733,9734,9737,9761,9773,[9785,9790],9792,9794,[9824,9831],[9833,9835],[9837,9839],9854,[9856,9865],9893,[9898,9902],9906,10003,10013,10016,10026,10038,10045,10098,10099,10139,10145,[11026,11055],[11088,11097],[11194,11208],[11210,11215],11242,11243],bold:[9474,9553,9773,9792,9834,9901,9902,9906,10013],italic:[9773,9834,9901,9902,10013],"bold-italic":[9773,9834,9901,9902,10013]}],["mshapes",{normal:[[128896,128984],[128992,129003]]}],["variants",{"-tex-variant":[34,39,42,96,126,170,176,178,179,185,186,8212,8289,8304,8305,[8308,8334]]}],["PUA",{normal:[[57344,57395],[57409,57458],[59264,59274],59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,61699,61700,61705,[61719,61726],[61729,61731],[61734,61741],61743,[61747,61752],61757,[61761,61766],[61771,61788],[61791,61797],61800,[61804,61810],61813,[61817,61819],[61822,61824],61826,61828,61829,[61832,61839],61842,61850,61854,61855,61857,61859,61860,[61863,61877],62082,62083,62110,62113,62116,[62119,62121],62124,62126,62127,[62560,62568],[62570,62578],63166,[63187,63190],63198],bold:[59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,61699,61700,61705,[61719,61726],[61729,61731],[61734,61741],61743,[61747,61752],61757,[61761,61766],[61771,61788],[61791,61797],61800,[61804,61810],61813,[61817,61819],[61822,61824],61826,61828,61829,[61832,61839],61842,61850,61854,61855,61857,61859,61860,[61863,61877],62082,62083,62110,62113,62116,[62119,62121],62124,62126,62127,[62560,62568],[62570,62578],63166,[63187,63190],63198],italic:[59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,61699,61700,61705,[61719,61726],[61729,61731],[61734,61741],61743,[61747,61752],61757,61867,61868,[61873,61877],62082,62083,62110,62113,62116,62119,62120,[62560,62568],[62570,62578],63166,63172,[63174,63176],[63187,63190],63198],"bold-italic":[59395,[59908,59910],59913,59915,59917,59920,59927,59930,59932,59934,59935,59942,59946,59948,59951,59957,59962,59966,59970,59973,60163,60164,60168,[60175,60178],60182,60185,60190,60191,60200,60201,60203,60209,60213,60214,60218,60219,60224,60232,60233,60237,60257,60259,60261,60270,60271,[60424,60430],60432,60433,61699,61700,61705,[61719,61726],[61729,61731],[61734,61741],61743,[61747,61752],61757,61867,61868,[61873,61877],62082,62083,62110,62113,62116,62119,62120,[62560,62568],[62570,62578],63166,63172,[63174,63176],[63187,63190],63198]}]])
67;const om={fontName:"mathjax-newcm",DefaultFont:Gi},ad=om.fontName,ld=om.DefaultFont;class wr extends ln{constructor(t={}){super(t,od,ld),this.chtmlStyles=null,this.font.adaptiveCSS(this.options.adaptiveCSS),this.wrapperUsage=new hl}addExtension(t,e=""){const s=super.addExtension(t,e);return s.length&&this.options.adaptiveCSS&&this.chtmlStyles&&this.adaptor.insertRules(this.chtmlStyles,s),[]}escaped(t,e){return this.setDocument(e),this.html("span",{},[this.text(t.math)])}styleSheet(t){if(this.chtmlStyles){const s=new qi;return this.options.adaptiveCSS&&(this.addWrapperStyles(s),this.updateFontStyles(s)),s.addStyles(this.font.updateDynamicStyles()),this.adaptor.insertRules(this.chtmlStyles,s.getStyleRules()),this.chtmlStyles}const e=this.chtmlStyles=super.styleSheet(t);return this.adaptor.setAttribute(e,"id",wr.STYLESHEETID),this.wrapperUsage.update(),e}updateFontStyles(t){t.addStyles(this.font.updateStyles({}))}addWrapperStyles(t){if(this.options.adaptiveCSS)for(const e of this.wrapperUsage.update()){const s=this.factory.getNodeClass(e);s&&this.addClassStyles(s,t)}else super.addWrapperStyles(t)}addClassStyles(t,e){const s=t;s.autoStyle&&s.kind!=="unknown"&&e.addStyles({["mjx-"+s.kind]:{display:"inline-block","text-align":"left"}}),this.wrapperUsage.add(s.kind),super.addClassStyles(t,e)}insertStyles(t){this.chtmlStyles&&this.adaptor.insertRules(this.chtmlStyles,new qi(t).getStyleRules())}processMath(t,e){t.toCHTML([e])}clearCache(){this.styleJson.clear(),this.font.clearCache(),this.wrapperUsage.clear(),this.chtmlStyles=null}reset(){this.clearCache()}unknownText(t,e,s=null){const i={},n=100/this.math.metrics.scale;if(n!==100&&(i["font-size"]=this.fixed(n,1)+"%",i.padding=Gt(75/n)+" 0 "+Gt(20/n)+" 0"),e!=="-explicitFont"){const o=No(t);(o.length!==1||o[0]<119808||o[0]>120831)&&this.cssFontStyles(this.font.getCssFont(e),i)}return s!==null&&(i.width=this.fixed(s*this.math.metrics.scale)+"em"),this.html("mjx-utext",{variant:e,style:i},[this.text(t)])}measureTextNode(t){const e=this.adaptor,s=e.clone(t);e.setStyle(s,"font-family",e.getStyle(s,"font-family").replace(/MJXZERO, /g,""));const i=this.math.metrics.em,n={position:"absolute",top:0,left:0,"white-space":"nowrap","font-size":this.fixed(i,3)+"px"},o=this.html("mjx-measure-text",{style:n},[s]);e.append(e.parent(this.math.start.node),this.container),e.append(this.container,o);const a=e.nodeSize(s,i)[0];return e.remove(this.container),e.remove(o),{w:a,h:.75,d:.2}}}function xg(r,t){const e={};for(const s of Object.keys(r)){const i=r[s];for(const n of Object.keys(i)){e[n]||(e[n]={});const o=i[n];if(s)for(const a of Object.keys(o)){const c=o[parseInt(a)];c[3]||(c[3]={}),t?c[3].ff=t+"-"+s:c[3].f=s}Object.assign(e[n],o)}}return e}function am(r,t,e,s=""){const i=(MathJax.config.loader?.paths?.fonts||"").substring(0,24)==="https://cdn.jsdelivr.net"?"@%%VERSION%%":"",n=e.fontPath||`[fonts]/%%FONT%%-font${s}${i}`,o=r.match(/^[a-z]+:/)?(r.match(/[^/:\\]*$/)||[t])[0]:r;return si(MathJax.config.loader,"paths",{[o+s]:o===r?n.replace(/%%FONT%%/g,r).replace(/%%VERSION%%/g,gs.version):r}),`[${o}${s}]`}wr.NAME="CHTML",wr.OPTIONS=Object.assign(Object.assign({},ln.OPTIONS),{adaptiveCSS:!0,matchFontHeight:!0}),wr.commonStyles=Object.assign(Object.assign({},ln.commonStyles),{'mjx-container[jax="CHTML"]':{"white-space":"nowrap"},[["mjx-mo > mjx-c","mjx-mi > mjx-c","mjx-mn > mjx-c","mjx-ms > mjx-c","mjx-mtext >
67 mjx-c"].join(", ")]:{"clip-path":"padding-box polygon("+["-1em -2px","calc(100% + 1em) -2px","calc(100% + 1em) calc(100% + 2px)","-1em calc(100% + 2px)"].join(", ")+")"},"mjx-stretchy-h":{"clip-path":"padding-box polygon(0 -2px, 100% -2px, 100% calc(100% + 2px), 0 calc(100% + 2px))"},"mjx-stretchy-v":{"clip-path":"padding-box polygon(-2px 0, calc(100% + 2px) 0, calc(100% + 2px) 100%, -2px 100%)"},'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"},[["cell","base","under","over","den"].map(r=>`mjx-row > mjx-${r}`).join(", ")]:{display:"table-cell"},"mjx-container [inline-breaks]":{display:"inline"},"mjx-container .mjx-selected":{outline:"2px solid black"},"@media (prefers-color-scheme: dark)":{"mjx-container .mjx-selected":{outline:"2px solid #C8C8C8"}},"mjx-mtext":{display:"inline-block"},"mjx-mstyle":{display:"inline-block"},"mjx-merror":{display:"inline-block",color:"red","background-color":"yellow"},"mjx-mphantom":{visibility:"hidden"}}),wr.STYLESHEETID="MJX-CHTML-styles",MathJax.loader&&MathJax.loader.checkVersion("output/chtml",ui,"output"),Ks({_:{output:{chtml_ts:Uc,chtml:{DefaultFont:jc,DynamicFonts:Hc,FontData:k,Notation:Ql,Usage:R,Wrapper:di,WrapperFactory:Fc,Wrappers_ts:Bc,Wrappers:{HtmlNode:Pc,TeXAtom:kc,TextNode:Dc,maction:Lc,math:p,menclose:Zl,mfenced:ic,mfrac:nc,mglyph:Sc,mi:C,mmultiscripts:bc,mn:Be,mo:st,mpadded:$l,mroot:cc,mrow:ec,ms:As,mspace:Jl,msqrt:ac,msubsup:pc,mtable:xc,mtd:Tc,mtext:ji,mtr:Nc,munderover:fc,scriptbase:uc,semantics:Ic}},common_ts:qr,common:{Direction:Sn,FontData:Rn,LineBBox:ks,LinebreakVisitor:ho,Notation:Gl,Wrapper:ar,WrapperFactory:or,Wrappers:{TeXAtom:wc,TextNode:Oc,XmlNode:Mc,maction:Cc,math:d,menclose:Yl,mfenced:sc,mfrac:rc,mglyph:Ac,mi:b,mmultiscripts:gc,mn:ce,mo:pt,mpadded:Kl,mroot:lc,mrow:tc,ms:rs,mspace:Xl,msqrt:oc,msubsup:hc,mtable:Ec,mtd:vc,mtext:Mn,mtr:yc,munderover:mc,scriptbase:dc,semantics:Rc}}}}});const lm={config(r,t,e,s){if(MathJax.loader){si(MathJax.config,r,MathJax.config.output||{});let i=MathJax.config[r],n=i.font||i.fontData||e;typeof n!="string"&&(i.fontData=n,i.font=n=n.NAME),n.charAt(0)!=="["&&(n=am(n,r,i));const o=n.substring(1,n.length-1),a=(function(c,h){const u=[];for(const x of h.fontExtensions||[]){const A=`${am(x,c,h,"-extension")}/${c}`;u.push(A)}return u})(r,i);if(a.length&&MathJax.loader.addPackageData(`${n}/${r}`,{extraLoads:a}),o===e&&s){const c=MathJax.config.loader[`${n}/${r}`]?.extraLoads;c&&MathJax.loader.addPackageData(`output/${r}`,{extraLoads:c}),Ks({_:{output:{fonts:{[o]:{[r+"_ts"]:{[s.NAME+"Font"]:s}}}}}}),si(MathJax,"config",{output:{font:n},[r]:{fontData:s,dynamicPrefix:`${n}/${r}/dynamic`}}),r==="chtml"&&si(MathJax.config,r,{fontURL:ke.resolvePath(`${n}/${r}/woff2`,!1)})}else MathJax.loader.addPackageData(`output/${r}`,{extraLoads:[`${n}/${r}`]})}MathJax.startup&&(MathJax.startup.registerConstructor(r,t),MathJax.startup.useOutput(r))},loadFont:(r,t,e,s)=>MathJax.loader?(s&&MathJax.loader.preLoaded(`[${e}]/${t}`),ke.loadPromise(`output/${t}`).then(r)):r};var js;lm.config("chtml",wr,ad,ld),(function(r){r[r.RETURN=13]="RETURN",r[r.ESCAPE=27]="ESCAPE",r[r.SPACE=32]="SPACE",r[r.LEFT=37]="LEFT",r[r.UP=38]="UP",r[r.RIGHT=39]="RIGHT",r[r.DOWN=40]="DOWN"})(js||(js={}));const yg="click",Ng="dblclick",vg="mousedown",Tg="mouseup",Cg="mouseover",Lg="mou
67seout",Ag="selectstart";class Sg{constructor(){this.bubble=!1}bubbleKey(){this.bubble=!0}keydown(t){switch(t.keyCode){case js.ESCAPE:this.escape(t);break;case js.RIGHT:this.right(t);break;case js.LEFT:this.left(t);break;case js.UP:this.up(t);break;case js.DOWN:this.down(t);break;case js.RETURN:case js.SPACE:this.space(t);break;default:return}this.bubble?this.bubble=!1:this.stop(t)}escape(t){}space(t){}left(t){}right(t){}up(t){}down(t){}stop(t){t&&(t.stopPropagation(),t.preventDefault(),t.cancelBubble=!0)}mousedown(t){return this.stop(t)}mouseup(t){return this.stop(t)}mouseover(t){return this.stop(t)}mouseout(t){return this.stop(t)}click(t){return this.stop(t)}addEvents(t){t.addEventListener(vg,this.mousedown.bind(this)),t.addEventListener(Tg,this.mouseup.bind(this)),t.addEventListener(Cg,this.mouseover.bind(this)),t.addEventListener(Lg,this.mouseout.bind(this)),t.addEventListener(yg,this.click.bind(this)),t.addEventListener("keydown",this.keydown.bind(this)),t.addEventListener("dragstart",this.stop.bind(this)),t.addEventListener(Ag,this.stop.bind(this)),t.addEventListener("contextmenu",this.stop.bind(this)),t.addEventListener(Ng,this.stop.bind(this))}}class cm extends Sg{addAttributes(t){for(const e in t)this.html.setAttribute(e,t[e])}get html(){return this._html||this.generateHtml(),this._html}set html(t){this._html=t,this.addEvents(t)}generateHtml(){const t=document.createElement("div");t.classList.add(this.className),t.setAttribute("role",this.role),this.html=t}focus(){const t=this.html;t.setAttribute("tabindex","0"),setTimeout(()=>t.focus(),50)}unfocus(){const t=this.html;t.hasAttribute("tabindex")&&t.setAttribute("tabindex","-1");try{t.blur()}catch{}t.blur()}}class cd extends cm{constructor(){super(...arguments),this.posted=!1}isPosted(){return this.posted}post(t,e){this.posted||(t!==void 0&&e!==void 0&&this.html.setAttribute("style","left: "+t+"px; top: "+e+"px;"),this.display(),this.posted=!0)}unpost(){if(!this.posted)return;const t=this.html;t.parentNode&&t.parentNode.removeChild(t),this.posted=!1}}function hm(r){return"CtxtMenu_"+r}function ge(r){return hm(r)}function la(r){return hm(r)}const te={ATTACHED:ge("Attached"),CONTEXTMENU:ge("ContextMenu"),MENU:ge("Menu"),MENUARROW:ge("MenuArrow"),MENUACTIVE:ge("MenuActive"),MENUCHECK:ge("MenuCheck"),MENUCLOSE:ge("MenuClose"),MENUCOMBOBOX:ge("MenuComboBox"),MENUDISABLED:ge("MenuDisabled"),MENUFRAME:ge("MenuFrame"),MENUITEM:ge("MenuItem"),MENULABEL:ge("MenuLabel"),MENURADIOCHECK:ge("MenuRadioCheck"),MENUINPUTBOX:ge("MenuInputBox"),MENURULE:ge("MenuRule"),MENUSLIDER:ge("MenuSlider"),MOUSEPOST:ge("MousePost"),RTL:ge("RTL"),INFO:ge("Info"),INFOCLOSE:ge("InfoClose"),INFOCONTENT:ge("InfoContent"),INFOSIGNATURE:ge("InfoSignature"),INFOTITLE:ge("InfoTitle"),SLIDERVALUE:ge("SliderValue"),SLIDERBAR:ge("SliderBar"),SELECTION:ge("Selection"),SELECTIONBOX:ge("SelectionBox"),SELECTIONMENU:ge("SelectionMenu"),SELECTIONDIVIDER:ge("SelectionDivider"),SELECTIONITEM:ge("SelectionItem")},Ii={COUNTER:la("Counter"),KEYDOWNFUNC:la("keydownFunc"),CONTEXTMENUFUNC:la("contextmenuFunc"),OLDTAB:la("Oldtabindex"),TOUCHFUNC:la("TouchFunc")};class dm extends cm{constructor(t,e){super(),this._menu=t,this._type=e,this.className=te.MENUITEM,this.role="menuitem",this.hidden=!1}get menu(){return this._menu}set menu(t){this._menu=t}get type(){return this._type}hide(){this.hidden=!0,this.menu.generateMenu()}show(){this.hidden=!1,this.menu.generateMenu()}isHidden(){return this.hidden}}function dn(r){const t=r.menu;t.baseMenu?t.baseMenu.unpost():t.unpost()}function ca(r){const t=r.menu;return(t.baseMenu?t.baseMenu:t).store.active}function xl(r,t){console.error("ContextMenu Error: "+t)}function yl(){return Rg++}let Rg=0;class Yn extends dm{constructor(t,e,s,i){super(t,e),this._content=s,this.disabled=!1,this.callbacks=[],this._id=i||s}get content(){return this._content}set content(t){this._content=t,this.generateHtml(),this.menu&&this.menu.generateHtml()}get id(){return this._id}press(){this.disabled||(this.executeAction(),this.executeCallbacks_())}executeAction(){}registerCallback(t){this.callbacks.indexOf(t)===-1&&this.callbacks.push(t)}unregisterCallback(t){const e=this.callbacks.indexOf(t);e!==-1&&this.callbacks.splice(e,1)}mousedown(t){this.press(),this.stop(t)}mouseover(t){this.focus(),this.stop(t)}mouseout(t){this.deactivate(),this.stop(t)}generateHtml(){super.generateHtml();const t=this.html;t.setAttribute("aria-disabled","false"),t.textContent=this.content}activate(){this.disabled||this.html.classList.add(te.MENUACTIVE)}deactivate(){this.html.classList.remove(te.MENUACTIVE)}focus(){this.menu.focused=this,super.focus(),this.activate()}unfocus(){this.deactivate(),super.unfocus()}escape(t){dn(this)}up(t){this.menu.up(t)}down(t){this.menu.down(t)}left(t){this.menu.left(t)}right(t){this.menu.right(t)}space(t){this.press()}disable(){this.disabled=!0;const t=this.html;t.classList.add(te.MENUDISABLED),t.setAttribute("aria-disabled","true")}enable(){this.disabled=!1;const t=this.html;t.classList.remove(te.MENUDISABLED),t.removeAttribute("aria-disabled")}executeCallbacks_(){for(const t of this.callbacks)try{t(this)}catch{xl(0,"Callback for menu entry "+this.id+" failed.")}}}class ha extends Yn{static fromJson(t,{content:e,menu:s,id:i},n){const o=new this(n,e,i),a=t.get("subMenu")(t,s,o);return o.submenu=a,o}constructor(t,e,s){super(t,"submenu",e,s),this._submenu=null}set submenu(t){this._submenu=t}get submenu(){return this._submenu}mouseover(t){this.focus(),this.stop(t)}mouseout(t){this.stop(t)}
vendor: 6,454 bytes, line 67
67unfocus(){if(this.submenu.isPosted()){if(this.menu.focused!==this)return super.unfocus(),void this.menu.unpostSubmenus();this.html.setAttribute("tabindex","-1"),this.html.blur()}else super.unfocus()}focus(){super.focus(),this.submenu.isPosted()||this.disabled||this.submenu.post()}executeAction(){this.submenu.isPosted()?this.submenu.unpost():this.submenu.post()}generateHtml(){super.generateHtml();const t=this.html;this.span=document.createElement("span"),this.span.textContent="►",this.span.classList.add(te.MENUARROW),this.span.setAttribute("aria-hidden","true"),t.appendChild(this.span),t.setAttribute("aria-haspopup","true")}left(t){this.submenu.isPosted()?this.submenu.unpost():super.left(t)}right(t){this.submenu.isPosted()?this.submenu.down(t):this.submenu.post()}toJson(){return{type:""}}}class hd extends cd{constructor(){super(...arguments),this.className=te.CONTEXTMENU,this.role="menu",this._items=[],this._baseMenu=null}set baseMenu(t){this._baseMenu=t}get baseMenu(){return this._baseMenu}get items(){return this._items}set items(t){this._items=t}get pool(){return this.variablePool}get focused(){return this._focused}set focused(t){if(this._focused===t)return;this._focused||this.unfocus();const e=this._focused;this._focused=t,e&&e.unfocus()}up(t){const e=this.items.filter(i=>i instanceof Yn&&!i.isHidden());if(e.length===0)return;if(!this.focused)return void e[e.length-1].focus();let s=e.indexOf(this.focused);s!==-1&&(s=s?--s:e.length-1,e[s].focus())}down(t){const e=this.items.filter(i=>i instanceof Yn&&!i.isHidden());if(e.length===0)return;if(!this.focused)return void e[0].focus();let s=e.indexOf(this.focused);s!==-1&&(s++,s=s===e.length?0:s,e[s].focus())}generateHtml(){super.generateHtml(),this.generateMenu()}generateMenu(){const t=this.html;t.classList.add(te.MENU);for(const e of this.items){if(!e.isHidden()){t.appendChild(e.html);continue}const s=e.html;s.parentNode&&s.parentNode.removeChild(s)}}post(t,e){this.variablePool.update(),super.post(t,e)}unpostSubmenus(){const t=this.items.filter(e=>e instanceof ha);for(const e of t)e.submenu.unpost(),e!==this.focused&&e.unfocus()}unpost(){super.unpost(),this.unpostSubmenus(),this.focused=null}find(t){for(const e of this.items)if(e.type!=="rule"){if(e.id===t)return e;if(e.type==="submenu"){const s=e.submenu.find(t);if(s)return s}}return null}}class Mg{constructor(t){this.menu=t,this.store=[],this._active=null,this.counter=0,this.attachedClass=te.ATTACHED+"_"+yl(),this.taborder=!0,this.attrMap={}}set active(t){do{if(this.store.indexOf(t)!==-1){this._active=t;break}t=t.parentNode}while(t)}get active(){return this._active}next(){const t=this.store.length;if(t===0)return this.active=null,null;let e=this.store.indexOf(this.active);return e=e===-1?0:e<t-1?e+1:0,this.active=this.store[e],this.active}previous(){const t=this.store.length;if(t===0)return this.active=null,null;const e=t-1;let s=this.store.indexOf(this.active);return s=s===-1||s===0?e:s-1,this.active=this.store[s],this.active}clear(){this.remove(this.store)}insert(t){const e=t instanceof HTMLElement?[t]:t;for(const s of e)this.insertElement(s);this.sort()}remove(t){const e=t instanceof HTMLElement?[t]:t;for(const s of e)this.removeElement(s);this.sort()}inTaborder(t){this.taborder&&!t&&this.removeTaborder(),!this.taborder&&t&&this.insertTaborder(),this.taborder=t}insertTaborder(){this.taborder&&this.insertTaborder_()}removeTaborder(){this.taborder&&this.removeTaborder_()}insertElement(t){t.classList.contains(this.attachedClass)||(t.classList.add(this.attachedClass),this.taborder&&this.addTabindex(t),this.addEvents(t))}removeElement(t){t.classList.contains(this.attachedClass)&&(t.classList.remove(this.attachedClass),this.taborder&&this.removeTabindex(t),this.removeEvents(t))}sort(){const t=document.getElementsByClassName(this.attachedClass);this.store=[].slice.call(t)}insertTaborder_(){this.store.forEach(t=>t.setAttribute("tabindex","0"))}removeTaborder_(){this.store.forEach(t=>t.setAttribute("tabindex","-1"))}addTabindex(t){t.hasAttribute("tabindex")&&t.setAttribute(Ii.OLDTAB,t.getAttribute("tabindex")),t.setAttribute("tabindex","0")}removeTabindex(t){t.hasAttribute(Ii.OLDTAB)?(t.setAttribute("tabindex",t.getAttribute(Ii.OLDTAB)),t.removeAttribute(Ii.OLDTAB)):t.removeAttribute("tabindex")}addEvents(t){t.hasAttribute(Ii.COUNTER)||(this.addEvent(t,"contextmenu",this.menu.post.bind(this.menu)),this.addEvent(t,"keydown",this.keydown.bind(this)),t.setAttribute(Ii.COUNTER,this.counter.toString()),this.counter++)}addEvent(t,e,s){const i=Ii[e.toUpperCase()+"FUNC"];this.attrMap[i+this.counter]=s,t.addEventListener(e,s)}removeEvents(t){if(!t.hasAttribute(Ii.COUNTER))return;const e=t.getAttribute(Ii.COUNTER);this.removeEvent(t,"contextmenu",e),this.removeEvent(t,"keydown",e),t.removeAttribute(Ii.COUNTER)}removeEvent(t,e,s){const i=Ii[e.toUpperCase()+"FUNC"],n=this.attrMap[i+s];t.removeEventListener(e,n)}keydown(t){t.keyCode===js.SPACE&&(this.menu.post(t),t.preventDefault(),t.stopImmediatePropagation())}}class Ig{constructor(){this.pool={}}insert(t){this.pool[t.name]=t}lookup(t){return this.pool[t]}remove(t){delete this.pool[t]}update(){for(const t in this.pool)this.pool[t].update()}}class dd extends hd{static fromJson(t,{pool:e,items:s,id:i=""}){const n=new this(t);n.id=i;const o=t.get("variable");e.forEach(c=>o(t,c,n.pool));const a=t.get("items")(t,s,n);return n.items=a,n}constructor(t){super(),this.factory=t,this.id="",this.moving=!1,this._store=new Mg(this),this.widgets=[],this.variablePool=new Ig}generateHtml(){this.isPosted()&&this.unpost(),super.generateHtml(),this._frame=document.createElement("div"),this._frame.classList.add(te.MENUFRAME);const t="left: 0px; top: 0px; z-index: 200; width: 100%; height: 100%; border: 0px; padding: 0px; margin: 0px;";this._frame.setAttribute("style","position: absolute; "+t);const e=document.createElement("div");e.setAttribute("style","position: fixed; "+t),this._frame.appendChild(e),e.addEventListener("mousedown",(function(s){this.unpost(),this.unpostWidgets(),this.stop(s)}).bind(this))}display(){document.body.appendChild(this.frame),this.frame.appendChild(this.html),this.focus()}escape(t){this.unpost(),this.unpostWidgets()}unpost(){if(super.unpost(),this.widgets.length>0)return;this.frame.parentNode.removeChild(this.frame);const t=this.store;this.moving||t.insertTaborder(),t.active.focus()}left(t){this.move_(this.store.previous())}right(t){this.move_(this.store.next())}get frame(){return this._frame}
67get store(){return this._store}post(t,e){if(e!==void 0)return this.moving||this.store.removeTaborder(),void super.post(t,e);const s=t;let i,n,o;if(s instanceof Event?(i=s.target,this.stop(s)):i=s,s instanceof MouseEvent&&(n=s.pageX,o=s.pageY,n||o||!s.clientX||(n=s.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,o=s.clientY+document.body.scrollTop+document.documentElement.scrollTop)),!n&&!o&&i){const c=window.pageXOffset||document.documentElement.scrollLeft,h=window.pageYOffset||document.documentElement.scrollTop,u=i.getBoundingClientRect();n=(u.right+u.left)/2+c,o=(u.bottom+u.top)/2+h}this.store.active=i,this.anchor=this.store.active;const a=this.html;n+a.offsetWidth>document.body.offsetWidth-5&&(n=document.body.offsetWidth-a.offsetWidth-5),this.post(n,o)}registerWidget(t){this.widgets.push(t)}unregisterWidget(t){const e=this.widgets.indexOf(t);e>-1&&this.widgets.splice(e,1),this.widgets.length===0&&this.unpost()}unpostWidgets(){this.widgets.forEach(t=>t.unpost())}toJson(){return{type:""}}move_(t){this.anchor&&t!==this.anchor&&(this.moving=!0,this.unpost(),this.post(t),this.moving=!1)}}class Nl extends hd{static fromJson(t,{items:e},s){const i=new this(s),n=t.get("items")(t,e,i);return i.items=n,i}constructor(t){super(),this._anchor=t,this.variablePool=this.anchor.menu.pool,this.setBaseMenu()}get anchor(){return this._anchor}post(){if(!this.anchor.menu.isPosted())return;let t=this.anchor.html;const e=this.html,s=this.baseMenu.frame,i=t.offsetWidth;let n=i-2,o=0;for(;t&&t!==s;)n+=t.offsetLeft,o+=t.offsetTop,t=t.parentNode;n+e.offsetWidth>document.body.offsetWidth-5&&(n=Math.max(5,n-i-e.offsetWidth+6)),super.post(n,o)}display(){this.baseMenu.frame.appendChild(this.html)}setBaseMenu(){let t=this;do t=t.anchor.menu;while(t instanceof Nl);this.baseMenu=t}left(t){this.focused=null,this.anchor.focus()}toJson(){return{type:""}}}class vl extends Yn{generateHtml(){super.generateHtml();const t=this.html;this.span||this.generateSpan(),t.appendChild(this.span),this.update()}register(){this.variable.register(this)}unregister(){this.variable.unregister(this)}update(){this.updateAria(),this.span&&this.updateSpan()}}class ud extends vl{static fromJson(t,{content:e,variable:s,id:i},n){return new this(n,e,s,i)}constructor(t,e,s,i){super(t,"radio",e,i),this.role="menuitemradio",this.variable=t.pool.lookup(s),this.register()}executeAction(){this.variable.setValue(this.id),dn(this)}generateSpan(){this.span=document.createElement("span"),this.span.textContent="✓",this.span.classList.add(te.MENURADIOCHECK),this.span.setAttribute("aria-hidden","true")}updateAria(){this.html.setAttribute("aria-checked",this.variable.getValue()===this.id?"true":"false")}updateSpan(){this.span.style.display=this.variable.getValue()===this.id?"":"none"}toJson(){return{type:""}}}class pd extends dm{static fromJson(t,e,s){return new this(s)}constructor(t){super(t,"rule"),this.className=te.MENUITEM,this.role="separator"}generateHtml(){super.generateHtml();const t=this.html;t.classList.add(te.MENURULE),t.setAttribute("aria-orientation","vertical")}addEvents(t){}toJson(){return{type:"rule"}}}class um extends Yn{static fromJson(t,{content:e,action:s,id:i},n){return new this(n,e,s,i)}constructor(t,e,s,i){super(t,"command",e,i),this.command=s}mousedown(t){this.stop(t)}mouseup(t){this.press(),this.stop(t)}executeAction(){try{this.command(ca(this))}catch{xl(0,"Illegal command callback.")}dn(this)}toJson(){return{type:""}}}class pm{static fromJson(t,{name:e,getter:s,setter:i},n){const o=new this(e,s,i);n.insert(o)}constructor(t,e,s){this._name=t,this.getter=e,this.setter=s,this.items=[]}get name(){return this._name}getValue(t){try{return this.getter(t)}catch{return xl(0,"Command of variable "+this.name+" failed."),null}}setValue(t,e){try{this.setter(t,e)}catch{xl(0,"Command of variable "+this.name+" failed.")}this.update()}register(t){this.items.indexOf(t)===-1&&this.items.push(t)}unregister(t){const e=this.items.indexOf(t);e!==-1&&this.items.splice(e,1)}update(){this.items.forEach(t=>t.update())}registerCallback(t){this.items.forEach(e=>e.registerCallback(t))}
vendor: 11,194 bytes, line 67
67unregisterCallback(t){this.items.forEach(e=>e.unregisterCallback(t))}toJson(){return{type:"variable",name:this.name,getter:this.getter.toString(),setter:this.setter.toString()}}}class mm extends vl{static fromJson(t,{content:e,variable:s,id:i},n){return new this(n,e,s,i)}constructor(t,e,s,i){super(t,"checkbox",e,i),this.role="menuitemcheckbox",this.variable=t.pool.lookup(s),this.register()}executeAction(){this.variable.setValue(!this.variable.getValue()),dn(this)}generateSpan(){this.span=document.createElement("span"),this.span.textContent="✓",this.span.classList.add(te.MENUCHECK),this.span.setAttribute("aria-hidden","true")}updateAria(){this.html.setAttribute("aria-checked",this.variable.getValue()?"true":"false")}updateSpan(){this.span.style.display=this.variable.getValue()?"":"none"}toJson(){return{type:""}}}class fm extends vl{static fromJson(t,{content:e,variable:s,id:i},n){return new this(n,e,s,i)}constructor(t,e,s,i){super(t,"combobox",e,i),this.role="combobox",this.inputEvent=!1,this.variable=t.pool.lookup(s),this.register()}executeAction(){this.variable.setValue(this.input.value,ca(this))}space(t){super.space(t),dn(this)}focus(){super.focus(),this.input.focus()}unfocus(){super.unfocus(),this.updateSpan()}generateHtml(){super.generateHtml(),this.html.classList.add(te.MENUCOMBOBOX)}generateSpan(){this.span=document.createElement("span"),this.span.classList.add(te.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)}inputKey(t){this.bubbleKey(),this.inputEvent=!0}keydown(t){if(this.inputEvent&&t.keyCode!==js.ESCAPE&&t.keyCode!==js.RETURN)return this.inputEvent=!1,void t.stopPropagation();super.keydown(t),t.stopPropagation()}updateAria(){}updateSpan(){let t;try{t=this.variable.getValue(ca(this))}catch{t=""}this.input.value=t}toJson(){return{type:""}}}class gm extends Yn{static fromJson(t,{content:e,id:s},i){return new this(i,e,s)}constructor(t,e,s){super(t,"label",e,s)}generateHtml(){super.generateHtml(),this.html.classList.add(te.MENULABEL)}toJson(){return{type:""}}}class bm extends vl{static fromJson(t,{content:e,variable:s,id:i},n){return new this(n,e,s,i)}constructor(t,e,s,i){super(t,"slider",e,i),this.role="slider",this.labelId="ctx_slideLabel"+yl(),this.valueId="ctx_slideValue"+yl(),this.inputEvent=!1,this.variable=t.pool.lookup(s),this.register()}executeAction(){this.variable.setValue(this.input.value,ca(this)),this.update()}space(t){super.space(t),dn(this)}focus(){super.focus(),this.input.focus()}unfocus(){super.unfocus(),this.updateSpan()}generateHtml(){super.generateHtml(),this.html.classList.add(te.MENUSLIDER),this.valueSpan=document.createElement("span"),this.valueSpan.setAttribute("id",this.valueId),this.valueSpan.classList.add(te.SLIDERVALUE),this.html.appendChild(this.valueSpan)}generateSpan(){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(te.SLIDERBAR),this.span.appendChild(this.input)}inputKey(t){this.inputEvent=!0}mousedown(t){t.stopPropagation()}mouseup(t){dn(this),t.stopPropagation()}keydown(t){const e=t.keyCode;return e===js.UP||e===js.DOWN?(t.preventDefault(),void super.keydown(t)):this.inputEvent&&e!==js.ESCAPE&&e!==js.RETURN?(this.inputEvent=!1,void t.stopPropagation()):(super.keydown(t),void t.stopPropagation())}updateAria(){const t=this.variable.getValue();t&&this.input&&(this.input.setAttribute("aria-valuenow",t),this.input.setAttribute("aria-valuetext",t+"%"))}updateSpan(){let t;try{t=this.variable.getValue(ca(this)),this.valueSpan.innerHTML=t+"%"}catch{t=""}this.input.value=t}toJson(){return{type:""}}}class wg extends cd{constructor(t){super(),this.element=t,this.className=te.MENUCLOSE,this.role="button"}generateHtml(){const t=document.createElement("span");t.classList.add(this.className),t.setAttribute("role",this.role),t.setAttribute("tabindex","0");const e=document.createElement("span");e.textContent="×",t.appendChild(e),this.html=t}display(){}unpost(){super.unpost(),this.element.unpost()}keydown(t){this.bubbleKey(),super.keydown(t)}space(t){this.unpost(),this.stop(t)}mousedown(t){this.unpost(),this.stop(t)}}class kg extends cd{constructor(t,e,s){super(),this.title=t,this.signature=s,this.className=te.INFO,this.role="dialog",this.contentDiv=this.generateContent(),this.close=this.generateClose(),this.content=e||function(){return""}}attachMenu(t){this.menu=t}generateHtml(){super.generateHtml();const t=this.html;t.appendChild(this.generateTitle()),t.appendChild(this.contentDiv),t.appendChild(this.generateSignature()),t.appendChild(this.close.html),t.setAttribute("tabindex","0")}post(){super.post();const t=document.documentElement,e=this.html,s=window.innerHeight||t.clientHeight||t.scrollHeight||0,i=Math.floor(-e.offsetWidth/2),n=Math.floor((s-e.offsetHeight)/3);e.setAttribute("style","margin-left: "+i+"px; top: "+n+"px;"),window.event instanceof MouseEvent&&e.classList.add(te.MOUSEPOST),e.focus()}display(){this.menu.registerWidget(this),this.contentDiv.innerHTML=this.content();const t=this.menu.html;t.parentNode&&t.parentNode.removeChild(t),this.menu.frame.appendChild(this.html)}click(t){}keydown(t){this.bubbleKey(),super.keydown(t)}escape(t){this.unpost()}unpost(){super.unpost(),this.html.classList.remove(te.MOUSEPOST),this.menu.unregisterWidget(this)}generateClose(){const t=new wg(this),e=t.html;return e.classList.add(te.INFOCLOSE),e.setAttribute("aria-label","Close Dialog Box"),t}generateTitle(){const t=document.createElement("span");return t.innerHTML=this.title,t.classList.add(te.INFOTITLE),t}generateContent(){const t=document.createElement("div");return t.classList.add(te.INFOCONTENT),t.setAttribute("tabindex","0"),t}generateSignature(){const t=document.createElement("span");return t.innerHTML=this.signature,t.classList.add(te.INFOSIGNATURE),t}toJson(){return{type:""}}}class Em extends hd{static fromJson(t,{title:e,values:s,variable:i},n){const o=new this(n),a=t.get("label")(t,{content:e||"",id:e||"id"},o),c=t.get("rule")(t,{},o),h=s.map(x=>t.get("radio")(t,{content:x,variable:i,id:x},o)),u=[a,c].concat(h);return o.items=u,o}constructor(t){super(),this.anchor=t,this.className=te.SELECTIONMENU,this.variablePool=this.anchor.menu.pool,this.baseMenu=this.anchor.menu}generateHtml(){super.generateHtml(),this.items.forEach(t=>t.html.classList.add(te.SELECTIONITEM))}display(){}right(t){this.anchor.right(t)}left(t){this.anchor.left(t)}}class pr extends kg{static fromJson(t,{title:e,signature:s,selections:i,order:n,grid:o},a){const c=new this(e,s,n,o);c.attachMenu(a);const h=i.map(u=>t.get("selectionMenu")(t,u,c));return c.selections=h,c}constructor(t,e,s="none",i="vertical"){super(t,null,e),this.style=s,this.grid=i,this._selections=[],this.prefix="ctxt-selection",this._balanced=!0}attachMenu(t){this.menu=t}get selections(){return this._selections}set selections(t){this._selections=[],t.forEach(e=>this.addSelection(e))}addSelection(t){t.anchor=this,this._selections.push(t)}rowDiv(t){const e=document.createElement("div");this.contentDiv.appendChild(e);const s=t.map(a=>(e.appendChild(a.html),a.html.id||(a.html.id=this.prefix+yl()),a.html.getBoundingClientRect())),i=s.map(a=>a.width),n=i.reduce((a,c)=>a+c,0),o=s.reduce((a,c)=>Math.max(a,c.height),0);return e.classList.add(te.SELECTIONDIVIDER),e.setAttribute("style","height: "+o+"px;"),[e,n,o,i]}display(){if(super.display(),this.order(),!this.selections.length)return;const t=[];let e=0,s=[];const i=this.getChunkSize(this.selections.length);for(let n=0;n<this.selections.length;n+=i){const o=this.selections.slice(n,n+i),[a,c,h,u]=this.rowDiv(o);t.push(a),e=Math.max(e,c),o.forEach(x=>x.html.style.height=h+"px"),s=this.combineColumn(s,u)}this._balanced&&(this.balanceColumn(t,s),e=s.reduce((n,o)=>n+o,20)),t.forEach(n=>n.style.width=e+"px")}getChunkSize(t){switch(this.grid){case"square":return Math.floor(Math.sqrt(t));case"horizontal":return Math.floor(t/pr.chunkSize);default:return pr.chunkSize}}balanceColumn(t,e){t.forEach(s=>{const i=Array.from(s.children);for(let n,o=0;n=i[o];o++)n.style.width=e[o]+"px"})}combineColumn(t,e){let s=[],i=0;for(;t[i]||e[i];){if(!t[i]){s=s.concat(e.slice(i));break}if(!e[i]){s=s.concat(t.slice(i));break}s.push(Math.max(t[i],e[i])),i++}return s}left(t){this.move(t,e=>(e===0?this.selections.length:e)-1)}right(t){this.move(t,e=>e===this.selections.length-1?0:e+1)}generateHtml(){super.generateHtml(),this.html.classList.add(te.SELECTION)}generateContent(){const t=super.generateContent();return t.classList.add(te.SELECTIONBOX),t.removeAttribute("tabindex"),t}findSelection(t){const e=t.target;let s=null;if(e.id&&(s=this.selections.find(i=>i.html.id===e.id)),!s){const i=e.parentElement.id;s=this.selections.find(n=>n.html.id===i)}return s}move(t,e){const s=this.findSelection(t);s.focused&&s.focused.unfocus();const i=e(this.selections.indexOf(s));this.selections[i].focus()}order(){this.selections.sort(pr.orderMethod.get(this.style))}toJson(){return{type:""}}}pr.chunkSize=4,pr.orderMethod=new Map([["alphabetical",(r,t)=>r.items[0].content.localeCompare(t.items[0].content)],["none",(r,t)=>1],["decreasing",(r,t)=>{const e=r.items.length,s=t.items.length;return e<s?1:s<e?-1:0}],["increasing",(r,t)=>{const e=r.items.length,s=t.items.length;return e<s?-1:s<e?1:0}]]);class Og{constructor(t){this._parser=new Map(t)}get(t){return this._parser.get(t)}add(t,e){this._parser.set(t,e)}}var Dg=function(r,t){var e={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&t.indexOf(s)<0&&(e[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(s=Object.getOwnPropertySymbols(r);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(r,s[i])&&(e[s[i]]=r[s[i]])}return e};class Pg{constructor(t=[]){this._initList=[["command",um.fromJson.bind(um)],["checkbox",mm.fromJson.bind(mm)],["combo",fm.fromJson.bind(fm)],["slider",bm.fromJson.bind(bm)],["label",gm.fromJson.bind(gm)],["radio",ud.fromJson.bind(ud)],["rule",pd.fromJson.bind(pd)],["submenu",ha.fromJson.bind(ha)],["contextMenu",dd.fromJson.bind(dd)],["subMenu",Nl.fromJson.bind(Nl)],["variable",pm.fromJson.bind(pm)],["items",this.items.bind(this)],["selectionMenu",Em.fromJson.bind(Em)],["selectionBox",pr.fromJson.bind(pr)]],this._factory=new Og(this._initList),t.forEach(([e,s])=>this.factory.add(e,s))}get factory(){return this._factory}items(t,e,s){const i=[];for(const n of e){const o=this.parse(n,s);o&&(s.items.push(o),n.disabled&&o.disable(),n.hidden&&i.push(o))}
67return i.forEach(n=>n.hide()),s.items}parse(t,...e){var{type:s}=t,i=Dg(t,["type"]);const n=this.factory.get(s);return n?n(this.factory,i,...e):null}}function wt(r){return"."+(te[r]||r)}function qt(r,t=";"){return`{
68  `+r.join(t+`
69  `)+`;
70}`}const ne={};ne[wt("MENU")]=qt(["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: 1001","border-radius: 5px","box-shadow: 0px 10px 20px #808080"]),ne[wt("MENUITEM")]=qt(["padding: 1px 2em","background: transparent"]),ne[wt("MENUARROW")]=qt(["position: absolute","right: 0.5em","padding-top: 0.25em","color: #666666","font-family: null","font-size: 0.75em"]),ne[wt("MENUACTIVE")+" "+wt("MENUARROW")]=qt(["color: white"]),ne[wt("MENUARROW")+wt("RTL")]=qt(["left: 0.5em","right: auto"]),ne[wt("MENUCHECK")]=qt(["position: absolute","left: 0.7em","font-family: null"]),ne[wt("MENUCHECK")+wt("RTL")]=qt(["right: 0.7em","left: auto"]),ne[wt("MENURADIOCHECK")]=qt(["position: absolute","left: 0.7em"]),ne[wt("MENURADIOCHECK")+wt("RTL")]=qt(["right: 0.7em","left: auto"]),ne[wt("MENUINPUTBOX")]=qt(["padding-left: 1em","right: 0.5em","color: #666666","font-family: null"]),ne[wt("MENUINPUTBOX")+wt("RTL")]=qt(["left: 0.1em"]),ne[wt("MENUCOMBOBOX")]=qt(["left: 0.1em","padding-bottom: 0.5em"]),ne[wt("MENUSLIDER")]=qt(["left: 0.1em"]),ne[wt("SLIDERVALUE")]=qt(["position: absolute","right: 0.1em","padding-top: 0.25em","color: #333333","font-size: 0.75em"]),ne[wt("MENUACTIVE")+" "+wt("SLIDERVALUE")]=qt(["color: #DDDDDD"]),ne[wt("SLIDERBAR")]=qt(["outline: none","background: #D3D3D3"]),ne[wt("MENULABEL")]=qt(["padding: 1px 2em 3px 1.33em","font-style: italic"]),ne[wt("MENURULE")]=qt(["border-top: 1px solid #DDDDDD","margin: 4px 3px"]),ne[wt("MENUDISABLED")]=qt(["color: #999"]),ne[wt("MENUACTIVE")]=qt(["background-color: #606872","color: white"]),ne[wt("MENUDISABLED")+":focus"]=qt(["background-color: #E8E8E8"]),ne[wt("MENULABEL")+":focus"]=qt(["background-color: #E8E8E8"]),ne[wt("CONTEXTMENU")+":focus"]=qt(["outline: none"]),ne[wt("CONTEXTMENU")+" "+wt("MENUITEM")+":focus"]=qt(["outline: none"]),ne[wt("SELECTIONMENU")]=qt(["position: relative","float: left","border-bottom: none","box-shadow: none ! important","border-radius: 0px !important"]),ne[wt("SELECTIONITEM")]=qt(["padding-right: 1em"]),ne[wt("SELECTION")]=qt(["right: 40%","width: 50%"]),ne[wt("SELECTIONBOX")]=qt(["padding: 0em","max-height: 20em","max-width: none","background-color: #FFFFFF"]),ne[wt("SELECTIONDIVIDER")]=qt(["clear: both","border-top: 2px solid #000000"]),ne[wt("MENU")+" "+wt("MENUCLOSE")]=qt(["top: -10px","left: -10px"]),ne["@media (prefers-color-scheme: dark) /* menu */"]=qt([wt("MENU")+" "+qt(["color: #E0E0E0","background-color: #242436","box-shadow: 0px 10px 20px #000","border: 1px solid #808080"]),wt("SLIDERVALUE")+" "+qt(["color: #D0D0D0"]),wt("MENUDISABLED")+":focus "+qt(["background-color: #383838"]),wt("MENULABEL")+":focus "+qt(["background-color: #585858"]),wt("MENURULE")+" "+qt(["border-top: 1px solid #808080"]),wt("SELECTIONDIVIDER")+" "+qt(["border-top: 2px solid #808080"])],"");const Qn={};Qn[wt("MENUCLOSE")]=qt(["position: absolute","cursor: pointer","display: inline-block","border: 2px solid #AAA","border-radius: 18px",'font-family:  "Courier New", Courier',"font-size: 24px","color: #F0F0F0"]),Qn[wt("MENUCLOSE")+" span"]=qt(["display: block","background-color: #AAA","border: 1.5px solid","border-radius: 18px","line-height: 0","padding: 8px 0 6px"]),Qn[wt("MENUCLOSE")+":hover"]=qt(["color: white !important","border: 2px solid #CCC !important"]),Qn[wt("MENUCLOSE")+":hover span"]=qt(["background-color: #CCC !important"]),Qn[wt("MENUCLOSE")+":hover:focus"]=qt(["outline: none"]);function Bg(r,t=document,e="MJX-Menu-styles"){if(t.head.querySelector("#"+e))return;const s=t.createElement("style");s.id=e;const i=[];for(const n in r)i.push(`${n} ${r[n]}`);s.textContent=i.join(`
71`),t.head.appendChild(s)}class Yi extends dd{constructor(){super(...arguments),this.mathItem=null,this.nofocus=!1,this.errorMsg=""}post(t,e){var s,i;if(this.mathItem){const n=(i=(s=this.mathItem)===null||s===void 0?void 0:s.explorers)===null||i===void 0?void 0:i.speech;n?.active&&(n.restarted=n.semanticFocus()),e!==void 0&&(this.getOriginalMenu(),this.get
vendor: 6,453 bytes, lines 71-73
71SemanticsMenu(),this.getSpeechMenu(),this.getBrailleMenu(),this.getSvgMenu(),this.getErrorMessage(),this.dynamicSubmenus()),super.post(t,e)}}unpost(){this.posted&&super.unpost(),this.mathItem&&(this.mathItem.outputData.nofocus=this.nofocus),this.mathItem=null,this.nofocus=!1}findID(...t){let e=this,s=null;for(const i of t){if(!e)return null;for(s of e.items){if(s.id===i){e=s instanceof ha?s.submenu:null;break}e=s=null}}return s}setJax(t){this.jax=t}getOriginalMenu(){const t=this.mathItem.inputJax.name,e=this.findID("Show","Original");e.content=t==="MathML"?"Original MathML":t+" Commands",this.findID("Copy","Original").content=e.content}getSemanticsMenu(){const t=this.findID("Settings","MathmlIncludes","semantics");this.mathItem.inputJax.name==="MathML"?t.disable():t.enable()}getSpeechMenu(){const t=this.mathItem.outputData.speech;this.findID("Show","Speech")[t?"enable":"disable"](),this.findID("Copy","Speech")[t?"enable":"disable"]()}getBrailleMenu(){const t=this.mathItem.outputData.braille;this.findID("Show","Braille")[t?"enable":"disable"](),this.findID("Copy","Braille")[t?"enable":"disable"]()}getSvgMenu(){const t=this.jax.SVG;this.findID("Show","SVG")[t?"enable":"disable"](),this.findID("Copy","SVG")[t?"enable":"disable"]()}getErrorMessage(){const t=this.mathItem.root.childNodes[0].childNodes;let e=!0;if(this.errorMsg="",t.length===1&&t[0].isKind("merror")){const s=t[0].attributes;this.errorMsg=s.get("data-mjx-error")||s.get("data-mjx-message")||"",e=!this.errorMsg}this.findID("Show","Error")[e?"disable":"enable"](),this.findID("Copy","Error")[e?"disable":"enable"]()}dynamicSubmenus(){for(const[t,[e,s]]of Yi.DynamicSubmenus){const i=this.find(t);i&&e(this,i,n=>{var o;i.submenu=n,!(!((o=n?.items)===null||o===void 0)&&o.length)||s&&!this.settings[s]?i.disable():i.enable()})}}}Yi.DynamicSubmenus=new Map;class Fg extends pr{constructor(t,e,s,i,n,o){super(t,e,i,n),this.attachMenu(o);const a=o.factory;this.selections=s.map(c=>a.get("selectionMenu")(a,c,this))}post(){const t=Array.from(Object.values(this.menu.jax)).filter(s=>!!s)[0],e=new Qr({title:this.title,message:"",adaptor:t.adaptor,styles:{"mjx-dialog > div":{padding:0}}});e.attach(),this.contentDiv=e.content,this.display()}display(){const t=this;if(t.order(),!this.selections.length)return;const e=[];let s=0,i=[];const n=t.getChunkSize(this.selections.length);for(let o=0;o<this.selections.length;o+=n){const a=this.selections.slice(o,o+n),[c,h,u,x]=t.rowDiv(a);e.push(c),s=Math.max(s,h),a.forEach(A=>A.html.style.height=u+"px"),i=t.combineColumn(i,x)}t._balanced&&(t.balanceColumn(e,i),s=i.reduce((o,a)=>o+a-2,20)),e.forEach(o=>o.style.width=s+"px")}}var ns,Zn,un;(function(r){r.DOMAIN="domain",r.STYLE="style",r.LOCALE="locale",r.TOPIC="topic",r.MODALITY="modality"})(ns||(ns={}));class pn{static createProp(...t){const e=ye.DEFAULT_ORDER,s={};for(let i=0,n=t.length,o=e.length;i<n&&i<o;i++)s[e[i]]=t[i];return new pn(s)}constructor(t,e=Object.keys(t)){this.properties=t,this.order=e}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 t=[];return this.order.forEach(e=>t.push(this.getProperty(e).slice())),t}toString(){const t=[];return this.order.forEach(e=>t.push(e+": "+this.getProperty(e).toString())),t.join(`
72`)}}class ye extends pn{static createCstr(...t){const e=ye.DEFAULT_ORDER,s={};for(let i=0,n=t.length,o=e.length;i<n&&i<o;i++)s[e[i]]=t[i];return new ye(s)}static defaultCstr(){return ye.createCstr.apply(null,ye.DEFAULT_ORDER.map(function(t){return ye.DEFAULT_VALUES[t]}))}static validOrder(t){const e=ye.DEFAULT_ORDER.slice();return t.every(s=>{const i=e.indexOf(s);return i!==-1&&e.splice(i,1)})}constructor(t,e){const s={};for(const[i,n]of Object.entries(t))s[i]=[n];super(s,e),this.components=t}getComponents(){return this.components}getValue(t){return this.components[t]}getValues(){return this.order.map(t=>this.getValue(t))}allProperties(){const t=super.allProperties();for(let e,s,i=0;e=t[i],s=this.order[i];i++){const n=this.getValue(s);e.indexOf(n)===-1&&e.unshift(n)}return t}toString(){return this.getValues().join(".")}equal(t){const e=t.getAxes();if(this.order.length!==e.length)return!1;for(let s,i=0;s=e[i];i++){const n=this.getValue(s);if(!n||t.getValue(s)!==n)return!1}return!0}}ye.DEFAULT_ORDER=[ns.LOCALE,ns.MODALITY,ns.DOMAIN,ns.STYLE,ns.TOPIC],ye.BASE_LOCALE="base",ye.DEFAULT_VALUE="default",ye.DEFAULT_VALUES={[ns.LOCALE]:"en",[ns.DOMAIN]:ye.DEFAULT_VALUE,[ns.STYLE]:ye.DEFAULT_VALUE,[ns.TOPIC]:ye.DEFAULT_VALUE,[ns.MODALITY]:"speech"};class jg{constructor(t){this.order=t}parse(t){const e=t.split("."),s={};if(e.length>this.order.length)throw new Error("Invalid dynamic constraint: "+s);let i=0;for(let n,o=0;n=this.order[o],e.length;o++,i++){const a=e.shift();s[n]=a}return new ye(s,this.order.slice(0,i))}}class Ug{constructor(t,e=new pn(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 pn(t.getProperties(),t.getOrder()),this.order=this.reference.getOrder()}match(t){const e=t.getAxes();return e.length===this.reference.getAxes().length&&e.every(s=>{const i=t.getValue(s);return i===this.reference.getValue(s)||this.fallback.getProperty(s).indexOf(i)!==-1})}compare(t,e){let s=!1;for(let i,n=0;i=this.order[n];n++){const o=t.getValue(i),a=e.getValue(i);if(!s){const x=this.reference.getValue(i);if(x===o&&x!==a)return-1;if(x===a&&x!==o)return 1;if(x===o&&x===a)continue;x!==o&&x!==a&&(s=!0)}const c=this.fallback.getProperty(i),h=c.indexOf(o),u=c.indexOf(a);if(h<u)return-1;if(u<h)return 1}return 0}toString(){return this.reference.toString()+`
73`+this.fallback.toString()}}(function(r){r.SYNC="sync",r.ASYNC="async",r.HTTP="http"})(Zn||(Zn={})),(function(r){r.PITCH="pitch",r.RATE="rate",r.VOLUME="volume",r.PAUSE="pause",r.JOIN="join",r.LAYOUT="layout"})(un||(un={})),un.PITCH,un.RATE,un.VOLUME,un.PAUSE,un.JOIN;var md,fd;(function(r){r.NONE="none",r.SHALLOW="shallow",r.DEEP="deep"})(md||(md={})),(function(r){r.NONE="none",r.LAYOUT="layout",r.COUNTING="counting",r.PUNCTUATION="punctuation",r.SSML="ssml",r.ACSS="acss",r.SABLE="sable",r.VOICEXML="voicexml"})(fd||(fd={}));class wi{static ensureLocale(t,e){return wi.LOCALES.get(t)?t:(console.error(`Locale ${t} does not exist! Using ${wi.LOCALES.get(e)} instead.`),e)}}
73wi.VERSION="5.0.0-rc.1",wi.LOCALES=new Map([["af","Afrikaans"],["ca","Catalan"],["da","Danish"],["de","German"],["en","English"],["es","Spanish"],["euro","Euro"],["fr","French"],["hi","Hindi"],["it","Italian"],["ko","Korean"],["nb","Bokmål"],["nn","Nynorsk"],["sv","Swedish"],["nemeth","Nemeth"]]),wi.mathjaxVersion="4.1.2",wi.url="https://cdn.jsdelivr.net/npm/speech-rule-engine@"+wi.VERSION+"/lib/mathmaps";var Hg=m(841),_g=m.t(Hg,2),xm=m(999),Wg=m.t(xm,2);const ym=_g,Nm=new ym.DOMImplementation().createDocument("",""),qg=(Wg==null?void 0:xm.install)||window.wgxpath.install,gd=(function(){const r={document:{},XPathResult:{}};return qg(r),r.document.XPathResult=r.XPathResult,r.document})(),Vg={currentDocument:Nm,evaluate:gd.evaluate,result:gd.XPathResult,createNSResolver:gd.createNSResolver},zg=!(typeof window>"u"),vm=zg&&window.document!==void 0,bd=!(typeof DedicatedWorkerGlobalScope>"u"),Ed=()=>{var r;return typeof Aa<"u"||typeof process<"u"&&((r=process.versions)===null||r===void 0?void 0:r.node)!=null&&typeof Aa<"u"?Aa:t=>null},kr={webworker:bd,xmldom:ym,document:Nm,fs:vm||bd?null:Ed()("fs"),jsonPath:(function(){if(vm||bd)return wi.url;if(xr.SRE_JSON_PATH||m.g.SRE_JSON_PATH)return xr.SRE_JSON_PATH||m.g.SRE_JSON_PATH;try{return Ed().resolve("speech-rule-engine").replace(/sre\.js$/,"")+"mathmaps"}catch{}try{return Ed().resolve(".").replace(/sre\.js$/,"")+"mathmaps"}catch{}return typeof __dirname<"u"?__dirname+(__dirname.match(/lib?$/)?"/mathmaps":"/lib/mathmaps"):process.cwd()+"/lib/mathmaps"})(),xpath:Vg};function Xg(r){return r.match("/$")?r:r+"/"}class oe{static getInstance(){return oe.instance=oe.instance||new oe,oe.instance}init(t){return t&&this.startDebugFile_(t),this.isActive_=!0,this.fileHandle}output(...t){this.isActive_&&this.output_(t)}generate(t){this.isActive_&&this.output_(t.apply(t,[]))}exit(t=()=>{}){this.stream_&&this.fileHandle.then(()=>{this.isActive_&&this.stream_&&(this.stream_.end("","",t),this.stream_=null)}),this.isActive_=!1}constructor(){this.isActive_=!1,this.fileHandle=Promise.resolve(),this.stream_=null}startDebugFile_(t){this.fileHandle=kr.fs.promises.open(t,"w"),this.fileHandle=this.fileHandle.then(e=>{this.stream_=e.createWriteStream(t),this.outputFunction=(function(...s){this.stream_.write(s.join(" ")),this.stream_.write(`
74`)}).bind(this),this.stream_.on("error",(function(s){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.stream_?this.fileHandle.then(()=>this.outputFunction.apply(this.outputFunction,["Speech Rule Engine Debugger:"].concat(t))):console.info(...["Speech Rule Engine Debugger:"].concat(t))}}class ki{constructor(t={}){this.delay=!1,this.domain="clearspeak",this.style=ye.DEFAULT_VALUES[ns.STYLE],this.locale=ye.DEFAULT_VALUES[ns.LOCALE],this.subiso="",this.modality=ye.DEFAULT_VALUES[ns.MODALITY],this.speech=md.NONE,this.markup=fd.NONE,this.mark=!0,this.automark=!1,this.character=!0,this.cleanpause=!0,this.cayleyshort=!0,this.linebreaks=!1,this.rate="100",this.walker="Table",this.structure=!1,this.aria=!1,this.tree=!1,this.strict=!1,this.pprint=!1,this.rules="",this.prune="",this.set(t)}set(t){this.ensureDomain(t);for(const[e,s]of Object.entries(t))(ki.BINARY_FEATURES.includes(e)||ki.STRING_FEATURES.includes(e))&&(this[e]=s)}json(){const t={};return[].concat(ki.STRING_FEATURES,ki.BINARY_FEATURES).forEach(e=>t[e]=this[e]),t}ensureDomain(t){if(t.modality&&t.modality!=="speech"||!t.modality&&this.modality!=="speech"||!t.domain&&!t.locale)return;if(t.domain==="default")return void(t.domain="mathspeak");const e=t.locale||this.locale,s=t.domain||this.domain;Jg.indexOf(e)===-1||s==="mathspeak"?e!=="en"?s!=="mathspeak"&&s!=="clearspeak"&&(t.domain="mathspeak"):Kg.indexOf(s)===-1&&(t.domain="mathspeak"):t.domain="mathspeak"}}ki.BINARY_FEATURES=["automark","mark","character","cleanpause","strict","structure","aria","pprint","cayleyshort","linebreaks","tree"],ki.STRING_FEATURES=["markup","style","domain","speech","walker","locale","delay","modality","rate","rules","subiso","prune"];const Jg=["ca","da","es"],Kg=["chromevox","clearspeak","mathspeak","emacspeak","html"];
74class Tm extends Error{constructor(t=""){super(),this.message=t,this.name="SRE Error"}}class Gs{set defaultLocale(t){this._defaultLocale=wi.ensureLocale(t,this._defaultLocale)}get defaultLocale(){return this._defaultLocale}static getInstance(){return Gs.instance=Gs.instance||new Gs,Gs.instance}static defaultEvaluator(t,e){return t}static evaluateNode(t){return Gs.nodeEvaluator(t)}getRate(){const t=parseInt(this.options.rate,10);return isNaN(t)?100:t}setDynamicCstr(t){if(this.defaultLocale&&(ye.DEFAULT_VALUES[ns.LOCALE]=this.defaultLocale),t){const o=Object.keys(t);for(let a=0;a<o.length;a++){const c=o[a];if(ye.DEFAULT_ORDER.indexOf(c)!==-1){const h=t[c];this.options[c]=h}}}const e=[this.options.locale,this.options.modality,this.options.domain,this.options.style].join("."),s=pn.createProp([ye.DEFAULT_VALUES[ns.LOCALE]],[ye.DEFAULT_VALUES[ns.MODALITY]],[ye.DEFAULT_VALUES[ns.DOMAIN]],[ye.DEFAULT_VALUES[ns.STYLE]]),i=this.comparators[this.options.domain],n=this.parsers[this.options.domain];this.parser=n||this.defaultParser,this.dynamicCstr=this.parser.parse(e),this.dynamicCstr.updateProperties(s.getProperties()),this.comparator=i?i():new Ug(this.dynamicCstr)}constructor(){this.options=new ki,this.config=!1,this.customLoader=null,this.parsers={},this.comparator=null,this.mode=Zn.SYNC,this.init=!0,this.comparators={},this._defaultLocale=ye.DEFAULT_VALUES[ns.LOCALE],this.options.locale=this.defaultLocale,this.evaluator=Gs.defaultEvaluator,this.defaultParser=new jg(ye.DEFAULT_ORDER),this.parser=this.defaultParser,this.dynamicCstr=ye.defaultCstr()}configurate(t){this.mode!==Zn.HTTP||kr.webworker||this.config||((function(e){const s=document.documentElement.querySelectorAll('script[type="text/x-sre-config"]');for(let i=0,n=s.length;i<n;i++){let o;try{o=s[i].innerHTML;const a=JSON.parse(o);for(const[c,h]of Object.entries(a))e[c]=h}catch{oe.getInstance().output("Illegal configuration ",o)}}})(t),this.config=!0),(function(e){if(typeof SREfeature<"u")for(const[s,i]of Object.entries(SREfeature))e[s]=i})(t)}setCustomLoader(t){t&&(this.customLoader=t)}setup(t){t.mode!==void 0&&(this.mode=t.mode),this.configurate(t),this.options.set(t),t.json&&(kr.jsonPath=Xg(t.json)),this.setCustomLoader(t.custom)}json(){return Object.assign({mode:this.mode},this.options.json())}reset(){this.options=new ki}}Gs.nodeEvaluator=function(r){return[]};const da=kr.xpath,$g={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 Gg(r){return $g[r]||null}class Yg{constructor(){this.lookupNamespaceURI=Gg}}function Qg(r,t,e){return da.evaluate(r,t,new Yg,e,null)}var Or;function je(r){const t=[];for(let e=0,s=r.length;e<s;e++)t.push(r[e]);return t}function ua(r){const t=new kr.xmldom.DOMParser,e=(function(i){return(i=i.replace(/&nbsp;/g," ")).replace(/>[ \f\n\r\t\v\u200b]+</g,"><").trim()})(r),s=!!e.match(/&(?!lt|gt|amp|quot|apos)\w+;/g);if(!e)throw new Tm("Empty input!");try{const i=t.parseFromString(e,s?"text/html":"text/xml");return Gs.getInstance().mode===Zn.HTTP?(da.currentDocument=i,s?i.body.childNodes[0]:i.documentElement):i.documentElement}catch(i){throw new Tm("Illegal input: "+i.message)}}function Qi(r,t){r.parentNode&&(r.parentNode.insertBefore(t,r),r.parentNode.removeChild(r))}function pa(r){return kr.document.createElement(r)}function Cm(r){let t="",e=/(>)(<)(\/*)/g,s=0,i=(r=r.replace(e,`$1\r
75$2$3`)).split(`\r
76`);for(e=/(\.)*(<)(\/*)/g,i=i.map(n=>n.replace(e,`$1\r
77$2$3`).split(`\r
78`)).reduce((n,o)=>n.concat(o),[]);i.length;){let n=i.shift();if(!n)continue;let o=0;if(n.match(/^<\w[^>/]*>[^>]+$/)){const a=Zg(n,i[0]);a[0]?a[1]?(n+=i.shift().slice(0,-a[1].length),a[1].trim()&&i.unshift(a[1])):n+=i.shift():o=1}else if(n.match(/^<\/\w/))s!==0&&(s-=1);else if(n.match(/^<\w[^>]*[^/]>.*$/))o=1;else if(n.match(/^<\w[^>]*\/>.+$/)){const a=n.indexOf(">")+1,c=n.slice(a);c.trim()&&i.unshift(),n=n.slice(0,a)+c}else o=0;t+=new Array(s+1).join("  ")+n+`\r
79`,s+=o}return t}function Zg(r,t){if(!t)return[!1,""];const e=r.match(/^<([^> ]+).*>/),s=t.match(/^<\/([^>]+)>(.*)/);return e&&s&&e[1]===s[1]?[!0,s[2]]:[!1,""]}function se(r){return r.tagName.toUpperCase()}function Lm(r){return new kr.xmldom.XMLSerializer().serializeToString(r)}(function(r){r[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"})(Or||(Or={}));class xd{constructor(t,e,s){this.domain=t,this.name=e,this.func=s,this.active=!1}
vendor: 7,320 bytes, line 79
79annotate(t){t.childNodes.forEach(this.annotate.bind(this)),t.contentNodes.forEach(this.annotate.bind(this)),t.addAnnotation(this.domain,this.func(t))}}class yd{constructor(t,e,s,i={}){this.domain=t,this.name=e,this.func=s,this.def=i,this.active=!1}visit(t,e){let s=this.func(t,e);t.addAnnotation(this.domain,s[0]);for(let i,n=0;i=t.childNodes[n];n++)s=this.visit(i,s[1]);for(let i,n=0;i=t.contentNodes[n];n++)s=this.visit(i,s[1]);return s}}const Nd=new Map,vd=new Map;function Tl(r){const t=r.domain+":"+r.name;r instanceof xd?Nd.set(t,r):vd.set(t,r)}function Cl(r,t){const e=r+":"+t,s=Nd.get(e)||vd.get(e);s&&(s.active=!0)}var St,Xe,tt;function t2(r){const t=r.toString(16).toUpperCase();return t.length>3?t:("000"+t).slice(-4)}function Am([r,t],e){const s=parseInt(r,16),i=parseInt(t,16),n=[];for(let o=s;o<=i;o++){let a=t2(o);e[a]!==!1&&(a=e[a]||a,n.push(a))}return n}function Sm(r,t={}){return Am(r,t).map(e=>String.fromCodePoint(parseInt(e,16)))}(function(r){r.BOLD="bold",r.BOLDFRAKTUR="bold-fraktur",r.BOLDITALIC="bold-italic",r.BOLDSCRIPT="bold-script",r.DOUBLESTRUCK="double-struck",r.DOUBLESTRUCKITALIC="double-struck-italic",r.FULLWIDTH="fullwidth",r.FRAKTUR="fraktur",r.ITALIC="italic",r.MONOSPACE="monospace",r.NORMAL="normal",r.SCRIPT="script",r.SANSSERIF="sans-serif",r.SANSSERIFITALIC="sans-serif-italic",r.SANSSERIFBOLD="sans-serif-bold",r.SANSSERIFBOLDITALIC="sans-serif-bold-italic"})(St||(St={})),(function(r){r.SUPER="super",r.SUB="sub",r.CIRCLED="circled",r.PARENTHESIZED="parenthesized",r.PERIOD="period",r.NEGATIVECIRCLED="negative-circled",r.DOUBLECIRCLED="double-circled",r.CIRCLEDSANSSERIF="circled-sans-serif",r.NEGATIVECIRCLEDSANSSERIF="negative-circled-sans-serif",r.COMMA="comma",r.SQUARED="squared",r.NEGATIVESQUARED="negative-squared"})(Xe||(Xe={})),(function(r){r.LATINCAP="latinCap",r.LATINSMALL="latinSmall",r.GREEKCAP="greekCap",r.GREEKSMALL="greekSmall",r.DIGIT="digit"})(tt||(tt={}));const e2=[{interval:["1D400","1D419"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.BOLD},{interval:["1D41A","1D433"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.BOLD},{interval:["1D56C","1D585"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.BOLDFRAKTUR},{interval:["1D586","1D59F"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.BOLDFRAKTUR},{interval:["1D468","1D481"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.BOLDITALIC},{interval:["1D482","1D49B"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.BOLDITALIC},{interval:["1D4D0","1D4E9"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.BOLDSCRIPT},{interval:["1D4EA","1D503"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.BOLDSCRIPT},{interval:["1D538","1D551"],base:tt.LATINCAP,subst:{"1D53A":"2102","1D53F":"210D","1D545":"2115","1D547":"2119","1D548":"211A","1D549":"211D","1D551":"2124"},capital:!0,category:"Lu",font:St.DOUBLESTRUCK},{interval:["1D552","1D56B"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.DOUBLESTRUCK},{interval:["1D504","1D51D"],base:tt.LATINCAP,subst:{"1D506":"212D","1D50B":"210C","1D50C":"2111","1D515":"211C","1D51D":"2128"},capital:!0,category:"Lu",font:St.FRAKTUR},{interval:["1D51E","1D537"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.FRAKTUR},{interval:["FF21","FF3A"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.FULLWIDTH},{interval:["FF41","FF5A"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.FULLWIDTH},{interval:["1D434","1D44D"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.ITALIC},{interval:["1D44E","1D467"],base:tt.LATINSMALL,subst:{"1D455":"210E"},capital:!1,category:"Ll",font:St.ITALIC},{interval:["1D670","1D689"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.MONOSPACE},{interval:["1D68A","1D6A3"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.MONOSPACE},{interval:["0041","005A"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.NORMAL},{interval:["0061","007A"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.NORMAL},{interval:["1D49C","1D4B5"],base:tt.LATINCAP,subst:{"1D49D":"212C","1D4A0":"2130","1D4A1":"2131","1D4A3":"210B","1D4A4":"2110","1D4A7":"2112","1D4A8":"2133","1D4AD":"211B"},capital:!0,category:"Lu",font:St.SCRIPT},{interval:["1D4B6","1D4CF"],base:tt.LATINSMALL,subst:{"1D4BA":"212F","1D4BC":"210A","1D4C4":"2134"},capital:!1,category:"Ll",font:St.SCRIPT},{interval:["1D5A0","1D5B9"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.SANSSERIF},{interval:["1D5BA","1D5D3"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.SANSSERIF},{interval:["1D608","1D621"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.SANSSERIFITALIC},{interval:["1D622","1D63B"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.SANSSERIFITALIC},{interval:["1D5D4","1D5ED"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.SANSSERIFBOLD},{interval:["1D5EE","1D607"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.SANSSERIFBOLD},{interval:["1D63C","1D655"],base:tt.LATINCAP,subst:{},capital:!0,category:"Lu",font:St.SANSSERIFBOLDITALIC},{interval:["1D656","1D66F"],base:tt.LATINSMALL,subst:{},capital:!1,category:"Ll",font:St.SANSSERIFBOLDITALIC},{interval:["0391","03A9"],base:tt.GREEKCAP,subst:{"03A2":"03F4"},capital:!0,category:"Lu",font:St.NORMAL},{interval:["03B0","03D0"],base:tt.GREEKSMALL,subst:{"03B0":"2207","03CA":"2202","03CB":"03F5","03CC":"03D1","03CD":"03F0","03CE":"03D5","03CF":"03F1","03D0":"03D6"},capital:!1,category:"Ll",font:St.NORMAL},{interval:["1D6A8","1D6C0"],base:tt.GREEKCAP,subst:{},capital:!0,category:"Lu",font:St.BOLD},{interval:["1D6C1","1D6E1"],base:tt.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:St.BOLD},{interval:["1D6E2","1D6FA"],base:tt.GREEKCAP,subst:{},capital:!0,category:"Lu",font:St.ITALIC},{interval:["1D6FB","1D71B"],base:tt.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:St.ITALIC},{interval:["1D71C","1D734"],base:tt.GREEKCAP,subst:{},capital:!0,category:"Lu",font:St.BOLDITALIC},{interval:["1D735","1D755"],base:tt.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:St.BOLDITALIC},{interval:["1D756","1D76E"],base:tt.GREEKCAP,subst:{},capital:!0,category:"Lu",font:St.SANSSERIFBOLD},{interval:["1D76F","1D78F"],base:tt.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:St.SANSSERIFBOLD},{interval:["1D790","1D7A8"],base:tt.GREEKCAP,subst:{},capital:!0,category:"Lu",font:St.SANSSERIFBOLDITALIC},{interval:["1D7A9","1D7C9"],base:tt.GREEKSMALL,subst:{},capital:!1,category:"Ll",font:St.SANSSERIFBOLDITALIC},{interval:["0030","0039"],base:tt.DIGIT,subst:{},offset:0,category:"Nd",font:St.NORMAL},{interval:["2070","2079"],base:tt.DIGIT,subst:{2071:"00B9",2072:"00B2",2073:"00B3"},offset:0,category:"No",font:Xe.SUPER},{interval:["2080","2089"],base:tt.DIGIT,subst:{},offset:0,category:"No",font:Xe.SUB},{interval:["245F","2473"],base:tt.DIGIT,subst:{"245F":"24EA"},offset:0,category:"No",font:Xe.CIRCLED},{interval:["3251","325F"],base:tt.DIGIT,subst:{},offset:21,category:"No",font:Xe.CIRCLED},{interval:["32B1","32BF"],base:tt.DIGIT,subst:{},offset:36,category:"No",font:Xe.CIRCLED},{interval:["2474","2487"],base:tt.DIGIT,subst:{},offset:1,category:"No",font:Xe.PARENTHESIZED},{interval:["2487","249B"],base:tt.DIGIT,subst:{2487:"1F100"}
79,offset:0,category:"No",font:Xe.PERIOD},{interval:["2775","277F"],base:tt.DIGIT,subst:{2775:"24FF"},offset:0,category:"No",font:Xe.NEGATIVECIRCLED},{interval:["24EB","24F4"],base:tt.DIGIT,subst:{},offset:11,category:"No",font:Xe.NEGATIVECIRCLED},{interval:["24F5","24FE"],base:tt.DIGIT,subst:{},offset:1,category:"No",font:Xe.DOUBLECIRCLED},{interval:["277F","2789"],base:tt.DIGIT,subst:{"277F":"1F10B"},offset:0,category:"No",font:Xe.CIRCLEDSANSSERIF},{interval:["2789","2793"],base:tt.DIGIT,subst:{2789:"1F10C"},offset:0,category:"No",font:Xe.NEGATIVECIRCLEDSANSSERIF},{interval:["FF10","FF19"],base:tt.DIGIT,subst:{},offset:0,category:"Nd",font:St.FULLWIDTH},{interval:["1D7CE","1D7D7"],base:tt.DIGIT,subst:{},offset:0,category:"Nd",font:St.BOLD},{interval:["1D7D8","1D7E1"],base:tt.DIGIT,subst:{},offset:0,category:"Nd",font:St.DOUBLESTRUCK},{interval:["1D7E2","1D7EB"],base:tt.DIGIT,subst:{},offset:0,category:"Nd",font:St.SANSSERIF},{interval:["1D7EC","1D7F5"],base:tt.DIGIT,subst:{},offset:0,category:"Nd",font:St.SANSSERIFBOLD},{interval:["1D7F6","1D7FF"],base:tt.DIGIT,subst:{},offset:0,category:"Nd",font:St.MONOSPACE},{interval:["1F101","1F10A"],base:tt.DIGIT,subst:{},offset:0,category:"No",font:Xe.COMMA},{interval:["24B6","24CF"],base:tt.LATINCAP,subst:{},capital:!0,category:"So",font:Xe.CIRCLED},{interval:["24D0","24E9"],base:tt.LATINSMALL,subst:{},capital:!1,category:"So",font:Xe.CIRCLED},{interval:["1F110","1F129"],base:tt.LATINCAP,subst:{},capital:!0,category:"So",font:Xe.PARENTHESIZED},{interval:["249C","24B5"],base:tt.LATINSMALL,subst:{},capital:!1,category:"So",font:Xe.PARENTHESIZED},{interval:["1F130","1F149"],base:tt.LATINCAP,subst:{},capital:!0,category:"So",font:Xe.SQUARED},{interval:["1F170","1F189"],base:tt.LATINCAP,subst:{},capital:!0,category:"So",font:Xe.NEGATIVESQUARED},{interval:["1F150","1F169"],base:tt.LATINCAP,subst:{},capital:!0,category:"So",font:Xe.NEGATIVECIRCLED}],Td=new Map;function Rm(r,t){return r+t.split("-").map(e=>e[0].toUpperCase()+e.slice(1)).join("")}for(const r of e2){const t=Rm(r.base,r.font),e=Sm(r.interval,r.subst);let s=Td.get(t);s?s.unicode=s.unicode.concat(e):(s=r,s.unicode=e,Td.set(t,s))}var Cd;(function(r){r.PUNCTUATION="punctuation",r.FENCE="fence",r.NUMBER="number",r.IDENTIFIER="identifier",r.TEXT="text",r.OPERATOR="operator",r.RELATION="relation",r.LARGEOP="largeop",r.FUNCTION="function",r.ACCENT="accent",r.FENCED="fenced",r.FRACTION="fraction",r.PUNCTUATED="punctuated",r.RELSEQ="relseq",r.MULTIREL="multirel",r.INFIXOP="infixop",r.PREFIXOP="prefixop",r.POSTFIXOP="postfixop",r.APPL="appl",r.INTEGRAL="integral",r.BIGOP="bigop",r.SQRT="sqrt",r.ROOT="root",r.LIMUPPER="limupper",r.LIMLOWER="limlower",r.LIMBOTH="limboth",r.SUBSCRIPT="subscript",r.SUPERSCRIPT="superscript",r.UNDERSCORE="underscore",r.OVERSCORE="overscore",r.TENSOR="tensor",r.TABLE="table",r.MULTILINE="multiline",r.MATRIX="matrix",r.VECTOR="vector",r.CASES="cases",r.ROW="row",r.LINE="line",r.CELL="cell",r.ENCLOSE="enclose",r.INFERENCE="inference",r.RULELABEL="rulelabel",r.CONCLUSION="conclusion",r.PREMISES="premises",r.UNKNOWN="unknown",r.EMPTY="empty"})(Cd||(Cd={}));const g=Object.assign({},Cd);var Ld;(function(r){r.COMMA="comma",r.SEMICOLON="semicolon",r.ELLIPSIS="ellipsis",r.FULLSTOP="fullstop",r.QUESTION="question",r.EXCLAMATION="exclamation",r.QUOTES="quotes",r.DASH="dash",r.TILDE="tilde",r.PRIME="prime",r.DEGREE="degree",r.VBAR="vbar",r.COLON="colon",r.OPENFENCE="openfence",r.CLOSEFENCE="closefence",r.APPLICATION="application",r.DUMMY="dummy",r.UNIT="unit",r.LABEL="label",r.OPEN="open",r.CLOSE="close",r.TOP="top",r.BOTTOM="bottom",r.NEUTRAL="neutral",r.METRIC="metric",r.LATINLETTER="latinletter",r.GREEKLETTER="greekletter",r.OTHERLETTER="otherletter",r.NUMBERSET="numbersetletter",r.INTEGER="integer",r.FLOAT="float",r.OTHERNUMBER="othernumber",r.INFTY="infty",r.MIXED="mixed",r.MULTIACCENT="multiaccent",r.OVERACCENT="overaccent",r.UNDERACCENT="underaccent",r.UNDEROVER="underover",r.SUBSUP="subsup",r.LEFTSUB="leftsub",r.LEFTSUPER="leftsuper",r.RIGHTSUB="rightsub",r.RIGHTSUPER="rightsuper",r.LEFTRIGHT="leftright",r.ABOVEBELOW="abovebelow",r.INTERVAL="interval",r.SETEMPTY="set empty",r.SETEXT="set extended",r.SETSINGLE="set singleton",r.SETCOLLECT="set collection",r.STRING="string",r.SPACE="space",r.ANNOTATION="annotation",r.TEXT="text",r.SE
79QUENCE="sequence",r.ENDPUNCT="endpunct",r.STARTPUNCT="startpunct",r.NEGATIVE="negative",r.POSITIVE="positive",r.NEGATION="negation",r.MULTIOP="multiop",r.PREFIXOP="prefix operator",r.POSTFIXOP="postfix operator",r.LIMFUNC="limit function",r.INFIXFUNC="infix function",r.PREFIXFUNC="prefix function",r.POSTFIXFUNC="postfix function",r.SIMPLEFUNC="simple function",r.COMPFUNC="composed function",r.SUM="sum",r.INTEGRAL="integral",r.GEOMETRY="geometry",r.BOX="box",r.BLOCK="block",r.ADDITION="addition",r.MULTIPLICATION="multiplication",r.SUBTRACTION="subtraction",r.IMPLICIT="implicit",r.DIVISION="division",r.VULGAR="vulgar",r.EQUALITY="equality",r.INEQUALITY="inequality",r.ARROW="arrow",r.ELEMENT="element",r.NONELEMENT="nonelement",r.REELEMENT="reelement",r.RENONELEMENT="renonelement",r.SET="set",r.DETERMINANT="determinant",r.ROWVECTOR="rowvector",r.BINOMIAL="binomial",r.SQUAREMATRIX="squarematrix",r.CYCLE="cycle",r.MULTILINE="multiline",r.MATRIX="matrix",r.VECTOR="vector",r.CASES="cases",r.TABLE="table",r.CAYLEY="cayley",r.PROOF="proof",r.LEFT="left",r.RIGHT="right",r.UP="up",r.DOWN="down",r.FINAL="final",r.SINGLE="single",r.HYP="hyp",r.AXIOM="axiom",r.LOGIC="logic",r.UNKNOWN="unknown",r.MGLYPH="mglyph"})(Ld||(Ld={}));const y=Object.assign({},Ld);var Ad;(function(r){r.CALIGRAPHIC="caligraphic",r.CALIGRAPHICBOLD="caligraphic-bold",r.OLDSTYLE="oldstyle",r.OLDSTYLEBOLD="oldstyle-bold",r.UNKNOWN="unknown"})(Ad||(Ad={}));const be=Object.assign(Object.assign(Object.assign({},St),Ad),Xe);var Sd;(function(r){r.ALLLETTERS="allLetters",r.D="d",r.BAR="bar",r.TILDE="tilde",r.CURLY="curly",r.PAREN="paren",r.BRACKET="bracket",r.FLOOR="floor",r.CEIL="ceil"})(Sd||(Sd={}));const os=Object.assign(Object.assign({},tt),Sd);var s2=function(r,t){var e={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&t.indexOf(s)<0&&(e[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(s=Object.getOwnPropertySymbols(r);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(r,s[i])&&(e[s[i]]=r[s[i]])}return e};const mr={functionApplication:String.fromCodePoint(8289),invisibleTimes:String.fromCodePoint(8290),invisibleComma:String.fromCodePoint(8291),invisiblePlus:String.fromCodePoint(8292)};class i2 extends Map{get(t){return super.get(t)||{role:y.UNKNOWN,type:g.UNKNOWN,font:be.UNKNOWN}}}class r2 extends Map{set(t,e,s=""){return super.set(this.secKey(e,t),s||e),this}has(t,e){return super.has(this.secKey(e,t))}get(t,e){return super.get(this.secKey(e,t))}secKey(t,e){return e?`${t} ${e}`:`${t}`}}const ue={Meaning:new i2,Secondary:new r2,FencesHoriz:new Map,FencesVert:new Map,FencesSecondary:new Map,LatexCommands:new Map};function Dr(r,t){for(const e of r)ue.Meaning.set(e,{role:t.role||y.UNKNOWN,type:t.type||g.UNKNOWN,font:t.font||be.UNKNOWN}),t.secondary&&ue.Secondary.set(e,t.secondary)}function ma(r,t,e=1){const s={},i=(function(n){let o=[];for(const a of n)Array.isArray(a)?o=o.concat(Am(a,{}).map(c=>parseInt(c,16))):o.push(parseInt(a,16));return o})(t);for(const n of i)s[n]||(r.set(String.fromCodePoint(n),String.fromCodePoint(n+e)),s[n]=!0,s[n+e]=!0)}const n2=["0028","0029","207D","207E","208D","208E","2768","2769","276A","276B","27EE","27EF","FE59","FE5A","FF08","FF09"],o2=["005B","005D","2045","2046","298B","298C","298D","298E","298F","2990","FF3B","FF3D"],a2=["007B","007D","2774","2775","FE5B","FE5C","FF5B","FF5D"],l2=["2308","2309","2E22","2E23","300C","300E","FF62"],c2=["230A","230B","2E24","2E25","300D","300F","FF63"];function fa(r,t){for(const e of r){const s=String.fromCodePoint(parseInt(e,16));ue.Secondary.set(s,t),ue.FencesSecondary.set(s,t)}}const h2=["cos","cot","csc","sec","sin","tan","arccos","arccot","arccsc","arcsec","arcsin","arctan"].concat(["cosh","coth","csch","sech","sinh","tanh","arcosh","arcoth","arcsch","arsech","arsinh","artanh"],["deg","det","dim","hom","ker","Tr"],["log","ln","lg","exp","gcd","lcm","arg","im","re","Pr"]);function ga(r,t,e,s,i,n=[],o={},a={}){const c=Td.get(Rm(r,s));c&&(c.unicode.forEach(h=>{ue.Meaning.set(h,{type:t,role:e,font:i}),n.forEach(u=>ue.Secondary.set(h,u))}),(function(h,u){for(const[x,A]of Object.entries(u)){const I=h[x];I!==void 0&&ue.Meaning.set(I,A)}})(c.unicode,o),(function(h,u){for(const[x,A]of Object.entries(u)){const I=h[x];I!==void 0&&ue.Secondary.set(I,A)}})(c.unicode,a))}[{set:["23","26","40","5c","a1","a7","b6","bf","2017",["2022","2025"],"2027","203b","203c",["2041","2043"],["2047","2049"],["204b","204d"],"2050","2055","2056",["2058","205e"],"2234","2235","fe45","fe46","fe5f","fe60","fe68","fe6b","ff03","ff06","ff0f","ff20","ff3c"],type:g.PUNCTUATION,role:y.UNKNOWN},{set:["22","ab","bb","2dd",["2018","201f"],"2039","203a",["301d","301f"],"fe10","ff02","ff07"],type:g.PUNCTUATION,role:y.QUOTES},{set:["3b","204f","2a1f","2a3e","fe14","fe54","ff1b"],type:g.PUNCTUATION,role:y.SEMICOLON},{set:["3f","203d","fe16","fe56","ff1f"],type:g.PUNCTUATION,role:y.QUESTION},{set:["21","fe15","fe57","ff01"],type:g.PUNCTUATION,role:y.EXCLAMATION},{set:["5e","60","a8","aa","b4","ba","2c7",["2d8","2da"],"2040","207a","207d","207e","ff3e","ff40"],type:g.PUNCTUATION,role:y.OVERACCENT},{set:["b8","2db","2038","203f","2054","208a","208d","208e"],type:g.PUNCTUATION,role:y.UNDERACCENT},{set:["3a","2982","fe13","fe30","fe55","ff1a"],type:g.PUNCTUATION,role:y.COLON},{set:["2c","2063","fe50","ff0c"],type:g.PUNCTUATION,role:y.COMMA},{set:["2026",["22ee","22f1"],"fe19"],type:g.PUNCTUATION,role:y.ELLIPSIS},{set:["2e","fe52","ff0e"],type:g.PUNCTUATION,role:y.FULLSTOP},{set:["2d","207b","208b","2212","2796","fe63","ff0d"],type:g.OPERATOR,role:y.DASH,secondary:os.BAR},{set:["5f","af",["2010","2015"],"203e","208b",["fe49","fe4f"],"fe58","ff3f","ffe3"],type:g.PUNCTUATION,role:y.DASH,secondary:os.BAR},{set:["7e","2dc","2f7","303","330","334","2053","223c","223d","301c","ff5e"],type:g.OPERATOR,role:y.TILDE,secondary:os.TILDE},{set:["27","2b9","2ba",["2032","2037"],"2057"],type:g.PUNCTUATION,role:y.PRIME},{set:["b0"],type:g.PUNCTUATION,role:y.DEGREE},{set:["2b","b1","2064","2213","2214","2228","222a",["228c","228e"],"2294","2295","229d","229e","22bb","22bd","22c4","22ce","22d3","2304","271b","271c","2795","27cf","29fa","29fb","29fe",["2a22","2a28"],"2a2d","2a2e","2a39","2a42","2a45","2a46","2a48","2a4a","2a4c","2a4f","2a50","2a52","2a54","2a56","2a57","2a59","2a5b","2a5d",["2a61","2a63"],"2adc","2add","fe62","ff0b"],type:g.OPERATOR,role:y.ADDITION},{set:["2a","b7","d7","2020","2021","204e","2051","2062",["2217","2219"],"2227","2229","2240","2293","2297",["2299","229b"],"22a0","22a1","22b9","22bc",["22c5","22cc"],"22cf","22d2","22d4","2303","2305","2306","25cb","2715","2716","27ce","27d1",["29d1","29d7"],"29e2","2a1d",["2a2f","2a37"],["2a3b","2a3d"],"2a40","2a43","2a44","2a47","2a49","2a4b","2a4d","2a4e","2a51","2a53","2a55","2a58","2a5a","2a5c",["2a5e","2a60"],"2ada","2adb","fe61","ff0a"],type:g.OPERATOR,role:y.MULTIPLICATION},{set:["2d","af","2010","2011","2052","207b","208b","2212","2216","2238","2242","2296","229f","2796","29ff",["2a29","2a2c"],"2a3a","2a41","fe63","ff0d"],type:g.OPERATOR,role:y.SUBTRACTION},{set:["2f","f7","2044","2215","2298","2797","27cc","29bc",["29f5","29f9"],"2a38"],type:g.OPERATOR,role:y.DIVISION},{set:["25","2030","2031","ff05","fe6a"],type:g.OPERATOR,role:y.POSTFIXOP},{set:["ac","2200","2201","2203","2204","2206",["221a","221c"],"2310","ffe2"],type:g.OPERATOR,role:y.PREFIXOP},{set:["2320","2321","23aa","23ae","23af","23b2","23b3","23b6","23b7"],type:g.OPERATOR,role:y.PREFIXOP},{set:["1d7ca","1d7cb"],type:g.OPERATOR,role:y.PREFIXOP,font:be.BOLD},{set:["3d","7e","207c","208c","221d","2237",["223a","223f"],"2243","2245","2248",["224a","224e"],["2251","225f"],"2261","2263","229c","22cd","22d5","29e4","29e6","2a66","2a67",["2a6a","2a6c"],["2a6c","2a78"],"fe66","ff1d"],type:g.RELATION,role:y.EQUALITY},{set:["3c","3e","2241","2242","2244","2246","2247","2249","224f","2250","2260","2262",["2264","2281"],"22b0","22b1",["22d6","22e1"],["22e
796","22e9"],["2976","2978"],"29c0","29c1","29e1","29e3","29e5",["2a79","2abc"],["2af7","2afa"],"fe64","fe65","ff1c","ff1e"],type:g.RELATION,role:y.INEQUALITY},{set:[["2282","228b"],["228f","2292"],["22b2","22b8"],"22d0","22d1",["22e2","22e5"],["22ea","22ed"],"27c3","27c4",["27c7","27c9"],["27d5","27d7"],"27dc",["2979","297b"],"29df",["2abd","2ad8"]],type:g.RELATION,role:y.SET},{set:["2236",["27e0","27e5"],"292b","292c",["29b5","29bb"],"29be","29bf",["29c2","29d0"]],type:g.RELATION,role:y.UNKNOWN},{set:["2205",["29b0","29b4"]],type:g.IDENTIFIER,role:y.SETEMPTY},{set:["1ab2","221e",["29dc","29de"]],type:g.IDENTIFIER,role:y.INFTY},{set:["22a2","22a3",["22a6","22af"],"27da","27db","27dd","27de","2ade",["2ae2","2ae6"],"2aec","2aed"],type:g.RELATION,role:y.LOGIC},{set:["22a4","22a5","22ba","27d8","27d9","27df","2adf","2ae0",["2ae7","2aeb"],"2af1"],type:g.IDENTIFIER,role:y.LOGIC},{set:[["2190","21ff"],"2301","2324","238b","2794",["2798","27af"],["27b1","27be"],["27f0","27ff"],["2900","292a"],["292d","2975"],["297c","297f"],["2b00","2b11"],["2b30","2b4c"],["ffe9","ffec"]],type:g.RELATION,role:y.ARROW},{set:["2208","220a",["22f2","22f9"],"22ff","27d2","2ad9"],type:g.OPERATOR,role:y.ELEMENT},{set:["2209"],type:g.OPERATOR,role:y.NONELEMENT},{set:["220b","220d",["22fa","22fe"]],type:g.OPERATOR,role:y.REELEMENT},{set:["220c"],type:g.OPERATOR,role:y.RENONELEMENT},{set:[["220f","2211"],["22c0","22c3"],["2a00","2a0b"],"2a3f","2afc","2aff"],type:g.LARGEOP,role:y.SUM},{set:["2140"],type:g.LARGEOP,role:y.SUM,font:be.DOUBLESTRUCK},{set:[["222b","2233"],["2a0c","2a17"],["2a17","2a1c"]],type:g.LARGEOP,role:y.INTEGRAL},{set:[["2500","257F"]],type:g.RELATION,role:y.BOX},{set:[["2580","259F"]],type:g.IDENTIFIER,role:y.BLOCK},{set:[["25A0","25FF"],["2B12","2B2F"],["2B50","2B59"]],type:g.RELATION,role:y.GEOMETRY},{set:["220e","2300","2302","2311","29bd","29e0",["29e8","29f3"],"2a1e","2afe","ffed","ffee"],type:g.OPERATOR,role:y.GEOMETRY},{set:[["221f","2222"],"22be","22bf",["2312","2314"],"237c","27c0",["299b","29af"]],type:g.OPERATOR,role:y.GEOMETRY},{set:["24",["a2","a5"],"b5","2123",["2125","2127"],"212a","212b","fe69","ff04","ffe0","ffe1","ffe5","ffe6"],type:g.IDENTIFIER,role:y.UNKNOWN},{set:["a9","ae","210f","2114","2116","2117",["211e","2122"],"212e","2132",["2139","213b"],["2141","2144"],"214d","214e",["1f12a","1f12c"],"1f18a"],type:g.IDENTIFIER,role:y.OTHERLETTER},{set:["2224","2226","2239","2307","27b0","27bf","27c1","27c2","27ca","27cb","27cd","27d0","27d3","27d4","2981","2999","299a","29e7","29f4","2a20","2a21","2a64","2a65","2a68","2a69","2ae1",["2aee","2af0"],"2af2","2af3","2af5","2af6","2afb","2afd"],type:g.OPERATOR,role:y.UNKNOWN},{set:["2605","2606","26aa","26ab",["2720","274d"]],type:g.OPERATOR,role:y.UNKNOWN},{set:[["2145","2149"]],type:g.IDENTIFIER,role:y.LATINLETTER,font:be.DOUBLESTRUCKITALIC,secondary:os.ALLLETTERS},{set:[["213c","213f"]],type:g.IDENTIFIER,role:y.GREEKLETTER,font:be.DOUBLESTRUCK,secondary:os.ALLLETTERS},{set:["3d0","3d7","3f6",["1d26","1d2a"],"1d5e","1d60",["1d66","1d6a"]],type:g.IDENTIFIER,role:y.GREEKLETTER,font:be.NORMAL,secondary:os.ALLLETTERS},{set:[["2135","2138"]],type:g.IDENTIFIER,role:y.OTHERLETTER,font:be.NORMAL,secondary:os.ALLLETTERS},{set:["131","237"],type:g.IDENTIFIER,role:y.LATINLETTER,font:be.NORMAL},{set:["1d6a4","1d6a5"],type:g.IDENTIFIER,role:y.LATINLETTER,font:be.ITALIC},{set:["2113","2118"],type:g.IDENTIFIER,role:y.LATINLETTER,font:be.SCR
79IPT},{set:[["c0","d6"],["d8","f6"],["f8","1bf"],["1c4","2af"],["1d00","1d25"],["1d6b","1d9a"],["1e00","1ef9"],["363","36f"],["1dd3","1de6"],["1d62","1d65"],"1dca","2071","207f",["2090","209c"],"2c7c"],type:g.IDENTIFIER,role:y.LATINLETTER,font:be.NORMAL},{set:[["00bc","00be"],["2150","215f"],"2189"],type:g.NUMBER,role:y.FLOAT},{set:["23E8",["3248","324f"]],type:g.NUMBER,role:y.INTEGER},{set:[["214A","214C"],"2705","2713","2714","2717","2718"],type:g.IDENTIFIER,role:y.UNKNOWN},{set:["20","a0","ad",["2000","200f"],["2028","202f"],["205f","2060"],"206a","206b","206e","206f","feff",["fff9","fffb"]],type:g.TEXT,role:y.SPACE},{set:["7c","a6","2223","23b8","23b9","23d0","2758",["fe31","fe34"],"ff5c","ffe4","ffe8"],type:g.FENCE,role:y.NEUTRAL},{set:["2016","2225","2980","2af4"],type:g.FENCE,role:y.METRIC}].forEach(r=>{var{set:t}=r,e=s2(r,["set"]);return Dr((function(s){let i=[];for(const n of s)Array.isArray(n)?i=i.concat(Sm(n)):i.push(String.fromCodePoint(parseInt(n,16)));return i})(t),e)}),ma(ue.FencesVert,["23b4",["23dc","23e1"],["fe35","fe44"],"fe47"]),ma(ue.FencesHoriz,["28","2045","207D","208D",["2308","230f"],["231c","231f"],"2329","23b0",["2768","2775"],"27c5",["27e6","27ef"],["2983","2998"],["29d8","29db"],"29fc",["2e22","2e29"],["3008","3011"],["3014","301b"],"fd3e","fe17",["fe59","fe5e"],"ff08","ff5f","ff62"]),ma(ue.FencesHoriz,["5b","7b","ff3b","ff5b"],2),ma(ue.FencesHoriz,[["239b","23a6"]],3),ma(ue.FencesHoriz,[["23a7","23a9"]],4),Dr([...ue.FencesHoriz.keys()],{type:g.FENCE,role:y.OPEN}),Dr([...ue.FencesHoriz.values()],{type:g.FENCE,role:y.CLOSE}),Dr([...ue.FencesVert.keys()],{type:g.FENCE,role:y.TOP}),Dr([...ue.FencesVert.values()],{type:g.FENCE,role:y.BOTTOM}),fa(n2,os.PAREN),fa(a2,os.CURLY),fa(o2,os.BRACKET),fa(l2,os.CEIL),fa(c2,os.FLOOR),(function(){for(const[r,t]of Object.entries(be)){const e=Xe[r]?be.UNKNOWN:t===be.FULLWIDTH?be.NORMAL:t;ga(tt.LATINCAP,g.IDENTIFIER,y.LATINLETTER,t,e,[os.ALLLETTERS]),ga(tt.LATINSMALL,g.IDENTIFIER,y.LATINLETTER,t,e,[os.ALLLETTERS],{},{3:os.D}),ga(tt.GREEKCAP,g.IDENTIFIER,y.GREEKLETTER,t,e,[os.ALLLETTERS]),ga(tt.GREEKSMALL,g.IDENTIFIER,y.GREEKLETTER,t,e,[os.ALLLETTERS],{0:{type:g.OPERATOR,role:y.PREFIXOP,font:e},26:{type:g.OPERATOR,role:y.PREFIXOP,font:e}}),ga(tt.DIGIT,g.NUMBER,y.INTEGER,t,e)}})(),Dr(["inf","lim","liminf","limsup","max","min","sup","injlim","projlim"],{type:g.FUNCTION,role:y.LIMFUNC}),Dr(h2,{type:g.FUNCTION,role:y.PREFIXFUNC}),Dr(["mod","rem"],{type:g.OPERATOR,role:y.PREFIXFUNC});const Mm=[];function Im(r,t){for(let e,s=0;e=Mm[s];s++){const i=e.compare(r,t);if(i!==0)return i}return 0}function d2(r){if(r.length<=1)return r;const t=r.slice();(function(i){i.sort(Im)})(t);const e=[];let s;do s=t.pop(),e.push(s);while(s&&t.length&&Im(t[t.length-1],s)===0);return e}function ba(r,t){return r.match(/^.+:.+$/)||!t?r:r+":"+t}new class{constructor(r,t=null){this.comparator=r,this.type=t,(function(e){Mm.push(e)})(this)}compare(r,t){return this.type&&this.type===r.type&&this.type===t.type?this.comparator(r,t):0}}(function(r,t){return r.role===y.SIMPLEFUNC?1:t.role===y.SIMPLEFUNC?-1:0},g.IDENTIFIER);class wm extends Map{set(t,e){return super.set(ba(t,e.font),e),this}setNode(t){this.set(t.textContent,t.meaning())}get(t,e=null){return super.get(ba(t,e))}getNode(t){return this.get(t.textContent,t.font)}}class km extends Map{add(t,e){const s=this.get(t);s?s.push(e):super.set(t,[e])}get(t,e=null){return super.get(ba(t,e))}getNode(t){return this.get(t.textContent,t.font)}minimize(){for(const[t,e]of this)e.length===1&&this.delete(t)}isMultiValued(){for(const t of this.values())if(t.length>1)return!0;return!1}}class u2 extends km{add(t,e){super.add(ba(t,e.font),e)}addNode(t){this.add(t.textContent,t)}toString(){const t=[];for(const[e,s]of this){const i=Array(e.length+3).join(" "),n=s.map(o=>o.toString()).join(`
80`+i);t.push(e+": "+n)}return t.join(`
81`)}collateMeaning(){const t=new p2;for(const[e,s]of this)t.set(e,s.map(i=>i.meaning()));return t}}class p2 extends km{add(t,e){const s=this.get(t,e.font);s&&s.find(function(i){return o=e,(n=i).type===o.type&&n.role===o.role&&n.font===o.font;var n,o})||super.add(ba(t,e.font),e)}addNode(t){this.add(t.textContent,t.meaning())}toString(){const t=[];for(const[e,s]of this){const i=Array(e.length+3).join(" "),n=s.map(o=>`{type: ${o.type}, role: ${o.role}, font: ${o.font}}`).join(`
82`+i);t.push(e+": "+n)}return t.join(`
83`)}reduce(){for(const[t,e]of this)e.length!==1&&this.set(t,d2(e))}default(){const t=new wm;for(const[e,s]of this)s.length===1&&t.set(e,s[0]);return t}newDefault(){const t=this.default();this.reduce();const e=this.default();return t.size!==e.size?e:null}}var B;(function(r){r.ANNOTATION="ANNOTATION",r.ANNOTATIONXML="ANNOTATION-XML",r.MACTION="MACTION",r.MALIGNGROUP="MALIGNGROUP",r.MALIGNMARK="MALIGNMARK",r.MATH="MATH",r.MENCLOSE="MENCLOSE",r.MERROR="MERROR",r.MFENCED="MFENCED",r.MFRAC="MFRAC",r.MGLYPH="MGLYPH",r.MI="MI",r.MLABELEDTR="MLABELEDTR",r.MMULTISCRIPTS="MMULTISCRIPTS",r.MN="MN",r.MO="MO",r.MOVER="MOVER",r.MPADDED="MPADDED",r.MPHANTOM="MPHANTOM",r.MPRESCRIPTS="MPRESCRIPTS",r.MROOT="MROOT",r.MROW="MROW",r.MS="MS",r.MSPACE="MSPACE",r.MSQRT="MSQRT",r.MSTYLE="MSTYLE",r.MSUB="MSUB",r.MSUBSUP="MSUBSUP",r.MSUP="MSUP",r.MTABLE="MTABLE",r.MTD="MTD",r.MTEXT="MTEXT",r.MTR="MTR",r.MUNDER="MUNDER",r.MUNDEROVER="MUNDEROVER",r.NONE="NONE",r.SEMANTICS="SEMANTICS"})(B||(B={}));const m2=Object.values(B),f2=[B.MO,B.MI,B.MN,B.MTEXT,B.MS,B.MSPACE],Om=[B.MERROR,B.MPHANTOM,B.MALIGNGROUP,B.MALIGNMARK,B.MPRESCRIPTS,B.ANNOTATION,B.ANNOTATIONXML],Dm=[B.MATH,B.MROW,B.MPADDED,B.MACTION,B.NONE,B.MSTYLE,B.SEMANTICS],g2=[B.MROOT,B.MSQRT],b2=["aria-label","exact-speech","alt"];function Rd(r){return!!r&&se(r)===B.MATH}function Md(r){return!!r&&(Om.includes(se(r))||!m2.includes(se(r)))}function Pr(r){return!!r&&Dm.includes(se(r))}function E2(r){return!!r&&se(r)===B.MGLYPH&&!(function(t){return!!t&&f2.includes(se(t))})(r.parentNode)}function to(r){const t=[];for(let e,s=0;e=r[s];s++){if(e.nodeType!==Or.ELEMENT_NODE)continue;const i=se(e);Om.includes(i)||Dm.includes(i)&&e.childNodes.length===0||t.push(e)}return t}function Id(r,t){var e;if(!((e=t.attributes)===null||e===void 0)&&e.length){const s=t.attributes;for(let i=s.length-1;i>=0;i--){const n=s[i].name;n.match(/^ext/)&&(r.attributes[n]=s[i].value,r.nobreaking=!0),b2.includes(n)&&(r.attributes["ext-speech"]=s[i].value,r.nobreaking=!0),n==="href"&&(r.attributes.href=s[i].value,r.nobreaking=!0),n.toLowerCase()!=="data-latex"&&n.toLowerCase()!=="latex"||(r.attributes.latex=s[i].value),n.match(/texclass$/)&&(r.attributes.texclass=s[i].value),n!=="color"&&n!=="mathcolor"||(r.attributes.color=s[i].value)}}}function eo(r){return r&&r.embellished&&r.childNodes.length>0?eo(r.childNodes[0]):r}function fr(r,t,e){e&&r.reverse();const s=[];for(let i,n=0;i=r[n];n++){if(t(i))return e?{head:r.slice(n+1).reverse(),div:i,tail:s.reverse()}:{head:s,div:i,tail:r.slice(n+1)};s.push(i)}
83return e?{head:[],div:null,tail:s.reverse()}:{head:s,div:null,tail:[]}}function oi(r,t){let e=r;const s=[],i=[];let n=null;do n=fr(e,t),i.push(n.head),s.push(n.div),e=n.tail;while(n.div);return s.pop(),{rel:s,comp:i}}function Pm(r,t){if(r.mathmlTree)return;const e=new Set;if(t.forEach(s=>{var i;return e.add(((i=s.mathmlTree)===null||i===void 0?void 0:i.parentElement)||null)}),e.size===1&&!e.has(null)){const s=[...e][0];return Pr(s)&&s.childNodes.length===t.length?void(r.mathmlTree=s):void 0}if(e.has(null)&&e.size<=2&&(e.delete(null),r.mathml.forEach(s=>{s.parentElement&&!r.mathml.includes(s)&&e.add(s.parentElement)})),e.size===1&&!e.has(null)){const s=[...e][0];if(Pr(s)&&je(s.childNodes).every(i=>r.mathml.includes(i)))return void(r.mathmlTree=s)}}var Ys;(function(r){r.EMBELLISHED="embellished",r.FENCEPOINTER="fencepointer",r.FONT="font",r.ID="id",r.ANNOTATION="annotation",r.ROLE="role",r.TYPE="type",r.CHILDREN="children",r.CONTENT="content",r.TEXT="$t"})(Ys||(Ys={}));class Ei{static fromXml(t){const e=parseInt(t.getAttribute("id"),10),s=new Ei(e);return s.type=t.tagName,Ei.setAttribute(s,t,"role"),Ei.setAttribute(s,t,"font"),Ei.setAttribute(s,t,"embellished"),Ei.setAttribute(s,t,"fencepointer","fencePointer"),t.getAttribute("annotation")&&s.parseAnnotation(t.getAttribute("annotation")),Id(s,t),Ei.processChildren(s,t),s}static setAttribute(t,e,s,i){i=i||s;const n=e.getAttribute(s);n&&(t[i]=n)}static processChildren(t,e){for(const s of je(e.childNodes)){if(s.nodeType===Or.TEXT_NODE){t.textContent=s.textContent;continue}const i=je(s.childNodes).map(Ei.fromXml);i.forEach(n=>n.parent=t),se(s)==="CONTENT"?t.contentNodes=i:t.childNodes=i}}constructor(t){this.id=t,this.mathml=[],this.parent=null,this.type=g.UNKNOWN,this.role=y.UNKNOWN,this.font=be.UNKNOWN,this.embellished=null,this.fencePointer="",this.childNodes=[],this.textContent="",this.mathmlTree=null,this.contentNodes=[],this.annotation={},this.attributes={},this.nobreaking=!1,this.noupdate=!1}querySelectorAll(t){let e=[];for(let s,i=0;s=this.childNodes[i];i++)e=e.concat(s.querySelectorAll(t));for(let s,i=0;s=this.contentNodes[i];i++)e=e.concat(s.querySelectorAll(t));return t(this)&&e.unshift(this),e}xml(t,e){const s=function(n,o){const a=o.map(function(h){return h.xml(t,e)}),c=t.createElementNS("",n);for(let h,u=0;h=a[u];u++)c.appendChild(h);return c},i=t.createElementNS("",this.type);return e||this.xmlAttributes(i),i.textContent=this.textContent,this.contentNodes.length>0&&i.appendChild(s(Ys.CONTENT,this.contentNodes)),this.childNodes.length>0&&i.appendChild(s(Ys.CHILDREN,this.childNodes)),i}toString(t=!1){const e=ua("<snode/>");return Lm(this.xml(e.ownerDocument,t))}allAttributes(){const t=[];return t.push([Ys.ROLE,this.role]),this.font!==be.UNKNOWN&&t.push([Ys.FONT,this.font]),Object.keys(this.annotation).length&&t.push([Ys.ANNOTATION,this.annotationXml()]),this.embellished&&t.push([Ys.EMBELLISHED,this.embellished]),this.fencePointer&&t.push([Ys.FENCEPOINTER,this.fencePointer]),t.push([Ys.ID,this.id.toString()]),t}annotationXml(){const t=[];for(const[e,s]of Object.entries(this.annotation))s.forEach(i=>t.push(e+":"+i));return t.join(";")}attributesXml(){const t=[];for(const[e,s]of Object.entries(this.attributes))t.push(e+":"+Ei.escapeValue(s));return t.join(";")}toJson(){const t={};t[Ys.TYPE]=this.type;const e=this.allAttributes();for(let s,i=0;s=e[i];i++)t[s[0]]=s[1].toString();return this.textContent&&(t[Ys.TEXT]=this.textContent),this.childNodes.length&&(t[Ys.CHILDREN]=this.childNodes.map(function(s){return s.toJson()})),this.contentNodes.length&&(t[Ys.CONTENT]=this.contentNodes.map(function(s){return s.toJson()})),t}updateContent(t,e){const s=e?t.replace(/^[ \f\n\r\t\v\u200b]*/,"").replace(/[ \f\n\r\t\v\u200b]*$/,""):t.trim();if(t=t&&!s?t:s,this.textContent===t)return;const i=ue.Meaning.get(t.replace(/\s/g," "));this.textContent=t,this.role=i.role,this.type=i.type,this.font=i.font}addMathmlNodes(t){for(let e,s=0;e=t[s];s++)this.mathml.indexOf(e)===-1&&this.mathml.push(e)}appendChild(t){this.childNodes.push(t),this.addMathmlNodes(t.mathml),t.parent=this}replaceChild(t,e){const s=this.childNodes.indexOf(t);if(s===-1)return;t.parent=null,e.parent=this,this.childNodes[s]=e;const i=t.mathml.filter(function(o){return e.mathml.indexOf(o)===-1}),n=e.mathml.filter(function(o){return t.mathml.indexOf(o)===-1});this.removeMathmlNodes(i),this.addMathmlNodes(n)}appendContentNode(t){t&&(this.contentNodes.push(t),this.addMathmlNodes(t.mathml),t.parent=this)}
83removeContentNode(t){if(t){const e=this.contentNodes.indexOf(t);e!==-1&&this.contentNodes.slice(e,1)}}equals(t){if(!t||this.type!==t.type||this.role!==t.role||this.textContent!==t.textContent||this.childNodes.length!==t.childNodes.length||this.contentNodes.length!==t.contentNodes.length)return!1;for(let e,s,i=0;e=this.childNodes[i],s=t.childNodes[i];i++)if(!e.equals(s))return!1;for(let e,s,i=0;e=this.contentNodes[i],s=t.contentNodes[i];i++)if(!e.equals(s))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 s=this.annotation[t];return!!s&&s.indexOf(e)!==-1}parseAnnotation(t){const e=t.split(";");for(let s=0,i=e.length;s<i;s++){const n=e[s].split(":");this.addAnnotation(n[0],n[1])}}meaning(){return{type:this.type,role:this.role,font:this.font}}xmlAttributes(t){const e=this.allAttributes();for(let s,i=0;s=e[i];i++)t.setAttribute(s[0],s[1]);this.addExternalAttributes(t)}addExternalAttributes(t){for(const[e,s]of Object.entries(this.attributes))t.setAttribute(e,s)}static escapeValue(t){return t.replace(/;/g,"\\0003B")}parseAttributes(t){if(!t)return;const e=t.split(";");for(let s=0,i=e.length;s<i;s++){const[n,...o]=e[s].split(":");n&&(this.attributes[n]=o.join("").replace(/\\0003B/g,";"))}}removeMathmlNodes(t){const e=this.mathml;for(let s,i=0;s=t[i];i++){const n=e.indexOf(s);n!==-1&&e.splice(n,1)}this.mathml=e}displayTree_(t){t++;const e=Array(t).join("  ");let s="";s+=`
84`+e+this.toString(),s+=`
85`+e+"MathmlTree:",s+=`
86`+e+this.mathmlTreeString(),s+=`
87`+e+"MathML:";for(let i,n=0;i=this.mathml[n];n++)s+=`
88`+e+i.toString();return s+=`
89`+e+"Begin Content",this.contentNodes.forEach(function(i){s+=i.displayTree_(t)}),s+=`
90`+e+"End Content",s+=`
91`+e+"Begin Children",this.childNodes.forEach(function(i){s+=i.displayTree_(t)}),s+=`
92`+e+"End Children",s}mathmlTreeString(){return this.mathmlTree?this.mathmlTree.toString():"EMPTY"}addAnnotation_(t,e){const s=this.annotation[t];s&&!s.includes(e)?s.push(e):this.annotation[t]=[e]}}class Bm{constructor(){this.leafMap=new u2,this.defaultMap=new wm,this.idCounter_=-1}makeNode(t){return this.createNode_(t)}makeUnprocessed(t){const e=this.createNode_();return e.addMathmlNodes([t]),e.mathmlTree=t,e}makeEmptyNode(){const t=this.createNode_();return t.type=g.EMPTY,t}makeContentNode(t){const e=this.createNode_();return e.updateContent(t),e}makeMultipleContentNodes(t,e){const s=[];for(let i=0;i<t;i++)s.push(this.makeContentNode(e));return s}makeLeafNode(t,e){if(!t)return this.makeEmptyNode();const s=this.makeContentNode(t);s.font=e||s.font;const i=this.defaultMap.getNode(s);return i&&(s.type=i.type,s.role=i.role,s.font=i.font),this.leafMap.addNode(s),s}makeBranchNode(t,e,s,i){const n=this.createNode_();return i&&n.updateContent(i),n.type=t,n.childNodes=e,n.contentNodes=s,e.concat(s).forEach(function(o){o.parent=n,n.addMathmlNodes(o.mathml)}),n}createNode_(t){return t!==void 0?this.idCounter_=Math.max(this.idCounter_,t):t=++this.idCounter_,new Ei(t)}}class x2{constructor(t){this.type=t,this.factory_=new Bm}getFactory(){return this.factory_}setFactory(t){this.factory_=t}getType(){return this.type}parseList(t){const e=[];for(let s,i=0;s=t[i];i++)e.push(this.parse(s));return e}}function it(r,t){return r.type===t}function Ll(r,t){return r.embellished===t}function Ne(r,t){return r.role===t}function so(r){return it(r,g.FENCE)||it(r,g.PUNCTUATION)||it(r,g.OPERATOR)||it(r,g.RELATION)}function y2(r){return mn(r)&&!Ne(r,y.DIVISION)||it(r,g.APPL)||kd(r)}function Fm(r){return mn(r)||kd(r)}function jm(r,t){return!!t&&it(t,g.IDENTIFIER)&&ue.Secondary.has(r.textContent,os.D)}function wd(r){if(it(r,g.IDENTIFIER)){const t=r.textContent[0];return t&&r.textContent[1]&&ue.Secondary.has(t,os.D)}return!1}function kd(r){return Hm(r)||Al(r)}function Um(r){return r.embellished?r.embellished:(t=r.type)===g.OPERATOR||t===g.RELATION||t===g.FENCE||t===g.PUNCTUATION?r.type:null;var t}function mn(r){return it(r,g.OPERATOR)||Ll(r,g.OPERATOR)}function Hm(r){return it(r,g.RELATION)||Ll(r,g.RELATION)}function Al(r){return it(r,g.PUNCTUATION)||Ll(r,g.PUNCTUATION)}function _m(r){return it(r,g.FENCE)||Ll(r,g.FENCE)}function N2(r){return!(!r||!_m(r))&&(!r.embellished||Wm(r))}function Wm(r){return!r.embellished||!(function(t){return it(t,g.TENSOR)&&(!it(t.childNodes[1],g.EMPTY)||!it(t.childNodes[2],g.EMPTY))&&(!it(t.childNodes[3],g.EMPTY)||!it(t.childNodes[4],g.EMPTY))})(r)&&(!Ne(r,y.CLOSE)||!it(r,g.TENSOR))&&(!Ne(r,y.OPEN)||!it(r,g.SUBSCRIPT)&&!it(r,g.SUPERSCRIPT))&&Wm(r.childNodes[0])}function qm(r){return!!r&&(it(r,g.TABLE)||it(r,g.MULTILINE))}function v2(r){return!!r&&Vm(r)&&qm(r.childNodes[0])}function Vm(r){return!!r&&it(r,g.FENCED)&&(Ne(r,y.LEFTRIGHT)||Zi(r))&&r.childNodes.length===1}function T2(r,t){return t.length>0&&Ne(t[t.length-1],y.OPENFENCE)}function zm(r){return r.childNodes.every(function(t){return t.childNodes.length<=1})}function Xm(r){return it(r,g.LINE)&&r.contentNodes.length&&Ne(r.contentNodes[0],y.LABEL)}function Jm(r){return it(r,g.LARGEOP)||it(r,g.LIMBOTH)||it(r,g.LIMLOWER)||it(r,g.LIMUPPER)||it(r,g.FUNCTION)&&Ne(r,y.LIMFUNC)||(it(r,g.OVERSCORE)||it(r,g.UNDERSCORE))&&Jm(r.childNodes[0])}function Km(r,t,e){return t.length===1&&(r[e].type===g.PUNCTUATION||r[e].embellished===g.PUNCTUATION)&&r[e]===t[0]}function C2(r){return it(r,g.IDENTIFIER)&&Ne(r,y.SIMPLEFUNC)}const L2=[g.PUNCTUATION,g.PUNCTUATED,g.RELSEQ,g.MULTIREL,g.TABLE,g.MULTILINE,g.CASES,g.INFERENCE],A2=[g.LIMUPPER,g.LIMLOWER,g.LIMBOTH,g.SUBSCRIPT,g.
92SUPERSCRIPT,g.UNDERSCORE,g.OVERSCORE,g.TENSOR];function Od(r){const t=r.type;return L2.indexOf(t)===-1&&(t!==g.INFIXOP||r.role===y.IMPLICIT)&&(t===g.FENCED?r.role!==y.LEFTRIGHT||Od(r.childNodes[0]):A2.indexOf(t)===-1||Od(r.childNodes[0]))}function $m(r){return(function(t){return t.type===g.NUMBER&&(t.role===y.INTEGER||t.role===y.FLOAT)})(r)||r.role===y.VULGAR||r.role===y.MIXED}function Dd(r){const t=r.childNodes;return r.role===y.UNIT&&(!t.length||t[0].role===y.UNIT)}function Gm(r){const t=r.childNodes;return r.type===g.INFIXOP&&(r.role===y.MULTIPLICATION||r.role===y.IMPLICIT)&&t.length&&(Dd(t[0])||$m(t[0]))&&r.childNodes.slice(1).every(Dd)}function fn(r){return r.type===g.INFIXOP&&(r.role===y.IMPLICIT||r.role===y.UNIT&&!!r.contentNodes.length&&r.contentNodes[0].textContent===mr.invisibleTimes)}function Ea(r){return r.type===g.INFIXOP&&r.role===y.IMPLICIT}function Zi(r){return r.role===y.NEUTRAL||r.role===y.METRIC}function Pd(r,t){return Zi(r)&&Zi(t)&&eo(r).textContent===eo(t).textContent}function Ym(r){return!!Zi(r)&&(!r.embellished||r.type!==g.SUPERSCRIPT&&r.type!==g.SUBSCRIPT&&(r.type!==g.TENSOR||r.childNodes[3].type===g.EMPTY&&r.childNodes[4].type===g.EMPTY))}function Qm(r){return!!Zi(r)&&(!r.embellished||r.type!==g.TENSOR||r.childNodes[1].type===g.EMPTY&&r.childNodes[2].type===g.EMPTY)}function Zm(r){return[y.ELEMENT,y.NONELEMENT,y.REELEMENT,y.RENONELEMENT].includes(r.role)}const Tt={factory:null,options:new ki,updateFactory:function(r){Tt.factory=r},heuristics:new Map,flags:{combine_juxtaposition:!0,convert_juxtaposition:!0,multioperator:!0},blacklist:{},add:function(r){const t=r.name;Tt.heuristics.set(t,r),Tt.flags[t]||(Tt.flags[t]=!1)},run:function(r,t,e){const s=Tt.heuristics.get(r);return s&&!Tt.blacklist[r]&&(Tt.flags[r]||s.applicable(t))?s.apply(t):e?e(t):t}};class v{static getInstance(){return v.instance=v.instance||new v,v.instance}static tableToMultiline(t){if(!zm(t))return Tt.run("rewrite_subcases",t,v.classifyTable);t.type=g.MULTILINE;for(let e,s=0;e=t.childNodes[s];s++)v.rowToLine_(e,y.MULTILINE);return t.childNodes.length===1&&!Xm(t.childNodes[0])&&Vm(t.childNodes[0].childNodes[0])&&v.tableToMatrixOrVector_(v.rewriteFencedLine_(t)),v.classifyMultiline(t)}static number(t){t.type!==g.UNKNOWN&&t.type!==g.IDENTIFIER||(t.type=g.NUMBER),v.meaningFromContent(t,v.numberRole_),v.exprFont_(t)}static classifyMultiline(t){return v.binomialForm_(t),v.classifyMultiline_(t),t}static classifyMultiline_(t){let e=0;const s=t.childNodes.length;let i;for(;e<s&&(!(i=t.childNodes[e])||!i.childNodes.length);)e++;if(e>=s)return;const n=i.childNodes[0].role;n!==y.UNKNOWN&&t.childNodes.every(function(o){const a=o.childNodes[0];return!a||a.role===n&&(it(a,g.RELATION)||it(a,g.RELSEQ))})&&(t.role=n)}static classifyTable(t){const e=v.computeColumns_(t);return v.classifyByColumns_(t,e,y.EQUALITY)||v.classifyByColumns_(t,e,y.INEQUALITY,[y.EQUALITY])||v.classifyByColumns_(t,e,y.ARROW)||v.detectCaleyTable(t),t}static detectCaleyTable(t){if(!t.mathmlTree)return!1;const e=t.mathmlTree,s=e.getAttribute("columnlines"),i=e.getAttribute("rowlines");return!(!s||!i)&&!(!v.cayleySpacing(s)||!v.cayleySpacing(i))&&(t.role=y.CAYLEY,!0)}static cayleySpacing(t){const e=t.split(" ");return(e[0]==="solid"||e[0]==="dashed")&&e.slice(1).every(s=>s==="none")}static proof(t,e,s){const i=v.separateSemantics(e);return v.getInstance().proof(t,i,s)}static findSemantics(t,e,s){const i=s??null,n=v.getSemantics(t);return!!n&&!!n[e]&&(i==null||n[e]===i)}static getSemantics(t){const e=t.getAttribute("semantics");return e?v.separateSemantics(e):null}static removePrefix(t){const[,...e]=t.split("_");return e.join("_")}static separateSemantics(t){const e={};return t.split(";").forEach(function(s){const[i,n]=s.split(":");e[v.removePrefix(i)]=n}),e}static matchSpaces_(t,e){for(let s,i=0;s=e[i];i++){const n=t[i].mathmlTree,o=t[i+1].mathmlTree;if(!n||!o)continue;const a=n.nextSibling;if(!a||a===o)continue;const c=v.getSpacer_(a);c&&c!==o&&(s.addMathmlNodes([c]),s.mathmlTree=c,s.role=y.SPACE)}}static getSpacer_(t){if(se(t)===B.MSPACE)return t;for(;Pr(t)&&t.childNodes.length===1;
92)if(se(t=t.childNodes[0])===B.MSPACE)return t;return null}static fenceToPunct_(t){const e=v.FENCE_TO_PUNCT_[t.role];if(e){for(;t.embellished;)t.embellished=g.PUNCTUATION,Ne(t,y.SUBSUP)||Ne(t,y.UNDEROVER)||(t.role=e),t=t.childNodes[0];t.type=g.PUNCTUATION,t.role=e}}static classifyFunction_(t,e){if(t.type===g.APPL||t.type===g.BIGOP||t.type===g.INTEGRAL)return"";if(e[0]&&e[0].textContent===mr.functionApplication){v.getInstance().funcAppls[t.id]=e.shift();let n=y.SIMPLEFUNC;return Tt.run("simple2prefix",t),t.role!==y.PREFIXFUNC&&t.role!==y.LIMFUNC||(n=t.role),v.propagateFunctionRole_(t,n),"prefix"}return v.CLASSIFY_FUNCTION_[t.role]||((i=t).type===g.IDENTIFIER||i.role===y.LATINLETTER||i.role===y.GREEKLETTER||i.role===y.OTHERLETTER?"simple":"");var i}static propagateFunctionRole_(t,e){if(t){if(t.type===g.INFIXOP)return;Ne(t,y.SUBSUP)||Ne(t,y.UNDEROVER)||(t.role=e),v.propagateFunctionRole_(t.childNodes[0],e)}}static getFunctionOp_(t,e){if(e(t))return t;for(let s,i=0;s=t.childNodes[i];i++){const n=v.getFunctionOp_(s,e);if(n)return n}return null}static tableToMatrixOrVector_(t){const e=t.childNodes[0];it(e,g.MULTILINE)?v.tableToVector_(t):v.tableToMatrix_(t),t.contentNodes.forEach(e.appendContentNode.bind(e));for(let s,i=0;s=e.childNodes[i];i++)v.assignRoleToRow_(s,v.getComponentRoles_(e));return e.parent=null,e}static tableToVector_(t){const e=t.childNodes[0];e.type=g.VECTOR,e.childNodes.length!==1?v.binomialForm_(e):v.tableToSquare_(t)}static binomialForm_(t){Ne(t,y.UNKNOWN)&&t.childNodes.length===2&&(t.role=y.BINOMIAL,t.childNodes[0].role=y.BINOMIAL,t.childNodes[1].role=y.BINOMIAL)}static tableToMatrix_(t){const e=t.childNodes[0];e.type=g.MATRIX,e.childNodes&&e.childNodes.length>0&&e.childNodes[0].childNodes&&e.childNodes.length===e.childNodes[0].childNodes.length?v.tableToSquare_(t):e.childNodes&&e.childNodes.length===1&&(e.role=y.ROWVECTOR)}static tableToSquare_(t){const e=t.childNodes[0];Ne(e,y.UNKNOWN)&&(Zi(t)?e.role=y.DETERMINANT:e.role=y.SQUAREMATRIX)}static getComponentRoles_(t){const e=t.role;return e&&e!==y.UNKNOWN?e:t.type.toLowerCase()||y.UNKNOWN}static tableToCases_(t,e){for(let s,i=0;s=t.childNodes[i];i++)v.assignRoleToRow_(s,y.CASES);return t.type=g.CASES,t.appendContentNode(e),zm(t)&&v.binomialForm_(t),t}static rewriteFencedLine_(t){const e=t.childNodes[0],s=t.childNodes[0].childNodes[0],i=t.childNodes[0].childNodes[0].childNodes[0];return s.parent=t.parent,t.parent=s,i.parent=e,s.childNodes=[t],e.childNodes=[i],s}static rowToLine_(t,e){const s=e||y.UNKNOWN;it(t,g.ROW)&&(t.type=g.LINE,t.role=s,t.childNodes.length===1&&it(t.childNodes[0],g.CELL)&&(t.childNodes=t.childNodes[0].childNodes,t.childNodes.forEach(function(i){i.parent=t})))}static assignRoleToRow_(t,e){it(t,g.LINE)?t.role=e:it(t,g.ROW)&&(t.role=e,t.childNodes.forEach(function(s){it(s,g.CELL)&&(s.role=e)}))}static nextSeparatorFunction_(t){let e;if(t){if(t.match(/^\s+$/))return null;e=t.replace(/\s/g,"").split("").filter(function(s){return s})}else e=[","];return function(){return e.length>1?e.shift():e[0]}}static meaningFromContent(t,e){const s=[...t.textContent].filter(n=>n.match(/[^\s]/)),i=s.map(n=>ue.Meaning.get(n));e(t,s,i)}static numberRole_(t,e,s){if(t.role===y.UNKNOWN)return s.every(function(i){return i.type===g.NUMBER&&i.role===y.INTEGER||i.type===g.PUNCTUATION&&i.role===y.COMMA})?(t.role=y.INTEGER,void(e[0]==="0"&&t.addAnnotation("general","basenumber"))):void(s.every(function(i){return i.type===g.NUMBER&&i.role===y.INTEGER||i.type===g.PUNCTUATION})?t.role=y.FLOAT:t.role=y.OTHERNUMBER)}static exprFont_(t){t.font===be.UNKNOWN&&v.compSemantics(t,"font",be)}static compSemantics(t,e,s){const i=[...t.textContent].map(n=>ue.Meaning.get(n)).reduce(function(n,o){return n&&o[e]&&o[e]!==s.UNKNOWN&&o[e]!==n?n===s.UNKNOWN?o[e]:null:n},s.UNKNOWN);i&&(t[e]=i)}static purgeFences_(t){const e=t.rel,s=t.comp,i=[],n=[];for(;e.length>0;){const o=e.shift();let a=s.shift();N2(o)?(i.push(o),n.push(a)):(v.fenceToPunct_(o),a.push(o),a=a.concat(s.shift()),s.unshift(a))}return n.push(s.shift()),{rel:i,comp:n}}static rewriteFencedNode_(t){const e=t.contentNodes[0],s=t.contentNodes[1];let i=v.rewriteFence_(t,e);return t.contentNodes[0]=i.fence,i=v.rewriteFence_(i.node,s),t.contentNodes[1]=i.fence,t.contentNodes[0].parent=t,t.contentNodes[1].parent=t,(function(n){const o=ue.FencesSecondary.get(n.contentNodes[0].textContent),a=ue.FencesSecondary.get(n.contentNodes[1].textContent);o===a&&n.addAnnotation("fences",o)})(t),i.node.parent=null,i.node}static rewriteFence_(t,e){if(!e.embellished)return{node:t,fence:e};const s=e.childNodes[0],i=v.rewriteFence_(t,s);return it(e,g.SUPERSCRIPT)||it(e,g.SUBSCRIPT)||it(e,g.TENSOR)?(Ne(e,y.SUBSUP)||(e.role=t.role),s!==i.node&&(e.replaceChild(s,i.node),s.parent=t),v.propagateFencePointer_(e,s),{node:e,fence:i.fence}):(e.replaceChild(s,i.fence),e.mathmlTree&&e.mathml.indexOf(e.mathmlTree)===-1&&e.addMathmlNodes([e.mathmlTree]),{node:i.node,fence:e})}static propagateFencePointer_(t,e){t.fencePointer=e.fencePointer||e.id.toString(),t.embellished=null}static classifyByColumns_(t,e,s,i=[]){const n=[s].concat(i);return!!(e.length===3&&v.testColumns_(e,1,o=>v.isPureRelation_(o,n))||e.length===2&&(v.testColumns_(e,1,o=>v.isEndRelation_(o,n)||v.isPureRelation_(o,n))||v.testColumns_(e,0,o=>v.isEndRelation_(o,n,!0)||v.isPureRelation_(o,n))))&&(t.role=s,!0)}static isEndRelation_(t,e,s){const i=s?t.childNodes.length-1:0;return it(t,g.RELSEQ)&&e.some(n=>Ne(t,n))&&it(t.childNodes[i],g.EMPTY)}static isPureRelation_(t,e){return it(t,g.RELATION)&&e.some(s=>Ne(t,s))}static computeColumns_(t){const e=[];for(let s,i=0;s=t.childNodes[i];i++)for(let n,o=0;n=s.childNodes[o];o++)e[o]?e[o].push(n):e[o]=[n];return e}static testColumns_(t,e,s){const i=t[e];return!!i&&i.some(function(n){return n.childNodes.length&&s(n.childNodes[0])})&&i.every(function(n){return!n.childNodes.length||s(n.childNodes[0])})}setNodeFactory(t){v.getInstance().factory_=t,Tt.updateFactory(v.getInstance().factory_)}getNodeFactory(){return v.getInstance().factory_}identifierNode(t,e,s){if(s!=="MathML-Unit"||(i=t,[y.DEGREE].includes(i.role)||[].includes(i.type))){if(!e&&t.textContent.length===1&&(t.role===y.INTEGER||t.role===y.LATINLETTER||t.role===y.GREEKLETTER)&&t.font===be.NORMAL)return t.font=be.ITALIC,Tt.run("simpleNamedFunction",t)}else t.type=g.IDENTIFIER,t.role=y.UNIT;var i;return t.type===g.UNKNOWN&&(t.type=g.IDENTIFIER),v.exprFont_(t),Tt.run("simpleNamedFunction",t)}implicitNode(t){if(t=v.getInstance().getMixedNumbers_(t),t=v.getInstance().combineUnits_(t),(t=v.getInstance().combineScripts_(t)).length===1)return t[0];const e=v.getInstance().implicitNode_(t);return Tt.run("combine_juxtaposition",e)}text(t,e){if(v.exprFont_(t),t.type=g.TEXT,e===B.ANNOTATIONXML)return t.role=y.ANNOTATION,t;if(e===B.MS)return t.role=y.STRING,t;
92if(e===B.MSPACE||t.textContent.match(/^\s*$/))return t.role=y.SPACE,t;if(/\s/.exec(t.textContent))return t.role=y.TEXT,t;const s=[...t.textContent];if(s.length!==1)return t.role=y.UNKNOWN,t;const i=ue.Meaning.get(s[0]);return i.type===g.UNKNOWN||i.type===g.IDENTIFIER||(t.type=i.type,t.role=i.role,t.font=i.font,t.addAnnotation("general","text")),t}row(t){return(t=t.filter(function(e){return!it(e,g.EMPTY)||e.hasAnnotation("empty","MFENCED")})).length===0?v.getInstance().factory_.makeEmptyNode():(t=v.getInstance().getFencesInRow_(t),t=v.getInstance().tablesInRow(t),t=v.getInstance().getPunctuationInRow_(t),t=v.getInstance().getTextInRow_(t),t=v.getInstance().getFunctionsInRow_(t),v.getInstance().relationsInRow_(t))}limitNode(t,e){if(!e.length)return v.getInstance().factory_.makeEmptyNode();let s=e[0],{length:i}=v.MML_TO_LIMIT_[t];if(e=e.slice(0,i+1),[t,e]=v.getInstance().cleanLimitNode(t,e,i),!e[1])return s;let{type:n,length:o}=v.MML_TO_LIMIT_[t];if(o===1&&e[1].role===y.DEGREE)return v.getInstance().row([e[0],e[1]]);if(Tt.run("op_with_limits",e),Jm(s)){if(o===1&&so(e[1])||o===2&&so(e[1])&&so(e[2])){let c=v.MML_TO_BOUNDS_[t];return v.getInstance().accentNode_(s,e,c.type,c.length,c.accent)}if(o===2){if(so(e[1]))return s=v.getInstance().accentNode_(s,[s,e[1]],{MSUBSUP:g.SUBSCRIPT,MUNDEROVER:g.UNDERSCORE}[t],1,!0),e[2]?v.getInstance().makeLimitNode_(s,[s,e[2]],null,g.LIMUPPER):s;if(e[2]&&so(e[2]))return s=v.getInstance().accentNode_(s,[s,e[2]],{MSUBSUP:g.SUPERSCRIPT,MUNDEROVER:g.OVERSCORE}[t],1,!0),v.getInstance().makeLimitNode_(s,[s,e[1]],null,g.LIMLOWER);e[o]||(n=g.LIMLOWER)}return v.getInstance().makeLimitNode_(s,e,null,n)}const a=v.MML_TO_BOUNDS_[t];return v.getInstance().accentNode_(s,e,a.type,a.length,a.accent)}cleanLimitNode(t,e,s){const i=a=>(c=>!c||it(c,g.EMPTY))(a)||(c=>c&&it(c,g.TEXT)&&Ne(c,y.SPACE))(a);if(s===1)return i(e[1])?(e[0].noupdate=!0,[t,[Bd([t],e[0])]]):[t,e];const n=e[1],o=e[2];return i(n)&&i(o)?(e[0].noupdate=!0,[t,[Bd([t],e[0])]]):i(n)?[t===B.MSUBSUP?B.MSUP:B.MOVER,[e[0],o]]:i(o)?[t===B.MSUBSUP?B.MSUB:B.MUNDER,[e[0],n]]:[t,e]}tablesInRow(t){let e=oi(t,v2),s=[];for(let i,n=0;i=e.rel[n];n++)s=s.concat(e.comp.shift()),s.push(v.tableToMatrixOrVector_(i));s=s.concat(e.comp.shift()),e=oi(s,qm),s=[];for(let i,n=0;i=e.rel[n];n++){const o=e.comp.shift();T2(0,o)&&v.tableToCases_(i,o.pop()),s=s.concat(o),(s.length||e.comp[0].length)&&(i=v.rewriteTrivialTable(i)),s.push(i)}return s.concat(e.comp.shift())}mfenced(t,e,s,i){if(s&&i.length>0){const n=v.nextSeparatorFunction_(s),o=[i.shift()];i.forEach(a=>{o.push(v.getInstance().factory_.makeContentNode(n())),o.push(a)}),i=o}return t&&e?v.getInstance().horizontalFencedNode_(v.getInstance().factory_.makeContentNode(t),v.getInstance().factory_.makeContentNode(e),i):(t&&i.unshift(v.getInstance().factory_.makeContentNode(t)),e&&i.push(v.getInstance().factory_.makeContentNode(e)),v.getInstance().row(i))}fractionLikeNode(t,e,s,i){let n;if(!i&&(function(o){if(!o)return!1;if(["negativeveryverythinmathspace","negativeverythinmathspace","negativethinmathspace","negativemediummathspace","negativethickmathspace","negativeverythickmathspace","negativeveryverythickmathspace"].includes(o))return!0;const a=o.match(/[0-9.]+/);return!!a&&parseFloat(a[0])===0})(s)){const o=v.getInstance().factory_.makeBranchNode(g.LINE,[t],[]),a=v.getInstance().factory_.makeBranchNode(g.LINE,[e],[]);return n=v.getInstance().factory_.makeBranchNode(g.MULTILINE,[o,a],[]),v.classifyMultiline(n)}return n=v.getInstance().fractionNode_(t,e),i&&n.addAnnotation("general","bevelled"),n}tensor(t,e,s,i,n){const o=v.getInstance().factory_.makeBranchNode(g.TENSOR,[t,v.getInstance().scriptNode_(e,y.LEFTSUB),v.getInstance().scriptNode_(s,y.LEFTSUPER),v.getInstance().scriptNode_(i,y.RIGHTSUB),v.getInstance().scriptNode_(n,y.RIGHTSUPER)],[]);return o.role=t.role,o.embellished=Um(t),o}pseudoTensor(t,e,s){const i=h=>!it(h,g.EMPTY),n=e.filter(i).length,o=s.filter(i).length;if(!n&&!o)return t;const a=n?o?B.MSUBSUP:B.MSUB:B.MSUP,c=[t];return n&&c.push(v.getInstance().scriptNode_(e,y.RIGHTSUB,!0)),o&&c.push(v.getInstance().scriptNode_(s,y.RIGHTSUPER,!0)),v.getInstance().limitNode(a,c)}font(t){return v.MATHJAX_FONTS[t]||t}proof(t,e,s){if(e.inference||e.axiom||console.log("Noise"),e.axiom){const n=v.getInstance().cleanInference(t.childNodes),o=n.length?v.getInstance().factory_.makeBranchNode(g.INFERENCE,s(n),[]):v.getInstance().factory_.makeEmptyNode();return o.role=y.AXIOM,o.mathmlTree=t,o}const i=v.getInstance().inference(t,e,s);return e.proof&&(i.role=y.PROOF,i.childNodes[0].role=y.FINAL),i}inference(t,e,s){if(e.inferenceRule){const h=v.getInstance().getFormulas(t,[],s);return v.getInstance().factory_.makeBranchNode(g.INFERENCE,[h.conclusion,h.premises],[])}const i=e.labelledRule,n=je(t.childNodes),o=[];i!=="left"&&i!=="both"||o.push(v.getInstance().getLabel(t,n,s,y.LEFT)),i!=="right"&&i!=="both"||o.push(v.getInstance().getLabel(t,n,s,y.RIGHT));const a=v.getInstance().getFormulas(t,n,s),c=v.getInstance().factory_.makeBranchNode(g.INFERENCE,[a.conclusion,a.premises],o);return c.mathmlTree=t,c}getLabel(t,e,s,i){const n=v.getInstance().findNestedRow(e,"prooflabel",i),o=v.getInstance().factory_.makeBranchNode(g.RULELABEL,s(je(n.childNodes)),[]);return o.role=i,o.mathmlTree=n,o}getFormulas(t,e,s){const i=e.length?v.getInstance().findNestedRow(e,"inferenceRule"):t,n=v.getSemantics(i).inferenceRule==="up",o=n?i.childNodes[1]:i.childNodes[0],a=n?i.childNodes[0]:i.childNodes[1],c=o.childNodes[0].childNodes[0],h=je(c.childNodes[0].childNodes),u=[];let x=1;for(const Rt of h)x%2&&u.push(Rt.childNodes[0]),x++;const A=s(u),I=s(je(a.childNodes[0].childNodes))[0],q=v.getInstance().factory_.makeBranchNode(g.PREMISES,A,[]);q.mathmlTree=c;const et=v.getInstance().factory_.makeBranchNode(g.CONCLUSION,[I],[]);return et.mathmlTree=a.childNodes[0].childNodes[0],{conclusion:et,premises:q}}findNestedRow(t,e,s){return v.getInstance().findNestedRow_(t,e,0,s)}cleanInference(t){return je(t).filter(function(e){return se(e)!=="MSPACE"})}operatorNode(t){return t.type===g.UNKNOWN&&(t.type=g.OPERATOR),Tt.run("multioperator",t)}static rewriteTrivialTable(t){return it(e=t,g.MULTILINE)&&e.childNodes.length===1&&e.childNodes[0].childNodes.length&&!Xm(e.childNodes[0])?v.getInstance().unwrapTrivialTable(t):t;var e}unwrapTrivialTable(t){if(!t.childNodes[0].childNodes.length)return v.getInstance().factory_.makeEmptyNode();const e=t.childNodes[0].childNodes[0];return e.parent=null,Bd([B.MTD,B.MTR,B.MTABLE],e),e}constructor(){this.funcAppls={}
vendor: 5,653 bytes, line 92
92,this.splitRoles=new Map([[y.SUBTRACTION,y.NEGATIVE],[y.ADDITION,y.POSITIVE]]),this.splitOps=["−","-","‐","‑","+"],this.factory_=new Bm,Tt.updateFactory(this.factory_)}implicitNode_(t){const e=v.getInstance().factory_.makeMultipleContentNodes(t.length-1,mr.invisibleTimes);v.matchSpaces_(t,e);const s=v.getInstance().infixNode_(t,e[0]);return s.role=y.IMPLICIT,e.forEach(function(i){i.parent=s}),s.contentNodes=e,s}infixNode_(t,e){let s=v.getInstance().factory_.makeBranchNode(g.INFIXOP,t,[e],eo(e).textContent);return s.role=e.role,s=Tt.run("propagateInterval",s),Tt.run("propagateSimpleFunction",s)}explicitMixed_(t){const e=oi(t,function(i){return i.textContent===mr.invisiblePlus});if(!e.rel.length)return t;let s=[];for(let i,n=0;i=e.rel[n];n++){const o=e.comp[n],a=e.comp[n+1],c=o.length-1;if(o[c]&&a[0]&&it(o[c],g.NUMBER)&&!Ne(o[c],y.MIXED)&&it(a[0],g.FRACTION)){const h=v.getInstance().factory_.makeBranchNode(g.NUMBER,[o[c],a[0]],[]);h.role=y.MIXED,s=s.concat(o.slice(0,c)),s.push(h),a.shift()}else s=s.concat(o),s.push(i)}return s.concat(e.comp[e.comp.length-1])}concatNode_(t,e,s){if(e.length===0)return t;const i=e.map(function(o){return eo(o).textContent}).join(" "),n=v.getInstance().factory_.makeBranchNode(s,[t],e,i);return e.length>1&&(n.role=y.MULTIOP),Pm(n,[t,...e]),n}multiopNode_(t){const e=v.getInstance().factory_.makeBranchNode(g.OPERATOR,t,[]);return e.role=y.MULTIOP,Pm(e,t),e}prefixNode_(t,e){const s=this.splitSingles(e);let i=t;for(;s.length>0;){const n=s.pop();i=v.getInstance().concatNode_(i,n,g.PREFIXOP),n.length===1&&this.splitOps.indexOf(n[0].textContent)!==-1&&(i.role=this.splitRoles.get(n[0].role))}return i}splitSingles(t){let e=0;const s=[];let i=0;for(;i<t.length;){const n=t[i];!this.splitRoles.has(n.role)||t[i-1]&&t[i-1].role===n.role||t[i+1]&&t[i+1].role===n.role||this.splitOps.indexOf(n.textContent)===-1||(s.push(t.slice(e,i)),s.push(t.slice(i,i+1)),e=i+1),i++}return e<i&&s.push(t.slice(e,i)),s}postfixNode_(t,e){return e.length?v.getInstance().concatNode_(t,e,g.POSTFIXOP):t}combineScripts_(t){const e=oi(t,i=>it(i,g.SUPERSCRIPT)&&it(i.childNodes[0],g.EMPTY)||it(i,g.SUBSCRIPT)&&it(i.childNodes[0],g.EMPTY));if(!e.rel.length)return t;let s=[];do{const i=e.comp.shift(),n=e.rel.shift();if(!i.length){s.push(n);continue}const o=i.pop();it(o,g.NUMBER)||it(o,g.IDENTIFIER)?(n.childNodes[0]=o,o.parent=n,n.role=o.type.toLowerCase(),n.addAnnotation("collapsed",o.type.toLowerCase()),s=s.concat(i),s.push(n)):it(o,g.SUBSCRIPT)&&it(n,g.SUPERSCRIPT)?(n.childNodes[0]=o,o.parent=n,n.role=o.type.toLowerCase(),n.addAnnotation("collapsed",o.type.toLowerCase()),o.role=y.SUBSUP,s=s.concat(i),s.push(n)):(s=s.concat(i),s.push(o),s.push(n))}while(e.rel.length);return s=s.concat(e.comp.pop()),s}combineUnits_(t){const e=oi(t,function(o){return!Ne(o,y.UNIT)});if(t.length===e.rel.length)return e.rel;const s=[];let i,n;do{const o=e.comp.shift();i=e.rel.shift();let a=null;n=s.pop(),n&&(o.length&&$m(n)?o.unshift(n):s.push(n)),o.length===1&&(a=o.pop()),o.length>1&&(a=v.getInstance().implicitNode_(o),a.role=y.UNIT),a&&s.push(a),i&&s.push(i)}while(i);return s}getMixedNumbers_(t){const e=oi(t,function(i){return it(i,g.FRACTION)&&Ne(i,y.VULGAR)});if(!e.rel.length)return t;let s=[];for(let i,n=0;i=e.rel[n];n++){const o=e.comp[n],a=o.length-1;if(o[a]&&it(o[a],g.NUMBER)&&(Ne(o[a],y.INTEGER)||Ne(o[a],y.FLOAT))){const c=v.getInstance().factory_.makeBranchNode(g.NUMBER,[o[a],i],[]);c.role=y.MIXED,s=s.concat(o.slice(0,a)),s.push(c)}else s=s.concat(o),s.push(i)}return s.concat(e.comp[e.comp.length-1])}getTextInRow_(t){if(t.length===0)return t;if(t.length===1)return t[0].type===g.TEXT&&t[0].role===y.UNKNOWN&&(t[0].role=y.ANNOTATION),t;const{rel:e,comp:s}=oi(t,o=>it(o,g.TEXT)&&!o.annotation.factor);if(e.length===0)return t;const i=[];let n=s.shift();for(;e.length>0;){let o=e.shift(),a=s.shift();const c=[];for(;!a.length&&e.length&&o.role!==y.SPACE&&e[0].role!==y.SPACE;)c.push(o),o=e.shift(),a=s.shift();if(c.length&&(c.push(o),o=v.getInstance().dummyNode_(c)),o.role!==y.UNKNOWN){const x=t1(n,o,a);if(x){n=x;continue}n.length&&i.push(v.getInstance().row(n)),i.push(o),n=a;continue}const h=ue.Meaning.get(o.textContent);if(h.type!==g.UNKNOWN){o.type=h.type,o.role=h.role,o.font=h.font,o.addAnnotation("general","text"),n.push(o),n=n.concat(a);continue}if(v.meaningFromContent(o,(x,A,I)=>{if(x.role===y.UNKNOWN){if(v.numberRole_(x,A,I),x.role===y.OTHERNUMBER)return I.some(q=>q.type!==g.NUMBER&&q.type!==g.IDENTIFIER)?(x.type=g.TEXT,void(x.role=y.ANNOTATION)):void(x.role=y.UNKNOWN);x.type=g.NUMBER}}),o.role===y.UNKNOWN&&(e.length||a.length?a.length&&a[0].type===g.FENCED?(o.type=g.FUNCTION,o.role=y.PREFIXFUNC):o.role=y.TEXT:(o.type=g.IDENTIFIER,o.role=y.UNIT)),o.type!==g.TEXT){n.push(o),n=n.concat(a);continue}const u=t1(n,o,a);u?n=u:(n.length&&i.push(v.getInstance().row(n)),i.push(o),n=a)}return n.length>0&&i.push(v.getInstance().row(n)),i.length>1?[v.getInstance().dummyNode_(i)]:i}relationsInRow_(t){const e=oi(t,Hm),s=e.rel[0];if(!s)return v.getInstance().operationsInRow_(t);if(t.length===1)return t[0];const i=e.comp.map(v.getInstance().operationsInRow_);let n;return e.rel.some(function(o){return!o.equals(s)})?(n=v.getInstance().factory_.makeBranchNode(g.MULTIREL,i,e.rel),e.rel.every(function(o){return o.role===s.role})&&(n.role=s.role),n):(n=v.getInstance().factory_.makeBranchNode(g.RELSEQ,i,e.rel,eo(s).textContent),n.role=s.role,n)}operationsInRow_(t){if(t.length===0)return v.getInstance().factory_.makeEmptyNode();if((t=v.getInstance().explicitMixed_(t)).length===1)return t[0];const e=[];for(;t.length>0&&mn(t[0]);)e.push(t.shift());if(t.length===0)return v.getInstance().multiopNode_(e);
92if(t.length===1)return v.getInstance().prefixNode_(t[0],e);const s=fr(t=Tt.run("convert_juxtaposition",t),mn),i=v.getInstance().wrapFactor(e,s);return v.getInstance().addFactor(i,s)}wrapPostfix(t){var e;((e=t.div)===null||e===void 0?void 0:e.role)===y.POSTFIXOP&&(t.tail.length&&t.tail[0].type!==g.OPERATOR?t.div.role=y.DIVISION:(t.head=[v.getInstance().postfixNode_(v.getInstance().implicitNode(t.head),[t.div])],t.div=t.tail.shift(),v.getInstance().wrapPostfix(t)))}wrapFactor(t,e){return v.getInstance().wrapPostfix(e),v.getInstance().prefixNode_(v.getInstance().implicitNode(e.head),t)}addFactor(t,e){return e.div?v.getInstance().operationsTree_(e.tail,t,e.div):(Gm(t)&&(t.role=y.UNIT),t)}operationsTree_(t,e,s,i=[]){if(t.length===0){if(i.unshift(s),e.type===g.INFIXOP){const c=v.getInstance().postfixNode_(e.childNodes.pop(),i);return e.appendChild(c),e}return v.getInstance().postfixNode_(e,i)}const n=fr(t,mn);if(n.head.length===0)return i.push(n.div),v.getInstance().operationsTree_(n.tail,e,s,i);const o=v.getInstance().wrapFactor(i,n),a=v.getInstance().appendOperand_(e,s,o);return v.getInstance().addFactor(a,n)}appendOperand_(t,e,s){return t.type!==g.INFIXOP?v.getInstance().infixNode_([t,s],e):v.getInstance().appendDivisionOp_(t,e,s)||(v.getInstance().appendExistingOperator_(t,e,s)?t:e.role===y.MULTIPLICATION?v.getInstance().appendMultiplicativeOp_(t,e,s):v.getInstance().appendAdditiveOp_(t,e,s))}appendDivisionOp_(t,e,s){return e.role===y.DIVISION?fn(t)?v.getInstance().infixNode_([t,s],e):v.getInstance().appendLastOperand_(t,e,s):t.role===y.DIVISION?v.getInstance().infixNode_([t,s],e):null}appendLastOperand_(t,e,s){let i=t,n=t.childNodes[t.childNodes.length-1];for(;n&&n.type===g.INFIXOP&&!fn(n);)i=n,n=i.childNodes[t.childNodes.length-1];const o=v.getInstance().infixNode_([i.childNodes.pop(),s],e);return i.appendChild(o),t}appendMultiplicativeOp_(t,e,s){if(fn(t))return v.getInstance().infixNode_([t,s],e);let i=t,n=t.childNodes[t.childNodes.length-1];for(;n&&n.type===g.INFIXOP&&!fn(n);)i=n,n=i.childNodes[t.childNodes.length-1];const o=v.getInstance().infixNode_([i.childNodes.pop(),s],e);return i.appendChild(o),t}appendAdditiveOp_(t,e,s){return v.getInstance().infixNode_([t,s],e)}appendExistingOperator_(t,e,s){return!(!t||t.type!==g.INFIXOP||fn(t))&&(t.contentNodes[0].equals(e)?(t.appendContentNode(e),t.appendChild(s),!0):v.getInstance().appendExistingOperator_(t.childNodes[t.childNodes.length-1],e,s))}getFencesInRow_(t){let e=oi(t,_m);e=v.purgeFences_(e);const s=e.comp.shift();return v.getInstance().fences_(e.rel,e.comp,[],[s])}fences_(t,e,s,i){if(t.length===0&&s.length===0)return i[0];const n=Tt.run("bracketed_interval",[t[0],t[1],...e[0]||[]],()=>null);if(n){t.shift(),t.shift(),e.shift();const u=i.pop()||[];return i.push([...u,n,...e.shift()]),v.getInstance().fences_(t,e,s,i)}const o=u=>Ne(u,y.OPEN);if(t.length===0){const u=i.shift();for(;s.length>0;){if(o(s[0])){const x=s.shift();v.fenceToPunct_(x),u.push(x)}else{const x=fr(s,o),A=x.head.length-1,I=v.getInstance().neutralFences_(x.head,i.slice(0,A));i=i.slice(A),u.push(...I),x.div&&x.tail.unshift(x.div),s=x.tail}u.push(...i.shift())}return u}const a=s[s.length-1],c=t[0].role;if(c===y.OPEN||Zi(t[0])&&(!a||!Pd(t[0],a))){s.push(t.shift());const u=e.shift();return u&&i.push(u),v.getInstance().fences_(t,e,s,i)}if(a&&c===y.CLOSE&&a.role===y.OPEN){const u=v.getInstance().horizontalFencedNode_(s.pop(),t.shift(),i.pop());return i.push(i.pop().concat([u],e.shift())),v.getInstance().fences_(t,e,s,i)}if(a&&Pd(t[0],a)){if(!Ym(a)||!Qm(t[0])){s.push(t.shift());const x=e.shift();return x&&i.push(x),v.getInstance().fences_(t,e,s,i)}const u=v.getInstance().horizontalFencedNode_(s.pop(),t.shift(),i.pop());return i.push(i.pop().concat([u],e.shift())),v.getInstance().fences_(t,e,s,i)}if(a&&c===y.CLOSE&&Zi(a)&&s.some(o)){const u=fr(s,o,!0),x=i.pop(),A=i.length-u.tail.length+1,I=v.getInstance().neutralFences_(u.tail,i.slice(A));i=i.slice(0,A);const q=v.getInstance().horizontalFencedNode_(u.div,t.shift(),i.pop().concat(I,x));return i.push(i.pop().concat([q],e.shift())),v.getInstance().fences_(t,e,u.head,i)}const h=t.shift();return v.fenceToPunct_(h),i.push(i.pop().concat([h],e.shift())),v.getInstance().fences_(t,e,s,i)}neutralFences_(t,e){if(t.length===0)return t;if(t.length===1)return v.fenceToPunct_(t[0]),t;const s=t.shift();if(!Ym(s)){v.fenceToPunct_(s);const o=e.shift();return o.unshift(s),o.concat(v.getInstance().neutralFences_(t,e))}const i=fr(t,function(o){return Pd(o,s)});if(!i.div){v.fenceToPunct_(s);const o=e.shift();return o.unshift(s),o.concat(v.getInstance().neutralFences_(t,e))}if(!Qm(i.div))return v.fenceToPunct_(i.div),t.unshift(s),v.getInstance().neutralFences_(t,e);const n=v.getInstance().combineFencedContent_(s,i.div,i.head,e);if(i.tail.length>0){const o=n.shift(),a=v.getInstance().neutralFences_(i.tail,n);return o.concat(a)}return n[0]}combineFencedContent_(t,e,s,i){if(s.length===0){const x=v.getInstance().horizontalFencedNode_(t,e,i.shift());return i.length>0?i[0].unshift(x):i=[[x]],i}const n=i.shift(),o=s.length-1,a=i.slice(0,o),c=(i=i.slice(o)).shift(),h=v.getInstance().neutralFences_(s,a);n.push(...h),n.push(...c);const u=v.getInstance().horizontalFencedNode_(t,e,n);return i.length>0?i[0].unshift(u):i=[[u]],i}horizontalFencedNode_(t,e,s){const i=v.getInstance().row(s);it(i,g.EMPTY)&&!i.mathmlTree&&t.mathmlTree&&t.mathmlTree.nextSibling!==e.mathmlTree&&(i.mathmlTree=t.mathmlTree.nextSibling,i.addMathmlNodes([t.mathmlTree.nextSibling]));let n=v.getInstance().factory_.makeBranchNode(g.FENCED,[i],[t,e]);return t.role===y.OPEN?(v.getInstance().classifyHorizontalFence_(n),n=Tt.run("propagateComposedFunction",n)):n.role=t.role,n=Tt.run("detect_cycle",n),v.rewriteFencedNode_(n)}classifyHorizontalFence_(t){if(Tt.run("interval_heuristic",t),t.role===y.INTERVAL)return;t.role=y.LEFTRIGHT;const e=t.childNodes;if(!(function(n){return(function(o){return!!o&&["{","﹛","{"].indexOf(o.textContent)!==-1})(n.contentNodes[0])&&(function(o){return!!o&&["}","﹜","}"].indexOf(o.textContent)!==-1})(n.contentNodes[1])})(t)||e.length>1)return;if(e.length===0||e[0].type===g.EMPTY)return void(t.role=y.SETEMPTY);const s=e[0].type;if(e.length===1&&Od(e[0]))return void(t.role=y.SETSINGLE);const i=e[0].role;if(s===g.PUNCTUATED&&i===y.SEQUENCE){if(e[0].contentNodes[0].role!==y.COMMA)return e[0].contentNodes.length!==1||e[0].contentNodes[0].role!==y.VBAR&&e[0].contentNodes[0].role!==y.COLON?void 0:(t.role=y.SETEXT,void v.getInstance().setExtension_(t));t.role=y.SETCOLLECT}}setExtension_(t){const e=t.childNodes[0].childNodes[0];e&&e.type===g.INFIXOP&&e.contentNodes.length===1&&Zm(e.contentNodes[0])&&(e.addAnnotation("set","intensional"),e.contentNodes[0].addAnnotation("set","intensional"))}getPunctuationInRow_(t){if(t.length<=1)return t;const e=a=>{const c=a.type;return c==="punctuation"||c==="text"||c==="operator"||c==="relation"}
92,s=oi(t,function(a){if(!Al(a))return!1;if(Al(a)&&!Ne(a,y.ELLIPSIS))return!0;const c=t.indexOf(a);if(c===0)return!t[1]||!e(t[1]);const h=t[c-1];if(c===t.length-1)return!e(h);const u=t[c+1];return!e(h)||!e(u)});if(s.rel.length===0)return t;let i=[],n=s.comp.shift();n.length>0&&i.push(v.getInstance().row(n));let o=0;for(;s.comp.length>0;){let a=[];const c=o;do a.push(s.rel[o++]),n=s.comp.shift();while(s.rel[o]&&n&&n.length===0);a=Tt.run("ellipses",a),s.rel.splice(c,o-c,...a),o=c+a.length,i=i.concat(a),n&&n.length>0&&i.push(v.getInstance().row(n))}return i.length===1&&s.rel.length===1?i:[v.getInstance().punctuatedNode_(i,s.rel)]}punctuatedNode_(t,e){const s=v.getInstance().factory_.makeBranchNode(g.PUNCTUATED,t,e);if(e.length===t.length){const n=e[0].role;if(n!==y.UNKNOWN&&e.every(function(o){return o.role===n}))return s.role=n,s}const i=e[0];return Km(t,e,0)?s.role=i.childNodes.length&&!i.embellished?i.role:y.STARTPUNCT:Km(t,e,t.length-1)?s.role=i.childNodes.length&&!i.embellished?i.role:y.ENDPUNCT:e.every(n=>Ne(n,y.DUMMY))?s.role=y.TEXT:e.every(n=>Ne(n,y.SPACE))?s.role=y.SPACE:s.role=y.SEQUENCE,s}dummyNode_(t){const e=v.getInstance().factory_.makeMultipleContentNodes(t.length-1,mr.invisibleComma);return e.forEach(function(s){s.role=y.DUMMY}),v.getInstance().punctuatedNode_(t,e)}accentRole_(t,e){if(!so(t))return!1;const s=t.textContent,i=ue.Secondary.get(s,os.BAR)||ue.Secondary.get(s,os.TILDE)||t.role;return t.role=e===g.UNDERSCORE?y.UNDERACCENT:y.OVERACCENT,t.addAnnotation("accent",i),!0}accentNode_(t,e,s,i,n){const o=(e=e.slice(0,i+1))[1],a=e[2];let c;if(!n&&a&&(c=v.getInstance().factory_.makeBranchNode(g.SUBSCRIPT,[t,o],[]),c.role=y.SUBSUP,e=[c,a],s=g.SUPERSCRIPT),n){const h=v.getInstance().accentRole_(o,s);a&&(v.getInstance().accentRole_(a,g.OVERSCORE)&&!h?(c=v.getInstance().factory_.makeBranchNode(g.OVERSCORE,[t,a],[]),e=[c,o],s=g.UNDERSCORE):(c=v.getInstance().factory_.makeBranchNode(g.UNDERSCORE,[t,o],[]),e=[c,a],s=g.OVERSCORE),c.role=y.UNDEROVER)}return v.getInstance().makeLimitNode_(t,e,c,s)}makeLimitNode_(t,e,s,i){if(i===g.LIMUPPER&&t.type===g.LIMLOWER)return t.childNodes.push(e[1]),e[1].parent=t,t.type=g.LIMBOTH,t;if(i===g.LIMLOWER&&t.type===g.LIMUPPER)return t.childNodes.splice(1,-1,e[1]),e[1].parent=t,t.type=g.LIMBOTH,t;const n=v.getInstance().factory_.makeBranchNode(i,e,[]),o=Um(t);return s&&(s.embellished=o),n.embellished=o,n.role=t.role,n}getFunctionsInRow_(t,e){const s=e||[];if(t.length===0)return s;const i=t.shift(),n=v.classifyFunction_(i,t);if(!n)return s.push(i),v.getInstance().getFunctionsInRow_(t,s);const o=v.getInstance().getFunctionsInRow_(t,[]),a=v.getInstance().getFunctionArgs_(i,o,n);return s.concat(a)}getFunctionArgs_(t,e,s){let i,n,o;switch(s){case"integral":{const a=v.getInstance().getIntegralArgs_(e);if(!a.intvar&&!a.integrand.length)return a.rest.unshift(t),a.rest;const c=v.getInstance().row(a.integrand);return o=v.getInstance().integralNode_(t,c,a.intvar),Tt.run("intvar_from_fraction",o),a.rest.unshift(o),a.rest}case"prefix":if(e[0]&&e[0].type===g.FENCED){const a=e.shift();return Zi(a)||(a.role=y.LEFTRIGHT),o=v.getInstance().functionNode_(t,a),e.unshift(o),e}if(i=fr(e,y2),i.head.length)n=v.getInstance().row(i.head),i.div&&i.tail.unshift(i.div);else{if(!i.div||!it(i.div,g.APPL))return e.unshift(t),e;n=i.div}return o=v.getInstance().functionNode_(t,n),i.tail.unshift(o),i.tail;case"bigop":return i=fr(e,Fm),i.head.length?(n=v.getInstance().row(i.head),o=v.getInstance().bigOpNode_(t,n),i.div&&i.tail.unshift(i.div),i.tail.unshift(o),i.tail):(e.unshift(t),e);default:{if(e.length===0)return[t];const a=e[0];return a.type===g.FENCED&&!Zi(a)&&(function(c){const h=c.childNodes;if(h.length===0)return!0;if(h.length>1)return!1;const u=h[0];return!(u.type===g.INFIXOP&&(u.role!==y.IMPLICIT||u.childNodes.some(x=>it(x,g.INFIXOP))))})(a)?(a.role=y.LEFTRIGHT,v.propagateFunctionRole_(t,y.SIMPLEFUNC),o=v.getInstance().functionNode_(t,e.shift()),e.unshift(o),e):(e.unshift(t),e)}}}getIntegralArgs_(t,e=[]){if(t.length===0){const i=fr(e,Fm);return i.div&&i.tail.unshift(i.div),{integrand:i.head,intvar:null,rest:i.tail}}Tt.run("intvar_from_implicit",t);const s=t[0];if(kd(s)){const{integrand:i,rest:n}=v.getInstance().getIntegralArgs_(e);return{integrand:i,intvar:null,rest:n.concat(t)}}
vendor: 7,982 bytes, line 92
92if(wd(s))return s.role=y.INTEGRAL,{integrand:e,intvar:s,rest:t.slice(1)};if(t[1]&&jm(s,t[1])){const i=v.getInstance().prefixNode_(t[1],[s]);return i.role=y.INTEGRAL,{integrand:e,intvar:i,rest:t.slice(2)}}return e.push(t.shift()),v.getInstance().getIntegralArgs_(t,e)}functionNode_(t,e){const s=v.getInstance().factory_.makeContentNode(mr.functionApplication),i=v.getInstance().funcAppls[t.id];i&&(s.mathmlTree=i.mathmlTree,s.addMathmlNodes(i.mathml),s.annotation=i.annotation,s.attributes=i.attributes,delete v.getInstance().funcAppls[t.id]),s.type=g.PUNCTUATION,s.role=y.APPLICATION;const n=v.getFunctionOp_(t,function(o){return it(o,g.FUNCTION)||it(o,g.IDENTIFIER)&&Ne(o,y.SIMPLEFUNC)});return v.getInstance().functionalNode_(g.APPL,[t,e],n,[s])}bigOpNode_(t,e){const s=v.getFunctionOp_(t,i=>it(i,g.LARGEOP));return v.getInstance().functionalNode_(g.BIGOP,[t,e],s,[])}integralNode_(t,e,s){e=e||v.getInstance().factory_.makeEmptyNode(),s=s||v.getInstance().factory_.makeEmptyNode();const i=v.getFunctionOp_(t,n=>it(n,g.LARGEOP));return v.getInstance().functionalNode_(g.INTEGRAL,[t,e,s],i,[])}functionalNode_(t,e,s,i){const n=e[0];let o;s&&(o=s.parent,i.push(s));const a=v.getInstance().factory_.makeBranchNode(t,e,i);return a.role=n.role,o&&(s.parent=o),a}fractionNode_(t,e){const s=v.getInstance().factory_.makeBranchNode(g.FRACTION,[t,e],[]);return s.role=s.childNodes.every(function(i){return it(i,g.NUMBER)&&Ne(i,y.INTEGER)})?y.VULGAR:s.childNodes.every(Dd)?y.UNIT:y.DIVISION,Tt.run("propagateSimpleFunction",s)}scriptNode_(t,e,s){let i;switch(t.length){case 0:i=v.getInstance().factory_.makeEmptyNode();break;case 1:if(i=t[0],s)return i;break;default:i=v.getInstance().dummyNode_(t),i.addAnnotation("general","script")}return i.role=e,i}findNestedRow_(t,e,s,i){if(s>3)return null;for(let n,o=0;n=t[o];o++){const a=se(n);if(a!==B.MSPACE){if(a===B.MROW)return v.getInstance().findNestedRow_(je(n.childNodes),e,s+1,i);if(v.findSemantics(n,e,i))return n}}return null}}function t1(r,t,e){const s=r[r.length-1];if(s&&(s.type===g.RELATION||s.type===g.OPERATOR))return t.addAnnotation("factor",s.type),[...r,t,...e];const i=e[0];return!i||i.type!==g.RELATION&&i.type!==g.OPERATOR?null:(t.addAnnotation("factor",i.type),[...r,t,...e])}function Bd(r,t){return r.forEach(e=>t.addAnnotation("empty",e)),t}v.FENCE_TO_PUNCT_={[y.METRIC]:y.METRIC,[y.NEUTRAL]:y.VBAR,[y.OPEN]:y.OPENFENCE,[y.CLOSE]:y.CLOSEFENCE},v.MML_TO_LIMIT_={[B.MSUB]:{type:g.LIMLOWER,length:1},[B.MUNDER]:{type:g.LIMLOWER,length:1},[B.MSUP]:{type:g.LIMUPPER,length:1},[B.MOVER]:{type:g.LIMUPPER,length:1},[B.MSUBSUP]:{type:g.LIMBOTH,length:2},[B.MUNDEROVER]:{type:g.LIMBOTH,length:2}},v.MML_TO_BOUNDS_={[B.MSUB]:{type:g.SUBSCRIPT,length:1,accent:!1},[B.MSUP]:{type:g.SUPERSCRIPT,length:1,accent:!1},[B.MSUBSUP]:{type:g.SUBSCRIPT,length:2,accent:!1},[B.MUNDER]:{type:g.UNDERSCORE,length:1,accent:!0},[B.MOVER]:{type:g.OVERSCORE,length:1,accent:!0},[B.MUNDEROVER]:{type:g.UNDERSCORE,length:2,accent:!0}},v.CLASSIFY_FUNCTION_={[y.INTEGRAL]:"integral",[y.SUM]:"bigop",[y.PREFIXFUNC]:"prefix",[y.LIMFUNC]:"prefix",[y.SIMPLEFUNC]:"prefix",[y.COMPFUNC]:"prefix"},v.MATHJAX_FONTS={"-tex-caligraphic":be.CALIGRAPHIC,"-tex-caligraphic-bold":be.CALIGRAPHICBOLD,"-tex-calligraphic":be.CALIGRAPHIC,"-tex-calligraphic-bold":be.CALIGRAPHICBOLD,"-tex-oldstyle":be.OLDSTYLE,"-tex-oldstyle-bold":be.OLDSTYLEBOLD,"-tex-mathit":be.ITALIC};class io extends x2{static getAttribute_(t,e,s){if(!t.hasAttribute(e))return s;const i=t.getAttribute(e);return i.match(/^\s*$/)?null:i}constructor(t){super("MathML"),this.options=t,Tt.options=t,this.parseMap_=new Map([[B.SEMANTICS,this.semantics_.bind(this)],[B.MATH,this.rows_.bind(this)],[B.MROW,this.rows_.bind(this)],[B.MPADDED,this.rows_.bind(this)],[B.MSTYLE,this.rows_.bind(this)],[B.MFRAC,this.fraction_.bind(this)],[B.MSUB,this.limits_.bind(this)],[B.MSUP,this.limits_.bind(this)],[B.MSUBSUP,this.limits_.bind(this)],[B.MOVER,this.limits_.bind(this)],[B.MUNDER,this.limits_.bind(this)],[B.MUNDEROVER,this.limits_.bind(this)],[B.MROOT,this.root_.bind(this)],[B.MSQRT,this.sqrt_.bind(this)],[B.MTABLE,this.table_.bind(this)],[B.MLABELEDTR,this.tableLabeledRow_.bind(this)],[B.MTR,this.tableRow_.bind(this)],[B.MTD,this.tableCell_.bind(this)],[B.MS,this.text_.bind(this)],[B.MTEXT,this.text_.bind(this)],[B.MSPACE,this.space_.bind(this)],[B.ANNOTATIONXML,this.text_.bind(this)],[B.MI,this.identifier_.bind(this)],[B.MN,this.number_.bind(this)],[B.MO,this.operator_.bind(this)],[B.MFENCED,this.fenced_.bind(this)],[B.MENCLOSE,this.enclosed_.bind(this)],[B.MMULTISCRIPTS,this.multiscripts_.bind(this)],[B.ANNOTATION,this.empty_.bind(this)],[B.NONE,this.empty_.bind(this)],[B.MACTION,this.action_.bind(this)],[B.MPHANTOM,this.phantom_.bind(this)]]);const e={type:g.IDENTIFIER,role:y.NUMBERSET,font:be.DOUBLESTRUCK};["C","H","N","P","Q","R","Z","ℂ","ℍ","ℕ","ℙ","ℚ","ℝ","ℤ"].forEach((s=>this.getFactory().defaultMap.set(s,e)).bind(this))}parse(t){v.getInstance().setNodeFactory(this.getFactory());const e=je(t.childNodes),s=se(t),i=this.parseMap_.get(s),n=(i||this.dummy_.bind(this))(t,e);return n.noupdate||(Id(n,t),[B.MATH,B.MROW,B.MPADDED,B.MSTYLE,B.SEMANTICS,B.MACTION].indexOf(s)!==-1||(n.mathml.unshift(t),n.mathmlTree=t)),n}semantics_(t,e){return e.length?this.parse(e[0]):this.getFactory().makeEmptyNode()}rows_(t,e){const s=t.getAttribute("semantics");if(s&&s.match("bspr_"))return v.proof(t,s,this.parseList.bind(this));let i;if((e=to(e)).length===1)i=this.parse(e[0]),i.type!==g.EMPTY||i.mathmlTree||(i.mathmlTree=t);else{const n=Tt.run("function_from_identifiers",t);i=n&&n!==t?n:v.getInstance().row(this.parseList(e))}return i.mathml.unshift(t),i}fraction_(t,e){if(!e.length)return this.getFactory().makeEmptyNode();const s=this.parse(e[0]),i=e[1]?this.parse(e[1]):this.getFactory().makeEmptyNode();return v.getInstance().fractionLikeNode(s,i,t.getAttribute("linethickness"),t.getAttribute("bevelled")==="true")}limits_(t,e){return v.getInstance().limitNode(se(t),this.parseList(e))}root_(t,e){return e[1]?this.getFactory().makeBranchNode(g.ROOT,[this.parse(e[1]),this.parse(e[0])],[]):this.sqrt_(t,e)}sqrt_(t,e){const s=this.parseList(to(e));return this.getFactory().makeBranchNode(g.SQRT,[v.getInstance().row(s)],[])}table_(t,e){const s=t.getAttribute("semantics");if(s&&s.match("bspr_"))return v.proof(t,s,this.parseList.bind(this));const i=this.getFactory().makeBranchNode(g.TABLE,this.parseList(e),[]);return i.mathmlTree=t,v.tableToMultiline(i)}tableRow_(t,e){const s=this.getFactory().makeBranchNode(g.ROW,this.parseList(e),[]);return s.role=y.TABLE,s}tableLabeledRow_(t,e){var s;if(!e.length)return this.tableRow_(t,e);const i=this.parse(e[0]);i.role=y.LABEL,((s=i.childNodes[0])===null||s===void 0?void 0:s.type)===g.TEXT&&(i.childNodes[0].role=y.LABEL);const n=this.getFactory().makeBranchNode(g.ROW,this.parseList(e.slice(1)),[i]);return n.role=y.TABLE,n}tableCell_(t,e){const s=this.parseList(to(e));let i;i=s.length?s.length===1&&it(s[0],g.EMPTY)?s:[v.getInstance().row(s)]:[];const n=this.getFactory().makeBranchNode(g.CELL,i,[]);return n.role=y.TABLE,n}phantom_(t,e){let s;return e.length?(s=this.getFactory().makeUnprocessed(t),s.type=g.TEXT,s.role=y.SPACE):s=this.empty_(t,e),s}space_(t,e){const s=t.getAttribute("width"),i=s&&s.match(/[a-z]*$/);if(!i)return this.empty_(t,e);const n=i[0],o=parseFloat(s.slice(0,i.index)),a={cm:.4,pc:.5,em:.5,ex:1,in:.15,pt:5,mm:5}[n];if(!a||isNaN(o)||o<a)return this.empty_(t,e);const c=this.getFactory().makeUnprocessed(t);return v.getInstance().text(c,se(t))}text_(t,e){const s=this.leaf_(t,e);return t.textContent?(s.updateContent(t.textContent,!0),v.getInstance().text(s,se(t))):s}identifier_(t,e){const s=this.leaf_(t,e);return v.getInstance().identifierNode(s,v.getInstance().font(t.getAttribute("mathvariant")),t.getAttribute("class"))}number_(t,e){const s=this.leaf_(t,e);return v.number(s),s}operator_(t,e){const s=this.leaf_(t,e);return v.getInstance().operatorNode(s),s}fenced_(t,e){const s=this.parseList(e);
vendor: 2,910 bytes, line 92
92s.forEach(c=>{it(c,g.EMPTY)&&c.addAnnotation("empty","MFENCED")});const i=io.getAttribute_(t,"separators",","),n=io.getAttribute_(t,"open","("),o=io.getAttribute_(t,"close",")"),a=v.getInstance().mfenced(n,o,i,s);return a.mathmlTree=t,a.addMathmlNodes([t]),v.getInstance().tablesInRow([a])[0]}enclosed_(t,e){const s=this.parseList(to(e)),i=this.getFactory().makeBranchNode(g.ENCLOSE,[v.getInstance().row(s)],[]);return i.role=t.getAttribute("notation")||y.UNKNOWN,i}multiscripts_(t,e){if(!e.length)return this.getFactory().makeEmptyNode();const s=this.parse(e.shift());if(!e.length)return s;const i=[],n=[],o=[],a=[];let c=!1,h=0;for(let u,x=0;u=e[x];x++)se(u)!==B.MPRESCRIPTS?(c?1&h?i.push(u):n.push(u):1&h?o.push(u):a.push(u),h++):(c=!0,h=0);return to(i).length||to(n).length?v.getInstance().tensor(s,this.parseList(n),this.parseList(i),this.parseList(a),this.parseList(o)):v.getInstance().pseudoTensor(s,this.parseList(a),this.parseList(o))}empty_(t,e){const s=this.getFactory().makeEmptyNode();return s.addMathmlNodes([t]),s.mathmlTree=t,s}action_(t,e){const s=e[t.hasAttribute("selection")?parseInt(t.getAttribute("selection"),10)-1:0],i=this.parse(s);return i.mathmlTree=s,i}dummy_(t,e){const s=this.getFactory().makeUnprocessed(t);return s.role=t.tagName,s.textContent=t.textContent,s}leaf_(t,e){if(e.length===1&&e[0].nodeType!==Or.TEXT_NODE){const i=this.getFactory().makeUnprocessed(t);return i.role=e[0].tagName,Id(i,e[0]),i}const s=this.getFactory().makeLeafNode(t.textContent,v.getInstance().font(t.getAttribute("mathvariant")));return t.hasAttribute("data-latex")&&ue.LatexCommands.set(t.getAttribute("data-latex"),t.textContent),s}}class Fd{constructor(t,e,s=i=>!1){this.name=t,this.apply=e,this.applicable=s}}class Oi extends Fd{}class xa extends Fd{}function e1(r,t){const e=[];for(;r.length||t.length;)r.length&&e.push(r.shift()),t.length&&e.push(t.shift());return e}const s1="data-semantic-";var mt;(function(r){r.ADDED="data-semantic-added",r.ALTERNATIVE="data-semantic-alternative",r.CHILDREN="data-semantic-children",r.COLLAPSED="data-semantic-collapsed",r.CONTENT="data-semantic-content",r.EMBELLISHED="data-semantic-embellished",r.FENCEPOINTER="data-semantic-fencepointer",r.FONT="data-semantic-font",r.ID="data-semantic-id",r.ANNOTATION="data-semantic-annotation",r.ATTRIBUTES="data-semantic-attributes",r.OPERATOR="data-semantic-operator",r.OWNS="data-semantic-owns",r.PARENT="data-semantic-parent",r.POSTFIX="data-semantic-postfix",r.PREFIX="data-semantic-prefix",r.ROLE="data-semantic-role",r.SPEECH="data-semantic-speech",r.STRUCTURE="data-semantic-structure",r.SUMMARY="data-semantic-summary",r.TYPE="data-semantic-type"})(mt||(mt={}));const S2=[mt.ADDED,mt.ALTERNATIVE,mt.CHILDREN,mt.COLLAPSED,mt.CONTENT,mt.EMBELLISHED,mt.FENCEPOINTER,mt.FONT,mt.ID,mt.ANNOTATION,mt.ATTRIBUTES,mt.OPERATOR,mt.OWNS,mt.PARENT,mt.POSTFIX,mt.PREFIX,mt.ROLE,mt.SPEECH,mt.STRUCTURE,mt.SUMMARY,mt.TYPE];
92function jd(r){return r.map(function(t){return t.id}).join(",")}function as(r,t){r.setAttribute(mt.TYPE,t.type);const e=t.allAttributes();for(let i,n=0;i=e[n];n++)r.setAttribute(s1+i[0].toLowerCase(),i[1]);t.childNodes.length&&r.setAttribute(mt.CHILDREN,jd(t.childNodes)),t.contentNodes.length&&r.setAttribute(mt.CONTENT,jd(t.contentNodes)),t.parent&&r.setAttribute(mt.PARENT,t.parent.id.toString());const s=t.attributesXml();s&&r.setAttribute(mt.ATTRIBUTES,s),(function(i,n){const o=[];n.role===y.MGLYPH&&o.push("image"),n.attributes.href&&o.push("link"),o.length&&i.setAttribute(mt.POSTFIX,o.join(" "))})(r,t)}function Br(){const r=pa("mrow");return r.setAttribute(mt.ADDED,"true"),r}class jt{static fromTree(t){return jt.fromNode(t.root)}static fromNode(t){return new jt(jt.fromNode_(t))}static fromString(t){return new jt(jt.fromString_(t))}static simpleCollapseStructure(t){return typeof t=="number"}static contentCollapseStructure(t){return!!t&&!jt.simpleCollapseStructure(t)&&t[0]==="c"}static interleaveIds(t,e){return e1(jt.collapsedLeafs(t),jt.collapsedLeafs(e))}static collapsedLeafs(...t){return t.reduce((e,s)=>{return e.concat((i=s,jt.simpleCollapseStructure(i)?[i]:jt.contentCollapseStructure(i[1])?i.slice(2):i.slice(1)));var i},[])}static fromStructure(t,e,s){return new jt(jt.tree_(t,e.root,s))}static combineContentChildren(t,e,s,i){switch(t){case g.RELSEQ:case g.INFIXOP:case g.MULTIREL:return e1(i,s);case g.PREFIXOP:return s.concat(i);case g.POSTFIXOP:return i.concat(s);case g.MATRIX:case g.VECTOR:case g.FENCED:return i.unshift(s[0]),i.push(s[1]),i;case g.CASES:return i.unshift(s[0]),i;case g.APPL:return[i[0],s[0],i[1]];case g.ROOT:return[i[0],i[1]];case g.ROW:case g.LINE:return s.length&&i.push(s[0]),i;default:return i}}static makeSexp_(t){return jt.simpleCollapseStructure(t)?t.toString():jt.contentCollapseStructure(t)?"(c "+t.slice(1).map(jt.makeSexp_).join(" ")+")":"("+t.map(jt.makeSexp_).join(" ")+")"}static fromString_(t){let e=t.replace(/\(/g,"[");return e=e.replace(/\)/g,"]"),e=e.replace(/ /g,","),e=e.replace(/c/g,'"c"'),JSON.parse(e)}static fromNode_(t){if(!t)return[];const e=t.contentNodes;let s;e.length&&(s=e.map(jt.fromNode_),s.unshift("c"));const i=t.childNodes;if(!i.length)return e.length?[t.id,s]:t.id;const n=i.map(jt.fromNode_);return e.length&&n.unshift(s),n.unshift(t.id),n}static tree_(t,e,s,i=0,n=1,o=1){if(!e)return[];const a=e.id,c=[a];(function(x){if(Gs.getInstance().mode!==Zn.HTTP)return;let A=x;for(;A&&!A.evaluate;)A=A.parentNode;A&&A.evaluate?da.currentDocument=A:x.ownerDocument&&(da.currentDocument=x.ownerDocument)})(t);const h=(function(x,A){let I;try{I=Qg(x,A,da.result.ORDERED_NODE_ITERATOR_TYPE)}catch{return[]}const q=[];for(let et=I.iterateNext();et;et=I.iterateNext())q.push(et);return q})(`.//self::*[@${mt.ID}=${a}]`,t)[0];if(!e.childNodes.length)return jt.addAria(h,i,n,o,s),e.id;const u=jt.combineContentChildren(e.type,e.role,e.contentNodes.map(function(x){return x}),e.childNodes.map(function(x){return x}));h&&jt.addOwns_(h,u);for(let x,A=0,I=u.length;x=u[A];A++)c.push(jt.tree_(t,x,s,i+1,A+1,I));return jt.addAria(h,i,n,o,s),c}static addAria(t,e,s,i,n){const o=n.tree?e?"treeitem":"tree":"treeitem";n.aria&&t&&(t.setAttribute("aria-level",e.toString()),t.setAttribute("aria-posinset",s.toString()),t.setAttribute("aria-setsize",i.toString()),t.setAttribute("role",o),t.hasAttribute(mt.OWNS)&&t.setAttribute("aria-owns",t.getAttribute(mt.OWNS)))}static addOwns_(t,e){const s=t.getAttribute(mt.COLLAPSED),i=s?jt.realLeafs_(jt.fromString(s).array):e.map(n=>n.id);t.setAttribute(mt.OWNS,i.join(" "))}static realLeafs_(t){if(jt.simpleCollapseStructure(t))return[t];if(jt.contentCollapseStructure(t))return[];let e=[];for(let s=1;s<t.length;s++)e=e.concat(jt.realLeafs_(t[s]));return e}constructor(t){this.parents=null,this.levelsMap=null,t=t===0?t:t||[],this.array=t}populate(){this.parents&&this.levelsMap||(this.parents={},this.levelsMap={},this.populate_(this.array,this.array,[]))}toString(){return jt.makeSexp_(this.array)}populate_(t,e,s){if(jt.simpleCollapseStructure(t))return this.levelsMap[t]=e,void(this.parents[t]=t===s[0]?s.slice(1):s);const i=jt.contentCollapseStructure(t)?t.slice(1):t,n=[i[0]].concat(s);for(let o=0,a=i.length;o<a;o++){const c=i[o];this.populate_(c,t,n)}}isRoot(t){return t===this.levelsMap[t][0]}directChildren(t){return this.isRoot(t)?this.levelsMap[t].slice(1).map(e=>jt.simpleCollapseStructure(e)?e:jt.contentCollapseStructure(e)?e[1]:e[0]):[]}subtreeNodes(t){if(!this.isRoot(t))return[];const e=(n,o)=>{jt.simpleCollapseStructure(n)?o.push(n):(jt.contentCollapseStructure(n)&&(n=n.slice(1)),n.forEac
vendor: 4,438 bytes, line 92
92h(a=>e(a,o)))},s=this.levelsMap[t],i=[];return e(s.slice(1),i),i}}function i1(r,t,e){let s=null;if(!r.length)return s;const i=e[e.length-1],n=i&&i.length,o=t&&t.length,a=v.getInstance();if(n&&o){if(t[0].type===g.INFIXOP&&t[0].role===y.IMPLICIT)return s=r.pop(),i.push(a.postfixNode_(i.pop(),r)),s;s=r.shift();const c=a.prefixNode_(t.shift(),r);return t.unshift(c),s}return n?(i.push(a.postfixNode_(i.pop(),r)),s):(o&&t.unshift(a.prefixNode_(t.shift(),r)),s)}function ro(r,t,e){if(!t.length)return r;const s=r.pop(),i=t.shift(),n=e.shift();if(i.type===g.INFIXOP&&(i.role===y.IMPLICIT||i.role===y.UNIT)){oe.getInstance().output("Juxta Heuristic Case 2");const c=(s?[s,i]:[i]).concat(n);return ro(r.concat(c),t,e)}if(!s)return oe.getInstance().output("Juxta Heuristic Case 3"),ro([i].concat(n),t,e);const o=n.shift();if(!o){oe.getInstance().output("Juxta Heuristic Case 9");const c=Tt.factory.makeBranchNode(g.INFIXOP,[s,t.shift()],[i],i.textContent);return c.role=y.IMPLICIT,Tt.run("combine_juxtaposition",c),t.unshift(c),ro(r,t,e)}if(mn(s)||mn(o))return oe.getInstance().output("Juxta Heuristic Case 4"),ro(r.concat([s,i,o]).concat(n),t,e);let a=null;return Ea(s)&&Ea(o)?(oe.getInstance().output("Juxta Heuristic Case 5"),s.contentNodes.push(i),s.contentNodes=s.contentNodes.concat(o.contentNodes),s.childNodes.push(o),s.childNodes=s.childNodes.concat(o.childNodes),o.childNodes.forEach(c=>c.parent=s),i.parent=s,s.addMathmlNodes(i.mathml),s.addMathmlNodes(o.mathml),a=s):Ea(s)?(oe.getInstance().output("Juxta Heuristic Case 6"),s.contentNodes.push(i),s.childNodes.push(o),o.parent=s,i.parent=s,s.addMathmlNodes(i.mathml),s.addMathmlNodes(o.mathml),a=s):Ea(o)?(oe.getInstance().output("Juxta Heuristic Case 7"),o.contentNodes.unshift(i),o.childNodes.unshift(s),s.parent=o,i.parent=o,o.addMathmlNodes(i.mathml),o.addMathmlNodes(s.mathml),a=o):(oe.getInstance().output("Juxta Heuristic Case 8"),a=Tt.factory.makeBranchNode(g.INFIXOP,[s,o],[i],i.textContent),a.role=y.IMPLICIT),r.push(a),ro(r.concat(n),t,e)}function r1(r){return r.childNodes[0]&&r.childNodes[0].childNodes[0]&&se(r.childNodes[0])===B.MPADDED&&se(r.childNodes[0].childNodes[0])===B.MPADDED&&se(r.childNodes[0].childNodes[r.childNodes[0].childNodes.length-1])===B.MPHANTOM}Tt.add(new Oi("combine_juxtaposition",function(r){for(let t,e=r.childNodes.length-1;t=r.childNodes[e];e--)Ea(t)&&!t.nobreaking&&(r.childNodes.splice(e,1,...t.childNodes),r.contentNodes.splice(e,0,...t.contentNodes),t.childNodes.concat(t.contentNodes).forEach(function(s){s.parent=r}),r.addMathmlNodes(t.mathml));return r})),Tt.add(new Oi("propagateSimpleFunction",r=>(r.type!==g.INFIXOP&&r.type!==g.FRACTION||!r.childNodes.every(C2)||(r.role=y.COMPFUNC),r),r=>Tt.options.domain==="clearspeak")),Tt.add(new Oi("simpleNamedFunction",r=>(r.role!==y.UNIT&&["f","g","h","F","G","H"].indexOf(r.textContent)!==-1&&(r.role=y.SIMPLEFUNC),r),r=>Tt.options.domain==="clearspeak")),Tt.add(new Oi("propagateComposedFunction",r=>(r.type===g.FENCED&&r.childNodes[0].role===y.COMPFUNC&&(r.role=y.COMPFUNC),r),r=>Tt.options.domain==="clearspeak")),Tt.add(new Oi("multioperator",r=>{r.role!==y.UNKNOWN||r.textContent.length<=1||(v.compSemantics(r,"role",y),v.compSemantics(r,"type",g))})),Tt.add(new xa("convert_juxtaposition",r=>{let t=oi(r,function(e){return e.textContent===mr.invisibleTimes&&e.type===g.OPERATOR});t=t.rel.length?(function(e){const s=[],i=[];let n=e.comp.shift(),o=null,a=[];for(;e.comp.length;)if(a=[],n.length)o&&s.push(o),i.push(n),o=e.rel.shift(),n=e.comp.shift();else{for(o&&a.push(o);!n.length&&e.comp.length;)n=e.comp.shift(),a.push(e.rel.shift());o=i1(a,n,i)}return a.length||n.length?(s.push(o),i.push(n)):(a.push(o),i1(a,n,i)),{rel:s,comp:i}})(t):t,r=t.comp[0];for(let e,s,i=1;e=t.comp[i],s=t.rel[i-1];i++)r.push(s),r=r.concat(e);return t=oi(r,function(e){return e.textContent===mr.invisibleTimes&&(e.type===g.OPERATOR||e.type===g.INFIXOP)}),t.rel.length?ro(t.comp.shift(),t.rel,t.comp):r})),Tt.add(new Oi("simple2prefix",r=>(r.textContent.length>1&&!r.textContent[0].match(/[A-Z]/)&&(r.role=y.PREFIXFUNC),r),r=>Tt.options.modality==="braille"&&r.type===g.IDENTIFIER)),Tt.add(new Oi("detect_cycle",r=>{r.type=g.MATRIX,r.role=y.CYCLE;const t=r.childNodes[0];return t.type=g.ROW,t.role=y.CYCLE,t.textContent="",t.contentNodes=[],r},r=>r.type===g.FENCED&&r.childNodes[0].type===g.INFIXOP&&r.childNodes[0].role===y.IMPLICIT&&r.childNodes[0].childNodes.every(function(t){return t.type===g.NUMBER}
92)&&r.childNodes[0].contentNodes.every(function(t){return t.role===y.SPACE}))),Tt.add(new xa("intvar_from_implicit",function(r){const t=r[0].childNodes;r.splice(0,1,...t),r.forEach(e=>e.parent=null)},r=>r[0]&&fn(r[0]))),Tt.add(new Oi("intvar_from_fraction",function(r){const t=r.childNodes[1],e=t.childNodes[0];if(wd(e))return void(e.role=y.INTEGRAL);if(!fn(e))return;const s=e.childNodes.length,i=e.childNodes[s-2],n=e.childNodes[s-1];if(wd(n))return void(n.role=y.INTEGRAL);if(jm(i,n)){const o=v.getInstance().prefixNode_(n,[i]);o.role=y.INTEGRAL,s===2?t.childNodes[0]=o:(e.childNodes.pop(),e.contentNodes.pop(),e.childNodes[s-2]=o,o.parent=e)}},r=>{if(r.type!==g.INTEGRAL)return!1;const[,t,e]=r.childNodes;return e.type===g.EMPTY&&t.type===g.FRACTION})),Tt.add(new Oi("rewrite_subcases",function(r){r.addAnnotation("Emph","top");let t=[];if(r.hasAnnotation("Emph","left")){const i=n1(r.childNodes[0].childNodes[0].childNodes[0],!0);i.forEach(n=>n.addAnnotation("Emph","left")),t=t.concat(i);for(let n,o=0;n=r.childNodes[o];o++)n.childNodes.shift()}if(t.push(r),r.hasAnnotation("Emph","right")){const i=n1(r.childNodes[0].childNodes[r.childNodes[0].childNodes.length-1].childNodes[0]);i.forEach(n=>n.addAnnotation("Emph","left")),t=t.concat(i),r.childNodes[0].childNodes.pop()}v.tableToMultiline(r);const e=v.getInstance().row(t),s=r.annotation.Emph;return r.annotation.Emph=["table"],s.forEach(i=>e.addAnnotation("Emph",i)),e},r=>{let t=!0,e=!0;const s=r.childNodes[0].childNodes[0];if(!s)return!1;if(r1(s.mathmlTree)){for(let i,n=1;i=r.childNodes[n];n++)if(i.childNodes[0].childNodes.length){t=!1;break}}else t=!1;if(t&&r.addAnnotation("Emph","left"),r1(r.childNodes[0].childNodes[r.childNodes[0].childNodes.length-1].mathmlTree)){const i=r.childNodes[0].childNodes.length;for(let n,o=1;n=r.childNodes[o];o++)if(n.childNodes.length>=i){e=!1;break}}else e=!1;return e&&r.addAnnotation("Emph","right"),t||e}));const R2=[g.PUNCTUATED,g.RELSEQ,g.MULTIREL,g.INFIXOP,g.PREFIXOP,g.POSTFIXOP];function n1(r,t){if(!r.childNodes.length)return Ud(r),[r];let e=null;if(r.type===g.PUNCTUATED&&(t?r.role===y.ENDPUNCT:r.role===y.STARTPUNCT)){const s=r.childNodes;Ud(s[t?s.length-1:0])&&(r=s[t?0:s.length-1],e=s[t?s.length-1:0])}if(R2.indexOf(r.type)!==-1){const s=r.childNodes;Ud(s[t?s.length-1:0]);const i=jt.combineContentChildren(r.type,r.role,r.contentNodes,r.childNodes);return e&&(t?i.push(e):i.unshift(e)),i}return e?t?[r,e]:[e,r]:[r]}const M2={[y.METRIC]:y.METRIC,[y.VBAR]:y.NEUTRAL,[y.OPENFENCE]:y.OPEN,[y.CLOSEFENCE]:y.CLOSE};function Ud(r){if(r.type!==g.PUNCTUATION)return!1;const t=M2[r.role];return!!t&&(r.role=t,r.type=g.FENCE,r.addAnnotation("Emph","fence"),!0)}function o1(r,t,e,s=e){const i=[];for(;r&&r.role===e;)i.push(r),r=t.shift();return i.length?(r&&t.unshift(r),[i.length===1?i[0]:I2(i,s),t]):[r,t]}function I2(r,t){const e=Tt.factory.makeBranchNode(g.PUNCTUATION,r,[]);return e.role=t,e}function Sl(r){return["[","["].includes(r)}function Rl(r){return["]","]"].includes(r)}function a1(r){return["(","⁽","₍"].includes(r)}function l1(r){return[")","⁾","₎"].includes(r)}function c1(r){return r.role===y.INFTY||r.type===g.PREFIXOP&&r.childNodes[0].role===y.INFTY}function h1(r){const t=r.childNodes[0];if(r.type!==g.FENCED||t?.type!==g.PUNCTUATED||t?.childNodes.length!==3||t?.contentNodes.length!==1||t?.childNodes[1].role!==y.COMMA)return!1;const e=r.childNodes[0].childNodes[0],s=r.childNodes[0].childNodes[2],i=r.contentNodes[0].textContent,n=r.contentNodes[1].textContent;return!!(Sl(i)&&l1(n)||a1(i)&&Rl(n))||!(!a1(i)||!l1(n)||!c1(e)&&!c1(s))}function w2(r){return _d(r)||(function(t){return gn(t)||t.type===g.INFIXOP&&t.role===y.IMPLICIT&&(t.childNodes.length===2&&(gn(t.childNodes[0])||_d(t.childNodes[0]))&&gn(t.childNodes[1])||t.childNodes.length===3&&_d(t.childNodes[0])&&gn(t.childNodes[1])&&gn(t.childNodes[2]))})(r)||(function(t){return t.type===g.PUNCTUATED&&t.role===y.ENDPUNCT&&t.childNodes.length===2&&t.childNodes[1].role===y.DEGREE&&(gn(t.childNodes[0])||Ml(t.childNodes[0])||t.childNodes[0].type===g.PREFIXOP&&t.childNodes[0].role===y.NEGATIVE&&(gn(t.childNodes[0].childNodes[0])||Ml(t.childNodes[0].childNodes[0])))})(r)||(function(t){return t.type===g.PREFIXOP&&t.role===y.NEGATIVE&&Hd(t.childNodes[0])&&t.childNodes[0].type!==g.PREFIXOP&&t.childNodes[0].type!==g.APPL&&t.childNodes[0].type!==g.PUNCTUATED})(r)||(function(t){return t.type===g.APPL&&(t.childNodes[0].role===y.PREFIXFUNC||t.childNodes[0].role===y.SIMPLEFUNC)&&(Hd(t.childNodes[1])||t.childNodes[1].type===g.FENCED&&Hd(t.childNodes[1].childNodes[0]))})(r)}function Hd(r){return r.hasAnnotation("clearspeak","simple")}function gn(r){return r.type===g.IDENTIFIER&&(r.role===y.LATINLETTER||r.role===y.GREEKLETTER||r.role===y.OTHERLETTER||r.role===y.SIMPLEFUNC)}function Ml(r){return r.type===g.NUMBER&&(r.role===y.INTEGER||r.role===y.FLOAT)}function _d(r){return Ml(r)||(function(t){if(Wd("Fraction_Over")||Wd("Fraction_FracOver")||t.type!==g.FRACTION||t.role!==y.VULGAR)return!1;if(Wd("Fraction_Ordinal"))return!0;const e=parseInt(t.childNodes[0].textContent,10),s=parseInt(t.childNodes[1].textContent,10);return e>0&&e<20&&s>0&&s<11})(r)}function Wd(r){return Gs.getInstance().options.style===r}function k2(r){return r.type===g.TEXT&&r.role!==y.LABEL||r.type===g.PUNCTUATED&&r.role===y.TEXT&&Ml(r.childNodes[0])&&(function(t){for(let e=0;e<t.length-1;e++)if(t[e].type!==g.TEXT||t[e].textContent!=="")return!1;return t[t.length-1].type===g.TEXT})(r.childNodes.slice(1))||r.type===g.IDENTIFIER&&r.role===y.UNIT||r.type===g.INFIXOP&&(r.role===y.IMPLICIT||r.role===y.UNIT)}Tt.add(new xa("ellipses",r=>{const t=[];let e=r.shift();for(;e;)[e,r]=o1(e,r,y.FULLSTOP,y.ELLIPSIS),[e,r]=o1(e,r,y.DASH),t.push(e),e=r.shift();return t},r=>r.length>1)),Tt.add(new xa("op_with_limits",r=>{const t=r[0];return t.type=g.LARGEOP,t.role=y.SUM,r},r=>(r[0].type===g.OPERATOR||r[0].type===g.IDENTIFIER&&r[0].attributes.texclass==="OP")&&r.slice(1).some(t=>t.type===g.RELSEQ||t.type===g.MULTIREL||t.type===g.INFIXOP&&t.role===y.ELEMENT||t.type===g.PUNCTUATED&&t.role===y.SEQUENCE))),Tt.add(new class extends Fd{}("function_from_identifiers",r=>{const t=je(r.childNodes).map(s=>s.textContent.trim()).join("");if(ue.Meaning.get(t).type===g.UNKNOWN)return r;const e=Tt.factory.makeLeafNode(t,v.getInstance().font(r.getAttribute("mathvariant")));return e.mathmlTree=r,e},r=>{const t=je(r.childNodes);return!(t.length<2)&&t.every(e=>se(e)===B.MI&&ue.Meaning.get(e.textContent.trim()).role===y.LATINLETTER)})),Tt.add(new xa("bracketed_interval",r=>{const t=r[0],e=r[1],s=r.slice(2),i=v.getInstance().row(s),n=Tt.factory.makeBranchNode(g.FENCED,[i],[t,e]);
92return n.role=y.INTERVAL,n},r=>{const t=r[0],e=r[1],s=r.slice(2);if(!(t&&e&&(Rl(t.textContent)&&(Sl(e.textContent)||Rl(e.textContent))||Sl(e.textContent)&&(Sl(t.textContent)||Rl(t.textContent)))))return!1;if(s.length===1&&s[0].type===g.PUNCTUATED&&s[0].contentNodes.length===1)return!0;const i=oi(s,Al);return!(i.rel.length!==1||!i.comp[0].length||!i.comp[1].length)})),Tt.add(new Oi("interval_heuristic",r=>(r.role=y.INTERVAL,r),r=>h1(r))),Tt.add(new Oi("propagateInterval",r=>(r.childNodes.forEach(t=>{h1(t)&&(t.role=y.INTERVAL)}),r),r=>Zm(r))),Tl(new xd("clearspeak","simple",function(r){return w2(r)?"simple":""})),Cl("clearspeak","simple"),Tl(new xd("clearspeak","unit",function(r){return k2(r)?"unit":""})),Cl("clearspeak","unit");const O2=[g.MULTIREL,g.RELSEQ,g.APPL,g.ROW,g.LINE],D2=[g.SUBSCRIPT,g.SUPERSCRIPT,g.OVERSCORE,g.UNDERSCORE];function d1(r,t){const e=r.parent;if(!e)return!1;const s=e.type;return O2.indexOf(s)!==-1||s===g.PREFIXOP&&e.role===y.NEGATIVE&&!t.script&&!t.enclosed||s===g.PREFIXOP&&e.role===y.GEOMETRY||!(s!==g.PUNCTUATED||t.enclosed&&e.role!==y.TEXT)}Tl(new yd("nemeth","number",function(r,t){return r.childNodes.length?(D2.indexOf(r.type)!==-1&&(t.script=!0),r.type===g.FENCED?(t.number=!1,t.enclosed=!0,["",t]):r.type===g.PREFIXOP&&r.role!==y.GEOMETRY&&r.role!==y.NEGATIVE?(t.number=!1,["",t]):(d1(r,t)&&(t.number=!0,t.enclosed=!1),["",t])):(d1(r,t)&&(t.number=!0,t.script=!1,t.enclosed=!1),[t.number?"number":"",{number:!1,enclosed:t.enclosed,script:t.script}])},{number:!0})),Cl("nemeth","number"),Tl(new yd("depth","depth",function(r){return r.parent?[parseInt(r.parent.annotation.depth[0])+1]:[1]})),Cl("depth","depth");class no{static empty(){const t=ua("<math/>"),e=new no(t,new ki);return e.mathml=t,e}static fromNode(t,e){const s=no.empty();return s.root=t,e&&(s.mathml=e),s}static fromRoot(t,e){let s=t;for(;s.parent;)s=s.parent;const i=no.fromNode(s);return e&&(i.mathml=e),i}static fromXml(t){const e=no.empty();return t.childNodes[0]&&(e.root=Ei.fromXml(t.childNodes[0])),e}constructor(t,e){this.mathml=t,this.options=e,this.parser=new io(e),this.root=this.parser.parse(t),this.root=v.rewriteTrivialTable(this.root),this.collator=this.parser.getFactory().leafMap.collateMeaning();const s=this.collator.newDefault();s&&(this.parser=new io(e),this.parser.getFactory().defaultMap=s,this.root=this.parser.parse(t)),P2.visit(this.root,{}),(function(i){for(const n of Nd.values())n.active&&n.annotate(i);for(const n of vd.values())n.active&&n.visit(i,Object.assign({},n.def))})(this.root)}xml(t){const e=ua("<stree></stree>"),s=this.root.xml(e.ownerDocument,t);return e.appendChild(s),e}toString(t){return Lm(this.xml(t))}formatXml(t){return Cm(this.toString(t))}displayTree(){this.root.displayTree()}replaceNode(t,e){const s=t.parent;s?s.replaceChild(t,e):this.root=e}toJson(){const t={};return t.stree=this.root.toJson(),t}}const P2=new yd("general","unit",(r,t)=>(Gm(r)&&(r.role=y.UNIT),!1));function B2(r,t){return new no(r,t)}const u1=[],qd=new Map;function Me(r){oe.getInstance().generate(()=>["WALKING START: ",r.toString()]);const t=(function(o){for(let a,c=0;a=u1[c];c++)if(a.test(o))return a.constr(o);return null})(r);let e;if(t)return e=t.getMathml(),oe.getInstance().generate(()=>["WALKING END: ",r.toString()]),ao(e);if(r.mathml.length===1){if(oe.getInstance().output("Walktree Case 0"),!r.childNodes.length)return oe.getInstance().output("Walktree Case 0.1"),e=r.mathml[0],as(e,r),oe.getInstance().generate(()=>["WALKING END: ",r.toString()]),ao(e);const o=r.childNodes[0];if(r.childNodes.length===1&&o.type===g.EMPTY)return oe.getInstance().output("Walktree Case 0.2"),e=r.mathml[0],as(e,r),e.appendChild(Me(o)),oe.getInstance().generate(()=>["WALKING END: ",r.toString()]),ao(e);r.childNodes.forEach(a=>{a.mathml.length||a.addMathmlNodes([b1(a)])})}const s=r.contentNodes.map(kl);E1(r,s);const i=r.childNodes.map(Me),n=jt.combineContentChildren(r.type,r.role,s,i);if(e=r.mathmlTree,e===null)oe.getInstance().output("Walktree Case 1"),e=oo(n,r);else{e=g1(e);const o=wl(n);oe.getInstance().output("Walktree Case 2"),o?(oe.getInstance().output("Walktree Case 2.1"),e=xi(o)):(oe.getInstance().output("Walktree Case 2.2"),e=Fr(e))}return(function(o,a,c){if(!a.length||a.length===1&&o===a[0])return;const h=c.role===y.IMPLICIT&&Tt.flags.combine_juxtaposition?(function(x,A,I){const q=[];let et=je(x.childNodes),Rt=!1;for(;et.length;){const ls=et.shift();if(ls.hasAttribute(mt.TYPE)){q.push(ls);continue}const Er=F2(ls,A);Er.length!==0&&(Er.length!==1?(Rt?ls.setAttribute("AuxiliaryImplicit",!0):Rt=!0,et=Er.concat(et)):q.push(ls))}const Ce=[],Ns=I.childNodes.map(function(ls){return ls.mathmlTree});for(;Ns.length;){const ls=Ns.pop();if(ls){if(q.indexOf(ls)!==-1)break;A.indexOf(ls)!==-1&&Ce.unshift(ls)}}return q.concat(Ce)})(o,a,c):je(o.childNodes);if(!h.length)return void a.forEach(function(x){o.appendChild(x)});let u=0;for(;a.length;){const x=a[0];if(h[u]===x||_2(h[u],x)){a.shift(),u++;continue}if(h[u]&&a.indexOf(h[u])===-1){u++;continue}if(H2(x,o)){a.shift();continue}const A=h[u];if(!A){if(x.parentNode){o=xi(x),a.shift();continue}const I=a[1];if(I&&I.parentNode){Il(o=xi(I),x,I),a.shift(),a.shift();continue}Il(o,x,null),a.shift();continue}j2(o,A,x),a.shift()}})(e,n,r),qd.has(r.id)||(qd.set(r.id,!0),as(e,r)),oe.getInstance().generate(()=>["WALKING END: ",r.toString()]),ao(e,r)}function oo(r,t){const e=(function(n){const o=wl(n);if(!o)return{type:tr.INVALID,node:null};const a=wl(n.slice().reverse());if(o===a)return{type:tr.VALID,node:o};const c=m1(o),h=(function(I,q){let et=0;for(;I[et]&&q.indexOf(I[et])===-1;)et++;return I.slice(0,et+1)})(c,n),u=m1(a,function(I){return h.indexOf(I)!==-1}),x=u[0],A=h.indexOf(x);return A===-1?{type:tr.INVALID,node:null}:{type:h.length!==c.length?tr.PRUNED:W2(h[A+1],u[1])?tr.VALID:tr.INVA
92LID,node:x}})(r);let s=e.node;const i=e.type;if(i!==tr.VALID||!Pr(s)||!s.parentNode&&t.parent){if(oe.getInstance().output("Walktree Case 1.1"),s=Br(),i===tr.PRUNED)oe.getInstance().output("Walktree Case 1.1.0"),s=(function(n,o,a){let c=f1(o);if(Rd(c)){oe.getInstance().output("Walktree Case 1.1.0.0"),p1(c,n),je(c.childNodes).forEach(function(x){n.appendChild(x)});const u=n;n=c,c=u}const h=a.indexOf(o);return a[h]=c,Qi(c,n),n.appendChild(c),a.forEach(function(u){n.appendChild(u)}),n})(s,e.node,r);else if(r[0]){oe.getInstance().output("Walktree Case 1.1.1");const n=wl(r);if(n){const o=(function(a,c){const h=je(a.childNodes);let u=1/0,x=-1/0;return c.forEach(function(A){const I=h.indexOf(A);I!==-1&&(u=Math.min(u,I),x=Math.max(x,I))}),h.slice(u,x+1)})(xi(n),r);Qi(n,s),o.forEach(function(a){s.appendChild(a)})}else p1(s,r[0]),s=r[0]}}return t.mathmlTree||(t.mathmlTree=s),s}function p1(r,t){for(const e of S2)r.hasAttribute(e)&&(t.setAttribute(e,r.getAttribute(e)),r.removeAttribute(e))}function F2(r,t){const e=[];let s=je(r.childNodes);for(;s.length;){const i=s.shift();i.nodeType===Or.ELEMENT_NODE&&(i.hasAttribute(mt.TYPE)||t.indexOf(i)!==-1?e.push(i):s=je(i.childNodes).concat(s))}return e}function j2(r,t,e){let s=t,i=xi(s);for(;i&&U2(i,s)&&!s.hasAttribute("AuxiliaryImplicit")&&i!==r;)s=i,i=xi(s);i&&(Il(i,e,s),s.removeAttribute("AuxiliaryImplicit"))}function Il(r,t,e){se(r)===B.MACTION?Il(xi(r),t,r):r.insertBefore(t,e)}function U2(r,t){if(se(r)!==B.MACTION)return r.firstChild===t;const e=parseInt(r.getAttribute("selection"))||1;return r.childNodes[e-1]===t}function H2(r,t){if(!r)return!1;do if((r=xi(r))===t)return!0;while(r);return!1}function _2(r,t){const e=mr.functionApplication;if(r&&t&&r.textContent&&t.textContent&&r.textContent===e&&t.textContent===e&&t.getAttribute(mt.ADDED)==="true"){for(let s,i=0;s=r.attributes[i];i++)t.hasAttribute(s.nodeName)||t.setAttribute(s.nodeName,s.nodeValue);return Qi(r,t),!0}return!1}var tr;function wl(r){let t=0,e=null;for(;!e&&t<r.length;)r[t].parentNode&&(e=r[t]),t++;return e}function m1(r,t){const e=t||(i=>!1),s=[r];for(;!e(r)&&!Rd(r)&&r.parentNode;)r=xi(r),s.unshift(r);return s}function W2(r,t){return!(!r||!t||r.previousSibling||t.nextSibling)}function ao(r,t){var e;let s=t&&!t.hasAnnotation("empty","MFENCED")&&t.getAnnotation("empty");for(;!Rd(r)&&(q2(r)||s&&r.parentNode&&s.includes((e=xi(r).tagName)===null||e===void 0?void 0:e.toUpperCase()));)r=xi(r);return r}function f1(r){const t=je(r.childNodes);if(!t)return r;const e=t.filter(function(s){return s.nodeType===Or.ELEMENT_NODE&&!Md(s)});return e.length===1&&Pr(e[0])&&!e[0].hasAttribute(mt.TYPE)?f1(e[0]):r}function q2(r){const t=xi(r);return!(!t||!Pr(t))&&je(t.childNodes).every(function(e){return e===r||Vd(e)})}function Vd(r){if(r.nodeType!==Or.ELEMENT_NODE||!r||Md(r))return!0;const t=je(r.childNodes);return!(!Pr(r)&&t.length||(function(e){return!!e&&g2.includes(se(e))})(r)||r.hasAttribute(mt.TYPE)||E2(r))&&je(r.childNodes).every(Vd)}function xi(r){return r.parentNode}function ya(r,t){const e=new jt(t);r.setAttribute(mt.COLLAPSED,e.toString())}function kl(r){if(r.mathml.length)return Me(r);const t=b1(r);return r.addMathmlNodes([t]),t}function g1(r){if(se(r)!==B.MFENCED)return r;const t=Br();for(let e,s=0;e=r.attributes[s];s++)["open","close","separators"].indexOf(e.name)===-1&&t.setAttribute(e.name,e.value);return je(r.childNodes).forEach(function(e){t.appendChild(e)}),Qi(r,t),t}function b1(r){const t=pa("mo"),e=(s=r.textContent,kr.document.createTextNode(s));var s;return t.appendChild(e),as(t,r),t.setAttribute(mt.ADDED,"true"),t}function E1(r,t){const e=r.type+(r.textContent?","+r.textContent:"");t.forEach(function(s){Fr(s).setAttribute(mt.OPERATOR,e)})}function Fr(r){if(Md(r))return r;const t=je(r.childNodes);if(!t)return r;const e=t.filter(function(i){return!Vd(i)}),s=[];for(let i,n=0;i=e[n];n++)if(Pr(i)&&i.getAttribute(mt.TYPE)!==g.PUNCTUATION){const o=Fr(i);o&&o!==i&&s.push(o)}else s.push(i);return s.length===1?s[0]:r}function zd(r){return Cm(r.toString()).toString().replace(new RegExp(s1,"g"),"")}function x1(r,t){const e=!!t,s=t||[],i=r.parent,n=r.contentNodes.map(function(a){return a.id});n.unshift("c");const o=[r.id,n];for(let a,c=0;a=r.childNodes[c];c++){const h=Me(a);s.push(h);const u=Fr(h);i&&!e&&u.setAttribute(mt.PARENT,i.id.toString()),o.push(a.id)}return o}(function(r){r.VALID="valid",r.INVALID="invalid",r.PRUNED="pruned"})(tr||(tr={}));class Di{constructor(t){this.semantic=t}}class y1 extends Di{static test(t){return!t.mathmlTree&&t.type===g.LINE&&t.role===y.BINOMIAL}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){if(!this.semantic.childNodes.length)return this.mml;const t=this.semantic.childNodes[0];if(this.mml=Me(t),this.mml.hasAttribute(mt.TYPE)){const e=Br();Qi(this.mml,e),e.appendChild(this.mml),this.mml=e}return as(this.mml,this.semantic),this.mml}}class N1 extends Di{static test(t){var e,s;
vendor: 5,578 bytes, line 92
92return!!t.getAnnotation("collapsed").length&&((s=(e=t.mathmlTree)===null||e===void 0?void 0:e.parentNode)===null||s===void 0?void 0:s.childNodes.length)>2}getMathml(){Me(this.semantic.childNodes[0]),Me(this.semantic.childNodes[1]);const t=this.semantic.mathmlTree,e=oo([this.semantic.childNodes[0].mathmlTree,t],this.semantic);return as(e,this.semantic),e}}class Xd extends Di{static test(t){if(!t.mathmlTree||!t.childNodes.length)return!1;const e=se(t.mathmlTree),s=t.childNodes[0].role;return e===B.MSUBSUP&&s===y.SUBSUP||e===B.MUNDEROVER&&s===y.UNDEROVER}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){const t=this.semantic.childNodes[0],e=t.childNodes[0],s=this.semantic.childNodes[1],i=t.childNodes[1],n=Me(s),o=Me(e),a=Me(i);return as(this.mml,this.semantic),this.mml.setAttribute(mt.CHILDREN,jd([e,i,s])),[o,a,n].forEach(c=>Fr(c).setAttribute(mt.PARENT,this.mml.getAttribute(mt.ID))),this.mml.setAttribute(mt.TYPE,t.role),ya(this.mml,[this.semantic.id,[t.id,e.id,i.id],s.id]),this.mml}}class Pi extends Di{static multiscriptIndex(t){return t.type===g.PUNCTUATED&&t.contentNodes[0].role===y.DUMMY&&t.hasAnnotation("general","script")?x1(t):(Me(t),t.id)}static createNone_(t){const e=pa("none");return t&&as(e,t),e.setAttribute(mt.ADDED,"true"),e}constructor(t){super(t),this.mml=t.mathmlTree}completeMultiscript(t,e){const s=je(this.mml.childNodes).slice(1);let i=0;const n=o=>{for(const a of o){const c=s[i];if(c&&a===parseInt(c.getAttribute(mt.ID)))c.setAttribute(mt.PARENT,this.semantic.id.toString()),i++;else if(c&&a===parseInt(Fr(c).getAttribute(mt.ID)))Fr(c).setAttribute(mt.PARENT,this.semantic.id.toString()),i++;else{const h=this.semantic.querySelectorAll(u=>u.id===a);this.mml.insertBefore(Pi.createNone_(h[0]),c||null)}}};n(t),s[i]&&se(s[i])!==B.MPRESCRIPTS?this.mml.insertBefore(s[i],pa("mprescripts")):i++,n(e)}}class Jd extends Pi{static test(t){return t.mathmlTree?se(t.mathmlTree)===B.MMULTISCRIPTS&&(t.type===g.SUPERSCRIPT||t.type===g.SUBSCRIPT):!1}constructor(t){super(t)}getMathml(){let t,e,s;if(as(this.mml,this.semantic),this.semantic.childNodes[0]&&this.semantic.childNodes[0].role===y.SUBSUP){const n=this.semantic.childNodes[0];t=n.childNodes[0],e=Pi.multiscriptIndex(this.semantic.childNodes[1]),s=Pi.multiscriptIndex(n.childNodes[1]);const o=[this.semantic.id,[n.id,t.id,s],e];ya(this.mml,o),this.mml.setAttribute(mt.TYPE,n.role),this.completeMultiscript(jt.interleaveIds(s,e),[])}else{t=this.semantic.childNodes[0],e=Pi.multiscriptIndex(this.semantic.childNodes[1]);const n=[this.semantic.id,t.id,e];ya(this.mml,n)}const i=jt.collapsedLeafs(s||[],e);return Fr(Me(t)).setAttribute(mt.PARENT,this.semantic.id.toString()),i.unshift(t.id),this.mml.setAttribute(mt.CHILDREN,i.join(",")),this.mml}}class Kd extends Pi{static test(t){return!!t.mathmlTree&&t.type===g.TENSOR}constructor(t){super(t)}getMathml(){Me(this.semantic.childNodes[0]);const t=Pi.multiscriptIndex(this.semantic.childNodes[1]),e=Pi.multiscriptIndex(this.semantic.childNodes[2]),s=Pi.multiscriptIndex(this.semantic.childNodes[3]),i=Pi.multiscriptIndex(this.semantic.childNodes[4]);as(this.mml,this.semantic);const n=[this.semantic.id,this.semantic.childNodes[0].id,t,e,s,i];ya(this.mml,n);const o=jt.collapsedLeafs(t,e,s,i);return o.unshift(this.semantic.childNodes[0].id),this.mml.setAttribute(mt.CHILDREN,o.join(",")),this.completeMultiscript(jt.interleaveIds(s,i),jt.interleaveIds(t,e)),this.mml}}class bn extends Di{static test(t){return!(!t.mathmlTree||!t.fencePointer||t.mathmlTree.getAttribute("data-semantic-type"))}static makeEmptyNode_(t){const e=Br(),s=new Ei(t);return s.type=g.EMPTY,s.mathmlTree=e,s}static fencedMap_(t,e){e[t.id]=t.mathmlTree,t.embellished&&bn.fencedMap_(t.childNodes[0],e)}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=[]}getMathml(){return this.getFenced_(),this.fencedMml=Me(this.fenced),this.getFencesMml_(),this.fenced.type!==g.EMPTY||this.fencedMml.parentNode||(this.fencedMml.setAttribute(mt.ADDED,"true"),this.cfenceMml.parentNode.insertBefore(this.fencedMml,this.cfenceMml)),this.getFencedMml_(),this.rewrite_()}fencedElement(t){return t.type===g.FENCED||t.type===g.MATRIX||t.type===g.VECTOR}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],bn.fencedMap_(this.ofence,this.ofenceMap),bn.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),s=Object.keys(this.cfenceMap);for(;!(this.ofenceMml&&this.cfenceMml||t===this.fenced);)e.indexOf(t.fencePointer)===-1||this.ofenceMml||(this.ofenceMml=t.mathmlTree),s.indexOf(t.fencePointer)===-1||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=ao(this.ofenceMml)),this.cfenceMml&&(this.cfenceMml=ao(this.cfenceMml))}rewrite_(){let t=this.semantic,e=null;const s=this.introduceNewLayer_();for(as(s,this.fenced.parent);!this.fencedElement(t);){const i=t.mathmlTree,n=this.specialCase_(t,i);if(n)t=n;else{as(i,t);const c=[];for(let h,u=1;h=t.childNodes[u];u++)c.push(Me(h));t=t.childNodes[0]}const o=pa("dummy"),a=i.childNodes[0];
vendor: 4,289 bytes, line 92
92Qi(i,o),Qi(s,i),Qi(i.childNodes[0],s),Qi(o,a),e||(e=i)}return Me(this.ofence),Me(this.cfence),this.cleanupParents_(),e||s}specialCase_(t,e){const s=se(e);let i,n=null;if(s===B.MSUBSUP?(n=t.childNodes[0],i=Xd):s===B.MMULTISCRIPTS&&(t.type===g.SUPERSCRIPT||t.type===g.SUBSCRIPT?i=Jd:t.type===g.TENSOR&&(i=Kd),n=i&&t.childNodes[0]&&t.childNodes[0].role===y.SUBSUP?t.childNodes[0]:t),!n)return null;const o=n.childNodes[0],a=bn.makeEmptyNode_(o.id);return n.childNodes[0]=a,e=new i(t).getMathml(),n.childNodes[0]=o,this.parentCleanup.push(e),n.childNodes[0]}introduceNewLayer_(){const t=this.fullFence(this.ofenceMml),e=this.fullFence(this.cfenceMml);let s=Br();if(Qi(this.fencedMml,s),this.fencedMmlNodes.forEach(i=>s.appendChild(i)),s.insertBefore(t,this.fencedMml),s.appendChild(e),!s.parentNode){const i=Br();for(;s.childNodes.length>0;)i.appendChild(s.childNodes[0]);s.appendChild(i),s=i}return s}fullFence(t){const e=this.fencedMml.parentNode;let s=t;for(;s.parentNode&&s.parentNode!==e;)s=s.parentNode;return s}cleanupParents_(){this.parentCleanup.forEach(function(t){const e=t.childNodes[1].getAttribute(mt.PARENT);t.childNodes[0].setAttribute(mt.PARENT,e)})}}class v1 extends Di{static test(t){return!!t.mathmlTree&&t.hasAnnotation("Emph","top")}constructor(t){super(t),this.mrows=[],this.mml=t.mathmlTree}getMathml(){if(this.recurseToTable(this.semantic),this.mrows.length){const t=Br();this.mml.parentNode.insertBefore(t,this.mml);for(const e of this.mrows)t.appendChild(e);t.appendChild(this.mml)}return this.mml}recurseToTable(t){var e,s;if(t.hasAnnotation("Emph","top")||t.hasAnnotation("Emph","fence")||!t.hasAnnotation("Emph","left")&&!t.hasAnnotation("Emph","right")){if(!t.mathmlTree||se(t.mathmlTree)===B.MTABLE&&(!((e=t.annotation.Emph)===null||e===void 0)&&e.length)&&t.annotation.Emph[0]!=="table"){const i=Br();as(i,t),this.mrows.unshift(i)}else{if(se(t.mathmlTree)===B.MTABLE&&(!((s=t.annotation.Emph)===null||s===void 0)&&s.length)&&t.annotation.Emph[0]==="table")return void this.finalizeTable(t);as(t.mathmlTree,t)}if(t.childNodes.forEach(this.recurseToTable.bind(this)),t.textContent||t.type==="punctuated"){const i=t.contentNodes.map(n=>{const o=kl(n);return o.hasAttribute("data-semantic-added")?this.mrows.unshift(o):this.recurseToTable(n),o});return void E1(t,i)}t.contentNodes.forEach(this.recurseToTable.bind(this))}else Me(t)}finalizeTable(t){as(t.mathmlTree,t),t.contentNodes.forEach(e=>{Me(e)}),t.childNodes.forEach(e=>{Me(e)})}}class Ol extends Di{static test(t){if(!t.mathmlTree||!t.childNodes.length)return!1;const e=se(t.mathmlTree),s=t.type;return(s===g.LIMUPPER||s===g.LIMLOWER)&&(e===B.MSUBSUP||e===B.MUNDEROVER)||s===g.LIMBOTH&&(e===B.MSUB||e===B.MUNDER||e===B.MSUP||e===B.MOVER)}static walkTree_(t){t&&Me(t)}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){const t=this.semantic.childNodes;return this.semantic.type!==g.LIMBOTH&&this.mml.childNodes.length>=3&&(this.mml=oo([this.mml],this.semantic)),as(this.mml,this.semantic),t[0].mathmlTree||(t[0].mathmlTree=this.semantic.mathmlTree),t.forEach(Ol.walkTree_),this.mml}}class T1 extends Di{static test(t){return!!t.mathmlTree&&t.type===g.LINE}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){return this.semantic.contentNodes.length&&Me(this.semantic.contentNodes[0]),this.semantic.childNodes.length&&Me(this.semantic.childNodes[0]),as(this.mml,this.semantic),this.mml}}class C1 extends Di{static test(t){return!!t.mathmlTree&&(t.type===g.INFERENCE||t.type===g.PREMISES)}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){return this.semantic.childNodes.length?(this.semantic.contentNodes.forEach(function(t){Me(t),as(t.mathmlTree,t)}),this.semantic.childNodes.forEach(function(t){Me(t)}),as(this.mml,this.semantic),this.mml.getAttribute("data-semantic-id")===this.mml.getAttribute("data-semantic-parent")&&this.mml.removeAttribute("data-semantic-parent"),this.mml):this.mml}}class L1 extends Di{static test(t){return t.type===g.MATRIX||t.type===g.VECTOR||t.type===g.CASES}constructor(t){super(t),this.inner=[],this.mml=t.mathmlTree}getMathml(){const t=kl(this.semantic.contentNodes[0]),e=this.semantic.contentNodes[1]?kl(this.semantic.contentNodes[1]):null;if(this.inner=this.semantic.childNodes.map(Me),this.mml)if(se(this.mml)===B.MFENCED){const s=this.mml.childNodes;
92this.mml.insertBefore(t,s[0]||null),e&&this.mml.appendChild(e),this.mml=g1(this.mml)}else{const s=[t,this.mml];e&&s.push(e),this.mml=oo(s,this.semantic)}else this.mml=oo([t].concat(this.inner,[e]),this.semantic);return as(this.mml,this.semantic),this.mml}}class A1 extends Di{static test(t){return t.type===g.PUNCTUATED&&(t.role===y.TEXT||t.contentNodes.every(e=>e.role===y.DUMMY))}constructor(t){super(t),this.mml=t.mathmlTree}getMathml(){const t=[],e=x1(this.semantic,t);return this.mml=oo(t,this.semantic),as(this.mml,this.semantic),this.mml.removeAttribute(mt.CONTENT),ya(this.mml,e),this.mml}}function V2(r,t){const e=(function(i){return i.cloneNode(!0)})(r);return(function(i,n,o){return oe.getInstance().generate(()=>["Original MathML",zd(i)]),qd.clear(),Me(n.root),o.structure&&i.setAttribute(mt.STRUCTURE,jt.fromStructure(i,n,o).toString()),oe.getInstance().generate(()=>[`Semantic Tree
93`,zd(n),`Semantically enriched MathML
94`,zd(i)]),i})(e,B2(e,t),t)}u1.push({test:Ol.test,constr:r=>new Ol(r)},{test:bn.test,constr:r=>new bn(r)},{test:N1.test,constr:r=>new N1(r)},{test:Xd.test,constr:r=>new Xd(r)},{test:Kd.test,constr:r=>new Kd(r)},{test:Jd.test,constr:r=>new Jd(r)},{test:T1.test,constr:r=>new T1(r)},{test:y1.test,constr:r=>new y1(r)},{test:C1.test,constr:r=>new C1(r)},{test:v1.test,constr:r=>new v1(r)},{test:L1.test,constr:r=>new L1(r)},{test:A1.test,constr:r=>new A1(r)});const z2=new pn({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"],Inference:["Auto","Long"],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"]}),X2="Auto";function S1(r){const t=r.split(":"),e={},s=z2.getProperties(),i=Object.keys(s);for(let n,o=0;n=t[o];o++){const a=n.split("_");if(i.indexOf(a[0])===-1)continue;const c=a[1];c&&c!==X2&&s[a[0]].indexOf(c)!==-1&&(e[a[0]]=a[1])}return e}function R1(r){const t=Object.keys(r),e=[];for(let s=0;s<t.length;s++)e.push(t[s]+"_"+r[t[s]]);return e.length?e.join(":"):ye.DEFAULT_VALUE}const $d=wi.LOCALES,M1=r=>Gs.getInstance().setup(r),I1=()=>Gs.getInstance().json(),Gd=r=>(function(t,e){const s=ua(t);try{return V2(s,e)}catch(i){return console.error(i),s}})(r,Gs.getInstance().options),w1=ua,k1=function(r,t,e){if(r==="default")return t+"_"+e;const s=S1(r);return s[t]=e,R1(s)},Yd=S1,O1=R1;var D1=function(r,t,e,s){return new(e||(e=Promise))(function(i,n){function o(h){try{c(s.next(h))}catch(u){n(u)}}function a(h){try{c(s.throw(h))}catch(u){n(u)}}function c(h){var u;h.done?i(h.value):(u=h.value,u instanceof e?u:new e(function(x){x(u)})).then(o,a)}c((s=s.apply(r,[])).next())})};let Dl={},Qd=null;function P1(r){var t,e;const s=r?.match(/^clearspeak-(.*)/);return Qd=(e=(t=s&&s[1])!==null&&t!==void 0?t:Qd)!==null&&e!==void 0?e:"default",Qd}const Na=new Map,Zd=new Map;let J2=0;function K2(r,t){const e=Na.get(t);(function(n,o){const a=n.pool.lookup("speechRules"),c=P1(n.settings.speechRules);Dl=Yd(c);for(const h of o)n.factory.get("variable")(n.factory,{name:"csprf_"+h,setter:u=>{Dl[h]=u,a.setValue("clearspeak-"+O1(Dl))},getter:()=>Dl[h]||"Auto"},n.pool)})(r,Object.keys(e));const s=[];for(const n of Object.getOwnPropertyNames(e))s.push({title:n,values:e[n].map(o=>o.replace(RegExp("^"+n+"_"),"")),variable:"csprf_"+n});const i=new Fg("Clearspeak Preferences","",s,"alphabetical","square",r);return{type:"command",id:"ClearspeakPreferences",content:"Select Preferences",action:()=>i.post()}}function B1(r,t,e){return D1(this,void 0,void 0,function*(){var s,i;const n=h=>{e(r.factory.get("subMenu")(r.factory,{items:h,id:"Clearspeak"},t))};if(!r.settings.speech||!r.settings.enrich)return void n([]);const o=r.pool.lookup("locale").getValue();if(yield(function(h,u){return D1(this,void 0,void 0,function*(){Na.has(u)||(yield h.mathItem.generatorPool.getLocalePreferences(Na))})})(r,o),!Na.get(o))return void n([]);const a=K2(r,o);let c=[];if(r.settings.speech){const h=r.mathItem,u=(s=h?.explorers)===null||s===void 0?void 0:s.speech,x=P1(r.settings.speechRules);c=c.concat((function(Rt){return[{type:"radio",content:"No Preferences",id:"clearspeak-default",variable:"speechRules"},{type:"radio",content:"Current Preferences",id:"clearspeak-"+Rt,variable:"speechRules"},{type:"rule"}]})(x));const A=u?.refocus,I=(i=A?.getAttribute("data-semantic-id"))!==null&&i!==void 0?i:null,q=J2++;yield h.generatorPool.getRelevantPreferences(h,I,Zd,q);const et=Zd.get(q);if(Zd.delete(q),et){const Rt=(function(Ce,Ns,ls){const Er=Na.get(ls);return[{type:"label",content:"Preferences for "+Ns},{type:"rule"}].concat(Er[Ns].map(function(Ca){const[La,cu]=Ca.split("_");return{type:"radioCompare",content:cu,id:"clearspeak-"+k1(Ce,La,cu),variable:"speechRules",comparator:(Af,Sf)=>{if(Af===Sf)return!0;
94if(cu!=="Auto")return!1;const[lb,cb]=Af.split("-"),[hb]=Sf.split("-");return lb===hb&&!Yd(cb)[La]}}}))})(x,et,o);c=c.concat(Rt)}}c.splice(2,0,a),n(c)})}Yi.DynamicSubmenus.set("Clearspeak",[B1,"speech"]);let Pl=null;function F1(r,t,e){if(Pl)return void e(Pl);const s=[];for(const i of $d.keys())i!=="nemeth"&&i!=="euro"&&s.push({type:"radio",id:i,content:$d.get(i)||i,variable:"locale"});s.sort((i,n)=>i.content.localeCompare(n.content,"en")),Pl=r.factory.get("subMenu")(r.factory,{items:s,id:"Language"},t),e(Pl)}Yi.DynamicSubmenus.set("A11yLanguage",[F1,"speech"]);const va=Fe.os==="MacOS";function jr(r){const t=Fe.document,e=t.createElement("textarea");e.value=r,e.setAttribute("readonly",""),e.style.cssText="height: 1px; width: 1px; padding: 1px; position: absolute; left: -10px",t.body.appendChild(e),e.select();try{t.execCommand("copy")}catch(s){alert(`Can't copy to clipboard: ${s.message}`)}t.body.removeChild(e)}function j1(r,t,e){return(s,i,n)=>{(function(o,a,c){if(o){for(const h of o.childNodes)if(h.isKind("annotation")){const u=$2(h,a);if(u){const x=h.childNodes.reduce((A,I)=>A+I.toString(),"");c.push([u,x])}}}})((function(o){var a;let c=(a=o.mathItem)===null||a===void 0?void 0:a.root;for(;c&&!c.isKind("semantics");){if(c.isToken||c.childNodes.length!==1)return null;c=c.childNodes[0]}return c})(s),t,e),n(H1(s,i,e,r))}}function U1(r){return(t,e,s)=>{const i=r.slice();r.length=0,s(H1(t,e,i,()=>jr(Bl.trim())))}}function $2(r,t){const e=r.attributes.get("encoding");for(const s of Object.keys(t))if(t[s].includes(e))return s;return null}let Bl="";function H1(r,t,e,s){return r.factory.get("subMenu")(r.factory,{items:e.map(([i,n])=>({type:"command",id:i,content:i,action:()=>{Bl=n,s()}})),id:"annotations"},t)}class En extends Qr{static post(t){return super.post(t)}html(t){var e;(e=t.extraNodes)!==null&&e!==void 0||(t.extraNodes=[]);const s=t.adaptor.node("input",{type:"button",value:"Copy to Clipboard","data-drag":"none"});return s.addEventListener("click",this.copyToClipboard.bind(this)),t.extraNodes.push(s),t.code&&(t.message="<pre>"+this.formatSource(t.message)+"</pre>"),super.html(t)}formatSource(t){return t.trim().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}}class tu extends ud{static fromJson(t,{content:e,variable:s,id:i,comparator:n},o){return new this(o,e,s,i,n)}constructor(t,e,s,i,n){super(t,e,s,i),this.comparator=n,this.role="menuitemradiocompare"}updateAria(){this.html.setAttribute("aria-checked",this.comparator(this.variable.getValue(),this.id)?"true":"false")}updateSpan(){this.span.style.display=this.comparator(this.variable.getValue(),this.id)?"":"none"}}class _1 extends Xa{constructor(){super(...arguments),this.options={filterSRE:!0,filterTex:!0,texHints:!0,semantics:!1},this.mathItem=null}visitTree(t,e=null,s={}){return this.mathItem=e,Ws(this.options,s),this.visitNode(t,"")}visitTeXAtomNode(t,e){return this.options.texHints?super.visitDefault(t,e):t.childNodes[0]&&t.childNodes[0].childNodes.length===1?this.visitNode(t.childNodes[0],e):`${e}<mrow${this.getAttributes(t)}>
95`+this.childNodeMml(t,e+"  ",`
96`)+`${e}</mrow>`}visitMathNode(t,e){if(!this.options.semantics||this.mathItem.inputJax.name!=="TeX")return super.visitDefault(t,e);const s=t.childNodes.length&&t.childNodes[0].childNodes.length>1;return`${e}<math${this.getAttributes(t)}>
97${e}  <semantics>
98`+(s?e+`    <mrow>
99`:"")+this.childNodeMml(t,e+(s?"      ":"    "),`
100`)+(s?e+`    </mrow>
101`:"")+`${e}    <annotation encoding="application/x-tex">`+this.mathItem.math+`</annotation>
102${e}  </semantics>
103${e}</math>`}getAttributeList(t){const e=super.getAttributeList(t);if(this.options.filterTex&&(delete e["data-latex"],delete e["data-latex-item"]),this.options.filterSRE){const s=Object.keys(e).filter(i=>i.match(/^(?:data-semantic-.*?|data-speech-node|role|aria-(?:level|posinset|setsize|owns))$/));for(const i of s)delete e[i]}return e}}var Fl=function(r,t,e,s){return new(e||(e=Promise))(function(i,n){function o(h){try{c(s.next(h))}catch(u){n(u)}}function a(h){try{c(s.throw(h))}catch(u){n(u)}}function c(h){var u;h.done?i(h.value):(u=h.value,u instanceof e?u:new e(function(x){x(u)})).then(o,a)}c((s=s.apply(r,[])).next())})};const De=cr;class _t{get isLoading(){return _t.loading>0}get loadingPromise(){return this.isLoading?(_t._loadingPromise||(_t._loadingPromise=new Promise((t,e)=>{_t._loadingOK=t,_t._loadingFailed=e})),_t._loadingPromise):Promise.resolve()}about(){const t=[];if(t.push("Input Jax: "+this.document.inputJax.map(e=>e.name).join(", ")),t.push("Output Jax: "+this.document.outputJax.name),t.push("Document Type: "+this.document.kind),De&&De.loader){t.push("<hr/>Modules Loaded:");const e=De._.components.package.Package,s=De.loader.versions;for(const i of Array.from(e.packages.keys()).sort(this.sortPackages)){const n=s.get(e.resolvePath(i));
vendor: 9,060 bytes, lines 103-104
103n&&t.push(`&#xA0;&#xA0;&#xA0;&#xA0;${i} <mjx-v>(${n})</mjx-v>`)}}Qr.post({title:"MathJax <mjx-v>v"+gs.version+"</mjx-v>",message:t.join("<br/>"),adaptor:this.document.adaptor,styles:{".mjx-dialog":{"max-height":"calc(min(20em, 85%))"},"mjx-dialog > div":{"white-space":"nowrap"},"dialog.mjx-dialog-help > mjx-dialog > div":{"white-space":"normal"},"mjx-v":{"font-size":"80%"}},extraNodes:[this.document.adaptor.node("a",{href:"https://www.mathjax.org","data-drag":"false",target:"_blank"},[this.document.adaptor.text("https://www.mathjax.org")])]})}sortPackages(t,e){const[s,i]=t.includes("/")?t.split(/\//):["",t],[n,o]=e.includes("/")?e.split(/\//):["",e];return s===n?i<o?-1:1:s.charAt(0)==="["?n.charAt(0)==="["&&s<n?-1:1:n.charAt(0)==="["||s<n?-1:1}help(){Qr.post({title:"MathJax Help",message:["<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, the mechanism used to display equations,"," how to handle equations that are too wide, and the language to use for"," MathJax's menus and error messages (not yet implemented in v4).","</p>","<p><b>Accessibility</b>: MathJax can work with screen"," readers to make mathematics accessible to the visually impaired."," Turn on speech or braille generation to enable creation of speech strings"," and the ability to investigate expressions interactively.  You can control"," the style of the explorer in its menu.</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 scale 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(`
104`),adaptor:this.document.adaptor,extraNodes:[this.document.adaptor.node("a",{href:"https://www.mathjax.org","data-drag":"none"},[this.document.adaptor.text("https://www.mathjax.org")])]})}mathMLCode(){En.post({title:"MathJax MathML Expression",message:this.menu.mathItem?this.toMML(this.menu.mathItem):"",adaptor:this.document.adaptor,code:!0})}originalText(){var t,e;En.post({title:"MathJax Original Source",message:(e=(t=this.menu.mathItem)===null||t===void 0?void 0:t.math)!==null&&e!==void 0?e:"",adaptor:this.document.adaptor,code:!0})}annotationBox(){En.post({title:"MathJax Annotation Text",message:Bl,adaptor:this.document.adaptor,code:!0})}svgImage(){return Fl(this,void 0,void 0,function*(){En.post({title:"MathJax SVG Image",message:yield this.toSVG(this.menu.mathItem),adaptor:this.document.adaptor,code:!0})})}speechText(){var t,e,s;En.post({title:"MathJax Speech Text",message:(s=(e=(t=this.menu.mathItem)===null||t===void 0?void 0:t.outputData)===null||e===void 0?void 0:e.speech)!==null&&s!==void 0?s:"",adaptor:this.document.adaptor,code:!0})}brailleText(){var t,e,s;En.post({title:"MathJax Braille Text",message:(s=(e=(t=this.menu.mathItem)===null||t===void 0?void 0:t.outputData)===null||e===void 0?void 0:e.braille)!==null&&s!==void 0?s:"",adaptor:this.document.adaptor,code:!0})}errorMessage(){En.post({title:"MathJax Error Message",message:this.menu.mathItem?this.menu.errorMsg:"",adaptor:this.document.adaptor,code:!0})}zoomBox(){let t="";if(this.menu.mathItem){const e=this.menu.mathItem.typesetRoot,s=this.document.adaptor.fontSize(e),i=e.cloneNode(!0);i.style.margin="0",t=`<div style="font-size: ${s*parseFloat(this.settings.zscale)/100}px">${i.outerHTML}</div>`}Qr.post({title:"MathJax Zoomed Expression",message:t,adaptor:this.document.adaptor,styles:{"mjx-dialog > div":{padding:"1.8em"}}})}constructor(t,e={}){this.settings=null,this.defaultSettings=null,this.menu=null,this.current=null,this.MmlVisitor=new _1,this.jax={CHTML:null,SVG:null},this.rerenderStart=K.LAST,this.requiredExtensions=[],this.document=t,this.options=Ws(ms({},this.constructor.OPTIONS),e),this.initSettings(),this.mergeUserSettings(),this.initMenu(),this.applySettings()}initSettings(){var t;this.settings=this.options.settings,this.jax=this.options.jax;const e=this.document.outputJax;this.jax[e.name]=e,this.settings.renderer=e.name,this.settings.scale=e.options.scale,e.options.displayOverflow&&(this.settings.overflow=e.options.displayOverflow.substring(0,1).toUpperCase()+e.options.displayOverflow.substring(1).toLowerCase()),this.settings.breakInline=(t=e.options.linebreaks)===null||t===void 0?void 0:t.inline,this.defaultSettings=Object.assign({},this.document.options.a11y,this.settings),this.setA11y({roleDescription:this.settings.roleDescription})}initMenu(){const t=new Pg([["contextMenu",Yi.fromJson.bind(Yi)],["radioCompare",tu.fromJson.bind(tu)]]);this.menu=t.parse({type:"contextMenu",id:"MathJax_Menu",pool:[this.variable("showSRE"),this.variable("showTex"),this.variable("texHints"),this.variable("semantics"),this.variable("zoom"),this.variable("zscale"),this.variable("renderer",i=>this.setRenderer(i)),this.variable("overflow",i=>this.setOverflow(i)),this.variable("breakInline",i=>this.setInlineBreaks(i)),this.variable("alt"),this.variable("cmd"),this.variable("ctrl"),this.variable("shift"),this.variable("scale",i=>this.setScale(i)),this.a11yVar("speech",i=>this.setSpeech(i)),this.a11yVar("braille",i=>this.setBraille(i)),this.variable("brailleCode",i=>this.setBrailleCode(i)),this.a11yVar("brailleSpeech",i=>this.setBrailleSpeech(i)),this.a11yVar("brailleCombine",i=>this.setBrailleCombine(i)),this.a11yVar("highlight",i=>this.setHighlight(i)),this.a11yVar("backgroundColor",i=>this.setColor("bg",i)),this.a11yVar("backgroundOpacity",i=>this.setColor("bg",null,i)),this.a11yVar("foregroundColor",i=>this.setColor("fg",i)),this.a11yVar("foregroundOpacity",i=>this.setColor("fg",null,i)),this.a11yVar("subtitles"),this.a11yVar("viewBraille"),this.a11yVar("voicing"),this.a11yVar("roleDescription",()=>this.setRoleDescription()),this.a11yVar("help"),this.a11yVar("locale",i=>this.setLocale(i)),this.variable("speechRules",i=>{const[n,o]=i.split("-");this.document.options.sre.domain=n,this.document.options.sre.style=o,this.rerender(K.COMPILED)}),this.a11yVar("magnification"),this.a11yVar("magnify"),this.a11yVar("treeColoring"),this.a11yVar("infoType"),this.a11yVar("infoRole"),this.a11yVar("infoPrefix"),this.variable("autocollapse"),this.variable("collapsible",i=>this.setCollapsible(i)),this.variable("enrich",i=>this.setEnrichment(i)),this.a11yVar("inTabOrder",i=>this.setTabOrder(i)),this.a11yVar("tabSelects"),this.variable("assistiveMml",i=>this.setAssistiveMml(i))],items:[this.submenu("Show","Show Math As",[this.command("MathMLcode","MathML Code",()=>this.mathMLCode()),this.command("Original","Original Form",()=>this.originalText()),this.rule(),this.command("Speech","Speech Text",()=>this.speechText(),{disabled:!0}),this.command("Braille","Braille Code",()=>this.brailleText(),{disabled:!0}),this.command("SVG","SVG Image",()=>this.svgImage(),{disabled:!0}),this.submenu("ShowAnnotation","Annotation"),this.rule(),this.command("Error","Error Message",()=>this.errorMessage(),{disabled:!0})]),this.submenu("Copy","Copy to Clipboard",[this.command("MathMLcode","MathML Code",()=>this.copyMathML()),this.command("Original","Original Form",()=>this.copyOriginal()),this.rule(),this.command("Speech","Speech Text",()=>this.copySpeechText(),{disabled:!0}),this.command("Braille","Braille Code",()=>this.copyBrailleText(),{disabled:!0}),this.command("SVG","SVG Image",()=>this.copySvgImage(),{disabled:!0}),this.submenu("CopyAnnotation","Annotation"),this.rule(),this.command("Error","Error Message",()=>this.copyErrorMessage(),{disabled:!0})]),this.rule(),this.submenu("Settings","Math Settings",[this.submenu("Renderer","Math Renderer",this.radioGroup("renderer",[["CHTML"],["SVG"]])),this.submenu("Overflow","Wide Expressions",[this.radioGroup("overflow",[["Overflow"],["Scroll"],["Linebreak"],["Scale"],["Truncate"],["Elide"]]),this.rule(),this.checkbox("BreakInline","Allow In-line Breaks","breakInline")]),this.rule(),this.submenu("MathmlIncludes","MathML/SVG has",[this.checkbox("showSRE","Semantic attributes","showSRE"),this.checkbox("showTex","LaTe
104X attributes","showTex"),this.checkbox("texHints","TeX hints","texHints"),this.checkbox("semantics","Original as annotation","semantics")]),this.submenu("Language","Language"),this.rule(),this.submenu("ZoomTrigger","Zoom Trigger",[this.command("ZoomNow","Zoom Once Now",()=>this.zoom(null,"")),this.rule(),this.radioGroup("zoom",[["Click"],["DoubleClick","Double-Click"],["NoZoom","No Zoom"]]),this.rule(),this.label("TriggerRequires","Trigger Requires:"),this.checkbox(va?"Option":"Alt",va?"Option":"Alt","alt"),this.checkbox("Command","Command","cmd",{hidden:!va}),this.checkbox("Control","Control","ctrl",{hidden:va}),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...",()=>this.scaleAllMath()),this.rule(),this.command("Reset","Reset to defaults",()=>this.resetDefaults())]),this.rule(),this.label("Accessibility","   Accessibility:"),this.submenu("Speech","    Speech",[this.checkbox("Generate","Generate","speech"),this.checkbox("Subtitles","Show Subtitles","subtitles"),this.checkbox("Auto Voicing","Auto Voicing","voicing"),this.rule(),this.label("Rules","Rules:"),this.submenu("Mathspeak","Mathspeak",this.radioGroup("speechRules",[["mathspeak-default","Verbose"],["mathspeak-brief","Brief"],["mathspeak-sbrief","Superbrief"]])),this.submenu("Clearspeak","Clearspeak",this.radioGroup("speechRules",[["clearspeak-default","Auto"]])),this.rule(),this.submenu("A11yLanguage","Language")]),this.submenu("Braille","    Braille",[this.checkbox("Generate","Generate","braille"),this.checkbox("Subtitles","Show Subtitles","viewBraille"),this.checkbox("BrailleSpeech","Replace Speech","brailleSpeech",{hidden:!0}),this.checkbox("BrailleCombine","Combine with Speech","brailleCombine"),this.rule(),this.label("Code","Code Format:"),this.radioGroup("brailleCode",[["nemeth","Nemeth"],["ueb","UEB"],["euro","Euro"]])]),this.submenu("Explorer","    Explorer",[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")]),this.rule(),this.submenu("Role Description","Describe math as",[this.radioGroup("roleDescription",[["MathJax expression"],["MathJax"],["math"],["clickable math"],["explorable math"],["none"]])]),this.checkbox("Math Help","Help message on focus","help")]),this.submenu("Options","    Options",[this.checkbox("Enrich","Semantic Enrichment","enrich"),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.submenu("TabSelects","Tabbing Focuses on",[this.radioGroup("tabSelects",[["all","Whole Expression"],["last","Last Explored Node"]])]),this.rule(),this.checkbox("AssistiveMml","Include Hidden MathML","assistiveMml")]),this.rule(),this.command("About","About MathJax",()=>this.about()),this.command("Help","MathJax Help",()=>this.help())]});const e=this.menu;e.settings=this.settings,e.findID("Settings","Overflow","Elide").disable(),e.findID("Braille","ueb").hide(),e.setJax(this.jax),this.checkLoadableItems();const s=[];Yi.DynamicSubmenus.set("ShowAnnotation",[j1(()=>this.annotationBox(),this.options.annotationTypes,s),""]),Yi.DynamicSubmenus.set("CopyAnnotation",[U1(s),""]),(function(i){Bg(Object.assign(Object.assign({},ne),Qn),i)})(this.document.document)}checkLoadableItems(){var t,e,s,i,n,o;if(De&&De._&&De.loader&&De.startup){const a=this.settings,c=this.document.options;(a.enrich||a.speech&&c.enableSpeech||a.braille&&c.enableBraille)&&!(!((e=(t=De._)===null||t===void 0?void 0:t.a11y)===null||e===void 0)&&e.explorer)&&this.loadA11y("explorer"),a.collapsible&&!(!((i=(s=De._)===null||s===void 0?void 0:s.a11y)===null||i===void 0)&&i.c
104omplexity)&&this.loadA11y("complexity"),a.assistiveMml&&!(!((o=(n=De._)===null||n===void 0?void 0:n.a11y)===null||o===void 0)&&o["assistive-mml"])&&this.loadA11y("assistive-mml")}else{const a=this.menu;for(const c of Object.keys(this.jax))this.jax[c]||a.findID("Settings","Renderer",c).disable();a.findID("Speech").disable(),a.findID("Braille").disable(),a.findID("Explorer").disable(),a.findID("Options","AutoCollapse").disable(),a.findID("Options","Collapsible").disable(),a.findID("Options","Enrich").disable(),a.findID("Options","AssistiveMml").disable()}}enableAccessibilityItems(t,e){const s=this.menu.findID(t).submenu;for(const i of s.items.slice(1))i instanceof pd||(!e||i instanceof ha&&!i.submenu.items.length?i.disable():i.enable())}mergeUserSettings(){try{const t=localStorage.getItem(_t.MENU_STORAGE);if(!t)return;const e=JSON.parse(t);Object.assign(this.settings,e),this.setA11y(e)}catch(t){console.log("MathJax localStorage error: "+t.message)}}saveUserSettings(){const t={};for(const e of Object.keys(this.settings))this.settings[e]!==this.defaultSettings[e]&&(t[e]=this.settings[e]);try{Object.keys(t).length?localStorage.setItem(_t.MENU_STORAGE,JSON.stringify(t)):localStorage.removeItem(_t.MENU_STORAGE)}catch(e){console.log("MathJax localStorage error: "+e.message)}}setA11y(t){var e,s;!((s=(e=De._)===null||e===void 0?void 0:e.a11y)===null||s===void 0)&&s.explorer&&De._.a11y.explorer_ts.setA11yOptions(this.document,t)}getA11y(t){var e,s;if(!((s=(e=De._)===null||e===void 0?void 0:e.a11y)===null||s===void 0)&&s.explorer)return this.document.options.a11y[t]!==void 0?this.document.options.a11y[t]:this.document.options.sre[t]}applySettings(){this.setTabOrder(this.settings.inTabOrder),this.document.options.enableAssistiveMml=this.settings.assistiveMml,this.enableAccessibilityItems("Speech",this.settings.speech),this.enableAccessibilityItems("Braille",this.settings.braille),this.setAccessibilityMenus();const t=this.settings.renderer.replace(/[^a-zA-Z0-9]/g,"")||"CHTML";(_t._loadingPromise||Promise.resolve()).then(()=>{const e=this.settings;if(this.applyRendererOptions(this.document.outputJax),!e.speechRules){const s=this.document.options.sre;e.speechRules=`${s.domain||"clearspeak"}-${s.style||"default"}`}t!==this.defaultSettings.renderer&&this.document.whenReady(()=>this.setRenderer(t,!1))})}setOverflow(t){this.document.outputJax.options.displayOverflow=t.toLowerCase(),_t.loading||this.document.rerenderPromise()}setInlineBreaks(t){this.document.outputJax.options.linebreaks.inline=t,_t.loading||this.document.rerenderPromise()}setScale(t){this.document.outputJax.options.scale=parseFloat(t),_t.loading||this.document.rerenderPromise()}setRenderer(t,e=!0){if(Object.hasOwn(this.jax,t)&&this.jax[t])return this.applyRendererOptions(this.jax[t]),this.setOutputJax(t,e);const s=t.toLowerCase();return new Promise((i,n)=>{this.loadComponent("output/"+s,()=>{const o=De.startup;if(!(s in o.constructors))return n(new Error(`Component ${s} not loaded`));o.useOutput(s,!0),o.output=this.applyRendererOptions(o.getOutputJax()),o.output.setAdaptor(this.document.adaptor),o.output.initialize(),this.jax[t]=o.output,this.setOutputJax(t,e).then(()=>i()).catch(a=>n(a))})})}applyRendererOptions(t){const e=this.settings,s=t.options;return s.scale=parseFloat(e.scale),s.displayOverflow=e.overflow.toLowerCase(),s.linebreaks&&(s.linebreaks.inline=e.breakInline),t}setOutputJax(t,e=!0){this.jax[t].setAdaptor(this.document.adaptor),this.document.outputJax=this.jax[t];const s=this.loadRequiredExtensions();return e?s.then(()=>gs.handleRetriesFor(()=>this.rerender())):s.then(()=>{})}loadRequiredExtensions(){const t=this.document.outputJax.name.toLowerCase(),e=[];for(const s of this.requiredExtensions)e.push(De.loader.load(`[${s}]/${t}`));return this.requiredExtensions=[],Promise.all(e)}addRequiredExtensions(t){if(t){const e=new Set([...this.requiredExtensions,...t]);this.requiredExtensions=[...e]}}setTabOrder(t){const e=this.menu.findID("Options","TabSelects");t?e.enable():e.disable(),this.menu.store.inTaborder(t)}setAssistiveMml(t){var e,s;this.document.options.enableAssistiveMml=t,t&&this.noRerender(()=>{this.settings.speech&&this.menu.pool.lookup("speech").setValue(!1),this.settings.braille&&this.menu.pool.lookup("braille").setValue(!1)}),!t||!((s=(e=De._)===null||e===void 0?void 0:e.a11y)===null||s===void 0)&&s["assistive-mml"]?this.rerender():this.loadA11y("assistive-mml")}setAccessibilityMenus(){const t=this.settings.enrich,e=t?"enable":"disable";["Speech","Braille","Explorer"].forEach(i=>
104this.menu.findID(i)[e]());const s=this.document.options;s.enableSpeech=s.enableBraille=s.enableExplorer=t,t||(this.settings.collapsible=!1,this.document.options.enableCollapsible=!1)}setSpeech(t){var e,s;this.enableAccessibilityItems("Speech",t),this.document.options.enableSpeech=t,t&&(this.settings.assistiveMml&&this.noRerender(()=>this.menu.pool.lookup("assistiveMml").setValue(!1)),this.settings.brailleSpeech&&this.noRerender(()=>this.menu.pool.lookup("brailleSpeech").setValue(!1))),!t||!((s=(e=De._)===null||e===void 0?void 0:e.a11y)===null||s===void 0)&&s.explorer?this.rerender(K.COMPILED):this.loadA11y("explorer")}setBraille(t){var e,s;this.enableAccessibilityItems("Braille",t),this.document.options.enableBraille=t,t&&this.settings.assistiveMml&&this.noRerender(()=>this.menu.pool.lookup("assistiveMml").setValue(!1)),!t||!((s=(e=De._)===null||e===void 0?void 0:e.a11y)===null||s===void 0)&&s.explorer?this.rerender(K.COMPILED):this.loadA11y("explorer")}setBrailleCode(t){this.document.options.sre.braille=t,this.rerender(K.COMPILED)}setBrailleSpeech(t){t&&this.settings.speech?this.noRerender(()=>this.menu.pool.lookup("speech").setValue(!1)):this.enableAccessibilityItems("Speech",!0),this.settings.brailleCombine=this.document.options.a11y.brailleCombine=!1,this.rerender(K.COMPILED)}setBrailleCombine(t){this.settings.brailleSpeech&&this.menu.pool.lookup("brailleSpeech").setValue(!1),this.settings.brailleSpeech=this.document.options.a11y.brailleSpeech=!1,this.rerender(K.COMPILED)}setLocale(t){this.document.options.sre.locale=t,this.rerender(K.COMPILED)}setRoleDescription(){this.rerender(K.COMPILED)}setEnrichment(t){var e,s;this.document.options.enableEnrichment=t,this.setAccessibilityMenus(),!t||!((s=(e=De._)===null||e===void 0?void 0:e.a11y)===null||s===void 0)&&s.explorer?this.rerender(K.COMPILED):this.loadA11y("explorer")}setCollapsible(t){var e,s;this.document.options.enableComplexity=t,t&&!this.settings.enrich&&(this.settings.enrich=this.document.options.enableEnrichment=!0,this.setAccessibilityMenus()),t||this.menu.pool.lookup("highlight").setValue("None"),!t||!((s=(e=De._)===null||e===void 0?void 0:e.a11y)===null||s===void 0)&&s.complexity?this.rerender(K.COMPILED):this.loadA11y("complexity")}setHighlight(t){var e,s;if(t!=="None"){if(!this.settings.collapsible){const i=this.menu.pool.lookup("collapsible");i.setValue(!0),(s=(e=i.items[0])===null||e===void 0?void 0:e.executeCallbacks_)===null||s===void 0||s.call(e)}_t.loadingPromises.has("a11y/complexity")||this.rerender(K.COMPILED)}}setColor(t,e,s){const i=this.document.options.a11y;e||(e=i[t==="fg"?"foregroundColor":"backgroundColor"]),s||(s=i[t==="fg"?"foregroundOpacity":"backgroundOpacity"]),De._.a11y.explorer.Region.LiveRegion.setColor(t,1,e.toLowerCase(),parseInt(s)/100)}scaleAllMath(){const t=(100*parseFloat(this.settings.scale)).toFixed(1).replace(/.0$/,""),e=prompt("Scale all mathematics (compared to surrounding text) by",t+"%");if(this.current){const s=this.menu.mathItem.explorers.speech;s.refocus=this.current,s.focus()}if(e)if(e.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)){const s=parseFloat(e)/100;s?this.menu.pool.lookup("scale").setValue(String(s)):alert("The scale should not be zero")}else alert("The scale should be a percentage (e.g., 120%)")}resetDefaults(){this.noRerender(()=>{const t=this.menu.pool,e=this.defaultSettings;for(const s of Object.keys(e)){const i=t.lookup(s);if(i){if(i.getValue()!==e[s]){i.setValue(e[s]);const n=i.items[0];n&&n.executeCallbacks_()}}else Object.hasOwn(this.settings,s)&&(this.settings[s]=e[s])}}),this.rerender(K.COMPILED)}checkComponent(t){const e=_t.loadingPromises.get(t);e&&gs.retryAfter(e)}loadComponent(t,e){if(_t.loadingPromises.has(t))return;const s=De.loader;if(!s)return;_t.loading++;const i=s.load(t).then(()=>{_t.loading--,_t.loadingPromises.delete(t),_t.loading===0&&_t._loadingPromise&&(_t._loadingPromise=null,_t._loadingOK()),e()}).catch(n=>{_t._loadingPromise?(_t._loadingPromise=null,_t._loadingFailed(n)):console.log(n)});_t.loadingPromises.set(t,i)}loadA11y(t){const e=!K.ENRICHED;this.loadComponent("a11y/"+t,()=>{var s,i;const n=De.startup;gs.handlers.unregister(n.handler),n.handler=n.getHandler(),gs.handlers.register(n.handler);const o=this.document;this.document=n.document=n.getDocument(),this.document.processed=o.processed,this.document.menu=this,o.webworker&&(this.document.webworker=o.webworker),this.setA11y(this.settings),this.defaultSettings=Object.assign({},this.document.options.a11y,((i=(s=De.config)===null||s===void 0?void 0:s.options)===null||i===void 0?void 0:i.a11y)||{},this.defaultSettings),this.document.outputJax.reset(),this.transferMathList(o),this.document.processed=o.processed,_t._loadingPromise||(this.document.outputJax.reset(),gs.handleRetriesFor(()=>{this.rerender(t==="complexity"||e?K.COMPILED:K.TYPESET)}))})}transferMathList(t){const e=this.document.options.MathItem;for(const s of t.math){const i=new e;Object.assign(i,s),this.document.math.push(i)}}toMML(t){return this.MmlVisitor.visitTree(t.root,t,{filterSRE:!this.settings.showSRE,filterTex:!this.settings.showTex,texHints:this.settings.texHints,semantics:this.settings.semantics&&t.inputJax.name!=="MathML"})}toSVG(t){return Fl(this,void 0,void 0,function*(){const e=this.jax.SVG;if(!e)return"SVG can't be produced.<br>Try switching to SVG output first.";const s=e.adaptor,i=e.options.fontCache,n=!!t.root.getProperty("process-breaks");if(i!=="global"&&(t.display||!n)&&s.getAttribute(t.typesetRoot,"jax")==="SVG"){for(const o of s.childNodes(t.typesetRoot))if(s.kind(o)==="svg")return this.formatSvg(s.serializeXML(o))}return this.typesetSVG(t,i,n)})}typesetSVG(t,e,s){return Fl(this,void 0,void 0,function*(){const i=this.jax.SVG,n=i.html("div");e==="global"&&(i.options.fontCache="local");const o=t.root;return t.root=o.copy(!0),t.root.setInheritedAttributes({},t.display,0,!1),s&&(i.unmarkInlineBreaks(t.root),t.root.setProperty("inlineMarked",!1)),yield gs.handleRetriesFor(()=>{i.toDOM(t,n,i.document)}),t.root=o,i.options.fontCache=e,this.formatSvg(i.adaptor.serializeXML(n))})}formatSvg(t){const e=this.constructor.SvgCss,s=(t=(t=t.match(/^<svg.*?><defs>/)?t.replace(/<defs>/,`<defs><style>${e}</style>`):t.replace(/^(<svg.*?>)/,`$1<defs><style>${e}</style></defs>`)).replace(/ (?:role|focusable)=".*?"/g,"").replace(/"currentColor"/g,'"black"')).split(/(<\/?[a-zA-Z].*?>)/);for(let i=2,n="";i<s.length;i+=2){const o=s[i-1],a=s[i+1];o.charAt(1)!=="/"&&o.charAt(o.length-2)!=="/"&&(n+="  "),a&&(a.charAt(1)==="/"&&(n=n.slice(2)),s[i+1]=a.replace(' xmlns:xlink="http://www.w3.org/1999/xlink"',"")),s[i]&&(s[i]=`
105  `+n+s[i].replace(/\n/g,`
106  `+n)),s[i]+=`
107`+n}return t=s.join(""),this.settings.showSRE||(t=t.replace(/ (?:data-semantic-.*?|data-speech-node)=".*?"/g,"")),this.settings.showTex||(t=t.replace(/ data-latex(?:-item)?=".*?"/g,"")),this.settings.texHints||(t=t.replace(/ data-mjx-(?:texclass|alternate|variant|pseudoscript|smallmatrix|mathaccent|auto-op|script-align|vbox)=".*?"/g,"").replace(/ data-mml-node="TeXAtom"/g,"")),`<?xml version="1.0" encoding="UTF-8" standalone="no"?>
108${t}`}zoom(t,e){t&&!this.isZoomEvent(t,e)||this.zoomBox()}isZoomEvent(t,e){return this.settings.zoom===e&&(!this.settings.alt||t.altKey)&&(!this.settings.ctrl||t.ctrlKey)&&
vendor: 8,549 bytes, lines 108-109
108(!this.settings.cmd||t.metaKey)&&(!this.settings.shift||t.shiftKey)}rerender(t=K.TYPESET){this.rerenderStart=Math.min(t,this.rerenderStart),!_t.loading&&De.startup.hasTypeset&&this.document.whenReady(()=>Fl(this,void 0,void 0,function*(){this.rerenderStart<=K.COMPILED&&this.document.reset({inputJax:[]}),yield this.document.rerenderPromise(this.rerenderStart),this.rerenderStart=K.LAST}))}noRerender(t){_t.loading++;try{t(),_t.loading--}catch(e){throw _t.loading--,e}}copyMathML(){jr(this.toMML(this.menu.mathItem))}copyOriginal(){jr(this.menu.mathItem.math.trim())}copySvgImage(){this.toSVG(this.menu.mathItem).then(t=>{jr(t)})}copySpeechText(){jr(this.menu.mathItem.outputData.speech)}copyBrailleText(){jr(this.menu.mathItem.outputData.braille)}copyErrorMessage(){jr(this.menu.errorMsg.trim())}addMenu(t){this.addEvents(t),this.menu.store.insert(t.typesetRoot),t.typesetRoot.tabIndex=this.settings.inTabOrder?0:-1}addEvents(t){const e=t.typesetRoot;e.addEventListener("mousedown",()=>{var s,i;this.menu.mathItem=t,this.current=(i=(s=t.explorers)===null||s===void 0?void 0:s.speech)===null||i===void 0?void 0:i.current},!0),e.addEventListener("contextmenu",()=>{var s;this.menu.mathItem=t;const i=(s=t.explorers)===null||s===void 0?void 0:s.speech;i&&(t.outputData.nofocus=!this.current,i.refocus=this.current)},!0),e.addEventListener("keydown",()=>this.menu.mathItem=t,!0),e.addEventListener("click",s=>this.zoom(s,"Click"),!0),e.addEventListener("dblclick",s=>this.zoom(s,"DoubleClick"),!0)}clear(){this.menu.store.clear()}variable(t,e){return{name:t,getter:()=>this.settings[t],setter:s=>{this.settings[t]=s,e&&e(s),this.saveUserSettings()}}}a11yVar(t,e){return{name:t,getter:()=>this.getA11y(t),setter:s=>{this.settings[t]=s,this.setA11y({[t]:s}),e&&e(s),this.saveUserSettings()}}}submenu(t,e,s=[],i=!1){let n=[];for(const o of s)Array.isArray(o)?n=n.concat(o):n.push(o);return{type:"submenu",id:t,content:e,menu:{items:n},disabled:n.length===0||i}}command(t,e,s,i={}){return Object.assign({type:"command",id:t,content:e,action:s},i)}checkbox(t,e,s,i={}){return Object.assign({type:"checkbox",id:t,content:e,variable:s},i)}radioGroup(t,e){return e.map(s=>this.radio(s[0],s[1]||s[0],t))}radio(t,e,s,i={}){return Object.assign({type:"radio",id:t,content:e,variable:s},i)}label(t,e){return{type:"label",id:t,content:e}}rule(){return{type:"rule"}}}function W1(r){return class extends r{addMenu(t,e=!1){this.state()>=K.CONTEXT_MENU||(this.isEscaped||!t.options.enableMenu&&!e||t.menu.addMenu(this),this.state(K.CONTEXT_MENU))}getMenus(t){t.menu.menu.store.sort()}checkLoading(t){t.checkLoading()}}}function q1(r){var t;return t=class extends r{constructor(...e){super(...e),this.menu=new this.options.MenuClass(this,this.options.menuOptions);const s=this.constructor.ProcessBits;s.has("context-menu")||s.allocate("context-menu"),this.options.MathItem=W1(this.options.MathItem);const i=this.menu.settings,n=this.options,o=n.enableEnrichment=i.enrich;n.enableSpeech=i.speech&&o,n.enableBraille=i.braille&&o,n.enableComplexity=i.collapsible&&o,n.enableExplorer=o}addMenu(){if(!this.processed.isSet("context-menu")){for(const e of this.math)e.addMenu(this);this.processed.set("context-menu")}return this}getMenus(){this.menu.menu.store.sort()}checkLoading(){let e=!0;try{this._checkLoading(),e=!1}catch(s){if(!s.retry)throw s}return e}_checkLoading(){return this.menu.isLoading&&gs.retryAfter(this.menu.loadingPromise.catch(e=>console.log(e))),this.options.enableComplexity&&this.menu.checkComponent("a11y/complexity"),this.options.enableExplorer&&this.menu.checkComponent("a11y/explorer"),this}state(e,s=!1){return super.state(e,s),e<K.CONTEXT_MENU&&this.processed.clear("context-menu"),this}},t.OPTIONS=Object.assign(Object.assign({enableEnrichment:!0,enableComplexity:!0,enableSpeech:!0,enableBraille:!0,enableExplorer:!0,enableExplorerHelp:!0,enrichSpeech:"none",enrichError:(e,s,i)=>console.warn("Enrichment Error:",i)},r.OPTIONS),{MenuClass:_t,menuOptions:_t.OPTIONS,enableMenu:!0,sre:r.OPTIONS.sre||hs({}),a11y:r.OPTIONS.a11y||hs({}),renderActions:hs(Object.assign(Object.assign({},r.OPTIONS.renderActions),{addMenu:[K.CONTEXT_MENU],getMenus:[K.INSERTED+5,!1],checkLoading:[K.UNPROCESSED+1,e=>e.checkLoading(),"",!1]}))}),t}function V1(r){return r.documentClass=q1(r.documentClass),r}_t.MENU_STORAGE="MathJax-Menu-Settings",_t.OPTIONS={settings:{showSRE:!1,showTex:!1,texHints:!0,semantics:!1,zoom:"NoZoom",zscale:"200%",renderer:"CHTML",alt:!0,cmd:!1,ctrl:!1,shift:!1,scale:1,overflow:"Scroll",breakInline:!0,autocollapse:!1,collapsible:!1,enrich:!0,assistiveMml:!1,speech:!0,braille:!0,brailleCode:"nemeth",brailleSpeech:!1,brailleCombine:!1,speechRules:"clearspeak-default",roleDescription:"math",inTabOrder:!0,tabSelects:"all",help:!0},jax:{CHTML:null,SVG:null},annotationTypes:hs({TeX:["TeX","LaTeX","application/x-tex"],StarMath:["StarMath 5.0"],Maple:["Maple"],ContentMathML:["MathML-Content","application/mathml-content+xml"],OpenMath:["OpenMath"]})},_t.SvgCss=["svg a{fill:blue;stroke:blue}",'[data-mml-node="merror"]>g{fill:red;stroke:red}','[data-mml-node="merror"]>rect[data-background]{fill:yellow;stroke:none}',"[data-frame],[data-line]{stroke-width:70px;fill:none}",".mjx-dashed{stroke-dasharray:140}",".mjx-dotted{stroke-linecap:round;stroke-dasharray:0,140}","use[data-c]{stroke-width:3px}"].join(`
109`),_t.loading=0,_t.loadingPromises=new Map,_t._loadingPromise=null,_t._loadingOK=null,_t._loadingFailed=null,Dn("CONTEXT_MENU",170),MathJax.loader&&MathJax.loader.checkVersion("ui/menu",ui,"ui"),Ks({_:{a11y:{speech:{SpeechMenu:qc}},ui:{menu:{AnnotationMenu:zc,MJContextMenu:_c,Menu:Kc,MenuHandler:$c,MenuUtil:Vc,MmlVisitor:Jc,RadioCompare:Xc}}}}),MathJax.startup&&Vr&&MathJax.startup.extendHandler(r=>V1(r),20);const z1="http://www.w3.org/1998/Math/MathML";class jl extends Ia{findMath(t){const e=new Set;this.findMathNodes(t,e),this.findMathPrefixed(t,e);const s=this.adaptor.root(this.adaptor.document);return this.adaptor.kind(s)==="html"&&e.size===0&&this.findMathNS(t,e),this.processMath(e)}findMathNodes(t,e){for(const s of this.adaptor.tags(t,"math"))e.add(s)}findMathPrefixed(t,e){const s=this.adaptor.root(this.adaptor.document);for(const i of this.adaptor.allAttributes(s))if(i.name.substring(0,6)==="xmlns:"&&i.value===z1){const n=i.name.substring(6);for(const o of this.adaptor.tags(t,n+":math"))e.add(o)}}findMathNS(t,e){for(const s of this.adaptor.tags(t,"math",z1))e.add(s)}processMath(t){const e=this.adaptor,s=[];for(const i of t.values()){if(e.kind(e.parent(i))==="mjx-assistive-mml")continue;const n=e.getAttribute(i,"display")==="block"||e.getAttribute(i,"mode")==="display",o={node:i,n:0,delim:""},a={node:i,n:0,delim:""};s.push({math:e.outerHTML(i),start:o,end:a,display:n})}return s}}jl.OPTIONS={};class Ul{constructor(t={}){const e=this.constructor;this.options=Ws(ms({},e.OPTIONS),t)}setMmlFactory(t){this.factory=t}compile(t){const e=this.makeNode(t);return e.verifyTree(this.options.verify),e.setInheritedAttributes({},!1,0,!1),e.walkTree(this.markMrows),e}makeNode(t){const e=this.adaptor;let s=!1;const i=e.kind(t).replace(/^.*:/,"");let n=e.getAttribute(t,"data-mjx-texclass")||"";n&&(n=this.filterAttribute("data-mjx-texclass",n)||"");let o=n&&i==="mrow"?"TeXAtom":i;for(const a of this.filterClassList(e.allClasses(t)))a.match(/^MJX-TeXAtom-/)&&i==="mrow"?(n=a.substring(12),o="TeXAtom"):a==="MJX-fixedlimits"&&(s=!0);return this.factory.getNodeClass(o)?this.createMml(o,t,n,s):this.unknownNode(o,t)}createMml(t,e,s,i){const n=this.factory.create(t);return t!=="TeXAtom"||s!=="OP"||i||(n.setProperty("movesupsub",!0),n.attributes.setInherited("movablelimits",!0)),s&&(n.texClass=S[s],n.setProperty("texClass",n.texClass)),this.addAttributes(n,e),this.checkClass(n,e),this.addChildren(n,e),n}unknownNode(t,e){return this.factory.getNodeClass("html")&&this.options.allowHtmlInTokenNodes?this.factory.create("html").setHTML(e,this.adaptor):(this.error('Unknown node type "'+t+'"'),null)}addAttributes(t,e){let s=!1;for(const i of this.adaptor.allAttributes(e)){const n=i.name,o=this.filterAttribute(n,i.value);if(o!==null&&n!=="xmlns"){if(n.substring(0,9)==="data-mjx-")switch(n.substring(9)){case"alternate":t.setProperty("variantForm",!0);break;case"variant":t.attributes.set("mathvariant",o),t.setProperty("ignore-variant",!0),s=!0;break;case"smallmatrix":t.setProperty("smallmatrix",!0),t.setProperty("useHeight",!1);break;case"mathaccent":t.setProperty("mathaccent",o==="true");break;case"auto-op":t.setProperty("autoOP",o==="true");break;case"script-align":t.setProperty("scriptalign",o);break;
109case"vbox":t.setProperty("vbox",o);break;default:t.attributes.set(n,o)}else if(n!=="class"){const a=o.toLowerCase();a==="true"||a==="false"?t.attributes.set(n,a==="true"):s&&n==="mathvariant"||t.attributes.set(n,o)}}}}filterAttribute(t,e){return e}filterClassList(t){return t}addChildren(t,e){if(t.arity===0)return;const s=this.adaptor;for(const i of s.childNodes(e)){const n=s.kind(i);if(n!=="#comment")if(n==="#text")this.addText(t,i);else if(t.isKind("annotation-xml"))t.appendChild(this.factory.create("XML").setXML(i,s));else{const o=t.appendChild(this.makeNode(i));o.arity===0&&s.childNodes(i).length&&!o.isKind("html")&&(this.options.fixMisplacedChildren?this.addChildren(t,i):o.mError("There should not be children for "+o.kind+" nodes",this.options.verify,!0))}}t.isToken&&this.trimSpace(t)}addText(t,e){let s=this.adaptor.value(e);(t.isToken||t.getProperty("isChars"))&&t.arity?(t.isToken&&(s=Hu(s),s=this.normalizeSpace(s)),t.appendChild(this.factory.create("text").setText(s))):s.match(/\S/)&&this.error('Unexpected text node "'+s+'"')}checkClass(t,e){const s=[];for(const i of this.filterClassList(this.adaptor.allClasses(e)))i.substring(0,4)==="MJX-"?i==="MJX-variant"?t.setProperty("variantForm",!0):i.substring(0,11)!=="MJX-TeXAtom"&&t.attributes.set("mathvariant",this.fixCalligraphic(i.substring(3))):s.push(i);s.length&&t.attributes.set("class",s.join(" "))}fixCalligraphic(t){return t.replace(/caligraphic/,"calligraphic")}markMrows(t){if(t.isKind("mrow")&&!t.isInferred&&t.childNodes.length>=2){const e=t.childNodes[0],s=t.childNodes[t.childNodes.length-1];e.isKind("mo")&&e.attributes.get("fence")&&e.attributes.get("stretchy")&&s.isKind("mo")&&s.attributes.get("fence")&&s.attributes.get("stretchy")&&(e.childNodes.length&&t.setProperty("open",e.getText()),s.childNodes.length&&t.setProperty("close",s.getText()))}}normalizeSpace(t){return t.replace(/[\t\n\r]/g," ").replace(/  +/g," ")}trimSpace(t){let e=t.childNodes[0];e&&(e.isKind("text")&&e.setText(e.getText().replace(/^ +/,"")),e=t.childNodes[t.childNodes.length-1],e.isKind("text")&&e.setText(e.getText().replace(/ +$/,"")))}error(t){throw new Error(t)}}Ul.OPTIONS={MmlFactory:null,allowHtmlInTokenNodes:!1,fixMisplacedChildren:!0,verify:Object.assign({},Ot.verifyDefaults),translateEntities:!0};class Hl extends Tr{constructor(t={}){const[e,s,i]=fo(t,jl.OPTIONS,Ul.OPTIONS);super(e),this.findMathML=this.options.FindMathML||new jl(s),this.mathml=this.options.MathMLCompile||new Ul(i),this.mmlFilters=new Ui(this.options.mmlFilters)}setAdaptor(t){super.setAdaptor(t),this.findMathML.adaptor=t,this.mathml.adaptor=t}setMmlFactory(t){super.setMmlFactory(t),this.mathml.setMmlFactory(t)}get processStrings(){return!1}compile(t,e){let s=t.start.node;if(!s||!t.end.node||this.options.forceReparse||this.adaptor.kind(s)==="#text"){let n=this.executeFilters(this.preFilters,t,e,(t.math||"<math></math>").trim());this.options.parseAs==="html"&&(n=`<html><head></head><body>${n}</body></html>`);const o=this.checkForErrors(this.adaptor.parse(n,"text/"+this.options.parseAs)),a=this.adaptor.body(o);this.adaptor.childNodes(a).length!==1&&this.error("MathML must consist of a single element"),s=this.adaptor.remove(this.adaptor.firstChild(a)),this.adaptor.kind(s).replace(/^[a-z]+:/,"")!=="math"&&this.error("MathML must be formed by a <math> element, not <"+this.adaptor.kind(s)+">")}s=this.executeFilters(this.mmlFilters,t,e,s);let i=this.mathml.compile(s);return i=this.executeFilters(this.postFilters,t,e,i),t.display=i.attributes.get("display")==="block",i}checkForErrors(t){const e=this.adaptor.tags(this.adaptor.body(t),"parsererror")[0];return e&&(this.adaptor.textContent(e)===""&&this.error("Error processing MathML"),this.options.parseError.call(this,e)),t}error(t){throw new Error(t)}findMath(t){return this.findMathML.findMath(t)}}Hl.NAME="MathML",Hl.OPTIONS=ms({parseAs:"html",forceReparse:!1,mmlFilters:[],FindMathML:null,MathMLCompile:null,parseError:function(r){this.error(this.adaptor.textContent(r).replace(/\n.*/g,""))}},Tr.OPTIONS),MathJax.loader&&MathJax.loader.checkVersion("input/mml",ui,"input"),Ks({_:{input:{mathml_ts:Qc,mathml:{FindMathML:Gc,MathMLCompile:Yc}}}}),MathJax.loader&&MathJax.loader.pathFilters.add(r=>(r.name=r.name.replace(/\/util\/entities\/.*?\.js/,"/input/mml/entities.js"),!0)),MathJax.loader&&MathJax.loader.checkVersion("a11y/sre",ui,"a11y"),Ks({_:{a11y:{sre_ts:Wc}}}),Dn("ENRICHED",K.COMPILED+10);class X1 extends Xa{visitTree(t,e){this.mactionId=0;const s=super.visitTree(t);return this.mactionId&&(e.inputData.hasMaction=!0),s}visitHtmlNode(t,e){return t.getSerializedXML()}visitMactionNode(t,e){const[s,i]=t.childNodes.length===0?["",""]:[`
110`,e],n=this.childNodeMml(t,e+"  ",s);let o=this.getAttributes(t);if(t.attributes.get("actiontype")==="toggle"){const a=++this.mactionId;t.setProperty("mactionId",a),o=` data-maction-id="${a}" selection="${t.attributes.get("selection")}"`+o.replace(/ selection="\d+"/,"").replace(/ data-maction-id="\d+"/,"")}return`${e}<maction${o}>`+(n.match(/\S/)?s+n+i:"")+"</maction>"}}function J1(r,t,e){return class extends r{constructor(){super(...arguments),this.toMathML=e}serializeMml(s){if("outerHTML"in s)return s.outerHTML;if(typeof Element<"u"&&typeof window<"u"&&s instanceof Element){const i=window.document.createElement("div");return i.appendChild(s),i.innerHTML}return s.toString()}enrich(s,i=!1){if(!(this.state()>=K.ENRICHED)){if(!this.isEscaped&&(s.options.enableEnrichment||i)
vendor: 2,820 bytes, line 110
110){const n=new s.options.MathItem("",t);try{let o;o=this.inputData.originalMml?this.adjustSelections():this.inputData.originalMml=this.toMathML(this.root,this);const a=Gd(o);this.inputData.enrichedMml=n.math=this.serializeMml(a),n.math=n.math.replace(/ role="treeitem"/g,' data-speech-node="true"').replace(/ aria-level/g," data-semantic-level-number").replace(/ aria-(?:posinset|owns|setsize)=".*?"/g,""),n.display=this.display,n.compile(s),this.root=n.root}catch(o){s.options.enrichError(s,this,o)}}this.state(K.ENRICHED)}}toEnriched(s){return this.serializeMml(Gd(s))}unEnrich(s){const i=this.inputData.originalMml;if(!i)return;const n=new s.options.MathItem("",t);n.math=i,n.display=this.display,n.compile(s),this.root=n.root}adjustSelections(){const s=this.inputData.originalMml;if(!this.inputData.hasMaction)return s;const i=[];return this.root.walkTree(n=>{n.isKind("maction")&&(i[n.attributes.get("data-maction-id")]=n)}),s.replace(/(data-maction-id="(\d+)" selection=)"\d+"/g,(n,o,a)=>`${o}"${i[a].attributes.get("selection")}"`)}}}function K1(r,t){var e;return(e=class extends r{constructor(...s){super(...s),t.setMmlFactory(this.mmlFactory);const i=this.constructor.ProcessBits;i.has("enriched")||i.allocate("enriched");const n=new X1(this.mmlFactory);this.options.MathItem=J1(this.options.MathItem,t,(o,a)=>n.visitTree(o,a))}enrich(){if(!this.processed.isSet("enriched")){if(this.options.enableEnrichment){M1(this.options.sre);for(const s of this.math)s.enrich(this)}this.processed.set("enriched")}return this}enrichError(s,i,n){console.warn("Enrichment error:",n)}state(s,i=!1){if(super.state(s,i),s<K.ENRICHED&&(this.processed.clear("enriched"),s>=K.COMPILED))for(const n of this.math)n.unEnrich(this);return this}}).OPTIONS=Object.assign(Object.assign({},r.OPTIONS),{enableEnrichment:!0,enrichError:(s,i,n)=>s.enrichError(s,i,n),renderActions:hs(Object.assign(Object.assign({},r.OPTIONS.renderActions),{enrich:[K.ENRICHED]})),sre:hs({speech:"none",locale:"en",domain:"clearspeak",style:"default",braille:"nemeth",structure:!0,aria:!0})}),e}function eu(r,t){return t.setAdaptor(r.adaptor),r.documentClass=K1(r.documentClass,t),r}MathJax.loader&&MathJax.loader.checkVersion("a11y/semantic-enrich",ui,"a11y"),Ks({_:{a11y:{"semantic-enrich":Zc}}}),MathJax.startup&&MathJax.startup.extendHandler(r=>eu(r,new Hl({allowHtmlInTokenNodes:!0})));const G2=["pitch","rate","volume"];function $1(r){const t=w1(r),e=[],s=[];return G1(Array.from(t.childNodes),e,s),[s.join(" "),e]}function G1(r,t,e,s={}){for(const i of r){if(i.nodeType===3){const n=i.textContent.trim();n&&(e.push(n),t.push(Object.assign({text:n},s)));continue}if(i.nodeType===1){const n=i,o=n.tagName;if(o==="speak")continue;if(o==="prosody"){G1(Array.from(i.childNodes),t,e,Q2(n,s));continue}switch(o){case"break":t.push({pause:n.getAttribute("time")}
110);break;case"mark":t.push({mark:n.getAttribute("name")});break;case"say-as":{const a=n.textContent;t.push(Object.assign({text:a,character:!0},s)),e.push(a);break}}}}}const Y2={pitch:(r,t)=>r/100*1,volume:(r,t)=>r/100*.5,rate:(r,t)=>r/100*1};function Q2(r,t){const e={};for(const s of G2)if(r.hasAttribute(s)){const[i,n]=tb(r.getAttribute(s));if(!i){e[s]=s==="volume"?.5:1;continue}let o=t[s];o=o||(s==="volume"?.5:1);const a=Y2[s](parseInt(n,10),i);e[s]=i==="-"?o-a:o+a}return e}const Z2=/([+-]?)([0-9]+)%/;function tb(r){const t=r.match(Z2);return t?[t[1],t[2]]:(console.warn("Something went wrong with the prosody matching."),["","100"])}function Y1(r,t,e,s=" "){if(!r)return"";const i=[r];return t&&i.unshift(t),e&&i.push(e),i.join(s)}function Q1(r,t="en",e="100"){return $1(`<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="${t}"><prosody rate="${e}%">${r}</prosody></speak>`)}function Z1(){const r=new AudioContext,t=r.createOscillator();t.frequency.value=300,t.connect(r.destination),t.start(r.currentTime),t.stop(r.currentTime+.05)}var su,Te;(function(r){r[r.NONE=0]="NONE",r[r.DEPTH=1]="DEPTH",r[r.SUMMARY=2]="SUMMARY"})(su||(su={})),(function(r){r.SPEECH="data-semantic-speech-none",r.SPEECH_SSML="data-semantic-speech",r.SUMMARY="data-semantic-summary-none",r.SUMMARY_SSML="data-semantic-summary",r.PREFIX="data-semantic-prefix-none",r.PREFIX_SSML="data-semantic-prefix",r.POSTFIX="data-semantic-postfix-none",r.POSTFIX_SSML="data-semantic-postfix",r.BRAILLE="data-semantic-braille"})(Te||(Te={}));class tf{constructor(){this.promise=Promise.resolve(),this.adaptor=null,this._options={},this._init=!1}set element(t){this._element=t}get element(){return this._element}set options(t){this._options=Object.assign({},t?.sre||{},{enableSpeech:t.enableSpeech,enableBraille:t.enableBraille}),delete this._options.custom}get options(){return this._options}init(t,e,s){this.options=t,this._init||(this.adaptor=e,this.webworker=s,this._init=!0)}update(t){Object.assign(this.options,t)}Speech(t){const e=t.outputData.mml,s=Object.assign({},this.options,{modality:"speech"});return this.promise=this.webworker.Speech(e,s,t)}SpeechFor(t,e){const s=Object.assign({},this.options,{modality:"speech"});return this.webworker.speechFor(e,s,t)}cancel(t){var e;(e=this.webworker)===null||e===void 0||e.Cancel(t)}updateRegions(t,e,s){e.Update(this.getLabel(t)),s.Update(this.getBraille(t))}getOptions(t){var e,s,i,n;return{locale:(e=this.adaptor.getAttribute(t,"data-semantic-locale"))!==null&&e!==void 0?e:"",domain:(s=this.adaptor.getAttribute(t,"data-semantic-domain"))!==null&&s!==void 0?s:"",style:(i=this.adaptor.getAttribute(t,"data-semantic-style"))!==null&&i!==void 0?i:"",domain2style:(n=this.adaptor.getAttribute(t,"data-semantic-domain2style"))!==null&&n!==void 0?n:""}}nextRules(t){const e=this.getOptions(t.typesetRoot);return this.update(e),this.promise=this.webworker.nextRules(t.outputData.mml,Object.assign({},this.options,{modality:"speech"}),t)}nextStyle(t,e){const s=this.getOptions(e.typesetRoot);return this.update(s),this.promise=this.webworker.nextStyle(e.outputData.mml,Object.assign({},this.options,{modality:"speech"}),this.adaptor.getAttribute(t,"data-semantic-id"),e)}
vendor: 6,461 bytes, line 110
110getLabel(t,e="",s=" "){const i=this.adaptor;return Y1(i.getAttribute(t,Te.SPEECH_SSML),i.getAttribute(t,Te.PREFIX_SSML),i.getAttribute(t,Te.POSTFIX_SSML),s)||i.getAttribute(t,"aria-label")}getBraille(t){const e=this.adaptor;return e.getAttribute(t,"aria-braillelabel")||e.getAttribute(t,Te.BRAILLE)}getLocalePreferences(t){return this.promise=this.webworker.clearspeakLocalePreferences(this.options,t)}getRelevantPreferences(t,e,s,i){const n=t.outputData.mml;return this.promise=this.webworker.clearspeakRelevantPreferences(n,e,s,i)}}var Ur=function(r,t,e,s){return new(e||(e=Promise))(function(i,n){function o(h){try{c(s.next(h))}catch(u){n(u)}}function a(h){try{c(s.throw(h))}catch(u){n(u)}}function c(h){var u;h.done?i(h.value):(u=h.value,u instanceof e?u:new e(function(x){x(u)})).then(o,a)}c((s=s.apply(r,[])).next())})};class eb{constructor(t,e,s,i){this.cmd=t,this.item=e,this.resolve=s,this.reject=i}}class ef{constructor(t,e){this.adaptor=t,this.options=e,this.ready=!1,this.tasks=[],this.Commands={Ready(s,i){s.ready=!0,s.postNext()},Finished(s,i){const n=s.tasks.shift();i.success?n.resolve(i.result):n.reject(i.error),s.postNext()},Log(s,i){s.options.debug&&console.log("Log:",i)}}}Start(){return Ur(this,void 0,void 0,function*(){if(this.ready)throw Error("Worker already started");this.worker=yield this.adaptor.createWorker(this.Listener.bind(this),this.options)})}debug(t,...e){this.options.debug&&console.info(t,...e)}Listener(t){this.debug("Worker  >>>  Client:",t.data),Object.hasOwn(this.Commands,t.data.cmd)?this.Commands[t.data.cmd](this,t.data.data):this.debug("Invalid command from worker: "+t.data.cmd)}Post(t,e){const s=new Promise((i,n)=>{this.tasks.push(new eb(t,e,i,n))});return this.ready&&this.tasks.length===1&&this.postNext(),s}postNext(){if(this.tasks.length){const t=Object.assign({},this.tasks[0].cmd,{debug:this.options.debug});this.worker.postMessage(t)}}Cancel(t){const e=this.tasks.findIndex(s=>s.item===t);e>0&&(this.tasks[e].reject(`Task ${this.tasks[e].cmd.cmd} cancelled`),this.tasks.splice(e,1))}Setup(t){return this.Post({cmd:"setup",data:{domain:t.domain,style:t.style,locale:t.locale,modality:t.modality}})}Speech(t,e,s){return Ur(this,void 0,void 0,function*(){this.Attach(s,e.enableSpeech,e.enableBraille,yield this.Post({cmd:"speech",data:{mml:t,options:e}},s))})}nextRules(t,e,s){return Ur(this,void 0,void 0,function*(){this.Attach(s,e.enableSpeech,e.enableBraille,yield this.Post({cmd:"nextRules",data:{mml:t,options:e}},s))})}nextStyle(t,e,s,i){return Ur(this,void 0,void 0,function*(){this.Attach(i,e.enableSpeech,e.enableBraille,yield this.Post({cmd:"nextStyle",data:{mml:t,options:e,nodeId:s}},i))})}speechFor(t,e,s){return Ur(this,void 0,void 0,function*(){const i=yield this.Post({cmd:"speech",data:{mml:t,options:e}},s);return JSON.parse(i)})}Attach(t,e,s,i){const n=JSON.parse(i),o=t.typesetRoot;if(!o)return;this.setSpecialAttributes(o,n.options,"data-semantic-",["locale","domain","style","domain2style"]);const a=this.adaptor;this.setSpecialAttributes(o,n.translations,"data-semantic-");for(const[c,h]of Object.entries(n.mactions)){let u=a.getElement("#"+c,o);u&&a.childNodes(u)[0]&&(u=a.childNodes(u)[0],a.kind(u)==="rect"&&(u=a.next(u)),a.setAttribute(u,"data-semantic-type","dummy"),this.setSpecialAttributes(u,h,""))}for(const c of a.childNodes(o))a.kind(c)!=="mjx-math"&&a.kind(c)!=="svg"||this.setSpeechAttributes(c,"",n,e,s);e&&(n.label&&(a.setAttribute(o,Te.SPEECH,n.label),a.setAttribute(o,Te.SPEECH_SSML,n.ssml),t.outputData.speech=n.label),a.setAttribute(o,"data-speech-attached","true")),s&&(n.braillelabel&&(a.setAttribute(o,Te.BRAILLE,n.braillelabel),t.outputData.braille=n.braillelabel),n.braille&&a.setAttribute(o,"data-braille-attached","true"))}setSpeechAttribute(t,e,s,i){var n,o;const a=this.adaptor,c=a.getAttribute(t,"data-semantic-id");if(a.removeAttribute(t,"data-speech-node"),s&&e.speech[c]["speech-none"]){a.setAttribute(t,"data-speech-node","true");for(let[h,u]of Object.entries(e.speech[c]))h=h.replace(/-ssml$/,""),u&&a.setAttribute(t,`data-semantic-${h}`,u)}if(i&&(!((o=(n=e.braille)===null||n===void 0?void 0:n[c])===null||o===void 0)&&o["braille-none"])){a.setAttribute(t,"data-speech-node","true");const h=e.braille[c]["braille-none"];a.setAttribute(t,Te.BRAILLE,h)}}setSpeechAttributes(t,e,s,i,n){const o=this.adaptor;if(!t||o.kind(t)==="#text"||o.kind(t)==="#comment")return e;o.hasAttribute(t,"data-semantic-id")&&(this.setSpeechAttribute(t,s,i,n),e||o.hasAttribute(t,"data-semantic-parent")||(e=o.getAttribute(t,"data-semantic-id")));for(const a of Array.from(o.childNodes(t)))e=this.setSpeechAttributes(a,e,s,i,n);return e}setSpecialAttributes(t,e,s,i){if(e){i=i||Object.keys(e);for(const n of i){const o=e[n];o&&this.adaptor.setAttribute(t,`${s}${n.toLowerCase()}`,o)}}}Detach(t){const e=t.typesetRoot;this.adaptor.removeAttribute(e,"data-speech-attached"),this.adaptor.removeAttribute(e,"data-braille-attached"),this.detachSpeech(e)}detachSpeech(t){const e=this.adaptor,s=e.childNodes(t);if(s){if(e.kind(t)!=="#text")for(const i of["none","summary-none","speech","speech-none","summary","braille"])e.removeAttribute(t,`data-semantic-${i}`);for(const i of s)this.detachSpeech(i)}}Terminate(){this.debug("Terminating pending tasks");for(const t of this.tasks)t.reject(`${t.cmd.data.cmd} cancelled by WorkerHandler termination`);return this.tasks=[],this.debug("Terminating worker"),this.worker.terminate()}Stop(){return Ur(this,void 0,void 0,function*(){if(!this.worker)throw Error("Worker has not been started");yield this.Terminate(),this.worker=null,this.ready=!1})}clearspeakLocalePreferences(t,e){return Ur(this,void 0,void 0,function*(){yield this.Post({cmd:"localePreferences",data:{options:t}}).then(s=>{e.set(t.locale,JSON.parse(s))})})}clearspeakRelevantPreferences(t,e,s,i){return Ur(this,void 0,void 0,function*(){yield this.Post({cmd:"relevantPreferences",data:{mml:t,id:e}}).then(n=>{s.set(i,n)})})}}const sf=cr.config||{},rf=()=>(sf?.loader?.paths?.mathjax||sf?.__dirname||"/")+"/sre";var nf=function(r,t,e,s){return new(e||(e=Promise))(function(i,n){function o(h){try{c(s.next(h))}catch(u){n(u)}}function a(h){try{c(s.throw(h))}catch(u){n(u)}}function c(h){var u;h.done?i(h.value):(u=h.value,u instanceof e?u:new e(function(x){x(u)})).then(o,a)}c((s=s.apply(r,[])).next())})};function of(r){return class extends r{constructor(){super(...arguments),this.generatorPool=new tf}attachSpeech(t){if(this.outputData.speechPromise=null,this.state()>
vendor: 5,696 bytes, line 110
110=K.ATTACHSPEECH||(this.state(K.ATTACHSPEECH),this.isEscaped||!t.options.enableSpeech&&!t.options.enableBraille||!t.options.enableEnrichment))return;t.getWebworker(),this.generatorPool.init(t.options,t.adaptor,t.webworker),this.outputData.mml=this.toMathML(this.root,this);const e=this.generatorPool.Speech(this).catch(s=>t.options.speechError(t,this,s));t.savePromise(e),this.outputData.speechPromise=e}detachSpeech(t){t.webworker.Detach(this)}speechFor(t){return nf(this,void 0,void 0,function*(){t=this.toEnriched(t);const e=yield this.generatorPool.SpeechFor(this,t);return[e.label,e.braillelabel]})}clear(){this.generatorPool.cancel(this)}}}function af(r){var t;return t=class extends r{constructor(...e){super(...e),this.webworker=null;const s=this.constructor.ProcessBits;s.has("attach-speech")||s.allocate("attach-speech"),this.options.MathItem=of(this.options.MathItem)}getWebworker(){this.webworker||(this.webworker=new ef(this.adaptor,this.options.worker),this.webworker.Start())}attachSpeech(){if(!this.processed.isSet("attach-speech")){const e=this.options;if(e.enableEnrichment&&(e.enableSpeech||e.enableBraille)){this.getWebworker();for(const s of this.math)s.attachSpeech(this)}this.processed.set("attach-speech")}return this}speechError(e,s,i){console.warn("Speech generation error:",i)}state(e,s=!1){if(super.state(e,s),e<K.ATTACHSPEECH&&(this.processed.clear("attach-speech"),e>=K.TYPESET))for(const i of this.math)i.detachSpeech(this);return this}done(){const e=Object.create(null,{done:{get:()=>super.done}});return nf(this,void 0,void 0,function*(){var s;return yield(s=this.webworker)===null||s===void 0?void 0:s.Stop(),e.done.call(this)})}},t.OPTIONS=Object.assign(Object.assign({},r.OPTIONS),{enableSpeech:!0,enableBraille:!0,speechError:(e,s,i)=>e.speechError(e,s,i),renderActions:hs(Object.assign(Object.assign({},r.OPTIONS.renderActions),{attachSpeech:[K.ATTACHSPEECH]})),worker:{path:rf(),maps:rf().replace(/[cm]js\/a11y\/sre$/,"bundle/sre/mathmaps"),worker:"speech-worker.js",debug:!1},a11y:hs({speech:!0,braille:!0})}),t}function iu(r,t){return!r.documentClass.prototype.enrich&&t&&(r=eu(r,t)),r.documentClass=af(r.documentClass),r}if(Dn("ATTACHSPEECH",K.INSERTED+10),MathJax.loader&&MathJax.loader.checkVersion("a11y/speech",ui,"a11y"),Ks({_:{a11y:{speech_ts:ih,speech:{GeneratorPool:eh,SpeechUtil:th,WebWorker:sh}}}}),MathJax.loader){let r=ke.resolvePath("[sre]",!1),t=ke.resolvePath("[mathmaps]",!1);if(Fe.window)r=new URL(r,location).href,t=new URL(t,location).href;else{const e=typeof Aa<"u"?Aa:MathJax.config.loader.require;e?.resolve?(r=Fe.path(e.resolve(`${r}/require.mjs`)).replace(/\/[^\/]*$/,""),t=Fe.path(e.resolve(`${t}/base.json`)).replace(/\/[^\/]*$/,"")):r=t=""}r&&si(MathJax.config,"options",{worker:{path:r,maps:t}})}MathJax.startup&&MathJax.startup.extendHandler(r=>iu(r));class _l{constructor(t){this.document=t,this.CLASS=this.constructor,this.AddStyles()}static get sheetId(){return"MJX-"+this.name+"-styles"}static get styleSheet(){return document.head.querySelector("#"+this.sheetId)}AddStyles(){const t=this.CLASS.sheetId;if(!this.CLASS.style||this.document.adaptor.head().querySelector("#"+t))return;const e=this.document.adaptor.node("style",{id:t});e.innerHTML=this.CLASS.style.cssText,this.document.adaptor.head().appendChild(e)}AddElement(){if(this.div)return;const t=this.document.adaptor.node("div");t.classList.add(this.CLASS.className),this.div=t,this.inner=this.document.adaptor.node("div"),this.div.appendChild(this.inner),this.document.adaptor.body(this.document.adaptor.document).appendChild(this.div)}Show(t){this.AddElement(),this.position(t),this.div.classList.add(this.CLASS.className+"_Show")}Hide(){this.div&&(this.div.remove(),this.div=null,this.inner=null)}stackRegions(t){const e=t.getBoundingClientRect();let s=0,i=Number.POSITIVE_INFINITY;const n=this.document.adaptor.document.getElementsByClassName(this.CLASS.className+"_Show");for(let c,h=0;c=n[h];h++)c!==this.div&&(s=Math.max(c.getBoundingClientRect().bottom,s),i=Math.min(c.getBoundingClientRect().left,i));const o=(s||e.bottom+10)+window.scrollY,a=(i<Number.POSITIVE_INFINITY?i:e.left)+window.scrollX;this.div.style.top=o+"px",this.div.style.left=a+"px"}}class lf extends _l{Clear(){}Update(){}Hide(){}Show(){}AddElement(){}AddStyles(){}position(){}}class ru extends _l{Clear(){this.div&&(this.Update(""),this.inner.style.top="",this.inner.style.backgroundColor="")}Update(t){t&&this.AddElement(),this.inner&&(this.inner.textContent="",this.inner.textContent=t||" ")}position(t){this.stackRegions(t)}}class gr extends ru{}gr.className="MJX_ToolTip",gr.style=new qi({[`.${gr.className}`]:{width:"auto",height:"auto",opacity:1,"text-align":"center","border-radius":"4px",padding:0,"border-bottom":"1px dotted black",position:"absolute",display:"inline-block","background-color":"white","z-index":202},[`.${gr.className} > div`]:{"border-radius":"inherit",padding:"0 2px"},"@media (prefers-color-scheme: dark)":{["."+gr.className]:{"background-color":"#222025","box-shadow":"0px 5px 20px #000",border:"1px solid #7C7C7C"}}});class yi extends ru{static setColor(t,e,s,i){const n=this.styleSheet;if(n){const o=n.sheet.cssRules[0].style,a=`--mjx-${t}${e}-color`,c=`rgba(var(--mjx-${t}-${s}), ${i===1?1:`var(--mjx-${t}${e}-alpha)`})`;o.getPropertyValue(a)!==c&&o.setProperty(a,c);const h=`--mjx-${t}${e}-alpha`;o.getPropertyValue(h)!==String(i)&&(o.setProperty(h,i),n.sheet.cssRules[1].cssRules[0].style.setProperty(h,Math.pow(i,.7071)))}}}yi.className="MJX_LiveRegion",yi.priority={primary:1,secondary:2},yi.style=new qi({":root":{"--mjx-fg-red":"255, 0, 0","--mjx-fg-green":"0, 255, 0","--mjx-fg-blue":"0, 0, 255","--mjx-fg-yellow":"255, 255, 0","--mjx-fg-cyan":"
1100, 255, 255","--mjx-fg-magenta":"255, 0, 255","--mjx-fg-white":"255, 255, 255","--mjx-fg-black":"0, 0, 0","--mjx-bg-red":"255, 0, 0","--mjx-bg-green":"0, 255, 0","--mjx-bg-blue":"0, 0, 255","--mjx-bg-yellow":"255, 255, 0","--mjx-bg-cyan":"0, 255, 255","--mjx-bg-magenta":"255, 0, 255","--mjx-bg-white":"255, 255, 255","--mjx-bg-black":"0, 0, 0","--mjx-live-bg-color":"white","--mjx-live-shadow-color":"#888","--mjx-live-border-color":"#CCCCCC","--mjx-bg1-color":"rgba(var(--mjx-bg-blue), var(--mjx-bg1-alpha))","--mjx-fg1-color":"rgba(var(--mjx-fg-black), 1)","--mjx-bg2-color":"rgba(var(--mjx-bg-red), 1)","--mjx-fg2-color":"rgba(var(--mjx-fg-black), 1)","--mjx-bg1-alpha":.2,"--mjx-fg1-alpha":1,"--mjx-bg2-alpha":1,"--mjx-fg2-alpha":1},"@media (prefers-color-scheme: dark)":{":root":{"--mjx-bg-blue":"132, 132, 255","--mjx-bg-white":"0, 0, 0","--mjx-bg-black":"255, 255, 255","--mjx-fg-white":"0, 0, 0","--mjx-fg-black":"255, 255, 255","--mjx-live-bg-color":"#222025","--mjx-live-shadow-color":"black","--mjx-live-border-color":"#7C7C7C","--mjx-bg1-alpha":.3,"--mjx-fg1-alpha":1,"--mjx-bg2-alpha":1,"--mjx-fg2-alpha":1}},[`.${yi.className}`]:{position:"absolute",top:0,display:"none",width:"auto",height:"auto",padding:0,opacity:1,"z-index":"202",left:0,right:0,margin:"0 auto","background-color":"var(--mjx-live-bg-color)","box-shadow":"0px 5px 20px var(--mjx-live-shadow-color)",border:"2px solid var(--mjx-live-border-color)"},[`.${yi.className}_Show`]:{display:"block"},[`.${yi.className} > div`]:{color:"var(--mjx-fg1-color)","background-color":"var(--mjx-bg1-color)"},"mjx-container [data-sre-highlight-1]:not([data-mjx-collapsed], rect)":{color:"var(--mjx-fg1-color) ! important",fill:"var(--mjx-fg1-color) ! important"},[["mjx-container:not([data-mjx-clone-container])","[data-sre-highlight-1]:not([data-sre-enclosed], rect)"].join(" ")]:{"background-color":"var(--mjx-bg1-color) ! important"},"mjx-container rect[data-sre-highlight-1]:not([data-sre-enclosed])":{fill:"var(--mjx-bg1-color) ! important"},"mjx-container [data-sre-highlight-2]":{color:"var(--mjx-fg2-color) ! important","background-color":"var(--mjx-bg2-color) ! important",fill:"var(--mjx-fg2-color) ! important"},"mjx-container rect[data-sre-highlight-2]":{fill:"var(--mjx-bg2-color) ! important"}});class nu extends yi{constructor(){super(...arguments),this.active=!1,this.node=null,this.clear=!1,this.voiceRequest=!1,this.voiceCancelled=!1}Show(t){super.Update(" "),this.node=t,super.Show(t)}Update(t){if(this.voiceRequest)return void this.makeVoice(t);speechSynthesis.onvoiceschanged=(()=>this.voiceRequest=!0).bind(this),new Promise(e=>{setTimeout(()=>{this.voiceRequest?e(!0):setTimeout(()=>{this.voiceRequest=!0,e(!0)},100)},100)}).then(()=>this.makeVoice(t))}makeVoice(t){this.active=this.document.options.a11y.voicing&&!!speechSynthesis.getVoices().length,speechSynthesis.cancel(),this.clear=!0;const[e,s]=Q1(t,this.document.options.sre.locale,this.document.options.sre.rate);super.Update(e),this.active&&e&&this.makeUtterances(s,this.document.options.sre.locale)}makeUtterances(t,e){this.voiceCancelled=!1;let s=null;for(const i of t)if(i.mark){if(!s){this.highlightNode(i.mark,!0);continue}s.addEventListener("end",n=>{this.voiceCancelled||this.highlightNode(i.mark)})}else{if(i.pause){const n=parseInt(i.pause.match(/^[0-9]+/)[0]);if(isNaN(n)||!s)continue;s.addEventListener("end",o=>{speechSynthesis.pause(),setTimeout(()=>{speechSynthesis.resume()},n)});continue}s=new SpeechSynthesisUtterance(i.text),i.rate&&(s.rate=i.rate),i.pitch&&(s.pitch=i.pitch),s.lang=e,speechSynthesis.speak(s)}s&&s.addEventListener("end",i=>{this.highlighter.unhighlight()})}Hide(){this.cancelVoice(),super.Hide()}cancelVoice(){this.voiceCancelled=!0,speechSynthesis.cancel(),this.highlighter.unhighlight()}highlightNode(t,e=!1){this.highlighter.unhighlight();const s=Array.from(this.node.querySelectorAll(`[data-semantic-id="${t}"]`));this.clear&&!e||this.highlighter.highlight(s),this.clear=!1}}nu.style=null;class xn extends _l{position(t){const e=t.getBoundingClientRect(),s=this.div.getBoundingClientRect();let i,n=e.left+e.width/2-s.width/2;switch(n=n<0?0:n,n+=window.scrollX,this.document.options.a11y.align){case"top":i=e.top-s.height-10;break;case"bottom":i=e.bottom+10;break;default:i=e.top+e.height/2-s.height/2}i+=window.scrollY,i=i<0?0:i,this.div.style.top=i+"px",this.div.style.left=n+"px"}Show(t){this.AddElement(),this.div.style.fontSize=this.document.options.a11y.magnify,this.Update(t),super.Show(t)}Clear(){this.div&&(this.inner.textContent="",this.inner.style.top="",this.inner.style.backgroundColor="")}Update(t){if(!this.div)return;this.Clear();const e=this.cloneNode(t),s=e.querySelector("[data-mjx-clone]");this.inner.style.backgroundColor=t.style.backgroundColor,s.style.backgroundColor="",s.classList.remove("mj
110x-selected"),this.inner.appendChild(e),this.position(t)}cloneNode(t){let e=t.cloneNode(!0);if(e.setAttribute("data-mjx-clone","true"),e.nodeName!=="MJX-CONTAINER"){e.nodeName!=="g"&&(e.style.marginLeft=e.style.marginRight="0");const s=t.closest("mjx-container");if(e.nodeName!=="MJX-MATH"&&e.nodeName!=="svg"){let i=s.firstChild;i.nodeName==="MJX-BBOX"&&(i=i.nextSibling),e=i.cloneNode(!1).appendChild(e).parentElement;const n=Array.from(s.querySelectorAll("[data-sre-enclosed]"));i.nodeName==="svg"?this.svgClone(t,n,e,s):this.chtmlClone(t,n,e)}e=s.cloneNode(!1).appendChild(e).parentElement,e.style.margin="0",e.style.minWidth=""}return e.setAttribute("data-mjx-clone-container","true"),e}chtmlClone(t,e,s){for(const i of e)if(i!==t){const n=i.getAttribute("data-semantic-id");n&&s.querySelector(`[data-semantic-id="${n}"]`)||s.appendChild(i.cloneNode(!0))}}svgClone(t,e,s,i){var n;let{x:o,y:a,width:c,height:h}=t.getBBox();if(e.length){s.firstChild.remove();const I=i.querySelector("g").cloneNode(!1);for(const Ns of e){const ls=I.appendChild(Ns.cloneNode(!0));Ns===t&&ls.setAttribute("data-mjx-clone","true");const[Er,Ca]=this.xy(Ns);ls.setAttribute("transform",`translate(${Er}, ${Ca})`)}s.appendChild(I);const q=t.previousSibling,et=q.getBBox();c=et.width,h=et.height;const[Rt,Ce]=this.xy(q);o=Rt,a=Ce+et.y}const u=i.querySelector("g");if(i.getAttribute("width")==="full"&&u.firstChild.lastChild===t)return s.innerHTML="",s.appendChild(i.cloneNode(!0).firstChild),s.querySelector(".mjx-selected").setAttribute("data-mjx-clone","true"),void((n=s.querySelector("[data-sre-highlighter-added]"))===null||n===void 0||n.remove());s.firstChild.setAttribute("transform","scale(1, -1)");const x=parseFloat((s.getAttribute("viewBox")||s.getAttribute("data-mjx-viewBox")).split(/ /)[2]),A=parseFloat(s.style.minWidth||s.getAttribute("width"));s.setAttribute("viewBox",[o,-(a+h),c,h].join(" ")),s.removeAttribute("style"),s.setAttribute("width",A/x*c+"ex"),s.setAttribute("height",A/x*h+"ex")}xy(t){const e=DOMPoint.fromPoint({x:0,y:0}).matrixTransform(t.getCTM().inverse());return[-e.x,-e.y]}}xn.className="MJX_HoverRegion",xn.style=new qi({[`.${xn.className}`]:{display:"block",position:"absolute",width:"max-content",height:"auto",padding:0,opacity:1,"z-index":"202",margin:"0 auto","background-color":"white","line-height":0,"box-shadow":"0px 10px 20px #888",border:"2px solid #CCCCCC"},[`.${xn.className} > div`]:{overflow:"hidden",color:"var(--mjx-fg1-color)","background-color":"var(--mjx-bg1-color)"},"@media (prefers-color-scheme: dark)":{["."+xn.className]:{"background-color":"#222025","box-shadow":"0px 5px 20px #000",border:"1px solid #7C7C7C"}},"mjx-container[data-mjx-clone-container]":{padding:"2px ! important"},"mjx-math > mjx-mlabeledtr":{display:"inline-block","margin-right":".5em ! important"},"mjx-math > mjx-mtd":{float:"right"}});class lo{get highlighter(){return this.pool.highlighter}static stopEvent(t){t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopImmediatePropagation?t.stopImmediatePropagation():t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0}static create(t,e,s,i,...n){return new this(t,e,s,i,...n)}constructor(t,e,s,i,...n){this.document=t,this.pool=e,this.region=s,this.node=i,this.stoppable=!0,this.events=[],this._active=!1}Events(){return this.events}get active(){return this._active}set active(t){this._active=t}Attach(){this.AddEvents()}Detach(){this.RemoveEvents()}Start(){this.active=!0}Stop(){this.active&&(this.region.Clear(),this.region.Hide(),this.active=!1)}AddEvents(){for(const[t,e]of this.events)this.node.addEventListener(t,e)}RemoveEvents(){for(const[t,e]of this.events)this.node.removeEventListener(t,e)}Update(t=!1){}stopEvent(t){this.stoppable&&lo.stopEvent(t)}}var cf=function(r,t,e,s){return new(e||(e=Promise))(function(i,n){function o(h){try{c(s.next(h))}catch(u){n(u)}}function a(h){try{c(s.throw(h))}catch(u){n(u)}}function c(h){var u;h.done?i(h.value):(u=h.value,u instanceof e?u:new e(function(x){x(u)})).then(o,a)}c((s=s.apply(r,[])).next())})};const hf=Fe.os==="Windows",df=Array(40).fill("⠀").join(""),yn="[data-speech-node]";
110function sb(r){return r.matches("mjx-container")}function co(r,t=!0){return r.shiftKey&&t||r.metaKey||r.altKey||r.ctrlKey}class Ta extends lo{static helpMessage(t,e,s){return`
111      <h2 role="heading" aria-level="2">Exploring expressions ${t}</h2>
112
113      <p>The mathematics on this page is being rendered by <a
114      href="https://www.mathjax.org/" target="_blank">MathJax</a>, which
115      generates both the text spoken by screen readers, as well as the
116      visual layout for sighted users.</p>
117
118      <p>Expressions typeset by MathJax can be explored interactively, and
119      are focusable.  You can use the <kbd>Tab</kbd> key to move to a typeset
120      expression${e}.  Initially, the expression will be read in full,
121      but you can use the following keys to explore the expression
122      further:</p>
123
124      <ul>
125
126      <li><kbd>Down Arrow</kbd> moves one level deeper into the
127      expression to allow you to explore the current subexpression term by
128      term.</li>
129
130      <li><kbd>Up Arrow</kbd> moves back up a level within the
131      expression.</li>
132
133      <li><kbd>Right Arrow</kbd> moves to the next term in the
134      current subexpression.</li>
135
136      <li><kbd>Left Arrow</kbd> moves to the next term in the
137      current subexpression.</li>
138
139      <li><kbd>Shift</kbd>+<kbd>Arrow</kbd> moves to a
140      neighboring cell within a table.</li>
141
142      <li><kbd>0-9</kbd>+<kbd>0-9</kbd> jumps to a cell
143      by its index in the table, where 0 = 10.</li>
144
145      <li><kbd>Home</kbd> takes you to the top of the
146      expression.</li>
147
148      <li><kbd>Enter</kbd> or <kbd>Return</kbd> clicks a
149      link or activates an active subexpression.</li>
150
151      <li><kbd>Space</kbd> opens the MathJax contextual menu
152      where you can view or copy the source format of the expression, or
153      modify MathJax's settings.</li>
154
155      <li><kbd>Escape</kbd> exits the expression
156      explorer.</li>
157
158      <li><kbd>x</kbd> gives a summary of the current
159      subexpression.</li>
160
161      <li><kbd>z</kbd> gives the full text of a collapsed
162      expression.</li>
163
164      <li><kbd>d</kbd> gives the current depth within the
165      expression.</li>
166
167      <li><kbd>s</kbd> starts or stops auto-voicing with
168      synchronized highlighting.</li>
169
170      <li><kbd>v</kbd> marks the current position in the
171      expression.</li>
172
173      <li><kbd>p</kbd> cycles through the marked positions in
174      the expression.</li>
175
176      <li><kbd>u</kbd> clears all marked positions and returns
177      to the starting position.</li>
178
179      <li><kbd>&gt;</kbd> cycles through the available speech
180      rule sets (MathSpeak, ClearSpeak).</li>
181
182      <li><kbd>&lt;</kbd> cycles through the verbosity levels
183      for the current rule set.</li>
184
185      <li><kbd>b</kbd> toggles whether Braille notation is combined
186      with speech text for tactile Braille devices, as discussed
187      below.
188
189      <li><kbd>h</kbd> produces this help listing.</li>
190      </ul>
191
192      <p>The MathJax contextual menu allows you to enable or disable speech
193      or Braille generation for mathematical expressions, the language to
194      use for the spoken mathematics, and other features of MathJax.  In
195      particular, the Explorer submenu allows you to specify how the
196      mathematics should be identified in the page (e.g., by saying "math"
197      when the expression is spoken), and whether or not to include a
198      message about the letter "h" bringing up this dialog box.  Turning off
199      speech and Braille will disable the expression explorer, its
200      highlighting, and its help icon.</p>
201
202      <p>Support for tactile Braille devices varies across screen readers,
203      browsers, and operative systems.  If you are using a Braille output
204      device, you may need to select the "Combine with Speech" option in the
205      contextual menu's Braille submenu in order to obtain Nemeth or Euro
206      Braille output rather than the speech text on your Braille
207      device. ${s}</p>
208
209      <p>The contextual menu also provides options for viewing or copying a
210      MathML version of the expression or its original source format,
211      creating an SVG version of the expression, and viewing various other
212      information.</p>
213
214      <p>Finally, selecting the "Insert Hidden MathML" item from the options
215      submenu will turn of MathJax's speech and Braille generation and
216      instead use visually hidden MathML that some screen readers can voice,
217      though support for this is not universal across all screen readers and
218      operating systems.  Selecting speech or Braille generation in their
219      submenus will remove the hidden MathML again.</p>
220
221      <p>For more help, see the <a
222      href="https://docs.mathjax.org/en/latest/basic/accessibility.html"
223      target="_blank">MathJax accessibility documentation.</a></p>
224    `}get generators(){var t;return(t=this.item)===null||t===void 0?void 0:t.generatorPool}get role(){return this.item.ariaRole}get description(){return this.item.roleDescription}get none(){return this.document.options.a11y.brailleSpeech?this.item.brailleNone:this.item.none}get brailleNone(){return this.item.brailleNone}FocusIn(t){t.target.closest("mjx-html")||(this.item.outputData.nofocus?this.item.outputData.nofocus=!1:(this.clicked||(this.Start(),this.backTab=t.target===this.img),this.clicked=null))}FocusOut(t){this.current&&!this.focusSpeech&&(this.document.options.keepRegions||(this.setCurrent(null),this.Stop()),document.hasFocus()||this.focusTop())}KeyDown(t){if(this.pendingIndex.shift(),this.region.cancelVoice(),co(t,!1))return;const e=this.constructor,s=t.key.length===1?t.key.toLowerCase():t.key,[i,n]=e.keyMap.get(s)||[],o=i?n===void 0||this.active?i(this,t):n:this.undefinedKey(t);o||(this.stopEvent(t),o===!1&&this.sound&&this.NoMove())}MouseDown(t){var e;if(this.pendingIndex=[],this.region.cancelVoice(),co(t)||t.buttons===2)return void(this.item.outputData.nofocus=!0);const s=this.findClicked(t.target,t.x,t.y);s!==this.document.infoIcon?((e=document.getSelection())===null||e===void 0||e.removeAllRanges(),t.target.getAttribute("sre-highlighter-added")?this.refocus=s:this.clicked=s):this.stopEvent(t)}Click(t){if(co(t)||t.buttons===2||document.getSelection().type==="Range")return void this.FocusOut(null);const e=this.findClicked(t.target,t.x,t.y);if(e===this.document.infoIcon)return this.stopEvent(t),void this.help();this.clicked||e&&!this.node.contains(e)||(this.refocus=e,this.triggerLinkMouse()||this.Start())}DblClick(t){var e;const s=(e=document.getSelection().direction)!==null&&e!==void 0?e:"none";co(t)||t.buttons===2||s!=="none"?this.FocusOut(null):(this.refocus=this.rootNode(),this.Start())}spaceKey(){return this.refocus=this.current,!0}hKey(){if(!this.document.options.enableExplorerHelp)return!0;this.refocus=this.current,this.help()}escapeKey(t){return t.target.closest("mjx-html")?(this.refocus=t.target.closest(yn),this.Start()):(this.Stop(),this.focusTop(),this.setCurrent(null)),!0}tabKey(t){var e;const s=(e=this.current)!==null&&e!==void 0?e:this.node.contains(document.activeElement)?document.activeElement:null;if(this.tabs.length===0||!s)return!0;
224if(this.backTab)return!t.shiftKey||void this.tabTo(this.tabs[this.tabs.length-1]);const[i,n,o]=t.shiftKey?[this.tabs.slice(0).reverse(),Node.DOCUMENT_POSITION_PRECEDING,this.current&&this.isLink()?this.getAnchor():s]:[this.tabs,Node.DOCUMENT_POSITION_FOLLOWING,s];for(const a of i)if(o.compareDocumentPosition(a)&n)return void this.tabTo(a);return t.shiftKey&&this.current===this.rootNode()&&this.tabOut(),!0}tabTo(t){t.getAttribute("data-mjx-href")?this.setCurrent(this.linkFor(t)):t.focus()}tabOut(){const t=Array.from(this.node.querySelectorAll("mjx-html"));t.length&&(t.forEach(e=>{e.style.display="none"}),setTimeout(()=>{t.forEach(e=>{e.style.display=""})},0))}enterKey(t){if(this.active)if(this.triggerLinkKeyboard(t))this.Stop();else{const e=this.actionable(this.current);if(e)return this.refocus=e,void e.dispatchEvent(new Event("click"));const s=this.getInternalTabs(this.current).filter(i=>!i.getAttribute("data-mjx-href"));if(s.length)return void s[0].focus()}else this.Start()}homeKey(){this.setCurrent(this.rootNode())}moveDown(t){return t?this.moveToNeighborCell(1,0):this.moveTo(this.firstNode(this.current))}moveUp(t){return t?this.moveToNeighborCell(-1,0):this.moveTo(this.getParent(this.current))}moveRight(t){return t?this.moveToNeighborCell(0,1):this.moveTo(this.nextSibling(this.current))}moveLeft(t){return t?this.moveToNeighborCell(0,-1):this.moveTo(this.prevSibling(this.current))}moveTo(t){if(!t)return!1;this.setCurrent(t)}moveToNeighborCell(t,e){const s=this.tableCell(this.current);if(!s)return!1;const[i,n]=this.cellPosition(s);if(i==null)return!1;const o=this.cellAt(this.cellTable(s),i+t,n+e);if(!o)return!1;this.setCurrent(o)}undefinedKey(t){return!this.active||co(t)}addMark(){this.current===this.marks[this.marks.length-1]?this.setCurrent(this.current):(this.currentMark=this.marks.length-1,this.marks.push(this.current),this.speak("Position marked"))}prevMark(){if(this.currentMark<0){if(this.marks.length===0)return void this.setCurrent(this.lastMark||this.rootNode());this.currentMark=this.marks.length-1}const t=this.currentMark;this.setCurrent(this.marks[t]),this.currentMark=t-1}clearMarks(){this.marks=[],this.currentMark=-1,this.prevMark()}autoVoice(){const t=!this.document.options.a11y.voicing;this.document.menu?this.document.menu.menu.pool.lookup("voicing").setValue(t):this.document.options.a11y.voicing=t,this.Update()}toggleBraille(){const t=!this.document.options.a11y.brailleCombine;this.document.menu?this.document.menu.menu.pool.lookup("brailleCombine").setValue(t):this.document.options.a11y.brailleCombine=t}numberKey(t){if(!this.tableCell(this.current))return!1;if(t===0&&(t=10),this.pendingIndex.length){const e=this.cellTable(this.tableCell(this.current)),s=this.cellAt(e,this.pendingIndex[0]-1,t-1);if(this.pendingIndex=[],this.speak(String(t)),!s)return!1;setTimeout(()=>this.setCurrent(s),500)}else this.pendingIndex=[null,t],this.speak(`Jump to row ${t} and column`)}depth(){var t,e,s;if(this.speechType==="d")return void this.setCurrent(this.current);this.speechType="d";const i=[[(t=this.node.getAttribute("data-semantic-level"))!==null&&t!==void 0?t:"Level",(e=this.current.getAttribute("data-semantic-level-number"))!==null&&e!==void 0?e:"0"].join(" ").trim()],n=this.actionable(this.current);n&&i.unshift((s=this.node.getAttribute(n.getAttribute("toggle")==="1"?"data-semantic-expandable":"data-semantic-collapsible"))!==null&&s!==void 0?s:""),this.speak(i.join(" "),this.current.getAttribute(Te.BRAILLE))}summary(){if(this.speechType==="x")return void this.setCurrent(this.current);this.speechType="x";const t=this.current.getAttribute(Te.SUMMARY);this.speak(t,this.current.getAttribute(Te.BRAILLE),this.SsmlAttributes(this.current,Te.SUMMARY_SSML))}nextRules(){this.node.removeAttribute("data-speech-attached"),this.restartAfter(this.generators.nextRules(this.item))}nextStyle(){this.node.removeAttribute("data-speech-attached"),this.restartAfter(this.generators.nextStyle(this.current,this.item))}details(){const t=this.actionable(this.current);if(!t||!t.getAttribute("data-collapsible")||t.getAttribute("toggle")!=="1"||this.speechType==="z")return void this.setCurrent(this.current);this.speechType="z";const e=this.nodeId(this.current);let s;this.item.root.walkTree(n=>{n.attributes.get("data-semantic-id")===e&&(s=n)});let i=this.item.toMathML(s,this.item);s.isKind("math")||(i=`<math>${i}</math>`),i=i.replace(/ (?:data-semantic-|aria-|data-speech-|data-latex).*?=".*?"/g,""),this.item.speechFor(i).then(([n,o])=>this.speak(n,o))}help(){if(!this.document.options.enableExplorerHelp)return;const t=this.constructor,[e,s,i]=t.helpData.get(Fe.os);Qr.post({title:"MathJax Expression Explorer Help",message:t.helpMessage(e,s,i),node:this.node,adaptor:this.document.adaptor,styles:{".mjx-dialog":{"max-height":"calc(min(35em, 90%))"},"mjx-dialog mjx-title":{"font-size":"133%",margin:".5em 1.75em"},"mjx-dialog h2":{"font-size":"20px",margin:".5em 0"},"mjx-dialog ul":{"list-style-type":"none"},"mjx-dialog li":{"margin-bottom":".5em"}}})}setCurrent(t,e=!1){if(this.backTab=!1,this.speechType="",document.hasFocus()||(this.refocus=this.current),this.node.setAttribute("aria-busy","true"),this.current){this.pool.unhighlight();for(const s of Array.from(this.node.querySelectorAll(".mjx-selected")))s.classList.remove("mj
224x-selected");this.document.options.a11y.tabSelects==="last"&&(this.refocus=this.current),t||(this.lastMark=this.current,this.removeSpeech()),this.current=null}if(this.current=t,this.currentMark=-1,this.current){const s=[...this.getSplitNodes(this.current)];this.highlighter.encloseNodes(s,this.node);for(const i of s)i.getAttribute("data-sre-enclosed")||i.classList.add("mjx-selected");this.pool.highlight(s),this.addSpeech(t,e),this.node.setAttribute("tabindex","-1"),this.Update()}this.node.removeAttribute("aria-busy")}getSplitNodes(t){const e=this.nodeId(t);if(!e)return[t];if(this.cacheParts.has(e))return this.cacheParts.get(e);const s=Array.from(this.node.querySelectorAll(`[data-semantic-id="${e}"]`)),i=this.subtree(e,s);return this.cacheParts.set(e,[...s,...i]),this.cacheParts.get(e)}subtree(t,e){const s=this.subtrees.get(t),i=new Set;for(const n of e)Array.from(n.querySelectorAll("[data-semantic-id]")).forEach(o=>i.add(this.nodeId(o)));return[...(function(n,o){return n?o?new Set([...n].filter(a=>!o.has(a))):n:new Set})(s,i)].map(n=>this.getNode(n)).filter(n=>n!==null)}addSpeech(t,e){var s;if(!this.document.options.enableSpeech&&!this.document.options.enableBraille)return;this.anchors.length?setTimeout(()=>{var n;return(n=this.img)===null||n===void 0?void 0:n.remove()},10):(s=this.img)===null||s===void 0||s.remove();let i=this.addComma([t.getAttribute(Te.PREFIX),t.getAttribute(Te.SPEECH),t.getAttribute(Te.POSTFIX)]).join(" ").trim();if(e){let n=this.description===this.none?"":", "+this.description;this.document.options.a11y.help&&this.document.options.enableExplorerHelp&&(n+=", press h for help"),i+=n}this.speak(i,t.getAttribute(Te.BRAILLE),this.SsmlAttributes(t,Te.SPEECH_SSML))}addComma(t){return t[2]&&(t[1]||t[0])&&(t[1]+=","),t}removeSpeech(){this.speech&&(this.unspeak(this.speech),this.speech=null,this.img&&this.node.append(this.img),this.node.setAttribute("tabindex",this.tabIndex))}speak(t,e="",s=null,i=this.none){const n=this.speech,o=this.speech=document.createElement("mjx-speech");if(o.setAttribute("role",this.role),o.setAttribute("aria-label",t||this.none),o.setAttribute("aria-roledescription",i||this.none),o.setAttribute(Te.SPEECH,t),s&&(o.setAttribute(Te.PREFIX_SSML,s[0]||""),o.setAttribute(Te.SPEECH_SSML,s[1]||""),o.setAttribute(Te.POSTFIX_SSML,s[2]||"")),e&&(this.document.options.a11y.brailleSpeech&&(o.setAttribute("aria-label",e),o.setAttribute("aria-roledescription",this.brailleNone)),o.setAttribute("aria-braillelabel",e),o.setAttribute("aria-brailleroledescription",this.brailleNone),this.document.options.a11y.brailleCombine&&o.setAttribute("aria-label",e+df+t)),o.setAttribute("tabindex","0"),hf){const a=document.createElement("mjx-speech-container");a.setAttribute("role","application"),a.setAttribute("aria-roledescription",this.none),a.setAttribute("aria-brailleroledescription",this.brailleNone),a.append(o),this.node.append(a),o.setAttribute("role","img")}else this.node.append(o);this.focusSpeech=!0,o.focus(),this.focusSpeech=!1,this.Update(),n&&setTimeout(()=>this.unspeak(n),100)}unspeak(t){hf&&(t=t.parentElement),t.remove()}attachSpeech(){var t;const e=this.item,s=this.node;if(!s.hasAttribute("has-speech")){for(const a of Array.from(s.childNodes))a.setAttribute("aria-hidden","true");s.setAttribute("has-speech","true")}const i=e.roleDescription,n=(s.getAttribute(Te.SPEECH)||"")+(i?", "+i:"");(t=this.img)===null||t===void 0||t.remove(),this.img=this.document.adaptor.node("mjx-speech",{"aria-label":n,role:"img","aria-roledescription":e.none});const o=s.getAttribute(Te.BRAILLE);o&&(this.document.options.a11y.brailleSpeech&&(this.img.setAttribute("aria-label",o),this.img.setAttribute("aria-roledescription",this.brailleNone)),this.img.setAttribute("aria-braillelabel",o),this.img.setAttribute("aria-brailleroledescription",this.brailleNone),this.document.options.a11y.brailleCombine&&this.img.setAttribute("aria-label",o+df+n)),s.appendChild(this.img),this.adjustAnchors(),this.getTabs()}detachSpeech(){var t;const e=this.node;(t=this.img)===null||t===void 0||t.remove(),e.removeAttribute("has-speech");for(const s of Array.from(e.childNodes))s.removeAttribute("aria-hidden");this.restoreAnchors()}adjustAnchors(){this.anchors=Array.from(this.node.querySelectorAll("a[href]"));for(const t of this.anchors){const e=t.getAttribute("href");t.setAttribute("data-mjx-href",e),t.removeAttribute("href")}this.anchors.length&&this.img.setAttribute("tabindex","0")}restoreAnchors(){for(const t of this.anchors)t.setAttribute("href",t.getAttribute("data-mjx-href")),t.removeAttribute("data-mjx-href");this.anchors=[]}getTabs(){this.tabs=this.getInternalTabs(this.node)}getInternalTabs(t){return Array.from(t.querySelectorAll('button, [data-mjx-href], input, select, textarea, [tabindex]:not
224([tabindex="-1"],mjx-speech)'))}focus(){this.node.focus()}nodeId(t){return t.getAttribute("data-semantic-id")}parentId(t){return t.getAttribute("data-semantic-parent")}getNode(t){return t?this.node.querySelector(`[data-semantic-id="${t}"]`):null}getParent(t){return this.getNode(this.parentId(t))}childArray(t){return t?t.getAttribute("data-semantic-children").split(/,/):[]}isCell(t){return!!t&&this.cellTypes.includes(t.getAttribute("data-semantic-type"))}isRow(t){return!!t&&t.getAttribute("data-semantic-type")==="row"}tableCell(t){for(;t&&t!==this.node;){if(this.isCell(t))return t;t=t.parentNode}return null}cellTable(t){const e=this.getParent(t);return this.isRow(e)?this.getParent(e):e}cellPosition(t){const e=this.getParent(t),s=this.childArray(e).indexOf(this.nodeId(t));if(!this.isRow(e))return[s,1];const i=this.getParent(e);return[this.childArray(i).indexOf(this.nodeId(e)),s]}cellAt(t,e,s){const i=this.getNode(this.childArray(t)[e]);return this.isRow(i)?this.getNode(this.childArray(i)[s]):s===1?i:null}firstNode(t){const e=t.getAttribute("data-semantic-owns");if(!e)return t.querySelector(yn);const s=e.split(/ /);for(const i of s){const n=this.getNode(i);if(n?.hasAttribute("data-speech-node"))return n}return t.querySelector(yn)}rootNode(){const t=this.node.querySelector("[data-semantic-structure]");if(!t)return this.node.querySelector(yn);const e=t.getAttribute("data-semantic-structure").split(/ /)[0].replace("(","");return this.getNode(e)}nextSibling(t){var e;const s=this.parentId(t);if(!s)return null;const i=(e=this.getNode(s).getAttribute("data-semantic-owns"))===null||e===void 0?void 0:e.split(/ /);if(!i)return null;let n,o=i.indexOf(this.nodeId(t));do n=this.getNode(i[++o]);while(n&&!n.hasAttribute("data-speech-node"));return n}prevSibling(t){var e;const s=this.parentId(t);if(!s)return null;const i=(e=this.getNode(s).getAttribute("data-semantic-owns"))===null||e===void 0?void 0:e.split(/ /);if(!i)return null;let n,o=i.indexOf(this.nodeId(t));do n=this.getNode(i[--o]);while(n&&!n.hasAttribute("data-speech-node"));return n}findClicked(t,e,s){const i=this.document.infoIcon;if(i===t||i.contains(t))return i;if(this.node.getAttribute("jax")!=="SVG")return t.closest(yn);let n=null,o=this.node;for(;o;){o.matches(yn)&&(n=o);const a=Array.from(o.childNodes);o=null;for(const c of a)if(c!==this.speech&&c!==this.img&&c.tagName&&c.tagName.toLowerCase()!=="rect"){const{left:h,right:u,top:x,bottom:A}=c.getBoundingClientRect();if(h<=e&&e<=u&&x<=s&&s<=A){o=c;break}}}return n}isLink(t=this.current){var e;return!!(!((e=t?.getAttribute("data-semantic-attributes"))===null||e===void 0)&&e.includes("href:"))}getAnchor(t=this.current){const e=t.closest("a");return e&&this.node.contains(e)?e:null}linkFor(t){return t?.querySelector('[data-semantic-attributes*="href:"]')}parentLink(t){const e=t?.closest('[data-semantic-attributes*="href:"]');return e&&this.node.contains(e)?e:null}focusTop(){this.focusSpeech=!0,this.node.focus(),this.focusSpeech=!1}SsmlAttributes(t,e){return[t.getAttribute(Te.PREFIX_SSML),t.getAttribute(e),t.getAttribute(Te.POSTFIX_SSML)]}restartAfter(t){return cf(this,void 0,void 0,function*(){yield t,this.attachSpeech();const e=this.current;this.current=null,this.pool.unhighlight(),this.setCurrent(e)})}constructor(t,e,s,i,n,o,a,c){super(t,e,null,i),this.document=t,this.pool=e,this.region=s,this.node=i,this.brailleRegion=n,this.magnifyRegion=o,this.item=c,this.sound=!1,this.current=null,this.clicked=null,this.refocus=null,this.focusSpeech=!1,this.restarted=null,this.speech=null,this.speechType="",this.img=null,this.attached=!1,this.eventsAttached=!1,this.marks=[],this.currentMark=-1,this.lastMark=null,this.pendingIndex=[],this.cellTypes=["cell","line"],this.backTab=!1,this.events=super.Events().concat([["focusin",this.FocusIn.bind(this)],["focusout",this.FocusOut.bind(this)],["keydown",this.KeyDown.bind(this)],["mousedown",this.MouseDown.bind(this)],["click",this.Click.bind(this)],["dblclick",this.DblClick.bind(this)]]),this.subtrees=null,this.cacheParts=new Map}findStartNode(){let t=this.refocus||this.current;return!t&&this.restarted&&(t=this.node.querySelector(this.restarted)),this.refocus=this.restarted=null,t}Start(){const t=Object.create(null,{Start:{get:()=>super.Start}});return cf(this,void 0,void 0,function*(){if(this.subtrees||(this.subtrees=new Map,this.get
224Subtrees()),!this.attached||this.active||(this.document.activeItem=this.item,this.item.state()<K.ATTACHSPEECH&&(this.item.attachSpeech(this.document),yield this.generators.promise),this.focusSpeech))return;this.node.classList.add("mjx-explorer-active"),this.document.options.enableExplorerHelp&&this.node.append(this.document.infoIcon);const e=this.findStartNode();this.setCurrent(e||this.rootNode(),!e),t.Start.call(this);const s=this.document.options,i=s.a11y;i.subtitles&&i.speech&&s.enableSpeech&&this.region.Show(this.node),i.viewBraille&&i.braille&&s.enableBraille&&this.brailleRegion.Show(this.node),i.keyMagnifier&&this.magnifyRegion.Show(this.current),this.Update()})}Stop(){this.active&&(this.node.classList.remove("mjx-explorer-active"),this.document.options.enableExplorerHelp&&this.document.infoIcon.remove(),this.pool.unhighlight(),this.magnifyRegion.Hide(),this.region.Hide(),this.brailleRegion.Hide()),super.Stop()}Update(){this.active&&(this.region.node=this.node,(this.document.options.enableSpeech||this.document.options.enableBraille)&&this.generators.updateRegions(this.speech||this.node,this.region,this.brailleRegion),this.magnifyRegion.Update(this.current))}get tabIndex(){return this.document.options.a11y.inTabOrder?"0":"-1"}Attach(){this.attached||(super.Attach(),this.node.setAttribute("tabindex",this.tabIndex),this.attached=!0)}Detach(){var t;super.RemoveEvents(),this.node.removeAttribute("role"),this.node.removeAttribute("aria-roledescription"),this.node.removeAttribute("aria-label"),(t=this.img)===null||t===void 0||t.remove(),this.active&&this.node.setAttribute("tabindex",this.tabIndex),this.attached=!1}NoMove(){Z1()}AddEvents(){this.eventsAttached||(super.AddEvents(),this.addHtmlEvents(),this.eventsAttached=!0)}addHtmlEvents(){for(const t of Array.from(this.node.querySelectorAll("mjx-html"))){const e=s=>{t.contains(document.activeElement)&&(s instanceof KeyboardEvent?(this.clicked=null,s.key!=="Tab"&&s.key!=="Escape"&&s.stopPropagation()):this.clicked=s.target)};t.addEventListener("mousedown",e),t.addEventListener("click",e),t.addEventListener("keydown",e),t.addEventListener("dblclick",e)}}actionable(t){const e=t?.parentNode;return e&&this.highlighter.isMactionNode(e)?e:null}triggerLinkKeyboard(t){return this.current?this.triggerLink(this.current):t.target instanceof HTMLAnchorElement&&(t.target.dispatchEvent(new MouseEvent("click")),!0)}triggerLink(t){if(this.isLink(t)){const e=this.getAnchor(t);return e.classList.add("mjx-visited"),setTimeout(()=>this.FocusOut(null),50),window.location.href=e.getAttribute("data-mjx-href"),!0}return!1}triggerLinkMouse(){const t=this.parentLink(this.refocus);return!!this.triggerLink(t)}semanticFocus(){const t=[];let e="data-semantic-id",s=this.current||this.refocus||this.node;const i=this.actionable(s);i&&(e=i.hasAttribute("data-maction-id")?"data-maction-id":"id",s=i,t.push(yn));const n=s.getAttribute(e);return n&&t.unshift(`[${e}="${n}"]`),t.join(" ")}getSubtrees(){const t=this.node.querySelector("[data-semantic-structure]");if(!t)return;const e=t.getAttribute("data-semantic-structure"),s=(function(i){const n=[[]];for(const o of i)if(o==="("){const a=[];n[n.length-1].push(a),n.push(a)}else o===")"?n.pop():n[n.length-1].push(o);return n[0][0]})(e.replace(/\(/g," ( ").replace(/\)/g," ) ").trim().split(/\s+/));uf(s,this.subtrees)}}function uf(r,t){if(typeof r=="string")return t.has(r)||t.set(r,new Set),new Set;const[e,...s]=r,i=e,n=new Set;for(const o of s){const a=typeof o=="string"?o:o[0],c=uf(o,t);n.add(a),c.forEach(h=>n.add(h))}return t.set(i,n),n}Ta.helpData=new Map([["MacOS",["on MacOS and iOS using VoiceOver",", or the VoiceOver arrow keys to select an expression",""]],["Windows",["in Windows using NVDA or JAWS",`. The screen reader should enter focus or forms mode automatically
225        when the expression gets the browser focus, but if not, you can toggle
226        focus mode using NVDA+space in NVDA; for JAWS, Enter should start
227        forms mode while Numpad Plus leaves it.  Also note that you can use
228        the NVDA or JAWS key plus the arrow keys to explore the expression
229        even in browse mode, and you can use NVDA+shift+arrow keys to
230        navigate out of an expression that has the focus in NVDA`,`NVDA users need to select this option, while JAWS users should be able
231        to get Braille output without changing this setting.`]],["Unix",["in Unix using Orca",`, and Orca should enter focus mode automatically.  If not, use the
232        Orca+a key to toggle focus mode on or off.  Also note that you can use
233        Orca+arrow keys to explore expressions even in browse mode`,""]],["unknown",["with a Screen Reader.","",""]]]),Ta.keyMap=new Map([["Tab",[(r,t)=>r.tabKey(t)]],["Escape",[(r,t)=>r.escapeKey(t)]],["Enter",[(r,t)=>r.enterKey(t)]],["Home",[r=>r.homeKey()]],["ArrowDown",[(r,t)=>r.moveDown(t.shiftKey),!0]],["ArrowUp",[(r,t)=>r.moveUp(t.shiftKey),!0]],["ArrowLeft",[(r,t)=>r.moveLeft(t.shiftKey),!0]],["ArrowRight",[(r,t)=>r.moveRight(t.shiftKey),!0]],[" ",[r=>r.spaceKey()]],["h",[r=>r.hKey()]],[">",[r=>r.nextRules(),!1]],["<",[r=>r.nextStyle(),!1]],["x",[r=>r.summary(),!1]],["z",[r=>r.details(),!1]],["d",[r=>r.depth(),!1]],["v",[r=>r.addMark(),!1]],["p",[r=>r.prevMark(),!1]],["u",[r=>r.clearMarks(),!1]],["s",[r=>r.autoVoice(),!1]],["b",[r=>r.toggleBraille(),!1]],...[..."0123456789"].map(r=>[r,[t=>t.numberKey(parseInt(r)),!1]])]);class pf extends lo{constructor(){super(...arguments),this.events=super.Events().concat([["mouseover",this.MouseOver.bind(this)],["mouseout",this.MouseOut.bind(this)]])}MouseOver(t){this.Start()}MouseOut(t){this.Stop()}}class Wl extends pf{constructor(t,e,s,i,n,o){super(t,e,s,i),this.document=t,this.pool=e,this.region=s,this.node=i,this.nodeQuery=n,this.nodeAccess=o}MouseOut(t){this.highlighter.unhighlight(),this.region.Hide(),super.MouseOut(t)}MouseOver(t){super.MouseOver(t);const e=t.target,[s,i]=this.getNode(e);s&&(this.highlighter.unhighlight(),this.highlighter.highlight([s]),this.region.Update(i),this.region.Show(s))}getNode(t){const e=t;for(;t&&t!==this.node;){if(this.nodeQuery(t))return[t,this.nodeAccess(t)];t=t.parentNode}for(t=e;t;){if(this.nodeQuery(t))return[t,this.nodeAccess(t)];const s=t.childNodes[0];t=s&&s.tagName==="defs"?t.childNodes[1]:s}
vendor: 4,622 bytes, line 233
233return[null,null]}}class ql extends Wl{}class mf extends Wl{}class ff extends Wl{constructor(t,e,s,i){super(t,e,new lf(t),i,n=>this.highlighter.isMactionNode(n),()=>{}),this.document=t,this.pool=e,this.node=i}}class ou extends lo{constructor(t,e,s,i,n){super(t,e,null,i),this.document=t,this.pool=e,this.region=s,this.node=i,this.mml=n,this.stoppable=!1}Attach(){super.Attach(),this.Start()}Detach(){this.Stop(),super.Detach()}}class gf extends ou{Start(){this.active||(this.active=!0,this.highlighter.highlightAll(this.node))}Stop(){this.active&&this.highlighter.unhighlightAll(),this.active=!1}}class bf extends ou{constructor(){super(...arguments),this.contrast=new Vl,this.leaves=[],this.modality="data-semantic-foreground"}Start(){this.active||(this.active=!0,this.node.hasAttribute("hasforegroundcolor")||(this.colorLeaves(),this.node.setAttribute("hasforegroundcolor","true")),this.leaves.forEach(t=>this.colorize(t)))}Stop(){this.active&&this.leaves.forEach(t=>this.uncolorize(t)),this.active=!1}colorLeaves(){this.leaves=Array.from(this.node.querySelectorAll("[data-semantic-id]:not([data-semantic-children])"));for(const t of this.leaves)t.setAttribute(this.modality,this.contrast.generate()),this.contrast.increment()}colorize(t){t.hasAttribute(this.modality)&&(t.setAttribute(this.modality+"-old",t.style.color),t.style.color=t.getAttribute(this.modality))}uncolorize(t){const e=this.modality+"-old";t.hasAttribute(e)&&(t.style.color=t.getAttribute(e))}}class Vl{constructor(){this.hue=10,this.sat=100,this.light=50,this.incr=53}generate(){return Vl.hsl2rgb(this.hue,this.sat,this.light)}increment(){this.hue=(this.hue+this.incr)%360}static hsl2rgb(t,e,s){e=e>1?e/100:e,s=s>1?s/100:s;const i=(1-Math.abs(2*s-1))*e,n=i*(1-Math.abs(t/60%2-1)),o=s-i/2;let a=0,c=0,h=0;return 0<=t&&t<60?[a,c,h]=[i,n,0]:60<=t&&t<120?[a,c,h]=[n,i,0]:120<=t&&t<180?[a,c,h]=[0,i,n]:180<=t&&t<240?[a,c,h]=[0,n,i]:240<=t&&t<300?[a,c,h]=[n,0,i]:300<=t&&t<360&&([a,c,h]=[i,0,n]),`rgb(${255*(a+o)}, ${255*(c+o)}, ${255*(h+o)})`}}const ib={color:"blue",alpha:.2},rb={color:"black",alpha:1},br={ENCLOSED:"data-sre-enclosed",BBOX:"data-sre-highlighter-bbox",ADDED:"data-sre-highlighter-added"};class Ef{constructor(t){this.currentHighlights=[],this.priority=t,this.ATTR="data-sre-highlight-"+t}highlight(t){this.currentHighlights.push(t);for(const e of t)this.highlightNode(e),this.setHighlighted(e)}highlightAll(t){const e=this.getMactionNodes(t);for(const s of e)this.highlight([s])}unhighlight(){const t=this.currentHighlights.pop();t&&t.forEach(e=>{this.isHighlighted(e)&&(this.unhighlightNode(e),this.unsetHighlighted(e))})}unhighlightAll(){for(;this.currentHighlights.length>0;)this.unhighlight()}encloseNodes(t,e){if(t.length===1)return t;const s=this.constructor,i=s.lineSelector,n=s.lineAttr,o=new Map;for(const a of t){const c=a.closest(i),h=c?c.getAttribute(n):"";o.has(h)||o.set(h,[]),o.get(h).push(a)}for(const a of o.values())if(a.length>1){let[c,h,u,x]=[1/0,1/0,-1/0,-1/0];for(const I of a){I.setAttribute(br.ENCLOSED,"true");const{left:q,top:et,right:Rt,bottom:Ce}=I.getBoundingClientRect();et===Ce&&q===Rt||(q<c&&(c=q),et<h&&(h=et),Ce>x&&(x=Ce),Rt>u&&(u=Rt))}const A=this.createEnclosure(c,x,u-c,x-h,e,a[0]);t.push(A)}return t}setColorCSS(t,e,s){var i,n;const o=(i=e.color)!==null&&i!==void 0?i:s.color,a=(n=e.alpha)!==null&&n!==void 0?n:s.alpha;yi.setColor(t,this.priority,o,a)}setColor(t,e){this.setColorCSS("fg",e,rb),this.setColorCSS("bg",t,ib)}isHighlighted(t){return t.hasAttribute(this.ATTR)}setHighlighted(t){t.setAttribute(this.ATTR,"true")}unsetHighlighted(t){t.removeAttribute(this.ATTR),t.removeAttribute(br.ENCLOSED)}}class au extends Ef{highlightNode(t){if(this.isHighlighted(t)||t.tagName==="svg"||t.tagName==="MJX-CONTAINER"||t.hasAttribute(br.BBOX)||t.hasAttribute(br.ENCLOSED))return;const{x:e,y:s,width:i,height:n}=t.getBBox(),o=this.createRect(e,s,i,n,t.getAttribute("transform"));this.setHighlighted(o),t.parentNode.insertBefore(o,t)}unhighlightNode(t){if(t.hasAttribute(br.BBOX))return void t.remove();const e=t.previousSibling;e?.hasAttribute(br.ADDED)&&e.remove()}createEnclosure(t,e,s,i,n,o){const[a,c]=this.screen2svg(t,e,o),[h,u]=this.screen2svg(t+s,e-i,o),x=this.createRect(a,c,h-a,u-c,o.getAttribute("transform"));return x.setAttribute(br.BBOX,"true"),o.parentNode.insertBefore(x,o),x}screen2svg(t,e,s){const i=s,n=DOMPoint.fromPoint({x:t,y:e}).matrixTransform(i.getScreenCTM().inverse());return[n.x,n.y]}createRect(t,e,s,i,n){const o=document.createElementNS("http://www.w3.org/2000/svg","rect");return o.setAttribute(br.ADDED,"true"),o.setAttribute("x",String(t-40)),o.setAttribute("y",String(e
233-40)),o.setAttribute("width",String(s+80)),o.setAttribute("height",String(i+80)),n&&o.setAttribute("transform",n),o}isMactionNode(t){return t.getAttribute("data-mml-node")==="maction"}getMactionNodes(t){return Array.from(t.querySelectorAll('[data-mml-node="maction"]'))}}au.lineSelector="[data-mjx-linebox]",au.lineAttr="data-mjx-lineno";class zl extends Ef{highlightNode(t){}unhighlightNode(t){t.tagName.toLowerCase()==="mjx-bbox"&&t.remove()}createEnclosure(t,e,s,i,n){const o=n.getBoundingClientRect(),a=document.createElement("mjx-bbox");return a.style.width=s+"px",a.style.height=i+"px",a.style.left=t-o.left+"px",a.style.top=e-i-o.top+"px",a.style.position="absolute",n.prepend(a),a}isMactionNode(t){var e;return((e=t.tagName)===null||e===void 0?void 0:e.toLowerCase())==="mjx-maction"}getMactionNodes(t){return Array.from(t.querySelectorAll("mjx-maction"))}}function lu(r,t,e,s){const i=new nb[s](r);return i.setColor(t,e),i}zl.lineSelector="mjx-linebox",zl.lineAttr="lineno";const nb={SVG:au,CHTML:zl,generic:zl};class xf{constructor(t){this.document=t,this.speechRegion=new nu(this.document),this.brailleRegion=new yi(this.document),this.magnifier=new xn(this.document),this.tooltip1=new gr(this.document),this.tooltip2=new gr(this.document),this.tooltip3=new gr(this.document)}}const yf={speech:(r,t,e,...s)=>{const i=Ta.create(r,t,r.explorerRegions.speechRegion,e,r.explorerRegions.brailleRegion,r.explorerRegions.magnifier,s[0],s[1]);return i.sound=!0,i},mouseMagnifier:(r,t,e,...s)=>mf.create(r,t,r.explorerRegions.magnifier,e,i=>i.hasAttribute("data-semantic-type"),i=>i),hover:(r,t,e,...s)=>ff.create(r,t,null,e),infoType:(r,t,e,...s)=>ql.create(r,t,r.explorerRegions.tooltip1,e,i=>i.hasAttribute("data-semantic-type"),i=>i.getAttribute("data-semantic-type")),infoRole:(r,t,e,...s)=>ql.create(r,t,r.explorerRegions.tooltip2,e,i=>i.hasAttribute("data-semantic-role"),i=>i.getAttribute("data-semantic-role")),infoPrefix:(r,t,e,...s)=>ql.create(r,t,r.explorerRegions.tooltip3,e,i=>{var n;return(n=i.hasAttribute)===null||n===void 0?void 0:n.call(i,"data-semantic-prefix-none")},i=>{var n;return(n=i.getAttribute)===null||n===void 0?void 0:n.call(i,"data-semantic-prefix-none")}),flame:(r,t,e,...s)=>gf.create(r,t,null,e),treeColoring:(r,t,e,...s)=>bf.create(r,t,null,e,...s)};class Nf{constructor(){this.explorers={},this.attached=[],this._restart=[],this.speechExplorerKeys=["speech","braille","keyMagnifier"]}get highlighter(){if(this._renderer!==this.document.outputJax.name)return this._renderer=this.document.outputJax.name,this.setPrimaryHighlighter(),this._highlighter;const[t,e]=this.colorOptions();return this._highlighter.setColor(e,t),this._highlighter}init(t,e,s,i){this.document=t,this.mml=s,this.node=e,this.setPrimaryHighlighter();for(const n of Object.keys(yf))this.explorers[n]=yf[n](this.document,this,this.node,this.mml,i);this.setSecondaryHighlighter(),this.attach()}attach(){this.attached=[];const t=[],e=this.document.options.a11y;for(const[s,i]of Object.entries(this.explorers))i instanceof Ta?(i.stoppable=!1,t.unshift(i),this.speechExplorerKeys.some(n=>this.document.options.a11y[n])?(i.Attach(),this.attached.push(s)):i.Detach()):e[s]||s==="speech"&&(e.braille||e.keyMagnifier)?(i.Attach(),this.attached.push(s)):i.Detach();for(const s of t)if(s.attached){s.stoppable=!0;break}}reattach(){for(const t of this.attached){const e=this.explorers[t];e.active&&(this._restart.push(t),e.Stop())}}restart(){this._restart.forEach(t=>{this.explorers[t].Start()}),this._restart=[]}setPrimaryHighlighter(){const[t,e]=this.colorOptions();this._highlighter=lu(yi.priority.primary,e,t,this.document.outputJax.name)}setSecondaryHighlighter(){this.secondaryHighlighter=lu(yi.priority.secondary,{color:"red",alpha:.8},{color:"black"},this.document.outputJax.name),this.speech.region.highlighter=this.secondaryHighlighter}highlight(t){this.highlighter.highlight(t)}unhighlight(){this.secondaryHighlighter.unhighlight(),this.highlighter.unhighlight()}get speech(){return this.explorers.speech}colorOptions(){const t=this.document.options.a11y;return[{color:t.foregroundColor.toLowerCase(),alpha:t.foregroundOpacity/100},{color:t.backgroundColor.toLowerCase(),alpha:t.backgroundOpacity/100}]}}const ob=Fe.os==="Unix";function vf(r,t){var e;return e=class extends r{constructor(){super(...arguments),this.refocus=null}get ariaRole(){return this.constructor.ariaRole}get roleDescription(){const s=this.constructor;return s.roleDescription==="none"?s.none:s.roleDescription}get none(){return this.constructor.none}get brailleNone(){return this.constructor.brailleNone}attachSpeech(s){var i,n;super.attachSpeech(s),(n=(i=this.outputData.speechPromise)===null||i===void 0?void 0:i.then(()=>this.explorers.speech.attachSpeech()))===null||n===void 0||n.then(()=>{var o;!((o=this.explorers)===null||o===void 0)&&o.speech&&(this.explorers.speech.restarted=this.refocus),this.refocus=null,this.explorers&&this.explorers.restart()})}detachSpeech(s){super.detachSpeech(s),this.explorers.speech.detachSpeech()}explorable(s,i=!1){if(!(this.state()>=K.EXPLORER)){if(!this.isEscaped&&(s.options.enableExplorer||i)){const n=this.typesetRoot,o=t(this.root);this.explorers||(this.explorers=new Nf),this.explorers.init(s,n,o,this)}this.state(K.EXPLORER)}}state(s=null,i=!1){if(s<K.EXPLORER&&this.explorers)for(const n of Object.values(this.explorers.explorers))n.active&&n.Stop();return super.state(s,i)}rerender(s,i=K.RERENDER){const n=this.setTemporaryFocus(s);super.rerender(s,i),this.clearTemporaryFocus(n)}setTemporaryFocus(s){var i;let n=null;if(this.explorers){const o=this.explorers.speech;if(n=o?.attached?s.tmpFocus:null,n){this.refocus=(i=o.semanticFocus())!==null&&i!==void 0?i:null;const a=s.adaptor;a.append(a.body(),n)}
233this.explorers.reattach(),n?.focus()}return n}clearTemporaryFocus(s){var i;s&&((i=this.outputData.speechPromise)!==null&&i!==void 0?i:Promise.resolve()).then(()=>setTimeout(()=>s.remove(),100))}},e.ariaRole=ob?"tree":"application",e.roleDescription="math",e.none="‘",e.brailleNone="⠀",e}function Tf(r){var t;return t=class extends r{constructor(...e){super(...e),this.explorerRegions=null,this.activeItem=null;const s=this.constructor.ProcessBits;s.has("explorer")||s.allocate("explorer");const i=new Xa(this.mmlFactory),n=this.options;n.a11y.speechRules||(n.a11y.speechRules=`${n.sre.domain}-${n.sre.style}`);const o=n.MathItem=vf(n.MathItem,h=>i.visitTree(h));o.roleDescription=n.roleDescription,this.explorerRegions=new xf(this),"addStyles"in this&&this.addStyles(this.constructor.speechStyles);const a=this.adaptor,c="http://www.w3.org/2000/svg";this.infoIcon=a.node("mjx-help",{},[a.node("svg",{viewBox:"0 0 18 18",xmlns:c,"aria-hidden":"true"},[a.node("circle",{stroke:"none"},[],c),a.node("circle",{},[],c),a.node("line",{x1:9,y1:9,x2:9,y2:13},[],c),a.node("line",{x1:9,y1:5.5,x2:9,y2:5.5},[],c)],c)]),this.tmpFocus=a.node("mjx-focus",{tabIndex:0,style:{outline:"none",display:"block",position:"absolute",top:0,left:"-10px",width:"1px",height:"1px",overflow:"hidden"},role:o.ariaRole,"aria-label":o.none,"aria-roledescription":o.none})}explorable(){if(!this.processed.isSet("explorer")){if(this.options.enableExplorer)for(const e of this.math)e.explorable(this);this.processed.set("explorer")}return this}rerender(e){const s=this.activeItem,i=s?.setTemporaryFocus(this);return super.rerender(e),s?.clearTemporaryFocus(i),this}state(e,s=!1){return super.state(e,s),e<K.EXPLORER&&this.processed.clear("explorer"),this}},t.OPTIONS=Object.assign(Object.assign({},r.OPTIONS),{enableExplorer:Vr,enableExplorerHelp:!0,renderActions:hs(Object.assign(Object.assign({},r.OPTIONS.renderActions),{explorable:[K.EXPLORER]})),sre:hs(Object.assign(Object.assign({},r.OPTIONS.sre),{speech:"none"})),a11y:Object.assign(Object.assign({},r.OPTIONS.a11y),{align:"top",backgroundColor:"Blue",backgroundOpacity:20,flame:!1,foregroundColor:"Black",foregroundOpacity:100,highlight:"None",hover:!1,infoPrefix:!1,infoRole:!1,infoType:!1,keyMagnifier:!1,magnification:"None",magnify:"400%",mouseMagnifier:!1,subtitles:!1,treeColoring:!1,viewBraille:!1,voicing:!1,brailleSpeech:!1,brailleCombine:!1,help:!0,roleDescription:"math",inTabOrder:!0,tabSelects:"all"})}),t.speechStyles={'mjx-container[has-speech="true"]':{position:"relative",cursor:"default"},"mjx-speech":{position:"absolute","z-index":-1,left:0,top:0,bottom:0,right:0},"mjx-speech:focus":{outline:"none"},"mjx-container .mjx-selected":{outline:"2px solid black"},"mjx-container a[data-mjx-href]":{color:"LinkText",cursor:"pointer"},"mjx-container a[data-mjx-href].mjx-visited":{color:"VisitedText"},"mjx-container > mjx-help":{display:"none",position:"absolute",top:"-.3em",right:"-.5em",width:".6em",height:".6em",cursor:"pointer"},'mjx-container[display="true"] > mjx-help':{position:"sticky",inset:"-100% 0 100% 0",margin:"-.3em -.5em 0 -.1em",right:0,top:"initial"},"mjx-help > svg":{stroke:"black",width:"100%",height:"100%"},"mjx-help > svg > circle":{"stroke-width":"1.5px",cx:"9px",cy:"9px",r:"9px",fill:"white"},"mjx-help > svg > circle:nth-child(2)":{fill:"var(--mjx-bg1-color)",r:"7px"},"mjx-help > svg > line":{"stroke-width":"2.5px","stroke-linecap":"round"},"mjx-help:hover > svg > circle:nth-child(2)":{fill:"white"},"mjx-container.mjx-explorer-active > mjx-help":{display:"inline-flex","align-items":"center"},"@media (prefers-color-scheme: dark) /* explorer */":{"mjx-help > svg":{stroke:"#E0E0E0"},"mjx-help > svg > circle":{fill:"#404040"},"mjx-help > svg > circle:nth-child(2)":{fill:"rgba(132, 132, 255, .3)"},"mjx-help:hover > svg > circle:nth-child(2)":{stroke:"#AAAAAA",fill:"#404040"}}},t}function Cf(r,t=null){return r.documentClass.prototype.attachSpeech||(r=iu(r,t)),r.documentClass=Tf(r.documentClass),r}function ab(r,t){var e;const s=I1();for(const i in t)r.options.a11y[i]!==void 0?Lf(r,i,t[i]):s[i]!==void 0&&(r.options.sre[i]=t[i]);t.roleDescription&&(r.options.MathItem.roleDescription=t.roleDescription);for(const i of r.math)(e=i?.explorers)===null||e===void 0||e.attach()}function Lf(r,t,e){switch(t){case"speechRules":{const[s,i]=e.split("-");r.options.sre.domain=s,r.options.sre.style=i;break}case"magnification":switch(e){case"None":r.options.a11y.magnification=e,r.options.a11y.keyMagnifier=!1,r.options.a11y.mouseMagnifier=!1;break;case"Keyboard":r.options.a11y.magnification=e,r.options.a11y.keyMagnifier=!0,r.options.a11y.mouseMagnifier=!1;break;case"Mouse":r.options.a11y.magnification=e,r.options.a11y.keyMagnifier=!1,r.options.a11y.mouseMagnifier=!0}break;case"highlight":switch(e){case"None":r.options.a11y.highlight=e,r.options.a11y.hover=!1,r.options.a11y.flame=!1;break;case"Hover":r.options.a11y.highlight=e,r.options.a11y.hover=!0,r.options.a11y.flame=!1;break;case"Flame":r.options.a11y.highlight=e,r.options.a11y.hover=!1,r.options.a11y.flame=!0}break;case"locale":r.options.sre.locale=e;break;default:r.options.a11y[t]=e}}Dn("EXPLORER",K.INSERTED+30),MathJax.loader&&MathJax.loader.checkVersion("a11y/explorer",ui,"a11y"),Ks({_:{a11y:{explorer_ts:dh,explorer:{Explorer:nh,ExplorerPool:hh,Highlighter:ch,KeyExplorer:oh,MouseExplorer:ah,Region:rh,TreeE
233xplorer:lh}}}}),MathJax.startup&&Vr&&MathJax.startup.extendHandler(r=>Cf(r)),Ze.preLoaded("a11y/sre","a11y/semantic-enrich","a11y/speech","a11y/explorer","input/mml"),Ze.preLoaded("loader","startup","core","input/tex","output/chtml","ui/menu"),Ze.saveVersion("tex-chtml"),(function(r,t){lm.loadFont(r,"chtml",ad,t)})(function(r){return Ze.load(...Re.load).then(()=>(r||function(){})()).then(()=>Re.ready()).catch(t=>Re.failed(t))},!0)})()})(),Rf}var If=pb();const mb=db(If),gb=ub({__proto__:null,default:mb},[If]);export{gb as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.