=m?p=0:(-1===p||m component higher in the tree to provide a loading indicator or placeholder to display."+ut(c))}Po=!0,f=io(f,c),u=s;do{switch(u.tag){case 3:u.effectTag|=2048,u.expirationTime=l,Za(u,l=xo(u,f,l));break e;case 1:if(p=f,h=u.type,c=u.stateNode,0==(64&u.effectTag)&&("function"==typeof h.getDerivedStateFromError||null!==c&&"function"==typeof c.componentDidCatch&&(null===Lo||!Lo.has(c)))){u.effectTag|=2048,u.expirationTime=l,Za(u,l=ko(u,p,l));break e}}u=u.return}while(null!==u)}Eo=Vo(a);continue}i=!0,Pl(t)}}break}if(Co=!1,To.current=n,Ia=Ra=Da=null,Ki(),i)zo=null,e.finishedWork=null;else if(null!==Eo)e.finishedWork=null;else{if(null===(n=e.current.alternate)&&o("281"),zo=null,Po){if(i=e.latestPendingTime,a=e.latestSuspendedTime,l=e.latestPingedTime,0!==i&&it?0:t)):(e.pendingCommitExpirationTime=r,e.finishedWork=n)}}function Yo(e,t){for(var n=e.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Lo||!Lo.has(r)))return Ka(n,e=ko(n,e=io(t,e),1073741823)),void Zo(n,1073741823);break;case 3:return Ka(n,e=xo(n,e=io(t,e),1073741823)),void Zo(n,1073741823)}n=n.return}3===e.tag&&(Ka(e,n=xo(e,n=io(t,e),1073741823)),Zo(e,1073741823))}function Xo(e,t){var n=a.unstable_getCurrentPriorityLevel(),r=void 0;if(0==(1&t.mode))r=1073741823;else if(Co&&!jo)r=No;else{switch(n){case a.unstable_ImmediatePriority:r=1073741823;break;case a.unstable_UserBlockingPriority:r=1073741822-10*(1+((1073741822-e+15)/10|0));break;case a.unstable_NormalPriority:r=1073741822-25*(1+((1073741822-e+500)/25|0));break;case a.unstable_LowPriority:case a.unstable_IdlePriority:r=1;break;default:o("313")}null!==zo&&r===No&&--r}return n===a.unstable_UserBlockingPriority&&(0===ll||r=r&&(e.didError=!1,(0===(t=e.latestPingedTime)||t>n)&&(e.latestPingedTime=n),ni(n,e),0!==(n=e.expirationTime)&&Sl(e,n)))}function Ko(e,t){e.expirationTimeNo&&qo(),Jr(e,t),Co&&!jo&&zo===e||Sl(e,e.expirationTime),gl>vl&&(gl=0,o("185")))}function Jo(e,t,n,r,i){return a.unstable_runWithPriority(a.unstable_ImmediatePriority,function(){return e(t,n,r,i)})}var el=null,tl=null,nl=0,rl=void 0,il=!1,al=null,ol=0,ll=0,ul=!1,sl=null,cl=!1,fl=!1,dl=null,pl=a.unstable_now(),hl=1073741822-(pl/10|0),ml=hl,vl=50,gl=0,bl=null;function yl(){hl=1073741822-((a.unstable_now()-pl)/10|0)}function wl(e,t){if(0!==nl){if(te.expirationTime&&(e.expirationTime=t),il||(cl?fl&&(al=e,ol=1073741823,Nl(e,1073741823,!1)):1073741823===t?El(1073741823,!1):wl(e,t))}function Tl(){var e=0,t=null;if(null!==tl)for(var n=tl,r=el;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===tl)&&o("244"),r===r.nextScheduledRoot){el=tl=r.nextScheduledRoot=null;break}if(r===el)el=i=r.nextScheduledRoot,tl.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===tl){(tl=n).nextScheduledRoot=el,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>e&&(e=i,t=r),r===tl)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}al=t,ol=e}var _l=!1;function Ml(){return!!_l||!!a.unstable_shouldYield()&&(_l=!0)}function Cl(){try{if(!Ml()&&null!==el){yl();var e=el;do{var t=e.expirationTime;0!==t&&hl<=t&&(e.nextExpirationTimeToWorkOn=hl),e=e.nextScheduledRoot}while(e!==el)}El(0,!0)}finally{_l=!1}}function El(e,t){if(Tl(),t)for(yl(),ml=hl;null!==al&&0!==ol&&e<=ol&&!(_l&&hl>ol);)Nl(al,ol,hl>ol),Tl(),yl(),ml=hl;else for(;null!==al&&0!==ol&&e<=ol;)Nl(al,ol,!1),Tl();if(t&&(nl=0,rl=null),0!==ol&&wl(al,ol),gl=0,bl=null,null!==dl)for(e=dl,dl=null,t=0;t=n&&(null===dl?dl=[r]:dl.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===bl?gl++:(bl=e,gl=0),a.unstable_runWithPriority(a.unstable_ImmediatePriority,function(){$o(e,t)})}function Pl(e){null===al&&o("246"),al.expirationTime=0,ul||(ul=!0,sl=e)}function Al(e,t){var n=cl;cl=!0;try{return e(t)}finally{(cl=n)||il||El(1073741823,!1)}}function jl(e,t){if(cl&&!fl){fl=!0;try{return e(t)}finally{fl=!1}}return e(t)}function Dl(e,t,n){cl||il||0===ll||(El(ll,!1),ll=0);var r=cl;cl=!0;try{return a.unstable_runWithPriority(a.unstable_UserBlockingPriority,function(){return e(t,n)})}finally{(cl=r)||il||El(1073741823,!1)}}function Rl(e,t,n,r,i){var a=t.current;e:if(n){t:{2===tn(n=n._reactInternalFiber)&&1===n.tag||o("170");var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(jr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);o("171"),l=void 0}if(1===n.tag){var u=n.type;if(jr(u)){n=Lr(n,u,l);break e}}n=l}else n=zr;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=Xa(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),Ho(),Ka(a,i),Zo(a,r),r}function Il(e,t,n,r){var i=t.current;return Rl(e,t,n,i=Xo(kl(),i),r)}function Ll(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ql(e){var t=1073741822-25*(1+((1073741822-kl()+500)/25|0));t>=Mo&&(t=Mo-1),this._expirationTime=Mo=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Bl(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Fl(e,t,n){e={current:t=Vr(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=t.stateNode=e}function Ul(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Hl(e,t,n,r,i){var a=n._reactRootContainer;if(a){if("function"==typeof i){var o=i;i=function(){var e=Ll(a._internalRoot);o.call(e)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,t,i):a.render(t,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Fl(e,!1,t)}(n,r),"function"==typeof i){var l=i;i=function(){var e=Ll(a._internalRoot);l.call(e)}}jl(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,t,i):a.render(t,i)})}return Ll(a._internalRoot)}function $l(e,t){var n=2=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Pe=Al,Ae=Dl,je=function(){il||0===ll||(El(ll,!1),ll=0)};var Vl={createPortal:$l,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?o("188"):o("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return Ul(t)||o("200"),Hl(null,e,t,!0,n)},render:function(e,t,n){return Ul(t)||o("200"),Hl(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return Ul(n)||o("200"),(null==e||void 0===e._reactInternalFiber)&&o("38"),Hl(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Ul(e)||o("40"),!!e._reactRootContainer&&(jl(function(){Hl(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return $l.apply(void 0,arguments)},unstable_batchedUpdates:Al,unstable_interactiveUpdates:Dl,flushSync:function(e,t){il&&o("187");var n=cl;cl=!0;try{return Jo(e,t)}finally{cl=n,El(1073741823,!1)}},unstable_createRoot:function(e,t){return Ul(e)||o("299","unstable_createRoot"),new Fl(e,!0,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=cl;cl=!0;try{Jo(e)}finally{(cl=t)||il||El(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[R,I,L,z.injectEventPluginsByName,b,$,function(e){M(e,H)},Ne,Oe,En,O]}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Fr=Hr(function(e){return t.onCommitFiberRoot(n,e)}),Ur=Hr(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}})(i({},e,{overrideProps:null,currentDispatcherRef:$e.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:D,bundleType:0,version:"16.8.6",rendererPackageName:"react-dom"});var Wl={default:Vl},Gl=Wl&&Vl||Wl;e.exports=Gl.default||Gl},function(e,t,n){"use strict";e.exports=n(24)},function(e,t,n){"use strict";(function(e){
/** @license React v0.13.6
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(t,"__esModule",{value:!0});var n=null,r=!1,i=3,a=-1,o=-1,l=!1,u=!1;function s(){if(!l){var e=n.expirationTime;u?S():u=!0,k(d,e)}}function c(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var a=i,l=o;i=e,o=t;try{var u=r()}finally{i=a,o=l}if("function"==typeof u)if(u={callback:u,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=u,s()),(t=r.previous).next=r.previous=u,u.next=r,u.previous=t}}function f(){if(-1===a&&null!==n&&1===n.priorityLevel){l=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{l=!1,null!==n?s():u=!1}}}function d(e){l=!0;var i=r;r=e;try{if(e)for(;null!==n;){var a=t.unstable_now();if(!(n.expirationTime<=a))break;do{c()}while(null!==n&&n.expirationTime<=a)}else if(null!==n)do{c()}while(null!==n&&!T())}finally{l=!1,r=i,null!==n?s():u=!1,f()}}var p,h,m=Date,v="function"==typeof setTimeout?setTimeout:void 0,g="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,y="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(e){p=b(function(t){g(h),e(t)}),h=v(function(){y(p),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;t.unstable_now=function(){return x.now()}}else t.unstable_now=function(){return m.now()};var k,S,T,_=null;if("undefined"!=typeof window?_=window:void 0!==e&&(_=e),_&&_._schedMock){var M=_._schedMock;k=M[0],S=M[1],T=M[2],t.unstable_now=M[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var C=null,E=function(e){if(null!==C)try{C(e)}finally{C=null}};k=function(e){null!==C?setTimeout(k,0,e):(C=e,setTimeout(E,0,!1))},S=function(){C=null},T=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var z=null,N=!1,O=-1,P=!1,A=!1,j=0,D=33,R=33;T=function(){return j<=t.unstable_now()};var I=new MessageChannel,L=I.port2;I.port1.onmessage=function(){N=!1;var e=z,n=O;z=null,O=-1;var r=t.unstable_now(),i=!1;if(0>=j-r){if(!(-1!==n&&n<=r))return P||(P=!0,w(q)),z=e,void(O=n);i=!0}if(null!==e){A=!0;try{e(i)}finally{A=!1}}};var q=function(e){if(null!==z){w(q);var t=e-j+R;tt&&(t=8),R=tt?L.postMessage(void 0):P||(P=!0,w(q))},S=function(){z=null,N=!1,O=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=i,o=a;i=e,a=t.unstable_now();try{return n()}finally{i=r,a=o,f()}},t.unstable_next=function(e){switch(i){case 1:case 2:case 3:var n=3;break;default:n=i}var r=i,o=a;i=n,a=t.unstable_now();try{return e()}finally{i=r,a=o,f()}},t.unstable_scheduleCallback=function(e,r){var o=-1!==a?a:t.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=o+r.timeout;else switch(i){case 1:r=o+-1;break;case 2:r=o+250;break;case 5:r=o+1073741823;break;case 4:r=o+1e4;break;default:r=o+5e3}if(e={callback:e,priorityLevel:i,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,s();else{o=null;var l=n;do{if(l.expirationTime>r){o=l;break}l=l.next}while(l!==n);null===o?o=n:o===n&&(n=e,s()),(r=o.previous).next=o.previous=e,e.next=o,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=i;return function(){var r=i,o=a;i=n,a=t.unstable_now();try{return e.apply(this,arguments)}finally{i=r,a=o,f()}}},t.unstable_getCurrentPriorityLevel=function(){return i},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(26),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,a,o,l,u=1,s={},c=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){h(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){a.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(o="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(t){e.postMessage(o+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;nt&&(t=c.height),c.depth>n&&(n=c.depth),c.maxFontSize>r&&(r=c.maxFontSize)}}catch(e){a=!0,l=e}finally{try{!i&&s.return&&s.return()}finally{if(a)throw l}}e.height=t,e.depth=n,e.maxFontSize=r},y=function(e,t,n,r){var i=new l.a.span(e,t,n,r);return b(i),i},w=function(e,t,n){return x(e)+"-"+k(t,n)},x=function(e){var t="";switch(e){case"amsrm":t="AMS";break;case"textrm":t="Main";break;case"textsf":t="SansSerif";break;case"texttt":t="Typewriter";break;default:throw new Error("Invalid font provided: "+e)}return t},k=function(e,t){var n="";return"textbf"===e&&(n+="Bold"),"textit"===t&&(n+="Italic"),n||"Regular"},S={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},T={vec:["vec",.471,.714]};t.a={fontMap:S,makeSymbol:m,mathsym:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return n&&n.fontFamily&&"boldsymbol"===n.fontFamily&&h(e,"Main-Bold",t).metrics?m(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===s.a[t][e].font?m(e,"Main-Regular",t,n,r):m(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:y,makeLineSpan:function(e,t){var n=t.fontMetrics().defaultRuleThickness,r=f.a.ruleSpan(e,n,t);return r.height=n,r.style.height=5*r.height+"em",r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){var i=new l.a.anchor(e,t,n,r);return b(i),i},makeFragment:function(e){var t=new l.a.documentFragment(e);return b(t),t},makeVList:function(e,t){var n=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a";for(var n=0;n"}},{key:"toText",value:function(){return"mspace"===this.type?"0.16667em"===this.attributes.width?" ":" ":this.children.map(function(e){return e.toText()}).join("")}}]),e}(),f=function(){function e(t){o()(this,e),this.text=t}return u()(e,[{key:"toNode",value:function(){return document.createTextNode(this.text)}},{key:"toMarkup",value:function(){return s.a.escape(this.text)}},{key:"toText",value:function(){return this.text}}]),e}();t.a={MathNode:c,TextNode:f}},function(e,t,n){"use strict";n.d(t,"e",function(){return f}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return m}),n.d(t,"b",function(){return v}),t.c=function(e,t,n){var i=m(e,n),o=new a.a.MathNode("mrow",i),l=new a.a.MathNode("annotation",[new a.a.TextNode(t)]);l.setAttribute("encoding","application/x-tex");var u=new a.a.MathNode("semantics",[o,l]),s=new a.a.MathNode("math",[u]);return r.a.makeSpan(["katex-mathml"],[s])};var r=n(0),i=n(30),a=n(1),o=n(6),l=n(9),u=n(28),s=n(5),c=n(13),f=function(e,t){return u.a[t][e]&&u.a[t][e].replace&&(e=u.a[t][e].replace),new a.a.TextNode(e)},d=function(e,t){var n=t.fontFamily;if(!n)return null;var a=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";var o=e.value;if(s.a.contains(["\\imath","\\jmath"],o))return null;u.a[a][o]&&u.a[a][o].replace&&(o=u.a[a][o].replace);var l=r.a.fontMap[n].fontName;return i.a.getCharacterMetrics(o,l,a)?r.a.fontMap[n].variant:null},p={},h={mi:"italic",mn:"normal",mtext:"normal"};p.mathord=function(e,t){var n=new a.a.MathNode("mi",[f(e.value,e.mode)]),r=d(e,t)||"italic";return r!==h[n.type]&&n.setAttribute("mathvariant",r),n},p.textord=function(e,t){var n=f(e.value,e.mode),r=d(e,t)||"normal",i=void 0;return i="text"===e.mode?new a.a.MathNode("mtext",[n]):/[0-9]/.test(e.value)?new a.a.MathNode("mn",[n]):"\\prime"===e.value?new a.a.MathNode("mo",[n]):new a.a.MathNode("mi",[n]),r!==h[i.type]&&i.setAttribute("mathvariant",r),i},p.bin=function(e,t){var n=new a.a.MathNode("mo",[f(e.value,e.mode)]),r=d(e,t);return"bold-italic"===r&&n.setAttribute("mathvariant",r),n},p.rel=function(e){return new a.a.MathNode("mo",[f(e.value,e.mode)])},p.open=function(e){return new a.a.MathNode("mo",[f(e.value,e.mode)])},p.close=function(e){return new a.a.MathNode("mo",[f(e.value,e.mode)])},p.inner=function(e){return new a.a.MathNode("mo",[f(e.value,e.mode)])},p.punct=function(e){var t=new a.a.MathNode("mo",[f(e.value,e.mode)]);return t.setAttribute("separator","true"),t},p.ordgroup=function(e,t){var n=m(e.value,t);return new a.a.MathNode("mrow",n)},p.supsub=function(e,t){var n=!1,r=void 0;e.value.base&&"horizBrace"===e.value.base.value.type&&!!e.value.sup===e.value.base.value.isOver&&(n=!0,r=e.value.base.value.isOver);var i=[v(e.value.base,t,!0)];e.value.sub&&i.push(v(e.value.sub,t,!0)),e.value.sup&&i.push(v(e.value.sup,t,!0));var o=void 0;if(n)o=r?"mover":"munder";else if(e.value.sub)if(e.value.sup){var u=e.value.base;o=u&&u.value.limits&&t.style===l.a.DISPLAY?"munderover":"msubsup"}else{var s=e.value.base;o=s&&s.value.limits&&t.style===l.a.DISPLAY?"munder":"msub"}else{var c=e.value.base;o=c&&c.value.limits&&t.style===l.a.DISPLAY?"mover":"msup"}return new a.a.MathNode(o,i)},p.spacing=function(e){var t=void 0;return"\\ "===e.value||"\\space"===e.value||" "===e.value||"~"===e.value?t=new a.a.MathNode("mtext",[new a.a.TextNode(" ")]):(t=new a.a.MathNode("mspace")).setAttribute("width",r.a.spacingFunctions[e.value].size),t},p.horizBrace=function(e,t){var n=c.a.mathMLnode(e.value.label);return new a.a.MathNode(e.value.isOver?"mover":"munder",[v(e.value.base,t),n])},p.xArrow=function(e,t){var n=c.a.mathMLnode(e.value.label),r=void 0,i=void 0;if(e.value.body){var o=v(e.value.body,t);e.value.below?(i=v(e.value.below,t),r=new a.a.MathNode("munderover",[n,i,o])):r=new a.a.MathNode("mover",[n,o])}else e.value.below?(i=v(e.value.below,t),r=new a.a.MathNode("munder",[n,i])):r=new a.a.MathNode("mover",[n]);return r},p.mclass=function(e,t){var n=m(e.value.value,t);return new a.a.MathNode("mstyle",n)},p.raisebox=function(e,t){var n=new a.a.MathNode("mpadded",[v(e.value.body,t)]),r=e.value.dy.value.number+e.value.dy.value.unit;return n.setAttribute("voffset",r),n};var m=function(e,t){for(var n=[],r=0;r2&&void 0!==arguments[2]&&arguments[2];if(!e)return new a.a.MathNode("mrow");if(p[e.type]){var r=p[e.type](e,t);return n&&"mrow"===r.type&&1===r.children.length?r.children[0]:r}throw new o.a("Got group of unknown type: '"+e.type+"'")}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),t.b=function(e){for(var t=e.type,n=e.names,o=e.props,l=e.handler,u=e.htmlBuilder,s=e.mathmlBuilder,c={numArgs:o.numArgs,argTypes:o.argTypes,greediness:void 0===o.greediness?1:o.greediness,allowedInText:!!o.allowedInText,allowedInMath:void 0===o.allowedInMath||o.allowedInMath,numOptionalArgs:o.numOptionalArgs||0,infix:!!o.infix,handler:l},f=0;f3&&void 0!==arguments[3]?arguments[3]:[null,null],i=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:"right";if((t instanceof c.a.documentFragment||t instanceof c.a.anchor)&&t.children.length){if("right"===n)return e(t.children[t.children.length-1]);if("left"===n)return e(t.children[0])}return t},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";return e?(e=w(e,t),d.a.contains(["mord","mop","mbin","mrel","mopen","mclose","mpunct","minner"],e.classes[0])?e.classes[0]:null):null},k=function(e){return e=w(e,"left"),d.a.contains(e.classes,"mtight")},S=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return m(t.concat(n))},T={mathord:function(e,t){return s.a.makeOrd(e,t,"mathord")},textord:function(e,t){return s.a.makeOrd(e,t,"textord")},bin:function(e,t){return s.a.mathsym(e.value,e.mode,t,["mbin"])},rel:function(e,t){return s.a.mathsym(e.value,e.mode,t,["mrel"])},open:function(e,t){return s.a.mathsym(e.value,e.mode,t,["mopen"])},close:function(e,t){return s.a.mathsym(e.value,e.mode,t,["mclose"])},inner:function(e,t){return s.a.mathsym(e.value,e.mode,t,["minner"])},punct:function(e,t){return s.a.mathsym(e.value,e.mode,t,["mpunct"])},ordgroup:function(e,t){return m(["mord"],y(e.value,t,!0),t)}};T.supsub=function(e,t){if(function(e,t){if(e.value.base){var n=e.value.base;return"op"===n.type?n.value.limits&&(t.style.size===u.a.DISPLAY.size||n.value.alwaysHandleSupSub):"accent"===n.type?d.a.isCharacterBox(n.value.base):"horizBrace"===n.type?!e.value.sub===n.value.isOver:null}return!1}(e,t))return T[e.value.base.type](e,t);var n=_(e.value.base,t),r=void 0,i=void 0,a=t.fontMetrics(),o=void 0,l=0,f=0;e.value.sup&&(o=t.havingStyle(t.style.sup()),r=_(e.value.sup,o,t),d.a.isCharacterBox(e.value.base)||(l=n.height-o.fontMetrics().supDrop*o.sizeMultiplier/t.sizeMultiplier)),e.value.sub&&(o=t.havingStyle(t.style.sub()),i=_(e.value.sub,o,t),d.a.isCharacterBox(e.value.base)||(f=n.depth+o.fontMetrics().subDrop*o.sizeMultiplier/t.sizeMultiplier));var p=void 0;p=t.style===u.a.DISPLAY?a.sup1:t.style.cramped?a.sup3:a.sup2;var h=t.sizeMultiplier,v=.5/a.ptPerEm/h+"em",g=void 0;if(e.value.sup)if(e.value.sub){l=Math.max(l,p,r.depth+.25*a.xHeight),f=Math.max(f,a.sub2);var b=a.defaultRuleThickness;if(l-r.depth-(i.height-f)<4*b){f=4*b-(l-r.depth)+i.height;var y=.8*a.xHeight-(l-r.depth);y>0&&(l+=y,f-=y)}var w=[{type:"elem",elem:i,shift:f,marginRight:v},{type:"elem",elem:r,shift:-l,marginRight:v}];n instanceof c.a.symbolNode&&(w[0].marginLeft=-n.italic+"em"),g=s.a.makeVList({positionType:"individualShift",children:w},t)}else l=Math.max(l,p,r.depth+.25*a.xHeight),g=s.a.makeVList({positionType:"shift",positionData:-l,children:[{type:"elem",elem:r,marginRight:v}]},t);else{f=Math.max(f,a.sub1,i.height-.8*a.xHeight);var k=[{type:"elem",elem:i,marginRight:v}];n instanceof c.a.symbolNode&&(k[0].marginLeft=-n.italic+"em"),g=s.a.makeVList({positionType:"shift",positionData:f,children:k},t)}var S=x(n)||"mord";return m([S],[n,m(["msupsub"],[g])],t)},T.spacing=function(e,t){return"\\ "===e.value||"\\space"===e.value||" "===e.value||"~"===e.value?"text"===e.mode?s.a.makeOrd(e,t,"textord"):m(["mspace"],[s.a.mathsym(e.value,e.mode,t)],t):m(["mspace",s.a.spacingFunctions[e.value].className],[],t)},T.horizBrace=function(e,t){var n=t.style,r="supsub"===e.type,i=void 0,a=void 0;r&&(e.value.sup?(a=t.havingStyle(n.sup()),i=_(e.value.sup,a,t)):(a=t.havingStyle(n.sub()),i=_(e.value.sub,a,t)),e=e.value.base);var o=_(e.value.base,t.havingBaseStyle(u.a.DISPLAY)),l=p.a.svgSpan(e,t),c=void 0;if(e.value.isOver?(c=s.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:l}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(c=s.a.makeVList({positionType:"bottom",positionData:o.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var f=m(["mord",e.value.isOver?"mover":"munder"],[c],t);c=e.value.isOver?s.a.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:.2},{type:"elem",elem:i}]},t):s.a.makeVList({positionType:"bottom",positionData:f.depth+.2+i.height,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:f}]},t)}return m(["mord",e.value.isOver?"mover":"munder"],[c],t)},T.xArrow=function(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=_(e.value.body,r,t);i.classes.push("x-arrow-pad");var a=void 0;e.value.below&&(r=t.havingStyle(n.sub()),(a=_(e.value.below,r,t)).classes.push("x-arrow-pad"));var o=p.a.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;"\\xleftequilibrium"===e.value.label&&(u-=i.depth);var c=void 0;if(e.value.below){var f=-t.fontMetrics().axisHeight+a.height+.5*o.height+.111;c=s.a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:a,shift:f}]},t)}else c=s.a.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),m(["mrel","x-arrow"],[c],t)},T.mclass=function(e,t){var n=y(e.value.value,t,!0);return m([e.value.mclass],n,t)},T.raisebox=function(e,t){var n=T.sizing({value:{value:[{type:"text",value:{body:e.value.value,font:"mathrm"}}],size:6}},t),r=Object(f.a)(e.value.dy.value,t);return s.a.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)};var _=function(e,t,n){if(!e)return m();if(T[e.type]){var r=T[e.type](e,t);if(n&&t.size!==n.size){r=m(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}throw new l.a("Got group of unknown type: '"+e.type+"'")}},function(e,t,n){"use strict";var r=Array.prototype.indexOf,i=function(e,t){if(null==e)return-1;if(r&&e.indexOf===r)return e.indexOf(t);for(var n=e.length,i=0;i":">","<":"<",'"':""","'":"'"},l=/[&><"']/g;var u=void 0;if("undefined"!=typeof document){var s=document.createElement("span");u="textContent"in s?function(e,t){e.textContent=t}:function(e,t){e.innerText=t}}var c=function e(t){return!!t&&("ordgroup"===t.type?1===t.value.length?e(t.value[0]):t:"color"===t.type?1===t.value.value.length?e(t.value.value[0]):t:"font"===t.type?e(t.value.body):t)};t.a={contains:function(e,t){return-1!==i(e,t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(l,function(e){return o[e]})},hyphenate:function(e){return e.replace(a,"-$1").toLowerCase()},indexOf:i,setTextContent:u,clearNode:function(e){u(e,"")},getBaseElem:c,isCharacterBox:function(e){var t=c(e);return"mathord"===t.type||"textord"===t.type||"bin"===t.type||"rel"===t.type||"inner"===t.type||"open"===t.type||"close"===t.type||"punct"===t.type}}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),a=(n(14),n(27),function e(t,n){i()(this,e);var r="KaTeX parse error: "+t,a=void 0,o=n&&n.loc;if(o&&o.start<=o.end){var l=o.lexer.input;a=o.start;var u=o.end;a===l.length?r+=" at end of input: ":r+=" at position "+(a+1)+": ";var s=l.slice(a,u).replace(/[^]/g,"$&̲");r+=(a>15?"…"+l.slice(a-15,a):l.slice(0,a))+s+(u+15=2}}]),e}(),u=[new l(0,0,!1),new l(1,0,!0),new l(2,1,!1),new l(3,1,!0),new l(4,2,!1),new l(5,2,!0),new l(6,3,!1),new l(7,3,!0)],s=[4,5,4,5,6,7,6,7],c=[5,5,5,5,7,7,7,7],f=[2,3,4,5,6,7,6,7],d=[3,3,5,5,7,7,7,7],p=[1,1,3,3,5,5,7,7],h=[0,1,2,3,2,3,2,3];t.a={DISPLAY:u[0],TEXT:u[2],SCRIPT:u[4],SCRIPTSCRIPT:u[6]}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(73),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n=0;t--)e[t]||e.splice(t,1);return e.join(" ")},m=function(){function e(t,n,r,i){if(u()(this,e),this.classes=t||[],this.children=n||[],this.height=0,this.depth=0,this.maxFontSize=0,this.style=o()({},i),this.attributes={},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}}return c()(e,[{key:"setAttribute",value:function(e,t){this.attributes[e]=t}},{key:"tryCombine",value:function(e){return!1}},{key:"toNode",value:function(){var e=document.createElement("span");for(var t in e.className=h(this.classes),this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);for(var r=0;r";for(var i=0;i"}}]),e}(),v=function(){function e(t,n,r,i){u()(this,e),this.href=t,this.classes=n,this.children=r,this.height=0,this.depth=0,this.maxFontSize=0,this.style={},this.attributes={},i.style.isTight()&&this.classes.push("mtight");var a=i.getColor();a&&(this.style.color=a)}return c()(e,[{key:"setAttribute",value:function(e,t){this.attributes[e]=t}},{key:"tryCombine",value:function(e){return!1}},{key:"toNode",value:function(){var e=document.createElement("a");for(var t in e.setAttribute("href",this.href),this.classes.length&&(e.className=h(this.classes)),this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&e.setAttribute(n,this.attributes[n]);for(var r=0;r";var a=!0,o=!1,l=void 0;try{for(var u,s=i()(this.children);!(a=(u=s.next()).done);a=!0){e+=u.value.toMarkup()}}catch(e){o=!0,l=e}finally{try{!a&&s.return&&s.return()}finally{if(o)throw l}}return e+="