daily-question 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +38 -26
  3. package/client.js +250 -144
  4. package/cordis.patch.yml +1 -1
  5. package/icon.svg +10 -7
  6. package/index.js +6 -6
  7. package/lib/bank.js +53 -36
  8. package/lib/exam-dates.js +101 -67
  9. package/lib/generate.js +62 -25
  10. package/lib/generation-history.js +8 -0
  11. package/lib/paper-types.js +47 -0
  12. package/lib/reference-reader.js +11 -8
  13. package/lib/references.js +72 -26
  14. package/lib/research.js +22 -13
  15. package/lib/routes.js +62 -95
  16. package/lib/service.js +73 -72
  17. package/lib/store.js +3 -8
  18. package/lib/subjects.js +12 -0
  19. package/package.json +2 -2
  20. package/vendor/mathjax/a11y/assistive-mml.js +1 -0
  21. package/vendor/mathjax/input/tex/extensions/action.js +1 -0
  22. package/vendor/mathjax/input/tex/extensions/ams.js +1 -0
  23. package/vendor/mathjax/input/tex/extensions/amscd.js +1 -0
  24. package/vendor/mathjax/input/tex/extensions/autoload.js +1 -0
  25. package/vendor/mathjax/input/tex/extensions/bbm.js +1 -0
  26. package/vendor/mathjax/input/tex/extensions/bboldx.js +1 -0
  27. package/vendor/mathjax/input/tex/extensions/bbox.js +1 -0
  28. package/vendor/mathjax/input/tex/extensions/begingroup.js +1 -0
  29. package/vendor/mathjax/input/tex/extensions/boldsymbol.js +1 -0
  30. package/vendor/mathjax/input/tex/extensions/braket.js +1 -0
  31. package/vendor/mathjax/input/tex/extensions/bussproofs.js +1 -0
  32. package/vendor/mathjax/input/tex/extensions/cancel.js +1 -0
  33. package/vendor/mathjax/input/tex/extensions/cases.js +1 -0
  34. package/vendor/mathjax/input/tex/extensions/centernot.js +1 -0
  35. package/vendor/mathjax/input/tex/extensions/color.js +1 -0
  36. package/vendor/mathjax/input/tex/extensions/colortbl.js +1 -0
  37. package/vendor/mathjax/input/tex/extensions/colorv2.js +1 -0
  38. package/vendor/mathjax/input/tex/extensions/configmacros.js +1 -0
  39. package/vendor/mathjax/input/tex/extensions/dsfont.js +1 -0
  40. package/vendor/mathjax/input/tex/extensions/empheq.js +1 -0
  41. package/vendor/mathjax/input/tex/extensions/enclose.js +1 -0
  42. package/vendor/mathjax/input/tex/extensions/extpfeil.js +1 -0
  43. package/vendor/mathjax/input/tex/extensions/fontsizev3.js +1 -0
  44. package/vendor/mathjax/input/tex/extensions/gensymb.js +1 -0
  45. package/vendor/mathjax/input/tex/extensions/html.js +1 -0
  46. package/vendor/mathjax/input/tex/extensions/mathtools.js +1 -0
  47. package/vendor/mathjax/input/tex/extensions/mhchem.js +34 -0
  48. package/vendor/mathjax/input/tex/extensions/newcommand.js +1 -0
  49. package/vendor/mathjax/input/tex/extensions/noerrors.js +1 -0
  50. package/vendor/mathjax/input/tex/extensions/noundefined.js +1 -0
  51. package/vendor/mathjax/input/tex/extensions/physics.js +1 -0
  52. package/vendor/mathjax/input/tex/extensions/require.js +1 -0
  53. package/vendor/mathjax/input/tex/extensions/setoptions.js +1 -0
  54. package/vendor/mathjax/input/tex/extensions/tagformat.js +1 -0
  55. package/vendor/mathjax/input/tex/extensions/texhtml.js +1 -0
  56. package/vendor/mathjax/input/tex/extensions/textcomp.js +1 -0
  57. package/vendor/mathjax/input/tex/extensions/textmacros.js +1 -0
  58. package/vendor/mathjax/input/tex/extensions/unicode.js +1 -0
  59. package/vendor/mathjax/input/tex/extensions/units.js +1 -0
  60. package/vendor/mathjax/input/tex/extensions/upgreek.js +1 -0
  61. package/vendor/mathjax/input/tex/extensions/verb.js +1 -0
  62. package/vendor/mathjax/newcm/svg/dynamic/PUA.js +1 -0
  63. package/vendor/mathjax/newcm/svg/dynamic/accents-b-i.js +1 -0
  64. package/vendor/mathjax/newcm/svg/dynamic/accents.js +1 -0
  65. package/vendor/mathjax/newcm/svg/dynamic/arabic.js +1 -0
  66. package/vendor/mathjax/newcm/svg/dynamic/arrows.js +1 -0
  67. package/vendor/mathjax/newcm/svg/dynamic/braille-d.js +1 -0
  68. package/vendor/mathjax/newcm/svg/dynamic/braille.js +1 -0
  69. package/vendor/mathjax/newcm/svg/dynamic/calligraphic.js +1 -0
  70. package/vendor/mathjax/newcm/svg/dynamic/cherokee.js +1 -0
  71. package/vendor/mathjax/newcm/svg/dynamic/cyrillic-ss.js +1 -0
  72. package/vendor/mathjax/newcm/svg/dynamic/cyrillic.js +1 -0
  73. package/vendor/mathjax/newcm/svg/dynamic/devanagari.js +1 -0
  74. package/vendor/mathjax/newcm/svg/dynamic/double-struck.js +1 -0
  75. package/vendor/mathjax/newcm/svg/dynamic/fraktur.js +1 -0
  76. package/vendor/mathjax/newcm/svg/dynamic/greek-ss.js +1 -0
  77. package/vendor/mathjax/newcm/svg/dynamic/greek.js +1 -0
  78. package/vendor/mathjax/newcm/svg/dynamic/hebrew.js +1 -0
  79. package/vendor/mathjax/newcm/svg/dynamic/latin-b.js +1 -0
  80. package/vendor/mathjax/newcm/svg/dynamic/latin-bi.js +1 -0
  81. package/vendor/mathjax/newcm/svg/dynamic/latin-i.js +1 -0
  82. package/vendor/mathjax/newcm/svg/dynamic/latin.js +1 -0
  83. package/vendor/mathjax/newcm/svg/dynamic/marrows.js +1 -0
  84. package/vendor/mathjax/newcm/svg/dynamic/math.js +1 -0
  85. package/vendor/mathjax/newcm/svg/dynamic/monospace-ex.js +1 -0
  86. package/vendor/mathjax/newcm/svg/dynamic/monospace-l.js +1 -0
  87. package/vendor/mathjax/newcm/svg/dynamic/monospace.js +1 -0
  88. package/vendor/mathjax/newcm/svg/dynamic/mshapes.js +1 -0
  89. package/vendor/mathjax/newcm/svg/dynamic/phonetics-ss.js +1 -0
  90. package/vendor/mathjax/newcm/svg/dynamic/phonetics.js +1 -0
  91. package/vendor/mathjax/newcm/svg/dynamic/sans-serif-b.js +1 -0
  92. package/vendor/mathjax/newcm/svg/dynamic/sans-serif-bi.js +1 -0
  93. package/vendor/mathjax/newcm/svg/dynamic/sans-serif-ex.js +1 -0
  94. package/vendor/mathjax/newcm/svg/dynamic/sans-serif-i.js +1 -0
  95. package/vendor/mathjax/newcm/svg/dynamic/sans-serif-r.js +1 -0
  96. package/vendor/mathjax/newcm/svg/dynamic/sans-serif.js +1 -0
  97. package/vendor/mathjax/newcm/svg/dynamic/script.js +1 -0
  98. package/vendor/mathjax/newcm/svg/dynamic/shapes.js +1 -0
  99. package/vendor/mathjax/newcm/svg/dynamic/symbols-b-i.js +1 -0
  100. package/vendor/mathjax/newcm/svg/dynamic/symbols.js +1 -0
  101. package/vendor/mathjax/newcm/svg/dynamic/variants.js +1 -0
  102. package/vendor/mathjax/tex-svg.js +1 -34
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{CancelConfiguration:()=>x,CancelMethods:()=>g});const n=("undefined"!=typeof window?window:e.g).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),o=(n.MathJax,MathJax._.input.tex.HandlerTypes),i=o.ConfigurationType,r=o.HandlerType,c=MathJax._.input.tex.Configuration,l=c.Configuration,s=(c.ConfigurationHandler,c.ParserConfiguration,MathJax._.input.tex.TexConstants.TexConstant),p=MathJax._.input.tex.TokenMap,u=(p.parseResult,p.AbstractTokenMap,p.RegExpMap,p.AbstractParseMap,p.CharacterMap,p.DelimiterMap,p.MacroMap,p.CommandMap),d=(p.EnvironmentMap,MathJax._.input.tex.ParseUtil),f=(d.KeyValueDef,d.KeyValueTypes,d.ParseUtil),h=MathJax._.input.tex.enclose.EncloseConfiguration,M=h.ENCLOSE_OPTIONS,g=(h.EncloseMethods,h.EncloseConfiguration,{Cancel(e,t,n){const a=e.GetBrackets(t,""),o=e.ParseArg(t),i=f.keyvalOptions(a,M);i.notation=n,e.Push(e.create("node","menclose",[o],i))},CancelTo(e,t){const n=e.GetBrackets(t,"");let a=e.ParseArg(t);const o=e.ParseArg(t),i=f.keyvalOptions(n,M);i.notation=[s.Notation.UPDIAGONALSTRIKE,s.Notation.UPDIAGONALARROW,s.Notation.NORTHEASTARROW].join(" "),a=e.create("node","mpadded",[a],{depth:"-.1em",height:"+.1em",voffset:".1em"}),e.Push(e.create("node","msup",[e.create("node","menclose",[o],i),a]))}});new u("cancel",{cancel:[g.Cancel,s.Notation.UPDIAGONALSTRIKE],bcancel:[g.Cancel,s.Notation.DOWNDIAGONALSTRIKE],xcancel:[g.Cancel,s.Notation.UPDIAGONALSTRIKE+" "+s.Notation.DOWNDIAGONALSTRIKE],cancelto:g.CancelTo});const x=l.create("cancel",{[i.HANDLER]:{[r.MACRO]:["cancel"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/cancel","4.1.3","tex-extension"),a({_:{input:{tex:{cancel:{CancelConfiguration:t}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,s)=>{for(var a in s)e.o(s,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:s[a]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{CasesBeginItem:()=>C,CasesConfiguration:()=>E,CasesMethods:()=>T,CasesTags:()=>P});const s=("undefined"!=typeof window?window:e.g).MathJax._.components.global,a=(s.GLOBAL,s.isObject,s.combineConfig,s.combineDefaults,s.combineWithMathJax),n=(s.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,o=n.HandlerType,i=MathJax._.input.tex.Configuration,u=i.Configuration,c=(i.ConfigurationHandler,i.ParserConfiguration,MathJax._.input.tex.TokenMap),m=(c.parseResult,c.AbstractTokenMap,c.RegExpMap,c.AbstractParseMap,c.CharacterMap,c.DelimiterMap,c.MacroMap),l=(c.CommandMap,c.EnvironmentMap),p=MathJax._.input.tex.ParseUtil,h=(p.KeyValueDef,p.KeyValueTypes,p.ParseUtil),g=MathJax._.input.tex.base.BaseMethods,f=(g.splitAlignArray,g.default),d=MathJax._.input.tex.TexError.default,y=MathJax._.input.tex.base.BaseItems,b=(y.StartItem,y.StopItem,y.OpenItem,y.CloseItem,y.NullItem,y.PrimeItem,y.SubsupItem,y.OverItem,y.LeftItem,y.Middle,y.RightItem,y.BreakItem,y.BeginItem),x=(y.EndItem,y.StyleItem,y.PositionItem,y.CellItem,y.MmlItem,y.FnItem,y.NotItem,y.NonscriptItem,y.DotsItem,y.ArrayItem,y.EqnArrayItem,y.MstyleItem,y.EquationItem,MathJax._.input.tex.ams.AmsConfiguration),M=x.AmsTags,I=(x.AmsConfiguration,MathJax._.input.tex.empheq.EmpheqUtil.EmpheqUtil);class C extends b{get kind(){return"cases-begin"}checkItem(e){return e.isKind("end")&&e.getName()===this.getName()&&this.getProperty("end")?(this.setProperty("end",!1),[[],!0]):super.checkItem(e)}}class P extends M{constructor(){super(...arguments),this.subcounter=0}start(e,t,s){this.subcounter=0,super.start(e,t,s)}autoTag(){null==this.currentTag.tag&&("subnumcases"===this.currentTag.env?(0===this.subcounter&&this.counter++,this.subcounter++,this.tag(this.formatNumber(this.counter,this.subcounter),!1)):("numcases-left"!==this.currentTag.env&&this.counter++,this.tag(this.formatNumber(this.counter),!1)))}formatNumber(e,t=null){return e.toString()+(null===t?"":String.fromCharCode(96+t))}}const T={NumCases(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing,e.Push(e.itemFactory.create("end").setProperty("name",t.getName()));const s=e.stack.Top(),a=s.Last,n=h.copyNode(a,e),r=s.getProperty("left");return I.left(a,n,r+"\\mmlToken{mo}{\\U{7B}}\\,",e,"numcases-left"),e.Push(e.itemFactory.create("end").setProperty("name",t.getName())),null}{const s=e.GetArgument("\\begin{"+t.getName()+"}");t.setProperty("left",s);const a=f.EqnArray(e,t,!0,!0,"ll","tt");return a.arraydef.displaystyle=!1,a.arraydef.rowspacing=".2em",a.setProperty("numCases",!0),e.Push(t),a}},Entry(e,t){if(!e.stack.Top().getProperty("numCases"))return f.Entry(e,t);e.Push(e.itemFactory.create("cell").setProperties({isEntry:!0,name:t}));const s=e.string;let a=0,n=e.i;const r=s.length;for(;n<r;){const e=s.charAt(n);if("{"===e)a++,n++;else if("}"===e){if(0===a)break;a--,n++}else{if("&"===e&&0===a)throw new d("ExtraCasesAlignTab","Extra alignment tab in text for numcase environment");if("\\"===e&&0===a){const e=(s.slice(n+1).match(/^[a-z]+|./i)||[])[0];if("\\"===e||"cr"===e||"end"===e||"label"===e||void 0===e)break;n+=e.length}else n++}}const o=s.substring(e.i,n).replace(/^\s*/,"");return e.PushAll(h.internalMath(e,o,0)),e.i=n,null},environment(e,t,s,a){const n=e.itemFactory.create("cases-begin").setProperties({name:t,end:!0});e.Push(s(e,n,...a))}};new l("cases-env",T.environment,{numcases:[T.NumCases,"cases"],subnumcases:[T.NumCases,"cases"]}),new m("cases-macros",{"&":T.Entry});const E=u.create("cases",{[r.HANDLER]:{[o.ENVIRONMENT]:["cases-env"],[o.CHARACTER]:["cases-macros"]},[r.ITEMS]:{[C.prototype.kind]:C},[r.TAGS]:{cases:P}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/cases","4.1.3","tex-extension"),a({_:{input:{tex:{cases:{CasesConfiguration:t}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{CenternotConfiguration:()=>h,filterCenterOver:()=>f});const n=("undefined"!=typeof window?window:e.g).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),o=(n.MathJax,MathJax._.input.tex.HandlerTypes),r=o.ConfigurationType,i=(o.HandlerType,MathJax._.input.tex.Configuration),c=i.Configuration,d=(i.ConfigurationHandler,i.ParserConfiguration,MathJax._.input.tex.TexParser.default),p=MathJax._.input.tex.NodeUtil.default,s=MathJax._.input.tex.TokenMap,l=(s.parseResult,s.AbstractTokenMap,s.RegExpMap,s.AbstractParseMap,s.CharacterMap,s.DelimiterMap,s.MacroMap,s.CommandMap),u=(s.EnvironmentMap,MathJax._.input.tex.base.BaseMethods);u.splitAlignArray;function f({data:e}){for(const t of e.getList("centerOver")){const e=p.getTexClass(t.childNodes[0].childNodes[0]);null!==e&&p.setProperties(t.parent.parent.parent.parent.parent.parent,{texClass:e})}}new l("centernot",{centerOver:function(e,t){const n="{"+e.GetArgument(t)+"}",a=e.ParseArg(t),o=new d(n,e.stack.env,e.configuration).mml(),r=e.create("node","TeXAtom",[new d(n,e.stack.env,e.configuration).mml(),e.create("node","mpadded",[e.create("node","mpadded",[a],{width:0,lspace:"-.5width"}),e.create("node","mphantom",[o])],{width:0,lspace:"-.5width"})]);e.configuration.addNode("centerOver",o),e.Push(r)},centernot:[u.default.Macro,"\\centerOver{#1}{{\u29f8}}",1]});const h=c.create("centernot",{[r.HANDLER]:{macro:["centernot"]},[r.POSTPROCESSORS]:[f]});MathJax.loader&&MathJax.loader.checkVersion("[tex]/centernot","4.1.3","tex-extension"),a({_:{input:{tex:{centernot:{CenternotConfiguration:t}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(o,t)=>{for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};e.r(o),e.d(o,{ColorMethods:()=>B,padding:()=>f});var t={};e.r(t),e.d(t,{COLORS:()=>F});var r={};e.r(r),e.d(r,{ColorModel:()=>M});var n={};e.r(n),e.d(n,{ColorConfiguration:()=>A});const a=("undefined"!=typeof window?window:e.g).MathJax._.components.global,l=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),i=(a.MathJax,MathJax._.input.tex.HandlerTypes),s=i.ConfigurationType,c=i.HandlerType,d=MathJax._.input.tex.TokenMap,u=(d.parseResult,d.AbstractTokenMap,d.RegExpMap,d.AbstractParseMap,d.CharacterMap,d.DelimiterMap,d.MacroMap,d.CommandMap),g=(d.EnvironmentMap,MathJax._.input.tex.Configuration),h=g.Configuration,C=(g.ConfigurationHandler,g.ParserConfiguration,MathJax._.input.tex.NodeUtil.default),m=MathJax._.input.tex.ParseUtil,p=(m.KeyValueDef,m.KeyValueTypes,m.ParseUtil);function f(e){const o=`+${e}`,t=e.replace(/^.*?([a-z]*)$/,"$1");return{width:`+${2*parseFloat(o)}${t}`,height:o,depth:o,lspace:e}}const B={Color(e,o){const t=e.GetBrackets(o,""),r=e.GetArgument(o),n=e.configuration.packageData.get("color").model.getColor(t,r),a=e.itemFactory.create("style").setProperties({styles:{mathcolor:n}});e.stack.env.color=n,e.Push(a)},TextColor(e,o){const t=e.GetBrackets(o,""),r=e.GetArgument(o),n=e.configuration.packageData.get("color").model.getColor(t,r),a=e.stack.env.color;e.stack.env.color=n;const l=e.ParseArg(o);a?e.stack.env.color=a:delete e.stack.env.color;const i=e.create("node","mstyle",[l],{mathcolor:n});e.Push(i)},DefineColor(e,o){const t=e.GetArgument(o),r=e.GetArgument(o),n=e.GetArgument(o);e.configuration.packageData.get("color").model.defineColor(r,t,n),e.Push(e.itemFactory.create("null"))},ColorBox(e,o){const t=e.GetBrackets(o,""),r=e.GetArgument(o),n=p.internalMath(e,e.GetArgument(o)),a=e.configuration.packageData.get("color").model,l=e.create("node","mpadded",n,{mathbackground:a.getColor(t,r)});C.setProperties(l,f(e.options.color.padding)),e.Push(l)},FColorBox(e,o){const t=e.GetBrackets(o,""),r=e.GetArgument(o),n=e.GetBrackets(o,t),a=e.GetArgument(o),l=p.internalMath(e,e.GetArgument(o)),i=e.options.color,s=e.configuration.packageData.get("color").model,c=e.create("node","mpadded",l,{mathbackground:s.getColor(n,a),style:`border: ${i.borderWidth} solid ${s.getColor(t,r)}`});C.setProperties(c,f(i.padding)),e.Push(c)}},w=MathJax._.input.tex.TexError.default,F=new Map([["Apricot","#FBB982"],["Aquamarine","#00B5BE"],["Bittersweet","#C04F17"],["Black","#221E1F"],["Blue","#2D2F92"],["BlueGreen","#00B3B8"],["BlueViolet","#473992"],["BrickRed","#B6321C"],["Brown","#792500"],["BurntOrange","#F7921D"],["CadetBlue","#74729A"],["CarnationPink","#F282B4"],["Cerulean","#00A2E3"],["CornflowerBlue","#41B0E4"],["Cyan","#00AEEF"],["Dandelion","#FDBC42"],["DarkOrchid","#A4538A"],["Emerald","#00A99D"],["ForestGreen","#009B55"],["Fuchsia","#8C368C"],["Goldenrod","#FFDF42"],["Gray","#949698"],["Green","#00A64F"],["GreenYellow","#DFE674"],["JungleGreen","#00A99A"],["Lavender","#F49EC4"],["LimeGreen","#8DC73E"],["Magenta","#EC008C"],["Mahogany","#A9341F"],["Maroon","#AF3235"],["Melon","#F89E7B"],["MidnightBlue","#006795"],["Mulberry","#A93C93"],["NavyBlue","#006EB8"],["OliveGreen","#3C8031"],["Orange","#F58137"],["OrangeRed","#ED135A"],["Orchid","#AF72B0"],["Peach","#F7965A"],["Periwinkle","#7977B8"],["PineGreen","#008B72"],["Plum","#92268F"],["ProcessBlue","#00B0F0"],["Purple","#99479B"],["RawSienna","#974006"],["Red","#ED1B23"],["RedOrange","#F26035"],["RedViolet","#A1246B"],["Rhodamine","#EF559F"],["RoyalBlue","#0071BC"],["RoyalPurple","#613F99"],["RubineRed","#ED017D"],["Salmon","#F69289"],["SeaGreen","#3FBC9D"],["Sepia","#671800"],["SkyBlue","#46C5DD"],["SpringGreen","#C6DC67"],["Tan","#DA9D76"],["TealBlue","#00AEB3"],["Thistle","#D883B7"],["Turquoise","#00B4CE"],["Violet","#58429B"],["VioletRed","#EF58A0"],["White","#FFFFFF"],["WildStrawberry","#EE2967"],["Yellow","#FFF200"],["YellowGreen","#98CC70"],["YellowOrange","#FAA21A"]]),b=new Map;class M{constructor(){this.userColors=new Map}normalizeColor(e,o){if(!e||"named"===e){if(o.match(/;/))throw new w("BadColorValue","Invalid color value");return o}if(b.has(e)){return b.get(e)(o)}throw new w("UndefinedColorModel","Color model '%1' not defined",e)}getColor(e,o){return e&&"named"!==e?this.normalizeColor(e,o):this.getColorByName(o)}getColorByName(e){if(this.userColors.has(e))return this.userColors.get(e);if(F.has(e))return F.get(e);if(e.match(/;/))throw new w("BadColorValue","Invalid color value");return e}defineColor(e,o,t){const r=this.normalizeColor(e,t);this.userColors.set(o,r)}}b.set("rgb",function(e){const o=e.trim().split(/\s*,\s*/);let t="#";if(3!==o.length)throw new w("ModelArg1","Color values for the %1 model require 3 numbers","rgb");for(const e of o){if(!e.match(/^(\d+(\.\d*)?|\.\d+)$/))throw new w("InvalidDecimalNumber","Invalid decimal number");const o=parseFloat(e);if(o<0||o>1)throw new w("ModelArg2","Color values for the %1 model must be between %2 and %3","rgb","0","1");let r=Math.floor(255*o).toString(16);r.length<2&&(r="0"+r),t+=r}return t}),b.set("RGB",function(e){const o=e.trim().split(/\s*,\s*/);let t="#";if(3!==o.length)throw new w("ModelArg1","Color values for the %1 model require 3 numbers","RGB");for(const e of o){if(!e.match(/^\d+$/))throw new w("InvalidNumber","Invalid number");const o=parseInt(e);if(o>255)throw new w("ModelArg2","Color values for the %1 model must be between %2 and %3","RGB","0","255");let r=o.toString(16);r.length<2&&(r="0"+r),t+=r}return t}),b.set("gray",function(e){if(!e.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/))throw new w("InvalidDecimalNumber","Invalid decimal number");const o=parseFloat(e);if(o<0||o>1)throw new w("ModelArg2","Color values for the %1 model must be between %2 and %3","gray","0","1");let t=Math.floor(255*o).toString(16);return t.length<2&&(t="0"+t),`#${t}${t}${t}`}),new u("color",{color:B.Color,textcolor:B.TextColor,definecolor:B.DefineColor,colorbox:B.ColorBox,fcolorbox:B.FColorBox});const A=h.create("color",{[s.HANDLER]:{[c.MACRO]:["color"]},[s.OPTIONS]:{color:{padding:"5px",borderWidth:"2px"}},[s.CONFIG]:function(e,o){o.parseOptions.packageData.set("color",{model:new M})}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/color","4.1.3","tex-extension"),l({_:{input:{tex:{color:{ColorConfiguration:n,ColorConstants:t,ColorMethods:o,ColorUtil:r}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{ColorArrayItem:()=>g,ColortblConfiguration:()=>b});const o=("undefined"!=typeof window?window:t.g).MathJax._.components.global,r=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),n=(o.MathJax,MathJax._.input.tex.HandlerTypes),a=n.ConfigurationType,l=n.HandlerType,i=MathJax._.input.tex.base.BaseItems,s=(i.StartItem,i.StopItem,i.OpenItem,i.CloseItem,i.NullItem,i.PrimeItem,i.SubsupItem,i.OverItem,i.LeftItem,i.Middle,i.RightItem,i.BreakItem,i.BeginItem,i.EndItem,i.StyleItem,i.PositionItem,i.CellItem,i.MmlItem,i.FnItem,i.NotItem,i.NonscriptItem,i.DotsItem,i.ArrayItem),c=(i.EqnArrayItem,i.MstyleItem,i.EquationItem,MathJax._.input.tex.Configuration),m=c.Configuration,u=c.ConfigurationHandler,h=(c.ParserConfiguration,MathJax._.input.tex.TokenMap),p=(h.parseResult,h.AbstractTokenMap,h.RegExpMap,h.AbstractParseMap,h.CharacterMap,h.DelimiterMap,h.MacroMap,h.CommandMap),d=(h.EnvironmentMap,MathJax._.input.tex.TexError.default);class g extends s{constructor(){super(...arguments),this.color={cell:"",row:"",col:[]},this.hasColor=!1}EndEntry(){super.EndEntry();const t=this.row[this.row.length-1],e=this.color.cell||this.color.row||this.color.col[this.row.length-1];e&&(t.attributes.set("mathbackground",e),this.color.cell="",this.hasColor=!0)}EndRow(){super.EndRow(),this.color.row=""}createMml(){const t=super.createMml();let e=t.isKind("mrow")?t.childNodes[1]:t;if(e.isKind("mstyle")&&(e=e.childNodes[0].childNodes[0]),e.isKind("menclose")&&(e=e.childNodes[0].childNodes[0]),this.hasColor){const t=e.attributes;"none"===t.get("frame")&&void 0===t.get("data-frame-styles")&&t.set("data-frame-styles","")}return t}}function f(t,e,o){const r=t.configuration.packageData.get("color").model,n=t.GetBrackets(e,""),a=r.getColor(n,t.GetArgument(e)),l=t.stack.Top();if(!(l instanceof g))throw new d("UnsupportedTableColor","Unsupported use of %1",t.currentCS);if("col"===o){if(l.table.length&&l.color.col[l.row.length]!==a)throw new d("ColumnColorNotTop","%1 must be in the top row or preamble",e);l.color.col[l.row.length]=a,t.GetBrackets(e,"")&&t.GetBrackets(e,"")}else if(l.color[o]=a,"row"===o&&(l.Size()||l.row.length))throw new d("RowColorNotFirst","%1 must be at the beginning of a row",e)}new p("colortbl",{cellcolor:[f,"cell"],rowcolor:[f,"row"],columncolor:[f,"col"]});const b=m.create("colortbl",{[a.HANDLER]:{[l.MACRO]:["colortbl"]},[a.ITEMS]:{array:g},[a.PRIORITY]:10,[a.CONFIG]:[function(t,e){e.parseOptions.packageData.has("color")||u.get("color").config(t,e)},10]});MathJax.loader&&MathJax.loader.checkVersion("[tex]/colortbl","4.1.3","tex-extension"),r({_:{input:{tex:{colortbl:{ColortblConfiguration:e}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var o={d:(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}};o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(o){if("object"==typeof window)return window}}(),o.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),o.r=o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var e={};o.r(e),o.d(e,{ColorConfiguration:()=>u});const t=("undefined"!=typeof window?window:o.g).MathJax._.components.global,n=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),r=(t.MathJax,MathJax._.input.tex.HandlerTypes),a=r.ConfigurationType,i=r.HandlerType,c=MathJax._.input.tex.TokenMap,l=(c.parseResult,c.AbstractTokenMap,c.RegExpMap,c.AbstractParseMap,c.CharacterMap,c.DelimiterMap,c.MacroMap,c.CommandMap),s=(c.EnvironmentMap,MathJax._.input.tex.Configuration),p=s.Configuration;s.ConfigurationHandler,s.ParserConfiguration;new l("colorv2",{color:{Color(o,e){const t=o.GetArgument(e),n=o.stack.env.color;o.stack.env.color=t;const r=o.ParseArg(e);n?o.stack.env.color=n:delete o.stack.env.color;const a=o.create("node","mstyle",[r],{mathcolor:t});o.Push(a)}}.Color});const u=p.create("colorv2",{[a.HANDLER]:{[i.MACRO]:["colorv2"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/colorv2","4.1.3","tex-extension"),n({_:{input:{tex:{colorv2:{ColorV2Configuration:e}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};e.r(n),e.d(n,{ConfigMacrosConfiguration:()=>v});const t=("undefined"!=typeof window?window:e.g).MathJax._.components.global,o=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),a=(t.MathJax,MathJax._.input.tex.HandlerTypes),i=a.ConfigurationType,r=a.HandlerType,c=MathJax._.input.tex.Configuration,s=c.Configuration,p=(c.ConfigurationHandler,c.ParserConfiguration,MathJax._.util.Options),f=(p.isObject,p.APPEND,p.REMOVE,p.OPTIONS,p.Expandable,p.expandable),u=(p.makeArray,p.keys,p.copy,p.insert,p.defaultOptions,p.userOptions,p.selectOptions,p.selectOptionsFromKeys,p.separateOptions,p.lookup,MathJax._.input.tex.TokenMap),d=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap,u.DelimiterMap,u.MacroMap),l=u.CommandMap,m=u.EnvironmentMap,M=MathJax._.input.tex.ParseMethods.default,g=MathJax._.input.tex.Token,h=(g.Token,g.Macro),O=MathJax._.input.tex.newcommand.NewcommandMethods.default,x=MathJax._.input.tex.newcommand.NewcommandItems.BeginEnvItem,y="configmacros-map",b="configmacros-active-map",w="configmacros-env-map";function T(e,n,t){const o=t.parseOptions.handlers.retrieve(n),a=t.parseOptions.options[e];for(const e of Object.keys(a)){const n="string"==typeof a[e]?[a[e]]:a[e],t=Array.isArray(n[2])?new h(e,O.MacroWithTemplate,n.slice(0,2).concat(n[2])):new h(e,O.Macro,n);o.add(e,t)}}const v=s.create("configmacros",{[i.INIT]:function(e){new d(b,{}),new l(y,{}),new m(w,M.environment,{}),e.append(s.local({handler:{[r.CHARACTER]:[b],[r.MACRO]:[y],[r.ENVIRONMENT]:[w]},priority:3}))},[i.CONFIG]:function(e,n){!function(e){T("active",b,e)}(n),function(e){T("macros",y,e)}(n),function(e){const n=e.parseOptions.handlers.retrieve(w),t=e.parseOptions.options.environments;for(const e of Object.keys(t))n.add(e,new h(e,O.BeginEnv,[!0].concat(t[e])))}(n)},[i.ITEMS]:{[x.prototype.kind]:x},[i.OPTIONS]:{active:f({}),macros:f({}),environments:f({})}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/configmacros","4.1.3","tex-extension"),o({_:{input:{tex:{configmacros:{ConfigMacrosConfiguration:n}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,n)=>{for(var a in n)t.o(n,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{DsfontConfiguration:()=>x});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults),o=n.combineWithMathJax,r=(n.MathJax,MathJax._.input.tex.HandlerTypes),i=r.ConfigurationType,s=r.HandlerType,d=MathJax._.input.tex.Configuration,f=d.Configuration,p=(d.ConfigurationHandler,d.ParserConfiguration,MathJax._.input.tex.TokenMap),u=(p.parseResult,p.AbstractTokenMap,p.RegExpMap,p.AbstractParseMap,p.CharacterMap,p.DelimiterMap,p.MacroMap,p.CommandMap),c=(p.EnvironmentMap,MathJax._.input.tex.base.BaseMethods),l=(c.splitAlignArray,c.default);new u("dsfont",{mathds:function(t,e){l.MathFont(t,e,t.options.dsfont.sans?"-ds-ss":"-ds-rm")}});const x=f.create("dsfont",{[i.HANDLER]:{[s.MACRO]:["dsfont"]},[i.OPTIONS]:{dsfont:{sans:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/dsfont","4.1.3","tex-extension"),o({_:{input:{tex:{dsfont:{DsfontConfiguration:e}}}}}),function(t,e,n=`[fonts]/${e}`){if(MathJax.loader){const o=e.replace(/-font-extension$/,"-extension"),r=MathJax.config?.startup?.output||"chtml";a(MathJax.config.loader,"paths",{[o]:n}),MathJax._.output?.[r]||a(MathJax.config.loader,"dependencies",{[`[${o}]/${r}`]:[`output/${r}`]}),MathJax.loader.addPackageData(t,{extraLoads:[`[${o}]/${r}`],rendererExtensions:[o]})}}("[tex]/dsfont","mathjax-dsfont-font-extension")})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{EmpheqUtil:()=>b});var n={};e.r(n),e.d(n,{EmpheqConfiguration:()=>f,EmpheqMethods:()=>E});const a=("undefined"!=typeof window?window:e.g).MathJax._.components.global,i=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),r=(a.MathJax,MathJax._.input.tex.HandlerTypes),o=r.ConfigurationType,p=r.HandlerType,h=MathJax._.input.tex.Configuration,l=h.Configuration,m=(h.ConfigurationHandler,h.ParserConfiguration,MathJax._.input.tex.TokenMap),s=(m.parseResult,m.AbstractTokenMap,m.RegExpMap,m.AbstractParseMap,m.CharacterMap,m.DelimiterMap,m.MacroMap,m.CommandMap),c=m.EnvironmentMap,d=MathJax._.input.tex.ParseUtil,g=(d.KeyValueDef,d.KeyValueTypes,d.ParseUtil),q=MathJax._.input.tex.TexError.default,u=MathJax._.input.tex.TexParser.default,b={splitOptions:(e,t=null)=>g.keyvalOptions(e,t,!0),columnCount(e){let t=0;for(const n of e.childNodes){const e=n.childNodes.length-(n.isKind("mlabeledtr")?1:0);e>t&&(t=e)}return t},cellBlock(e,t,n,a){const i=n.create("node","mpadded",[],{height:0,depth:0,voffset:"-1height"}),r=new u(e,n.stack.env,n.configuration),o=r.mml();a&&r.configuration.tags.label&&(r.configuration.tags.currentTag.env=a,r.configuration.tags.getTag(!0));for(const e of o.isInferred?o.childNodes:[o])i.appendChild(e);return i.appendChild(n.create("node","mphantom",[n.create("node","mpadded",[t],{width:0})])),i},topRowTable(e,t){const n=g.copyNode(e,t);return n.setChildren(n.childNodes.slice(0,1)),n.attributes.set("align","baseline 1"),e.factory.create("mphantom",{},[t.create("node","mpadded",[n],{width:0})])},rowspanCell(e,t,n,a,i){e.appendChild(a.create("node","mpadded",[this.cellBlock(t,g.copyNode(n,a),a,i),this.topRowTable(n,a)],{height:0,depth:0,voffset:"height"}))},left(e,t,n,a,i=""){let r;e.attributes.set("columnalign","right "+e.attributes.get("columnalign")),e.attributes.set("columnspacing","0em "+e.attributes.get("columnspacing")),0===e.childNodes.length&&e.appendChild(a.create("node","mtr"));for(const t of e.childNodes.slice(0).reverse())r=a.create("node","mtd"),t.childNodes.unshift(r),r.parent=t,t.isKind("mlabeledtr")&&(t.childNodes[0]=t.childNodes[1],t.childNodes[1]=r);this.rowspanCell(r,n,t,a,i)},right(e,t,n,a,i=""){0===e.childNodes.length&&e.appendChild(a.create("node","mtr"));const r=e.childNodes[0],o=b.columnCount(e)+(r.isKind("mlabeledtr")?1:0);for(;r.childNodes.length<o;)r.appendChild(a.create("node","mtd"));const p=r.appendChild(a.create("node","mtd"));b.rowspanCell(p,n,t,a,i),e.attributes.set("columnalign",(e.attributes.get("columnalign")||"").split(/ /).slice(0,o).join(" ")+" left"),e.attributes.set("columnspacing",e.attributes.get("columnspacing").split(/ /).slice(0,o-1).join(" ")+" 0em")},adjustTable(e,t){const n=e.getProperty("left"),a=e.getProperty("right");if(n||a){const i=e.Last,r=g.copyNode(i,t);n&&this.left(i,r,n,t),a&&this.right(i,r,a,t)}},allowEnv:{equation:!0,align:!0,gather:!0,flalign:!0,alignat:!0,multline:!0},checkEnv(e){return Object.hasOwn(this.allowEnv,e.replace(/\*$/,""))||!1}},M=MathJax._.input.tex.ParseMethods.default,E={Empheq(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing,e.Push(e.itemFactory.create("end").setProperty("name",e.stack.global.empheq)),e.stack.global.empheq="";const t=e.stack.Top();b.adjustTable(t,e),e.Push(e.itemFactory.create("end").setProperty("name","empheq"))}else{g.checkEqnEnv(e);const n=e.GetBrackets("\\begin{"+t.getName()+"}")||"",[a,i]=e.GetArgument("\\begin{"+t.getName()+"}").split(/=/);if(!b.checkEnv(a))throw new q("EmpheqInvalidEnv",'Invalid environment "%1" for %2',a,t.getName());t.setProperty("nestStart",!0),n&&t.setProperties(b.splitOptions(n,{left:1,right:1})),e.stack.global.empheq=a,e.string="\\begin{"+a+"}"+(i?"{"+i+"}":"")+e.string.slice(e.i),e.i=0,e.Push(t)}},EmpheqMO(e,t,n){e.Push(e.create("token","mo",{},n))},EmpheqDelim(e,t){const n=e.GetDelimiter(t);e.Push(e.create("token","mo",{stretchy:!0,symmetric:!0},n))}};new c("empheq-env",M.environment,{empheq:[E.Empheq,"empheq"]}),new s("empheq-macros",{empheqlbrace:[E.EmpheqMO,"{"],empheqrbrace:[E.EmpheqMO,"}"],empheqlbrack:[E.EmpheqMO,"["],empheqrbrack:[E.EmpheqMO,"]"],empheqlangle:[E.EmpheqMO,"\u27e8"],empheqrangle:[E.EmpheqMO,"\u27e9"],empheqlparen:[E.EmpheqMO,"("],empheqrparen:[E.EmpheqMO,")"],empheqlvert:[E.EmpheqMO,"|"],empheqrvert:[E.EmpheqMO,"|"],empheqlVert:[E.EmpheqMO,"\u2016"],empheqrVert:[E.EmpheqMO,"\u2016"],empheqlfloor:[E.EmpheqMO,"\u230a"],empheqrfloor:[E.EmpheqMO,"\u230b"],empheqlceil:[E.EmpheqMO,"\u2308"],empheqrceil:[E.EmpheqMO,"\u2309"],empheqbiglbrace:[E.EmpheqMO,"{"],empheqbigrbrace:[E.EmpheqMO,"}"],empheqbiglbrack:[E.EmpheqMO,"["],empheqbigrbrack:[E.EmpheqMO,"]"],empheqbiglangle:[E.EmpheqMO,"\u27e8"],empheqbigrangle:[E.EmpheqMO,"\u27e9"],empheqbiglparen:[E.EmpheqMO,"("],empheqbigrparen:[E.EmpheqMO,")"],empheqbiglvert:[E.EmpheqMO,"|"],empheqbigrvert:[E.EmpheqMO,"|"],empheqbiglVert:[E.EmpheqMO,"\u2016"],empheqbigrVert:[E.EmpheqMO,"\u2016"],empheqbiglfloor:[E.EmpheqMO,"\u230a"],empheqbigrfloor:[E.EmpheqMO,"\u230b"],empheqbiglceil:[E.EmpheqMO,"\u2308"],empheqbigrceil:[E.EmpheqMO,"\u2309"],empheql:E.EmpheqDelim,empheqr:E.EmpheqDelim,empheqbigl:E.EmpheqDelim,empheqbigr:E.EmpheqDelim});const f=l.create("empheq",{[o.HANDLER]:{[p.MACRO]:["empheq-macros"],[p.ENVIRONMENT]:["empheq-env"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/empheq","4.1.3","tex-extension"),i({_:{input:{tex:{empheq:{EmpheqConfiguration:n,EmpheqUtil:t}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,o)=>{for(var a in o)e.o(o,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:o[a]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{ENCLOSE_OPTIONS:()=>g,EncloseConfiguration:()=>f,EncloseMethods:()=>h});const o=("undefined"!=typeof window?window:e.g).MathJax._.components.global,a=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),n=(o.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,i=n.HandlerType,c=MathJax._.input.tex.Configuration,s=c.Configuration,l=(c.ConfigurationHandler,c.ParserConfiguration,MathJax._.input.tex.TokenMap),p=(l.parseResult,l.AbstractTokenMap,l.RegExpMap,l.AbstractParseMap,l.CharacterMap,l.DelimiterMap,l.MacroMap,l.CommandMap),u=(l.EnvironmentMap,MathJax._.input.tex.ParseUtil),d=(u.KeyValueDef,u.KeyValueTypes,u.ParseUtil),g={"data-arrowhead":1,color:1,mathcolor:1,background:1,mathbackground:1,"data-padding":1,"data-thickness":1},h={Enclose(e,t){const o=e.GetArgument(t).replace(/,/g," "),a=e.GetBrackets(t,""),n=e.ParseArg(t),r=d.keyvalOptions(a,g);r.notation=o,e.Push(e.create("node","menclose",[n],r))}};new p("enclose",{enclose:h.Enclose});const f=s.create("enclose",{[r.HANDLER]:{[i.MACRO]:["enclose"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/enclose","4.1.3","tex-extension"),a({_:{input:{tex:{enclose:{EncloseConfiguration:t}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{ExtpfeilConfiguration:()=>h});const r=("undefined"!=typeof window?window:e.g).MathJax._.components.global,o=(r.GLOBAL,r.isObject,r.combineConfig,r.combineDefaults,r.combineWithMathJax),a=(r.MathJax,MathJax._.input.tex.HandlerTypes),n=a.ConfigurationType,i=a.HandlerType,m=MathJax._.input.tex.Configuration,x=m.Configuration,w=(m.ConfigurationHandler,m.ParserConfiguration,MathJax._.input.tex.TokenMap),c=(w.parseResult,w.AbstractTokenMap,w.RegExpMap,w.AbstractParseMap,w.CharacterMap,w.DelimiterMap,w.MacroMap,w.CommandMap),u=(w.EnvironmentMap,MathJax._.input.tex.ams.AmsMethods.AmsMethods),p=MathJax._.input.tex.newcommand.NewcommandUtil,s=(p.NewcommandTables,p.NewcommandPriority,p.NewcommandUtil),d=MathJax._.input.tex.newcommand.NewcommandConfiguration,l=d.NewcommandConfig,f=(d.NewcommandConfiguration,MathJax._.input.tex.TexError.default),g={NewExtArrow(e,t){let r=e.GetArgument(t);const o=e.GetArgument(t),a=e.GetArgument(t);if(!r.match(/^\\([a-z]+|.)$/i))throw new f("NewextarrowArg1","First argument to %1 must be a control sequence name",t);if(!o.match(/^(\d+),(\d+)$/))throw new f("NewextarrowArg2","Second argument to %1 must be two integers separated by a comma",t);if(!a.match(/^(\d+|0x[0-9A-F]+)$/i))throw new f("NewextarrowArg3","Third argument to %1 must be a unicode character number",t);r=r.substring(1);const n=o.split(",");s.addMacro(e,r,g.xArrow,[parseInt(a),parseInt(n[0]),parseInt(n[1])]),e.Push(e.itemFactory.create("null"))},xArrow:u.xArrow};new c("extpfeil",{xtwoheadrightarrow:[g.xArrow,8608,12,16],xtwoheadleftarrow:[g.xArrow,8606,17,13],xmapsto:[g.xArrow,8614,6,7],xlongequal:[g.xArrow,61,7,7],xtofrom:[g.xArrow,8644,12,12],Newextarrow:g.NewExtArrow});const h=x.create("extpfeil",{[n.HANDLER]:{[i.MACRO]:["extpfeil"]},[n.CONFIG]:l});MathJax.loader&&MathJax.loader.checkVersion("[tex]/extpfeil","4.1.3","tex-extension"),o({_:{input:{tex:{extpfeil:{ExtpfeilConfiguration:t}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{FontSizeV3Configuration:()=>S});const n=("undefined"!=typeof window?window:e.g).MathJax._.components.global,i=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),a=(n.MathJax,MathJax._.input.tex.HandlerTypes),o=a.ConfigurationType,r=a.HandlerType,s=MathJax._.input.tex.TokenMap,p=(s.parseResult,s.AbstractTokenMap,s.RegExpMap,s.AbstractParseMap,s.CharacterMap,s.DelimiterMap,s.MacroMap,s.CommandMap),l=(s.EnvironmentMap,MathJax._.input.tex.Configuration),u=l.Configuration,c=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.base.BaseMethods),f=(c.splitAlignArray,c.default);new p("fontsizev3-macros",{tiny:[f.SetSize,.5],Tiny:[f.SetSize,.6],scriptsize:[f.SetSize,.7],small:[f.SetSize,.85],normalsize:[f.SetSize,1],large:[f.SetSize,1.2],Large:[f.SetSize,1.44],LARGE:[f.SetSize,1.73],huge:[f.SetSize,2.07],Huge:[f.SetSize,2.49]});const S=u.create("fontsizev3",{[o.HANDLER]:{[r.MACRO]:["fontsizev3-macros"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/fontsizev3","4.1.3","tex-extension"),i({_:{input:{tex:{fontsizev3:{FontSizeV3Configuration:t}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{GensymbConfiguration:()=>l});const n=("undefined"!=typeof window?window:e.g).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),o=(n.MathJax,MathJax._.input.tex.HandlerTypes),r=o.ConfigurationType,i=o.HandlerType,s=MathJax._.input.tex.Configuration,c=s.Configuration,u=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.TexConstants.TexConstant),p=MathJax._.input.tex.TokenMap,b=(p.parseResult,p.AbstractTokenMap,p.RegExpMap,p.AbstractParseMap,p.CharacterMap);p.DelimiterMap,p.MacroMap,p.CommandMap,p.EnvironmentMap;new b("gensymb-symbols",function(e,t){const n=t.attributes||{};n.mathvariant=u.Variant.NORMAL,n.class="MathML-Unit";const a=e.create("token","mi",n,t.char);e.Push(a)},{ohm:"\u2126",degree:"\xb0",celsius:"\u2103",perthousand:"\u2030",micro:"\xb5"});const l=c.create("gensymb",{[r.HANDLER]:{[i.MACRO]:["gensymb-symbols"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/gensymb","4.1.3","tex-extension"),a({_:{input:{tex:{gensymb:{GensymbConfiguration:t}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"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]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{default:()=>y});var F={};t.r(F),t.d(F,{HtmlConfiguration:()=>M});const a=("undefined"!=typeof window?window:t.g).MathJax._.components.global,n=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),r=(a.MathJax,MathJax._.input.tex.HandlerTypes),u=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 b(t){return!(t.match(/[\x00-\x1f\x7f-\x9f "'>/=]/)||t.match(m))}const g={Data(t,e){const F=t.GetArgument(e),a=x(t,e),n=h.keyvalOptions(F);for(const t in n){if(!b(t))throw new p("InvalidHTMLAttr","Invalid HTML attribute: %1",`data-${t}`);d.setAttribute(a,`data-${t}`,n[t])}t.Push(a)},Href(t,e){const F=t.GetArgument(e),a=x(t,e);d.setAttribute(a,"href",F),t.Push(a)},Class(t,e){let F=t.GetArgument(e);const a=x(t,e),n=d.getAttribute(a,"class");n&&(F=n+" "+F),d.setAttribute(a,"class",F),t.Push(a)},Style(t,e){let F=t.GetArgument(e);const a=x(t,e);let n=d.getAttribute(a,"style");n&&(";"!==n.charAt(F.length-1)&&(n+=";"),F=n+" "+F),d.setAttribute(a,"style",F),t.Push(a)},Id(t,e){const F=t.GetArgument(e),a=x(t,e);d.setAttribute(a,"id",F),t.Push(a)}},x=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},y=g;new c("html_macros",{data:y.Data,href:y.Href,class:y.Class,style:y.Style,cssId:y.Id});const M=s.create("html",{[u.HANDLER]:{[o.MACRO]:["html_macros"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/html","4.1.3","tex-extension"),n({_:{input:{tex:{html:{HtmlConfiguration:F,HtmlMethods:e}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,a)=>{for(var r in a)t.o(a,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{MathtoolsUtil:()=>H});var a={};t.r(a),t.d(a,{LEGACYCONFIG:()=>W,LEGACYPRIORITY:()=>z,MathtoolsMethods:()=>K});var r={};t.r(r),t.d(r,{MathtoolsTagFormat:()=>tt});var o={};t.r(o),t.d(o,{MultlinedItem:()=>rt});var n={};t.r(n),t.d(n,{MathtoolsConfiguration:()=>nt,fixPrescripts:()=>ot});const s=("undefined"!=typeof window?window:t.g).MathJax._.components.global,l=(s.GLOBAL,s.isObject,s.combineConfig,s.combineDefaults,s.combineWithMathJax),i=(s.MathJax,MathJax._.input.tex.HandlerTypes),m=i.ConfigurationType,c=i.HandlerType,d=MathJax._.input.tex.Configuration,h=d.Configuration,p=(d.ConfigurationHandler,d.ParserConfiguration,MathJax._.input.tex.Token),u=(p.Token,p.Macro),g=MathJax._.input.tex.NodeUtil.default,M=MathJax._.util.Options,x=(M.isObject,M.APPEND,M.REMOVE,M.OPTIONS,M.Expandable,M.expandable),w=(M.makeArray,M.keys,M.copy,M.insert,M.defaultOptions,M.userOptions,M.selectOptions,M.selectOptionsFromKeys,M.separateOptions,M.lookup),f=MathJax._.input.tex.newcommand.NewcommandConfiguration,A=f.NewcommandConfig,y=(f.NewcommandConfiguration,MathJax._.input.tex.newcommand.NewcommandUtil),b=y.NewcommandTables,P=(y.NewcommandPriority,y.NewcommandUtil),C=MathJax._.input.tex.ParseMethods.default,T=MathJax._.input.tex.TokenMap,k=(T.parseResult,T.AbstractTokenMap,T.RegExpMap,T.AbstractParseMap,T.CharacterMap,T.DelimiterMap),v=(T.MacroMap,T.CommandMap),S=T.EnvironmentMap,D=MathJax._.input.tex.TexConstants.TexConstant,E=MathJax._.input.tex.ParseUtil,G=(E.KeyValueDef,E.KeyValueTypes,E.ParseUtil),N=MathJax._.input.tex.UnitUtil.UnitUtil,R=MathJax._.input.tex.ams.AmsMethods.AmsMethods,I=MathJax._.input.tex.base.BaseMethods,O=(I.splitAlignArray,I.default),L=MathJax._.input.tex.TexParser.default,F=MathJax._.input.tex.TexError.default,B=MathJax._.core.MmlTree.MmlNode,_=B.TEXCLASS,J=(B.TEXCLASSNAMES,B.MATHVARIANTS,B.indentAttributes,B.AbstractMmlNode,B.AbstractMmlTokenNode,B.AbstractMmlLayoutNode,B.AbstractMmlBaseNode,B.AbstractMmlEmptyNode,B.TextNode,B.XMLNode,MathJax._.util.lengths),q=(J.BIGDIMEN,J.UNITS,J.RELUNITS,J.MATHSPACE,J.length2em),U=(J.percent,J.em),j=(J.px,MathJax._.input.tex.newcommand.NewcommandMethods.default),$=MathJax._.util.PrioritizedList.PrioritizedList,V=MathJax._.input.tex.base.BaseItems,X=(V.StartItem,V.StopItem,V.OpenItem,V.CloseItem,V.NullItem,V.PrimeItem,V.SubsupItem,V.OverItem,V.LeftItem,V.Middle,V.RightItem,V.BreakItem,V.BeginItem,V.EndItem,V.StyleItem,V.PositionItem,V.CellItem,V.MmlItem,V.FnItem,V.NotItem,V.NonscriptItem,V.DotsItem,V.ArrayItem,V.EqnArrayItem),H=(V.MstyleItem,V.EquationItem,{setDisplayLevel(t,e){if(!e)return;const[a,r]=w(e,{"\\displaystyle":[!0,0],"\\textstyle":[!1,0],"\\scriptstyle":[!1,1],"\\scriptscriptstyle":[!1,2]},[null,null]);null!==a&&(t.attributes.set("displaystyle",a),t.attributes.set("scriptlevel",r))},checkAlignment(t,e){const a=t.stack.Top();if(a.kind!==X.prototype.kind)throw new F("NotInAlignment","%1 can only be used in aligment environments",e);return a},addPairedDelims(t,e,a){if(t.configuration.handlers.get(c.MACRO).contains(e))throw new F("CommadExists","Command %1 already defined",`\\${e}`);P.addMacro(t,e,K.PairedDelimiters,a)},spreadLines(t,e){if(!t.isKind("mtable"))return;let a=t.attributes.get("rowspacing");const r=N.dimen2em(e);a=a.split(/ /).map(t=>N.em(Math.max(0,N.dimen2em(t)+r))).join(" "),t.attributes.set("rowspacing",a)},plusOrMinus(t,e){if(!(e=e.trim()).match(/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)$/))throw new F("NotANumber","Argument to %1 is not a number",t);return e.match(/^[-+]/)?e:"+"+e},getScript(t,e,a){let r=N.trimSpaces(t.GetArgument(e));if(""===r)return t.create("node","none");const o=t.options.mathtools[`prescript-${a}-format`];o&&(r=`${o}{${r}}`);const n=new L(r,t.stack.env,t.configuration).mml();return n.isKind("TeXAtom")&&n.isEmpty?t.create("node","none"):n}}),W={[c.MACRO]:["mathtools-legacycolonsymbols"]},z=$.DEFAULTPRIORITY-1,K={MtMatrix(t,e,a,r){const o=t.GetBrackets(`\\begin{${e.getName()}}`,"c");return K.Array(t,e,a,r,o)},MtSmallMatrix:(t,e,a,r,o)=>(o||(o=t.GetBrackets(`\\begin{${e.getName()}}`,t.options.mathtools["smallmatrix-align"])),K.Array(t,e,a,r,o,N.em(1/3),".2em","S",1)),MtMultlined(t,e){const a=`\\begin{${e.getName()}}`;let r=t.options.mathtools["multlined-pos"]||"c",o=t.options.mathtools["multlined-width"]||"";if(!t.nextIsSpace()){const e=t.GetBrackets(a,r);if(e.match(/^[ctb]$/)?(r=e,o=t.nextIsSpace()?"":t.GetBrackets(a,"")):o=e,o&&!N.matchDimen(o)[0])throw new F("BadWidth","Width for %1 must be a dimension",a)}t.Push(e);const n=t.itemFactory.create("multlined",t,e);return n.arraydef={displaystyle:!0,rowspacing:".5em",width:o||"auto",columnwidth:"100%"},G.setArrayAlign(n,r)},HandleShove(t,e,a){const r=t.stack.Top();if("multline"!==r.kind&&"multlined"!==r.kind)throw new F("CommandInMultlined","%1 can only appear within the multline or multlined environments",e);if(r.Size())throw new F("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",e);r.setProperty("shove",a);const o=t.GetBrackets(e);let n=t.ParseArg(e);if(o){const e=t.create("node","mrow",[]),r=t.create("node","mspace",[],{width:o});"left"===a?(e.appendChild(r),e.appendChild(n)):(e.appendChild(n),e.appendChild(r)),n=e}t.Push(n)},SpreadLines(t,e){if(t.stack.env.closing===e.getName()){delete t.stack.env.closing;const e=t.stack.Pop(),a=e.toMml(),r=e.getProperty("spread");if(a.isInferred)for(const t of g.getChildren(a))H.spreadLines(t,r);else H.spreadLines(a,r);t.Push(a)}else{const a=t.GetDimen(`\\begin{${e.getName()}}`);e.setProperty("spread",a),e.setProperty("nestStart",!0),G.checkEqnEnv(t),t.Push(e)}},Cases(t,e,a,r,o){const n=t.itemFactory.create("array").setProperty("casesEnv",e.getName());return n.arraydef={rowspacing:".2em",columnspacing:"1em",columnalign:"left"},"D"===o&&(n.arraydef.displaystyle=!0),n.setProperties({open:a,close:r}),t.Push(e),n},MathLap(t,e,a,r){const o=t.GetBrackets(e,"").trim(),n=t.create("node","mstyle",[t.create("node","mpadded",[t.ParseArg(e)],Object.assign({width:0},"r"===a?{}:{lspace:"l"===a?"-1width":"-.5width"}))],{"data-cramped":r});H.setDisplayLevel(n,o),t.Push(t.create("node","TeXAtom",[n]))},Cramped(t,e){const a=t.GetBrackets(e,"").trim(),r=t.ParseArg(e),o=t.create("node","mstyle",[r],{"data-cramped":!0});H.setDisplayLevel(o,a),t.Push(o)},MtLap(t,e,a){const r=G.internalMath(t,t.GetArgument(e),0),o=t.create("node","mpadded",r,{width:0});"r"!==a&&g.setAttribute(o,"lspace","l"===a?"-1width":"-.5width"),t.Push(o)},MathMakeBox(t,e){const a=t.GetBrackets(e),r=t.GetBrackets(e,"c"),o=t.create("node","mpadded",[t.ParseArg(e)]);a&&g.setAttribute(o,"width",a);const n=w(r.toLowerCase(),{c:"center",r:"right"},"");n&&g.setAttribute(o,"data-align",n),r.toLowerCase()!==r&&g.setAttribute(o,"data-overflow","linebreak"),t.Push(o)},MathMBox(t,e){t.Push(t.create("node","mrow",[t.ParseArg(e)]))},UnderOverBracket(t,e){const a=q(t.GetBrackets(e,".1em"),.1),r=t.GetBrackets(e,".2em"),o=t.GetArgument(e),[n,s,l]="o"===e.charAt(1)?["over","accent","bottom"]:["under","accentunder","top"],i=U(a),m=new L(o,t.stack.env,t.configuration).mml(),c=new L(o,t.stack.env,t.configuration).mml(),d=t.create("node","mpadded",[t.create("node","mphantom",[c])],{style:`border: ${i} solid; border-${l}: none`,height:r,depth:0}),h=G.underOver(t,m,d,n,!0),p=g.getChildAt(g.getChildAt(h,0),0);g.setAttribute(p,s,!0),t.Push(h)},Aboxed(t,e,a="boxed",r=!0){const o=H.checkAlignment(t,e);o.row.length%2==1&&o.row.push(t.create("node","mtd",[]));const n=t.GetArgument(e),s=t.string.substring(t.i);t.string=n+"&&\\endAboxed",t.i=0;const l=t.GetUpTo(e,"&"),i=t.GetUpTo(e,"&");t.GetUpTo(e,"\\endAboxed");const[m,c]=r?["",""]:["$\\displaystyle{","}$"],d=G.substituteArgs(t,[l,i],`\\rlap{\\${a}{${m}#1{}#2${c}}}\\kern.267em\\phantom{#1}&\\phantom{{}#2}\\kern.267em`);t.string=d+s,t.i=0},MakeAboxedCommand(t,e){const a=t.GetStar(),r=P.GetCSname(t,e),o=P.GetCSname(t,e+"\\"+r),n=t.configuration.handlers;if(n.get(c.MACRO).lookup(r))throw new F("AlreadyDefined","%1 is already defined","\\"+r);n.retrieve(b.NEW_COMMAND).add(r,new u(r,K.Aboxed,[o,a])),t.Push(t.itemFactory.create("null"))},ArrowBetweenLines(t,e){const a=H.checkAlignment(t,e);if(a.Size()||a.row.length)throw new F("BetweenLines","%1 must be on a row by itself",e);const r=t.GetStar(),o=t.GetBrackets(e,"\\Updownarrow");r&&(a.EndEntry(),a.EndEntry());const n=new L(r?"\\quad"+o:o+"\\quad",t.stack.env,t.configuration).mml();t.Push(n),a.EndEntry(),a.EndRow()},VDotsWithin(t,e){const a="\\mmlToken{mi}{}"+t.GetArgument(e)+"\\mmlToken{mi}{}",r=new L(a,t.stack.env,t.configuration).mml(),o=t.create("node","mpadded",[t.create("node","mpadded",[t.create("node","mo",[t.create("text","\u22ee")])],{width:0,lspace:"-.5width"}),t.create("node","mphantom",[r])],{lspace:".5width"});t.Push(o)},ShortVDotsWithin(t,e){const a=t.stack.Top(),r=t.GetStar();a.EndEntry&&(K.FlushSpaceAbove(t,"\\MTFlushSpaceAbove"),r||a.EndEntry()),K.VDotsWithin(t,"\\vdotswithin"),a.EndEntry&&(r&&a.EndEntry(),K.FlushSpaceBelow(t,"\\MTFlushSpaceBelow"))},FlushSpaceAbove(t,e){const a=H.checkAlignment(t,e);a.table&&(a.setProperty("flushspaceabove",a.table.length),a.addRowSpacing("-"+t.options.mathtools.shortvdotsadjustabove))},FlushSpaceBelow(t,e){const a=H.checkAlignment(t,e);a.table&&(a.Size()&&a.EndEntry(),a.EndRow(),a.addRowSpacing("-"+t.options.mathtools.shortvdotsadjustbelow))},PairedDelimiters(t,e,a,r,o="#1",n=1,s="",l=""){const i=t.GetStar(),m=i?"":t.GetBrackets(e),[c,d,h]=i?["\\mathopen{\\left","\\right","}\\mathclose{}"]:m?[m+"l",m+"r",""]:["","",""],p=i?"\\middle":m||"";if(n){const a=[];for(let r=a.length;r<n;r++)a.push(t.GetArgument(e));s=G.substituteArgs(t,a,s),o=G.substituteArgs(t,a,o),l=G.substituteArgs(t,a,l)}o=o.replace(/\\delimsize/g,p),t.string=[s,c,a,o,d,r,h,l,t.string.substring(t.i)].reduce((e,a)=>G.addArgs(t,e,a),""),t.i=0,G.checkMaxMacros(t)},DeclarePairedDelimiter(t,e){const a=P.GetCsNameArgument(t,e),r=t.GetArgument(e),o=t.GetArgument(e);H.addPairedDelims(t,a,[r,o]),t.Push(t.itemFactory.create("null"))},DeclarePairedDelimiterX(t,e){const a=P.GetCsNameArgument(t,e),r=P.GetArgCount(t,e),o=t.GetArgument(e),n=t.GetArgument(e),s=t.GetArgument(e);H.addPairedDelims(t,a,[o,n,s,r]),t.Push(t.itemFactory.create("null"))},DeclarePairedDelimiterXPP(t,e){const a=P.GetCsNameArgument(t,e),r=P.GetArgCount(t,e),o=t.GetArgument(e),n=t.GetArgument(e),s=t.GetArgument(e),l=t.GetArgument(e),i=t.GetArgument(e);H.addPairedDelims(t,a,[n,s,i,r,o,l]),t.Push(t.itemFactory.create("null"))},CenterColon(t,e,a,r=!1,o=!1){const n=t.options.mathtools;let s=t.create("token","mo",{},":");if(a&&(n.centercolon||r)){const e=n["centercolon-offset"];s=t.create("node","mpadded",[s],Object.assign({voffset:e,height:`+${e}`,depth:`-${e}`},o?{width:n["thincolon-dw"],lspace:n["thincolon-dx"]}:{}))}t.Push(s)},Relation(t,e,a,r){t.options.mathtools["use-unicode"]&&r?t.Push(t.create("token","mo",{texClass:_.REL},r)):(a="\\mathrel{"+a.replace(/:/g,"\\MTThinColon").replace(/-/g,"\\mathrel{-}")+"}",t.string=G.addArgs(t,a,t.string.substring(t.i)),t.i=0)},NArrow(t,e,a,r){t.Push(t.create("node","TeXAtom",[t.create("token","mtext",{},a),t.create("node","mpadded",[t.create("node","mpadded",[t.create("node","menclose",[t.create("node","mspace",[],{height:".2em",depth:0,width:".4em"})],{notation:"updiagonalstrike","data-thickness":".05em","data-padding":0})],{width:0,lspace:"-.5width",voffset:r}),t.create("node","mphantom",[t.create("token","mtext",{},a)])],{width:0,lspace:"-.5width"})],{texClass:_.REL}))},SplitFrac(t,e,a){const r=t.ParseArg(e),o=t.ParseArg(e);t.Push(t.create("node","mstyle",[t.create("node","mfrac",[t.create("node","mstyle",[r,t.create("token","mi"),t.create("token","mspace",{width:"1em"})],{scriptlevel:0}),t.create("node","mstyle",[t.create("token","mspace",{width:"1em"}),t.create("token","mi"),o],{scriptlevel:0})],{linethickness:0,numalign:"left",denomalign:"right"})],{displaystyle:a,scriptlevel:0}))},XMathStrut(t,e){let a=t.GetBrackets(e),r=t.GetArgument(e);r=H.plusOrMinus(e,r),a=H.plusOrMinus(e,a||r),t.Push(t.create("node","TeXAtom",[t.create("node","mpadded",[t.create("node","mphantom",[t.create("token","mo",{stretchy:!1},"(")])],{width:0,height:r+"height",depth:a+"depth"})],{texClass:_.ORD}))},Prescript(t,e){const a=H.getScript(t,e,"sup"),r=H.getScript(t,e,"sub"),o=H.getScript(t,e,"arg");if(g.isType(a,"none")&&g.isType(r,"none"))return void t.Push(o);const n=t.create("node","mmultiscripts",[o]);g.getChildren(n).push(null,null),g.appendChildren(n,[t.create("node","mprescripts"),r,a]),n.setProperty("fixPrescript",!0),t.Push(n)},NewTagForm(t,e,a=!1){const r=t.tags;if(!("mtFormats"in r))throw new F("TagsNotMT","%1 can only be used with ams or mathtools tags",e);const o=t.GetArgument(e).trim();if(!o)throw new F("InvalidTagFormID","Tag form name can't be empty");const n=t.GetBrackets(e,""),s=t.GetArgument(e),l=t.GetArgument(e);if(!a&&r.mtFormats.has(o))throw new F("DuplicateTagForm","Duplicate tag form: %1",o);r.mtFormats.set(o,[s,l,n]),t.Push(t.itemFactory.create("null"))},UseTagForm(t,e){const a=t.tags;if(!("mtFormats"in a))throw new F("TagsNotMT","%1 can only be used with ams or mathtools tags",e);const r=t.GetArgument(e).trim();if(!r)return a.mtCurrent=null,void t.Push(t.itemFactory.create("null"));if(!a.mtFormats.has(r))throw new F("UndefinedTagForm","Undefined tag form: %1",r);a.mtCurrent=a.mtFormats.get(r),t.Push(t.itemFactory.create("null"))},SetOptions(t,e){const a=t.options.mathtools;if(!a["allow-mathtoolsset"])throw new F("ForbiddenMathtoolsSet","%1 is disabled",e);const r={};Object.keys(a).forEach(t=>{"pariedDelimiters"!==t&&"tagforms"!==t&&"allow-mathtoolsset"!==t&&(r[t]=1)});const o=t.GetArgument(e),n=G.keyvalOptions(o,r,!0);for(const e of Object.keys(n))"legacycolonsymbols"===e&&a[e]!==n[e]&&(a[e]?t.configuration.handlers.remove(W,{}):t.configuration.handlers.add(W,{},z)),a[e]=n[e];t.Push(t.itemFactory.create("null"))},Array:O.Array,Macro:O.Macro,xArrow:R.xArrow,HandleRef:R.HandleRef,AmsEqnArray:R.AmsEqnArray,MacroWithTemplate:j.MacroWithTemplate};new v("mathtools-macros",{shoveleft:[K.HandleShove,D.Align.LEFT],shoveright:[K.HandleShove,D.Align.RIGHT],xleftrightarrow:[K.xArrow,8596,10,10],xLeftarrow:[K.xArrow,8656,12,7],xRightarrow:[K.xArrow,8658,7,12],xLeftrightarrow:[K.xArrow,8660,12,12],xhookleftarrow:[K.xArrow,8617,10,5],xhookrightarrow:[K.xArrow,8618,5,10],xmapsto:[K.xArrow,8614,10,10],xrightharpoondown:[K.xArrow,8641,5,10],xleftharpoondown:[K.xArrow,8637,10,5],xrightleftharpoons:[K.xArrow,8652,10,10],xrightharpoonup:[K.xArrow,8640,5,10],xleftharpoonup:[K.xArrow,8636,10,5],xleftrightharpoons:[K.xArrow,8651,10,10],xlongrightarrow:[K.xArrow,10230,7,12,1.45],xlongleftarrow:[K.xArrow,10229,12,7,1.45],xLongrightarrow:[K.xArrow,10233,7,12,1.45],xLongleftarrow:[K.xArrow,10232,12,7,1.45],mathllap:[K.MathLap,"l",!1],mathrlap:[K.MathLap,"r",!1],mathclap:[K.MathLap,"c",!1],clap:[K.MtLap,"c"],textllap:[K.MtLap,"l"],textrlap:[K.MtLap,"r"],textclap:[K.MtLap,"c"],cramped:K.Cramped,crampedllap:[K.MathLap,"l",!0],crampedrlap:[K.MathLap,"r",!0],crampedclap:[K.MathLap,"c",!0],crampedsubstack:[K.Macro,"\\begin{crampedsubarray}{c}#1\\end{crampedsubarray}",1],mathmbox:K.MathMBox,mathmakebox:K.MathMakeBox,overbracket:K.UnderOverBracket,underbracket:K.UnderOverBracket,refeq:K.HandleRef,MoveEqLeft:[K.Macro,"\\hspace{#1em}&\\hspace{-#1em}",1,"2"],Aboxed:K.Aboxed,MakeAboxedCommand:K.MakeAboxedCommand,ArrowBetweenLines:K.ArrowBetweenLines,vdotswithin:K.VDotsWithin,shortvdotswithin:K.ShortVDotsWithin,MTFlushSpaceAbove:K.FlushSpaceAbove,MTFlushSpaceBelow:K.FlushSpaceBelow,DeclarePairedDelimiter:K.DeclarePairedDelimiter,DeclarePairedDelimiterX:K.DeclarePairedDelimiterX,DeclarePairedDelimiterXPP:K.DeclarePairedDelimiterXPP,DeclarePairedDelimiters:K.DeclarePairedDelimiter,DeclarePairedDelimitersX:K.DeclarePairedDelimiterX,DeclarePairedDelimitersXPP:K.DeclarePairedDelimiterXPP,vcentercolon:[K.CenterColon,!0,!0],ordinarycolon:[K.CenterColon,!1],MTThinColon:[K.CenterColon,!0,!0,!0],coloneqq:[K.Relation,":=","\u2254"],Coloneqq:[K.Relation,"::=","\u2a74"],coloneq:[K.Relation,":=","\u2254"],Coloneq:[K.Relation,"::=","\u2a7a"],eqqcolon:[K.Relation,"=:","\u2255"],Eqqcolon:[K.Relation,"=::"],eqcolon:[K.Relation,"=:","\u2255"],Eqcolon:[K.Relation,"=::"],colonapprox:[K.Relation,":\\approx"],Colonapprox:[K.Relation,"::\\approx"],colonsim:[K.Relation,":\\sim"],Colonsim:[K.Relation,"::\\sim"],dblcolon:[K.Relation,"::","\u2237"],approxcolon:[K.Relation,"\\approx:"],Approxcolon:[K.Relation,"\\approx::"],simcolon:[K.Relation,"\\sim:"],Simcolon:[K.Relation,"\\sim::"],colondash:[K.Relation,":-"],Colondash:[K.Relation,"::-"],dashcolon:[K.Relation,"-:","\u2239"],Dashcolon:[K.Relation,"-::"],nuparrow:[K.NArrow,"\u2191",".06em"],ndownarrow:[K.NArrow,"\u2193",".25em"],bigtimes:[K.Macro,"\\mathop{\\Large\\kern-.1em\\boldsymbol{\\times}\\kern-.1em}"],splitfrac:[K.SplitFrac,!1],splitdfrac:[K.SplitFrac,!0],xmathstrut:K.XMathStrut,prescript:K.Prescript,newtagform:[K.NewTagForm,!1],renewtagform:[K.NewTagForm,!0],usetagform:K.UseTagForm,adjustlimits:[K.MacroWithTemplate,"\\mathop{{#1}\\vphantom{{#3}}}_{{#2}\\vphantom{{#4}}}\\mathop{{#3}\\vphantom{{#1}}}_{{#4}\\vphantom{{#2}}}",4,,"_",,"_"],mathtoolsset:K.SetOptions}),new v("mathtools-legacycolonsymbols",{coloneq:[K.Relation,":-"],Coloneq:[K.Relation,"::-"],eqcolon:[K.Relation,"-:","\u2239"],Eqcolon:[K.Relation,"-::"]}),new S("mathtools-environments",C.environment,{dcases:[K.Array,null,"\\{","","ll",null,".2em","D"],rcases:[K.Array,null,"","\\}","ll",null,".2em"],drcases:[K.Array,null,"","\\}","ll",null,".2em","D"],"dcases*":[K.Cases,null,"{","","D"],"rcases*":[K.Cases,null,"","}"],"drcases*":[K.Cases,null,"","}","D"],"cases*":[K.Cases,null,"{",""],"matrix*":[K.MtMatrix,null,null,null],"pmatrix*":[K.MtMatrix,null,"(",")"],"bmatrix*":[K.MtMatrix,null,"[","]"],"Bmatrix*":[K.MtMatrix,null,"\\{","\\}"],"vmatrix*":[K.MtMatrix,null,"\\vert","\\vert"],"Vmatrix*":[K.MtMatrix,null,"\\Vert","\\Vert"],"smallmatrix*":[K.MtSmallMatrix,null,null,null],psmallmatrix:[K.MtSmallMatrix,null,"(",")","c"],"psmallmatrix*":[K.MtSmallMatrix,null,"(",")"],bsmallmatrix:[K.MtSmallMatrix,null,"[","]","c"],"bsmallmatrix*":[K.MtSmallMatrix,null,"[","]"],Bsmallmatrix:[K.MtSmallMatrix,null,"\\{","\\}","c"],"Bsmallmatrix*":[K.MtSmallMatrix,null,"\\{","\\}"],vsmallmatrix:[K.MtSmallMatrix,null,"\\vert","\\vert","c"],"vsmallmatrix*":[K.MtSmallMatrix,null,"\\vert","\\vert"],Vsmallmatrix:[K.MtSmallMatrix,null,"\\Vert","\\Vert","c"],"Vsmallmatrix*":[K.MtSmallMatrix,null,"\\Vert","\\Vert"],crampedsubarray:[K.Array,null,null,null,null,"0em","0.1em","S'",1],multlined:K.MtMultlined,spreadlines:[K.SpreadLines,!0],lgathered:[K.AmsEqnArray,null,null,null,"l","t",null,".5em","D"],rgathered:[K.AmsEqnArray,null,null,null,"r","t",null,".5em","D"]}),new k("mathtools-delimiters",C.delimiter,{"\\lparen":"(","\\rparen":")"}),new v("mathtools-characters",{":":[K.CenterColon,!0]});const Y=MathJax._.input.tex.Tags,Q=(Y.Label,Y.TagInfo,Y.AbstractTags,Y.NoTags,Y.AllTags,Y.TagsFactory);let Z=0;function tt(t,e){const a=e.parseOptions.options.tags;"base"!==a&&Object.hasOwn(t.tags,a)&&Q.add(a,t.tags[a]);const r=Q.create(e.parseOptions.options.tags).constructor;Z++;const o="MathtoolsTags-"+Z;Q.add(o,class extends r{constructor(){super(),this.mtFormats=new Map,this.mtCurrent=null;const t=e.parseOptions.options.mathtools.tagforms;for(const e of Object.keys(t)){if(!Array.isArray(t[e])||3!==t[e].length)throw new F("InvalidTagFormDef",'The tag form definition for "%1" should be an array of three strings',e);this.mtFormats.set(e,t[e])}}formatTag(t){if(this.mtCurrent){const[e,a,r]=this.mtCurrent;return[e,r?`${r}{${t}}`:t,a]}return super.formatTag(t)}}),e.parseOptions.options.tags=o}const et=MathJax._.input.tex.ams.AmsItems,at=et.MultlineItem;et.FlalignItem;class rt extends at{get kind(){return"multlined"}EndTable(){if((this.Size()||this.row.length)&&(this.EndEntry(),this.EndRow()),this.table.length>1){const t=this.factory.configuration.options.mathtools,e=t["multlined-gap"],a=t["firstline-afterskip"]||e,r=t["lastline-preskip"]||e,o=g.getChildren(this.table[0])[0];g.getAttribute(o,"columnalign")!==D.Align.RIGHT&&o.appendChild(this.create("node","mspace",[],{width:a}));const n=g.getChildren(this.table[this.table.length-1])[0];if(g.getAttribute(n,"columnalign")!==D.Align.LEFT){const t=g.getChildren(n)[0];t.childNodes.unshift(null);const e=this.create("node","mspace",[],{width:r});g.setChild(t,0,e)}}super.EndTable.call(this)}}function ot({data:t}){for(const e of t.getList("mmultiscripts")){if(!e.getProperty("fixPrescript"))continue;const a=g.getChildren(e);let r=0;for(const o of[1,2])a[o]||(g.setChild(e,o,t.nodeFactory.create("node","none")),r++);2===r&&a.splice(1,2)}}const nt=h.create("mathtools",{[m.HANDLER]:{macro:["mathtools-macros","mathtools-delimiters"],[c.ENVIRONMENT]:["mathtools-environments"],[c.DELIMITER]:["mathtools-delimiters"],[c.CHARACTER]:["mathtools-characters"]},[m.ITEMS]:{[rt.prototype.kind]:rt},[m.CONFIG]:function(t,e){A(t,e);const a=e.parseOptions,r=a.options.mathtools.pairedDelimiters,o=t.handlers.retrieve(b.NEW_COMMAND);for(const[t,e]of Object.entries(r))o.add(t,new u(t,K.PairedDelimiters,e));a.options.mathtools.legacycolonsymbols&&t.handlers.add(W,{},z),tt(t,e)},[m.POSTPROCESSORS]:[[ot,-6]],[m.OPTIONS]:{mathtools:{"multlined-gap":"1em","multlined-pos":"c","multlined-width":"","firstline-afterskip":"","lastline-preskip":"","smallmatrix-align":"c",shortvdotsadjustabove:".2em",shortvdotsadjustbelow:".2em",centercolon:!1,"centercolon-offset":".04em","thincolon-dx":"-.04em","thincolon-dw":"-.08em","use-unicode":!1,legacycolonsymbols:!1,"prescript-sub-format":"","prescript-sup-format":"","prescript-arg-format":"","allow-mathtoolsset":!0,pairedDelimiters:x({}),tagforms:x({})}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/mathtools","4.1.3","tex-extension"),l({_:{input:{tex:{mathtools:{MathtoolsConfiguration:n,MathtoolsItems:o,MathtoolsMethods:a,MathtoolsTags:r,MathtoolsUtil:e}}}}})})();
@@ -0,0 +1,34 @@
1
+ (()=>{"use strict";var t={d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{MhchemConfiguration:()=>M,MhchemMethods:()=>w,MhchemReplacements:()=>v,MhchemUtils:()=>q});const o=("undefined"!=typeof window?window:t.g).MathJax._.components.global,n=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults),a=o.combineWithMathJax,r=(o.MathJax,MathJax._.input.tex.HandlerTypes),i=r.ConfigurationType,c=r.HandlerType,p=MathJax._.input.tex.Configuration,s=p.Configuration,u=(p.ConfigurationHandler,p.ParserConfiguration,MathJax._.input.tex.TokenMap),_=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap),h=(u.DelimiterMap,u.MacroMap,u.CommandMap),m=(u.EnvironmentMap,MathJax._.input.tex.TexError.default),l=MathJax._.input.tex.base.BaseMethods,d=(l.splitAlignArray,l.default),f=MathJax._.input.tex.ams.AmsMethods.AmsMethods;
2
+ /*!
3
+ *************************************************************************
4
+ *
5
+ * mhchemParser.ts
6
+ * 4.2.1
7
+ *
8
+ * Parser for the \ce command and \pu command for MathJax and Co.
9
+ *
10
+ * mhchem's \ce is a tool for writing beautiful chemical equations easily.
11
+ * mhchem's \pu is a tool for writing physical units easily.
12
+ *
13
+ * ----------------------------------------------------------------------
14
+ *
15
+ * Copyright (c) 2015-2023 Martin Hensel
16
+ *
17
+ * Licensed under the Apache License, Version 2.0 (the "License");
18
+ * you may not use this file except in compliance with the License.
19
+ * You may obtain a copy of the License at
20
+ *
21
+ * http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * Unless required by applicable law or agreed to in writing, software
24
+ * distributed under the License is distributed on an "AS IS" BASIS,
25
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26
+ * See the License for the specific language governing permissions and
27
+ * limitations under the License.
28
+ *
29
+ * ----------------------------------------------------------------------
30
+ *
31
+ * https://github.com/mhchem/mhchemParser
32
+ *
33
+ */
34
+ class x{static toTex(t,e){return y.go(b.go(t,e),"tex"!==e)}}function g(t){let e,o,n={};for(e in t)for(o in t[e]){let a=o.split("|");t[e][o].stateArray=a;for(let t=0;t<a.length;t++)n[a[t]]=[]}for(e in t)for(o in t[e]){let a=t[e][o].stateArray||[];for(let r=0;r<a.length;r++){const i=t[e][o];i.action_=[].concat(i.action_);for(let t=0;t<i.action_.length;t++)"string"==typeof i.action_[t]&&(i.action_[t]={type_:i.action_[t]});const c=e.split("|");for(let t=0;t<c.length;t++)if("*"===a[r]){let e;for(e in n)n[e].push({pattern:c[t],task:i})}else n[a[r]].push({pattern:c[t],task:i})}}return n}const b={go:function(t,e){if(!t)return[];void 0===e&&(e="ce");let o,n="0",a={};a.parenthesisLevel=0,t=(t=(t=t.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");let r=10,i=[];for(;;){o!==t?(r=10,o=t):r--;let c=b.stateMachines[e],p=c.transitions[n]||c.transitions["*"];t:for(let e=0;e<p.length;e++){let o=b.patterns.match_(p[e].pattern,t);if(o){const r=p[e].task;for(let t=0;t<r.action_.length;t++){let e;if(c.actions[r.action_[t].type_])e=c.actions[r.action_[t].type_](a,o.match_,r.action_[t].option);else{if(!b.actions[r.action_[t].type_])throw["MhchemBugA","mhchem bug A. Please report. ("+r.action_[t].type_+")"];e=b.actions[r.action_[t].type_](a,o.match_,r.action_[t].option)}b.concatArray(i,e)}if(n=r.nextState||n,!(t.length>0))return i;if(r.revisit||(t=o.remainder),!r.toContinue)break t}}if(r<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(t,e){if(e)if(Array.isArray(e))for(let o=0;o<e.length;o++)t.push(e[o]);else t.push(e)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(t){const e=t.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return e&&e[0]?{match_:e.slice(1),remainder:t.substr(e[0].length)}:null},"(-)(9)^(-9)":/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/,"state of aggregation $":function(t){const e=b.patterns.findObserveGroups(t,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(e&&e.remainder.match(/^($|[\s,;\)\]\}])/))return e;const o=t.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return o?{match_:o[0],remainder:t.substr(o[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". __* ":/^([.\u22C5\u00B7\u2022]|[*])\s*/,"...":/^\.\.\.(?=$|[^.])/,"^{(...)}":function(t){return b.patterns.findObserveGroups(t,"^{","","","}")},"^($...$)":function(t){return b.patterns.findObserveGroups(t,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(t){return b.patterns.findObserveGroups(t,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(t){return b.patterns.findObserveGroups(t,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(t){return b.patterns.findObserveGroups(t,"_{","","","}")},"_($...$)":function(t){return b.patterns.findObserveGroups(t,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(t){return b.patterns.findObserveGroups(t,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(t){return b.patterns.findObserveGroups(t,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}^":/^\{\}(?=\^)/,"{}":/^\{\}/,"{...}":function(t){return b.patterns.findObserveGroups(t,"","{","}","")},"{(...)}":function(t){return b.patterns.findObserveGroups(t,"{","","","}")},"$...$":function(t){return b.patterns.findObserveGroups(t,"","$","$","")},"${(...)}$__$(...)$":function(t){return b.patterns.findObserveGroups(t,"${","","","}$")||b.patterns.findObserveGroups(t,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(t){return b.patterns.findObserveGroups(t,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(t){return b.patterns.findObserveGroups(t,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(t){return b.patterns.findObserveGroups(t,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\color{","","","}")},"\\color{(...)}{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\color{","","","}","{","","","}")||b.patterns.findObserveGroups(t,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\ce{","","","}")},"\\pu{(...)}":function(t){return b.patterns.findObserveGroups(t,"\\pu{","","","}")},oxidation$:/^(?:[+-][IVX]+|(?:\\pm|\$\\pm\$|\+-|\+\/-)\s*0)$/,"d-oxidation$":/^(?:[+-]?[IVX]+|(?:\\pm|\$\\pm\$|\+-|\+\/-)\s*0)$/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(t){let e;if(e=t.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),e)return{match_:e[0],remainder:t.substr(e[0].length)};const o=b.patterns.findObserveGroups(t,"","$","$","");return o&&(e=o.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),e)?{match_:e[0],remainder:t.substr(e[0].length)}:null},amount2:function(t){return this.amount(t)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(t){if(t.match(/^\([a-z]+\)$/))return null;const e=t.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return e?{match_:e[0],remainder:t.substr(e[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(t,e,o,n,a,r,i,c,p,s){const u=function(t,e){if("string"==typeof e)return 0!==t.indexOf(e)?null:e;{const o=t.match(e);return o?o[0]:null}};let _=u(t,e);if(null===_)return null;if(t=t.substr(_.length),_=u(t,o),null===_)return null;const h=function(t,e,o){let n=0;for(;e<t.length;){let a=t.charAt(e);const r=u(t.substr(e),o);if(null!==r&&0===n)return{endMatchBegin:e,endMatchEnd:e+r.length};if("{"===a)n++;else if("}"===a){if(0===n)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];n--}e++}return null}(t,_.length,n||a);if(null===h)return null;const m=t.substring(0,n?h.endMatchEnd:h.endMatchBegin);if(r||i){const e=this.findObserveGroups(t.substr(h.endMatchEnd),r,i,c,p);if(null===e)return null;const o=[m,e.match_];return{match_:s?o.join(""):o,remainder:e.remainder}}return{match_:m,remainder:t.substr(h.endMatchEnd)}},match_:function(t,e){const o=b.patterns.patterns[t];if(void 0===o)throw["MhchemBugP","mhchem bug P. Please report. ("+t+")"];if("function"==typeof o)return b.patterns.patterns[t](e);{const t=e.match(o);return t?t.length>2?{match_:t.slice(1),remainder:e.substr(t[0].length)}:{match_:t[1]||t[0],remainder:e.substr(t[0].length)}:null}}},actions:{"a=":function(t,e){t.a=(t.a||"")+e},"b=":function(t,e){t.b=(t.b||"")+e},"p=":function(t,e){t.p=(t.p||"")+e},"o=":function(t,e){t.o=(t.o||"")+e},"o=+p1":function(t,e,o){t.o=(t.o||"")+o},"q=":function(t,e){t.q=(t.q||"")+e},"d=":function(t,e){t.d=(t.d||"")+e},"rm=":function(t,e){t.rm=(t.rm||"")+e},"text=":function(t,e){t.text_=(t.text_||"")+e},insert:function(t,e,o){return{type_:o}},"insert+p1":function(t,e,o){return{type_:o,p1:e}},"insert+p1+p2":function(t,e,o){return{type_:o,p1:e[0],p2:e[1]}},copy:function(t,e){return e},write:function(t,e,o){return o},rm:function(t,e){return{type_:"rm",p1:e}},text:function(t,e){return b.go(e,"text")},"tex-math":function(t,e){return b.go(e,"tex-math")},"tex-math tight":function(t,e){return b.go(e,"tex-math tight")},bond:function(t,e,o){return{type_:"bond",kind_:o||e}},"color0-output":function(t,e){return{type_:"color0",color:e}},ce:function(t,e){return b.go(e,"ce")},pu:function(t,e){return b.go(e,"pu")},"1/2":function(t,e){let o=[];e.match(/^[+\-]/)&&(o.push(e.substr(0,1)),e=e.substr(1));const n=e.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n[1]=n[1].replace(/\$/g,""),o.push({type_:"frac",p1:n[1],p2:n[2]}),n[3]&&(n[3]=n[3].replace(/\$/g,""),o.push({type_:"tex-math",p1:n[3]})),o},"9,9":function(t,e){return b.go(e,"9,9")}},stateMachines:{tex:{transitions:g({empty:{0:{action_:"copy"}},"\\ce{(...)}":{0:{action_:[{type_:"write",option:"{"},"ce",{type_:"write",option:"}"}]}},"\\pu{(...)}":{0:{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},else:{0:{action_:"copy"}}}),actions:{}},ce:{transitions:g({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{action_:[]}},space:{a:{action_:[],nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". __* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{action_:[]}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}^":{"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"tinySkip"}],nextState:"1"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}],nextState:"3"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(t,e){let o;if((t.d||"").match(/^[1-9][0-9]*$/)){const e=t.d;t.d=void 0,o=this.output(t),o.push({type_:"tinySkip"}),t.b=e}else o=this.output(t);return b.actions["o="](t,e),o},"d= kv":function(t,e){t.d=e,t.dType="kv"},"charge or bond":function(t,e){if(t.beginsWithBond){let o=[];return b.concatArray(o,this.output(t)),b.concatArray(o,b.actions.bond(t,e,"-")),o}t.d=e},"- after o/d":function(t,e,o){let n=b.patterns.match_("orbital",t.o||"");const a=b.patterns.match_("one lowercase greek letter $",t.o||""),r=b.patterns.match_("one lowercase latin letter $",t.o||""),i=b.patterns.match_("$one lowercase latin letter$ $",t.o||""),c="-"===e&&(n&&""===n.remainder||a||r||i);!c||t.a||t.b||t.p||t.d||t.q||n||!r||(t.o="$"+t.o+"$");let p=[];return c?(b.concatArray(p,this.output(t)),p.push({type_:"hyphen"})):(n=b.patterns.match_("digits",t.d||""),o&&n&&""===n.remainder?(b.concatArray(p,b.actions["d="](t,e)),b.concatArray(p,this.output(t))):(b.concatArray(p,this.output(t)),b.concatArray(p,b.actions.bond(t,e,"-")))),p},"a to o":function(t){t.o=t.a,t.a=void 0},"sb=true":function(t){t.sb=!0},"sb=false":function(t){t.sb=!1},"beginsWithBond=true":function(t){t.beginsWithBond=!0},"beginsWithBond=false":function(t){t.beginsWithBond=!1},"parenthesisLevel++":function(t){t.parenthesisLevel++},"parenthesisLevel--":function(t){t.parenthesisLevel--},"state of aggregation":function(t,e){return{type_:"state of aggregation",p1:b.go(e,"o")}},comma:function(t,e){const o=e.replace(/\s*$/,"");return o!==e&&0===t.parenthesisLevel?{type_:"comma enumeration L",p1:o}:{type_:"comma enumeration M",p1:o}},output:function(t,e,o){let n;if(t.r){let e,o;e="M"===t.rdt?b.go(t.rd,"tex-math"):"T"===t.rdt?[{type_:"text",p1:t.rd||""}]:b.go(t.rd,"ce"),o="M"===t.rqt?b.go(t.rq,"tex-math"):"T"===t.rqt?[{type_:"text",p1:t.rq||""}]:b.go(t.rq,"ce"),n={type_:"arrow",r:t.r,rd:e,rq:o}}else n=[],(t.a||t.b||t.p||t.o||t.q||t.d||o)&&(t.sb&&n.push({type_:"entitySkip"}),t.o||t.q||t.d||t.b||t.p||2===o?t.o||t.q||t.d||!t.b&&!t.p?t.o&&"kv"===t.dType&&b.patterns.match_("d-oxidation$",t.d||"")?t.dType="oxidation":t.o&&"kv"===t.dType&&!t.q&&(t.dType=void 0):(t.o=t.a,t.d=t.b,t.q=t.p,t.a=t.b=t.p=void 0):(t.o=t.a,t.a=void 0),n.push({type_:"chemfive",a:b.go(t.a,"a"),b:b.go(t.b,"bd"),p:b.go(t.p,"pq"),o:b.go(t.o,"o"),q:b.go(t.q,"pq"),d:b.go(t.d,"oxidation"===t.dType?"oxidation":"bd"),dType:t.dType}));for(const e in t)"parenthesisLevel"!==e&&"beginsWithBond"!==e&&delete t[e];return n},"oxidation-output":function(t,e){let o=["{"];return b.concatArray(o,b.go(e,"oxidation")),o.push("}"),o},"frac-output":function(t,e){return{type_:"frac-ce",p1:b.go(e[0],"ce"),p2:b.go(e[1],"ce")}},"overset-output":function(t,e){return{type_:"overset",p1:b.go(e[0],"ce"),p2:b.go(e[1],"ce")}},"underset-output":function(t,e){return{type_:"underset",p1:b.go(e[0],"ce"),p2:b.go(e[1],"ce")}},"underbrace-output":function(t,e){return{type_:"underbrace",p1:b.go(e[0],"ce"),p2:b.go(e[1],"ce")}},"color-output":function(t,e){return{type_:"color",color1:e[0],color2:b.go(e[1],"ce")}},"r=":function(t,e){t.r=e},"rdt=":function(t,e){t.rdt=e},"rd=":function(t,e){t.rd=e},"rqt=":function(t,e){t.rqt=e},"rq=":function(t,e){t.rq=e},operator:function(t,e,o){return{type_:"operator",kind_:o||e}}}},a:{transitions:g({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:g({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:[{type_:"write",option:"{"},"text",{type_:"write",option:"}"}]}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:g({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(t){if(t.text_){let e={type_:"text",p1:t.text_};for(const e in t)delete t[e];return e}}}},pq:{transitions:g({empty:{"*":{action_:[]}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{action_:[],nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(t,e){return{type_:"state of aggregation subscript",p1:b.go(e,"o")}},"color-output":function(t,e){return{type_:"color",color1:e[0],color2:b.go(e[1],"pq")}}}},bd:{transitions:g({empty:{"*":{action_:[]}},x$:{0:{action_:[],nextState:"!f",revisit:!0}},formula$:{0:{action_:[],nextState:"f",revisit:!0}},else:{0:{action_:[],nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(t,e){return{type_:"color",color1:e[0],color2:b.go(e[1],"bd")}}}},oxidation:{transitions:g({empty:{"*":{action_:"roman-numeral"}},"pm-operator":{"*":{action_:{type_:"o=+p1",option:"\\pm"}}},else:{"*":{action_:"o="}}}),actions:{"roman-numeral":function(t){return{type_:"roman numeral",p1:t.o||""}}}},"tex-math":{transitions:g({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(t){if(t.o){let e={type_:"tex-math",p1:t.o};for(const e in t)delete t[e];return e}}}},"tex-math tight":{transitions:g({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(t,e){t.o=(t.o||"")+"{"+e+"}"},output:function(t){if(t.o){let e={type_:"tex-math",p1:t.o};for(const e in t)delete t[e];return e}}}},"9,9":{transitions:g({empty:{"*":{action_:[]}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:g({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{action_:[]}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(t,e){let o=[];return"+-"===e[0]||"+/-"===e[0]?o.push("\\pm "):e[0]&&o.push(e[0]),e[1]&&(b.concatArray(o,b.go(e[1],"pu-9,9")),e[2]&&(e[2].match(/[,.]/)?b.concatArray(o,b.go(e[2],"pu-9,9")):o.push(e[2])),(e[3]||e[4])&&("e"===e[3]||"*"===e[4]?o.push({type_:"cdot"}):o.push({type_:"times"}))),e[5]&&o.push("10^{"+e[5]+"}"),o},"number^":function(t,e){let o=[];return"+-"===e[0]||"+/-"===e[0]?o.push("\\pm "):e[0]&&o.push(e[0]),b.concatArray(o,b.go(e[1],"pu-9,9")),o.push("^{"+e[2]+"}"),o},operator:function(t,e,o){return{type_:"operator",kind_:o||e}},space:function(){return{type_:"pu-space-1"}},output:function(t){let e;const o=b.patterns.match_("{(...)}",t.d||"");o&&""===o.remainder&&(t.d=o.match_);const n=b.patterns.match_("{(...)}",t.q||"");if(n&&""===n.remainder&&(t.q=n.match_),t.d&&(t.d=t.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),t.d=t.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),t.q){t.q=t.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),t.q=t.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");const o={d:b.go(t.d,"pu"),q:b.go(t.q,"pu")};"//"===t.o?e={type_:"pu-frac",p1:o.d,p2:o.q}:(e=o.d,o.d.length>1||o.q.length>1?e.push({type_:" / "}):e.push({type_:"/"}),b.concatArray(e,o.q))}else e=b.go(t.d,"pu-2");for(const e in t)delete t[e];return e}}},"pu-2":{transitions:g({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(t,e){t.rm+="^{"+e+"}"},space:function(){return{type_:"pu-space-2"}},output:function(t){let e=[];if(t.rm){const o=b.patterns.match_("{(...)}",t.rm||"");e=o&&""===o.remainder?b.go(o.match_,"pu"):{type_:"rm",p1:t.rm}}for(const e in t)delete t[e];return e}}},"pu-9,9":{transitions:g({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(t){let e=[];if(t.text_=t.text_||"",t.text_.length>4){let o=t.text_.length%3;0===o&&(o=3);for(let o=t.text_.length-3;o>0;o-=3)e.push(t.text_.substr(o,3)),e.push({type_:"1000 separator"});e.push(t.text_.substr(0,o)),e.reverse()}else e.push(t.text_);for(const e in t)delete t[e];return e},"output-o":function(t){let e=[];if(t.text_=t.text_||"",t.text_.length>4){const o=t.text_.length-3;let n;for(n=0;n<o;n+=3)e.push(t.text_.substr(n,3)),e.push({type_:"1000 separator"});e.push(t.text_.substr(n))}else e.push(t.text_);for(const e in t)delete t[e];return e}}}}},y={go:function(t,e){if(!t)return"";let o="",n=!1;for(let e=0;e<t.length;e++){const a=t[e];"string"==typeof a?o+=a:(o+=y._go2(a),"1st-level escape"===a.type_&&(n=!0))}return e&&!n&&o&&(o="{"+o+"}"),o},_goInner:function(t){return y.go(t,!1)},_go2:function(t){let e;switch(t.type_){case"chemfive":e="";const o={a:y._goInner(t.a),b:y._goInner(t.b),p:y._goInner(t.p),o:y._goInner(t.o),q:y._goInner(t.q),d:y._goInner(t.d)};o.a&&(o.a.match(/^[+\-]/)&&(o.a="{"+o.a+"}"),e+=o.a+"\\,"),(o.b||o.p)&&(e+="{\\vphantom{A}}",e+="^{\\hphantom{"+(o.b||"")+"}}_{\\hphantom{"+(o.p||"")+"}}",e+="\\mkern-1.5mu",e+="{\\vphantom{A}}",e+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(o.b||"")+"}}",e+="_{\\vphantom{2}\\llap{\\smash[t]{"+(o.p||"")+"}}}"),o.o&&(o.o.match(/^[+\-]/)&&(o.o="{"+o.o+"}"),e+=o.o),"kv"===t.dType?((o.d||o.q)&&(e+="{\\vphantom{A}}"),o.d&&(e+="^{"+o.d+"}"),o.q&&(e+="_{\\smash[t]{"+o.q+"}}")):"oxidation"===t.dType?(o.d&&(e+="{\\vphantom{A}}",e+="^{"+o.d+"}"),o.q&&(e+="{\\vphantom{A}}",e+="_{\\smash[t]{"+o.q+"}}")):(o.q&&(e+="{\\vphantom{A}}",e+="_{\\smash[t]{"+o.q+"}}"),o.d&&(e+="{\\vphantom{A}}",e+="^{"+o.d+"}"));break;case"rm":case"roman numeral":e="\\mathrm{"+t.p1+"}";break;case"text":t.p1.match(/[\^_]/)?(t.p1=t.p1.replace(" ","~").replace("-","\\text{-}"),e="\\mathrm{"+t.p1+"}"):e="\\text{"+t.p1+"}";break;case"state of aggregation":e="\\mskip2mu "+y._goInner(t.p1);break;case"state of aggregation subscript":e="\\mskip1mu "+y._goInner(t.p1);break;case"bond":if(e=y._getBond(t.kind_),!e)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+t.kind_+")"];break;case"frac":const n="\\frac{"+t.p1+"}{"+t.p2+"}";e="\\mathchoice{\\textstyle"+n+"}{"+n+"}{"+n+"}{"+n+"}";break;case"pu-frac":const a="\\frac{"+y._goInner(t.p1)+"}{"+y._goInner(t.p2)+"}";e="\\mathchoice{\\textstyle"+a+"}{"+a+"}{"+a+"}{"+a+"}";break;case"tex-math":case"1st-level escape":e=t.p1+" ";break;case"frac-ce":e="\\frac{"+y._goInner(t.p1)+"}{"+y._goInner(t.p2)+"}";break;case"overset":e="\\overset{"+y._goInner(t.p1)+"}{"+y._goInner(t.p2)+"}";break;case"underset":e="\\underset{"+y._goInner(t.p1)+"}{"+y._goInner(t.p2)+"}";break;case"underbrace":e="\\underbrace{"+y._goInner(t.p1)+"}_{"+y._goInner(t.p2)+"}";break;case"color":e="{\\color{"+t.color1+"}{"+y._goInner(t.color2)+"}}";break;case"color0":e="\\color{"+t.color+"}";break;case"arrow":const r={rd:y._goInner(t.rd),rq:y._goInner(t.rq)};let i=y._getArrow(t.r);r.rd||r.rq?"<=>"===t.r||"<=>>"===t.r||"<<=>"===t.r||"<--\x3e"===t.r?(i="\\long"+i,r.rd&&(i="\\overset{"+r.rd+"}{"+i+"}"),r.rq&&(i="<--\x3e"===t.r?"\\underset{\\lower2mu{"+r.rq+"}}{"+i+"}":"\\underset{\\lower6mu{"+r.rq+"}}{"+i+"}"),i=" {}\\mathrel{"+i+"}{} "):(r.rq&&(i+="[{"+r.rq+"}]"),i+="{"+r.rd+"}",i=" {}\\mathrel{\\x"+i+"}{} "):i=" {}\\mathrel{\\long"+i+"}{} ",e=i;break;case"operator":e=y._getOperator(t.kind_);break;case"space":e=" ";break;case"tinySkip":e="\\mkern2mu";break;case"entitySkip":case"pu-space-1":e="~";break;case"pu-space-2":e="\\mkern3mu ";break;case"1000 separator":e="\\mkern2mu ";break;case"commaDecimal":e="{,}";break;case"comma enumeration L":e="{"+t.p1+"}\\mkern6mu ";break;case"comma enumeration M":e="{"+t.p1+"}\\mkern3mu ";break;case"comma enumeration S":e="{"+t.p1+"}\\mkern1mu ";break;case"hyphen":e="\\text{-}";break;case"addition compound":e="\\,{\\cdot}\\,";break;case"electron dot":e="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":e="{\\times}";break;case"prime":e="\\prime ";break;case"cdot":e="\\cdot ";break;case"tight cdot":e="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":e="\\times ";break;case"circa":e="{\\sim}";break;case"^":e="uparrow";break;case"v":e="downarrow";break;case"ellipsis":e="\\ldots ";break;case"/":e="/";break;case" / ":e="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return e},_getArrow:function(t){switch(t){case"->":case"\u2192":case"\u27f6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"leftrightarrows";case"<=>":case"\u21cc":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(t){switch(t){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(t){switch(t){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};const $=MathJax._.core.MmlTree.MmlNode,S=$.TEXCLASS,q=($.TEXCLASSNAMES,$.MATHVARIANTS,$.indentAttributes,$.AbstractMmlNode,$.AbstractMmlTokenNode,$.AbstractMmlLayoutNode,$.AbstractMmlBaseNode,$.AbstractMmlEmptyNode,$.TextNode,$.XMLNode,{relmo(t,e){const o=Object.assign({stretchy:!0,texClass:S.REL,mathvariant:"-mhchem"},e.attributes||{}),n=t.create("token","mo",o,e.char);t.Push(n)}}),v=new Map([["\\mhchemx$3[$1]{$2}",/\\underset{\\lower2mu{(.*?)}}{\\overset{(.*?)}{\\long(.*?)}}/g],["\\mhchemx$2{$1}",/\\overset{(.*?)}{\\long(.*?)}/g],["\\mhchemBondTD",/\\rlap\{\\lower\.1em\{-\}\}\\raise\.1em\{\\tripledash\}/g],["\\mhchemBondTDD",/\\rlap\{\\lower\.2em\{-\}\}\\rlap\{\\raise\.2em\{\\tripledash\}\}-/g],["\\mhchemBondDTD",/\\rlap\{\\lower\.2em\{-\}\}\\rlap\{\\raise.2em\{-\}\}\\tripledash/g],[(t,e)=>{const o=`mhchem${e}`;return A.lookup(o)||k.lookup(o)?`\\${o}`:t},/\\(x?(?:long)?(?:left|right|[Ll]eftright|[Rr]ightleft)(?:arrow|harpoons))/g]]),w={Machine(t,e,o){const n=t.GetArgument(e);let a;try{a=x.toTex(n,o);for(const[t,e]of v.entries())a=a.replace(e,t)}catch(t){throw new m(t[0],t[1])}t.string=a+t.string.substring(t.i),t.i=0},Macro:d.Macro,xArrow:f.xArrow},k=new h("mhchem",{ce:[w.Machine,"ce"],pu:[w.Machine,"pu"],mhchemxrightarrow:[w.xArrow,58409,5,9],mhchemxleftarrow:[w.xArrow,58408,9,5],mhchemxleftrightarrow:[w.xArrow,58410,9,9],mhchemxleftrightarrows:[w.xArrow,58411,9,9],mhchemxrightleftharpoons:[w.xArrow,58376,5,9],mhchemxRightleftharpoons:[w.xArrow,58377,5,9],mhchemxLeftrightharpoons:[w.xArrow,58378,9,11]}),A=new _("mhchem-chars",q.relmo,{tripledash:["\ue410",{stretchy:!1}],mhchemBondTD:["\ue411",{stretchy:!1}],mhchemBondTDD:["\ue412",{stretchy:!1}],mhchemBondDTD:["\ue413",{stretchy:!1}],mhchemlongleftarrow:"\ue428",mhchemlongrightarrow:"\ue429",mhchemlongleftrightarrow:"\ue42a",mhchemlongrightleftharpoons:"\ue408",mhchemlongRightleftharpoons:"\ue409",mhchemlongLeftrightharpoons:"\ue40a",mhchemlongleftrightarrows:"\ue42b",mhchemrightarrow:"\ue42d",mhchemleftarrow:"\ue42c",mhchemleftrightarrow:"\ue42e"}),M=s.create("mhchem",{[i.HANDLER]:{[c.MACRO]:["mhchem","mhchem-chars"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/mhchem","4.1.3","tex-extension"),a({_:{input:{tex:{mhchem:{MhchemConfiguration:e}}}}}),function(t,e,o=`[fonts]/${e}`){if(MathJax.loader){const a=e.replace(/-font-extension$/,"-extension"),r=MathJax.config?.startup?.output||"chtml";n(MathJax.config.loader,"paths",{[a]:o}),MathJax._.output?.[r]||n(MathJax.config.loader,"dependencies",{[`[${a}]/${r}`]:[`output/${r}`]}),MathJax.loader.addPackageData(t,{extraLoads:[`[${a}]/${r}`],rendererExtensions:[a]})}}("[tex]/mhchem","mathjax-mhchem-font-extension")})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var a in n)e.o(n,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{BeginEnvItem:()=>M});var n={};e.r(n),e.d(n,{NewcommandPriority:()=>v,NewcommandTables:()=>k,NewcommandUtil:()=>G});var a={};e.r(a),e.d(a,{default:()=>S});var r={};e.r(r),e.d(r,{NewcommandConfig:()=>L,NewcommandConfiguration:()=>J});const i=("undefined"!=typeof window?window:e.g).MathJax._.components.global,o=(i.GLOBAL,i.isObject,i.combineConfig,i.combineDefaults,i.combineWithMathJax),s=(i.MathJax,MathJax._.input.tex.HandlerTypes),c=s.ConfigurationType,l=s.HandlerType,m=MathJax._.input.tex.Configuration,d=m.Configuration,u=(m.ConfigurationHandler,m.ParserConfiguration,MathJax._.input.tex.TexError.default),g=MathJax._.input.tex.StackItem,h=(g.MmlStack,g.BaseItem);class M extends h{get kind(){return"beginEnv"}get isOpen(){return!0}checkItem(e){if(e.isKind("end")){if(e.getName()!==this.getName())throw new u("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),e.getName());return[[this.factory.create("mml",this.toMml())],!0]}if(e.isKind("stop"))throw new u("EnvMissingEnd","Missing \\end{%1}",this.getName());return super.checkItem(e)}}const f=MathJax._.input.tex.MapHandler,p=(f.MapHandler,f.SubHandler),b=(f.SubHandlers,MathJax._.input.tex.UnitUtil.UnitUtil),w=MathJax._.input.tex.Token,N=w.Token,E=w.Macro;var k;!function(e){e.NEW_DELIMITER="new-Delimiter",e.NEW_COMMAND="new-Command",e.NEW_ENVIRONMENT="new-Environment"}(k||(k={}));const v=-100,G={GetCSname(e,t){if("\\"!==e.GetNext())throw new u("MissingCS","%1 must be followed by a control sequence",t);const n=b.trimSpaces(e.GetArgument(t)).substring(1);return this.checkProtectedMacros(e,n),n},GetCsNameArgument(e,t){let n=b.trimSpaces(e.GetArgument(t));if("\\"===n.charAt(0)&&(n=n.substring(1)),!n.match(/^(.|[a-z]+)$/i))throw new u("IllegalControlSequenceName","Illegal control sequence name for %1",t);return this.checkProtectedMacros(e,n),n},GetArgCount(e,t){let n=e.GetBrackets(t);if(n&&(n=b.trimSpaces(n),!n.match(/^[0-9]+$/)))throw new u("IllegalParamNumber","Illegal number of parameters specified in %1",t);return n},GetTemplate(e,t,n){let a=e.GetNext();const r=[];let i=0,o=e.i;for(;e.i<e.string.length;){if(a=e.GetNext(),"#"===a){if(o!==e.i&&(r[i]=e.string.substring(o,e.i)),a=e.string.charAt(++e.i),!a.match(/^[1-9]$/))throw new u("CantUseHash2","Illegal use of # in template for %1",n);if(parseInt(a)!==++i)throw new u("SequentialParam","Parameters for %1 must be numbered sequentially",n);o=e.i+1}else if("{"===a)return o!==e.i&&(r[i]=e.string.substring(o,e.i),""===r[i].replace(/^ +/,"")&&""===r.slice(0,i).join(""))?i:r.length>0?[i.toString()].concat(r):i;e.i++}throw new u("MissingReplacementString","Missing replacement string for definition of %1",t)},GetParameter(e,t,n){if(null==n)return e.GetArgument(t);let a=e.i,r=0,i=!1;for(;e.i<e.string.length;){const o=e.string.charAt(e.i);if("{"===o)i=e.i===a,e.GetArgument(t),r=e.i-a;else{if(this.MatchParam(e,n))return i&&(a++,r-=2),e.string.substring(a,a+r);if("\\"===o){e.i++,r++,i=!1;const t=e.string.substring(e.i).match(/[a-z]+|./i);t&&(e.i+=t[0].length,r=e.i-a)}else e.i++,r++,i=!1}}throw new u("RunawayArgument","Runaway argument for %1?",t)},MatchParam:(e,t)=>e.string.substring(e.i,e.i+t.length)!==t||t.match(/\\[a-z]+$/i)&&e.string.charAt(e.i+t.length).match(/[a-z]/i)?0:(e.i+=t.length,1),checkGlobal:(e,t,n)=>e.stack.env.isGlobal?e.configuration.packageData.get("begingroup").stack.checkGlobal(t,n):n.map(t=>e.configuration.handlers.retrieve(t)),checkProtectedMacros(e,t){var n;if(null===(n=e.options.protectedMacros)||void 0===n?void 0:n.includes(t))throw new u("ProtectedMacro","The control sequence %1 can't be redefined",`\\${t}`)},addDelimiter(e,t,n,a){const r=t.substring(1);this.checkProtectedMacros(e,r);const[i,o]=G.checkGlobal(e,[r,t],[k.NEW_COMMAND,k.NEW_DELIMITER]);r!==t&&i.remove(r),o.add(t,new N(t,n,a)),delete e.stack.env.isGlobal},addMacro(e,t,n,a,r=""){this.checkProtectedMacros(e,t);const i=G.checkGlobal(e,[t],[k.NEW_COMMAND])[0];this.undefineDelimiter(e,"\\"+t),i.add(t,new E(r||t,n,a)),delete e.stack.env.isGlobal},addEnvironment(e,t,n,a){G.checkGlobal(e,[t],[k.NEW_ENVIRONMENT])[0].add(t,new E(t,n,a)),delete e.stack.env.isGlobal},undefineMacro(e,t){const n=G.checkGlobal(e,[t],[k.NEW_COMMAND])[0];n.remove(t),e.configuration.handlers.get(l.MACRO).applicable(t)&&(n.add(t,new E(t,()=>p.FALLBACK,[])),this.undefineDelimiter(e,"\\"+t)),delete e.stack.env.isGlobal},undefineDelimiter(e,t){const n=G.checkGlobal(e,[t],[k.NEW_DELIMITER])[0];n.remove(t),e.configuration.handlers.get(l.DELIMITER).applicable(t)&&n.add(t,new N(t,null,{})),delete e.stack.env.isGlobal}},A=MathJax._.input.tex.TokenMap,x=(A.parseResult,A.AbstractTokenMap,A.RegExpMap,A.AbstractParseMap,A.CharacterMap),I=A.DelimiterMap,C=A.MacroMap,T=A.CommandMap,y=A.EnvironmentMap,D=MathJax._.input.tex.base.BaseMethods,P=(D.splitAlignArray,D.default),_=MathJax._.input.tex.ParseUtil,O=(_.KeyValueDef,_.KeyValueTypes,_.ParseUtil),R={NewCommand(e,t){const n=G.GetCsNameArgument(e,t),a=G.GetArgCount(e,t),r=e.GetBrackets(t),i=e.GetArgument(t);G.addMacro(e,n,R.Macro,[i,a,r]),e.Push(e.itemFactory.create("null"))},NewEnvironment(e,t){const n=b.trimSpaces(e.GetArgument(t)),a=G.GetArgCount(e,t),r=e.GetBrackets(t),i=e.GetArgument(t),o=e.GetArgument(t);G.addEnvironment(e,n,R.BeginEnv,[!0,i,o,a,r]),e.Push(e.itemFactory.create("null"))},MacroDef(e,t){const n=G.GetCSname(e,t),a=G.GetTemplate(e,t,"\\"+n),r=e.GetArgument(t);a instanceof Array?G.addMacro(e,n,R.MacroWithTemplate,[r].concat(a)):G.addMacro(e,n,R.Macro,[r,a]),e.Push(e.itemFactory.create("null"))},Let(e,t){const n=G.GetCSname(e,t);let a=e.GetNext();"="===a&&(e.i++,a=e.GetNext());const r=e.configuration.handlers;if(e.Push(e.itemFactory.create("null")),"\\"===a){if(n===(t=G.GetCSname(e,t)))return;const a=r.get(l.MACRO).applicable(t);if(a instanceof C){const r=a.lookup(t);return void G.addMacro(e,n,r.func,r.args,r.token)}if(a instanceof x&&!(a instanceof I)){const r=a.lookup(t),i=e=>a.parser(e,r);return void G.addMacro(e,n,i,[n,r.char])}const i=r.get(l.DELIMITER).lookup("\\"+t);return i?void G.addDelimiter(e,"\\"+n,i.char,i.attributes):(G.checkProtectedMacros(e,n),G.undefineMacro(e,n),void G.undefineDelimiter(e,"\\"+n))}e.i++;const i=r.get(l.DELIMITER).lookup(a);i?G.addDelimiter(e,"\\"+n,i.char,i.attributes):G.addMacro(e,n,R.Macro,[a])},MacroWithTemplate(e,t,n,a,...r){const i=parseInt(a,10);if(r.length){const a=[];if(e.GetNext(),r[0]&&!G.MatchParam(e,r[0]))throw new u("MismatchUseDef","Use of %1 doesn't match its definition",t);if(i){for(let n=0;n<i;n++)a.push(G.GetParameter(e,t,r[n+1]));n=O.substituteArgs(e,a,n)}}e.string=O.addArgs(e,n,e.string.slice(e.i)),e.i=0,O.checkMaxMacros(e)},BeginEnv(e,t,n,a,r,i){const o=t.getName();if(e.stack.env.closing===o){delete e.stack.env.closing;if(e.stack.global.beginEnv&&(e.stack.global.beginEnv--,a)){const t=e.string.slice(e.i);e.string=O.addArgs(e,e.string.substring(0,e.i),a),e.Parse(),e.string=t,e.i=0}return e.itemFactory.create("end").setProperty("name",o)}if(r){const t=[];if(null!=i){const n=e.GetBrackets(`\\begin{${o}}`);t.push(null==n?i:n)}for(let n=t.length;n<r;n++)t.push(e.GetArgument(`\\begin{${o}}`));n=O.substituteArgs(e,t,n),a=O.substituteArgs(e,[],a)}return e.string=O.addArgs(e,n,e.string.slice(e.i)),e.i=0,e.stack.global.beginEnv=(e.stack.global.beginEnv||0)+1,e.itemFactory.create("beginEnv").setProperty("name",o)},Macro:P.Macro},S=R;new T("Newcommand-macros",{newcommand:S.NewCommand,renewcommand:S.NewCommand,newenvironment:S.NewEnvironment,renewenvironment:S.NewEnvironment,def:S.MacroDef,let:S.Let});const W=MathJax._.input.tex.ParseMethods.default;function L(e,t){t.parseOptions.packageData.has("newcommand")||(t.parseOptions.packageData.set("newcommand",{}),new I(k.NEW_DELIMITER,W.delimiter,{}),new T(k.NEW_COMMAND,{}),new y(k.NEW_ENVIRONMENT,W.environment,{}),t.parseOptions.handlers.add({[l.CHARACTER]:[],[l.DELIMITER]:[k.NEW_DELIMITER],[l.MACRO]:[k.NEW_DELIMITER,k.NEW_COMMAND],[l.ENVIRONMENT]:[k.NEW_ENVIRONMENT]},{},v))}const J=d.create("newcommand",{[c.HANDLER]:{macro:["Newcommand-macros"]},[c.ITEMS]:{[M.prototype.kind]:M},[c.OPTIONS]:{maxMacros:1e3,protectedMacros:["begingroupSandbox"]},[c.CONFIG]:L});MathJax.loader&&MathJax.loader.checkVersion("[tex]/newcommand","4.1.3","tex-extension"),o({_:{input:{tex:{newcommand:{NewcommandConfiguration:r,NewcommandItems:t,NewcommandMethods:a,NewcommandUtil:n}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(o,t)=>{for(var r in t)e.o(t,r)&&!e.o(o,r)&&Object.defineProperty(o,r,{enumerable:!0,get:t[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};e.r(o),e.d(o,{NoErrorsConfiguration:()=>u});const t=("undefined"!=typeof window?window:e.g).MathJax._.components.global,r=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),n=(t.MathJax,MathJax._.input.tex.HandlerTypes),a=n.ConfigurationType,i=(n.HandlerType,MathJax._.input.tex.Configuration),c=i.Configuration;i.ConfigurationHandler,i.ParserConfiguration;const u=c.create("noerrors",{[a.NODES]:{error:function(e,o,t,r){const n=e.create("token","mtext",{},r.replace(/\n/g," "));return e.create("node","merror",[n],{"data-mjx-error":o,title:o})}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/noerrors","4.1.3","tex-extension"),r({_:{input:{tex:{noerrors:{NoErrorsConfiguration:o}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(n,o)=>{for(var t in o)e.o(o,t)&&!e.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:o[t]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};e.r(n),e.d(n,{NoUndefinedConfiguration:()=>f});const o=("undefined"!=typeof window?window:e.g).MathJax._.components.global,t=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),i=(o.MathJax,MathJax._.input.tex.HandlerTypes),r=i.ConfigurationType,a=i.HandlerType,d=MathJax._.input.tex.Configuration,u=d.Configuration;d.ConfigurationHandler,d.ParserConfiguration;const f=u.create("noundefined",{[r.FALLBACK]:{[a.MACRO]:function(e,n){const o=e.create("text","\\"+n),t=e.options.noundefined,i={};for(const e of["color","background","size"])t[e]&&(i["math"+e]=t[e]);e.Push(e.create("node","mtext",[],i,o))}},[r.OPTIONS]:{noundefined:{color:"red",background:"",size:""}},[r.PRIORITY]:3});MathJax.loader&&MathJax.loader.checkVersion("[tex]/noundefined","4.1.3","tex-extension"),t({_:{input:{tex:{noundefined:{NoUndefinedConfiguration:n}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,a)=>{for(var r in a)t.o(a,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{AutoOpen:()=>x});var a={};t.r(a),t.d(a,{default:()=>V});var r={};t.r(r),t.d(r,{PhysicsConfiguration:()=>J});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,i=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),o=(n.MathJax,MathJax._.input.tex.HandlerTypes),s=o.ConfigurationType,c=o.HandlerType,l=MathJax._.input.tex.Configuration,m=l.Configuration,u=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.StackItem),g=(u.MmlStack,u.BaseItem),p=MathJax._.input.tex.ParseUtil,d=(p.KeyValueDef,p.KeyValueTypes,p.ParseUtil),h=MathJax._.input.tex.NodeUtil.default,v=MathJax._.input.tex.TexParser.default;class x extends g{constructor(){super(...arguments),this.openCount=0}get kind(){return"auto open"}get isOpen(){return!0}toMml(t=!0,e){if(!t)return super.toMml(t,e);const a=this.factory.configuration.parser,r=this.getProperty("right");if(this.getProperty("smash")){const t=super.toMml(),e=a.create("node","mpadded",[t],{height:0,depth:0});this.Clear(),this.Push(a.create("node","TeXAtom",[e]))}r&&this.Push(new v(r,a.stack.env,a.configuration).mml());const n=d.fenced(this.factory.configuration,this.getProperty("open"),super.toMml(),this.getProperty("close"),this.getProperty("big"));return h.removeProperties(n,"open","close","texClass"),n}closing(t){return t===this.getProperty("close")&&!this.openCount--}checkItem(t){if(t.getProperty("pre-autoclose"))return g.fail;if(t.getProperty("autoclose"))return this.getProperty("ignore")?(this.Clear(),[[],!0]):[[this.toMml()],!0];if(t.isKind("mml")&&1===t.Size()){const e=t.toMml();e.isKind("mo")&&e.getText()===this.getProperty("open")&&this.openCount++}return super.checkItem(t)}}x.errors=Object.assign(Object.create(g.errors),{stop:["ExtraOrMissingDelims","Extra open or missing close delimiter"]});const f=MathJax._.input.tex.TokenMap,y=(f.parseResult,f.AbstractTokenMap,f.RegExpMap,f.AbstractParseMap,f.CharacterMap),M=(f.DelimiterMap,f.MacroMap),P=f.CommandMap,q=f.EnvironmentMap,A=MathJax._.input.tex.base.BaseMethods,b=(A.splitAlignArray,A.default),$=MathJax._.input.tex.TexError.default,G=MathJax._.core.MmlTree.MmlNode,N=G.TEXCLASS,k=(G.TEXCLASSNAMES,G.MATHVARIANTS,G.indentAttributes,G.AbstractMmlNode,G.AbstractMmlTokenNode,G.AbstractMmlLayoutNode,G.AbstractMmlBaseNode,G.AbstractMmlEmptyNode,G.TextNode,G.XMLNode,MathJax._.input.tex.NodeFactory.NodeFactory),E={"(":")","[":"]","{":"}","|":"|"},w=/^(b|B)i(g{1,2})$/,F=[65,90],S=[97,122],C=[913,937],O=[945,969],Q=[48,57];function T(t,e){return t>=e[0]&&t<=e[1]}function D(t,e,a,r){const n=t.configuration.parser,i=k.createToken(t,e,a,r),o=r.codePointAt(0);return 1===r.length&&!n.stack.env.font&&n.stack.env.vectorFont&&(T(o,F)||T(o,S)||T(o,C)||T(o,Q)||T(o,O)&&n.stack.env.vectorStar||h.getAttribute(i,"accent"))&&h.setAttribute(i,"mathvariant",n.stack.env.vectorFont),i}function B(t,e,a,r,n){const i=new v(r,t.stack.env,t.configuration).mml();t.Push(t.itemFactory.create(e,i));const o=t.GetNext(),s=E[o];if(!s)return;let c="",l="",m="";const u=n.includes(o);if("{"===o){m=t.GetArgument(a),c=u?"\\left\\{":"",l=u?"\\right\\}":"";const e=`${c} ${m} ${l}`;return t.string=e+t.string.slice(t.i),void(t.i=0)}u&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:o,close:s})))}function I([t,e,a],r,n){return r&&n?`\\left\\langle{${t}}\\middle\\vert{${e}}\\middle\\vert{${a}}\\right\\rangle`:r?`\\langle{${t}}\\vert{${e}}\\vert{${a}}\\rangle`:`\\left\\langle{${t}}\\right\\vert{${e}}\\left\\vert{${a}}\\right\\rangle`}const V={Quantity(t,e,a="(",r=")",n=!1,i="",o=""){const s=!!n&&t.GetStar();let c=t.GetNext();const l=t.i;let m=null;if("\\"===c){if(t.i++,m=t.GetCS(),!m.match(w)){const e=t.create("node","mrow");return t.Push(d.fenced(t.configuration,a,e,r)),void(t.i=l)}c=t.GetNext()}let u=E[c];if(n&&"{"!==c)throw new $("MissingArgFor","Missing argument for %1",t.currentCS);if(!u){const e=t.create("node","mrow");return t.Push(d.fenced(t.configuration,a,e,r)),void(t.i=l)}if(i){const e=t.create("token","mi",{texClass:N.OP},i);o&&h.setAttribute(e,"mathvariant",o),t.Push(t.itemFactory.create("fn",e))}if("{"===c){let i=t.GetArgument(e);return c=n?a:"\\{",u=n?r:"\\}",i=s?`${c} ${i} ${u}`:m?`\\${m}l${c} ${i} \\${m}r${u}`:`\\left${c} ${i} \\right${u}`,void t.Push(new v(i,t.stack.env,t.configuration).mml())}t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:c,close:u,big:m}))},Eval(t,e){const a=t.GetStar(),r=t.GetNext();if("("===r||"["===r)return t.i++,void t.Push(t.itemFactory.create("auto open").setProperties({open:r,close:"|",smash:a,right:"\\vphantom{\\int}"}));let n="\\left.\\vphantom{\\int}\\right|";if("{"===r){const r=t.GetArgument(e);n=`\\left.${a?`\\smash{${r}}`:r}\\vphantom{\\int}\\right|`}t.string=t.string.substring(0,t.i)+n+t.string.slice(t.i)},Commutator(t,e,a="[",r="]"){const n=t.GetStar();let i=t.GetNext(),o=null;if("\\"===i){if(t.i++,o=t.GetCS(),!o.match(w))throw new $("MissingArgFor","Missing argument for %1",t.currentCS);i=t.GetNext()}if("{"!==i)throw new $("MissingArgFor","Missing argument for %1",t.currentCS);let s=t.GetArgument(e)+","+t.GetArgument(e);s=n?`${a} ${s} ${r}`:o?`\\${o}l${a} ${s} \\${o}r${r}`:`\\left${a} ${s} \\right${r}`,t.Push(new v(s,t.stack.env,t.configuration).mml())},VectorBold(t,e){const a=t.GetStar(),r=t.GetArgument(e),n=t.configuration.nodeFactory.get("token"),i=t.stack.env.font;delete t.stack.env.font,t.configuration.nodeFactory.set("token",D),t.stack.env.vectorFont=a?"bold-italic":"bold",t.stack.env.vectorStar=a;const o=new v(r,t.stack.env,t.configuration).mml();i&&(t.stack.env.font=i),delete t.stack.env.vectorFont,delete t.stack.env.vectorStar,t.configuration.nodeFactory.set("token",n),t.Push(o)},StarMacro(t,e,a,...r){const n=t.GetStar(),i=[];if(a)for(let r=i.length;r<a;r++)i.push(t.GetArgument(e));let o=r.join(n?"*":"");o=d.substituteArgs(t,i,o),t.string=d.addArgs(t,o,t.string.slice(t.i)),t.i=0,d.checkMaxMacros(t)},OperatorApplication(t,e,a,...r){B(t,"fn",e,a,r)},VectorOperator(t,e,a,...r){B(t,"mml",e,a,r)},Expression(t,e,a=!0,r=""){r=r||e.slice(1);const n=a?t.GetBrackets(e):null;let i=t.create("token","mi",{texClass:N.OP},r);if(n){const e=new v(n,t.stack.env,t.configuration).mml();i=t.create("node","msup",[i,e])}t.Push(t.itemFactory.create("fn",i)),"("===t.GetNext()&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")"})))},Qqtext(t,e,a){const r=(t.GetStar()?"":"\\quad")+"\\text{"+(a||t.GetArgument(e))+"}\\quad ";t.string=t.string.slice(0,t.i)+r+t.string.slice(t.i)},Differential(t,e,a){const r=t.GetBrackets(e),n=null!=r?"^{"+r+"}":" ",i="("===t.GetNext(),o="{"===t.GetNext();let s=a+n;if(!i&&!o){s+=t.GetArgument(e,!0)||"";const a=new v(s,t.stack.env,t.configuration).mml();return void t.Push(a)}if(o){s+=t.GetArgument(e);const a=new v(s,t.stack.env,t.configuration).mml();return void t.Push(t.create("node","TeXAtom",[a],{texClass:N.OP}))}t.Push(new v(s,t.stack.env,t.configuration).mml()),t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")"}))},Derivative(t,e,a,r){const n=t.GetStar(),i=t.GetBrackets(e);let o=1;const s=[];for(s.push(t.GetArgument(e));"{"===t.GetNext()&&o<a;)s.push(t.GetArgument(e)),o++;let c=!1,l=" ",m=" ";a>2&&s.length>2?(l="^{"+(s.length-1)+"}",c=!0):null!=i&&(a>2&&s.length>1&&(c=!0),l=`^{${i}}`,m=l);const u=n?"\\flatfrac":"\\frac",g=s.length>1?s[0]:"",p=s.length>1?s[1]:s[0];let d="";for(let t,e=2;t=s[e];e++)d+=r+" "+t;const h=`${u}{${r}${l}${g}}{${r} ${p}${m} ${d}}`;t.Push(new v(h,t.stack.env,t.configuration).mml()),"("===t.GetNext()&&(t.i++,t.Push(t.itemFactory.create("auto open").setProperties({open:"(",close:")",ignore:c})))},Bra(t,e){const a=t.GetStar(),r=t.GetArgument(e);let n="",i=!1,o=!1;if("\\"===t.GetNext()){let e=t.i;t.i++;const a=t.GetCS(),r=t.lookup(c.MACRO,a);r&&"ket"===r.token?(i=!0,e=t.i,o=t.GetStar(),"{"===t.GetNext()?n=t.GetArgument(a,!0):(t.i=e,o=!1)):t.i=e}let s="";s=i?a||o?`\\langle{${r}}\\vert{${n}}\\rangle`:`\\left\\langle{${r}}\\middle\\vert{${n}}\\right\\rangle`:a?`\\langle{${r}}\\vert`:`\\left\\langle{${r}}\\right\\vert{${n}}`,t.Push(new v(s,t.stack.env,t.configuration).mml())},Ket(t,e){const a=t.GetStar(),r=t.GetArgument(e),n=a?`\\vert{${r}}\\rangle`:`\\left\\vert{${r}}\\right\\rangle`;t.Push(new v(n,t.stack.env,t.configuration).mml())},BraKet(t,e){const a=t.GetStar(),r=t.GetArgument(e);let n=null;"{"===t.GetNext()&&(n=t.GetArgument(e,!0));let i="";i=null==n?a?`\\langle{${r}}\\vert{${r}}\\rangle`:`\\left\\langle{${r}}\\middle\\vert{${r}}\\right\\rangle`:a?`\\langle{${r}}\\vert{${n}}\\rangle`:`\\left\\langle{${r}}\\middle\\vert{${n}}\\right\\rangle`,t.Push(new v(i,t.stack.env,t.configuration).mml())},KetBra(t,e){const a=t.GetStar(),r=t.GetArgument(e);let n=null;"{"===t.GetNext()&&(n=t.GetArgument(e,!0));let i="";i=null==n?a?`\\vert{${r}}\\rangle\\!\\langle{${r}}\\vert`:`\\left\\vert{${r}}\\middle\\rangle\\!\\middle\\langle{${r}}\\right\\vert`:a?`\\vert{${r}}\\rangle\\!\\langle{${n}}\\vert`:`\\left\\vert{${r}}\\middle\\rangle\\!\\middle\\langle{${n}}\\right\\vert`,t.Push(new v(i,t.stack.env,t.configuration).mml())},Expectation(t,e){const a=t.GetStar(),r=a&&t.GetStar(),n=t.GetArgument(e);let i=null;"{"===t.GetNext()&&(i=t.GetArgument(e,!0));const o=n&&i?I([i,n,i],a,r):a?`\\langle {${n}} \\rangle`:`\\left\\langle {${n}} \\right\\rangle`;t.Push(new v(o,t.stack.env,t.configuration).mml())},MatrixElement(t,e){const a=t.GetStar(),r=a&&t.GetStar(),n=I([t.GetArgument(e),t.GetArgument(e),t.GetArgument(e)],a,r);t.Push(new v(n,t.stack.env,t.configuration).mml())},MatrixQuantity(t,e,a){const r=t.GetStar(),n=a?"smallmatrix":"array";let i="",o="",s="";switch(t.GetNext()){case"{":i=t.GetArgument(e);break;case"(":t.i++,o=r?"\\lgroup":"(",s=r?"\\rgroup":")",i=t.GetUpTo(e,")");break;case"[":t.i++,o="[",s="]",i=t.GetUpTo(e,"]");break;case"|":t.i++,o="|",s="|",i=t.GetUpTo(e,"|");break;default:o="(",s=")"}const c=(o?"\\left":"")+`${o}\\begin{${n}}{} ${i}\\end{${n}}`+(o?"\\right":"")+s;t.Push(new v(c,t.stack.env,t.configuration).mml())},IdentityMatrix(t,e){const a=t.GetArgument(e),r=parseInt(a,10);if(isNaN(r))throw new $("InvalidNumber","Invalid number");if(r<=1)return t.string="1"+t.string.slice(t.i),void(t.i=0);const n=Array(r).fill("0"),i=[];for(let t=0;t<r;t++){const e=n.slice();e[t]="1",i.push(e.join(" & "))}t.string=i.join("\\\\ ")+t.string.slice(t.i),t.i=0},XMatrix(t,e){const a=t.GetStar(),r=t.GetArgument(e),n=t.GetArgument(e),i=t.GetArgument(e);let o=parseInt(n,10),s=parseInt(i,10);if(isNaN(o)||isNaN(s)||s.toString()!==i||o.toString()!==n)throw new $("InvalidNumber","Invalid number");if(o=o<1?1:o,s=s<1?1:s,!a){const e=Array(s).fill(r).join(" & "),a=Array(o).fill(e).join("\\\\ ");return t.string=a+t.string.slice(t.i),void(t.i=0)}let c="";if(1===o&&1===s)c=r;else if(1===o){const t=[];for(let e=1;e<=s;e++)t.push(`${r}_{${e}}`);c=t.join(" & ")}else if(1===s){const t=[];for(let e=1;e<=o;e++)t.push(`${r}_{${e}}`);c=t.join("\\\\ ")}else{const t=[];for(let e=1;e<=o;e++){const a=[];for(let t=1;t<=s;t++)a.push(`${r}_{{${e}}{${t}}}`);t.push(a.join(" & "))}c=t.join("\\\\ ")}t.string=c+t.string.slice(t.i),t.i=0},PauliMatrix(t,e){const a=t.GetArgument(e);let r=a.slice(1);switch(a[0]){case"0":r+=" 1 & 0\\\\ 0 & 1";break;case"1":case"x":r+=" 0 & 1\\\\ 1 & 0";break;case"2":case"y":r+=" 0 & -i\\\\ i & 0";break;case"3":case"z":r+=" 1 & 0\\\\ 0 & -1"}t.string=r+t.string.slice(t.i),t.i=0},DiagonalMatrix(t,e,a){if("{"!==t.GetNext())return;const r=t.i;t.GetArgument(e);const n=t.i;t.i=r+1;const i=[];let o="",s=t.i;for(;s<n;){try{o=t.GetUpTo(e,",")}catch(e){t.i=n,i.push(t.string.slice(s,n-1));break}s=t.i,i.push(o)}t.string=function(t,e){const a=t.length,r=[];for(let n=0;n<a;n++)r.push(Array(e?a-n:n+1).join("&")+`\\mqty{${t[n]}}`);return r.join("\\\\ ")}(i,a)+t.string.slice(n),t.i=0},AutoClose(t,e,a){let r=t.stack.Top();if(r.isKind("over")&&(r=t.stack.Top(2)),!r.isKind("auto open")||!r.closing(e))return!1;const n=t.create("token","mo",{texClass:a},e);return t.Push(t.itemFactory.create("close").setProperties({"pre-autoclose":!0})),t.Push(t.itemFactory.create("mml",n).setProperties({autoclose:!0})),!0},Vnabla(t,e){const a=t.options.physics.arrowdel?"\\vec{\\gradientnabla}":"{\\gradientnabla}";return t.Push(new v(a,t.stack.env,t.configuration).mml())},DiffD(t,e){const a=t.options.physics.italicdiff?"d":"{\\rm d}";return t.Push(new v(a,t.stack.env,t.configuration).mml())},Macro:b.Macro,NamedFn:b.NamedFn,Array:b.Array},j=MathJax._.input.tex.TexConstants.TexConstant,_=MathJax._.input.tex.ParseMethods.default;new P("Physics-automatic-bracing-macros",{quantity:V.Quantity,qty:V.Quantity,pqty:[V.Quantity,"(",")",!0],bqty:[V.Quantity,"[","]",!0],vqty:[V.Quantity,"|","|",!0],Bqty:[V.Quantity,"\\{","\\}",!0],absolutevalue:[V.Quantity,"|","|",!0],abs:[V.Quantity,"|","|",!0],norm:[V.Quantity,"\\|","\\|",!0],evaluated:V.Eval,eval:V.Eval,order:[V.Quantity,"(",")",!0,"O",j.Variant.CALLIGRAPHIC],commutator:V.Commutator,comm:V.Commutator,anticommutator:[V.Commutator,"\\{","\\}"],acomm:[V.Commutator,"\\{","\\}"],poissonbracket:[V.Commutator,"\\{","\\}"],pb:[V.Commutator,"\\{","\\}"]}),new y("Physics-vector-mo",_.mathchar0mo,{dotproduct:["\u22c5",{mathvariant:j.Variant.BOLD}],vdot:["\u22c5",{mathvariant:j.Variant.BOLD}],crossproduct:"\xd7",cross:"\xd7",cp:"\xd7",gradientnabla:["\u2207",{mathvariant:j.Variant.BOLD}],divsymbol:"\xf7",divisionsymbol:"\xf7"}),new y("Physics-vector-mi",_.mathchar0mi,{real:["\u211c",{mathvariant:j.Variant.NORMAL}],imaginary:["\u2111",{mathvariant:j.Variant.NORMAL}]}),new P("Physics-vector-macros",{vnabla:V.Vnabla,vectorbold:V.VectorBold,vb:V.VectorBold,vectorarrow:[V.StarMacro,1,"\\vec{\\vb","{#1}}"],va:[V.StarMacro,1,"\\vec{\\vb","{#1}}"],vectorunit:[V.StarMacro,1,"\\hat{\\vb","{#1}}"],vu:[V.StarMacro,1,"\\hat{\\vb","{#1}}"],gradient:[V.OperatorApplication,"\\vnabla","(","["],grad:[V.OperatorApplication,"\\vnabla","(","["],divergence:[V.VectorOperator,"\\vnabla\\vdot","(","["],div:[V.VectorOperator,"\\vnabla\\vdot","(","["],curl:[V.VectorOperator,"\\vnabla\\crossproduct","(","["],laplacian:[V.OperatorApplication,"\\nabla^2","(","["]}),new P("Physics-expressions-macros",{sin:V.Expression,sinh:V.Expression,arcsin:V.Expression,asin:V.Expression,cos:V.Expression,cosh:V.Expression,arccos:V.Expression,acos:V.Expression,tan:V.Expression,tanh:V.Expression,arctan:V.Expression,atan:V.Expression,csc:V.Expression,csch:V.Expression,arccsc:V.Expression,acsc:V.Expression,sec:V.Expression,sech:V.Expression,arcsec:V.Expression,asec:V.Expression,cot:V.Expression,coth:V.Expression,arccot:V.Expression,acot:V.Expression,exp:[V.Expression,!1],log:V.Expression,ln:V.Expression,det:[V.Expression,!1],Pr:[V.Expression,!1],tr:[V.Expression,!1],trace:[V.Expression,!1,"tr"],Tr:[V.Expression,!1],Trace:[V.Expression,!1,"Tr"],rank:V.NamedFn,erf:[V.Expression,!1],Residue:[V.Macro,"\\mathrm{Res}"],Res:[V.OperatorApplication,"\\Residue","(","[","{"],principalvalue:[V.OperatorApplication,"{\\cal P}"],pv:[V.OperatorApplication,"{\\cal P}"],PV:[V.OperatorApplication,"{\\rm P.V.}"],Re:[V.OperatorApplication,"\\mathrm{Re}","{"],Im:[V.OperatorApplication,"\\mathrm{Im}","{"],sine:[V.NamedFn,"sin"],hypsine:[V.NamedFn,"sinh"],arcsine:[V.NamedFn,"arcsin"],asine:[V.NamedFn,"asin"],cosine:[V.NamedFn,"cos"],hypcosine:[V.NamedFn,"cosh"],arccosine:[V.NamedFn,"arccos"],acosine:[V.NamedFn,"acos"],tangent:[V.NamedFn,"tan"],hyptangent:[V.NamedFn,"tanh"],arctangent:[V.NamedFn,"arctan"],atangent:[V.NamedFn,"atan"],cosecant:[V.NamedFn,"csc"],hypcosecant:[V.NamedFn,"csch"],arccosecant:[V.NamedFn,"arccsc"],acosecant:[V.NamedFn,"acsc"],secant:[V.NamedFn,"sec"],hypsecant:[V.NamedFn,"sech"],arcsecant:[V.NamedFn,"arcsec"],asecant:[V.NamedFn,"asec"],cotangent:[V.NamedFn,"cot"],hypcotangent:[V.NamedFn,"coth"],arccotangent:[V.NamedFn,"arccot"],acotangent:[V.NamedFn,"acot"],exponential:[V.NamedFn,"exp"],logarithm:[V.NamedFn,"log"],naturallogarithm:[V.NamedFn,"ln"],determinant:[V.NamedFn,"det"],Probability:[V.NamedFn,"Pr"]}),new P("Physics-quick-quad-macros",{qqtext:V.Qqtext,qq:V.Qqtext,qcomma:[V.Macro,"\\qqtext*{,}"],qc:[V.Macro,"\\qqtext*{,}"],qcc:[V.Qqtext,"c.c."],qif:[V.Qqtext,"if"],qthen:[V.Qqtext,"then"],qelse:[V.Qqtext,"else"],qotherwise:[V.Qqtext,"otherwise"],qunless:[V.Qqtext,"unless"],qgiven:[V.Qqtext,"given"],qusing:[V.Qqtext,"using"],qassume:[V.Qqtext,"assume"],qsince:[V.Qqtext,"since"],qlet:[V.Qqtext,"let"],qfor:[V.Qqtext,"for"],qall:[V.Qqtext,"all"],qeven:[V.Qqtext,"even"],qodd:[V.Qqtext,"odd"],qinteger:[V.Qqtext,"integer"],qand:[V.Qqtext,"and"],qor:[V.Qqtext,"or"],qas:[V.Qqtext,"as"],qin:[V.Qqtext,"in"]}),new P("Physics-derivative-macros",{diffd:V.DiffD,flatfrac:[V.Macro,"\\left.#1\\middle/#2\\right.",2],differential:[V.Differential,"\\diffd"],dd:[V.Differential,"\\diffd"],variation:[V.Differential,"\\delta"],var:[V.Differential,"\\delta"],derivative:[V.Derivative,2,"\\diffd"],dv:[V.Derivative,2,"\\diffd"],partialderivative:[V.Derivative,3,"\\partial"],pderivative:[V.Derivative,3,"\\partial"],pdv:[V.Derivative,3,"\\partial"],functionalderivative:[V.Derivative,2,"\\delta"],fderivative:[V.Derivative,2,"\\delta"],fdv:[V.Derivative,2,"\\delta"]}),new P("Physics-bra-ket-macros",{bra:V.Bra,ket:V.Ket,innerproduct:V.BraKet,ip:V.BraKet,braket:V.BraKet,outerproduct:V.KetBra,dyad:V.KetBra,ketbra:V.KetBra,op:V.KetBra,expectationvalue:V.Expectation,expval:V.Expectation,ev:V.Expectation,matrixelement:V.MatrixElement,matrixel:V.MatrixElement,mel:V.MatrixElement}),new P("Physics-matrix-macros",{matrixquantity:V.MatrixQuantity,mqty:V.MatrixQuantity,pmqty:[V.Macro,"\\mqty(#1)",1],Pmqty:[V.Macro,"\\mqty*(#1)",1],bmqty:[V.Macro,"\\mqty[#1]",1],vmqty:[V.Macro,"\\mqty|#1|",1],smallmatrixquantity:[V.MatrixQuantity,!0],smqty:[V.MatrixQuantity,!0],spmqty:[V.Macro,"\\smqty(#1)",1],sPmqty:[V.Macro,"\\smqty*(#1)",1],sbmqty:[V.Macro,"\\smqty[#1]",1],svmqty:[V.Macro,"\\smqty|#1|",1],matrixdeterminant:[V.Macro,"\\vmqty{#1}",1],mdet:[V.Macro,"\\vmqty{#1}",1],smdet:[V.Macro,"\\svmqty{#1}",1],identitymatrix:V.IdentityMatrix,imat:V.IdentityMatrix,xmatrix:V.XMatrix,xmat:V.XMatrix,zeromatrix:[V.Macro,"\\xmat{0}{#1}{#2}",2],zmat:[V.Macro,"\\xmat{0}{#1}{#2}",2],paulimatrix:V.PauliMatrix,pmat:V.PauliMatrix,diagonalmatrix:V.DiagonalMatrix,dmat:V.DiagonalMatrix,antidiagonalmatrix:[V.DiagonalMatrix,!0],admat:[V.DiagonalMatrix,!0]}),new q("Physics-aux-envs",_.environment,{smallmatrix:[V.Array,null,null,null,"c","0.333em",".2em","S",1]}),new M("Physics-characters",{"|":[V.AutoClose,N.ORD],")":V.AutoClose,"]":V.AutoClose});const J=m.create("physics",{[s.HANDLER]:{macro:["Physics-automatic-bracing-macros","Physics-vector-macros","Physics-vector-mo","Physics-vector-mi","Physics-derivative-macros","Physics-expressions-macros","Physics-quick-quad-macros","Physics-bra-ket-macros","Physics-matrix-macros"],[c.CHARACTER]:["Physics-characters"],[c.ENVIRONMENT]:["Physics-aux-envs"]},[s.ITEMS]:{[x.prototype.kind]:x},[s.OPTIONS]:{physics:{italicdiff:!1,arrowdel:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/physics","4.1.3","tex-extension"),i({_:{input:{tex:{physics:{PhysicsConfiguration:r,PhysicsItems:e,PhysicsMethods:a}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,a)=>{for(var o in a)e.o(a,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:a[o]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{RequireConfiguration:()=>_,RequireLoad:()=>j,RequireMethods:()=>A,options:()=>J});const a=("undefined"!=typeof window?window:e.g).MathJax._.components.global,o=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),r=(a.MathJax,MathJax._.input.tex.HandlerTypes),n=r.ConfigurationType,i=r.HandlerType,s=MathJax._.input.tex.Configuration,p=s.Configuration,u=s.ConfigurationHandler,c=(s.ParserConfiguration,MathJax._.input.tex.TokenMap),l=(c.parseResult,c.AbstractTokenMap,c.RegExpMap,c.AbstractParseMap,c.CharacterMap,c.DelimiterMap,c.MacroMap,c.CommandMap),d=(c.EnvironmentMap,MathJax._.input.tex.TexError.default),f=("undefined"!=typeof window?window:e.g).MathJax._.components.startup,h=(f.Startup,f.MathJax),g=(f.CONFIG,MathJax._.components.package),x=(g.PackageError,g.Package),w=("undefined"!=typeof window?window:e.g).MathJax._.components.loader,m=(w.PathFilters,w.Loader),O=(w.MathJax,w.CONFIG),M=MathJax._.mathjax.mathjax,b=MathJax._.util.Options,y=(b.isObject,b.APPEND,b.REMOVE,b.OPTIONS,b.Expandable,b.expandable),q=(b.makeArray,b.keys,b.copy,b.insert,b.defaultOptions,b.userOptions,b.selectOptions,b.selectOptionsFromKeys,b.separateOptions,b.lookup,h.config);function k(e,t){const a=e.parseOptions.options.require,o=e.parseOptions.packageData.get("require").required,r=t.substring(a.prefix.length);if(!o.includes(r)){o.push(r);const a=function(e,t=[]){const a=e.parseOptions.options.require.prefix,o=[];for(const r of t)if(r.substring(0,a.length)===a)try{k(e,r)}catch(e){if(!e.retry)throw e;o.push(e.retry)}return o.length?Promise.all(o):null}(e,O.dependencies[t]);a?M.retryAfter(a.then(()=>P(e,t,r))):P(e,t,r)}}function P(e,t,a){const o=u.get(a);if(o){let r=q[t]||{};o.options&&1===Object.keys(o.options).length&&o.options[a]&&(r={[a]:r}),e.configuration.add(a,e,r);const n=e.parseOptions.packageData.get("require").configured;o.preprocessors.length&&!n.has(a)&&(n.set(a,!0),M.retryAfter(Promise.resolve()))}}function j(e,t){var a,o;const r=e.options.require,n=r.allow,i=("["===t.substring(0,1)?"":r.prefix)+t;if(!(Object.hasOwn(n,i)?n[i]:Object.hasOwn(n,t)?n[t]:r.defaultAllow))throw new d("BadRequire",'Extension "%1" is not allowed to be loaded',i);const s=x.packages.get(i);if(s||M.retryAfter(m.load(i).catch(e=>{})),s.hasFailed)throw new d("RequireFail",'Extension "%1" failed to load',t);const p=null===(a=O[i])||void 0===a?void 0:a.rendererExtensions,u=null===(o=h.startup.document)||void 0===o?void 0:o.menu;p&&u&&u.addRequiredExtensions(p),k(e.configuration.packageData.get("require").jax,i)}const A={Require(e,t){const a=e.GetArgument(t);if(a.match(/[^_a-zA-Z0-9]/)||""===a)throw new d("BadPackageName","Argument for %1 is not a valid package name",t);j(e,a),e.Push(e.itemFactory.create("null"))}},J={require:{allow:y({base:!1,autoload:!1,configmacros:!1,tagformat:!1,setoptions:!1,texhtml:!1}),defaultAllow:!0,prefix:"tex"}};new l("require",{require:A.Require});const _=p.create("require",{[n.HANDLER]:{[i.MACRO]:["require"]},[n.CONFIG]:function(e,t){t.parseOptions.packageData.set("require",{jax:t,required:[...t.options.packages],configured:new Map});const a=t.parseOptions.options.require,o=a.prefix;if(o.match(/[^_a-zA-Z0-9]/))throw Error("Illegal characters used in \\require prefix");O.paths[o]||(O.paths[o]="[mathjax]/input/tex/extensions"),a.prefix="["+o+"]/"},[n.OPTIONS]:J});MathJax.loader&&MathJax.loader.checkVersion("[tex]/require","4.1.3","tex-extension"),o({_:{input:{tex:{require:{RequireConfiguration:t}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,o)=>{for(var a in o)t.o(o,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:o[a]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{SetOptionsConfiguration:()=>T,SetOptionsUtil:()=>m});const o=("undefined"!=typeof window?window:t.g).MathJax._.components.global,a=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),n=(o.MathJax,MathJax._.input.tex.HandlerTypes),i=n.ConfigurationType,r=n.HandlerType,s=MathJax._.input.tex.Configuration,l=s.Configuration,p=s.ConfigurationHandler,u=(s.ParserConfiguration,MathJax._.input.tex.TokenMap),c=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap,u.DelimiterMap,u.MacroMap,u.CommandMap),f=(u.EnvironmentMap,MathJax._.input.tex.TexError.default),O=MathJax._.input.tex.ParseUtil,d=(O.KeyValueDef,O.KeyValueTypes,O.ParseUtil),g=MathJax._.input.tex.Token,x=(g.Token,g.Macro),w=MathJax._.input.tex.base.BaseMethods,b=(w.splitAlignArray,w.default),h=MathJax._.util.Options,M=h.isObject,y=(h.APPEND,h.REMOVE,h.OPTIONS,h.Expandable,h.expandable),k=(h.makeArray,h.keys,h.copy,h.insert,h.defaultOptions,h.userOptions,h.selectOptions,h.selectOptionsFromKeys,h.separateOptions,h.lookup,MathJax._.util.PrioritizedList.PrioritizedList),m={filterPackage(t,e){if("tex"!==e&&!p.get(e))throw new f("NotAPackage","Not a defined package: %1",e);const o=t.options.setoptions,a=o.allowOptions[e];if(void 0===a&&!o.allowPackageDefault||!1===a)throw new f("PackageNotSettable",'Options can\'t be set for package "%1"',e);return!0},filterOption(t,e,o){const a=t.options.setoptions,n=a.allowOptions[e]||{},i="tex"===e,r=Object.hasOwn(n,o)&&!M(n[o])?n[o]:null;if(!1===r||null===r&&!a.allowOptionsDefault)throw i?new f("TeXOptionNotSettable",'Option "%1" is not allowed to be set',o):new f("OptionNotSettable",'Option "%1" is not allowed to be set for package %2',o,e);const s=i?t.options:t.options[e];if(!s||!Object.hasOwn(s,o))throw i?new f("InvalidTexOption",'Invalid TeX option "%1"',o):new f("InvalidOptionKey",'Invalid option "%1" for package "%2"',o,e);return!0},filterValue(t,e,o,a){if("string"!=typeof a)return a;const n=a.match(/^\/(.*)\/([dgimsuvy]*)$/);return n?new RegExp(n[1],n[2]):a}};function P(t,e){const o=t.GetBrackets(e)||"tex",a=d.keyvalOptions(t.GetArgument(e)),n=t.options.setoptions;if(n.filterPackage(t,o)){for(const e of Object.keys(a))n.filterOption(t,o,e)&&(("tex"===o?t.options:t.options[o])[e]=n.filterValue(t,o,e,a[e]));t.Push(t.itemFactory.create("null"))}}const T=l.create("setoptions",{[i.CONFIG]:function(t,e){const o=new c("setoptions",{setOptions:P}),a=e.parseOptions.handlers.get(r.MACRO);a.add(["setoptions"],null,k.DEFAULTPRIORITY-1);const n=a.lookup("require");n&&(o.add("Require",new x("Require",n._func)),o.add("require",new x("require",b.Macro,["\\Require{#2}\\setOptions[#2]{#1}",2,""])))},[i.PRIORITY]:3,[i.OPTIONS]:{setoptions:{filterPackage:m.filterPackage,filterOption:m.filterOption,filterValue:m.filterValue,allowPackageDefault:!0,allowOptionsDefault:!0,allowOptions:y({tex:{FindTeX:!1,formatError:!1,package:!1,baseURL:!1,tags:!1,maxBuffer:!1,maxMaxros:!1,macros:!1,environments:!1},setoptions:!1,autoload:!1,require:!1,configmacros:!1,tagformat:!1})}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/setoptions","4.1.3","tex-extension"),a({_:{input:{tex:{setoptions:{SetOptionsConfiguration:e}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(o,a)=>{for(var e in a)t.o(a,e)&&!t.o(o,e)&&Object.defineProperty(o,e,{enumerable:!0,get:a[e]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};t.r(o),t.d(o,{TagFormatConfiguration:()=>c,tagformatConfig:()=>u});const a=("undefined"!=typeof window?window:t.g).MathJax._.components.global,e=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),n=(a.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,i=(n.HandlerType,MathJax._.input.tex.Configuration),s=i.Configuration,g=(i.ConfigurationHandler,i.ParserConfiguration,MathJax._.input.tex.Tags),f=(g.Label,g.TagInfo,g.AbstractTags,g.NoTags,g.AllTags,g.TagsFactory);let p=0;function u(t,o){const a=o.parseOptions.options.tags;"base"!==a&&Object.hasOwn(t.tags,a)&&f.add(a,t.tags[a]);const e=f.create(o.parseOptions.options.tags).constructor;p++;const n="configTags-"+p;f.add(n,class extends e{formatNumber(t){return o.parseOptions.options.tagformat.number(t)}formatTag(t){return o.parseOptions.options.tagformat.tag(t)}formatRef(t){const a=o.parseOptions.options.tagformat.ref;return a?a(t):this.formatTag(t)}formatId(t){return o.parseOptions.options.tagformat.id(t)}formatUrl(t,a){return o.parseOptions.options.tagformat.url(t,a)}}),o.parseOptions.options.tags=n}const c=s.create("tagformat",{[r.CONFIG]:[u,10],[r.OPTIONS]:{tagformat:{number:t=>t.toString(),tag:t=>["(",t,")"],ref:"",id:t=>"mjx-eqn:"+t.replace(/\s/g,"_"),url:(t,o)=>o+"#"+encodeURIComponent(t)}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/tagformat","4.1.3","tex-extension"),e({_:{input:{tex:{tagformat:{TagFormatConfiguration:o}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,n)=>{for(var a in n)t.o(n,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{HtmlNodeMethods:()=>u,TexHtmlConfiguration:()=>m});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),o=(n.MathJax,MathJax._.input.tex.HandlerTypes),r=o.ConfigurationType,i=o.HandlerType,l=MathJax._.input.tex.Configuration,s=l.Configuration,h=(l.ConfigurationHandler,l.ParserConfiguration,MathJax._.input.tex.TokenMap),d=(h.parseResult,h.AbstractTokenMap,h.RegExpMap,h.AbstractParseMap,h.CharacterMap,h.DelimiterMap,h.MacroMap),c=(h.CommandMap,h.EnvironmentMap,MathJax._.input.tex.TexError.default),x=MathJax._.handlers.html.HTMLDomStrings.HTMLDomStrings,u={TexHTML(t,e){if(!t.options.allowTexHTML)return!1;const n=t.string.slice(t.i).match(/^tex-html(?: n="(\d+)")?>/);if(!n)return!1;t.i+=n[0].length;const a=(n[1]?`<!${n[1]}>`:"")+"</tex-html>",o=t.string.slice(t.i).indexOf(a);if(o<0)throw new c("TokenNotFoundForCommand","Could not find %1 for %2",a,"<"+n[0]);const r=t.string.substring(t.i,t.i+o).trim();t.i+=o+11+(n[1]?3+n[1].length:0);const i=t.configuration.packageData.get("texhtml").adaptor,l=i.childNodes(i.body(i.parse(r)));if(0===l.length)return!0;const s=1===l.length?l[0]:i.node("div",{},l),h=t.create("node","html").setHTML(s,i);return t.Push(t.create("node","mtext",[h])),!0}};new d("tex-html",{"<":u.TexHTML});const m=s.create("texhtml",{[r.HANDLER]:{[i.CHARACTER]:["tex-html"]},[r.OPTIONS]:{allowTexHTML:!1},[r.CONFIG]:()=>{if(x){const t=x.OPTIONS.includeHtmlTags;t["tex-html"]||(t["tex-html"]=(t,e)=>{const n=e.innerHTML(t),a=n.split(/<\/tex-html>/).length;return`<tex-html${a>1?` n="${a}"`:""}>`+n+(a>1?`<!${a}>`:"")+"</tex-html>"})}},[r.PREPROCESSORS]:[t=>{t.data.packageData.set("texhtml",{adaptor:t.document.adaptor})}],[r.POSTPROCESSORS]:[t=>{t.data.packageData.set("texhtml",{adaptor:null})}]});MathJax.loader&&MathJax.loader.checkVersion("[tex]/texhtml","4.1.3","tex-extension"),a({_:{input:{tex:{texhtml:{TexHtmlConfiguration:e}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,a)=>{for(var r in a)t.o(a,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{TextcompConfiguration:()=>h});const a=("undefined"!=typeof window?window:t.g).MathJax._.components.global,r=(a.GLOBAL,a.isObject,a.combineConfig,a.combineDefaults,a.combineWithMathJax),o=(a.MathJax,MathJax._.input.tex.HandlerTypes),x=o.ConfigurationType,n=o.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.TexConstants.TexConstant),p=MathJax._.input.tex.textmacros.TextMacrosMethods.TextMacrosMethods,u=MathJax._.input.tex.ParseUtil,m=(u.KeyValueDef,u.KeyValueTypes,u.ParseUtil),b=MathJax._.input.tex.textmacros.TextParser.TextParser;function g(t,e,a,r){if(t instanceof b){if(!r)return void p.Insert(t,e,a);t.saveText()}t.Push(m.internalText(t,a,r?{mathvariant:r}:{}))}new c("textcomp-macros",{textasciicircum:[g,"^"],textasciitilde:[g,"~"],textasteriskcentered:[g,"*"],textbackslash:[g,"\\"],textbar:[g,"|"],textbraceleft:[g,"{"],textbraceright:[g,"}"],textbullet:[g,"\u2022"],textdagger:[g,"\u2020"],textdaggerdbl:[g,"\u2021"],textellipsis:[g,"\u2026"],textemdash:[g,"\u2014"],textendash:[g,"\u2013"],textexclamdown:[g,"\xa1"],textgreater:[g,">"],textless:[g,"<"],textordfeminine:[g,"\xaa"],textordmasculine:[g,"\xba"],textparagraph:[g,"\xb6"],textperiodcentered:[g,"\xb7"],textquestiondown:[g,"\xbf"],textquotedblleft:[g,"\u201c"],textquotedblright:[g,"\u201d"],textquoteleft:[g,"\u2018"],textquoteright:[g,"\u2019"],textsection:[g,"\xa7"],textunderscore:[g,"_"],textvisiblespace:[g,"\u2423"],textacutedbl:[g,"\u02dd"],textasciiacute:[g,"\xb4"],textasciibreve:[g,"\u02d8"],textasciicaron:[g,"\u02c7"],textasciidieresis:[g,"\xa8"],textasciimacron:[g,"\xaf"],textgravedbl:[g,"\u02f5"],texttildelow:[g,"\u02f7"],textbaht:[g,"\u0e3f"],textcent:[g,"\xa2"],textcolonmonetary:[g,"\u20a1"],textcurrency:[g,"\xa4"],textdollar:[g,"$"],textdong:[g,"\u20ab"],texteuro:[g,"\u20ac"],textflorin:[g,"\u0192"],textguarani:[g,"\u20b2"],textlira:[g,"\u20a4"],textnaira:[g,"\u20a6"],textpeso:[g,"\u20b1"],textsterling:[g,"\xa3"],textwon:[g,"\u20a9"],textyen:[g,"\xa5"],textcircledP:[g,"\u2117"],textcompwordmark:[g,"\u200c"],textcopyleft:[g,"\u{1f12f}"],textcopyright:[g,"\xa9"],textregistered:[g,"\xae"],textservicemark:[g,"\u2120"],texttrademark:[g,"\u2122"],textbardbl:[g,"\u2016"],textbigcircle:[g,"\u25ef"],textblank:[g,"\u2422"],textbrokenbar:[g,"\xa6"],textdiscount:[g,"\u2052"],textestimated:[g,"\u212e"],textinterrobang:[g,"\u203d"],textinterrobangdown:[g,"\u2e18"],textmusicalnote:[g,"\u266a"],textnumero:[g,"\u2116"],textopenbullet:[g,"\u25e6"],textpertenthousand:[g,"\u2031"],textperthousand:[g,"\u2030"],textrecipe:[g,"\u211e"],textreferencemark:[g,"\u203b"],textlangle:[g,"\u2329"],textrangle:[g,"\u232a"],textlbrackdbl:[g,"\u27e6"],textrbrackdbl:[g,"\u27e7"],textlquill:[g,"\u2045"],textrquill:[g,"\u2046"],textcelsius:[g,"\u2103"],textdegree:[g,"\xb0"],textdiv:[g,"\xf7"],textdownarrow:[g,"\u2193"],textfractionsolidus:[g,"\u2044"],textleftarrow:[g,"\u2190"],textlnot:[g,"\xac"],textmho:[g,"\u2127"],textminus:[g,"\u2212"],textmu:[g,"\xb5"],textohm:[g,"\u2126"],textonehalf:[g,"\xbd"],textonequarter:[g,"\xbc"],textonesuperior:[g,"\xb9"],textpm:[g,"\xb1"],textrightarrow:[g,"\u2192"],textsurd:[g,"\u221a"],textthreequarters:[g,"\xbe"],textthreesuperior:[g,"\xb3"],texttimes:[g,"\xd7"],texttwosuperior:[g,"\xb2"],textuparrow:[g,"\u2191"],textborn:[g,"*"],textdied:[g,"\u2020"],textdivorced:[g,"\u26ae"],textmarried:[g,"\u26ad"],textcentoldstyle:[g,"\xa2",d.Variant.OLDSTYLE],textdollaroldstyle:[g,"$",d.Variant.OLDSTYLE],textzerooldstyle:[g,"0",d.Variant.OLDSTYLE],textoneoldstyle:[g,"1",d.Variant.OLDSTYLE],texttwooldstyle:[g,"2",d.Variant.OLDSTYLE],textthreeoldstyle:[g,"3",d.Variant.OLDSTYLE],textfouroldstyle:[g,"4",d.Variant.OLDSTYLE],textfiveoldstyle:[g,"5",d.Variant.OLDSTYLE],textsixoldstyle:[g,"6",d.Variant.OLDSTYLE],textsevenoldstyle:[g,"7",d.Variant.OLDSTYLE],texteightoldstyle:[g,"8",d.Variant.OLDSTYLE],textnineoldstyle:[g,"9",d.Variant.OLDSTYLE]}),s.create("text-textcomp",{[x.PARSER]:"text",[x.HANDLER]:{[n.MACRO]:["textcomp-macros"]}});const h=s.create("textcomp",{[x.HANDLER]:{macro:["textcomp-macros"]},config(t,e){const a=e.parseOptions.packageData.get("textmacros");a&&(a.parseOptions.options.textmacros.packages.push("text-textcomp"),a.textConf.add("text-textcomp",e,{}))}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/textcomp","4.1.3","tex-extension"),r({_:{input:{tex:{textcomp:{TextcompConfiguration:e}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,a)=>{for(var o in a)t.o(a,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:a[o]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{TextParser:()=>P});var a={};t.r(a),t.d(a,{TextMacrosMethods:()=>L});var o={};t.r(o),t.d(o,{TextBaseConfiguration:()=>D,TextMacrosConfiguration:()=>j});const s=("undefined"!=typeof window?window:t.g).MathJax._.components.global,r=(s.GLOBAL,s.isObject,s.combineConfig,s.combineDefaults,s.combineWithMathJax),n=(s.MathJax,MathJax._.input.tex.HandlerTypes),i=n.ConfigurationType,c=n.HandlerType,l=MathJax._.input.tex.Configuration,h=l.Configuration,p=(l.ConfigurationHandler,l.ParserConfiguration),m=MathJax._.input.tex.ParseOptions.default,u=MathJax._.input.tex.Tags,d=(u.Label,u.TagInfo,u.AbstractTags,u.NoTags,u.AllTags,u.TagsFactory),x=MathJax._.input.tex.base.BaseItems,S=x.StartItem,M=x.StopItem,g=(x.OpenItem,x.CloseItem,x.NullItem,x.PrimeItem,x.SubsupItem,x.OverItem,x.LeftItem,x.Middle,x.RightItem,x.BreakItem,x.BeginItem,x.EndItem,x.StyleItem),f=(x.PositionItem,x.CellItem,x.MmlItem),A=(x.FnItem,x.NotItem,x.NonscriptItem,x.DotsItem,x.ArrayItem,x.EqnArrayItem,x.MstyleItem,x.EquationItem,MathJax._.input.tex.TexParser.default),k=MathJax._.input.tex.TexError.default,T=MathJax._.input.tex.ParseUtil,C=(T.KeyValueDef,T.KeyValueTypes,T.ParseUtil),b=MathJax._.core.MmlTree.MmlNode,v=(b.TEXCLASS,b.TEXCLASSNAMES,b.MATHVARIANTS,b.indentAttributes,b.AbstractMmlNode),O=(b.AbstractMmlTokenNode,b.AbstractMmlLayoutNode,b.AbstractMmlBaseNode,b.AbstractMmlEmptyNode,b.TextNode,b.XMLNode,MathJax._.input.tex.NodeUtil.default);class P extends A{get texParser(){return this.configuration.packageData.get("textmacros").texParser}get tags(){return this.texParser.tags}constructor(t,e,a,o){super(t,e,a),this.level=o}mml(){return this.copyLists(),this.configuration.popParser(),null!=this.level?this.create("node","mstyle",this.nodes,{displaystyle:!1,scriptlevel:this.level}):1===this.nodes.length?this.nodes[0]:this.create("node","mrow",this.nodes)}copyLists(){const t=this.texParser.configuration;for(const[e,a]of Object.entries(this.configuration.nodeLists))for(const o of a)t.addNode(e,o);this.configuration.nodeLists={}}Parse(){this.text="",this.nodes=[],this.envStack=[],super.Parse()}saveText(){if(this.text){const t=this.stack.env.mathvariant,e=C.internalText(this,this.text,t?{mathvariant:t}:{});this.text="",this.Push(e)}}Push(t){if(this.text&&this.saveText(),t instanceof M)return super.Push(t);t instanceof g?this.stack.env.mathcolor=this.stack.env.color:t instanceof v&&(this.addAttributes(t),this.nodes.push(t))}PushMath(t){const e=this.stack.env;for(const a of["mathsize","mathcolor"])e[a]&&!t.attributes.hasExplicit(a)&&(t.isToken||t.isKind("mstyle")||(t=this.create("node","mstyle",[t])),O.setAttribute(t,a,e[a]));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 a of["mathsize","mathcolor","mathvariant"])e[a]&&!t.attributes.hasExplicit(a)&&O.setAttribute(t,a,e[a])}ParseTextArg(t,e){const a=this.GetArgument(t);return e=Object.assign(Object.assign({},this.stack.env),e),new P(a,e,this.configuration).mml()}ParseArg(t){return new P(this.GetArgument(t),this.stack.env,this.configuration).mml()}Error(t,e,...a){throw new k(t,e,...a)}}const y=MathJax._.util.Retries,I=(y.handleRetriesFor,y.retryAfter),R=MathJax._.input.tex.base.BaseMethods,E=(R.splitAlignArray,R.default),L={Comment(t,e){for(;t.i<t.string.length&&"\n"!==t.string.charAt(t.i);)t.i++;t.i++},Math(t,e){t.saveText();const a=t.i;let o,s,r=0;for(;s=t.GetNext();)switch(o=t.i++,s){case"\\":")"===t.GetCS()&&(s="\\(");case"$":if(0===r&&e===s){const e=t.texParser.configuration,s=new A(t.string.substring(a,o),t.stack.env,e).mml();return void t.PushMath(s)}break;case"{":r++;break;case"}":0===r&&t.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace"),r--}t.Error("MathNotTerminated","Math mode is not properly terminated")},MathModeOnly(t,e){t.Error("MathModeOnly","'%1' allowed only in math mode",e)},Misplaced(t,e){t.Error("Misplaced","Misplaced '%1'",e)},OpenBrace(t,e){const a=t.stack.env;t.envStack.push(a),t.stack.env=Object.assign({},a)},CloseBrace(t,e){t.envStack.length?(t.saveText(),t.stack.env=t.envStack.pop()):t.Error("ExtraCloseMissingOpen","Extra close brace or missing open brace")},OpenQuote(t,e){t.string.charAt(t.i)===e?(t.text+="\u201c",t.i++):t.text+="\u2018"},CloseQuote(t,e){t.string.charAt(t.i)===e?(t.text+="\u201d",t.i++):t.text+="\u2019"},Tilde(t,e){t.text+="\xa0"},Space(t,e){t.text+=" ",t.GetNext()},SelfQuote(t,e){t.text+=e.substring(1)},Insert(t,e,a){t.text+=a},Accent(t,e,a){const o=t.ParseArg(e),s=t.create("token","mo",{},a);t.addAttributes(s),t.Push(t.create("node","mover",[o,s]))},Emph(t,e){const a="-tex-mathit"===t.stack.env.mathvariant?"normal":"-tex-mathit";t.Push(t.ParseTextArg(e,{mathvariant:a}))},TextFont(t,e,a){t.saveText(),t.Push(t.ParseTextArg(e,{mathvariant:a}))},SetFont(t,e,a){t.saveText(),t.stack.env.mathvariant=a},SetSize(t,e,a){t.saveText(),t.stack.env.mathsize=a},CheckAutoload(t,e){const a=t.configuration.packageData.get("autoload"),o=t.texParser;e=e.slice(1);const s=o.lookup(c.MACRO,e);if(!s||a&&s._func===a.Autoload){if(o.parse(c.MACRO,[o,e]),!s)return;I(Promise.resolve())}o.parse(c.MACRO,[t,e])},Macro:E.Macro,Spacer:E.Spacer,Hskip:E.Hskip,rule:E.rule,Rule:E.Rule,HandleRef:E.HandleRef,UnderOver:E.UnderOver,Lap:E.Lap,Phantom:E.Phantom,Smash:E.Smash,MmlToken:E.MmlToken},N=MathJax._.input.tex.TokenMap,w=(N.parseResult,N.AbstractTokenMap,N.RegExpMap,N.AbstractParseMap,N.CharacterMap,N.DelimiterMap,N.MacroMap),F=N.CommandMap,H=(N.EnvironmentMap,MathJax._.input.tex.TexConstants.TexConstant),_=MathJax._.util.lengths,z=(_.BIGDIMEN,_.UNITS,_.RELUNITS,_.MATHSPACE),J=(_.length2em,_.percent,_.em,_.px,H.Variant);new w("text-special",{$:L.Math,"%":L.Comment,"^":L.MathModeOnly,_:L.MathModeOnly,"&":L.Misplaced,"#":L.Misplaced,"~":L.Tilde," ":L.Space,"\t":L.Space,"\r":L.Space,"\n":L.Space,"\xa0":L.Tilde,"{":L.OpenBrace,"}":L.CloseBrace,"`":L.OpenQuote,"'":L.CloseQuote}),new F("text-macros",{"(":L.Math,$:L.SelfQuote,_:L.SelfQuote,"%":L.SelfQuote,"{":L.SelfQuote,"}":L.SelfQuote," ":L.SelfQuote,"&":L.SelfQuote,"#":L.SelfQuote,"\\":[L.Macro,"$\\\\$"],"'":[L.Accent,"\xb4"],"\u2019":[L.Accent,"\xb4"],"`":[L.Accent,"`"],"\u2018":[L.Accent,"`"],"^":[L.Accent,"^"],'"':[L.Accent,"\xa8"],"~":[L.Accent,"~"],"=":[L.Accent,"\xaf"],".":[L.Accent,"\u02d9"],u:[L.Accent,"\u02d8"],v:[L.Accent,"\u02c7"],emph:L.Emph,rm:[L.SetFont,J.NORMAL],mit:[L.SetFont,J.ITALIC],oldstyle:[L.SetFont,J.OLDSTYLE],cal:[L.SetFont,J.CALLIGRAPHIC],it:[L.SetFont,"-tex-mathit"],bf:[L.SetFont,J.BOLD],sf:[L.SetFont,J.SANSSERIF],tt:[L.SetFont,J.MONOSPACE],frak:[L.TextFont,J.FRAKTUR],Bbb:[L.TextFont,J.DOUBLESTRUCK],Tiny:[L.SetSize,.5],tiny:[L.SetSize,.6],scriptsize:[L.SetSize,.7],SMALL:[L.SetSize,.7],Small:[L.SetSize,.8],footnotesize:[L.SetSize,.8],small:[L.SetSize,.9],normalsize:[L.SetSize,1],large:[L.SetSize,1.095],Large:[L.SetSize,1.2],LARGE:[L.SetSize,1.44],huge:[L.SetSize,1.73],Huge:[L.SetSize,2.07],HUGE:[L.SetSize,2.49],textnormal:[L.Macro,"{\\rm #1}",1],textup:[L.Macro,"{\\rm #1}",1],textrm:[L.Macro,"{\\rm #1}",1],textit:[L.Macro,"{\\it #1}",1],textbf:[L.Macro,"{\\bf #1}",1],textsf:[L.Macro,"{\\sf #1}",1],texttt:[L.Macro,"{\\tt #1}",1],dagger:[L.Insert,"\u2020"],ddagger:[L.Insert,"\u2021"],S:[L.Insert,"\xa7"],AA:[L.Insert,"\u212b"],ldots:[L.Insert,"\u2026"],vdots:[L.Insert,"\u22ee"],",":[L.Spacer,z.thinmathspace],":":[L.Spacer,z.mediummathspace],">":[L.Spacer,z.mediummathspace],";":[L.Spacer,z.thickmathspace],"!":[L.Spacer,z.negativethinmathspace],enspace:[L.Spacer,.5],quad:[L.Spacer,1],qquad:[L.Spacer,2],thinspace:[L.Spacer,z.thinmathspace],negthinspace:[L.Spacer,z.negativethinmathspace],hskip:L.Hskip,hspace:L.Hskip,kern:L.Hskip,mskip:L.Hskip,mspace:L.Hskip,mkern:L.Hskip,rule:L.rule,Rule:[L.Rule],Space:[L.Rule,"blank"],color:L.CheckAutoload,textcolor:L.CheckAutoload,colorbox:L.CheckAutoload,fcolorbox:L.CheckAutoload,href:L.CheckAutoload,style:L.CheckAutoload,class:L.CheckAutoload,data:L.CheckAutoload,cssId:L.CheckAutoload,unicode:L.CheckAutoload,U:L.CheckAutoload,char:L.CheckAutoload,ref:[L.HandleRef,!1],eqref:[L.HandleRef,!0],underline:[L.UnderOver,"2015"],llap:L.Lap,rlap:L.Lap,phantom:L.Phantom,vphantom:[L.Phantom,1,0],hphantom:[L.Phantom,0,1],smash:L.Smash,mmlToken:L.MmlToken});const D=h.create("text-base",{[i.PARSER]:"text",[i.PRIORITY]:1,[i.HANDLER]:{[c.CHARACTER]:["command","text-special"],[c.MACRO]:["text-macros"]},[i.FALLBACK]:{[c.CHARACTER]:(t,e)=>{t.text+=e},[c.MACRO]:(t,e)=>{const a=t.texParser,o=a.lookup(c.MACRO,e);o&&o._func!==L.Macro&&t.Error("MathMacro","%1 is only supported in math mode","\\"+e),a.parse(c.MACRO,[t,e])}},[i.ITEMS]:{[S.prototype.kind]:S,[M.prototype.kind]:M,[f.prototype.kind]:f,[g.prototype.kind]:g}});function B(t,e,a,o){const s=t.configuration.packageData.get("textmacros");return t instanceof P||(s.texParser=t),s.parseOptions.clear(),[new P(e,o?{mathvariant:o}:{},s.parseOptions,a).mml()]}const j=h.create("textmacros",{[i.PRIORITY]:1,[i.CONFIG]:(t,e)=>{const a=new p(e.parseOptions.options.textmacros.packages,["tex","text"]);a.init();const o=new m(a,[]);o.options=e.parseOptions.options,a.config(e),d.addTags(a.tags),o.tags=d.getDefault(),o.tags.configuration=o,o.packageData=e.parseOptions.packageData,o.packageData.set("textmacros",{textConf:a,parseOptions:o,jax:e,texParser:null}),o.options.internalMath=B},[i.PREPROCESSORS]:[t=>{const e=t.data.packageData.get("textmacros");e.parseOptions.nodeFactory.setMmlFactory(e.jax.mmlFactory),e.parseOptions.clear()}],[i.OPTIONS]:{textmacros:{packages:["text-base"]}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/textmacros","4.1.3","tex-extension"),r({_:{input:{tex:{textmacros:{TextMacrosConfiguration:o,TextMacrosMethods:a,TextParser:e}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,n)=>{for(var a in n)t.o(n,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{UnicodeConfiguration:()=>w});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,a=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),o=(n.MathJax,MathJax._.input.tex.HandlerTypes),i=o.ConfigurationType,r=o.HandlerType,c=MathJax._.input.tex.Configuration,s=c.Configuration,u=(c.ConfigurationHandler,c.ParserConfiguration,MathJax._.input.tex.TexError.default),l=MathJax._.input.tex.TokenMap,d=(l.parseResult,l.AbstractTokenMap,l.RegExpMap,l.AbstractParseMap,l.CharacterMap,l.DelimiterMap,l.MacroMap,l.CommandMap),h=(l.EnvironmentMap,MathJax._.input.tex.UnitUtil.UnitUtil),m=MathJax._.input.tex.NodeUtil.default,f=MathJax._.util.Entities,p=(f.options,f.entities,f.add,f.remove,f.translate,f.numeric),g=MathJax._.input.tex.base.BaseConfiguration,x=g.Other,M=(g.BaseTags,g.BaseConfiguration,{}),b={Unicode(t,e){const n=t.GetBrackets(e);let a=null,o="";if(n&&(n.replace(/ /g,"").match(/^(\d+(\.\d*)?|\.\d+),(\d+(\.\d*)?|\.\d+)$/)?(a=n.replace(/ /g,"").split(/,/),o=t.GetBrackets(e)||""):o=n),o.match(/;/))throw new u("BadFont","Font name for %1 can't contain semicolons",t.currentCS);const i=h.trimSpaces(t.GetArgument(e)).replace(/^0x/,"x");if(!i.match(/^(x[0-9A-Fa-f]+|[0-9]+)$/))throw new u("BadUnicode","Argument to %1 must be a number",t.currentCS);const r=parseInt(i.match(/^x/)?"0"+i:i);M[r]?o||(o=M[r][2]):M[r]=[800,200,o,r],a&&(M[r][0]=Math.floor(1e3*parseFloat(a[0])),M[r][1]=Math.floor(1e3*parseFloat(a[1])));const c=t.stack.env.font,s={};o?(M[r][2]=s.fontfamily=o.replace(/'/g,"'"),c&&(c.match(/bold/)&&(s.fontweight="bold"),c.match(/italic|-mathit/)&&(s.fontstyle="italic"))):c&&(s.mathvariant=c);const l=t.create("token","mtext",s,p(i));m.setProperty(l,"unicode",!0),t.Push(l)},RawUnicode(t,e){const n=t.GetArgument(e).trim();if(!n.match(/^[0-9A-F]{1,6}$/))throw new u("BadRawUnicode","Argument to %1 must a hexadecimal number with 1 to 6 digits",t.currentCS);const a=parseInt(n,16);t.string=String.fromCodePoint(a)+t.string.substring(t.i),t.i=0},Char(t,e){let n;const a=t.GetNext();let o="";const i=t.string.substring(t.i);if("'"===a)n=i.match(/^'([0-7]{1,7}) ?/u),n&&(o=String.fromCodePoint(parseInt(n[1],8)));else if('"'===a)n=i.match(/^"([0-9A-F]{1,6}) ?/),n&&(o=String.fromCodePoint(parseInt(n[1],16)));else if("`"===a){if(n=i.match(/^`(?:(\\\S)|(.))/u),n)if(n[2])o=n[2];else{t.i+=2;const e=[...t.GetCS()];if(e.length>1)throw new u("InvalidAlphanumeric","Invalid alphanumeric constant for %1",t.currentCS);o=e[0],n=[""]}}else n=i.match(/^([0-9]{1,7}) ?/),n&&(o=String.fromCodePoint(parseInt(n[1])));if(!o)throw new u("MissingNumber","Missing numeric constant for %1",t.currentCS);t.i+=n[0].length,o>="0"&&o<="9"?t.Push(t.create("token","mn",{},o)):o.match(/[A-Za-z]/)?t.Push(t.create("token","mi",{},o)):x(t,o)}};new d("unicode",{unicode:b.Unicode,U:b.RawUnicode,char:b.Char});const w=s.create("unicode",{[i.HANDLER]:{[r.MACRO]:["unicode"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/unicode","4.1.3","tex-extension"),a({_:{input:{tex:{unicode:{UnicodeConfiguration:e}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})}};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{UnitsConfiguration:()=>f,UnitsMethods:()=>p});const n=("undefined"!=typeof window?window:t.g).MathJax._.components.global,i=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),a=(n.MathJax,MathJax._.input.tex.HandlerTypes),o=a.ConfigurationType,r=a.HandlerType,s=MathJax._.input.tex.Configuration,c=s.Configuration,u=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.TexParser.default),l=MathJax._.input.tex.TokenMap,g=(l.parseResult,l.AbstractTokenMap,l.RegExpMap,l.AbstractParseMap,l.CharacterMap,l.DelimiterMap,l.MacroMap,l.CommandMap),p=(l.EnvironmentMap,{Unit(t,e){const n=t.GetBrackets(e);let i=`\\mathrm{${t.GetArgument(e)}}`;n&&(i=n+(t.options.units.loose?"~":"\\,")+i),t.string=i+t.string.slice(t.i),t.i=0},UnitFrac(t,e){const n=t.GetBrackets(e);let i=`\\nicefrac[\\mathrm]{${t.GetArgument(e)}}{${t.GetArgument(e)}}`;n&&(i=n+(t.options.units.loose?"~":"\\,")+i),t.string=i+t.string.slice(t.i),t.i=0},NiceFrac(t,e){const n=t.GetBrackets(e,"\\mathrm"),i=t.GetArgument(e),a=t.GetArgument(e),o=new u(`${n}{${i}}`,Object.assign({},t.stack.env),t.configuration).mml(),r=new u(`${n}{${a}}`,Object.assign({},t.stack.env),t.configuration).mml(),s=t.options.units.ugly?{}:{bevelled:!0},c=t.create("node","mfrac",[o,r],s);t.Push(c)}});new g("units",{units:p.Unit,unitfrac:p.UnitFrac,nicefrac:p.NiceFrac});const f=c.create("units",{[o.HANDLER]:{[r.MACRO]:["units"]},[o.OPTIONS]:{units:{loose:!1,ugly:!1}}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/units","4.1.3","tex-extension"),i({_:{input:{tex:{units:{UnitsConfiguration:e}}}}})})();