daily-question 2.1.1 → 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 (95) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +25 -20
  3. package/client.js +92 -45
  4. package/lib/generate.js +51 -11
  5. package/lib/generation-history.js +8 -0
  6. package/lib/paper-types.js +47 -0
  7. package/lib/reference-reader.js +11 -8
  8. package/lib/references.js +72 -26
  9. package/lib/research.js +22 -13
  10. package/lib/routes.js +15 -11
  11. package/lib/service.js +1 -0
  12. package/package.json +2 -2
  13. package/vendor/mathjax/a11y/assistive-mml.js +1 -0
  14. package/vendor/mathjax/input/tex/extensions/action.js +1 -0
  15. package/vendor/mathjax/input/tex/extensions/ams.js +1 -0
  16. package/vendor/mathjax/input/tex/extensions/amscd.js +1 -0
  17. package/vendor/mathjax/input/tex/extensions/autoload.js +1 -0
  18. package/vendor/mathjax/input/tex/extensions/bbm.js +1 -0
  19. package/vendor/mathjax/input/tex/extensions/bboldx.js +1 -0
  20. package/vendor/mathjax/input/tex/extensions/bbox.js +1 -0
  21. package/vendor/mathjax/input/tex/extensions/begingroup.js +1 -0
  22. package/vendor/mathjax/input/tex/extensions/boldsymbol.js +1 -0
  23. package/vendor/mathjax/input/tex/extensions/braket.js +1 -0
  24. package/vendor/mathjax/input/tex/extensions/bussproofs.js +1 -0
  25. package/vendor/mathjax/input/tex/extensions/cancel.js +1 -0
  26. package/vendor/mathjax/input/tex/extensions/cases.js +1 -0
  27. package/vendor/mathjax/input/tex/extensions/centernot.js +1 -0
  28. package/vendor/mathjax/input/tex/extensions/color.js +1 -0
  29. package/vendor/mathjax/input/tex/extensions/colortbl.js +1 -0
  30. package/vendor/mathjax/input/tex/extensions/colorv2.js +1 -0
  31. package/vendor/mathjax/input/tex/extensions/configmacros.js +1 -0
  32. package/vendor/mathjax/input/tex/extensions/dsfont.js +1 -0
  33. package/vendor/mathjax/input/tex/extensions/empheq.js +1 -0
  34. package/vendor/mathjax/input/tex/extensions/enclose.js +1 -0
  35. package/vendor/mathjax/input/tex/extensions/extpfeil.js +1 -0
  36. package/vendor/mathjax/input/tex/extensions/fontsizev3.js +1 -0
  37. package/vendor/mathjax/input/tex/extensions/gensymb.js +1 -0
  38. package/vendor/mathjax/input/tex/extensions/html.js +1 -0
  39. package/vendor/mathjax/input/tex/extensions/mathtools.js +1 -0
  40. package/vendor/mathjax/input/tex/extensions/mhchem.js +34 -0
  41. package/vendor/mathjax/input/tex/extensions/newcommand.js +1 -0
  42. package/vendor/mathjax/input/tex/extensions/noerrors.js +1 -0
  43. package/vendor/mathjax/input/tex/extensions/noundefined.js +1 -0
  44. package/vendor/mathjax/input/tex/extensions/physics.js +1 -0
  45. package/vendor/mathjax/input/tex/extensions/require.js +1 -0
  46. package/vendor/mathjax/input/tex/extensions/setoptions.js +1 -0
  47. package/vendor/mathjax/input/tex/extensions/tagformat.js +1 -0
  48. package/vendor/mathjax/input/tex/extensions/texhtml.js +1 -0
  49. package/vendor/mathjax/input/tex/extensions/textcomp.js +1 -0
  50. package/vendor/mathjax/input/tex/extensions/textmacros.js +1 -0
  51. package/vendor/mathjax/input/tex/extensions/unicode.js +1 -0
  52. package/vendor/mathjax/input/tex/extensions/units.js +1 -0
  53. package/vendor/mathjax/input/tex/extensions/upgreek.js +1 -0
  54. package/vendor/mathjax/input/tex/extensions/verb.js +1 -0
  55. package/vendor/mathjax/newcm/svg/dynamic/PUA.js +1 -0
  56. package/vendor/mathjax/newcm/svg/dynamic/accents-b-i.js +1 -0
  57. package/vendor/mathjax/newcm/svg/dynamic/accents.js +1 -0
  58. package/vendor/mathjax/newcm/svg/dynamic/arabic.js +1 -0
  59. package/vendor/mathjax/newcm/svg/dynamic/arrows.js +1 -0
  60. package/vendor/mathjax/newcm/svg/dynamic/braille-d.js +1 -0
  61. package/vendor/mathjax/newcm/svg/dynamic/braille.js +1 -0
  62. package/vendor/mathjax/newcm/svg/dynamic/calligraphic.js +1 -0
  63. package/vendor/mathjax/newcm/svg/dynamic/cherokee.js +1 -0
  64. package/vendor/mathjax/newcm/svg/dynamic/cyrillic-ss.js +1 -0
  65. package/vendor/mathjax/newcm/svg/dynamic/cyrillic.js +1 -0
  66. package/vendor/mathjax/newcm/svg/dynamic/devanagari.js +1 -0
  67. package/vendor/mathjax/newcm/svg/dynamic/double-struck.js +1 -0
  68. package/vendor/mathjax/newcm/svg/dynamic/fraktur.js +1 -0
  69. package/vendor/mathjax/newcm/svg/dynamic/greek-ss.js +1 -0
  70. package/vendor/mathjax/newcm/svg/dynamic/greek.js +1 -0
  71. package/vendor/mathjax/newcm/svg/dynamic/hebrew.js +1 -0
  72. package/vendor/mathjax/newcm/svg/dynamic/latin-b.js +1 -0
  73. package/vendor/mathjax/newcm/svg/dynamic/latin-bi.js +1 -0
  74. package/vendor/mathjax/newcm/svg/dynamic/latin-i.js +1 -0
  75. package/vendor/mathjax/newcm/svg/dynamic/latin.js +1 -0
  76. package/vendor/mathjax/newcm/svg/dynamic/marrows.js +1 -0
  77. package/vendor/mathjax/newcm/svg/dynamic/math.js +1 -0
  78. package/vendor/mathjax/newcm/svg/dynamic/monospace-ex.js +1 -0
  79. package/vendor/mathjax/newcm/svg/dynamic/monospace-l.js +1 -0
  80. package/vendor/mathjax/newcm/svg/dynamic/monospace.js +1 -0
  81. package/vendor/mathjax/newcm/svg/dynamic/mshapes.js +1 -0
  82. package/vendor/mathjax/newcm/svg/dynamic/phonetics-ss.js +1 -0
  83. package/vendor/mathjax/newcm/svg/dynamic/phonetics.js +1 -0
  84. package/vendor/mathjax/newcm/svg/dynamic/sans-serif-b.js +1 -0
  85. package/vendor/mathjax/newcm/svg/dynamic/sans-serif-bi.js +1 -0
  86. package/vendor/mathjax/newcm/svg/dynamic/sans-serif-ex.js +1 -0
  87. package/vendor/mathjax/newcm/svg/dynamic/sans-serif-i.js +1 -0
  88. package/vendor/mathjax/newcm/svg/dynamic/sans-serif-r.js +1 -0
  89. package/vendor/mathjax/newcm/svg/dynamic/sans-serif.js +1 -0
  90. package/vendor/mathjax/newcm/svg/dynamic/script.js +1 -0
  91. package/vendor/mathjax/newcm/svg/dynamic/shapes.js +1 -0
  92. package/vendor/mathjax/newcm/svg/dynamic/symbols-b-i.js +1 -0
  93. package/vendor/mathjax/newcm/svg/dynamic/symbols.js +1 -0
  94. package/vendor/mathjax/newcm/svg/dynamic/variants.js +1 -0
  95. package/vendor/mathjax/tex-svg.js +1 -34
@@ -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}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(a,t)=>{for(var p in t)e.o(t,p)&&!e.o(a,p)&&Object.defineProperty(a,p,{enumerable:!0,get:t[p]})}};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,a)=>Object.prototype.hasOwnProperty.call(e,a),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};e.r(a),e.d(a,{UpgreekConfiguration:()=>l});const t=("undefined"!=typeof window?window:e.g).MathJax._.components.global,p=(t.GLOBAL,t.isObject,t.combineConfig,t.combineDefaults,t.combineWithMathJax),n=(t.MathJax,MathJax._.input.tex.HandlerTypes),o=n.ConfigurationType,i=n.HandlerType,r=MathJax._.input.tex.Configuration,u=r.Configuration,s=(r.ConfigurationHandler,r.ParserConfiguration,MathJax._.input.tex.TokenMap),c=(s.parseResult,s.AbstractTokenMap,s.RegExpMap,s.AbstractParseMap,s.CharacterMap),g=(s.DelimiterMap,s.MacroMap,s.CommandMap,s.EnvironmentMap,MathJax._.input.tex.TexConstants.TexConstant);new c("upgreek",function(e,a){const t=a.attributes||{};t.mathvariant=g.Variant.NORMAL;const p=e.create("token","mi",t,a.char);e.Push(p)},{upalpha:"\u03b1",upbeta:"\u03b2",upgamma:"\u03b3",updelta:"\u03b4",upepsilon:"\u03f5",upzeta:"\u03b6",upeta:"\u03b7",uptheta:"\u03b8",upiota:"\u03b9",upkappa:"\u03ba",uplambda:"\u03bb",upmu:"\u03bc",upnu:"\u03bd",upxi:"\u03be",upomicron:"\u03bf",uppi:"\u03c0",uprho:"\u03c1",upsigma:"\u03c3",uptau:"\u03c4",upupsilon:"\u03c5",upphi:"\u03d5",upchi:"\u03c7",uppsi:"\u03c8",upomega:"\u03c9",upvarepsilon:"\u03b5",upvartheta:"\u03d1",upvarpi:"\u03d6",upvarrho:"\u03f1",upvarsigma:"\u03c2",upvarphi:"\u03c6",Upgamma:"\u0393",Updelta:"\u0394",Uptheta:"\u0398",Uplambda:"\u039b",Upxi:"\u039e",Uppi:"\u03a0",Upsigma:"\u03a3",Upupsilon:"\u03a5",Upphi:"\u03a6",Uppsi:"\u03a8",Upomega:"\u03a9"});const l=u.create("upgreek",{[o.HANDLER]:{[i.MACRO]:["upgreek"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/upgreek","4.1.3","tex-extension"),p({_:{input:{tex:{upgreek:{UpgreekConfiguration:a}}}}})})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[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,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,{VerbConfiguration:()=>b});const n=("undefined"!=typeof window?window:e.g).MathJax._.components.global,r=(n.GLOBAL,n.isObject,n.combineConfig,n.combineDefaults,n.combineWithMathJax),a=(n.MathJax,MathJax._.input.tex.HandlerTypes),i=a.ConfigurationType,o=a.HandlerType,s=MathJax._.input.tex.Configuration,c=s.Configuration,l=(s.ConfigurationHandler,s.ParserConfiguration,MathJax._.input.tex.TexConstants.TexConstant),u=MathJax._.input.tex.TokenMap,g=(u.parseResult,u.AbstractTokenMap,u.RegExpMap,u.AbstractParseMap,u.CharacterMap,u.DelimiterMap,u.MacroMap,u.CommandMap),p=(u.EnvironmentMap,MathJax._.input.tex.TexError.default);new g("verb",{verb:{Verb(e,t){const n=e.GetNext(),r=++e.i;if(""===n)throw new p("MissingArgFor","Missing argument for %1",t);for(;e.i<e.string.length&&e.string.charAt(e.i)!==n;)e.i++;if(e.i===e.string.length)throw new p("NoClosingDelim","Can't find closing delimiter for %1",e.currentCS);const a=e.string.slice(r,e.i).replace(/ /g,"\xa0");e.i++,e.Push(e.create("token","mtext",{mathvariant:l.Variant.MONOSPACE},a))}}.Verb});const b=c.create("verb",{[i.HANDLER]:{[o.MACRO]:["verb"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/verb","4.1.3","tex-extension"),r({_:{input:{tex:{verb:{VerbConfiguration:t}}}}})})();