(()=>{"use strict";var t={d:(e,F)=>{for(var a in F)t.o(F,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:F[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>g});var F={};t.r(F),t.d(F,{HtmlConfiguration:()=>y});const a=("undefined"!=typeof window?window:global).MathJax._.components.global,u=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),r=(a.MathJax,MathJax._.input.tex.HandlerTypes),n=r.ConfigurationType,o=r.HandlerType,i=MathJax._.input.tex.Configuration,s=i.Configuration,l=(i.ConfigurationHandler,i.ParserConfiguration,MathJax._.input.tex.TokenMap),c=(l.parseResult,l.AbstractTokenMap,l.RegExpMap,l.AbstractParseMap,l.CharacterMap,l.DelimiterMap,l.MacroMap,l.CommandMap),d=(l.EnvironmentMap,MathJax._.input.tex.NodeUtil.default),f=MathJax._.input.tex.ParseUtil,h=(f.KeyValueDef,f.KeyValueTypes,f.ParseUtil),p=MathJax._.input.tex.TexError.default,m=/[\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;function x(t){return!(t.match(/[\x00-\x1f\x7f-\x9f "'>/=]/)||t.match(m))}const M={Data(t,e){const F=t.GetArgument(e),a=b(t,e),u=h.keyvalOptions(F);for(const t in u){if(!x(t))throw new p("InvalidHTMLAttr","Invalid HTML attribute: %1",`data-${t}`);d.setAttribute(a,`data-${t}`,u[t])}t.Push(a)},Href(t,e){const F=t.GetArgument(e),a=b(t,e);d.setAttribute(a,"href",F),t.Push(a)},Class(t,e){let F=t.GetArgument(e);const a=b(t,e),u=d.getAttribute(a,"class");u&&(F=u+" "+F),d.setAttribute(a,"class",F),t.Push(a)},Style(t,e){let F=t.GetArgument(e);const a=b(t,e);let u=d.getAttribute(a,"style");u&&(";"!==u.charAt(F.length-1)&&(u+=";"),F=u+" "+F),d.setAttribute(a,"style",F),t.Push(a)},Id(t,e){const F=t.GetArgument(e),a=b(t,e);d.setAttribute(a,"id",F),t.Push(a)}},b=function(t,e){const F=t.ParseArg(e);if(!d.isInferred(F))return F;const a=t.create("node","mrow");return d.copyChildren(F,a),d.copyAttributes(F,a),a},g=M;new c("html_macros",{data:g.Data,href:g.Href,class:g.Class,style:g.Style,cssId:g.Id});const y=s.create("html",{[n.HANDLER]:{[o.MACRO]:["html_macros"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/html","4.0.0","tex-extension"),u({_:{input:{tex:{html:{HtmlConfiguration:F,HtmlMethods:e}}}}})})();