@project-sunbird/sunbird-questionset-editor-web-component-react 0.1.8 → 0.1.9
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.
- package/dist/assets/sunbird-quml-player.js +1 -1
- package/dist/index.js +3250 -3235
- package/package.json +2 -2
|
@@ -28,4 +28,4 @@ var SunbirdQumlPlayer=function(){"use strict";function e(e){return e&&e.__esModu
|
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the MIT license found in the
|
|
30
30
|
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/function ee(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var te=new Set,re={};function ne(e,t){ae(e,t),ae(e+"Capture",t)}function ae(e,t){for(re[e]=t,e=0;e<t.length;e++)te.add(t[e])}var ie=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),oe=Object.prototype.hasOwnProperty,se=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,le={},ue={};function ce(e,t,r,n,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new ce(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new ce(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new ce(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){de[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){de[e]=new ce(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){de[e]=new ce(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){de[e]=new ce(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){de[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var he=/[\-:]([a-z])/g;function pe(e){return e[1].toUpperCase()}function fe(e,t,r,n){var a=de.hasOwnProperty(t)?de[t]:null;(null!==a?0!==a.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,a,n)&&(r=null),n||null===a?function(e){return!!oe.call(ue,e)||!oe.call(le,e)&&(se.test(e)?ue[e]=!0:(le[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=null===r?3!==a.type&&"":r:(t=a.attributeName,n=a.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(a=a.type)||4===a&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(he,pe);de[t]=new ce(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(he,pe);de[t]=new ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(he,pe);de[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){de[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)}),de.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){de[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});var me=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ge=Symbol.for("react.element"),ve=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),be=Symbol.for("react.strict_mode"),we=Symbol.for("react.profiler"),xe=Symbol.for("react.provider"),Se=Symbol.for("react.context"),ke=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),Ce=Symbol.for("react.offscreen"),Oe=Symbol.iterator;function Ie(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Oe&&e[Oe]||e["@@iterator"])?e:null}var Re,Me=Object.assign;function Ae(e){if(void 0===Re)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Re=t&&t[1]||""}return"\n"+Re+e}var ze=!1;function De(e,t){if(!e||ze)return"";ze=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&"string"==typeof u.stack){for(var a=u.stack.split("\n"),i=n.stack.split("\n"),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||a[o]!==i[s]){var l="\n"+a[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{ze=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ae(e):""}function Le(e){switch(e.tag){case 5:return Ae(e.type);case 16:return Ae("Lazy");case 13:return Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 2:case 15:return e=De(e.type,!1);case 11:return e=De(e.type.render,!1);case 1:return e=De(e.type,!0);default:return""}}function Pe(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ye:return"Fragment";case ve:return"Portal";case we:return"Profiler";case be:return"StrictMode";case Ee:return"Suspense";case Te:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Se:return(e.displayName||"Context")+".Consumer";case xe:return(e._context.displayName||"Context")+".Provider";case ke:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return null!==(t=e.displayName||null)?t:Pe(e.type)||"Memo";case Ne:t=e._payload,e=e._init;try{return Pe(e(t))}catch(r){}}return null}function je(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pe(t);case 8:return t===be?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Be(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function qe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ue(e){e._valueTracker||(e._valueTracker=function(e){var t=qe(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=qe(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Fe(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ve(e,t){var r=t.checked;return Me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function We(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Be(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $e(e,t){null!=(t=t.checked)&&fe(e,"checked",t,!1)}function Ge(e,t){$e(e,t);var r=Be(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Qe(e,t.type,r):t.hasOwnProperty("defaultValue")&&Qe(e,t.type,Be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ye(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Qe(e,t,r){"number"===t&&Fe(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ke=Array.isArray;function Xe(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Be(r),t=null,a=0;a<e.length;a++){if(e[a].value===r)return e[a].selected=!0,void(n&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Ze(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ee(91));return Me({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Je(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(ee(92));if(Ke(r)){if(1<r.length)throw Error(ee(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:Be(r)}}function et(e,t){var r=Be(t.value),n=Be(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function tt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function rt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?rt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var at,it,ot=(it=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((at=at||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=at.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction(function(){return it(e,t)})}:it);function st(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var lt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ut=["Webkit","ms","Moz","O"];function ct(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||lt.hasOwnProperty(e)&<[e]?(""+t).trim():t+"px"}function dt(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),a=ct(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}Object.keys(lt).forEach(function(e){ut.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lt[t]=lt[e]})});var ht=Me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pt(e,t){if(t){if(ht[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ee(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ee(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ee(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ee(62))}}function ft(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mt=null;function gt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var vt=null,yt=null,bt=null;function wt(e){if(e=fi(e)){if("function"!=typeof vt)throw Error(ee(280));var t=e.stateNode;t&&(t=gi(t),vt(e.stateNode,e.type,t))}}function xt(e){yt?bt?bt.push(e):bt=[e]:yt=e}function St(){if(yt){var e=yt,t=bt;if(bt=yt=null,wt(e),t)for(e=0;e<t.length;e++)wt(t[e])}}function kt(e,t){return e(t)}function Et(){}var Tt=!1;function _t(e,t,r){if(Tt)return e(t,r);Tt=!0;try{return kt(e,t,r)}finally{Tt=!1,(null!==yt||null!==bt)&&(Et(),St())}}function Nt(e,t){var r=e.stateNode;if(null===r)return null;var n=gi(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(ee(231,t,typeof r));return r}var Ct=!1;if(ie)try{var Ot={};Object.defineProperty(Ot,"passive",{get:function(){Ct=!0}}),window.addEventListener("test",Ot,Ot),window.removeEventListener("test",Ot,Ot)}catch(it){Ct=!1}function It(e,t,r,n,a,i,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var Rt=!1,Mt=null,At=!1,zt=null,Dt={onError:function(e){Rt=!0,Mt=e}};function Lt(e,t,r,n,a,i,o,s,l){Rt=!1,Mt=null,It.apply(Dt,arguments)}function Pt(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function jt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Bt(e){if(Pt(e)!==e)throw Error(ee(188))}function qt(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Pt(e)))throw Error(ee(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(n=a.return)){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return Bt(a),e;if(i===n)return Bt(a),t;i=i.sibling}throw Error(ee(188))}if(r.return!==n.return)r=a,n=i;else{for(var o=!1,s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o)throw Error(ee(189))}}if(r.alternate!==n)throw Error(ee(190))}if(3!==r.tag)throw Error(ee(188));return r.stateNode.current===r?e:t}(e))?Ut(e):null}function Ut(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ut(e);if(null!==t)return t;e=e.sibling}return null}var Ht=J.unstable_scheduleCallback,Ft=J.unstable_cancelCallback,Vt=J.unstable_shouldYield,Wt=J.unstable_requestPaint,$t=J.unstable_now,Gt=J.unstable_getCurrentPriorityLevel,Yt=J.unstable_ImmediatePriority,Qt=J.unstable_UserBlockingPriority,Kt=J.unstable_NormalPriority,Xt=J.unstable_LowPriority,Zt=J.unstable_IdlePriority,Jt=null,er=null;var tr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(rr(e)/nr|0)|0},rr=Math.log,nr=Math.LN2;var ar=64,ir=4194304;function or(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sr(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,o=268435455&r;if(0!==o){var s=o&~a;0!==s?n=or(s):0!==(i&=o)&&(n=or(i))}else 0!==(o=r&~a)?n=or(o):0!==i&&(n=or(i));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&a)&&((a=n&-n)>=(i=t&-t)||16===a&&4194240&i))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)a=1<<(r=31-tr(t)),n|=e[r],t&=~a;return n}function lr(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ur(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function cr(){var e=ar;return!(4194240&(ar<<=1))&&(ar=64),e}function dr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function hr(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-tr(t)]=r}function pr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-tr(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var fr=0;function mr(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var gr,vr,yr,br,wr,xr=!1,Sr=[],kr=null,Er=null,Tr=null,_r=new Map,Nr=new Map,Cr=[],Or="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ir(e,t){switch(e){case"focusin":case"focusout":kr=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":Tr=null;break;case"pointerover":case"pointerout":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nr.delete(t.pointerId)}}function Rr(e,t,r,n,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},null!==t&&(null!==(t=fi(t))&&vr(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Mr(e){var t=pi(e.target);if(null!==t){var r=Pt(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=jt(r)))return e.blockedOn=t,void wr(e.priority,function(){yr(r)})}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Ar(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Vr(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=fi(r))&&vr(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);mt=n,r.target.dispatchEvent(n),mt=null,t.shift()}return!0}function zr(e,t,r){Ar(e)&&r.delete(t)}function Dr(){xr=!1,null!==kr&&Ar(kr)&&(kr=null),null!==Er&&Ar(Er)&&(Er=null),null!==Tr&&Ar(Tr)&&(Tr=null),_r.forEach(zr),Nr.forEach(zr)}function Lr(e,t){e.blockedOn===t&&(e.blockedOn=null,xr||(xr=!0,J.unstable_scheduleCallback(J.unstable_NormalPriority,Dr)))}function Pr(e){function t(t){return Lr(t,e)}if(0<Sr.length){Lr(Sr[0],e);for(var r=1;r<Sr.length;r++){var n=Sr[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==kr&&Lr(kr,e),null!==Er&&Lr(Er,e),null!==Tr&&Lr(Tr,e),_r.forEach(t),Nr.forEach(t),r=0;r<Cr.length;r++)(n=Cr[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Cr.length&&null===(r=Cr[0]).blockedOn;)Mr(r),null===r.blockedOn&&Cr.shift()}var jr=me.ReactCurrentBatchConfig,Br=!0;function qr(e,t,r,n){var a=fr,i=jr.transition;jr.transition=null;try{fr=1,Hr(e,t,r,n)}finally{fr=a,jr.transition=i}}function Ur(e,t,r,n){var a=fr,i=jr.transition;jr.transition=null;try{fr=4,Hr(e,t,r,n)}finally{fr=a,jr.transition=i}}function Hr(e,t,r,n){if(Br){var a=Vr(e,t,r,n);if(null===a)Ba(e,t,n,Fr,r),Ir(e,n);else if(function(e,t,r,n,a){switch(t){case"focusin":return kr=Rr(kr,e,t,r,n,a),!0;case"dragenter":return Er=Rr(Er,e,t,r,n,a),!0;case"mouseover":return Tr=Rr(Tr,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return _r.set(i,Rr(_r.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Nr.set(i,Rr(Nr.get(i)||null,e,t,r,n,a)),!0}return!1}(a,e,t,r,n))n.stopPropagation();else if(Ir(e,n),4&t&&-1<Or.indexOf(e)){for(;null!==a;){var i=fi(a);if(null!==i&&gr(i),null===(i=Vr(e,t,r,n))&&Ba(e,t,n,Fr,r),i===a)break;a=i}null!==a&&n.stopPropagation()}else Ba(e,t,n,null,r)}}var Fr=null;function Vr(e,t,r,n){if(Fr=null,null!==(e=pi(e=gt(n))))if(null===(t=Pt(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=jt(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fr=e,null}function Wr(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Gt()){case Yt:return 1;case Qt:return 4;case Kt:case Xt:return 16;case Zt:return 536870912;default:return 16}default:return 16}}var $r=null,Gr=null,Yr=null;function Qr(){if(Yr)return Yr;var e,t,r=Gr,n=r.length,a="value"in $r?$r.value:$r.textContent,i=a.length;for(e=0;e<n&&r[e]===a[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===a[i-t];t++);return Yr=a.slice(e,1<t?1-t:void 0)}function Kr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Xr(){return!0}function Zr(){return!1}function Jr(e){function t(t,r,n,a,i){for(var o in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Xr:Zr,this.isPropagationStopped=Zr,this}return Me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Xr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Xr)},persist:function(){},isPersistent:Xr}),t}var en,tn,rn,nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},an=Jr(nn),on=Me({},nn,{view:0,detail:0}),sn=Jr(on),ln=Me({},on,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rn&&(rn&&"mousemove"===e.type?(en=e.screenX-rn.screenX,tn=e.screenY-rn.screenY):tn=en=0,rn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),un=Jr(ln),cn=Jr(Me({},ln,{dataTransfer:0})),dn=Jr(Me({},on,{relatedTarget:0})),hn=Jr(Me({},nn,{animationName:0,elapsedTime:0,pseudoElement:0})),pn=Me({},nn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fn=Jr(pn),mn=Jr(Me({},nn,{data:0})),gn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function wn(){return bn}var xn=Me({},on,{key:function(e){if(e.key){var t=gn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Kr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?vn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wn,charCode:function(e){return"keypress"===e.type?Kr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Kr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=Jr(xn),kn=Jr(Me({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=Jr(Me({},on,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wn})),Tn=Jr(Me({},nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=Me({},ln,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=Jr(_n),Cn=[9,13,27,32],On=ie&&"CompositionEvent"in window,In=null;ie&&"documentMode"in document&&(In=document.documentMode);var Rn=ie&&"TextEvent"in window&&!In,Mn=ie&&(!On||In&&8<In&&11>=In),An=String.fromCharCode(32),zn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pn=!1;var jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function qn(e,t,r,n){xt(n),0<(t=Ua(t,"onChange")).length&&(r=new an("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Un=null,Hn=null;function Fn(e){Aa(e,0)}function Vn(e){if(He(mi(e)))return e}function Wn(e,t){if("change"===e)return t}var $n=!1;if(ie){var Gn;if(ie){var Yn="oninput"in document;if(!Yn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Yn="function"==typeof Qn.oninput}Gn=Yn}else Gn=!1;$n=Gn&&(!document.documentMode||9<document.documentMode)}function Kn(){Un&&(Un.detachEvent("onpropertychange",Xn),Hn=Un=null)}function Xn(e){if("value"===e.propertyName&&Vn(Hn)){var t=[];qn(t,Hn,e,gt(e)),_t(Fn,t)}}function Zn(e,t,r){"focusin"===e?(Kn(),Hn=r,(Un=t).attachEvent("onpropertychange",Xn)):"focusout"===e&&Kn()}function Jn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vn(Hn)}function ea(e,t){if("click"===e)return Vn(t)}function ta(e,t){if("input"===e||"change"===e)return Vn(t)}var ra="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function na(e,t){if(ra(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!oe.call(t,a)||!ra(e[a],t[a]))return!1}return!0}function aa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ia(e,t){var r,n=aa(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aa(n)}}function oa(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?oa(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function sa(){for(var e=window,t=Fe();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=Fe((e=t.contentWindow).document)}return t}function la(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ua(e){var t=sa(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&oa(r.ownerDocument.documentElement,r)){if(null!==n&&la(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=void 0===n.end?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=ia(r,i);var o=ia(r,n);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ca=ie&&"documentMode"in document&&11>=document.documentMode,da=null,ha=null,pa=null,fa=!1;function ma(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;fa||null==da||da!==Fe(n)||("selectionStart"in(n=da)&&la(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},pa&&na(pa,n)||(pa=n,0<(n=Ua(ha,"onSelect")).length&&(t=new an("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=da)))}function ga(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var va={animationend:ga("Animation","AnimationEnd"),animationiteration:ga("Animation","AnimationIteration"),animationstart:ga("Animation","AnimationStart"),transitionend:ga("Transition","TransitionEnd")},ya={},ba={};function wa(e){if(ya[e])return ya[e];if(!va[e])return e;var t,r=va[e];for(t in r)if(r.hasOwnProperty(t)&&t in ba)return ya[e]=r[t];return e}ie&&(ba=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);var xa=wa("animationend"),Sa=wa("animationiteration"),ka=wa("animationstart"),Ea=wa("transitionend"),Ta=new Map,_a="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Na(e,t){Ta.set(e,t),ne(t,[e])}for(var Ca=0;Ca<_a.length;Ca++){var Oa=_a[Ca];Na(Oa.toLowerCase(),"on"+(Oa[0].toUpperCase()+Oa.slice(1)))}Na(xa,"onAnimationEnd"),Na(Sa,"onAnimationIteration"),Na(ka,"onAnimationStart"),Na("dblclick","onDoubleClick"),Na("focusin","onFocus"),Na("focusout","onBlur"),Na(Ea,"onTransitionEnd"),ae("onMouseEnter",["mouseout","mouseover"]),ae("onMouseLeave",["mouseout","mouseover"]),ae("onPointerEnter",["pointerout","pointerover"]),ae("onPointerLeave",["pointerout","pointerover"]),ne("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ne("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ne("onBeforeInput",["compositionend","keypress","textInput","paste"]),ne("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ne("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ne("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ia="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ra=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ia));function Ma(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,a,i,o,s,l){if(Lt.apply(this,arguments),Rt){if(!Rt)throw Error(ee(198));var u=Mt;Rt=!1,Mt=null,At||(At=!0,zt=u)}}(n,t,void 0,e),e.currentTarget=null}function Aa(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break e;Ma(a,s,u),i=l}else for(o=0;o<n.length;o++){if(l=(s=n[o]).instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break e;Ma(a,s,u),i=l}}}if(At)throw e=zt,At=!1,zt=null,e}function za(e,t){var r=t[ci];void 0===r&&(r=t[ci]=new Set);var n=e+"__bubble";r.has(n)||(ja(t,e,2,!1),r.add(n))}function Da(e,t,r){var n=0;t&&(n|=4),ja(r,e,n,t)}var La="_reactListening"+Math.random().toString(36).slice(2);function Pa(e){if(!e[La]){e[La]=!0,te.forEach(function(t){"selectionchange"!==t&&(Ra.has(t)||Da(t,!1,e),Da(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[La]||(t[La]=!0,Da("selectionchange",!1,t))}}function ja(e,t,r,n){switch(Wr(t)){case 1:var a=qr;break;case 4:a=Ur;break;default:a=Hr}r=a.bind(null,t,r,e),a=void 0,!Ct||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),n?void 0!==a?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):void 0!==a?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function Ba(e,t,r,n,a){var i=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var o=n.tag;if(3===o||4===o){var s=n.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===o)for(o=n.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;o=o.return}for(;null!==s;){if(null===(o=pi(s)))return;if(5===(l=o.tag)||6===l){n=i=o;continue e}s=s.parentNode}}n=n.return}_t(function(){var n=i,a=gt(r),o=[];e:{var s=Ta.get(e);if(void 0!==s){var l=an,u=e;switch(e){case"keypress":if(0===Kr(r))break e;case"keydown":case"keyup":l=Sn;break;case"focusin":u="focus",l=dn;break;case"focusout":u="blur",l=dn;break;case"beforeblur":case"afterblur":l=dn;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=un;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=cn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=En;break;case xa:case Sa:case ka:l=hn;break;case Ea:l=Tn;break;case"scroll":l=sn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=fn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=kn}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var p,f=n;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&(null!=(m=Nt(f,h))&&c.push(qa(f,m,p)))),d)break;f=f.return}0<c.length&&(s=new l(s,u,null,r,a),o.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===mt||!(u=r.relatedTarget||r.fromElement)||!pi(u)&&!u[ui])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?pi(u):null)&&(u!==(d=Pt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=un,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=kn,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:mi(l),p=null==u?s:mi(u),(s=new c(m,f+"leave",l,r,a)).target=d,s.relatedTarget=p,m=null,pi(a)===n&&((c=new c(h,f+"enter",u,r,a)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,f=0,p=c=l;p;p=Ha(p))f++;for(p=0,m=h;m;m=Ha(m))p++;for(;0<f-p;)c=Ha(c),f--;for(;0<p-f;)h=Ha(h),p--;for(;f--;){if(c===h||null!==h&&c===h.alternate)break e;c=Ha(c),h=Ha(h)}c=null}else c=null;null!==l&&Fa(o,s,l,c,!1),null!==u&&null!==d&&Fa(o,d,u,c,!0)}if("select"===(l=(s=n?mi(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Wn;else if(Bn(s))if($n)g=ta;else{g=Jn;var v=Zn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ea);switch(g&&(g=g(e,n))?qn(o,g,r,a):(v&&v(e,s,n),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&Qe(s,"number",s.value)),v=n?mi(n):window,e){case"focusin":(Bn(v)||"true"===v.contentEditable)&&(da=v,ha=n,pa=null);break;case"focusout":pa=ha=da=null;break;case"mousedown":fa=!0;break;case"contextmenu":case"mouseup":case"dragend":fa=!1,ma(o,r,a);break;case"selectionchange":if(ca)break;case"keydown":case"keyup":ma(o,r,a)}var y;if(On)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Pn?Dn(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==r.locale&&(Pn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Pn&&(y=Qr()):(Gr="value"in($r=a)?$r.value:$r.textContent,Pn=!0)),0<(v=Ua(n,b)).length&&(b=new mn(b,e,null,r,a),o.push({event:b,listeners:v}),y?b.data=y:null!==(y=Ln(r))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(zn=!0,An);case"textInput":return(e=t.data)===An&&zn?null:e;default:return null}}(e,r):function(e,t){if(Pn)return"compositionend"===e||!On&&Dn(e,t)?(e=Qr(),Yr=Gr=$r=null,Pn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Ua(n,"onBeforeInput")).length&&(a=new mn("onBeforeInput","beforeinput",null,r,a),o.push({event:a,listeners:n}),a.data=y))}Aa(o,t)})}function qa(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ua(e,t){for(var r=t+"Capture",n=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Nt(e,r))&&n.unshift(qa(e,i,a)),null!=(i=Nt(e,t))&&n.push(qa(e,i,a))),e=e.return}return n}function Ha(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fa(e,t,r,n,a){for(var i=t._reactName,o=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,a?null!=(l=Nt(r,i))&&o.unshift(qa(r,l,s)):a||null!=(l=Nt(r,i))&&o.push(qa(r,l,s))),r=r.return}0!==o.length&&e.push({event:t,listeners:o})}var Va=/\r\n?/g,Wa=/\u0000|\uFFFD/g;function $a(e){return("string"==typeof e?e:""+e).replace(Va,"\n").replace(Wa,"")}function Ga(e,t,r){if(t=$a(t),$a(e)!==t&&r)throw Error(ee(425))}function Ya(){}var Qa=null,Ka=null;function Xa(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Za="function"==typeof setTimeout?setTimeout:void 0,Ja="function"==typeof clearTimeout?clearTimeout:void 0,ei="function"==typeof Promise?Promise:void 0,ti="function"==typeof queueMicrotask?queueMicrotask:void 0!==ei?function(e){return ei.resolve(null).then(e).catch(ri)}:Za;function ri(e){setTimeout(function(){throw e})}function ni(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&8===a.nodeType)if("/$"===(r=a.data)){if(0===n)return e.removeChild(a),void Pr(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=a}while(r);Pr(t)}function ai(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ii(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var oi=Math.random().toString(36).slice(2),si="__reactFiber$"+oi,li="__reactProps$"+oi,ui="__reactContainer$"+oi,ci="__reactEvents$"+oi,di="__reactListeners$"+oi,hi="__reactHandles$"+oi;function pi(e){var t=e[si];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ui]||r[si]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=ii(e);null!==e;){if(r=e[si])return r;e=ii(e)}return t}r=(e=r).parentNode}return null}function fi(e){return!(e=e[si]||e[ui])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function mi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ee(33))}function gi(e){return e[li]||null}var vi=[],yi=-1;function bi(e){return{current:e}}function wi(e){0>yi||(e.current=vi[yi],vi[yi]=null,yi--)}function xi(e,t){yi++,vi[yi]=e.current,e.current=t}var Si={},ki=bi(Si),Ei=bi(!1),Ti=Si;function _i(e,t){var r=e.type.contextTypes;if(!r)return Si;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in r)i[a]=t[a];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ni(e){return null!=(e=e.childContextTypes)}function Ci(){wi(Ei),wi(ki)}function Oi(e,t,r){if(ki.current!==Si)throw Error(ee(168));xi(ki,t),xi(Ei,r)}function Ii(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var a in n=n.getChildContext())if(!(a in t))throw Error(ee(108,je(e)||"Unknown",a));return Me({},r,n)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Si,Ti=ki.current,xi(ki,e),xi(Ei,Ei.current),!0}function Mi(e,t,r){var n=e.stateNode;if(!n)throw Error(ee(169));r?(e=Ii(e,t,Ti),n.__reactInternalMemoizedMergedChildContext=e,wi(Ei),wi(ki),xi(ki,e)):wi(Ei),xi(Ei,r)}var Ai=null,zi=!1,Di=!1;function Li(e){null===Ai?Ai=[e]:Ai.push(e)}function Pi(){if(!Di&&null!==Ai){Di=!0;var e=0,t=fr;try{var r=Ai;for(fr=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Ai=null,zi=!1}catch(a){throw null!==Ai&&(Ai=Ai.slice(e+1)),Ht(Yt,Pi),a}finally{fr=t,Di=!1}}return null}var ji=[],Bi=0,qi=null,Ui=0,Hi=[],Fi=0,Vi=null,Wi=1,$i="";function Gi(e,t){ji[Bi++]=Ui,ji[Bi++]=qi,qi=e,Ui=t}function Yi(e,t,r){Hi[Fi++]=Wi,Hi[Fi++]=$i,Hi[Fi++]=Vi,Vi=e;var n=Wi;e=$i;var a=32-tr(n)-1;n&=~(1<<a),r+=1;var i=32-tr(t)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,Wi=1<<32-tr(t)+a|r<<a|n,$i=i+e}else Wi=1<<i|r<<a|n,$i=e}function Qi(e){null!==e.return&&(Gi(e,1),Yi(e,1,0))}function Ki(e){for(;e===qi;)qi=ji[--Bi],ji[Bi]=null,Ui=ji[--Bi],ji[Bi]=null;for(;e===Vi;)Vi=Hi[--Fi],Hi[Fi]=null,$i=Hi[--Fi],Hi[Fi]=null,Wi=Hi[--Fi],Hi[Fi]=null}var Xi=null,Zi=null,Ji=!1,eo=null;function to(e,t){var r=Nc(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function ro(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Xi=e,Zi=ai(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Xi=e,Zi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Vi?{id:Wi,overflow:$i}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Nc(18,null,null,0)).stateNode=t,r.return=e,e.child=r,Xi=e,Zi=null,!0);default:return!1}}function no(e){return!(!(1&e.mode)||128&e.flags)}function ao(e){if(Ji){var t=Zi;if(t){var r=t;if(!ro(e,t)){if(no(e))throw Error(ee(418));t=ai(r.nextSibling);var n=Xi;t&&ro(e,t)?to(n,r):(e.flags=-4097&e.flags|2,Ji=!1,Xi=e)}}else{if(no(e))throw Error(ee(418));e.flags=-4097&e.flags|2,Ji=!1,Xi=e}}}function io(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Xi=e}function oo(e){if(e!==Xi)return!1;if(!Ji)return io(e),Ji=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Xa(e.type,e.memoizedProps)),t&&(t=Zi)){if(no(e))throw so(),Error(ee(418));for(;t;)to(e,t),t=ai(t.nextSibling)}if(io(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ee(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Zi=ai(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Zi=null}}else Zi=Xi?ai(e.stateNode.nextSibling):null;return!0}function so(){for(var e=Zi;e;)e=ai(e.nextSibling)}function lo(){Zi=Xi=null,Ji=!1}function uo(e){null===eo?eo=[e]:eo.push(e)}var co=me.ReactCurrentBatchConfig;function ho(e,t){if(e&&e.defaultProps){for(var r in t=Me({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var po=bi(null),fo=null,mo=null,go=null;function vo(){go=mo=fo=null}function yo(e){var t=po.current;wi(po),e._currentValue=t}function bo(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function wo(e,t){fo=e,go=mo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ml=!0),e.firstContext=null)}function xo(e){var t=e._currentValue;if(go!==e)if(e={context:e,memoizedValue:t,next:null},null===mo){if(null===fo)throw Error(ee(308));mo=e,fo.dependencies={lanes:0,firstContext:e}}else mo=mo.next=e;return t}var So=null;function ko(e){null===So?So=[e]:So.push(e)}function Eo(e,t,r,n){var a=t.interleaved;return null===a?(r.next=r,ko(t)):(r.next=a.next,a.next=r),t.interleaved=r,To(e,n)}function To(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var _o=!1;function No(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Eu){var a=n.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),n.pending=t,To(e,r)}return null===(a=n.interleaved)?(t.next=t,ko(n)):(t.next=a.next,a.next=t),n.interleaved=t,To(e,r)}function Ro(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,pr(e,r)}}function Mo(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var a=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?a=i=o:i=i.next=o,r=r.next}while(null!==r);null===i?a=i=t:i=i.next=t}else a=i=t;return r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ao(e,t,r,n){var a=e.updateQueue;_o=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?i=u:o.next=u,o=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=a.baseState;for(o=0,c=u=l=null,s=i;;){var h=s.lane,p=s.eventTime;if((n&h)===h){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(h=t,p=r,m.tag){case 1:if("function"==typeof(f=m.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=m.payload)?f.call(p,d,h):f))break e;d=Me({},d,h);break e;case 2:_o=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=a.effects)?a.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,o|=h;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(h=s).next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}if(null===c&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===i&&(a.shared.lanes=0);Mu|=o,e.lanes=o,e.memoizedState=d}}function zo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(null!==a){if(n.callback=null,n=r,"function"!=typeof a)throw Error(ee(191,a));a.call(n)}}}var Do=(new Z.Component).refs;function Lo(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:Me({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Po={isMounted:function(e){return!!(e=e._reactInternals)&&Pt(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ku(),a=Xu(e),i=Oo(n,a);i.payload=t,null!=r&&(i.callback=r),null!==(t=Io(e,i,a))&&(Zu(t,e,a,n),Ro(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ku(),a=Xu(e),i=Oo(n,a);i.tag=1,i.payload=t,null!=r&&(i.callback=r),null!==(t=Io(e,i,a))&&(Zu(t,e,a,n),Ro(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ku(),n=Xu(e),a=Oo(r,n);a.tag=2,null!=t&&(a.callback=t),null!==(t=Io(e,a,n))&&(Zu(t,e,n,r),Ro(t,e,n))}};function jo(e,t,r,n,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!na(r,n)||!na(a,i))}function Bo(e,t,r){var n=!1,a=Si,i=t.contextType;return"object"==typeof i&&null!==i?i=xo(i):(a=Ni(t)?Ti:ki.current,i=(n=null!=(n=t.contextTypes))?_i(e,a):Si),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Po,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function qo(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Po.enqueueReplaceState(t,t.state,null)}function Uo(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=Do,No(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=xo(i):(i=Ni(t)?Ti:ki.current,a.context=_i(e,i)),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Lo(e,t,i,r),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Po.enqueueReplaceState(a,a.state,null),Ao(e,r,a,n),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Ho(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(ee(309));var n=r.stateNode}if(!n)throw Error(ee(147,e));var a=n,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=a.refs;t===Do&&(t=a.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(ee(284));if(!r._owner)throw Error(ee(290,e))}return e}function Fo(e,t){throw e=Object.prototype.toString.call(t),Error(ee(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Vo(e){return(0,e._init)(e._payload)}function Wo(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Oc(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Ac(r,e.mode,n)).return=e,t):((t=a(t,r)).return=e,t)}function l(e,t,r,n){var i=r.type;return i===ye?c(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Ne&&Vo(i)===t.type)?((n=a(t,r.props)).ref=Ho(e,t,r),n.return=e,n):((n=Ic(r.type,r.key,r.props,null,e.mode,n)).ref=Ho(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=zc(r,e.mode,n)).return=e,t):((t=a(t,r.children||[])).return=e,t)}function c(e,t,r,n,i){return null===t||7!==t.tag?((t=Rc(r,e.mode,n,i)).return=e,t):((t=a(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ac(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ge:return(r=Ic(t.type,t.key,t.props,null,e.mode,r)).ref=Ho(e,null,t),r.return=e,r;case ve:return(t=zc(t,e.mode,r)).return=e,t;case Ne:return d(e,(0,t._init)(t._payload),r)}if(Ke(t)||Ie(t))return(t=Rc(t,e.mode,r,null)).return=e,t;Fo(e,t)}return null}function h(e,t,r,n){var a=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==a?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ge:return r.key===a?l(e,t,r,n):null;case ve:return r.key===a?u(e,t,r,n):null;case Ne:return h(e,t,(a=r._init)(r._payload),n)}if(Ke(r)||Ie(r))return null!==a?null:c(e,t,r,n,null);Fo(e,r)}return null}function p(e,t,r,n,a){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,a);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ge:return l(t,e=e.get(null===n.key?r:n.key)||null,n,a);case ve:return u(t,e=e.get(null===n.key?r:n.key)||null,n,a);case Ne:return p(e,t,r,(0,n._init)(n._payload),a)}if(Ke(n)||Ie(n))return c(t,e=e.get(r)||null,n,a,null);Fo(t,n)}return null}return function s(l,u,c,f){if("object"==typeof c&&null!==c&&c.type===ye&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case ge:e:{for(var m=c.key,g=u;null!==g;){if(g.key===m){if((m=c.type)===ye){if(7===g.tag){r(l,g.sibling),(u=a(g,c.props.children)).return=l,l=u;break e}}else if(g.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===Ne&&Vo(m)===g.type){r(l,g.sibling),(u=a(g,c.props)).ref=Ho(l,g,c),u.return=l,l=u;break e}r(l,g);break}t(l,g),g=g.sibling}c.type===ye?((u=Rc(c.props.children,l.mode,f,c.key)).return=l,l=u):((f=Ic(c.type,c.key,c.props,null,l.mode,f)).ref=Ho(l,u,c),f.return=l,l=f)}return o(l);case ve:e:{for(g=c.key;null!==u;){if(u.key===g){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){r(l,u.sibling),(u=a(u,c.children||[])).return=l,l=u;break e}r(l,u);break}t(l,u),u=u.sibling}(u=zc(c,l.mode,f)).return=l,l=u}return o(l);case Ne:return s(l,u,(g=c._init)(c._payload),f)}if(Ke(c))return function(a,o,s,l){for(var u=null,c=null,f=o,m=o=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=h(a,f,s[m],l);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(a,f),o=i(v,o,m),null===c?u=v:c.sibling=v,c=v,f=g}if(m===s.length)return r(a,f),Ji&&Gi(a,m),u;if(null===f){for(;m<s.length;m++)null!==(f=d(a,s[m],l))&&(o=i(f,o,m),null===c?u=f:c.sibling=f,c=f);return Ji&&Gi(a,m),u}for(f=n(a,f);m<s.length;m++)null!==(g=p(f,a,m,s[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),o=i(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(a,e)}),Ji&&Gi(a,m),u}(l,u,c,f);if(Ie(c))return function(a,o,s,l){var u=Ie(s);if("function"!=typeof u)throw Error(ee(150));if(null==(s=u.call(s)))throw Error(ee(151));for(var c=u=null,f=o,m=o=0,g=null,v=s.next();null!==f&&!v.done;m++,v=s.next()){f.index>m?(g=f,f=null):g=f.sibling;var y=h(a,f,v.value,l);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(a,f),o=i(y,o,m),null===c?u=y:c.sibling=y,c=y,f=g}if(v.done)return r(a,f),Ji&&Gi(a,m),u;if(null===f){for(;!v.done;m++,v=s.next())null!==(v=d(a,v.value,l))&&(o=i(v,o,m),null===c?u=v:c.sibling=v,c=v);return Ji&&Gi(a,m),u}for(f=n(a,f);!v.done;m++,v=s.next())null!==(v=p(f,a,m,v.value,l))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=i(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return t(a,e)}),Ji&&Gi(a,m),u}(l,u,c,f);Fo(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==u&&6===u.tag?(r(l,u.sibling),(u=a(u,c)).return=l,l=u):(r(l,u),(u=Ac(c,l.mode,f)).return=l,l=u),o(l)):r(l,u)}}var $o=Wo(!0),Go=Wo(!1),Yo={},Qo=bi(Yo),Ko=bi(Yo),Xo=bi(Yo);function Zo(e){if(e===Yo)throw Error(ee(174));return e}function Jo(e,t){switch(xi(Xo,t),xi(Ko,e),xi(Qo,Yo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nt(null,"");break;default:t=nt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}wi(Qo),xi(Qo,t)}function es(){wi(Qo),wi(Ko),wi(Xo)}function ts(e){Zo(Xo.current);var t=Zo(Qo.current),r=nt(t,e.type);t!==r&&(xi(Ko,e),xi(Qo,r))}function rs(e){Ko.current===e&&(wi(Qo),wi(Ko))}var ns=bi(0);function as(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var is=[];function os(){for(var e=0;e<is.length;e++)is[e]._workInProgressVersionPrimary=null;is.length=0}var ss=me.ReactCurrentDispatcher,ls=me.ReactCurrentBatchConfig,us=0,cs=null,ds=null,hs=null,ps=!1,fs=!1,ms=0,gs=0;function vs(){throw Error(ee(321))}function ys(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ra(e[r],t[r]))return!1;return!0}function bs(e,t,r,n,a,i){if(us=i,cs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ss.current=null===e||null===e.memoizedState?rl:nl,e=r(n,a),fs){i=0;do{if(fs=!1,ms=0,25<=i)throw Error(ee(301));i+=1,hs=ds=null,t.updateQueue=null,ss.current=al,e=r(n,a)}while(fs)}if(ss.current=tl,t=null!==ds&&null!==ds.next,us=0,hs=ds=cs=null,ps=!1,t)throw Error(ee(300));return e}function ws(){var e=0!==ms;return ms=0,e}function xs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===hs?cs.memoizedState=hs=e:hs=hs.next=e,hs}function Ss(){if(null===ds){var e=cs.alternate;e=null!==e?e.memoizedState:null}else e=ds.next;var t=null===hs?cs.memoizedState:hs.next;if(null!==t)hs=t,ds=e;else{if(null===e)throw Error(ee(310));e={memoizedState:(ds=e).memoizedState,baseState:ds.baseState,baseQueue:ds.baseQueue,queue:ds.queue,next:null},null===hs?cs.memoizedState=hs=e:hs=hs.next=e}return hs}function ks(e,t){return"function"==typeof t?t(e):t}function Es(e){var t=Ss(),r=t.queue;if(null===r)throw Error(ee(311));r.lastRenderedReducer=e;var n=ds,a=n.baseQueue,i=r.pending;if(null!==i){if(null!==a){var o=a.next;a.next=i.next,i.next=o}n.baseQueue=a=i,r.pending=null}if(null!==a){i=a.next,n=n.baseState;var s=o=null,l=null,u=i;do{var c=u.lane;if((us&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=n):l=l.next=d,cs.lanes|=c,Mu|=c}u=u.next}while(null!==u&&u!==i);null===l?o=n:l.next=s,ra(n,t.memoizedState)||(ml=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){a=e;do{i=a.lane,cs.lanes|=i,Mu|=i,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ts(e){var t=Ss(),r=t.queue;if(null===r)throw Error(ee(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var o=a=a.next;do{i=e(i,o.action),o=o.next}while(o!==a);ra(i,t.memoizedState)||(ml=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function _s(){}function Ns(e,t){var r=cs,n=Ss(),a=t(),i=!ra(n.memoizedState,a);if(i&&(n.memoizedState=a,ml=!0),n=n.queue,Bs(Is.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||null!==hs&&1&hs.memoizedState.tag){if(r.flags|=2048,zs(9,Os.bind(null,r,n,a,t),void 0,null),null===Tu)throw Error(ee(349));30&us||Cs(r,t,a)}return a}function Cs(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=cs.updateQueue)?(t={lastEffect:null,stores:null},cs.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Os(e,t,r,n){t.value=r,t.getSnapshot=n,Rs(t)&&Ms(e)}function Is(e,t,r){return r(function(){Rs(t)&&Ms(e)})}function Rs(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ra(e,r)}catch(n){return!0}}function Ms(e){var t=To(e,1);null!==t&&Zu(t,e,1,-1)}function As(e){var t=xs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:e},t.queue=e,e=e.dispatch=Xs.bind(null,cs,e),[t.memoizedState,e]}function zs(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=cs.updateQueue)?(t={lastEffect:null,stores:null},cs.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Ds(){return Ss().memoizedState}function Ls(e,t,r,n){var a=xs();cs.flags|=e,a.memoizedState=zs(1|t,r,void 0,void 0===n?null:n)}function Ps(e,t,r,n){var a=Ss();n=void 0===n?null:n;var i=void 0;if(null!==ds){var o=ds.memoizedState;if(i=o.destroy,null!==n&&ys(n,o.deps))return void(a.memoizedState=zs(t,r,i,n))}cs.flags|=e,a.memoizedState=zs(1|t,r,i,n)}function js(e,t){return Ls(8390656,8,e,t)}function Bs(e,t){return Ps(2048,8,e,t)}function qs(e,t){return Ps(4,2,e,t)}function Us(e,t){return Ps(4,4,e,t)}function Hs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fs(e,t,r){return r=null!=r?r.concat([e]):null,Ps(4,4,Hs.bind(null,t,e),r)}function Vs(){}function Ws(e,t){var r=Ss();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ys(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function $s(e,t){var r=Ss();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ys(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Gs(e,t,r){return 21&us?(ra(r,t)||(r=cr(),cs.lanes|=r,Mu|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ml=!0),e.memoizedState=r)}function Ys(e,t){var r=fr;fr=0!==r&&4>r?r:4,e(!0);var n=ls.transition;ls.transition={};try{e(!1),t()}finally{fr=r,ls.transition=n}}function Qs(){return Ss().memoizedState}function Ks(e,t,r){var n=Xu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Zs(e))Js(t,r);else if(null!==(r=Eo(e,t,r,n))){Zu(r,e,n,Ku()),el(r,t,n)}}function Xs(e,t,r){var n=Xu(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Zs(e))Js(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=i(o,r);if(a.hasEagerState=!0,a.eagerState=s,ra(s,o)){var l=t.interleaved;return null===l?(a.next=a,ko(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(u){}null!==(r=Eo(e,t,a,n))&&(Zu(r,e,n,a=Ku()),el(r,t,n))}}function Zs(e){var t=e.alternate;return e===cs||null!==t&&t===cs}function Js(e,t){fs=ps=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function el(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,pr(e,r)}}var tl={readContext:xo,useCallback:vs,useContext:vs,useEffect:vs,useImperativeHandle:vs,useInsertionEffect:vs,useLayoutEffect:vs,useMemo:vs,useReducer:vs,useRef:vs,useState:vs,useDebugValue:vs,useDeferredValue:vs,useTransition:vs,useMutableSource:vs,useSyncExternalStore:vs,useId:vs,unstable_isNewReconciler:!1},rl={readContext:xo,useCallback:function(e,t){return xs().memoizedState=[e,void 0===t?null:t],e},useContext:xo,useEffect:js,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Ls(4194308,4,Hs.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ls(4,2,e,t)},useMemo:function(e,t){var r=xs();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=xs();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ks.bind(null,cs,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},xs().memoizedState=e},useState:As,useDebugValue:Vs,useDeferredValue:function(e){return xs().memoizedState=e},useTransition:function(){var e=As(!1),t=e[0];return e=Ys.bind(null,e[1]),xs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=cs,a=xs();if(Ji){if(void 0===r)throw Error(ee(407));r=r()}else{if(r=t(),null===Tu)throw Error(ee(349));30&us||Cs(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,js(Is.bind(null,n,i,e),[e]),n.flags|=2048,zs(9,Os.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=xs(),t=Tu.identifierPrefix;if(Ji){var r=$i;t=":"+t+"R"+(r=(Wi&~(1<<32-tr(Wi)-1)).toString(32)+r),0<(r=ms++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=gs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},nl={readContext:xo,useCallback:Ws,useContext:xo,useEffect:Bs,useImperativeHandle:Fs,useInsertionEffect:qs,useLayoutEffect:Us,useMemo:$s,useReducer:Es,useRef:Ds,useState:function(){return Es(ks)},useDebugValue:Vs,useDeferredValue:function(e){return Gs(Ss(),ds.memoizedState,e)},useTransition:function(){return[Es(ks)[0],Ss().memoizedState]},useMutableSource:_s,useSyncExternalStore:Ns,useId:Qs,unstable_isNewReconciler:!1},al={readContext:xo,useCallback:Ws,useContext:xo,useEffect:Bs,useImperativeHandle:Fs,useInsertionEffect:qs,useLayoutEffect:Us,useMemo:$s,useReducer:Ts,useRef:Ds,useState:function(){return Ts(ks)},useDebugValue:Vs,useDeferredValue:function(e){var t=Ss();return null===ds?t.memoizedState=e:Gs(t,ds.memoizedState,e)},useTransition:function(){return[Ts(ks)[0],Ss().memoizedState]},useMutableSource:_s,useSyncExternalStore:Ns,useId:Qs,unstable_isNewReconciler:!1};function il(e,t){try{var r="",n=t;do{r+=Le(n),n=n.return}while(n);var a=r}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a,digest:null}}function ol(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function sl(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var ll="function"==typeof WeakMap?WeakMap:Map;function ul(e,t,r){(r=Oo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){qu||(qu=!0,Uu=n),sl(0,t)},r}function cl(e,t,r){(r=Oo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){sl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){sl(0,t),"function"!=typeof n&&(null===Hu?Hu=new Set([this]):Hu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function dl(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new ll;var a=new Set;n.set(t,a)}else void 0===(a=n.get(t))&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=xc.bind(null,e,t,r),t.then(e,e))}function hl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function pl(e,t,r,n,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Oo(-1,1)).tag=2,Io(r,t,1))),r.lanes|=1),e)}var fl=me.ReactCurrentOwner,ml=!1;function gl(e,t,r,n){t.child=null===e?Go(t,null,r,n):$o(t,e.child,r,n)}function vl(e,t,r,n,a){r=r.render;var i=t.ref;return wo(t,a),n=bs(e,t,r,n,i,a),r=ws(),null===e||ml?(Ji&&r&&Qi(t),t.flags|=1,gl(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ql(e,t,a))}function yl(e,t,r,n,a){if(null===e){var i=r.type;return"function"!=typeof i||Cc(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Ic(r.type,null,n,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,bl(e,t,i,n,a))}if(i=e.child,0===(e.lanes&a)){var o=i.memoizedProps;if((r=null!==(r=r.compare)?r:na)(o,n)&&e.ref===t.ref)return ql(e,t,a)}return t.flags|=1,(e=Oc(i,n)).ref=t.ref,e.return=t,t.child=e}function bl(e,t,r,n,a){if(null!==e){var i=e.memoizedProps;if(na(i,n)&&e.ref===t.ref){if(ml=!1,t.pendingProps=n=i,0===(e.lanes&a))return t.lanes=e.lanes,ql(e,t,a);131072&e.flags&&(ml=!0)}}return Sl(e,t,r,n,a)}function wl(e,t,r){var n=t.pendingProps,a=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xi(Ou,Cu),Cu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==i?i.baseLanes:r,xi(Ou,Cu),Cu|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xi(Ou,Cu),Cu|=r;else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,xi(Ou,Cu),Cu|=n;return gl(e,t,a,r),t.child}function xl(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Sl(e,t,r,n,a){var i=Ni(r)?Ti:ki.current;return i=_i(t,i),wo(t,a),r=bs(e,t,r,n,i,a),n=ws(),null===e||ml?(Ji&&n&&Qi(t),t.flags|=1,gl(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ql(e,t,a))}function kl(e,t,r,n,a){if(Ni(r)){var i=!0;Ri(t)}else i=!1;if(wo(t,a),null===t.stateNode)Bl(e,t),Bo(t,r,n),Uo(t,r,n,a),n=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;"object"==typeof u&&null!==u?u=xo(u):u=_i(t,u=Ni(r)?Ti:ki.current);var c=r.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==n||l!==u)&&qo(t,o,n,u),_o=!1;var h=t.memoizedState;o.state=h,Ao(t,n,o,a),l=t.memoizedState,s!==n||h!==l||Ei.current||_o?("function"==typeof c&&(Lo(t,r,c,n),l=t.memoizedState),(s=_o||jo(t,r,s,n,h,l,u))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Co(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ho(t.type,s),o.props=u,d=t.pendingProps,h=o.context,"object"==typeof(l=r.contextType)&&null!==l?l=xo(l):l=_i(t,l=Ni(r)?Ti:ki.current);var p=r.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||h!==l)&&qo(t,o,n,l),_o=!1,h=t.memoizedState,o.state=h,Ao(t,n,o,a);var f=t.memoizedState;s!==d||h!==f||Ei.current||_o?("function"==typeof p&&(Lo(t,r,p,n),f=t.memoizedState),(u=_o||jo(t,r,u,n,h,f,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(n,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),o.props=n,o.state=f,o.context=l,n=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return El(e,t,r,n,i,a)}function El(e,t,r,n,a,i){xl(e,t);var o=!!(128&t.flags);if(!n&&!o)return a&&Mi(t,r,!1),ql(e,t,i);n=t.stateNode,fl.current=t;var s=o&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&o?(t.child=$o(t,e.child,null,i),t.child=$o(t,null,s,i)):gl(e,t,s,i),t.memoizedState=n.state,a&&Mi(t,r,!0),t.child}function Tl(e){var t=e.stateNode;t.pendingContext?Oi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Oi(0,t.context,!1),Jo(e,t.containerInfo)}function _l(e,t,r,n,a){return lo(),uo(a),t.flags|=256,gl(e,t,r,n),t.child}var Nl,Cl,Ol,Il,Rl={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function Al(e,t,r){var n,a=t.pendingProps,i=ns.current,o=!1,s=!!(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&!!(2&i)),n?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),xi(ns,1&i),null===e)return ao(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=a.children,e=a.fallback,o?(a=t.mode,o=t.child,s={mode:"hidden",children:s},1&a||null===o?o=Mc(s,a,0,null):(o.childLanes=0,o.pendingProps=s),e=Rc(e,a,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ml(r),t.memoizedState=Rl,e):zl(t,s));if(null!==(i=e.memoizedState)&&null!==(n=i.dehydrated))return function(e,t,r,n,a,i,o){if(r)return 256&t.flags?(t.flags&=-257,Dl(e,t,o,n=ol(Error(ee(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=n.fallback,a=t.mode,n=Mc({mode:"visible",children:n.children},a,0,null),(i=Rc(i,a,o,null)).flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,1&t.mode&&$o(t,e.child,null,o),t.child.memoizedState=Ml(o),t.memoizedState=Rl,i);if(!(1&t.mode))return Dl(e,t,o,null);if("$!"===a.data){if(n=a.nextSibling&&a.nextSibling.dataset)var s=n.dgst;return n=s,Dl(e,t,o,n=ol(i=Error(ee(419)),n,void 0))}if(s=0!==(o&e.childLanes),ml||s){if(null!==(n=Tu)){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(n.suspendedLanes|o))?0:a)&&a!==i.retryLane&&(i.retryLane=a,To(e,a),Zu(n,e,a,-1))}return dc(),Dl(e,t,o,n=ol(Error(ee(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=kc.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,Zi=ai(a.nextSibling),Xi=t,Ji=!0,eo=null,null!==e&&(Hi[Fi++]=Wi,Hi[Fi++]=$i,Hi[Fi++]=Vi,Wi=e.id,$i=e.overflow,Vi=t),t=zl(t,n.children),t.flags|=4096,t)}(e,t,s,a,n,i,r);if(o){o=a.fallback,s=t.mode,n=(i=e.child).sibling;var l={mode:"hidden",children:a.children};return 1&s||t.child===i?(a=Oc(i,l)).subtreeFlags=14680064&i.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=l,t.deletions=null),null!==n?o=Oc(n,o):(o=Rc(o,s,r,null)).flags|=2,o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,s=null===(s=e.child.memoizedState)?Ml(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=Rl,a}return e=(o=e.child).sibling,a=Oc(o,{mode:"visible",children:a.children}),!(1&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function zl(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Dl(e,t,r,n){return null!==n&&uo(n),$o(t,e.child,null,r),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ll(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),bo(e.return,t,r)}function Pl(e,t,r,n,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=a)}function jl(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(gl(e,t,n.children,r),2&(n=ns.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ll(e,r,t);else if(19===e.tag)Ll(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(xi(ns,n),1&t.mode)switch(a){case"forwards":for(r=t.child,a=null;null!==r;)null!==(e=r.alternate)&&null===as(e)&&(a=r),r=r.sibling;null===(r=a)?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Pl(t,!1,a,r,i);break;case"backwards":for(r=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===as(e)){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Pl(t,!0,r,null,i);break;case"together":Pl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ql(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Mu|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ee(153));if(null!==t.child){for(r=Oc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Oc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ul(e,t){if(!Ji)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;null!==a;)r|=a.lanes|a.childLanes,n|=14680064&a.subtreeFlags,n|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Fl(e,t,r){var n=t.pendingProps;switch(Ki(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hl(t),null;case 1:case 17:return Ni(t.type)&&Ci(),Hl(t),null;case 3:return n=t.stateNode,es(),wi(Ei),wi(ki),os(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(oo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==eo&&(rc(eo),eo=null))),Cl(e,t),Hl(t),null;case 5:rs(t);var a=Zo(Xo.current);if(r=t.type,null!==e&&null!=t.stateNode)Ol(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(ee(166));return Hl(t),null}if(e=Zo(Qo.current),oo(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[si]=t,n[li]=i,e=!!(1&t.mode),r){case"dialog":za("cancel",n),za("close",n);break;case"iframe":case"object":case"embed":za("load",n);break;case"video":case"audio":for(a=0;a<Ia.length;a++)za(Ia[a],n);break;case"source":za("error",n);break;case"img":case"image":case"link":za("error",n),za("load",n);break;case"details":za("toggle",n);break;case"input":We(n,i),za("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},za("invalid",n);break;case"textarea":Je(n,i),za("invalid",n)}for(var o in pt(r,i),a=null,i)if(i.hasOwnProperty(o)){var s=i[o];"children"===o?"string"==typeof s?n.textContent!==s&&(!0!==i.suppressHydrationWarning&&Ga(n.textContent,s,e),a=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&Ga(n.textContent,s,e),a=["children",""+s]):re.hasOwnProperty(o)&&null!=s&&"onScroll"===o&&za("scroll",n)}switch(r){case"input":Ue(n),Ye(n,i,!0);break;case"textarea":Ue(n),tt(n);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(n.onclick=Ya)}n=a,t.updateQueue=n,null!==n&&(t.flags|=4)}else{o=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=rt(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),"select"===r&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[si]=t,e[li]=n,Nl(e,t,!1,!1),t.stateNode=e;e:{switch(o=ft(r,n),r){case"dialog":za("cancel",e),za("close",e),a=n;break;case"iframe":case"object":case"embed":za("load",e),a=n;break;case"video":case"audio":for(a=0;a<Ia.length;a++)za(Ia[a],e);a=n;break;case"source":za("error",e),a=n;break;case"img":case"image":case"link":za("error",e),za("load",e),a=n;break;case"details":za("toggle",e),a=n;break;case"input":We(e,n),a=Ve(e,n),za("invalid",e);break;case"option":default:a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=Me({},n,{value:void 0}),za("invalid",e);break;case"textarea":Je(e,n),a=Ze(e,n),za("invalid",e)}for(i in pt(r,a),s=a)if(s.hasOwnProperty(i)){var l=s[i];"style"===i?dt(e,l):"dangerouslySetInnerHTML"===i?null!=(l=l?l.__html:void 0)&&ot(e,l):"children"===i?"string"==typeof l?("textarea"!==r||""!==l)&&st(e,l):"number"==typeof l&&st(e,""+l):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(re.hasOwnProperty(i)?null!=l&&"onScroll"===i&&za("scroll",e):null!=l&&fe(e,i,l,o))}switch(r){case"input":Ue(e),Ye(e,n,!1);break;case"textarea":Ue(e),tt(e);break;case"option":null!=n.value&&e.setAttribute("value",""+Be(n.value));break;case"select":e.multiple=!!n.multiple,null!=(i=n.value)?Xe(e,!!n.multiple,i,!1):null!=n.defaultValue&&Xe(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Ya)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Hl(t),null;case 6:if(e&&null!=t.stateNode)Il(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(ee(166));if(r=Zo(Xo.current),Zo(Qo.current),oo(t)){if(n=t.stateNode,r=t.memoizedProps,n[si]=t,(i=n.nodeValue!==r)&&null!==(e=Xi))switch(e.tag){case 3:Ga(n.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ga(n.nodeValue,r,!!(1&e.mode))}i&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[si]=t,t.stateNode=n}return Hl(t),null;case 13:if(wi(ns),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Ji&&null!==Zi&&1&t.mode&&!(128&t.flags))so(),lo(),t.flags|=98560,i=!1;else if(i=oo(t),null!==n&&null!==n.dehydrated){if(null===e){if(!i)throw Error(ee(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(ee(317));i[si]=t}else lo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Hl(t),i=!1}else null!==eo&&(rc(eo),eo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ns.current?0===Iu&&(Iu=3):dc())),null!==t.updateQueue&&(t.flags|=4),Hl(t),null);case 4:return es(),Cl(e,t),null===e&&Pa(t.stateNode.containerInfo),Hl(t),null;case 10:return yo(t.type._context),Hl(t),null;case 19:if(wi(ns),null===(i=t.memoizedState))return Hl(t),null;if(n=!!(128&t.flags),null===(o=i.rendering))if(n)Ul(i,!1);else{if(0!==Iu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=as(e))){for(t.flags|=128,Ul(i,!1),null!==(n=o.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(i=r).flags&=14680066,null===(o=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return xi(ns,1&ns.current|2),t.child}e=e.sibling}null!==i.tail&&$t()>ju&&(t.flags|=128,n=!0,Ul(i,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=as(o))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ul(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!Ji)return Hl(t),null}else 2*$t()-i.renderingStartTime>ju&&1073741824!==r&&(t.flags|=128,n=!0,Ul(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(r=i.last)?r.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$t(),t.sibling=null,r=ns.current,xi(ns,n?1&r|2:1&r),t):(Hl(t),null);case 22:case 23:return sc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&1&t.mode?!!(1073741824&Cu)&&(Hl(t),6&t.subtreeFlags&&(t.flags|=8192)):Hl(t),null;case 24:case 25:return null}throw Error(ee(156,t.tag))}function Vl(e,t){switch(Ki(t),t.tag){case 1:return Ni(t.type)&&Ci(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return es(),wi(Ei),wi(ki),os(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return rs(t),null;case 13:if(wi(ns),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ee(340));lo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return wi(ns),null;case 4:return es(),null;case 10:return yo(t.type._context),null;case 22:case 23:return sc(),null;default:return null}}Nl=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Cl=function(){},Ol=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,Zo(Qo.current);var i,o=null;switch(r){case"input":a=Ve(e,a),n=Ve(e,n),o=[];break;case"select":a=Me({},a,{value:void 0}),n=Me({},n,{value:void 0}),o=[];break;case"textarea":a=Ze(e,a),n=Ze(e,n),o=[];break;default:"function"!=typeof a.onClick&&"function"==typeof n.onClick&&(e.onclick=Ya)}for(u in pt(r,n),r=null,a)if(!n.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var s=a[u];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(re.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(s=null!=a?a[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(o||(o=[]),o.push(u,r)),r=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(o=o||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(o=o||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(re.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&za("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},Il=function(e,t,r,n){r!==n&&(t.flags|=4)};var Wl=!1,$l=!1,Gl="function"==typeof WeakSet?WeakSet:Set,Yl=null;function Ql(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(n){wc(e,t,n)}else r.current=null}function Kl(e,t,r){try{r()}catch(n){wc(e,t,n)}}var Xl=!1;function Zl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&Kl(t,r,i)}a=a.next}while(a!==n)}}function Jl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function eu(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function tu(e){var t=e.alternate;null!==t&&(e.alternate=null,tu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[si],delete t[li],delete t[ci],delete t[di],delete t[hi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ru(e){return 5===e.tag||3===e.tag||4===e.tag}function nu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ru(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function au(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ya));else if(4!==n&&null!==(e=e.child))for(au(e,t,r),e=e.sibling;null!==e;)au(e,t,r),e=e.sibling}function iu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(iu(e,t,r),e=e.sibling;null!==e;)iu(e,t,r),e=e.sibling}var ou=null,su=!1;function lu(e,t,r){for(r=r.child;null!==r;)uu(e,t,r),r=r.sibling}function uu(e,t,r){if(er&&"function"==typeof er.onCommitFiberUnmount)try{er.onCommitFiberUnmount(Jt,r)}catch(s){}switch(r.tag){case 5:$l||Ql(r,t);case 6:var n=ou,a=su;ou=null,lu(e,t,r),su=a,null!==(ou=n)&&(su?(e=ou,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):ou.removeChild(r.stateNode));break;case 18:null!==ou&&(su?(e=ou,r=r.stateNode,8===e.nodeType?ni(e.parentNode,r):1===e.nodeType&&ni(e,r),Pr(e)):ni(ou,r.stateNode));break;case 4:n=ou,a=su,ou=r.stateNode.containerInfo,su=!0,lu(e,t,r),ou=n,su=a;break;case 0:case 11:case 14:case 15:if(!$l&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){a=n=n.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(2&i||4&i)&&Kl(r,t,o),a=a.next}while(a!==n)}lu(e,t,r);break;case 1:if(!$l&&(Ql(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){wc(r,t,s)}lu(e,t,r);break;case 21:lu(e,t,r);break;case 22:1&r.mode?($l=(n=$l)||null!==r.memoizedState,lu(e,t,r),$l=n):lu(e,t,r);break;default:lu(e,t,r)}}function cu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Gl),t.forEach(function(t){var n=Ec.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))})}}function du(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var a=r[n];try{var i=e,o=t,s=o;e:for(;null!==s;){switch(s.tag){case 5:ou=s.stateNode,su=!1;break e;case 3:case 4:ou=s.stateNode.containerInfo,su=!0;break e}s=s.return}if(null===ou)throw Error(ee(160));uu(i,o,a),ou=null,su=!1;var l=a.alternate;null!==l&&(l.return=null),a.return=null}catch(u){wc(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hu(t,e),t=t.sibling}function hu(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(du(t,e),pu(e),4&n){try{Zl(3,e,e.return),Jl(3,e)}catch(m){wc(e,e.return,m)}try{Zl(5,e,e.return)}catch(m){wc(e,e.return,m)}}break;case 1:du(t,e),pu(e),512&n&&null!==r&&Ql(r,r.return);break;case 5:if(du(t,e),pu(e),512&n&&null!==r&&Ql(r,r.return),32&e.flags){var a=e.stateNode;try{st(a,"")}catch(m){wc(e,e.return,m)}}if(4&n&&null!=(a=e.stateNode)){var i=e.memoizedProps,o=null!==r?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===i.type&&null!=i.name&&$e(a,i),ft(s,o);var u=ft(s,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];"style"===c?dt(a,d):"dangerouslySetInnerHTML"===c?ot(a,d):"children"===c?st(a,d):fe(a,c,d,u)}switch(s){case"input":Ge(a,i);break;case"textarea":et(a,i);break;case"select":var h=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?Xe(a,!!i.multiple,p,!1):h!==!!i.multiple&&(null!=i.defaultValue?Xe(a,!!i.multiple,i.defaultValue,!0):Xe(a,!!i.multiple,i.multiple?[]:"",!1))}a[li]=i}catch(m){wc(e,e.return,m)}}break;case 6:if(du(t,e),pu(e),4&n){if(null===e.stateNode)throw Error(ee(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(m){wc(e,e.return,m)}}break;case 3:if(du(t,e),pu(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Pr(t.containerInfo)}catch(m){wc(e,e.return,m)}break;case 4:default:du(t,e),pu(e);break;case 13:du(t,e),pu(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(Pu=$t())),4&n&&cu(e);break;case 22:if(c=null!==r&&null!==r.memoizedState,1&e.mode?($l=(u=$l)||c,du(t,e),$l=u):du(t,e),pu(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Yl=e,c=e.child;null!==c;){for(d=Yl=c;null!==Yl;){switch(p=(h=Yl).child,h.tag){case 0:case 11:case 14:case 15:Zl(4,h,h.return);break;case 1:Ql(h,h.return);var f=h.stateNode;if("function"==typeof f.componentWillUnmount){n=h,r=h.return;try{t=n,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(m){wc(n,r,m)}}break;case 5:Ql(h,h.return);break;case 22:if(null!==h.memoizedState){vu(d);continue}}null!==p?(p.return=h,Yl=p):vu(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{a=d.stateNode,u?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,o=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=ct("display",o))}catch(m){wc(e,e.return,m)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){wc(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:du(t,e),pu(e),4&n&&cu(e);case 21:}}function pu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ru(r)){var n=r;break e}r=r.return}throw Error(ee(160))}switch(n.tag){case 5:var a=n.stateNode;32&n.flags&&(st(a,""),n.flags&=-33),iu(e,nu(e),a);break;case 3:case 4:var i=n.stateNode.containerInfo;au(e,nu(e),i);break;default:throw Error(ee(161))}}catch(o){wc(e,e.return,o)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function fu(e,t,r){Yl=e,mu(e)}function mu(e,t,r){for(var n=!!(1&e.mode);null!==Yl;){var a=Yl,i=a.child;if(22===a.tag&&n){var o=null!==a.memoizedState||Wl;if(!o){var s=a.alternate,l=null!==s&&null!==s.memoizedState||$l;s=Wl;var u=$l;if(Wl=o,($l=l)&&!u)for(Yl=a;null!==Yl;)l=(o=Yl).child,22===o.tag&&null!==o.memoizedState?yu(a):null!==l?(l.return=o,Yl=l):yu(a);for(;null!==i;)Yl=i,mu(i),i=i.sibling;Yl=a,Wl=s,$l=u}gu(e)}else 8772&a.subtreeFlags&&null!==i?(i.return=a,Yl=i):gu(e)}}function gu(e){for(;null!==Yl;){var t=Yl;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:$l||Jl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!$l)if(null===r)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:ho(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&zo(t,i,n);break;case 3:var o=t.updateQueue;if(null!==o){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}zo(t,o,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Pr(d)}}}break;default:throw Error(ee(163))}$l||512&t.flags&&eu(t)}catch(h){wc(t,t.return,h)}}if(t===e){Yl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Yl=r;break}Yl=t.return}}function vu(e){for(;null!==Yl;){var t=Yl;if(t===e){Yl=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Yl=r;break}Yl=t.return}}function yu(e){for(;null!==Yl;){var t=Yl;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Jl(4,t)}catch(l){wc(t,r,l)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var a=t.return;try{n.componentDidMount()}catch(l){wc(t,a,l)}}var i=t.return;try{eu(t)}catch(l){wc(t,i,l)}break;case 5:var o=t.return;try{eu(t)}catch(l){wc(t,o,l)}}}catch(l){wc(t,t.return,l)}if(t===e){Yl=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Yl=s;break}Yl=t.return}}var bu,wu=Math.ceil,xu=me.ReactCurrentDispatcher,Su=me.ReactCurrentOwner,ku=me.ReactCurrentBatchConfig,Eu=0,Tu=null,_u=null,Nu=0,Cu=0,Ou=bi(0),Iu=0,Ru=null,Mu=0,Au=0,zu=0,Du=null,Lu=null,Pu=0,ju=1/0,Bu=null,qu=!1,Uu=null,Hu=null,Fu=!1,Vu=null,Wu=0,$u=0,Gu=null,Yu=-1,Qu=0;function Ku(){return 6&Eu?$t():-1!==Yu?Yu:Yu=$t()}function Xu(e){return 1&e.mode?2&Eu&&0!==Nu?Nu&-Nu:null!==co.transition?(0===Qu&&(Qu=cr()),Qu):0!==(e=fr)?e:e=void 0===(e=window.event)?16:Wr(e.type):1}function Zu(e,t,r,n){if(50<$u)throw $u=0,Gu=null,Error(ee(185));hr(e,r,n),2&Eu&&e===Tu||(e===Tu&&(!(2&Eu)&&(Au|=r),4===Iu&&nc(e,Nu)),Ju(e,n),1===r&&0===Eu&&!(1&t.mode)&&(ju=$t()+500,zi&&Pi()))}function Ju(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-tr(i),s=1<<o,l=a[o];-1===l?0!==(s&r)&&0===(s&n)||(a[o]=lr(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var n=sr(e,e===Tu?Nu:0);if(0===n)null!==r&&Ft(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ft(r),1===t)0===e.tag?function(e){zi=!0,Li(e)}(ac.bind(null,e)):Li(ac.bind(null,e)),ti(function(){!(6&Eu)&&Pi()}),r=null;else{switch(mr(n)){case 1:r=Yt;break;case 4:r=Qt;break;case 16:default:r=Kt;break;case 536870912:r=Zt}r=Tc(r,ec.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ec(e,t){if(Yu=-1,Qu=0,6&Eu)throw Error(ee(327));var r=e.callbackNode;if(yc()&&e.callbackNode!==r)return null;var n=sr(e,e===Tu?Nu:0);if(0===n)return null;if(30&n||0!==(n&e.expiredLanes)||t)t=hc(e,n);else{t=n;var a=Eu;Eu|=2;var i=cc();for(Tu===e&&Nu===t||(Bu=null,ju=$t()+500,lc(e,t));;)try{fc();break}catch(s){uc(e,s)}vo(),xu.current=i,Eu=a,null!==_u?t=0:(Tu=null,Nu=0,t=Iu)}if(0!==t){if(2===t&&(0!==(a=ur(e))&&(n=a,t=tc(e,a))),1===t)throw r=Ru,lc(e,0),nc(e,n),Ju(e,$t()),r;if(6===t)nc(e,n);else{if(a=e.current.alternate,!(30&n||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var a=r[n],i=a.getSnapshot;a=a.value;try{if(!ra(i(),a))return!1}catch(o){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)||(t=hc(e,n),2===t&&(i=ur(e),0!==i&&(n=i,t=tc(e,i))),1!==t)))throw r=Ru,lc(e,0),nc(e,n),Ju(e,$t()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(ee(345));case 2:case 5:vc(e,Lu,Bu);break;case 3:if(nc(e,n),(130023424&n)===n&&10<(t=Pu+500-$t())){if(0!==sr(e,0))break;if(((a=e.suspendedLanes)&n)!==n){Ku(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Za(vc.bind(null,e,Lu,Bu),t);break}vc(e,Lu,Bu);break;case 4:if(nc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,a=-1;0<n;){var o=31-tr(n);i=1<<o,(o=t[o])>a&&(a=o),n&=~i}if(n=a,10<(n=(120>(n=$t()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*wu(n/1960))-n)){e.timeoutHandle=Za(vc.bind(null,e,Lu,Bu),n);break}vc(e,Lu,Bu);break;default:throw Error(ee(329))}}}return Ju(e,$t()),e.callbackNode===r?ec.bind(null,e):null}function tc(e,t){var r=Du;return e.current.memoizedState.isDehydrated&&(lc(e,t).flags|=256),2!==(e=hc(e,t))&&(t=Lu,Lu=r,null!==t&&rc(t)),e}function rc(e){null===Lu?Lu=e:Lu.push.apply(Lu,e)}function nc(e,t){for(t&=~zu,t&=~Au,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-tr(t),n=1<<r;e[r]=-1,t&=~n}}function ac(e){if(6&Eu)throw Error(ee(327));yc();var t=sr(e,0);if(!(1&t))return Ju(e,$t()),null;var r=hc(e,t);if(0!==e.tag&&2===r){var n=ur(e);0!==n&&(t=n,r=tc(e,n))}if(1===r)throw r=Ru,lc(e,0),nc(e,t),Ju(e,$t()),r;if(6===r)throw Error(ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vc(e,Lu,Bu),Ju(e,$t()),null}function ic(e,t){var r=Eu;Eu|=1;try{return e(t)}finally{0===(Eu=r)&&(ju=$t()+500,zi&&Pi())}}function oc(e){null!==Vu&&0===Vu.tag&&!(6&Eu)&&yc();var t=Eu;Eu|=1;var r=ku.transition,n=fr;try{if(ku.transition=null,fr=1,e)return e()}finally{fr=n,ku.transition=r,!(6&(Eu=t))&&Pi()}}function sc(){Cu=Ou.current,wi(Ou)}function lc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Ja(r)),null!==_u)for(r=_u.return;null!==r;){var n=r;switch(Ki(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ci();break;case 3:es(),wi(Ei),wi(ki),os();break;case 5:rs(n);break;case 4:es();break;case 13:case 19:wi(ns);break;case 10:yo(n.type._context);break;case 22:case 23:sc()}r=r.return}if(Tu=e,_u=e=Oc(e.current,null),Nu=Cu=t,Iu=0,Ru=null,zu=Au=Mu=0,Lu=Du=null,null!==So){for(t=0;t<So.length;t++)if(null!==(n=(r=So[t]).interleaved)){r.interleaved=null;var a=n.next,i=r.pending;if(null!==i){var o=i.next;i.next=a,n.next=o}r.pending=n}So=null}return e}function uc(e,t){for(;;){var r=_u;try{if(vo(),ss.current=tl,ps){for(var n=cs.memoizedState;null!==n;){var a=n.queue;null!==a&&(a.pending=null),n=n.next}ps=!1}if(us=0,hs=ds=cs=null,fs=!1,ms=0,Su.current=null,null===r||null===r.return){Iu=1,Ru=t,_u=null;break}e:{var i=e,o=r.return,s=r,l=t;if(t=Nu,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=hl(o);if(null!==p){p.flags&=-257,pl(p,o,s,0,t),1&p.mode&&dl(i,u,t),l=u;var f=(t=p).updateQueue;if(null===f){var m=new Set;m.add(l),t.updateQueue=m}else f.add(l);break e}if(!(1&t)){dl(i,u,t),dc();break e}l=Error(ee(426))}else if(Ji&&1&s.mode){var g=hl(o);if(null!==g){!(65536&g.flags)&&(g.flags|=256),pl(g,o,s,0,t),uo(il(l,s));break e}}i=l=il(l,s),4!==Iu&&(Iu=2),null===Du?Du=[i]:Du.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Mo(i,ul(0,l,t));break e;case 1:s=l;var v=i.type,y=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Hu&&Hu.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Mo(i,cl(i,s,t));break e}}i=i.return}while(null!==i)}gc(r)}catch(b){t=b,_u===r&&null!==r&&(_u=r=r.return);continue}break}}function cc(){var e=xu.current;return xu.current=tl,null===e?tl:e}function dc(){0!==Iu&&3!==Iu&&2!==Iu||(Iu=4),null===Tu||!(268435455&Mu)&&!(268435455&Au)||nc(Tu,Nu)}function hc(e,t){var r=Eu;Eu|=2;var n=cc();for(Tu===e&&Nu===t||(Bu=null,lc(e,t));;)try{pc();break}catch(a){uc(e,a)}if(vo(),Eu=r,xu.current=n,null!==_u)throw Error(ee(261));return Tu=null,Nu=0,Iu}function pc(){for(;null!==_u;)mc(_u)}function fc(){for(;null!==_u&&!Vt();)mc(_u)}function mc(e){var t=bu(e.alternate,e,Cu);e.memoizedProps=e.pendingProps,null===t?gc(e):_u=t,Su.current=null}function gc(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Vl(r,t)))return r.flags&=32767,void(_u=r);if(null===e)return Iu=6,void(_u=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Fl(r,t,Cu)))return void(_u=r);if(null!==(t=t.sibling))return void(_u=t);_u=t=e}while(null!==t);0===Iu&&(Iu=5)}function vc(e,t,r){var n=fr,a=ku.transition;try{ku.transition=null,fr=1,function(e,t,r,n){do{yc()}while(null!==Vu);if(6&Eu)throw Error(ee(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ee(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-tr(r),i=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~i}}(e,i),e===Tu&&(_u=Tu=null,Nu=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Fu||(Fu=!0,Tc(Kt,function(){return yc(),null})),i=!!(15990&r.flags),!!(15990&r.subtreeFlags)||i){i=ku.transition,ku.transition=null;var o=fr;fr=1;var s=Eu;Eu|=4,Su.current=null,function(e,t){if(Qa=Br,la(e=sa())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch(w){r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var p;d!==r||0!==a&&3!==d.nodeType||(s=o+a),d!==i||0!==n&&3!==d.nodeType||(l=o+n),3===d.nodeType&&(o+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===r&&++u===a&&(s=o),h===i&&++c===n&&(l=o),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ka={focusedElem:e,selectionRange:r},Br=!1,Yl=t;null!==Yl;)if(e=(t=Yl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Yl=e;else for(;null!==Yl;){t=Yl;try{var f=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==f){var m=f.memoizedProps,g=f.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:ho(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(ee(163))}}catch(w){wc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Yl=e;break}Yl=t.return}f=Xl,Xl=!1}(e,r),hu(r,e),ua(Ka),Br=!!Qa,Ka=Qa=null,e.current=r,fu(r),Wt(),Eu=s,fr=o,ku.transition=i}else e.current=r;if(Fu&&(Fu=!1,Vu=e,Wu=a),i=e.pendingLanes,0===i&&(Hu=null),function(e){if(er&&"function"==typeof er.onCommitFiberRoot)try{er.onCommitFiberRoot(Jt,e,void 0,!(128&~e.current.flags))}catch(t){}}(r.stateNode),Ju(e,$t()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(qu)throw qu=!1,e=Uu,Uu=null,e;!!(1&Wu)&&0!==e.tag&&yc(),i=e.pendingLanes,1&i?e===Gu?$u++:($u=0,Gu=e):$u=0,Pi()}(e,t,r,n)}finally{ku.transition=a,fr=n}return null}function yc(){if(null!==Vu){var e=mr(Wu),t=ku.transition,r=fr;try{if(ku.transition=null,fr=16>e?16:e,null===Vu)var n=!1;else{if(e=Vu,Vu=null,Wu=0,6&Eu)throw Error(ee(331));var a=Eu;for(Eu|=4,Yl=e.current;null!==Yl;){var i=Yl,o=i.child;if(16&Yl.flags){var s=i.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(Yl=u;null!==Yl;){var c=Yl;switch(c.tag){case 0:case 11:case 15:Zl(8,c,i)}var d=c.child;if(null!==d)d.return=c,Yl=d;else for(;null!==Yl;){var h=(c=Yl).sibling,p=c.return;if(tu(c),c===u){Yl=null;break}if(null!==h){h.return=p,Yl=h;break}Yl=p}}}var f=i.alternate;if(null!==f){var m=f.child;if(null!==m){f.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Yl=i}}if(2064&i.subtreeFlags&&null!==o)o.return=i,Yl=o;else e:for(;null!==Yl;){if(2048&(i=Yl).flags)switch(i.tag){case 0:case 11:case 15:Zl(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Yl=v;break e}Yl=i.return}}var y=e.current;for(Yl=y;null!==Yl;){var b=(o=Yl).child;if(2064&o.subtreeFlags&&null!==b)b.return=o,Yl=b;else e:for(o=y;null!==Yl;){if(2048&(s=Yl).flags)try{switch(s.tag){case 0:case 11:case 15:Jl(9,s)}}catch(x){wc(s,s.return,x)}if(s===o){Yl=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Yl=w;break e}Yl=s.return}}if(Eu=a,Pi(),er&&"function"==typeof er.onPostCommitFiberRoot)try{er.onPostCommitFiberRoot(Jt,e)}catch(x){}n=!0}return n}finally{fr=r,ku.transition=t}}return!1}function bc(e,t,r){e=Io(e,t=ul(0,t=il(r,t),1),1),t=Ku(),null!==e&&(hr(e,1,t),Ju(e,t))}function wc(e,t,r){if(3===e.tag)bc(e,e,r);else for(;null!==t;){if(3===t.tag){bc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Hu||!Hu.has(n))){t=Io(t,e=cl(t,e=il(r,e),1),1),e=Ku(),null!==t&&(hr(t,1,e),Ju(t,e));break}}t=t.return}}function xc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=Ku(),e.pingedLanes|=e.suspendedLanes&r,Tu===e&&(Nu&r)===r&&(4===Iu||3===Iu&&(130023424&Nu)===Nu&&500>$t()-Pu?lc(e,0):zu|=r),Ju(e,t)}function Sc(e,t){0===t&&(1&e.mode?(t=ir,!(130023424&(ir<<=1))&&(ir=4194304)):t=1);var r=Ku();null!==(e=To(e,t))&&(hr(e,t,r),Ju(e,r))}function kc(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Sc(e,r)}function Ec(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ee(314))}null!==n&&n.delete(t),Sc(e,r)}function Tc(e,t){return Ht(e,t)}function _c(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nc(e,t,r,n){return new _c(e,t,r,n)}function Cc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oc(e,t){var r=e.alternate;return null===r?((r=Nc(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ic(e,t,r,n,a,i){var o=2;if(n=e,"function"==typeof e)Cc(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case ye:return Rc(r.children,a,i,t);case be:o=8,a|=8;break;case we:return(e=Nc(12,r,t,2|a)).elementType=we,e.lanes=i,e;case Ee:return(e=Nc(13,r,t,a)).elementType=Ee,e.lanes=i,e;case Te:return(e=Nc(19,r,t,a)).elementType=Te,e.lanes=i,e;case Ce:return Mc(r,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case xe:o=10;break e;case Se:o=9;break e;case ke:o=11;break e;case _e:o=14;break e;case Ne:o=16,n=null;break e}throw Error(ee(130,null==e?e:typeof e,""))}return(t=Nc(o,r,t,a)).elementType=e,t.type=n,t.lanes=i,t}function Rc(e,t,r,n){return(e=Nc(7,e,n,t)).lanes=r,e}function Mc(e,t,r,n){return(e=Nc(22,e,n,t)).elementType=Ce,e.lanes=r,e.stateNode={isHidden:!1},e}function Ac(e,t,r){return(e=Nc(6,e,null,t)).lanes=r,e}function zc(e,t,r){return(t=Nc(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dc(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dr(0),this.expirationTimes=dr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dr(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Lc(e,t,r,n,a,i,o,s,l){return e=new Dc(e,t,r,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},No(i),e}function Pc(e){if(!e)return Si;e:{if(Pt(e=e._reactInternals)!==e||1!==e.tag)throw Error(ee(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ni(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ee(171))}if(1===e.tag){var r=e.type;if(Ni(r))return Ii(e,r,t)}return t}function jc(e,t,r,n,a,i,o,s,l){return(e=Lc(r,n,!0,e,0,i,0,s,l)).context=Pc(null),r=e.current,(i=Oo(n=Ku(),a=Xu(r))).callback=null!=t?t:null,Io(r,i,a),e.current.lanes=a,hr(e,a,n),Ju(e,n),e}function Bc(e,t,r,n){var a=t.current,i=Ku(),o=Xu(a);return r=Pc(r),null===t.context?t.context=r:t.pendingContext=r,(t=Oo(i,o)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Io(a,t,o))&&(Zu(e,a,o,i),Ro(e,a,o)),o}function qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Hc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}bu=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ei.current)ml=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ml=!1,function(e,t,r){switch(t.tag){case 3:Tl(t),lo();break;case 5:ts(t);break;case 1:Ni(t.type)&&Ri(t);break;case 4:Jo(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;xi(po,n._currentValue),n._currentValue=a;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(xi(ns,1&ns.current),t.flags|=128,null):0!==(r&t.child.childLanes)?Al(e,t,r):(xi(ns,1&ns.current),null!==(e=ql(e,t,r))?e.sibling:null);xi(ns,1&ns.current);break;case 19:if(n=0!==(r&t.childLanes),128&e.flags){if(n)return jl(e,t,r);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),xi(ns,ns.current),n)break;return null;case 22:case 23:return t.lanes=0,wl(e,t,r)}return ql(e,t,r)}(e,t,r);ml=!!(131072&e.flags)}else ml=!1,Ji&&1048576&t.flags&&Yi(t,Ui,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bl(e,t),e=t.pendingProps;var a=_i(t,ki.current);wo(t,r),a=bs(null,t,n,e,a,r);var i=ws();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ni(n)?(i=!0,Ri(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,No(t),a.updater=Po,t.stateNode=a,a._reactInternals=t,Uo(t,n,e,r),t=El(null,t,n,!0,i,r)):(t.tag=0,Ji&&i&&Qi(t),gl(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,n=(a=n._init)(n._payload),t.type=n,a=t.tag=function(e){if("function"==typeof e)return Cc(e)?1:0;if(null!=e){if((e=e.$$typeof)===ke)return 11;if(e===_e)return 14}return 2}(n),e=ho(n,e),a){case 0:t=Sl(null,t,n,e,r);break e;case 1:t=kl(null,t,n,e,r);break e;case 11:t=vl(null,t,n,e,r);break e;case 14:t=yl(null,t,n,ho(n.type,e),r);break e}throw Error(ee(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,Sl(e,t,n,a=t.elementType===n?a:ho(n,a),r);case 1:return n=t.type,a=t.pendingProps,kl(e,t,n,a=t.elementType===n?a:ho(n,a),r);case 3:e:{if(Tl(t),null===e)throw Error(ee(387));n=t.pendingProps,a=(i=t.memoizedState).element,Co(e,t),Ao(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated){if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=_l(e,t,n,r,a=il(Error(ee(423)),t));break e}if(n!==a){t=_l(e,t,n,r,a=il(Error(ee(424)),t));break e}for(Zi=ai(t.stateNode.containerInfo.firstChild),Xi=t,Ji=!0,eo=null,r=Go(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(lo(),n===a){t=ql(e,t,r);break e}gl(e,t,n,r)}t=t.child}return t;case 5:return ts(t),null===e&&ao(t),n=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,o=a.children,Xa(n,a)?o=null:null!==i&&Xa(n,i)&&(t.flags|=32),xl(e,t),gl(e,t,o,r),t.child;case 6:return null===e&&ao(t),null;case 13:return Al(e,t,r);case 4:return Jo(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=$o(t,null,n,r):gl(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,vl(e,t,n,a=t.elementType===n?a:ho(n,a),r);case 7:return gl(e,t,t.pendingProps,r),t.child;case 8:case 12:return gl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,xi(po,n._currentValue),n._currentValue=o,null!==i)if(ra(i.value,o)){if(i.children===a.children&&!Ei.current){t=ql(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){o=i.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===i.tag){(l=Oo(-1,r&-r)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,null!==(l=i.alternate)&&(l.lanes|=r),bo(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===i.tag)o=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(o=i.return))throw Error(ee(341));o.lanes|=r,null!==(s=o.alternate)&&(s.lanes|=r),bo(o,r,t),o=i.sibling}else o=i.child;if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===t){o=null;break}if(null!==(i=o.sibling)){i.return=o.return,o=i;break}o=o.return}i=o}gl(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,wo(t,r),n=n(a=xo(a)),t.flags|=1,gl(e,t,n,r),t.child;case 14:return a=ho(n=t.type,t.pendingProps),yl(e,t,n,a=ho(n.type,a),r);case 15:return bl(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ho(n,a),Bl(e,t),t.tag=1,Ni(n)?(e=!0,Ri(t)):e=!1,wo(t,r),Bo(t,n,a),Uo(t,n,a,r),El(null,t,n,!0,e,r);case 19:return jl(e,t,r);case 22:return wl(e,t,r)}throw Error(ee(156,t.tag))};var Fc="function"==typeof reportError?reportError:function(e){console.error(e)};function Vc(e){this._internalRoot=e}function Wc(e){this._internalRoot=e}function $c(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yc(){}function Qc(e,t,r,n,a){var i=r._reactRootContainer;if(i){var o=i;if("function"==typeof a){var s=a;a=function(){var e=qc(o);s.call(e)}}Bc(t,o,e,a)}else o=function(e,t,r,n,a){if(a){if("function"==typeof n){var i=n;n=function(){var e=qc(o);i.call(e)}}var o=jc(t,n,e,0,null,!1,0,"",Yc);return e._reactRootContainer=o,e[ui]=o.current,Pa(8===e.nodeType?e.parentNode:e),oc(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof n){var s=n;n=function(){var e=qc(l);s.call(e)}}var l=Lc(e,0,!1,null,0,!1,0,"",Yc);return e._reactRootContainer=l,e[ui]=l.current,Pa(8===e.nodeType?e.parentNode:e),oc(function(){Bc(t,l,r,n)}),l}(r,t,e,a,n);return qc(o)}Wc.prototype.render=Vc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ee(409));Bc(e,t,null,null)},Wc.prototype.unmount=Vc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;oc(function(){Bc(null,e,null,null)}),t[ui]=null}},Wc.prototype.unstable_scheduleHydration=function(e){if(e){var t=br();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Cr.length&&0!==t&&t<Cr[r].priority;r++);Cr.splice(r,0,e),0===r&&Mr(e)}},gr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=or(t.pendingLanes);0!==r&&(pr(t,1|r),Ju(t,$t()),!(6&Eu)&&(ju=$t()+500,Pi()))}break;case 13:oc(function(){var t=To(e,1);if(null!==t){var r=Ku();Zu(t,e,1,r)}}),Hc(e,1)}},vr=function(e){if(13===e.tag){var t=To(e,134217728);if(null!==t)Zu(t,e,134217728,Ku());Hc(e,134217728)}},yr=function(e){if(13===e.tag){var t=Xu(e),r=To(e,t);if(null!==r)Zu(r,e,t,Ku());Hc(e,t)}},br=function(){return fr},wr=function(e,t){var r=fr;try{return fr=e,t()}finally{fr=r}},vt=function(e,t,r){switch(t){case"input":if(Ge(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=gi(n);if(!a)throw Error(ee(90));He(n),Ge(n,a)}}}break;case"textarea":et(e,r);break;case"select":null!=(t=r.value)&&Xe(e,!!r.multiple,t,!1)}},kt=ic,Et=oc;var Kc={usingClientEntryPoint:!1,Events:[fi,mi,gi,xt,St,ic]},Xc={findFiberByHostInstance:pi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Zc={bundleType:Xc.bundleType,version:Xc.version,rendererPackageName:Xc.rendererPackageName,rendererConfig:Xc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:me.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qt(e))?null:e.stateNode},findFiberByHostInstance:Xc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jc.isDisabled&&Jc.supportsFiber)try{Jt=Jc.inject(Zc),er=Jc}catch(it){}}Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kc,Y.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$c(t))throw Error(ee(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ve,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},Y.createRoot=function(e,t){if(!$c(e))throw Error(ee(299));var r=!1,n="",a=Fc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Lc(e,1,!1,null,0,r,0,n,a),e[ui]=t.current,Pa(8===e.nodeType?e.parentNode:e),new Vc(t)},Y.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(ee(188));throw e=Object.keys(e).join(","),Error(ee(268,e))}return e=null===(e=qt(t))?null:e.stateNode},Y.flushSync=function(e){return oc(e)},Y.hydrate=function(e,t,r){if(!Gc(t))throw Error(ee(200));return Qc(null,e,t,!0,r)},Y.hydrateRoot=function(e,t,r){if(!$c(e))throw Error(ee(405));var n=null!=r&&r.hydratedSources||null,a=!1,i="",o=Fc;if(null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(o=r.onRecoverableError)),t=jc(t,null,e,1,null!=r?r:null,a,0,i,o),e[ui]=t.current,Pa(e),n)for(e=0;e<n.length;e++)a=(a=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Wc(t)},Y.render=function(e,t,r){if(!Gc(t))throw Error(ee(200));return Qc(null,e,t,!1,r)},Y.unmountComponentAtNode=function(e){if(!Gc(e))throw Error(ee(40));return!!e._reactRootContainer&&(oc(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,e[ui]=null})}),!0)},Y.unstable_batchedUpdates=ic,Y.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Gc(r))throw Error(ee(200));if(null==e||void 0===e._reactInternals)throw Error(ee(38));return Qc(e,t,r,!1,n)},Y.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),G.exports=Y;var ed,td=G.exports;ed=td.createRoot,td.hydrateRoot;const rd=j.createContext({dragDropManager:void 0});function nd(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ad="function"==typeof Symbol&&Symbol.observable||"@@observable",id=function(){return Math.random().toString(36).substring(7).split("").join(".")},od={INIT:"@@redux/INIT"+id(),REPLACE:"@@redux/REPLACE"+id(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+id()}};function sd(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(nd(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(nd(1));return r(sd)(e,t)}if("function"!=typeof e)throw new Error(nd(2));var a=e,i=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error(nd(3));return i}function d(e){if("function"!=typeof e)throw new Error(nd(4));if(l)throw new Error(nd(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(nd(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),o=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(nd(7));if(void 0===e.type)throw new Error(nd(8));if(l)throw new Error(nd(9));try{l=!0,i=a(i,e)}finally{l=!1}for(var t=o=s,r=0;r<t.length;r++){(0,t[r])()}return e}return h({type:od.INIT}),(n={dispatch:h,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(nd(10));a=e,h({type:od.REPLACE})}})[ad]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(nd(11));function r(){e.next&&e.next(c())}return r(),{unsubscribe:t(r)}}})[ad]=function(){return this},e},n}function ld(e,t,...r){if("undefined"!=typeof process&&"production"===process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,function(){return r[n++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function ud(e){return"object"==typeof e}const cd="dnd-core/INIT_COORDS",dd="dnd-core/BEGIN_DRAG",hd="dnd-core/PUBLISH_DRAG_SOURCE",pd="dnd-core/HOVER",fd="dnd-core/DROP",md="dnd-core/END_DRAG";function gd(e,t){return{type:cd,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const vd={type:cd,payload:{clientOffset:null,sourceClientOffset:null}};function yd(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:a,getSourceClientOffset:i}=r,o=e.getMonitor(),s=e.getRegistry();e.dispatch(gd(a)),function(e,t,r){ld(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){ld(r.getSource(e),"Expected sourceIds to be registered.")})}(t,o,s);const l=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,o);if(null==l)return void e.dispatch(vd);let u=null;if(a){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){ld("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(l)}e.dispatch(gd(a,u));const c=s.getSource(l).beginDrag(o,l);if(null==c)return;!function(e){ld(ud(e),"Item must be an object.")}(c),s.pinSource(l);const d=s.getSourceType(l);return{type:dd,payload:{itemType:d,item:c,sourceId:l,clientOffset:a||null,sourceClientOffset:u||null,isSourcePublic:!!n}}}}function bd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){bd(e,t,r[t])})}return e}function xd(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){ld(e.isDragging(),"Cannot call drop while not dragging."),ld(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r);const a=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r);a.forEach((a,i)=>{const o=function(e,t,r,n){const a=r.getTarget(e);let i=a?a.drop(n,e):void 0;(function(e){ld(void 0===e||ud(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:n.getDropResult());return i}(a,i,n,r),s={type:fd,payload:{dropResult:wd({},t,o)}};e.dispatch(s)})}}function Sd(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){ld(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const n=t.getSourceId();if(null!=n){r.getSource(n,!0).endDrag(t,n),r.unpinSource()}return{type:md}}}function kd(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function Ed(e){return function(t,{clientOffset:r}={}){!function(e){ld(Array.isArray(e),"Expected targetIds to be an array.")}(t);const n=t.slice(0),a=e.getMonitor(),i=e.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){const a=e[n];kd(t.getTargetType(a),r)||e.splice(n,1)}}(n,i,a.getItemType()),function(e,t,r){ld(t.isDragging(),"Cannot call hover while not dragging."),ld(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const t=e[n];ld(e.lastIndexOf(t)===n,"Expected targetIds to be unique in the passed array.");ld(r.getTarget(t),"Expected targetIds to be registered.")}}(n,a,i),function(e,t,r){e.forEach(function(e){r.getTarget(e).hover(t,e)})}(n,a,i),{type:pd,payload:{targetIds:n,clientOffset:r||null}}}}function Td(e){return function(){if(e.getMonitor().isDragging())return{type:hd}}}class _d{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const r=function(e){return{beginDrag:yd(e),publishDragSource:Td(e),hover:Ed(e),drop:xd(e),endDrag:Sd(e)}}(this);return Object.keys(r).reduce((n,a)=>{const i=r[a];var o;return n[a]=(o=i,(...r)=>{const n=o.apply(e,r);void 0!==n&&t(n)}),n},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function Nd(e,t){return{x:e.x-t.x,y:e.y-t.y}}const Cd=[],Od=[];Cd.__IS_NONE__=!0,Od.__IS_ALL__=!0;class Id{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;ld("function"==typeof e,"listener must be a function."),ld(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),a=t.stateId;try{const i=a===n||a===n+1&&!function(e,t){return e!==Cd&&(e===Od||void 0===t||(r=e,t.filter(e=>r.indexOf(e)>-1)).length>0);var r}(t.dirtyHandlerIds,r);i||e()}finally{n=a}})}subscribeToOffsetChange(e){ld("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return ld(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(ld(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return kd(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(ld(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),a=this.getItemType();if(a&&!kd(n,a))return!1;const i=this.getTargetIds();if(!i.length)return!1;const o=i.indexOf(e);return r?o===i.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?Nd(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,n),r):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?Nd(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const Rd="undefined"!=typeof global?global:self,Md=Rd.MutationObserver||Rd.WebKitMutationObserver;function Ad(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}const zd="function"==typeof Md?function(e){let t=1;const r=new Md(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:Ad;class Dd{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Ld=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=zd(this.flush),this.requestErrorThrow=Ad(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Pd=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new Dd(this.onError,e=>t[t.length]=e);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(Ld.registerPendingError);const jd="dnd-core/ADD_SOURCE",Bd="dnd-core/ADD_TARGET",qd="dnd-core/REMOVE_SOURCE",Ud="dnd-core/REMOVE_TARGET";function Hd(e,t){t&&Array.isArray(e)?e.forEach(e=>Hd(e,!1)):ld("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Fd,Vd;(Vd=Fd||(Fd={})).SOURCE="SOURCE",Vd.TARGET="TARGET";let Wd=0;function $d(e){const t=(Wd++).toString();switch(e){case Fd.SOURCE:return`S${t}`;case Fd.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Gd(e){switch(e[0]){case"S":return Fd.SOURCE;case"T":return Fd.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Yd(e,t){const r=e.entries();let n=!1;do{const{done:e,value:[,a]}=r.next();if(a===t)return!0;n=!!e}while(!n);return!1}class Qd{addSource(e,t){Hd(e),function(e){ld("function"==typeof e.canDrag,"Expected canDrag to be a function."),ld("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),ld("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(Fd.SOURCE,e,t);return this.store.dispatch(function(e){return{type:jd,payload:{sourceId:e}}}(r)),r}addTarget(e,t){Hd(e,!0),function(e){ld("function"==typeof e.canDrop,"Expected canDrop to be a function."),ld("function"==typeof e.hover,"Expected hover to be a function."),ld("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(Fd.TARGET,e,t);return this.store.dispatch(function(e){return{type:Bd,payload:{targetId:e}}}(r)),r}containsHandler(e){return Yd(this.dragSources,e)||Yd(this.dropTargets,e)}getSource(e,t=!1){ld(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return ld(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return ld(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return ld(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Gd(e)===Fd.SOURCE}isTargetId(e){return Gd(e)===Fd.TARGET}removeSource(e){var t;ld(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:qd,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Ld.enqueueTask(Pd.create(t))}removeTarget(e){ld(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Ud,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);ld(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){ld(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=$d(e);return this.types.set(n,t),e===Fd.SOURCE?this.dragSources.set(n,r):e===Fd.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Kd=(e,t)=>e===t;function Xd(e=Cd,t){switch(t.type){case pd:break;case jd:case Bd:case Ud:case qd:return Cd;default:return Od}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,a=function(e,t){const r=new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const a=[];return r.forEach((e,t)=>{1===e&&a.push(t)}),a}(r,n),i=a.length>0||!function(e,t,r=Kd){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(r,n);if(!i)return Cd;const o=n[n.length-1],s=r[r.length-1];return o!==s&&(o&&a.push(o),s&&a.push(s)),a}function Zd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jd={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function eh(e=Jd,t){const{payload:r}=t;switch(t.type){case cd:case dd:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case pd:return n=e.clientOffset,a=r.clientOffset,!n&&!a||n&&a&&n.x===a.x&&n.y===a.y?e:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Zd(e,t,r[t])})}return e}({},e,{clientOffset:r.clientOffset});case md:case fd:return Jd;default:return e}var n,a}function th(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){th(e,t,r[t])})}return e}const nh={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ah(e=nh,t){const{payload:r}=t;switch(t.type){case dd:return rh({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case hd:return rh({},e,{isSourcePublic:!0});case pd:return rh({},e,{targetIds:r.targetIds});case Ud:return-1===e.targetIds.indexOf(r.targetId)?e:rh({},e,{targetIds:(n=e.targetIds,a=r.targetId,n.filter(e=>e!==a))});case fd:return rh({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case md:return rh({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,a}function ih(e=0,t){switch(t.type){case jd:case Bd:return e+1;case qd:case Ud:return e-1;default:return e}}function oh(e=0){return e+1}function sh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){sh(e,t,r[t])})}return e}function uh(e={},t){return{dirtyHandlerIds:Xd(e.dirtyHandlerIds,{type:t.type,payload:lh({},t.payload,{prevTargetIds:(r=e,n="dragOperation.targetIds",a=[],n.split(".").reduce((e,t)=>e&&e[t]?e[t]:a||null,r))})}),dragOffset:eh(e.dragOffset,t),refCount:ih(e.refCount,t),dragOperation:ah(e.dragOperation,t),stateId:oh(e.stateId)};var r,n,a}function ch(e,t=void 0,r={},n=!1){const a=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return sd(uh,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),i=new Id(a,new Qd(a)),o=new _d(a,i),s=e(o,t,r);return o.receiveBackend(s),o}function dh(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}let hh=0;const ph=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var fh=j.memo(function(e){var{children:t}=e,r=dh(e,["children"]);const[n,a]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=mh(),r,n){const a=t;a[ph]||(a[ph]={dragDropManager:ch(e,t,r,n)});return a[ph]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(r);return j.useEffect(()=>{if(a){const e=mh();return++hh,()=>{0===--hh&&(e[ph]=null)}}},[]),$.jsx(rd.Provider,{value:n,children:t})});function mh(){return"undefined"!=typeof global?global:window}var gh=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!==a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!==a--;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;0!==a--;){var o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r};const vh=e(gh),yh="undefined"!=typeof window?j.useLayoutEffect:j.useEffect;function bh(e,t,r){const[n,a]=function(e,t,r){const[n,a]=j.useState(()=>t(e)),i=j.useCallback(()=>{const i=t(e);vh(n,i)||(a(i),r&&r())},[n,e,r]);return yh(i),[n,i]}(e,t,r);return yh(function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})},[e,a]),n}function wh(e,t,r){return bh(t,e||(()=>({})),()=>r.reconnect())}function xh(e,t){const r=[...t||[]];return null==t&&"function"!=typeof e&&r.push(e),j.useMemo(()=>"function"==typeof e?e():e,r)}function Sh(e){return j.useMemo(()=>e.hooks.dragSource(),[e])}function kh(e){return j.useMemo(()=>e.hooks.dragPreview(),[e])}let Eh=!1,Th=!1;class _h{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){ld(!Eh,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Eh=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Eh=!1}}isDragging(){if(!this.sourceId)return!1;ld(!Th,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Th=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Th=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Nh=!1;class Ch{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;ld(!Nh,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Nh=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Nh=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function Oh(e,t,r,n){let a=r?r.call(n,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<i.length;l++){const o=i[l];if(!s(o))return!1;const u=e[o],c=t[o];if(a=r?r.call(n,u,c,o):void 0,!1===a||void 0===a&&u!==c)return!1}return!0}function Ih(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Rh(e){return(t=null,r=null)=>{if(!j.isValidElement(t)){const n=t;return e(n,r),n}const n=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(n);return function(e,t){const r=e.ref;return ld("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?j.cloneElement(e,{ref:e=>{Ah(r,e),Ah(t,e)}}):j.cloneElement(e,{ref:t})}(n,r?t=>e(t,r):e)}}function Mh(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=Rh(n);t[r]=()=>e}}),t}function Ah(e,t){"function"==typeof e?e(t):e.current=t}class zh{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Oh(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Oh(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Mh({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Ih(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Ih(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Dh{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Oh(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Mh({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Ih(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Lh(){const{dragDropManager:e}=j.useContext(rd);return ld(null!=e,"Expected drag drop context"),e}class Ph{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return r="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=r?r:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const r=this.spec,n=this.monitor,{isDragging:a}=r;return a?a(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:n}=e;n&&n(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function jh(e,t,r){const n=Lh(),a=function(e,t,r){const n=j.useMemo(()=>new Ph(e,t,r),[t,r]);return j.useEffect(()=>{n.spec=e},[e]),n}(e,t,r),i=function(e){return j.useMemo(()=>{const t=e.type;return ld(null!=t,"spec.type must be defined"),t},[e])}(e);yh(function(){if(null!=i){const[e,o]=function(e,t,r){const n=r.getRegistry(),a=n.addSource(e,t);return[a,()=>n.removeSource(a)]}(i,a,n);return t.receiveHandlerId(e),r.receiveHandlerId(e),o}},[n,t,r,a,i])}function Bh(e,t){const r=xh(e,t);ld(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=function(){const e=Lh();return j.useMemo(()=>new _h(e),[e])}(),a=function(e,t){const r=Lh(),n=j.useMemo(()=>new zh(r.getBackend()),[r]);return yh(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),yh(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}(r.options,r.previewOptions);return jh(r,n,a),[wh(r.collect,n,a),Sh(a),kh(a)]}function qh(e){return j.useMemo(()=>e.hooks.dropTarget(),[e])}class Uh{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function Hh(e,t,r){const n=Lh(),a=function(e,t){const r=j.useMemo(()=>new Uh(e,t),[t]);return j.useEffect(()=>{r.spec=e},[e]),r}(e,t),i=function(e){const{accept:t}=e;return j.useMemo(()=>(ld(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}(e);yh(function(){const[e,o]=function(e,t,r){const n=r.getRegistry(),a=n.addTarget(e,t);return[a,()=>n.removeTarget(a)]}(i,a,n);return t.receiveHandlerId(e),r.receiveHandlerId(e),o},[n,t,a,r,i.map(e=>e.toString()).join("|")])}function Fh(e,t){const r=xh(e,t),n=function(){const e=Lh();return j.useMemo(()=>new Ch(e),[e])}(),a=function(e){const t=Lh(),r=j.useMemo(()=>new Dh(t.getBackend()),[t]);return yh(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}(r.options);return Hh(r,n,a),[wh(r.collect,n,a),qh(a)]}function Vh(e){let t=null;return()=>(null==t&&(t=e()),t)}class Wh{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const a=[];return r.forEach(e=>a.push(e)),a}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter(e=>e!==n)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class $h{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Gh="__NATIVE_FILE__",Yh="__NATIVE_URL__",Qh="__NATIVE_TEXT__",Kh="__NATIVE_HTML__",Xh=Object.freeze(Object.defineProperty({__proto__:null,FILE:Gh,HTML:Kh,TEXT:Qh,URL:Yh},Symbol.toStringTag,{value:"Module"}));function Zh(e,t,r){const n=t.reduce((t,r)=>t||e.getData(r),"");return null!=n?n:r}const Jh={[Gh]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Kh]:{exposeProperties:{html:(e,t)=>Zh(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Yh]:{exposeProperties:{urls:(e,t)=>Zh(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Qh]:{exposeProperties:{text:(e,t)=>Zh(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function ep(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Jh).filter(e=>{const r=Jh[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}const tp=Vh(()=>/firefox/i.test(navigator.userAgent)),rp=Vh(()=>Boolean(window.safari));class np{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:a,c3s:i}=this;let o=t.length-1;if(e===t[o])return r[o];let s,l=0,u=i.length-1;for(;l<=u;){s=Math.floor(.5*(l+u));const n=t[s];if(n<e)l=s+1;else{if(!(n>e))return r[s];u=s-1}}o=Math.max(0,u);const c=e-t[o],d=c*c;return r[o]+n[o]*c+a[o]*d+i[o]*c*d}constructor(e,t){const{length:r}=e,n=[];for(let h=0;h<r;h++)n.push(h);n.sort((t,r)=>e[t]<e[r]?-1:1);const a=[],i=[];let o,s;for(let h=0;h<r-1;h++)o=e[h+1]-e[h],s=t[h+1]-t[h],a.push(o),i.push(s/o);const l=[i[0]];for(let h=0;h<a.length-1;h++){const e=i[h],t=i[h+1];if(e*t<=0)l.push(0);else{o=a[h];const r=a[h+1],n=o+r;l.push(3*n/((n+r)/e+(n+o)/t))}}l.push(i[i.length-1]);const u=[],c=[];let d;for(let h=0;h<l.length-1;h++){d=i[h];const e=l[h],t=1/a[h],r=e+l[h+1]-d-d;u.push((d-e-r)*t),c.push(r*t*t)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=c}}function ap(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function ip(e){return{x:e.clientX,y:e.clientY}}function op(e,t,r,n,a){const i="IMG"===(o=t).nodeName&&(tp()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(o)));var o,s;const l=ap(i?e:t),u={x:r.x-l.x,y:r.y-l.y},{offsetWidth:c,offsetHeight:d}=e,{anchorX:h,anchorY:p}=n,{dragPreviewWidth:f,dragPreviewHeight:m}=function(e,t,r,n){let a=e?t.width:r,i=e?t.height:n;return rp()&&e&&(i/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:i}}(i,t,c,d),{offsetX:g,offsetY:v}=a,y=0===v||v;return{x:0===g||g?g:new np([0,.5,1],[u.x,u.x/c*f,u.x+f-c]).interpolate(h),y:y?v:(()=>{let e=new np([0,.5,1],[u.y,u.y/d*m,u.y+m-d]).interpolate(p);return rp()&&i&&(e+=(window.devicePixelRatio-1)*m),e})()}}class sp{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function lp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function up(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){lp(e,t,r[t])})}return e}class cp{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),a=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",a),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),a=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",a),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",a)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return up({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return up({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Xh).some(t=>Xh[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=Jh[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new $h(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&ap(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=ip(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,a=ep(n);if(this.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),a=this.sourcePreviewNodes.get(e)||t;if(a){const{anchorX:e,anchorY:i,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=op(t,a,r,{anchorX:e,anchorY:i},{offsetX:o,offsetY:s});n.setDragImage(a,l.x,l.y)}}try{null==n||n.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(a)this.beginDragNativeItem(a);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=ep(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:ip(e)});t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=ip(e),this.scheduleHover(t);(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):ep(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:ip(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new sp(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Wh(this.isNodeInDocument)}}const dp=function(e,t,r){return new cp(e,t,r)},hp="en";function pp(e){if(null==e?void 0:e.language)return e.language;try{if("undefined"!=typeof localStorage){const e=localStorage.getItem("app-language");if(e)return e}}catch{}return hp}const fp={playerConfig:null,context:null,config:null,sections:[],currentSectionIndex:0,questions:[],currentQuestionIndex:0,answers:{},loading:!1,error:null,isDurationExpired:!1,language:hp,showFeedback:!1,attemptNumber:1},mp="SET_PLAYER_CONFIG",gp="SET_SECTIONS",vp="SET_QUESTIONS",yp="SET_CURRENT_SECTION",bp="SET_CURRENT_QUESTION",wp="STORE_ANSWER",xp="SET_LOADING",Sp="SET_ERROR",kp="SET_LANGUAGE",Ep="SET_SHOW_FEEDBACK",Tp="SET_ATTEMPT",_p="RESET_STATE",Np="CLEAR_ERROR";function Cp(e,t){switch(t.type){case mp:return{...e,playerConfig:t.payload,context:t.payload.context,config:t.payload.config,language:pp(t.payload.config)};case gp:return{...e,sections:t.payload,currentSectionIndex:0};case vp:return{...e,questions:t.payload,currentQuestionIndex:0,loading:!1};case yp:return{...e,currentSectionIndex:t.payload};case bp:return{...e,currentQuestionIndex:t.payload};case wp:{const{identifier:r,response:n}=t.payload,a={...e.answers};return a[r]=n,{...e,answers:a}}case xp:return{...e,loading:t.payload};case Sp:return{...e,error:t.payload,loading:!1};case kp:return{...e,language:t.payload};case Ep:return{...e,showFeedback:t.payload};case Tp:return{...e,attemptNumber:t.payload};case _p:return fp;case Np:return{...e,error:null};default:return e}}const Op=j.createContext(null);function Ip({children:e,playerConfig:t}){const[r,n]=j.useReducer(Cp,{...fp,language:pp(null==t?void 0:t.config)}),a=j.useCallback(e=>{n({type:mp,payload:e})},[]),i=j.useCallback(e=>{n({type:gp,payload:e})},[]),o=j.useCallback(e=>{n({type:vp,payload:e})},[]),s=j.useCallback(e=>{n({type:yp,payload:e})},[]),l=j.useCallback(e=>{n({type:bp,payload:e})},[]),u=j.useCallback((e,t)=>{n({type:wp,payload:{identifier:e,response:t}})},[]),c=j.useCallback(e=>{n({type:xp,payload:e})},[]),d=j.useCallback(e=>{n({type:Sp,payload:e})},[]),h=j.useCallback(()=>{n({type:Np})},[]),p=j.useCallback(e=>{n({type:kp,payload:e})},[]),f=j.useCallback(e=>{n({type:Ep,payload:e})},[]),m=j.useCallback(e=>{n({type:Tp,payload:e})},[]),g=j.useCallback(()=>{n({type:_p})},[]),v=j.useMemo(()=>({state:r,dispatch:n,setPlayerConfig:a,setSections:i,setQuestions:o,setCurrentSection:s,setCurrentQuestion:l,storeAnswer:u,setLoading:c,setError:d,clearError:h,setLanguage:p,setShowFeedback:f,setAttempt:m,resetState:g}),[r,a,i,o,s,l,u,c,d,h,p,f,g]);return $.jsx(Op.Provider,{value:v,children:e})}function Rp(){const e=j.useContext(Op);if(!e)throw new Error("useQuml must be used within QumlProvider");return e}let Mp=null;const Ap=new Set;function zp(e){Ap.forEach(t=>t(e))}function Dp(e){return!(!Mp||"function"!=typeof Mp.logEvent)&&(Mp.logEvent(e),!0)}function Lp(){return{logOptionSelected:j.useCallback((e,t)=>{!function(e){const t={eid:"INTERACT",edata:e,timestamp:Date.now()};Dp(t),zp(t)}({type:"CHOOSE",id:Array.isArray(t)?t.join(","):String(t),questionId:e})},[]),logAnswerSubmitted:j.useCallback((e,t,r,n=1)=>{!function(e){const t={eid:"ASSESS",edata:e,timestamp:Date.now()};Dp(t),zp(t)}({type:"assess",questionId:e,maxScore:n,score:r})},[]),logPageViewed:j.useCallback(e=>{!function(e){const t={eid:"IMPRESSION",edata:e,timestamp:Date.now()};Dp(t),zp(t)}({pageId:e})},[])}}class Pp{constructor(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new Pp(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class jp{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new jp(t,Pp.range(this,e))}}class Bp{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,n,a="KaTeX parse error: "+e,i=t&&t.loc;if(i&&i.start<=i.end){var o=i.lexer.input;r=i.start,n=i.end,r===o.length?a+=" at end of input: ":a+=" at position "+(r+1)+": ";var s=o.slice(r,n).replace(/[^]/g,"$&̲");a+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+s+(n+15<o.length?o.slice(n,n+15)+"…":o.slice(n))}var l=new Error(a);return l.name="ParseError",l.__proto__=Bp.prototype,l.position=r,null!=r&&null!=n&&(l.length=n-r),l.rawMessage=e,l}}Bp.prototype.__proto__=Error.prototype;var qp=/([A-Z])/g,Up={"&":"&",">":">","<":"<",'"':""","'":"'"},Hp=/[&><"']/g;var Fp=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},Vp={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(Hp,e=>Up[e])},hyphenate:function(e){return e.replace(qp,"-$1").toLowerCase()},getBaseElem:Fp,isCharacterBox:function(e){var t=Fp(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},Wp={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function $p(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Gp{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},Wp)if(Wp.hasOwnProperty(t)){var r=Wp[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:$p(r)}}reportNonstrict(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new Bp("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(a){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=Vp.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var r="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(r)}}class Yp{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return Qp[Kp[this.id]]}sub(){return Qp[Xp[this.id]]}fracNum(){return Qp[Zp[this.id]]}fracDen(){return Qp[Jp[this.id]]}cramp(){return Qp[ef[this.id]]}text(){return Qp[tf[this.id]]}isTight(){return this.size>=2}}var Qp=[new Yp(0,0,!1),new Yp(1,0,!0),new Yp(2,1,!1),new Yp(3,1,!0),new Yp(4,2,!1),new Yp(5,2,!0),new Yp(6,3,!1),new Yp(7,3,!0)],Kp=[4,5,4,5,6,7,6,7],Xp=[5,5,5,5,7,7,7,7],Zp=[2,3,4,5,6,7,6,7],Jp=[3,3,5,5,7,7,7,7],ef=[1,1,3,3,5,5,7,7],tf=[0,1,2,3,2,3,2,3],rf={DISPLAY:Qp[0],TEXT:Qp[2],SCRIPT:Qp[4],SCRIPTSCRIPT:Qp[6]},nf=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var af=[];function of(e){for(var t=0;t<af.length;t+=2)if(e>=af[t]&&e<=af[t+1])return!0;return!1}nf.forEach(e=>e.blocks.forEach(e=>af.push(...e)));var sf=80,lf={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class uf{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Vp.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var cf={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},df={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},hf={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function pf(e,t,r){if(!cf[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=cf[t][n];if(!a&&e[0]in hf&&(n=hf[e[0]].charCodeAt(0),a=cf[t][n]),a||"text"!==r||of(n)&&(a=cf[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var ff={};var mf=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],gf=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],vf=function(e,t){return t.size<2?e:mf[e-1][t.size-1]};class yf{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||yf.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=gf[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new yf(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:vf(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:gf[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=vf(yf.BASESIZE,e);return this.size===t&&this.textSize===yf.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==yf.BASESIZE?["sizing","reset-size"+this.size,"size"+yf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!ff[t=e>=5?0:e>=3?1:2]){var r=ff[t]={cssEmPerMu:df.quad[t]/18};for(var n in df)df.hasOwnProperty(n)&&(r[n]=df[n][t])}return ff[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}yf.BASESIZE=6;var bf={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},wf={ex:!0,em:!0,mu:!0},xf=function(e){return"string"!=typeof e&&(e=e.unit),e in bf||e in wf||"ex"===e},Sf=function(e,t){var r;if(e.unit in bf)r=bf[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var n;if(n=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new Bp("Invalid unit: '"+e.unit+"'");r=n.fontMetrics().quad}n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},kf=function(e){return+e.toFixed(4)+"em"},Ef=function(e){return e.filter(e=>e).join(" ")},Tf=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},_f=function(e){var t=document.createElement(e);for(var r in t.className=Ef(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t},Nf=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+Vp.escape(Ef(this.classes))+'"');var r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=Vp.hyphenate(n)+":"+this.style[n]+";");for(var a in r&&(t+=' style="'+Vp.escape(r)+'"'),this.attributes)this.attributes.hasOwnProperty(a)&&(t+=" "+a+'="'+Vp.escape(this.attributes[a])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"};class Cf{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Tf.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Vp.contains(this.classes,e)}toNode(){return _f.call(this,"span")}toMarkup(){return Nf.call(this,"span")}}class Of{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Tf.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Vp.contains(this.classes,e)}toNode(){return _f.call(this,"a")}toMarkup(){return Nf.call(this,"a")}}class If{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return Vp.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+Vp.escape(this.src)+'" alt="'+Vp.escape(this.alt)+'"',t="";for(var r in this.style)this.style.hasOwnProperty(r)&&(t+=Vp.hyphenate(r)+":"+this.style[r]+";");return t&&(e+=' style="'+Vp.escape(t)+'"'),e+="'/>"}}var Rf={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class Mf{constructor(e,t,r,n,a,i,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=r||0,this.italic=n||0,this.skew=a||0,this.width=i||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<nf.length;t++)for(var r=nf[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Rf[this.text])}hasClass(e){return Vp.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=kf(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=Ef(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=Vp.escape(Ef(this.classes)),t+='"');var r="";for(var n in this.italic>0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=Vp.hyphenate(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+Vp.escape(r)+'"');var a=Vp.escape(this.text);return e?(t+=">",t+=a,t+="</span>"):a}}class Af{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+Vp.escape(this.attributes[t])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>"}}class zf{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",lf[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+Vp.escape(this.alternate)+'"/>':'<path d="'+Vp.escape(lf[this.pathName])+'"/>'}}class Df{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+Vp.escape(this.attributes[t])+'"');return e+="/>"}}function Lf(e){if(e instanceof Mf)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var Pf={bin:1,close:1,inner:1,open:1,punct:1,rel:1},jf={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Bf={math:{},text:{}};function qf(e,t,r,n,a,i){Bf[e][a]={font:t,group:r,replace:n},i&&n&&(Bf[e][n]=Bf[e][a])}var Uf="math",Hf="text",Ff="main",Vf="ams",Wf="accent-token",$f="bin",Gf="close",Yf="inner",Qf="mathord",Kf="op-token",Xf="open",Zf="punct",Jf="rel",em="spacing",tm="textord";qf(Uf,Ff,Jf,"≡","\\equiv",!0),qf(Uf,Ff,Jf,"≺","\\prec",!0),qf(Uf,Ff,Jf,"≻","\\succ",!0),qf(Uf,Ff,Jf,"∼","\\sim",!0),qf(Uf,Ff,Jf,"⊥","\\perp"),qf(Uf,Ff,Jf,"⪯","\\preceq",!0),qf(Uf,Ff,Jf,"⪰","\\succeq",!0),qf(Uf,Ff,Jf,"≃","\\simeq",!0),qf(Uf,Ff,Jf,"∣","\\mid",!0),qf(Uf,Ff,Jf,"≪","\\ll",!0),qf(Uf,Ff,Jf,"≫","\\gg",!0),qf(Uf,Ff,Jf,"≍","\\asymp",!0),qf(Uf,Ff,Jf,"∥","\\parallel"),qf(Uf,Ff,Jf,"⋈","\\bowtie",!0),qf(Uf,Ff,Jf,"⌣","\\smile",!0),qf(Uf,Ff,Jf,"⊑","\\sqsubseteq",!0),qf(Uf,Ff,Jf,"⊒","\\sqsupseteq",!0),qf(Uf,Ff,Jf,"≐","\\doteq",!0),qf(Uf,Ff,Jf,"⌢","\\frown",!0),qf(Uf,Ff,Jf,"∋","\\ni",!0),qf(Uf,Ff,Jf,"∝","\\propto",!0),qf(Uf,Ff,Jf,"⊢","\\vdash",!0),qf(Uf,Ff,Jf,"⊣","\\dashv",!0),qf(Uf,Ff,Jf,"∋","\\owns"),qf(Uf,Ff,Zf,".","\\ldotp"),qf(Uf,Ff,Zf,"⋅","\\cdotp"),qf(Uf,Ff,tm,"#","\\#"),qf(Hf,Ff,tm,"#","\\#"),qf(Uf,Ff,tm,"&","\\&"),qf(Hf,Ff,tm,"&","\\&"),qf(Uf,Ff,tm,"ℵ","\\aleph",!0),qf(Uf,Ff,tm,"∀","\\forall",!0),qf(Uf,Ff,tm,"ℏ","\\hbar",!0),qf(Uf,Ff,tm,"∃","\\exists",!0),qf(Uf,Ff,tm,"∇","\\nabla",!0),qf(Uf,Ff,tm,"♭","\\flat",!0),qf(Uf,Ff,tm,"ℓ","\\ell",!0),qf(Uf,Ff,tm,"♮","\\natural",!0),qf(Uf,Ff,tm,"♣","\\clubsuit",!0),qf(Uf,Ff,tm,"℘","\\wp",!0),qf(Uf,Ff,tm,"♯","\\sharp",!0),qf(Uf,Ff,tm,"♢","\\diamondsuit",!0),qf(Uf,Ff,tm,"ℜ","\\Re",!0),qf(Uf,Ff,tm,"♡","\\heartsuit",!0),qf(Uf,Ff,tm,"ℑ","\\Im",!0),qf(Uf,Ff,tm,"♠","\\spadesuit",!0),qf(Uf,Ff,tm,"§","\\S",!0),qf(Hf,Ff,tm,"§","\\S"),qf(Uf,Ff,tm,"¶","\\P",!0),qf(Hf,Ff,tm,"¶","\\P"),qf(Uf,Ff,tm,"†","\\dag"),qf(Hf,Ff,tm,"†","\\dag"),qf(Hf,Ff,tm,"†","\\textdagger"),qf(Uf,Ff,tm,"‡","\\ddag"),qf(Hf,Ff,tm,"‡","\\ddag"),qf(Hf,Ff,tm,"‡","\\textdaggerdbl"),qf(Uf,Ff,Gf,"⎱","\\rmoustache",!0),qf(Uf,Ff,Xf,"⎰","\\lmoustache",!0),qf(Uf,Ff,Gf,"⟯","\\rgroup",!0),qf(Uf,Ff,Xf,"⟮","\\lgroup",!0),qf(Uf,Ff,$f,"∓","\\mp",!0),qf(Uf,Ff,$f,"⊖","\\ominus",!0),qf(Uf,Ff,$f,"⊎","\\uplus",!0),qf(Uf,Ff,$f,"⊓","\\sqcap",!0),qf(Uf,Ff,$f,"∗","\\ast"),qf(Uf,Ff,$f,"⊔","\\sqcup",!0),qf(Uf,Ff,$f,"◯","\\bigcirc",!0),qf(Uf,Ff,$f,"∙","\\bullet",!0),qf(Uf,Ff,$f,"‡","\\ddagger"),qf(Uf,Ff,$f,"≀","\\wr",!0),qf(Uf,Ff,$f,"⨿","\\amalg"),qf(Uf,Ff,$f,"&","\\And"),qf(Uf,Ff,Jf,"⟵","\\longleftarrow",!0),qf(Uf,Ff,Jf,"⇐","\\Leftarrow",!0),qf(Uf,Ff,Jf,"⟸","\\Longleftarrow",!0),qf(Uf,Ff,Jf,"⟶","\\longrightarrow",!0),qf(Uf,Ff,Jf,"⇒","\\Rightarrow",!0),qf(Uf,Ff,Jf,"⟹","\\Longrightarrow",!0),qf(Uf,Ff,Jf,"↔","\\leftrightarrow",!0),qf(Uf,Ff,Jf,"⟷","\\longleftrightarrow",!0),qf(Uf,Ff,Jf,"⇔","\\Leftrightarrow",!0),qf(Uf,Ff,Jf,"⟺","\\Longleftrightarrow",!0),qf(Uf,Ff,Jf,"↦","\\mapsto",!0),qf(Uf,Ff,Jf,"⟼","\\longmapsto",!0),qf(Uf,Ff,Jf,"↗","\\nearrow",!0),qf(Uf,Ff,Jf,"↩","\\hookleftarrow",!0),qf(Uf,Ff,Jf,"↪","\\hookrightarrow",!0),qf(Uf,Ff,Jf,"↘","\\searrow",!0),qf(Uf,Ff,Jf,"↼","\\leftharpoonup",!0),qf(Uf,Ff,Jf,"⇀","\\rightharpoonup",!0),qf(Uf,Ff,Jf,"↙","\\swarrow",!0),qf(Uf,Ff,Jf,"↽","\\leftharpoondown",!0),qf(Uf,Ff,Jf,"⇁","\\rightharpoondown",!0),qf(Uf,Ff,Jf,"↖","\\nwarrow",!0),qf(Uf,Ff,Jf,"⇌","\\rightleftharpoons",!0),qf(Uf,Vf,Jf,"≮","\\nless",!0),qf(Uf,Vf,Jf,"","\\@nleqslant"),qf(Uf,Vf,Jf,"","\\@nleqq"),qf(Uf,Vf,Jf,"⪇","\\lneq",!0),qf(Uf,Vf,Jf,"≨","\\lneqq",!0),qf(Uf,Vf,Jf,"","\\@lvertneqq"),qf(Uf,Vf,Jf,"⋦","\\lnsim",!0),qf(Uf,Vf,Jf,"⪉","\\lnapprox",!0),qf(Uf,Vf,Jf,"⊀","\\nprec",!0),qf(Uf,Vf,Jf,"⋠","\\npreceq",!0),qf(Uf,Vf,Jf,"⋨","\\precnsim",!0),qf(Uf,Vf,Jf,"⪹","\\precnapprox",!0),qf(Uf,Vf,Jf,"≁","\\nsim",!0),qf(Uf,Vf,Jf,"","\\@nshortmid"),qf(Uf,Vf,Jf,"∤","\\nmid",!0),qf(Uf,Vf,Jf,"⊬","\\nvdash",!0),qf(Uf,Vf,Jf,"⊭","\\nvDash",!0),qf(Uf,Vf,Jf,"⋪","\\ntriangleleft"),qf(Uf,Vf,Jf,"⋬","\\ntrianglelefteq",!0),qf(Uf,Vf,Jf,"⊊","\\subsetneq",!0),qf(Uf,Vf,Jf,"","\\@varsubsetneq"),qf(Uf,Vf,Jf,"⫋","\\subsetneqq",!0),qf(Uf,Vf,Jf,"","\\@varsubsetneqq"),qf(Uf,Vf,Jf,"≯","\\ngtr",!0),qf(Uf,Vf,Jf,"","\\@ngeqslant"),qf(Uf,Vf,Jf,"","\\@ngeqq"),qf(Uf,Vf,Jf,"⪈","\\gneq",!0),qf(Uf,Vf,Jf,"≩","\\gneqq",!0),qf(Uf,Vf,Jf,"","\\@gvertneqq"),qf(Uf,Vf,Jf,"⋧","\\gnsim",!0),qf(Uf,Vf,Jf,"⪊","\\gnapprox",!0),qf(Uf,Vf,Jf,"⊁","\\nsucc",!0),qf(Uf,Vf,Jf,"⋡","\\nsucceq",!0),qf(Uf,Vf,Jf,"⋩","\\succnsim",!0),qf(Uf,Vf,Jf,"⪺","\\succnapprox",!0),qf(Uf,Vf,Jf,"≆","\\ncong",!0),qf(Uf,Vf,Jf,"","\\@nshortparallel"),qf(Uf,Vf,Jf,"∦","\\nparallel",!0),qf(Uf,Vf,Jf,"⊯","\\nVDash",!0),qf(Uf,Vf,Jf,"⋫","\\ntriangleright"),qf(Uf,Vf,Jf,"⋭","\\ntrianglerighteq",!0),qf(Uf,Vf,Jf,"","\\@nsupseteqq"),qf(Uf,Vf,Jf,"⊋","\\supsetneq",!0),qf(Uf,Vf,Jf,"","\\@varsupsetneq"),qf(Uf,Vf,Jf,"⫌","\\supsetneqq",!0),qf(Uf,Vf,Jf,"","\\@varsupsetneqq"),qf(Uf,Vf,Jf,"⊮","\\nVdash",!0),qf(Uf,Vf,Jf,"⪵","\\precneqq",!0),qf(Uf,Vf,Jf,"⪶","\\succneqq",!0),qf(Uf,Vf,Jf,"","\\@nsubseteqq"),qf(Uf,Vf,$f,"⊴","\\unlhd"),qf(Uf,Vf,$f,"⊵","\\unrhd"),qf(Uf,Vf,Jf,"↚","\\nleftarrow",!0),qf(Uf,Vf,Jf,"↛","\\nrightarrow",!0),qf(Uf,Vf,Jf,"⇍","\\nLeftarrow",!0),qf(Uf,Vf,Jf,"⇏","\\nRightarrow",!0),qf(Uf,Vf,Jf,"↮","\\nleftrightarrow",!0),qf(Uf,Vf,Jf,"⇎","\\nLeftrightarrow",!0),qf(Uf,Vf,Jf,"△","\\vartriangle"),qf(Uf,Vf,tm,"ℏ","\\hslash"),qf(Uf,Vf,tm,"▽","\\triangledown"),qf(Uf,Vf,tm,"◊","\\lozenge"),qf(Uf,Vf,tm,"Ⓢ","\\circledS"),qf(Uf,Vf,tm,"®","\\circledR"),qf(Hf,Vf,tm,"®","\\circledR"),qf(Uf,Vf,tm,"∡","\\measuredangle",!0),qf(Uf,Vf,tm,"∄","\\nexists"),qf(Uf,Vf,tm,"℧","\\mho"),qf(Uf,Vf,tm,"Ⅎ","\\Finv",!0),qf(Uf,Vf,tm,"⅁","\\Game",!0),qf(Uf,Vf,tm,"‵","\\backprime"),qf(Uf,Vf,tm,"▲","\\blacktriangle"),qf(Uf,Vf,tm,"▼","\\blacktriangledown"),qf(Uf,Vf,tm,"■","\\blacksquare"),qf(Uf,Vf,tm,"⧫","\\blacklozenge"),qf(Uf,Vf,tm,"★","\\bigstar"),qf(Uf,Vf,tm,"∢","\\sphericalangle",!0),qf(Uf,Vf,tm,"∁","\\complement",!0),qf(Uf,Vf,tm,"ð","\\eth",!0),qf(Hf,Ff,tm,"ð","ð"),qf(Uf,Vf,tm,"╱","\\diagup"),qf(Uf,Vf,tm,"╲","\\diagdown"),qf(Uf,Vf,tm,"□","\\square"),qf(Uf,Vf,tm,"□","\\Box"),qf(Uf,Vf,tm,"◊","\\Diamond"),qf(Uf,Vf,tm,"¥","\\yen",!0),qf(Hf,Vf,tm,"¥","\\yen",!0),qf(Uf,Vf,tm,"✓","\\checkmark",!0),qf(Hf,Vf,tm,"✓","\\checkmark"),qf(Uf,Vf,tm,"ℶ","\\beth",!0),qf(Uf,Vf,tm,"ℸ","\\daleth",!0),qf(Uf,Vf,tm,"ℷ","\\gimel",!0),qf(Uf,Vf,tm,"ϝ","\\digamma",!0),qf(Uf,Vf,tm,"ϰ","\\varkappa"),qf(Uf,Vf,Xf,"┌","\\@ulcorner",!0),qf(Uf,Vf,Gf,"┐","\\@urcorner",!0),qf(Uf,Vf,Xf,"└","\\@llcorner",!0),qf(Uf,Vf,Gf,"┘","\\@lrcorner",!0),qf(Uf,Vf,Jf,"≦","\\leqq",!0),qf(Uf,Vf,Jf,"⩽","\\leqslant",!0),qf(Uf,Vf,Jf,"⪕","\\eqslantless",!0),qf(Uf,Vf,Jf,"≲","\\lesssim",!0),qf(Uf,Vf,Jf,"⪅","\\lessapprox",!0),qf(Uf,Vf,Jf,"≊","\\approxeq",!0),qf(Uf,Vf,$f,"⋖","\\lessdot"),qf(Uf,Vf,Jf,"⋘","\\lll",!0),qf(Uf,Vf,Jf,"≶","\\lessgtr",!0),qf(Uf,Vf,Jf,"⋚","\\lesseqgtr",!0),qf(Uf,Vf,Jf,"⪋","\\lesseqqgtr",!0),qf(Uf,Vf,Jf,"≑","\\doteqdot"),qf(Uf,Vf,Jf,"≓","\\risingdotseq",!0),qf(Uf,Vf,Jf,"≒","\\fallingdotseq",!0),qf(Uf,Vf,Jf,"∽","\\backsim",!0),qf(Uf,Vf,Jf,"⋍","\\backsimeq",!0),qf(Uf,Vf,Jf,"⫅","\\subseteqq",!0),qf(Uf,Vf,Jf,"⋐","\\Subset",!0),qf(Uf,Vf,Jf,"⊏","\\sqsubset",!0),qf(Uf,Vf,Jf,"≼","\\preccurlyeq",!0),qf(Uf,Vf,Jf,"⋞","\\curlyeqprec",!0),qf(Uf,Vf,Jf,"≾","\\precsim",!0),qf(Uf,Vf,Jf,"⪷","\\precapprox",!0),qf(Uf,Vf,Jf,"⊲","\\vartriangleleft"),qf(Uf,Vf,Jf,"⊴","\\trianglelefteq"),qf(Uf,Vf,Jf,"⊨","\\vDash",!0),qf(Uf,Vf,Jf,"⊪","\\Vvdash",!0),qf(Uf,Vf,Jf,"⌣","\\smallsmile"),qf(Uf,Vf,Jf,"⌢","\\smallfrown"),qf(Uf,Vf,Jf,"≏","\\bumpeq",!0),qf(Uf,Vf,Jf,"≎","\\Bumpeq",!0),qf(Uf,Vf,Jf,"≧","\\geqq",!0),qf(Uf,Vf,Jf,"⩾","\\geqslant",!0),qf(Uf,Vf,Jf,"⪖","\\eqslantgtr",!0),qf(Uf,Vf,Jf,"≳","\\gtrsim",!0),qf(Uf,Vf,Jf,"⪆","\\gtrapprox",!0),qf(Uf,Vf,$f,"⋗","\\gtrdot"),qf(Uf,Vf,Jf,"⋙","\\ggg",!0),qf(Uf,Vf,Jf,"≷","\\gtrless",!0),qf(Uf,Vf,Jf,"⋛","\\gtreqless",!0),qf(Uf,Vf,Jf,"⪌","\\gtreqqless",!0),qf(Uf,Vf,Jf,"≖","\\eqcirc",!0),qf(Uf,Vf,Jf,"≗","\\circeq",!0),qf(Uf,Vf,Jf,"≜","\\triangleq",!0),qf(Uf,Vf,Jf,"∼","\\thicksim"),qf(Uf,Vf,Jf,"≈","\\thickapprox"),qf(Uf,Vf,Jf,"⫆","\\supseteqq",!0),qf(Uf,Vf,Jf,"⋑","\\Supset",!0),qf(Uf,Vf,Jf,"⊐","\\sqsupset",!0),qf(Uf,Vf,Jf,"≽","\\succcurlyeq",!0),qf(Uf,Vf,Jf,"⋟","\\curlyeqsucc",!0),qf(Uf,Vf,Jf,"≿","\\succsim",!0),qf(Uf,Vf,Jf,"⪸","\\succapprox",!0),qf(Uf,Vf,Jf,"⊳","\\vartriangleright"),qf(Uf,Vf,Jf,"⊵","\\trianglerighteq"),qf(Uf,Vf,Jf,"⊩","\\Vdash",!0),qf(Uf,Vf,Jf,"∣","\\shortmid"),qf(Uf,Vf,Jf,"∥","\\shortparallel"),qf(Uf,Vf,Jf,"≬","\\between",!0),qf(Uf,Vf,Jf,"⋔","\\pitchfork",!0),qf(Uf,Vf,Jf,"∝","\\varpropto"),qf(Uf,Vf,Jf,"◀","\\blacktriangleleft"),qf(Uf,Vf,Jf,"∴","\\therefore",!0),qf(Uf,Vf,Jf,"∍","\\backepsilon"),qf(Uf,Vf,Jf,"▶","\\blacktriangleright"),qf(Uf,Vf,Jf,"∵","\\because",!0),qf(Uf,Vf,Jf,"⋘","\\llless"),qf(Uf,Vf,Jf,"⋙","\\gggtr"),qf(Uf,Vf,$f,"⊲","\\lhd"),qf(Uf,Vf,$f,"⊳","\\rhd"),qf(Uf,Vf,Jf,"≂","\\eqsim",!0),qf(Uf,Ff,Jf,"⋈","\\Join"),qf(Uf,Vf,Jf,"≑","\\Doteq",!0),qf(Uf,Vf,$f,"∔","\\dotplus",!0),qf(Uf,Vf,$f,"∖","\\smallsetminus"),qf(Uf,Vf,$f,"⋒","\\Cap",!0),qf(Uf,Vf,$f,"⋓","\\Cup",!0),qf(Uf,Vf,$f,"⩞","\\doublebarwedge",!0),qf(Uf,Vf,$f,"⊟","\\boxminus",!0),qf(Uf,Vf,$f,"⊞","\\boxplus",!0),qf(Uf,Vf,$f,"⋇","\\divideontimes",!0),qf(Uf,Vf,$f,"⋉","\\ltimes",!0),qf(Uf,Vf,$f,"⋊","\\rtimes",!0),qf(Uf,Vf,$f,"⋋","\\leftthreetimes",!0),qf(Uf,Vf,$f,"⋌","\\rightthreetimes",!0),qf(Uf,Vf,$f,"⋏","\\curlywedge",!0),qf(Uf,Vf,$f,"⋎","\\curlyvee",!0),qf(Uf,Vf,$f,"⊝","\\circleddash",!0),qf(Uf,Vf,$f,"⊛","\\circledast",!0),qf(Uf,Vf,$f,"⋅","\\centerdot"),qf(Uf,Vf,$f,"⊺","\\intercal",!0),qf(Uf,Vf,$f,"⋒","\\doublecap"),qf(Uf,Vf,$f,"⋓","\\doublecup"),qf(Uf,Vf,$f,"⊠","\\boxtimes",!0),qf(Uf,Vf,Jf,"⇢","\\dashrightarrow",!0),qf(Uf,Vf,Jf,"⇠","\\dashleftarrow",!0),qf(Uf,Vf,Jf,"⇇","\\leftleftarrows",!0),qf(Uf,Vf,Jf,"⇆","\\leftrightarrows",!0),qf(Uf,Vf,Jf,"⇚","\\Lleftarrow",!0),qf(Uf,Vf,Jf,"↞","\\twoheadleftarrow",!0),qf(Uf,Vf,Jf,"↢","\\leftarrowtail",!0),qf(Uf,Vf,Jf,"↫","\\looparrowleft",!0),qf(Uf,Vf,Jf,"⇋","\\leftrightharpoons",!0),qf(Uf,Vf,Jf,"↶","\\curvearrowleft",!0),qf(Uf,Vf,Jf,"↺","\\circlearrowleft",!0),qf(Uf,Vf,Jf,"↰","\\Lsh",!0),qf(Uf,Vf,Jf,"⇈","\\upuparrows",!0),qf(Uf,Vf,Jf,"↿","\\upharpoonleft",!0),qf(Uf,Vf,Jf,"⇃","\\downharpoonleft",!0),qf(Uf,Ff,Jf,"⊶","\\origof",!0),qf(Uf,Ff,Jf,"⊷","\\imageof",!0),qf(Uf,Vf,Jf,"⊸","\\multimap",!0),qf(Uf,Vf,Jf,"↭","\\leftrightsquigarrow",!0),qf(Uf,Vf,Jf,"⇉","\\rightrightarrows",!0),qf(Uf,Vf,Jf,"⇄","\\rightleftarrows",!0),qf(Uf,Vf,Jf,"↠","\\twoheadrightarrow",!0),qf(Uf,Vf,Jf,"↣","\\rightarrowtail",!0),qf(Uf,Vf,Jf,"↬","\\looparrowright",!0),qf(Uf,Vf,Jf,"↷","\\curvearrowright",!0),qf(Uf,Vf,Jf,"↻","\\circlearrowright",!0),qf(Uf,Vf,Jf,"↱","\\Rsh",!0),qf(Uf,Vf,Jf,"⇊","\\downdownarrows",!0),qf(Uf,Vf,Jf,"↾","\\upharpoonright",!0),qf(Uf,Vf,Jf,"⇂","\\downharpoonright",!0),qf(Uf,Vf,Jf,"⇝","\\rightsquigarrow",!0),qf(Uf,Vf,Jf,"⇝","\\leadsto"),qf(Uf,Vf,Jf,"⇛","\\Rrightarrow",!0),qf(Uf,Vf,Jf,"↾","\\restriction"),qf(Uf,Ff,tm,"‘","`"),qf(Uf,Ff,tm,"$","\\$"),qf(Hf,Ff,tm,"$","\\$"),qf(Hf,Ff,tm,"$","\\textdollar"),qf(Uf,Ff,tm,"%","\\%"),qf(Hf,Ff,tm,"%","\\%"),qf(Uf,Ff,tm,"_","\\_"),qf(Hf,Ff,tm,"_","\\_"),qf(Hf,Ff,tm,"_","\\textunderscore"),qf(Uf,Ff,tm,"∠","\\angle",!0),qf(Uf,Ff,tm,"∞","\\infty",!0),qf(Uf,Ff,tm,"′","\\prime"),qf(Uf,Ff,tm,"△","\\triangle"),qf(Uf,Ff,tm,"Γ","\\Gamma",!0),qf(Uf,Ff,tm,"Δ","\\Delta",!0),qf(Uf,Ff,tm,"Θ","\\Theta",!0),qf(Uf,Ff,tm,"Λ","\\Lambda",!0),qf(Uf,Ff,tm,"Ξ","\\Xi",!0),qf(Uf,Ff,tm,"Π","\\Pi",!0),qf(Uf,Ff,tm,"Σ","\\Sigma",!0),qf(Uf,Ff,tm,"Υ","\\Upsilon",!0),qf(Uf,Ff,tm,"Φ","\\Phi",!0),qf(Uf,Ff,tm,"Ψ","\\Psi",!0),qf(Uf,Ff,tm,"Ω","\\Omega",!0),qf(Uf,Ff,tm,"A","Α"),qf(Uf,Ff,tm,"B","Β"),qf(Uf,Ff,tm,"E","Ε"),qf(Uf,Ff,tm,"Z","Ζ"),qf(Uf,Ff,tm,"H","Η"),qf(Uf,Ff,tm,"I","Ι"),qf(Uf,Ff,tm,"K","Κ"),qf(Uf,Ff,tm,"M","Μ"),qf(Uf,Ff,tm,"N","Ν"),qf(Uf,Ff,tm,"O","Ο"),qf(Uf,Ff,tm,"P","Ρ"),qf(Uf,Ff,tm,"T","Τ"),qf(Uf,Ff,tm,"X","Χ"),qf(Uf,Ff,tm,"¬","\\neg",!0),qf(Uf,Ff,tm,"¬","\\lnot"),qf(Uf,Ff,tm,"⊤","\\top"),qf(Uf,Ff,tm,"⊥","\\bot"),qf(Uf,Ff,tm,"∅","\\emptyset"),qf(Uf,Vf,tm,"∅","\\varnothing"),qf(Uf,Ff,Qf,"α","\\alpha",!0),qf(Uf,Ff,Qf,"β","\\beta",!0),qf(Uf,Ff,Qf,"γ","\\gamma",!0),qf(Uf,Ff,Qf,"δ","\\delta",!0),qf(Uf,Ff,Qf,"ϵ","\\epsilon",!0),qf(Uf,Ff,Qf,"ζ","\\zeta",!0),qf(Uf,Ff,Qf,"η","\\eta",!0),qf(Uf,Ff,Qf,"θ","\\theta",!0),qf(Uf,Ff,Qf,"ι","\\iota",!0),qf(Uf,Ff,Qf,"κ","\\kappa",!0),qf(Uf,Ff,Qf,"λ","\\lambda",!0),qf(Uf,Ff,Qf,"μ","\\mu",!0),qf(Uf,Ff,Qf,"ν","\\nu",!0),qf(Uf,Ff,Qf,"ξ","\\xi",!0),qf(Uf,Ff,Qf,"ο","\\omicron",!0),qf(Uf,Ff,Qf,"π","\\pi",!0),qf(Uf,Ff,Qf,"ρ","\\rho",!0),qf(Uf,Ff,Qf,"σ","\\sigma",!0),qf(Uf,Ff,Qf,"τ","\\tau",!0),qf(Uf,Ff,Qf,"υ","\\upsilon",!0),qf(Uf,Ff,Qf,"ϕ","\\phi",!0),qf(Uf,Ff,Qf,"χ","\\chi",!0),qf(Uf,Ff,Qf,"ψ","\\psi",!0),qf(Uf,Ff,Qf,"ω","\\omega",!0),qf(Uf,Ff,Qf,"ε","\\varepsilon",!0),qf(Uf,Ff,Qf,"ϑ","\\vartheta",!0),qf(Uf,Ff,Qf,"ϖ","\\varpi",!0),qf(Uf,Ff,Qf,"ϱ","\\varrho",!0),qf(Uf,Ff,Qf,"ς","\\varsigma",!0),qf(Uf,Ff,Qf,"φ","\\varphi",!0),qf(Uf,Ff,$f,"∗","*",!0),qf(Uf,Ff,$f,"+","+"),qf(Uf,Ff,$f,"−","-",!0),qf(Uf,Ff,$f,"⋅","\\cdot",!0),qf(Uf,Ff,$f,"∘","\\circ",!0),qf(Uf,Ff,$f,"÷","\\div",!0),qf(Uf,Ff,$f,"±","\\pm",!0),qf(Uf,Ff,$f,"×","\\times",!0),qf(Uf,Ff,$f,"∩","\\cap",!0),qf(Uf,Ff,$f,"∪","\\cup",!0),qf(Uf,Ff,$f,"∖","\\setminus",!0),qf(Uf,Ff,$f,"∧","\\land"),qf(Uf,Ff,$f,"∨","\\lor"),qf(Uf,Ff,$f,"∧","\\wedge",!0),qf(Uf,Ff,$f,"∨","\\vee",!0),qf(Uf,Ff,tm,"√","\\surd"),qf(Uf,Ff,Xf,"⟨","\\langle",!0),qf(Uf,Ff,Xf,"∣","\\lvert"),qf(Uf,Ff,Xf,"∥","\\lVert"),qf(Uf,Ff,Gf,"?","?"),qf(Uf,Ff,Gf,"!","!"),qf(Uf,Ff,Gf,"⟩","\\rangle",!0),qf(Uf,Ff,Gf,"∣","\\rvert"),qf(Uf,Ff,Gf,"∥","\\rVert"),qf(Uf,Ff,Jf,"=","="),qf(Uf,Ff,Jf,":",":"),qf(Uf,Ff,Jf,"≈","\\approx",!0),qf(Uf,Ff,Jf,"≅","\\cong",!0),qf(Uf,Ff,Jf,"≥","\\ge"),qf(Uf,Ff,Jf,"≥","\\geq",!0),qf(Uf,Ff,Jf,"←","\\gets"),qf(Uf,Ff,Jf,">","\\gt",!0),qf(Uf,Ff,Jf,"∈","\\in",!0),qf(Uf,Ff,Jf,"","\\@not"),qf(Uf,Ff,Jf,"⊂","\\subset",!0),qf(Uf,Ff,Jf,"⊃","\\supset",!0),qf(Uf,Ff,Jf,"⊆","\\subseteq",!0),qf(Uf,Ff,Jf,"⊇","\\supseteq",!0),qf(Uf,Vf,Jf,"⊈","\\nsubseteq",!0),qf(Uf,Vf,Jf,"⊉","\\nsupseteq",!0),qf(Uf,Ff,Jf,"⊨","\\models"),qf(Uf,Ff,Jf,"←","\\leftarrow",!0),qf(Uf,Ff,Jf,"≤","\\le"),qf(Uf,Ff,Jf,"≤","\\leq",!0),qf(Uf,Ff,Jf,"<","\\lt",!0),qf(Uf,Ff,Jf,"→","\\rightarrow",!0),qf(Uf,Ff,Jf,"→","\\to"),qf(Uf,Vf,Jf,"≱","\\ngeq",!0),qf(Uf,Vf,Jf,"≰","\\nleq",!0),qf(Uf,Ff,em," ","\\ "),qf(Uf,Ff,em," ","\\space"),qf(Uf,Ff,em," ","\\nobreakspace"),qf(Hf,Ff,em," ","\\ "),qf(Hf,Ff,em," "," "),qf(Hf,Ff,em," ","\\space"),qf(Hf,Ff,em," ","\\nobreakspace"),qf(Uf,Ff,em,null,"\\nobreak"),qf(Uf,Ff,em,null,"\\allowbreak"),qf(Uf,Ff,Zf,",",","),qf(Uf,Ff,Zf,";",";"),qf(Uf,Vf,$f,"⊼","\\barwedge",!0),qf(Uf,Vf,$f,"⊻","\\veebar",!0),qf(Uf,Ff,$f,"⊙","\\odot",!0),qf(Uf,Ff,$f,"⊕","\\oplus",!0),qf(Uf,Ff,$f,"⊗","\\otimes",!0),qf(Uf,Ff,tm,"∂","\\partial",!0),qf(Uf,Ff,$f,"⊘","\\oslash",!0),qf(Uf,Vf,$f,"⊚","\\circledcirc",!0),qf(Uf,Vf,$f,"⊡","\\boxdot",!0),qf(Uf,Ff,$f,"△","\\bigtriangleup"),qf(Uf,Ff,$f,"▽","\\bigtriangledown"),qf(Uf,Ff,$f,"†","\\dagger"),qf(Uf,Ff,$f,"⋄","\\diamond"),qf(Uf,Ff,$f,"⋆","\\star"),qf(Uf,Ff,$f,"◃","\\triangleleft"),qf(Uf,Ff,$f,"▹","\\triangleright"),qf(Uf,Ff,Xf,"{","\\{"),qf(Hf,Ff,tm,"{","\\{"),qf(Hf,Ff,tm,"{","\\textbraceleft"),qf(Uf,Ff,Gf,"}","\\}"),qf(Hf,Ff,tm,"}","\\}"),qf(Hf,Ff,tm,"}","\\textbraceright"),qf(Uf,Ff,Xf,"{","\\lbrace"),qf(Uf,Ff,Gf,"}","\\rbrace"),qf(Uf,Ff,Xf,"[","\\lbrack",!0),qf(Hf,Ff,tm,"[","\\lbrack",!0),qf(Uf,Ff,Gf,"]","\\rbrack",!0),qf(Hf,Ff,tm,"]","\\rbrack",!0),qf(Uf,Ff,Xf,"(","\\lparen",!0),qf(Uf,Ff,Gf,")","\\rparen",!0),qf(Hf,Ff,tm,"<","\\textless",!0),qf(Hf,Ff,tm,">","\\textgreater",!0),qf(Uf,Ff,Xf,"⌊","\\lfloor",!0),qf(Uf,Ff,Gf,"⌋","\\rfloor",!0),qf(Uf,Ff,Xf,"⌈","\\lceil",!0),qf(Uf,Ff,Gf,"⌉","\\rceil",!0),qf(Uf,Ff,tm,"\\","\\backslash"),qf(Uf,Ff,tm,"∣","|"),qf(Uf,Ff,tm,"∣","\\vert"),qf(Hf,Ff,tm,"|","\\textbar",!0),qf(Uf,Ff,tm,"∥","\\|"),qf(Uf,Ff,tm,"∥","\\Vert"),qf(Hf,Ff,tm,"∥","\\textbardbl"),qf(Hf,Ff,tm,"~","\\textasciitilde"),qf(Hf,Ff,tm,"\\","\\textbackslash"),qf(Hf,Ff,tm,"^","\\textasciicircum"),qf(Uf,Ff,Jf,"↑","\\uparrow",!0),qf(Uf,Ff,Jf,"⇑","\\Uparrow",!0),qf(Uf,Ff,Jf,"↓","\\downarrow",!0),qf(Uf,Ff,Jf,"⇓","\\Downarrow",!0),qf(Uf,Ff,Jf,"↕","\\updownarrow",!0),qf(Uf,Ff,Jf,"⇕","\\Updownarrow",!0),qf(Uf,Ff,Kf,"∐","\\coprod"),qf(Uf,Ff,Kf,"⋁","\\bigvee"),qf(Uf,Ff,Kf,"⋀","\\bigwedge"),qf(Uf,Ff,Kf,"⨄","\\biguplus"),qf(Uf,Ff,Kf,"⋂","\\bigcap"),qf(Uf,Ff,Kf,"⋃","\\bigcup"),qf(Uf,Ff,Kf,"∫","\\int"),qf(Uf,Ff,Kf,"∫","\\intop"),qf(Uf,Ff,Kf,"∬","\\iint"),qf(Uf,Ff,Kf,"∭","\\iiint"),qf(Uf,Ff,Kf,"∏","\\prod"),qf(Uf,Ff,Kf,"∑","\\sum"),qf(Uf,Ff,Kf,"⨂","\\bigotimes"),qf(Uf,Ff,Kf,"⨁","\\bigoplus"),qf(Uf,Ff,Kf,"⨀","\\bigodot"),qf(Uf,Ff,Kf,"∮","\\oint"),qf(Uf,Ff,Kf,"∯","\\oiint"),qf(Uf,Ff,Kf,"∰","\\oiiint"),qf(Uf,Ff,Kf,"⨆","\\bigsqcup"),qf(Uf,Ff,Kf,"∫","\\smallint"),qf(Hf,Ff,Yf,"…","\\textellipsis"),qf(Uf,Ff,Yf,"…","\\mathellipsis"),qf(Hf,Ff,Yf,"…","\\ldots",!0),qf(Uf,Ff,Yf,"…","\\ldots",!0),qf(Uf,Ff,Yf,"⋯","\\@cdots",!0),qf(Uf,Ff,Yf,"⋱","\\ddots",!0),qf(Uf,Ff,tm,"⋮","\\varvdots"),qf(Uf,Ff,Wf,"ˊ","\\acute"),qf(Uf,Ff,Wf,"ˋ","\\grave"),qf(Uf,Ff,Wf,"¨","\\ddot"),qf(Uf,Ff,Wf,"~","\\tilde"),qf(Uf,Ff,Wf,"ˉ","\\bar"),qf(Uf,Ff,Wf,"˘","\\breve"),qf(Uf,Ff,Wf,"ˇ","\\check"),qf(Uf,Ff,Wf,"^","\\hat"),qf(Uf,Ff,Wf,"⃗","\\vec"),qf(Uf,Ff,Wf,"˙","\\dot"),qf(Uf,Ff,Wf,"˚","\\mathring"),qf(Uf,Ff,Qf,"","\\@imath"),qf(Uf,Ff,Qf,"","\\@jmath"),qf(Uf,Ff,tm,"ı","ı"),qf(Uf,Ff,tm,"ȷ","ȷ"),qf(Hf,Ff,tm,"ı","\\i",!0),qf(Hf,Ff,tm,"ȷ","\\j",!0),qf(Hf,Ff,tm,"ß","\\ss",!0),qf(Hf,Ff,tm,"æ","\\ae",!0),qf(Hf,Ff,tm,"œ","\\oe",!0),qf(Hf,Ff,tm,"ø","\\o",!0),qf(Hf,Ff,tm,"Æ","\\AE",!0),qf(Hf,Ff,tm,"Œ","\\OE",!0),qf(Hf,Ff,tm,"Ø","\\O",!0),qf(Hf,Ff,Wf,"ˊ","\\'"),qf(Hf,Ff,Wf,"ˋ","\\`"),qf(Hf,Ff,Wf,"ˆ","\\^"),qf(Hf,Ff,Wf,"˜","\\~"),qf(Hf,Ff,Wf,"ˉ","\\="),qf(Hf,Ff,Wf,"˘","\\u"),qf(Hf,Ff,Wf,"˙","\\."),qf(Hf,Ff,Wf,"¸","\\c"),qf(Hf,Ff,Wf,"˚","\\r"),qf(Hf,Ff,Wf,"ˇ","\\v"),qf(Hf,Ff,Wf,"¨",'\\"'),qf(Hf,Ff,Wf,"˝","\\H"),qf(Hf,Ff,Wf,"◯","\\textcircled");var rm={"--":!0,"---":!0,"``":!0,"''":!0};qf(Hf,Ff,tm,"–","--",!0),qf(Hf,Ff,tm,"–","\\textendash"),qf(Hf,Ff,tm,"—","---",!0),qf(Hf,Ff,tm,"—","\\textemdash"),qf(Hf,Ff,tm,"‘","`",!0),qf(Hf,Ff,tm,"‘","\\textquoteleft"),qf(Hf,Ff,tm,"’","'",!0),qf(Hf,Ff,tm,"’","\\textquoteright"),qf(Hf,Ff,tm,"“","``",!0),qf(Hf,Ff,tm,"“","\\textquotedblleft"),qf(Hf,Ff,tm,"”","''",!0),qf(Hf,Ff,tm,"”","\\textquotedblright"),qf(Uf,Ff,tm,"°","\\degree",!0),qf(Hf,Ff,tm,"°","\\degree"),qf(Hf,Ff,tm,"°","\\textdegree",!0),qf(Uf,Ff,tm,"£","\\pounds"),qf(Uf,Ff,tm,"£","\\mathsterling",!0),qf(Hf,Ff,tm,"£","\\pounds"),qf(Hf,Ff,tm,"£","\\textsterling",!0),qf(Uf,Vf,tm,"✠","\\maltese"),qf(Hf,Vf,tm,"✠","\\maltese");for(var nm='0123456789/@."',am=0;am<14;am++){var im=nm.charAt(am);qf(Uf,Ff,tm,im,im)}for(var om='0123456789!@*()-=+";:?/.,',sm=0;sm<25;sm++){var lm=om.charAt(sm);qf(Hf,Ff,tm,lm,lm)}for(var um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",cm=0;cm<52;cm++){var dm=um.charAt(cm);qf(Uf,Ff,Qf,dm,dm),qf(Hf,Ff,tm,dm,dm)}qf(Uf,Vf,tm,"C","ℂ"),qf(Hf,Vf,tm,"C","ℂ"),qf(Uf,Vf,tm,"H","ℍ"),qf(Hf,Vf,tm,"H","ℍ"),qf(Uf,Vf,tm,"N","ℕ"),qf(Hf,Vf,tm,"N","ℕ"),qf(Uf,Vf,tm,"P","ℙ"),qf(Hf,Vf,tm,"P","ℙ"),qf(Uf,Vf,tm,"Q","ℚ"),qf(Hf,Vf,tm,"Q","ℚ"),qf(Uf,Vf,tm,"R","ℝ"),qf(Hf,Vf,tm,"R","ℝ"),qf(Uf,Vf,tm,"Z","ℤ"),qf(Hf,Vf,tm,"Z","ℤ"),qf(Uf,Ff,Qf,"h","ℎ"),qf(Hf,Ff,Qf,"h","ℎ");for(var hm="",pm=0;pm<52;pm++){var fm=um.charAt(pm);qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56320+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56372+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56424+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56580+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56684+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56736+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56788+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56840+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56944+pm)),qf(Hf,Ff,tm,fm,hm),pm<26&&(qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56632+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56476+pm)),qf(Hf,Ff,tm,fm,hm))}qf(Uf,Ff,Qf,"k",hm=String.fromCharCode(55349,56668)),qf(Hf,Ff,tm,"k",hm);for(var mm=0;mm<10;mm++){var gm=mm.toString();qf(Uf,Ff,Qf,gm,hm=String.fromCharCode(55349,57294+mm)),qf(Hf,Ff,tm,gm,hm),qf(Uf,Ff,Qf,gm,hm=String.fromCharCode(55349,57314+mm)),qf(Hf,Ff,tm,gm,hm),qf(Uf,Ff,Qf,gm,hm=String.fromCharCode(55349,57324+mm)),qf(Hf,Ff,tm,gm,hm),qf(Uf,Ff,Qf,gm,hm=String.fromCharCode(55349,57334+mm)),qf(Hf,Ff,tm,gm,hm)}for(var vm="ÐÞþ",ym=0;ym<3;ym++){var bm=vm.charAt(ym);qf(Uf,Ff,Qf,bm,bm),qf(Hf,Ff,tm,bm,bm)}var wm=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],xm=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Sm=function(e,t,r){return Bf[r][e]&&Bf[r][e].replace&&(e=Bf[r][e].replace),{value:e,metrics:pf(e,t,r)}},km=function(e,t,r,n,a){var i,o=Sm(e,t,r),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===r||n&&"mathit"===n.font)&&(l=0),i=new Mf(e,s.height,s.depth,l,s.skew,s.width,a)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+r+"'"),i=new Mf(e,0,0,0,0,0,a);if(n){i.maxFontSize=n.sizeMultiplier,n.style.isTight()&&i.classes.push("mtight");var u=n.getColor();u&&(i.style.color=u)}return i},Em=(e,t)=>{if(Ef(e.classes)!==Ef(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},Tm=function(e){for(var t=0,r=0,n=0,a=0;a<e.children.length;a++){var i=e.children[a];i.height>t&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},_m=function(e,t,r,n){var a=new Cf(e,t,r,n);return Tm(a),a},Nm=(e,t,r,n)=>new Cf(e,t,r,n),Cm=function(e){var t=new uf(e);return Tm(t),t},Om=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Im={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-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"}},Rm={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Mm={fontMap:Im,makeSymbol:km,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&Sm(e,"Main-Bold",t).metrics?km(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===Bf[t][e].font?km(e,"Main-Regular",t,r,n):km(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:_m,makeSvgSpan:Nm,makeLineSpan:function(e,t,r){var n=_m([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=kf(n.height),n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var a=new Of(e,t,r,n);return Tm(a),a},makeFragment:Cm,wrapFragment:function(e,t){return e instanceof uf?_m([],[e],t):e},makeVList:function(e,t){for(var{children:r,depth:n}=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,a=n,i=1;i<t.length;i++){var o=-t[i].shift-a-t[i].elem.depth,s=o-(t[i-1].elem.height+t[i-1].elem.depth);a+=o,r.push({type:"kern",size:s}),r.push(t[i])}return{children:r,depth:n}}var l;if("top"===e.positionType){for(var u=e.positionData,c=0;c<e.children.length;c++){var d=e.children[c];u-="kern"===d.type?d.size:d.elem.height+d.elem.depth}l=u}else if("bottom"===e.positionType)l=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-h.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-h.elem.depth}}return{children:e.children,depth:l}}(e),a=0,i=0;i<r.length;i++){var o=r[i];if("elem"===o.type){var s=o.elem;a=Math.max(a,s.maxFontSize,s.height)}}a+=2;var l=_m(["pstrut"],[]);l.style.height=kf(a);for(var u=[],c=n,d=n,h=n,p=0;p<r.length;p++){var f=r[p];if("kern"===f.type)h+=f.size;else{var m=f.elem,g=f.wrapperClasses||[],v=f.wrapperStyle||{},y=_m(g,[l,m],void 0,v);y.style.top=kf(-a-h-m.depth),f.marginLeft&&(y.style.marginLeft=f.marginLeft),f.marginRight&&(y.style.marginRight=f.marginRight),u.push(y),h+=m.height+m.depth}c=Math.min(c,h),d=Math.max(d,h)}var b,w=_m(["vlist"],u);if(w.style.height=kf(d),c<0){var x=_m([],[]),S=_m(["vlist"],[x]);S.style.height=kf(-c);var k=_m(["vlist-s"],[new Mf("")]);b=[_m(["vlist-r"],[w,k]),_m(["vlist-r"],[S])]}else b=[_m(["vlist-r"],[w])];var E=_m(["vlist-t"],b);return 2===b.length&&E.classes.push("vlist-t2"),E.height=d,E.depth=-c,E},makeOrd:function(e,t,r){var n=e.mode,a=e.text,i=["mord"],o="math"===n||"text"===n&&t.font,s=o?t.font:t.fontFamily,l="",u="";if(55349===a.charCodeAt(0)&&([l,u]=function(e,t){var r=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,n="math"===t?0:1;if(119808<=r&&r<120484){var a=Math.floor((r-119808)/26);return[wm[a][2],wm[a][n]]}if(120782<=r&&r<=120831){var i=Math.floor((r-120782)/10);return[xm[i][2],xm[i][n]]}if(120485===r||120486===r)return[wm[0][2],wm[0][n]];if(120486<r&&r<120782)return["",""];throw new Bp("Unsupported character: "+e)}(a,n)),l.length>0)return km(a,l,n,t,i.concat(u));if(s){var c,d;if("boldsymbol"===s){var h=function(e,t,r,n,a){return"textord"!==a&&Sm(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(a,n,0,0,r);c=h.fontName,d=[h.fontClass]}else o?(c=Im[s].fontName,d=[s]):(c=Om(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(Sm(a,c,n).metrics)return km(a,c,n,t,i.concat(d));if(rm.hasOwnProperty(a)&&"Typewriter"===c.slice(0,10)){for(var p=[],f=0;f<a.length;f++)p.push(km(a[f],c,n,t,i.concat(d)));return Cm(p)}}if("mathord"===r)return km(a,"Math-Italic",n,t,i.concat(["mathnormal"]));if("textord"===r){var m=Bf[n][a]&&Bf[n][a].font;if("ams"===m){var g=Om("amsrm",t.fontWeight,t.fontShape);return km(a,g,n,t,i.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==m&&m){var v=Om(m,t.fontWeight,t.fontShape);return km(a,v,n,t,i.concat(v,t.fontWeight,t.fontShape))}var y=Om("textrm",t.fontWeight,t.fontShape);return km(a,y,n,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},makeGlue:(e,t)=>{var r=_m(["mspace"],[],t),n=Sf(e,t);return r.style.marginRight=kf(n),r},staticSvg:function(e,t){var[r,n,a]=Rm[e],i=new zf(r),o=new Af([i],{width:kf(n),height:kf(a),style:"width:"+kf(n),viewBox:"0 0 "+1e3*n+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),s=Nm(["overlay"],[o],t);return s.height=a,s.style.height=kf(a),s.style.width=kf(n),s},svgData:Rm,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Mf&&n instanceof Mf&&Em(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e}},Am={number:3,unit:"mu"},zm={number:4,unit:"mu"},Dm={number:5,unit:"mu"},Lm={mord:{mop:Am,mbin:zm,mrel:Dm,minner:Am},mop:{mord:Am,mop:Am,mrel:Dm,minner:Am},mbin:{mord:zm,mop:zm,mopen:zm,minner:zm},mrel:{mord:Dm,mop:Dm,mopen:Dm,minner:Dm},mopen:{},mclose:{mop:Am,mbin:zm,mrel:Dm,minner:Am},mpunct:{mord:Am,mop:Am,mrel:Dm,mopen:Am,mclose:Am,mpunct:Am,minner:Am},minner:{mord:Am,mop:Am,mbin:zm,mrel:Dm,mopen:Am,mpunct:Am,minner:Am}},Pm={mord:{mop:Am},mop:{mord:Am,mop:Am},mbin:{},mrel:{},mopen:{},mclose:{mop:Am},mpunct:{},minner:{mop:Am}},jm={},Bm={},qm={};function Um(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},l=0;l<r.length;++l)jm[r[l]]=s;t&&(i&&(Bm[t]=i),o&&(qm[t]=o))}function Hm(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;Um({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var Fm=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},Vm=function(e){return"ordgroup"===e.type?e.body:[e]},Wm=Mm.makeSpan,$m=["leftmost","mbin","mopen","mrel","mop","mpunct"],Gm=["rightmost","mrel","mclose","mpunct"],Ym={display:rf.DISPLAY,text:rf.TEXT,script:rf.SCRIPT,scriptscript:rf.SCRIPTSCRIPT},Qm={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Km=function(e,t,r,n){void 0===n&&(n=[null,null]);for(var a=[],i=0;i<e.length;i++){var o=rg(e[i],t);if(o instanceof uf){var s=o.children;a.push(...s)}else a.push(o)}if(Mm.tryCombineChars(a),!r)return a;var l=t;if(1===e.length){var u=e[0];"sizing"===u.type?l=t.havingSize(u.size):"styling"===u.type&&(l=t.havingStyle(Ym[u.style]))}var c=Wm([n[0]||"leftmost"],[],t),d=Wm([n[1]||"rightmost"],[],t),h="root"===r;return Xm(a,(e,t)=>{var r=t.classes[0],n=e.classes[0];"mbin"===r&&Vp.contains(Gm,n)?t.classes[0]="mord":"mbin"===n&&Vp.contains($m,r)&&(e.classes[0]="mord")},{node:c},d,h),Xm(a,(e,t)=>{var r=eg(t),n=eg(e),a=r&&n?e.hasClass("mtight")?Pm[r][n]:Lm[r][n]:null;if(a)return Mm.makeGlue(a,l)},{node:c},d,h),a},Xm=function e(t,r,n,a,i){a&&t.push(a);for(var o=0;o<t.length;o++){var s=t[o],l=Zm(s);if(l)e(l.children,r,n,null,i);else{var u=!s.hasClass("mspace");if(u){var c=r(s,n.node);c&&(n.insertAfter?n.insertAfter(c):(t.unshift(c),o++))}u?n.node=s:i&&s.hasClass("newline")&&(n.node=Wm(["leftmost"])),n.insertAfter=(e=>r=>{t.splice(e+1,0,r),o++})(o)}}a&&t.pop()},Zm=function(e){return e instanceof uf||e instanceof Of||e instanceof Cf&&e.hasClass("enclosing")?e:null},Jm=function e(t,r){var n=Zm(t);if(n){var a=n.children;if(a.length){if("right"===r)return e(a[a.length-1],"right");if("left"===r)return e(a[0],"left")}}return t},eg=function(e,t){return e?(t&&(e=Jm(e,t)),Qm[e.classes[0]]||null):null},tg=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Wm(t.concat(r))},rg=function(e,t,r){if(!e)return Wm();if(Bm[e.type]){var n=Bm[e.type](e,t);if(r&&t.size!==r.size){n=Wm(t.sizingClasses(r),[n],t);var a=t.sizeMultiplier/r.sizeMultiplier;n.height*=a,n.depth*=a}return n}throw new Bp("Got group of unknown type: '"+e.type+"'")};function ng(e,t){var r=Wm(["base"],e,t),n=Wm(["strut"]);return n.style.height=kf(r.height+r.depth),r.depth&&(n.style.verticalAlign=kf(-r.depth)),r.children.unshift(n),r}function ag(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var n,a=Km(e,t,"root");2===a.length&&a[1].hasClass("tag")&&(n=a.pop());for(var i,o=[],s=[],l=0;l<a.length;l++)if(s.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var u=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,s.push(a[l]),a[l].hasClass("nobreak")&&(u=!0);u||(o.push(ng(s,t)),s=[])}else a[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(ng(s,t)),s=[]),o.push(a[l]));s.length>0&&o.push(ng(s,t)),r?((i=ng(Km(r,t,!0))).classes=["tag"],o.push(i)):n&&o.push(n);var c=Wm(["katex-html"],o);if(c.setAttribute("aria-hidden","true"),i){var d=i.children[0];d.style.height=kf(c.height+c.depth),c.depth&&(d.style.verticalAlign=kf(-c.depth))}return c}function ig(e){return new uf(e)}class og{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Ef(this.classes));for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=Vp.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+Vp.escape(Ef(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class sg{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Vp.escape(this.toText())}toText(){return this.text}}var lg={MathNode:og,TextNode:sg,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",kf(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+kf(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:ig},ug=function(e,t,r){return!Bf[t][e]||!Bf[t][e].replace||55349===e.charCodeAt(0)||rm.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=Bf[t][e].replace),new lg.TextNode(e)},cg=function(e){return 1===e.length?e[0]:new lg.MathNode("mrow",e)},dg=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var a=e.text;return Vp.contains(["\\imath","\\jmath"],a)?null:(Bf[n][a]&&Bf[n][a].replace&&(a=Bf[n][a].replace),pf(a,Mm.fontMap[r].fontName,n)?Mm.fontMap[r].variant:null)},hg=function(e,t,r){if(1===e.length){var n=fg(e[0],t);return r&&n instanceof og&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var a,i=[],o=0;o<e.length;o++){var s=fg(e[o],t);if(s instanceof og&&a instanceof og){if("mtext"===s.type&&"mtext"===a.type&&s.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...s.children);continue}if("mn"===s.type&&"mn"===a.type){a.children.push(...s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===a.type){var l=s.children[0];if(l instanceof sg&&"."===l.text){a.children.push(...s.children);continue}}else if("mi"===a.type&&1===a.children.length){var u=a.children[0];if(u instanceof sg&&"̸"===u.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var c=s.children[0];c instanceof sg&&c.text.length>0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),i.pop())}}}i.push(s),a=s}return i},pg=function(e,t,r){return cg(hg(e,t,r))},fg=function(e,t){if(!e)return new lg.MathNode("mrow");if(qm[e.type])return qm[e.type](e,t);throw new Bp("Got group of unknown type: '"+e.type+"'")};function mg(e,t,r,n,a){var i,o=hg(e,r);i=1===o.length&&o[0]instanceof og&&Vp.contains(["mrow","mtable"],o[0].type)?o[0]:new lg.MathNode("mrow",o);var s=new lg.MathNode("annotation",[new lg.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new lg.MathNode("semantics",[i,s]),u=new lg.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var c=a?"katex":"katex-mathml";return Mm.makeSpan([c],[u])}var gg=function(e){return new yf({style:e.displayMode?rf.DISPLAY:rf.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},vg=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=Mm.makeSpan(r,[e])}return e},yg={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},bg={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},wg=function(e,t,r,n,a){var i,o=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(i=Mm.makeSpan(["stretchy",t],[],a),"fbox"===t){var s=a.color&&a.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Df({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new Df({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Af(l,{width:"100%",height:kf(o)});i=Mm.makeSvgSpan([],[u],a)}return i.height=o,i.style.height=kf(o),i},xg=function(e){var t=new lg.MathNode("mo",[new lg.TextNode(yg[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Sg=function(e,t){var{span:r,minWidth:n,height:a}=function(){var r=4e5,n=e.label.slice(1);if(Vp.contains(["widehat","widecheck","widetilde","utilde"],n)){var a,i,o,s="ordgroup"===(p=e.base).type?p.body.length:1;if(s>5)"widehat"===n||"widecheck"===n?(a=420,r=2364,o=.42,i=n+"4"):(a=312,r=2340,o=.34,i="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],i=n+l):(r=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],i="tilde"+l)}var u=new zf(i),c=new Af([u],{width:"100%",height:kf(o),viewBox:"0 0 "+r+" "+a,preserveAspectRatio:"none"});return{span:Mm.makeSvgSpan([],[c],t),minWidth:0,height:o}}var d,h,p,f=[],m=bg[n],[g,v,y]=m,b=y/1e3,w=g.length;if(1===w)d=["hide-tail"],h=[m[3]];else if(2===w)d=["halfarrow-left","halfarrow-right"],h=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");d=["brace-left","brace-center","brace-right"],h=["xMinYMin","xMidYMin","xMaxYMin"]}for(var x=0;x<w;x++){var S=new zf(g[x]),k=new Af([S],{width:"400em",height:kf(b),viewBox:"0 0 "+r+" "+y,preserveAspectRatio:h[x]+" slice"}),E=Mm.makeSvgSpan([d[x]],[k],t);if(1===w)return{span:E,minWidth:v,height:b};E.style.height=kf(b),f.push(E)}return{span:Mm.makeSpan(["stretchy"],f,t),minWidth:v,height:b}}();return r.height=a,r.style.height=kf(a),n>0&&(r.style.minWidth=kf(n)),r};function kg(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Eg(e){var t=Tg(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Tg(e){return e&&("atom"===e.type||jf.hasOwnProperty(e.type))?e:null}var _g=(e,t)=>{var r,n,a;e&&"supsub"===e.type?(r=(n=kg(e.base,"accent")).base,e.base=r,a=function(e){if(e instanceof Cf)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(rg(e,t)),e.base=n):r=(n=kg(e,"accent")).base;var i=rg(r,t.havingCrampedStyle()),o=0;if(n.isShifty&&Vp.isCharacterBox(r)){var s=Vp.getBaseElem(r);o=Lf(rg(s,t.havingCrampedStyle())).skew}var l,u="\\c"===n.label,c=u?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(n.isStretchy)l=Sg(n,t),l=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+kf(2*o)+")",marginLeft:kf(2*o)}:void 0}]},t);else{var d,h;"\\vec"===n.label?(d=Mm.staticSvg("vec",t),h=Mm.svgData.vec[1]):((d=Lf(d=Mm.makeOrd({mode:n.mode,text:n.label},t,"textord"))).italic=0,h=d.width,u&&(c+=d.depth)),l=Mm.makeSpan(["accent-body"],[d]);var p="\\textcircled"===n.label;p&&(l.classes.push("accent-full"),c=i.height);var f=o;p||(f-=h/2),l.style.left=kf(f),"\\textcircled"===n.label&&(l.style.top=".2em"),l=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:l}]},t)}var m=Mm.makeSpan(["mord","accent"],[l],t);return a?(a.children[0]=m,a.height=Math.max(m.height,a.height),a.classes[0]="mord",a):m},Ng=(e,t)=>{var r=e.isStretchy?xg(e.label):new lg.MathNode("mo",[ug(e.label,e.mode)]),n=new lg.MathNode("mover",[fg(e.base,t),r]);return n.setAttribute("accent","true"),n},Cg=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Um({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Fm(t[0]),n=!Cg.test(e.funcName),a=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:_g,mathmlBuilder:Ng}),Um({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:_g,mathmlBuilder:Ng}),Um({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(e,t)=>{var r=rg(e.base,t),n=Sg(e,t),a="\\utilde"===e.label?.12:0,i=Mm.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},t);return Mm.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=xg(e.label),n=new lg.MathNode("munder",[fg(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Og=e=>{var t=new lg.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Um({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:a}=e;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,n=t.style,a=t.havingStyle(n.sup()),i=Mm.wrapFragment(rg(e.body,a,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(o+"-arrow-pad"),e.below&&(a=t.havingStyle(n.sub()),(r=Mm.wrapFragment(rg(e.below,a,t),t)).classes.push(o+"-arrow-pad"));var s,l=Sg(e,t),u=-t.fontMetrics().axisHeight+.5*l.height,c=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(c-=i.depth),r){var d=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:l,shift:u},{type:"elem",elem:r,shift:d}]},t)}else s=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:l,shift:u}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),Mm.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,n=xg(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var a=Og(fg(e.body,t));if(e.below){var i=Og(fg(e.below,t));r=new lg.MathNode("munderover",[n,i,a])}else r=new lg.MathNode("mover",[n,a])}else if(e.below){var o=Og(fg(e.below,t));r=new lg.MathNode("munder",[n,o])}else r=Og(),r=new lg.MathNode("mover",[n,r]);return r}});var Ig=Mm.makeSpan;function Rg(e,t){var r=Km(e.body,t,!0);return Ig([e.mclass],r,t)}function Mg(e,t){var r,n=hg(e.body,t);return"minner"===e.mclass?r=new lg.MathNode("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new lg.MathNode("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new lg.MathNode("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Um({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Vm(a),isCharacterBox:Vp.isCharacterBox(a)}},htmlBuilder:Rg,mathmlBuilder:Mg});var Ag=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};Um({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Ag(t[0]),body:Vm(t[1]),isCharacterBox:Vp.isCharacterBox(t[1])}}}),Um({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:n,funcName:a}=e,i=t[1],o=t[0];r="\\stackrel"!==a?Ag(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==a,body:Vm(i)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===a?null:o,sub:"\\underset"===a?o:null};return{type:"mclass",mode:n.mode,mclass:r,body:[l],isCharacterBox:Vp.isCharacterBox(l)}},htmlBuilder:Rg,mathmlBuilder:Mg}),Um({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Ag(t[0]),body:Vm(t[0])}},htmlBuilder(e,t){var r=Km(e.body,t,!0),n=Mm.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=hg(e.body,t),n=new lg.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var zg={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Dg=()=>({type:"styling",body:[],mode:"math",style:"display"}),Lg=e=>"textord"===e.type&&"@"===e.text,Pg=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function jg(e,t,r){var n=zg[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var a={type:"atom",text:n,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[a],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}Um({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=Mm.wrapFragment(rg(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=kf(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new lg.MathNode("mrow",[fg(e.label,t)]);return(r=new lg.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new lg.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),Um({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Mm.wrapFragment(rg(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new lg.MathNode("mrow",[fg(e.fragment,t)])}),Um({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=kg(t[0],"ordgroup").body,a="",i=0;i<n.length;i++){a+=kg(n[i],"textord").text}var o,s=parseInt(a);if(isNaN(s))throw new Bp("\\@char has non-numeric argument "+a);if(s<0||s>=1114111)throw new Bp("\\@char with invalid code point "+a);return s<=65535?o=String.fromCharCode(s):(s-=65536,o=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:r.mode,text:o}}});var Bg=(e,t)=>{var r=Km(e.body,t.withColor(e.color),!1);return Mm.makeFragment(r)},qg=(e,t)=>{var r=hg(e.body,t.withColor(e.color)),n=new lg.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};Um({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=kg(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:Vm(a)}},htmlBuilder:Bg,mathmlBuilder:qg}),Um({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=kg(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:Bg,mathmlBuilder:qg}),Um({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,a="["===n.gullet.future().text?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&kg(a,"size").value}},htmlBuilder(e,t){var r=Mm.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=kf(Sf(e.size,t)))),r},mathmlBuilder(e,t){var r=new lg.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",kf(Sf(e.size,t)))),r}});var Ug={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Hg=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Bp("Expected a control sequence",e);return t},Fg=(e,t,r,n)=>{var a=e.gullet.macros.get(r.text);null==a&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};Um({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Ug[n.text])return"\\global"!==r&&"\\\\globallong"!==r||(n.text=Ug[n.text]),kg(t.parseFunction(),"internal");throw new Bp("Invalid token after macro prefix",n)}}),Um({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Bp("Expected a control sequence",n);for(var i,o=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){i=t.gullet.future(),s[o].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Bp('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new Bp('Argument number "'+n.text+'" out of order');o++,s.push([])}else{if("EOF"===n.text)throw new Bp("Expected a macro definition");s[o].push(n.text)}var{tokens:l}=t.gullet.consumeArg();return i&&l.unshift(i),"\\edef"!==r&&"\\xdef"!==r||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(a,{tokens:l,numArgs:o,delimiters:s},r===Ug[r]),{type:"internal",mode:t.mode}}}),Um({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Hg(t.gullet.popToken());t.gullet.consumeSpaces();var a=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return Fg(t,n,a,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),Um({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Hg(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return Fg(t,n,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var Vg=function(e,t,r){var n=pf(Bf.math[e]&&Bf.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},Wg=function(e,t,r,n){var a=r.havingBaseStyle(t),i=Mm.makeSpan(n.concat(a.sizingClasses(r)),[e],r),o=a.sizeMultiplier/r.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=a.sizeMultiplier,i},$g=function(e,t,r){var n=t.havingBaseStyle(r),a=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=kf(a),e.height-=a,e.depth+=a},Gg=function(e,t,r,n,a,i){var o=function(e,t,r,n){return Mm.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,a,n),s=Wg(Mm.makeSpan(["delimsizing","size"+t],[o],n),rf.TEXT,n,i);return r&&$g(s,n,rf.TEXT),s},Yg=function(e,t,r){var n;return n="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Mm.makeSpan(["delimsizinginner",n],[Mm.makeSpan([],[Mm.makeSymbol(e,t,r)])])}},Qg=function(e,t,r){var n=cf["Size4-Regular"][e.charCodeAt(0)]?cf["Size4-Regular"][e.charCodeAt(0)][4]:cf["Size1-Regular"][e.charCodeAt(0)][4],a=new zf("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new Af([a],{width:kf(n),height:kf(t),style:"width:"+kf(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=Mm.makeSvgSpan([],[i],r);return o.height=t,o.style.height=kf(t),o.style.width=kf(n),{type:"elem",elem:o}},Kg={type:"kern",size:-.008},Xg=["|","\\lvert","\\rvert","\\vert"],Zg=["\\|","\\lVert","\\rVert","\\Vert"],Jg=function(e,t,r,n,a,i){var o,s,l,u,c="",d=0;o=l=u=e,s=null;var h="Size1-Regular";"\\uparrow"===e?l=u="⏐":"\\Uparrow"===e?l=u="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",u="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",u="\\Downarrow"):Vp.contains(Xg,e)?(l="∣",c="vert",d=333):Vp.contains(Zg,e)?(l="∥",c="doublevert",d=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",u="⎣",h="Size4-Regular",c="lbrack",d=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",u="⎦",h="Size4-Regular",c="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",u="⎣",h="Size4-Regular",c="lfloor",d=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=u="⎢",h="Size4-Regular",c="lceil",d=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",u="⎦",h="Size4-Regular",c="rfloor",d=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=u="⎥",h="Size4-Regular",c="rceil",d=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",u="⎝",h="Size4-Regular",c="lparen",d=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",u="⎠",h="Size4-Regular",c="rparen",d=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",u="⎩",l="⎪",h="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",u="⎭",l="⎪",h="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",u="⎩",l="⎪",h="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",u="⎭",l="⎪",h="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",u="⎭",l="⎪",h="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",u="⎩",l="⎪",h="Size4-Regular");var p=Vg(o,h,a),f=p.height+p.depth,m=Vg(l,h,a),g=m.height+m.depth,v=Vg(u,h,a),y=v.height+v.depth,b=0,w=1;if(null!==s){var x=Vg(s,h,a);b=x.height+x.depth,w=2}var S=f+y+b,k=S+Math.max(0,Math.ceil((t-S)/(w*g)))*w*g,E=n.fontMetrics().axisHeight;r&&(E*=n.sizeMultiplier);var T=k/2-E,_=[];if(c.length>0){var N=k-f-y,C=Math.round(1e3*k),O=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(c,Math.round(1e3*N)),I=new zf(c,O),R=(d/1e3).toFixed(3)+"em",M=(C/1e3).toFixed(3)+"em",A=new Af([I],{width:R,height:M,viewBox:"0 0 "+d+" "+C}),z=Mm.makeSvgSpan([],[A],n);z.height=C/1e3,z.style.width=R,z.style.height=M,_.push({type:"elem",elem:z})}else{if(_.push(Yg(u,h,a)),_.push(Kg),null===s){var D=k-f-y+.016;_.push(Qg(l,D,n))}else{var L=(k-f-y-b)/2+.016;_.push(Qg(l,L,n)),_.push(Kg),_.push(Yg(s,h,a)),_.push(Kg),_.push(Qg(l,L,n))}_.push(Kg),_.push(Yg(o,h,a))}var P=n.havingBaseStyle(rf.TEXT),j=Mm.makeVList({positionType:"bottom",positionData:T,children:_},P);return Wg(Mm.makeSpan(["delimsizing","mult"],[j],P),rf.TEXT,n,i)},ev=.08,tv=function(e,t,r,n,a){var i=function(e,t,r){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,sf);break;case"sqrtSize1":n=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,sf);break;case"sqrtSize2":n=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,sf);break;case"sqrtSize3":n=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,sf);break;case"sqrtSize4":n=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,sf);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,sf,r)}return n}(e,n,r),o=new zf(e,i),s=new Af([o],{width:"400em",height:kf(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Mm.makeSvgSpan(["hide-tail"],[s],a)},rv=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],nv=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],av=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],iv=[0,1.2,1.8,2.4,3],ov=[{type:"small",style:rf.SCRIPTSCRIPT},{type:"small",style:rf.SCRIPT},{type:"small",style:rf.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],sv=[{type:"small",style:rf.SCRIPTSCRIPT},{type:"small",style:rf.SCRIPT},{type:"small",style:rf.TEXT},{type:"stack"}],lv=[{type:"small",style:rf.SCRIPTSCRIPT},{type:"small",style:rf.SCRIPT},{type:"small",style:rf.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],uv=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},cv=function(e,t,r,n){for(var a=Math.min(2,3-n.style.size);a<r.length&&"stack"!==r[a].type;a++){var i=Vg(e,uv(r[a]),"math"),o=i.height+i.depth;if("small"===r[a].type&&(o*=n.havingBaseStyle(r[a].style).sizeMultiplier),o>t)return r[a]}return r[r.length-1]},dv=function(e,t,r,n,a,i){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=Vp.contains(av,e)?ov:Vp.contains(rv,e)?lv:sv;var s=cv(e,t,o,n);return"small"===s.type?function(e,t,r,n,a,i){var o=Mm.makeSymbol(e,"Main-Regular",a,n),s=Wg(o,t,n,i);return r&&$g(s,n,t),s}(e,s.style,r,n,a,i):"large"===s.type?Gg(e,s.size,r,n,a,i):Jg(e,t,r,n,a,i)},hv={sqrtImage:function(e,t){var r,n,a=t.havingBaseSizing(),i=cv("\\surd",e*a.sizeMultiplier,lv,a),o=a.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,u=0,c=0;return"small"===i.type?(e<1?o=1:e<1.4&&(o=.7),u=(1+s)/o,(r=tv("sqrtMain",l=(1+s+ev)/o,c=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/o):"large"===i.type?(c=1080*iv[i.size],u=(iv[i.size]+s)/o,l=(iv[i.size]+s+ev)/o,(r=tv("sqrtSize"+i.size,l,c,s,t)).style.minWidth="1.02em",n=1/o):(l=e+s+ev,u=e+s,c=Math.floor(1e3*e+s)+80,(r=tv("sqrtTall",l,c,s,t)).style.minWidth="0.742em",n=1.056),r.height=u,r.style.height=kf(l),{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},sizedDelim:function(e,t,r,n,a){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),Vp.contains(rv,e)||Vp.contains(av,e))return Gg(e,t,!1,r,n,a);if(Vp.contains(nv,e))return Jg(e,iv[t],!1,r,n,a);throw new Bp("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:iv,customSizedDelim:dv,leftRightDelim:function(e,t,r,n,a,i){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),u=Math.max(l/500*901,2*l-s);return dv(e,u,!0,n,a,i)}},pv={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},fv=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function mv(e,t){var r=Tg(e);if(r&&Vp.contains(fv,r.text))return r;throw new Bp(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function gv(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Um({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=mv(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:pv[e.funcName].size,mclass:pv[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?Mm.makeSpan([e.mclass]):hv.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(ug(e.delim,e.mode));var r=new lg.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=kf(hv.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),Um({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new Bp("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:mv(t[0],e).text,color:r}}}),Um({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=mv(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=kg(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{gv(e);for(var r,n,a=Km(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,l=0;l<a.length;l++)a[l].isMiddle?s=!0:(i=Math.max(a[l].height,i),o=Math.max(a[l].depth,o));if(i*=t.sizeMultiplier,o*=t.sizeMultiplier,r="."===e.left?tg(t,["mopen"]):hv.leftRightDelim(e.left,i,o,t,e.mode,["mopen"]),a.unshift(r),s)for(var u=1;u<a.length;u++){var c=a[u].isMiddle;c&&(a[u]=hv.leftRightDelim(c.delim,i,o,c.options,e.mode,[]))}if("."===e.right)n=tg(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;n=hv.leftRightDelim(e.right,i,o,d,e.mode,["mclose"])}return a.push(n),Mm.makeSpan(["minner"],a,t)},mathmlBuilder:(e,t)=>{gv(e);var r=hg(e.body,t);if("."!==e.left){var n=new lg.MathNode("mo",[ug(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var a=new lg.MathNode("mo",[ug(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return cg(r)}}),Um({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=mv(t[0],e);if(!e.parser.leftrightDepth)throw new Bp("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=tg(t,[]);else{r=hv.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?ug("|","text"):ug(e.delim,e.mode),n=new lg.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var vv=(e,t)=>{var r,n,a,i=Mm.wrapFragment(rg(e.body,t),t),o=e.label.slice(1),s=t.sizeMultiplier,l=0,u=Vp.isCharacterBox(e.body);if("sout"===o)(r=Mm.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===o){var c=Sf({number:.6,unit:"pt"},t),d=Sf({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var h=i.height+i.depth+c+d;i.style.paddingLeft=kf(h/2+c);var p=Math.floor(1e3*h*s),f="M400000 "+(n=p)+" H0 L"+n/2+" 0 l65 45 L145 "+(n-80)+" H400000z",m=new Af([new zf("phase",f)],{width:"400em",height:kf(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});(r=Mm.makeSvgSpan(["hide-tail"],[m],t)).style.height=kf(h),l=i.depth+c+d}else{/cancel/.test(o)?u||i.classes.push("cancel-pad"):"angl"===o?i.classes.push("anglpad"):i.classes.push("boxpad");var g=0,v=0,y=0;/box/.test(o)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),v=g=t.fontMetrics().fboxsep+("colorbox"===o?0:y)):"angl"===o?(g=4*(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),v=Math.max(0,.25-i.depth)):v=g=u?.2:0,r=wg(i,o,g,v,t),/fbox|boxed|fcolorbox/.test(o)?(r.style.borderStyle="solid",r.style.borderWidth=kf(y)):"angl"===o&&.049!==y&&(r.style.borderTopWidth=kf(y),r.style.borderRightWidth=kf(y)),l=i.depth+v,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)a=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:l},{type:"elem",elem:i,shift:0}]},t);else{var b=/cancel|phase/.test(o)?["svg-align"]:[];a=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:r,shift:l,wrapperClasses:b}]},t)}return/cancel/.test(o)&&(a.height=i.height,a.depth=i.depth),/cancel/.test(o)&&!u?Mm.makeSpan(["mord","cancel-lap"],[a],t):Mm.makeSpan(["mord"],[a],t)},yv=(e,t)=>{var r=0,n=new lg.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[fg(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Um({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=kg(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:o}},htmlBuilder:vv,mathmlBuilder:yv}),Um({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=kg(t[0],"color-token").color,o=kg(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:o,borderColor:i,body:s}},htmlBuilder:vv,mathmlBuilder:yv}),Um({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),Um({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:vv,mathmlBuilder:yv}),Um({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var bv={};function wv(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<r.length;++l)bv[r[l]]=s;i&&(Bm[t]=i),o&&(qm[t]=o)}var xv={};function Sv(e,t){xv[e]=t}function kv(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}var Ev=e=>{if(!e.parser.settings.displayMode)throw new Bp("{"+e.envName+"} can be used only in display mode.")};function Tv(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function _v(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:u,emptySingleRow:c,maxNumCols:d,leqno:h}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var p=e.gullet.expandMacroAsText("\\arraystretch");if(null==p)o=1;else if(!(o=parseFloat(p))||o<0)throw new Bp("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var f=[],m=[f],g=[],v=[],y=null!=l?[]:void 0;function b(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new jp("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(b(),v.push(kv(e));;){var x=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),x={type:"ordgroup",mode:e.mode,body:x},r&&(x={type:"styling",mode:e.mode,style:r,body:[x]}),f.push(x);var S=e.fetch().text;if("&"===S){if(d&&f.length===d){if(u||s)throw new Bp("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===S){w(),1===f.length&&"styling"===x.type&&0===x.body[0].body.length&&(m.length>1||!c)&&m.pop(),v.length<m.length+1&&v.push([]);break}if("\\\\"!==S)throw new Bp("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var k=void 0;" "!==e.gullet.future().text&&(k=e.parseSizeGroup(!0)),g.push(k?k.value:null),w(),v.push(kv(e)),f=[],m.push(f),b()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:o,body:m,cols:i,rowGaps:g,hskipBeforeAndAfter:n,hLinesBeforeRow:v,colSeparationType:s,tags:y,leqno:h}}function Nv(e){return"d"===e.slice(0,1)?"display":"text"}var Cv=function(e,t){var r,n,a=e.body.length,i=e.hLinesBeforeRow,o=0,s=new Array(a),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),c=1/t.fontMetrics().ptPerEm,d=5*c;e.colSeparationType&&"small"===e.colSeparationType&&(d=t.havingStyle(rf.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var h="CD"===e.colSeparationType?Sf({number:3,unit:"ex"},t):12*c,p=3*c,f=e.arraystretch*h,m=.7*f,g=.3*f,v=0;function y(e){for(var t=0;t<e.length;++t)t>0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(i[0]),r=0;r<e.body.length;++r){var b=e.body[r],w=m,x=g;o<b.length&&(o=b.length);var S=new Array(b.length);for(n=0;n<b.length;++n){var k=rg(b[n],t);x<k.depth&&(x=k.depth),w<k.height&&(w=k.height),S[n]=k}var E=e.rowGaps[r],T=0;E&&(T=Sf(E,t))>0&&(x<(T+=g)&&(x=T),T=0),e.addJot&&(x+=p),S.height=w,S.depth=x,v+=w,S.pos=v,v+=x+T,s[r]=S,y(i[r+1])}var _,N,C=v/2+t.fontMetrics().axisHeight,O=e.cols||[],I=[],R=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r<a;++r){var M=s[r],A=M.pos-C,z=e.tags[r],D=void 0;(D=!0===z?Mm.makeSpan(["eqn-num"],[],t):!1===z?Mm.makeSpan([],[],t):Mm.makeSpan([],Km(z,t,!0),t)).depth=M.depth,D.height=M.height,R.push({type:"elem",elem:D,shift:A})}for(n=0,N=0;n<o||N<O.length;++n,++N){for(var L=O[N]||{},P=!0;"separator"===L.type;){if(P||((_=Mm.makeSpan(["arraycolsep"],[])).style.width=kf(t.fontMetrics().doubleRuleSep),I.push(_)),"|"!==L.separator&&":"!==L.separator)throw new Bp("Invalid separator type: "+L.separator);var j="|"===L.separator?"solid":"dashed",B=Mm.makeSpan(["vertical-separator"],[],t);B.style.height=kf(v),B.style.borderRightWidth=kf(u),B.style.borderRightStyle=j,B.style.margin="0 "+kf(-u/2);var q=v-C;q&&(B.style.verticalAlign=kf(-q)),I.push(B),L=O[++N]||{},P=!1}if(!(n>=o)){var U=void 0;(n>0||e.hskipBeforeAndAfter)&&0!==(U=Vp.deflt(L.pregap,d))&&((_=Mm.makeSpan(["arraycolsep"],[])).style.width=kf(U),I.push(_));var H=[];for(r=0;r<a;++r){var F=s[r],V=F[n];if(V){var W=F.pos-C;V.depth=F.depth,V.height=F.height,H.push({type:"elem",elem:V,shift:W})}}H=Mm.makeVList({positionType:"individualShift",children:H},t),H=Mm.makeSpan(["col-align-"+(L.align||"c")],[H]),I.push(H),(n<o-1||e.hskipBeforeAndAfter)&&0!==(U=Vp.deflt(L.postgap,d))&&((_=Mm.makeSpan(["arraycolsep"],[])).style.width=kf(U),I.push(_))}}if(s=Mm.makeSpan(["mtable"],I),l.length>0){for(var $=Mm.makeLineSpan("hline",t,u),G=Mm.makeLineSpan("hdashline",t,u),Y=[{type:"elem",elem:s,shift:0}];l.length>0;){var Q=l.pop(),K=Q.pos-C;Q.isDashed?Y.push({type:"elem",elem:G,shift:K}):Y.push({type:"elem",elem:$,shift:K})}s=Mm.makeVList({positionType:"individualShift",children:Y},t)}if(0===R.length)return Mm.makeSpan(["mord"],[s],t);var X=Mm.makeVList({positionType:"individualShift",children:R},t);return X=Mm.makeSpan(["tag"],[X],t),Mm.makeFragment([s,X])},Ov={c:"center ",l:"left ",r:"right "},Iv=function(e,t){for(var r=[],n=new lg.MathNode("mtd",[],["mtr-glue"]),a=new lg.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var o=e.body[i],s=[],l=0;l<o.length;l++)s.push(new lg.MathNode("mtd",[fg(o[l],t)]));e.tags&&e.tags[i]&&(s.unshift(n),s.push(n),e.leqno?s.unshift(a):s.push(a)),r.push(new lg.MathNode("mtr",s))}var u=new lg.MathNode("mtable",r),c=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",kf(c));var d="",h="";if(e.cols&&e.cols.length>0){var p=e.cols,f="",m=!1,g=0,v=p.length;"separator"===p[0].type&&(d+="top ",g=1),"separator"===p[p.length-1].type&&(d+="bottom ",v-=1);for(var y=g;y<v;y++)"align"===p[y].type?(h+=Ov[p[y].align],m&&(f+="none "),m=!0):"separator"===p[y].type&&m&&(f+="|"===p[y].separator?"solid ":"dashed ",m=!1);u.setAttribute("columnalign",h.trim()),/[sd]/.test(f)&&u.setAttribute("columnlines",f.trim())}if("align"===e.colSeparationType){for(var b=e.cols||[],w="",x=1;x<b.length;x++)w+=x%2?"0em ":"1em ";u.setAttribute("columnspacing",w.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?u.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?u.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var S="",k=e.hLinesBeforeRow;d+=k[0].length>0?"left ":"",d+=k[k.length-1].length>0?"right ":"";for(var E=1;E<k.length-1;E++)S+=0===k[E].length?"none ":k[E][0]?"dashed ":"solid ";return/[sd]/.test(S)&&u.setAttribute("rowlines",S.trim()),""!==d&&(u=new lg.MathNode("menclose",[u])).setAttribute("notation",d.trim()),e.arraystretch&&e.arraystretch<1&&(u=new lg.MathNode("mstyle",[u])).setAttribute("scriptlevel","1"),u},Rv=function(e,t){-1===e.envName.indexOf("ed")&&Ev(e);var r,n=[],a=e.envName.indexOf("at")>-1?"alignat":"align",i="split"===e.envName,o=_v(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:Tv(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var u="",c=0;c<t[0].body.length;c++){u+=kg(t[0].body[c],"textord").text}r=Number(u),s=2*r}var d=!s;o.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var n=kg(e[t],"styling");kg(n.body[0],"ordgroup").body.unshift(l)}if(d)s<e.length&&(s=e.length);else{var a=e.length/2;if(r<a)throw new Bp("Too many math in a row: expected "+r+", but got "+a,e[0])}});for(var h=0;h<s;++h){var p="r",f=0;h%2==1?p="l":h>0&&d&&(f=1),n[h]={type:"align",align:p,pregap:f,postgap:0}}return o.colSeparationType=d?"align":"alignat",o};wv({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(Tg(t[0])?[t[0]]:kg(t[0],"ordgroup").body).map(function(e){var t=Eg(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new Bp("Unknown column alignment: "+t,e)}),n={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return _v(e.parser,n,Nv(e.envName))},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var a=e.parser;if(a.consumeSpaces(),"["===a.fetch().text){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,-1==="lcr".indexOf(r))throw new Bp("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=_v(e.parser,n,Nv(e.envName)),o=Math.max(0,...i.body.map(e=>e.length));return i.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=_v(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(Tg(t[0])?[t[0]]:kg(t[0],"ordgroup").body).map(function(e){var t=Eg(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new Bp("Unknown column alignment: "+t,e)});if(r.length>1)throw new Bp("{subarray} can contain only one column");var n={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((n=_v(e.parser,n,"script")).body.length>0&&n.body[0].length>1)throw new Bp("{subarray} can contain only one column");return n},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=_v(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Nv(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Rv,htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Vp.contains(["gather","gather*"],e.envName)&&Ev(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Tv(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return _v(e.parser,t,"display")},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Rv,htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Ev(e);var t={autoTag:Tv(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return _v(e.parser,t,"display")},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(Ev(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new Bp("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var n=[],a=[n],i=0;i<t.length;i++){for(var o=t[i],s=Dg(),l=0;l<o.length;l++)if(Lg(o[l])){n.push(s);var u=Eg(o[l+=1]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(u)>-1);else{if(!("<>AV".indexOf(u)>-1))throw new Bp('Expected one of "<>AV=|." after @',o[l]);for(var d=0;d<2;d++){for(var h=!0,p=l+1;p<o.length;p++){if(Pg(o[p],u)){h=!1,l=p;break}if(Lg(o[p]))throw new Bp("Missing a "+u+" character to complete a CD arrow.",o[p]);c[d].body.push(o[p])}if(h)throw new Bp("Missing a "+u+" character to complete a CD arrow.",o[l])}}var f={type:"styling",body:[jg(u,c,e)],mode:"math",style:"display"};n.push(f),s=Dg()}else s.body.push(o[l]);i%2==0?n.push(s):n.shift(),n=[],a.push(n)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}(e.parser)),htmlBuilder:Cv,mathmlBuilder:Iv}),Sv("\\nonumber","\\gdef\\@eqnsw{0}"),Sv("\\notag","\\nonumber"),Um({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Bp(e.funcName+" valid only within array environment")}});var Mv=bv;Um({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];if("ordgroup"!==a.type)throw new Bp("Invalid environment name",a);for(var i="",o=0;o<a.body.length;++o)i+=kg(a.body[o],"textord").text;if("\\begin"===n){if(!Mv.hasOwnProperty(i))throw new Bp("No such environment: "+i,a);var s=Mv[i],{args:l,optArgs:u}=r.parseArguments("\\begin{"+i+"}",s),c={mode:r.mode,envName:i,parser:r},d=s.handler(c,l,u);r.expect("\\end",!1);var h=r.nextToken,p=kg(r.parseFunction(),"environment");if(p.name!==i)throw new Bp("Mismatch: \\begin{"+i+"} matched by \\end{"+p.name+"}",h);return d}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var Av=(e,t)=>{var r=e.font,n=t.withFont(r);return rg(e.body,n)},zv=(e,t)=>{var r=e.font,n=t.withFont(r);return fg(e.body,n)},Dv={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Um({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=Fm(t[0]),i=n;return i in Dv&&(i=Dv[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Av,mathmlBuilder:zv}),Um({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],a=Vp.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Ag(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}}),Um({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:a}=e,{mode:i}=r,o=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:Av,mathmlBuilder:zv});var Lv=(e,t)=>{var r=t;return"display"===e?r=r.id>=rf.SCRIPT.id?r.text():rf.DISPLAY:"text"===e&&r.size===rf.DISPLAY.size?r=rf.TEXT:"script"===e?r=rf.SCRIPT:"scriptscript"===e&&(r=rf.SCRIPTSCRIPT),r},Pv=(e,t)=>{var r,n=Lv(e.size,t.style),a=n.fracNum(),i=n.fracDen();r=t.havingStyle(a);var o=rg(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}r=t.havingStyle(i);var u,c,d,h,p,f,m,g,v,y,b=rg(e.denom,r,t);if(e.hasBarLine?(e.barSize?(c=Sf(e.barSize,t),u=Mm.makeLineSpan("frac-line",t,c)):u=Mm.makeLineSpan("frac-line",t),c=u.height,d=u.height):(u=null,c=0,d=t.fontMetrics().defaultRuleThickness),n.size===rf.DISPLAY.size||"display"===e.size?(h=t.fontMetrics().num1,p=c>0?3*d:7*d,f=t.fontMetrics().denom1):(c>0?(h=t.fontMetrics().num2,p=d):(h=t.fontMetrics().num3,p=3*d),f=t.fontMetrics().denom2),u){var w=t.fontMetrics().axisHeight;h-o.depth-(w+.5*c)<p&&(h+=p-(h-o.depth-(w+.5*c))),w-.5*c-(b.height-f)<p&&(f+=p-(w-.5*c-(b.height-f)));var x=-(w-.5*c);m=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:f},{type:"elem",elem:u,shift:x},{type:"elem",elem:o,shift:-h}]},t)}else{var S=h-o.depth-(b.height-f);S<p&&(h+=.5*(p-S),f+=.5*(p-S)),m=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:f},{type:"elem",elem:o,shift:-h}]},t)}return r=t.havingStyle(n),m.height*=r.sizeMultiplier/t.sizeMultiplier,m.depth*=r.sizeMultiplier/t.sizeMultiplier,g=n.size===rf.DISPLAY.size?t.fontMetrics().delim1:n.size===rf.SCRIPTSCRIPT.size?t.havingStyle(rf.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?tg(t,["mopen"]):hv.customSizedDelim(e.leftDelim,g,!0,t.havingStyle(n),e.mode,["mopen"]),y=e.continued?Mm.makeSpan([]):null==e.rightDelim?tg(t,["mclose"]):hv.customSizedDelim(e.rightDelim,g,!0,t.havingStyle(n),e.mode,["mclose"]),Mm.makeSpan(["mord"].concat(r.sizingClasses(t)),[v,Mm.makeSpan(["mfrac"],[m]),y],t)},jv=(e,t)=>{var r=new lg.MathNode("mfrac",[fg(e.numer,t),fg(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=Sf(e.barSize,t);r.setAttribute("linethickness",kf(n))}}else r.setAttribute("linethickness","0px");var a=Lv(e.size,t.style);if(a.size!==t.style.size){r=new lg.MathNode("mstyle",[r]);var i=a.size===rf.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new lg.MathNode("mo",[new lg.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(r),null!=e.rightDelim){var l=new lg.MathNode("mo",[new lg.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return cg(o)}return r};Um({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:n,funcName:a}=e,i=t[0],o=t[1],s=null,l=null,u="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text"}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:o,hasBarLine:r,leftDelim:s,rightDelim:l,size:u,barSize:null}},htmlBuilder:Pv,mathmlBuilder:jv}),Um({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:a,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),Um({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:n,token:a}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:a}}});var Bv=["display","text","script","scriptscript"],qv=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};Um({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:n}=e,a=t[4],i=t[5],o=Fm(t[0]),s="atom"===o.type&&"open"===o.family?qv(o.text):null,l=Fm(t[1]),u="atom"===l.type&&"close"===l.family?qv(l.text):null,c=kg(t[2],"size"),d=null;r=!!c.isBlank||(d=c.value).number>0;var h="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var f=kg(p.body[0],"textord");h=Bv[Number(f.text)]}}else p=kg(p,"textord"),h=Bv[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:r,barSize:d,leftDelim:s,rightDelim:u,size:h}},htmlBuilder:Pv,mathmlBuilder:jv}),Um({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:a}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:kg(t[0],"size").value,token:a}}}),Um({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(kg(t[1],"infix").size),o=t[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:o,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Pv,mathmlBuilder:jv});var Uv=(e,t)=>{var r,n,a=t.style;"supsub"===e.type?(r=e.sup?rg(e.sup,t.havingStyle(a.sup()),t):rg(e.sub,t.havingStyle(a.sub()),t),n=kg(e.base,"horizBrace")):n=kg(e,"horizBrace");var i,o=rg(n.base,t.havingBaseStyle(rf.DISPLAY)),s=Sg(n,t);if(n.isOver?(i=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=Mm.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=Mm.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):Mm.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Mm.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)};Um({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:Uv,mathmlBuilder:(e,t)=>{var r=xg(e.label);return new lg.MathNode(e.isOver?"mover":"munder",[fg(e.base,t),r])}}),Um({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=kg(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:Vm(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Km(e.body,t,!1);return Mm.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=pg(e.body,t);return r instanceof og||(r=new og("mrow",[r])),r.setAttribute("href",e.href),r}}),Um({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=kg(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var o=n[i];"~"===o&&(o="\\textasciitilde"),a.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:Vm(s)}}}),Um({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Vm(t[0])}},htmlBuilder(e,t){var r=Km(e.body,t,!1);return Mm.makeFragment(r)},mathmlBuilder:(e,t)=>new lg.MathNode("mrow",hg(e.body,t))}),Um({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:n,funcName:a,token:i}=e,o=kg(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(a){case"\\htmlClass":l.class=o,r={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,r={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,r={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var u=o.split(","),c=0;c<u.length;c++){var d=u[c].split("=");if(2!==d.length)throw new Bp("Error parsing key-value for \\htmlData");l["data-"+d[0].trim()]=d[1].trim()}r={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(r)?{type:"html",mode:n.mode,attributes:l,body:Vm(s)}:n.formatUnsupportedCmd(a)},htmlBuilder:(e,t)=>{var r=Km(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var a=Mm.makeSpan(n,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>pg(e.body,t)}),Um({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Vm(t[0]),mathml:Vm(t[1])}},htmlBuilder:(e,t)=>{var r=Km(e.html,t,!1);return Mm.makeFragment(r)},mathmlBuilder:(e,t)=>pg(e.mathml,t)});var Hv=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Bp("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!xf(r))throw new Bp("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Um({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(r[0])for(var l=kg(r[0],"raw").string.split(","),u=0;u<l.length;u++){var c=l[u].split("=");if(2===c.length){var d=c[1].trim();switch(c[0].trim()){case"alt":s=d;break;case"width":a=Hv(d);break;case"height":i=Hv(d);break;case"totalheight":o=Hv(d);break;default:throw new Bp("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var h=kg(t[0],"url").url;return""===s&&(s=(s=(s=h).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:h})?{type:"includegraphics",mode:n.mode,alt:s,width:a,height:i,totalheight:o,src:h}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Sf(e.height,t),n=0;e.totalheight.number>0&&(n=Sf(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=Sf(e.width,t));var i={height:kf(r+n)};a>0&&(i.width=kf(a)),n>0&&(i.verticalAlign=kf(-n));var o=new If(e.src,e.alt,i);return o.height=r,o.depth=n,o},mathmlBuilder:(e,t)=>{var r=new lg.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Sf(e.height,t),a=0;if(e.totalheight.number>0&&(a=Sf(e.totalheight,t)-n,r.setAttribute("valign",kf(-a))),r.setAttribute("height",kf(n+a)),e.width.number>0){var i=Sf(e.width,t);r.setAttribute("width",kf(i))}return r.setAttribute("src",e.src),r}}),Um({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=kg(t[0],"size");if(r.settings.strict){var i="m"===n[1],o="mu"===a.value.unit;i?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+a.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder:(e,t)=>Mm.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=Sf(e.dimension,t);return new lg.SpaceNode(r)}}),Um({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(e,t)=>{var r;"clap"===e.alignment?(r=Mm.makeSpan([],[rg(e.body,t)]),r=Mm.makeSpan(["inner"],[r],t)):r=Mm.makeSpan(["inner"],[rg(e.body,t)]);var n=Mm.makeSpan(["fix"],[]),a=Mm.makeSpan([e.alignment],[r,n],t),i=Mm.makeSpan(["strut"]);return i.style.height=kf(a.height+a.depth),a.depth&&(i.style.verticalAlign=kf(-a.depth)),a.children.unshift(i),a=Mm.makeSpan(["thinbox"],[a],t),Mm.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new lg.MathNode("mpadded",[fg(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),Um({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,a=n.mode;n.switchMode("math");var i="\\("===r?"\\)":"$",o=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:o}}}),Um({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Bp("Mismatched "+e.funcName)}});var Fv=(e,t)=>{switch(t.style.size){case rf.DISPLAY.size:return e.display;case rf.TEXT.size:return e.text;case rf.SCRIPT.size:return e.script;case rf.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Um({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Vm(t[0]),text:Vm(t[1]),script:Vm(t[2]),scriptscript:Vm(t[3])}},htmlBuilder:(e,t)=>{var r=Fv(e,t),n=Km(r,t,!1);return Mm.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=Fv(e,t);return pg(r,t)}});var Vv=(e,t,r,n,a,i,o)=>{e=Mm.makeSpan([],[e]);var s,l,u,c=r&&Vp.isCharacterBox(r);if(t){var d=rg(t,n.havingStyle(a.sup()),n);l={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=rg(r,n.havingStyle(a.sub()),n);s={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}if(l&&s){var p=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;u=Mm.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:kf(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:kf(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var f=e.height-o;u=Mm.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:kf(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},n)}else{if(!l)return e;var m=e.depth+o;u=Mm.makeVList({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:kf(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var g=[u];if(s&&0!==i&&!c){var v=Mm.makeSpan(["mspace"],[],n);v.style.marginRight=kf(i),g.unshift(v)}return Mm.makeSpan(["mop","op-limits"],g,n)},Wv=["\\smallint"],$v=(e,t)=>{var r,n,a,i=!1;"supsub"===e.type?(r=e.sup,n=e.sub,a=kg(e.base,"op"),i=!0):a=kg(e,"op");var o,s=t.style,l=!1;if(s.size===rf.DISPLAY.size&&a.symbol&&!Vp.contains(Wv,a.name)&&(l=!0),a.symbol){var u=l?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==a.name&&"\\oiiint"!==a.name||(c=a.name.slice(1),a.name="oiint"===c?"\\iint":"\\iiint"),o=Mm.makeSymbol(a.name,u,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),c.length>0){var d=o.italic,h=Mm.staticSvg(c+"Size"+(l?"2":"1"),t);o=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:h,shift:l?.08:0}]},t),a.name="\\"+c,o.classes.unshift("mop"),o.italic=d}}else if(a.body){var p=Km(a.body,t,!0);1===p.length&&p[0]instanceof Mf?(o=p[0]).classes[0]="mop":o=Mm.makeSpan(["mop"],p,t)}else{for(var f=[],m=1;m<a.name.length;m++)f.push(Mm.mathsym(a.name[m],a.mode,t));o=Mm.makeSpan(["mop"],f,t)}var g=0,v=0;return(o instanceof Mf||"\\oiint"===a.name||"\\oiiint"===a.name)&&!a.suppressBaseShift&&(g=(o.height-o.depth)/2-t.fontMetrics().axisHeight,v=o.italic),i?Vv(o,r,n,t,s,v,g):(g&&(o.style.position="relative",o.style.top=kf(g)),o)},Gv=(e,t)=>{var r;if(e.symbol)r=new og("mo",[ug(e.name,e.mode)]),Vp.contains(Wv,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new og("mo",hg(e.body,t));else{r=new og("mi",[new sg(e.name.slice(1))]);var n=new og("mo",[ug("","text")]);r=e.parentIsSupSub?new og("mrow",[r,n]):ig([r,n])}return r},Yv={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Um({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=n;return 1===a.length&&(a=Yv[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:$v,mathmlBuilder:Gv}),Um({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Vm(n)}},htmlBuilder:$v,mathmlBuilder:Gv});var Qv={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Um({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:$v,mathmlBuilder:Gv}),Um({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:$v,mathmlBuilder:Gv}),Um({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return 1===n.length&&(n=Qv[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:$v,mathmlBuilder:Gv});var Kv=(e,t)=>{var r,n,a,i,o=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,a=kg(e.base,"operatorname"),o=!0):a=kg(e,"operatorname"),a.body.length>0){for(var s=a.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),l=Km(s,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var c=l[u];c instanceof Mf&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=Mm.makeSpan(["mop"],l,t)}else i=Mm.makeSpan(["mop"],[],t);return o?Vv(i,r,n,t,t.style,0,0):i};function Xv(e,t,r){for(var n=Km(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var o=n[i].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[o+1]==="reset-size"+t.size&&(n[i].classes[o+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return Mm.makeFragment(n)}Um({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"operatorname",mode:r.mode,body:Vm(a),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:Kv,mathmlBuilder:(e,t)=>{for(var r=hg(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(i instanceof lg.SpaceNode);else if(i instanceof lg.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var o=i.children[0];1===i.children.length&&o instanceof lg.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break;default:n=!1}else n=!1}if(n){var s=r.map(e=>e.toText()).join("");r=[new lg.TextNode(s)]}var l=new lg.MathNode("mi",r);l.setAttribute("mathvariant","normal");var u=new lg.MathNode("mo",[ug("","text")]);return e.parentIsSupSub?new lg.MathNode("mrow",[l,u]):lg.newDocumentFragment([l,u])}}),Sv("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Hm({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?Mm.makeFragment(Km(e.body,t,!1)):Mm.makeSpan(["mord"],Km(e.body,t,!0),t),mathmlBuilder:(e,t)=>pg(e.body,t,!0)}),Um({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=rg(e.body,t.havingCrampedStyle()),n=Mm.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]},t);return Mm.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new lg.MathNode("mo",[new lg.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new lg.MathNode("mover",[fg(e.body,t),r]);return n.setAttribute("accent","true"),n}}),Um({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:Vm(n)}},htmlBuilder:(e,t)=>{var r=Km(e.body,t.withPhantom(),!1);return Mm.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=hg(e.body,t);return new lg.MathNode("mphantom",r)}}),Um({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Mm.makeSpan([],[rg(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),Mm.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=hg(Vm(e.body),t),n=new lg.MathNode("mphantom",r),a=new lg.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),Um({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Mm.makeSpan(["inner"],[rg(e.body,t.withPhantom())]),n=Mm.makeSpan(["fix"],[]);return Mm.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=hg(Vm(e.body),t),n=new lg.MathNode("mphantom",r),a=new lg.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}}),Um({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=kg(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=rg(e.body,t),n=Sf(e.dy,t);return Mm.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new lg.MathNode("mpadded",[fg(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),Um({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Um({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,a=r[0],i=kg(t[0],"size"),o=kg(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&kg(a,"size").value,width:i.value,height:o.value}},htmlBuilder(e,t){var r=Mm.makeSpan(["mord","rule"],[],t),n=Sf(e.width,t),a=Sf(e.height,t),i=e.shift?Sf(e.shift,t):0;return r.style.borderRightWidth=kf(n),r.style.borderTopWidth=kf(a),r.style.bottom=kf(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=1.125*a*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Sf(e.width,t),n=Sf(e.height,t),a=e.shift?Sf(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new lg.MathNode("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",kf(r)),o.setAttribute("height",kf(n));var s=new lg.MathNode("mpadded",[o]);return a>=0?s.setAttribute("height",kf(a)):(s.setAttribute("height",kf(a)),s.setAttribute("depth",kf(-a))),s.setAttribute("voffset",kf(a)),s}});var Zv=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];Um({type:"sizing",names:Zv,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Zv.indexOf(n)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return Xv(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=hg(e.body,r),a=new lg.MathNode("mstyle",n);return a.setAttribute("mathsize",kf(r.sizeMultiplier)),a}}),Um({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,a=!1,i=!1,o=r[0]&&kg(r[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l){if("t"===(s=o.body[l].text))a=!0;else{if("b"!==s){a=!1,i=!1;break}i=!0}}else a=!0,i=!0;var u=t[0];return{type:"smash",mode:n.mode,body:u,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var r=Mm.makeSpan([],[rg(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].depth=0;var i=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return Mm.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new lg.MathNode("mpadded",[fg(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),Um({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(e,t){var r=rg(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=Mm.wrapFragment(r,t);var n=t.fontMetrics().defaultRuleThickness,a=n;t.style.id<rf.TEXT.id&&(a=t.fontMetrics().xHeight);var i=n+a/4,o=r.height+r.depth+i+n,{span:s,ruleWidth:l,advanceWidth:u}=hv.sqrtImage(o,t),c=s.height-l;c>r.height+r.depth+i&&(i=(i+c-r.height-r.depth)/2);var d=s.height-r.height-i-l;r.style.paddingLeft=kf(u);var h=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var p=t.havingStyle(rf.SCRIPTSCRIPT),f=rg(e.index,p,t),m=.6*(h.height-h.depth),g=Mm.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:f}]},t),v=Mm.makeSpan(["root"],[g]);return Mm.makeSpan(["mord","sqrt"],[v,h],t)}return Mm.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new lg.MathNode("mroot",[fg(r,t),fg(n,t)]):new lg.MathNode("msqrt",[fg(r,t)])}});var Jv={display:rf.DISPLAY,text:rf.TEXT,script:rf.SCRIPT,scriptscript:rf.SCRIPTSCRIPT};Um({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:o,body:i}},htmlBuilder(e,t){var r=Jv[e.style],n=t.havingStyle(r).withFont("");return Xv(e.body,n,t)},mathmlBuilder(e,t){var r=Jv[e.style],n=t.havingStyle(r),a=hg(e.body,n),i=new lg.MathNode("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});Hm({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===rf.DISPLAY.size||r.alwaysHandleSupSub)?$v:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===rf.DISPLAY.size||r.limits)?Kv:null:"accent"===r.type?Vp.isCharacterBox(r.base)?_g:null:"horizBrace"===r.type&&!e.sub===r.isOver?Uv:null:null}(e,t);if(r)return r(e,t);var n,a,i,{base:o,sup:s,sub:l}=e,u=rg(o,t),c=t.fontMetrics(),d=0,h=0,p=o&&Vp.isCharacterBox(o);if(s){var f=t.havingStyle(t.style.sup());n=rg(s,f,t),p||(d=u.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());a=rg(l,m,t),p||(h=u.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}i=t.style===rf.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var g,v=t.sizeMultiplier,y=kf(.5/c.ptPerEm/v),b=null;if(a){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(u instanceof Mf||w)&&(b=kf(-u.italic))}if(n&&a){d=Math.max(d,i,n.depth+.25*c.xHeight),h=Math.max(h,c.sub2);var x=4*c.defaultRuleThickness;if(d-n.depth-(a.height-h)<x){h=x-(d-n.depth)+a.height;var S=.8*c.xHeight-(d-n.depth);S>0&&(d+=S,h-=S)}var k=[{type:"elem",elem:a,shift:h,marginRight:y,marginLeft:b},{type:"elem",elem:n,shift:-d,marginRight:y}];g=Mm.makeVList({positionType:"individualShift",children:k},t)}else if(a){h=Math.max(h,c.sub1,a.height-.8*c.xHeight);var E=[{type:"elem",elem:a,marginLeft:b,marginRight:y}];g=Mm.makeVList({positionType:"shift",positionData:h,children:E},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");d=Math.max(d,i,n.depth+.25*c.xHeight),g=Mm.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:n,marginRight:y}]},t)}var T=eg(u,"right")||"mord";return Mm.makeSpan([T],[u,Mm.makeSpan(["msupsub"],[g])],t)},mathmlBuilder(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var a,i=[fg(e.base,t)];if(e.sub&&i.push(fg(e.sub,t)),e.sup&&i.push(fg(e.sup,t)),n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;a=o&&"op"===o.type&&o.limits&&t.style===rf.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===rf.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;a=s&&"op"===s.type&&s.limits&&(t.style===rf.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===rf.DISPLAY)?"munder":"msub"}else{var l=e.base;a=l&&"op"===l.type&&l.limits&&(t.style===rf.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===rf.DISPLAY)?"mover":"msup"}return new lg.MathNode(a,i)}}),Hm({type:"atom",htmlBuilder:(e,t)=>Mm.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new lg.MathNode("mo",[ug(e.text,e.mode)]);if("bin"===e.family){var n=dg(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var ey={mi:"italic",mn:"normal",mtext:"normal"};Hm({type:"mathord",htmlBuilder:(e,t)=>Mm.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new lg.MathNode("mi",[ug(e.text,e.mode,t)]),n=dg(e,t)||"italic";return n!==ey[r.type]&&r.setAttribute("mathvariant",n),r}}),Hm({type:"textord",htmlBuilder:(e,t)=>Mm.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,n=ug(e.text,e.mode,t),a=dg(e,t)||"normal";return r="text"===e.mode?new lg.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new lg.MathNode("mn",[n]):"\\prime"===e.text?new lg.MathNode("mo",[n]):new lg.MathNode("mi",[n]),a!==ey[r.type]&&r.setAttribute("mathvariant",a),r}});var ty={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ry={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Hm({type:"spacing",htmlBuilder(e,t){if(ry.hasOwnProperty(e.text)){var r=ry[e.text].className||"";if("text"===e.mode){var n=Mm.makeOrd(e,t,"textord");return n.classes.push(r),n}return Mm.makeSpan(["mspace",r],[Mm.mathsym(e.text,e.mode,t)],t)}if(ty.hasOwnProperty(e.text))return Mm.makeSpan(["mspace",ty[e.text]],[],t);throw new Bp('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!ry.hasOwnProperty(e.text)){if(ty.hasOwnProperty(e.text))return new lg.MathNode("mspace");throw new Bp('Unknown type of space "'+e.text+'"')}return new lg.MathNode("mtext",[new lg.TextNode(" ")])}});var ny=()=>{var e=new lg.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Hm({type:"tag",mathmlBuilder(e,t){var r=new lg.MathNode("mtable",[new lg.MathNode("mtr",[ny(),new lg.MathNode("mtd",[pg(e.body,t)]),ny(),new lg.MathNode("mtd",[pg(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var ay={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},iy={"\\textbf":"textbf","\\textmd":"textmd"},oy={"\\textit":"textit","\\textup":"textup"},sy=(e,t)=>{var r=e.font;return r?ay[r]?t.withTextFontFamily(ay[r]):iy[r]?t.withTextFontWeight(iy[r]):t.withTextFontShape(oy[r]):t};Um({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"text",mode:r.mode,body:Vm(a),font:n}},htmlBuilder(e,t){var r=sy(e,t),n=Km(e.body,r,!0);return Mm.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=sy(e,t);return pg(e.body,r)}}),Um({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=rg(e.body,t),n=Mm.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Mm.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t);return Mm.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new lg.MathNode("mo",[new lg.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new lg.MathNode("munder",[fg(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),Um({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=rg(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return Mm.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new lg.MathNode("mpadded",[fg(e.body,t)],["vcenter"])}),Um({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Bp("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=ly(e),n=[],a=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var o=r[i];"~"===o&&(o="\\textasciitilde"),n.push(Mm.makeSymbol(o,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return Mm.makeSpan(["mord","text"].concat(a.sizingClasses(t)),Mm.tryCombineChars(n),a)},mathmlBuilder(e,t){var r=new lg.TextNode(ly(e)),n=new lg.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var ly=e=>e.body.replace(/ /g,e.star?"␣":" "),uy=jm,cy="[ \r\n\t]",dy="(\\\\[a-zA-Z@]+)"+cy+"*",hy="[̀-ͯ]",py=new RegExp(hy+"+$"),fy="("+cy+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-]"+hy+"*|[\ud800-\udbff][\udc00-\udfff]"+hy+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+dy+"|\\\\[^\ud800-\udfff])";class my{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(fy,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new jp("EOF",new Pp(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new Bp("Unexpected character: '"+e[t]+"'",new jp(e[t],new Pp(this,t,t+1)));var n=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[n]){var a=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===a?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new jp(n,new Pp(this,t,this.tokenRegex.lastIndex))}}class gy{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new Bp("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var vy=xv;Sv("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Sv("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Sv("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Sv("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Sv("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),Sv("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Sv("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var yy={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Sv("\\char",function(e){var t,r=e.popToken(),n="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])n=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new Bp("\\char` missing argument");n=r.text.charCodeAt(0)}else t=10;if(t){if(null==(n=yy[r.text])||n>=t)throw new Bp("Invalid base-"+t+" digit "+r.text);for(var a;null!=(a=yy[e.future().text])&&a<t;)n*=t,n+=a,e.popToken()}return"\\@char{"+n+"}"});var by=(e,t,r)=>{var n=e.consumeArg().tokens;if(1!==n.length)throw new Bp("\\newcommand's first argument must be a macro name");var a=n[0].text,i=e.isDefined(a);if(i&&!t)throw new Bp("\\newcommand{"+a+"} attempting to redefine "+a+"; use \\renewcommand");if(!i&&!r)throw new Bp("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(1===(n=e.consumeArg().tokens).length&&"["===n[0].text){for(var s="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)s+=l.text,l=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new Bp("Invalid number of arguments: "+s);o=parseInt(s),n=e.consumeArg().tokens}return e.macros.set(a,{tokens:n,numArgs:o}),""};Sv("\\newcommand",e=>by(e,!1,!0)),Sv("\\renewcommand",e=>by(e,!0,!1)),Sv("\\providecommand",e=>by(e,!0,!0)),Sv("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join("")),""}),Sv("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join("")),""}),Sv("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),uy[r],Bf.math[r],Bf.text[r]),""}),Sv("\\bgroup","{"),Sv("\\egroup","}"),Sv("~","\\nobreakspace"),Sv("\\lq","`"),Sv("\\rq","'"),Sv("\\aa","\\r a"),Sv("\\AA","\\r A"),Sv("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Sv("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Sv("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Sv("ℬ","\\mathscr{B}"),Sv("ℰ","\\mathscr{E}"),Sv("ℱ","\\mathscr{F}"),Sv("ℋ","\\mathscr{H}"),Sv("ℐ","\\mathscr{I}"),Sv("ℒ","\\mathscr{L}"),Sv("ℳ","\\mathscr{M}"),Sv("ℛ","\\mathscr{R}"),Sv("ℭ","\\mathfrak{C}"),Sv("ℌ","\\mathfrak{H}"),Sv("ℨ","\\mathfrak{Z}"),Sv("\\Bbbk","\\Bbb{k}"),Sv("·","\\cdotp"),Sv("\\llap","\\mathllap{\\textrm{#1}}"),Sv("\\rlap","\\mathrlap{\\textrm{#1}}"),Sv("\\clap","\\mathclap{\\textrm{#1}}"),Sv("\\mathstrut","\\vphantom{(}"),Sv("\\underbar","\\underline{\\text{#1}}"),Sv("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Sv("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Sv("\\ne","\\neq"),Sv("≠","\\neq"),Sv("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Sv("∉","\\notin"),Sv("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Sv("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Sv("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Sv("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Sv("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Sv("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Sv("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Sv("⟂","\\perp"),Sv("‼","\\mathclose{!\\mkern-0.8mu!}"),Sv("∌","\\notni"),Sv("⌜","\\ulcorner"),Sv("⌝","\\urcorner"),Sv("⌞","\\llcorner"),Sv("⌟","\\lrcorner"),Sv("©","\\copyright"),Sv("®","\\textregistered"),Sv("️","\\textregistered"),Sv("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Sv("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Sv("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Sv("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Sv("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Sv("⋮","\\vdots"),Sv("\\varGamma","\\mathit{\\Gamma}"),Sv("\\varDelta","\\mathit{\\Delta}"),Sv("\\varTheta","\\mathit{\\Theta}"),Sv("\\varLambda","\\mathit{\\Lambda}"),Sv("\\varXi","\\mathit{\\Xi}"),Sv("\\varPi","\\mathit{\\Pi}"),Sv("\\varSigma","\\mathit{\\Sigma}"),Sv("\\varUpsilon","\\mathit{\\Upsilon}"),Sv("\\varPhi","\\mathit{\\Phi}"),Sv("\\varPsi","\\mathit{\\Psi}"),Sv("\\varOmega","\\mathit{\\Omega}"),Sv("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Sv("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Sv("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Sv("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Sv("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Sv("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var wy={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Sv("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in wy?t=wy[r]:("\\not"===r.slice(0,4)||r in Bf.math&&Vp.contains(["bin","rel"],Bf.math[r].group))&&(t="\\dotsb"),t});var xy={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Sv("\\dotso",function(e){return e.future().text in xy?"\\ldots\\,":"\\ldots"}),Sv("\\dotsc",function(e){var t=e.future().text;return t in xy&&","!==t?"\\ldots\\,":"\\ldots"}),Sv("\\cdots",function(e){return e.future().text in xy?"\\@cdots\\,":"\\@cdots"}),Sv("\\dotsb","\\cdots"),Sv("\\dotsm","\\cdots"),Sv("\\dotsi","\\!\\cdots"),Sv("\\dotsx","\\ldots\\,"),Sv("\\DOTSI","\\relax"),Sv("\\DOTSB","\\relax"),Sv("\\DOTSX","\\relax"),Sv("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Sv("\\,","\\tmspace+{3mu}{.1667em}"),Sv("\\thinspace","\\,"),Sv("\\>","\\mskip{4mu}"),Sv("\\:","\\tmspace+{4mu}{.2222em}"),Sv("\\medspace","\\:"),Sv("\\;","\\tmspace+{5mu}{.2777em}"),Sv("\\thickspace","\\;"),Sv("\\!","\\tmspace-{3mu}{.1667em}"),Sv("\\negthinspace","\\!"),Sv("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Sv("\\negthickspace","\\tmspace-{5mu}{.277em}"),Sv("\\enspace","\\kern.5em "),Sv("\\enskip","\\hskip.5em\\relax"),Sv("\\quad","\\hskip1em\\relax"),Sv("\\qquad","\\hskip2em\\relax"),Sv("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Sv("\\tag@paren","\\tag@literal{({#1})}"),Sv("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Bp("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Sv("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Sv("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Sv("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Sv("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Sv("\\newline","\\\\\\relax"),Sv("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Sy=kf(cf["Main-Regular"]["T".charCodeAt(0)][1]-.7*cf["Main-Regular"]["A".charCodeAt(0)][1]);Sv("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Sy+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Sv("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Sy+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Sv("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Sv("\\@hspace","\\hskip #1\\relax"),Sv("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Sv("\\ordinarycolon",":"),Sv("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Sv("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Sv("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Sv("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Sv("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Sv("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Sv("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Sv("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Sv("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Sv("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Sv("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Sv("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Sv("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Sv("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Sv("∷","\\dblcolon"),Sv("∹","\\eqcolon"),Sv("≔","\\coloneqq"),Sv("≕","\\eqqcolon"),Sv("⩴","\\Coloneqq"),Sv("\\ratio","\\vcentcolon"),Sv("\\coloncolon","\\dblcolon"),Sv("\\colonequals","\\coloneqq"),Sv("\\coloncolonequals","\\Coloneqq"),Sv("\\equalscolon","\\eqqcolon"),Sv("\\equalscoloncolon","\\Eqqcolon"),Sv("\\colonminus","\\coloneq"),Sv("\\coloncolonminus","\\Coloneq"),Sv("\\minuscolon","\\eqcolon"),Sv("\\minuscoloncolon","\\Eqcolon"),Sv("\\coloncolonapprox","\\Colonapprox"),Sv("\\coloncolonsim","\\Colonsim"),Sv("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Sv("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Sv("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Sv("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Sv("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Sv("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Sv("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Sv("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Sv("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Sv("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Sv("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Sv("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Sv("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Sv("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Sv("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Sv("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Sv("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Sv("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Sv("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Sv("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Sv("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Sv("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Sv("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Sv("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Sv("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Sv("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Sv("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Sv("\\imath","\\html@mathml{\\@imath}{ı}"),Sv("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Sv("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Sv("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Sv("⟦","\\llbracket"),Sv("⟧","\\rrbracket"),Sv("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Sv("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Sv("⦃","\\lBrace"),Sv("⦄","\\rBrace"),Sv("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Sv("⦵","\\minuso"),Sv("\\darr","\\downarrow"),Sv("\\dArr","\\Downarrow"),Sv("\\Darr","\\Downarrow"),Sv("\\lang","\\langle"),Sv("\\rang","\\rangle"),Sv("\\uarr","\\uparrow"),Sv("\\uArr","\\Uparrow"),Sv("\\Uarr","\\Uparrow"),Sv("\\N","\\mathbb{N}"),Sv("\\R","\\mathbb{R}"),Sv("\\Z","\\mathbb{Z}"),Sv("\\alef","\\aleph"),Sv("\\alefsym","\\aleph"),Sv("\\Alpha","\\mathrm{A}"),Sv("\\Beta","\\mathrm{B}"),Sv("\\bull","\\bullet"),Sv("\\Chi","\\mathrm{X}"),Sv("\\clubs","\\clubsuit"),Sv("\\cnums","\\mathbb{C}"),Sv("\\Complex","\\mathbb{C}"),Sv("\\Dagger","\\ddagger"),Sv("\\diamonds","\\diamondsuit"),Sv("\\empty","\\emptyset"),Sv("\\Epsilon","\\mathrm{E}"),Sv("\\Eta","\\mathrm{H}"),Sv("\\exist","\\exists"),Sv("\\harr","\\leftrightarrow"),Sv("\\hArr","\\Leftrightarrow"),Sv("\\Harr","\\Leftrightarrow"),Sv("\\hearts","\\heartsuit"),Sv("\\image","\\Im"),Sv("\\infin","\\infty"),Sv("\\Iota","\\mathrm{I}"),Sv("\\isin","\\in"),Sv("\\Kappa","\\mathrm{K}"),Sv("\\larr","\\leftarrow"),Sv("\\lArr","\\Leftarrow"),Sv("\\Larr","\\Leftarrow"),Sv("\\lrarr","\\leftrightarrow"),Sv("\\lrArr","\\Leftrightarrow"),Sv("\\Lrarr","\\Leftrightarrow"),Sv("\\Mu","\\mathrm{M}"),Sv("\\natnums","\\mathbb{N}"),Sv("\\Nu","\\mathrm{N}"),Sv("\\Omicron","\\mathrm{O}"),Sv("\\plusmn","\\pm"),Sv("\\rarr","\\rightarrow"),Sv("\\rArr","\\Rightarrow"),Sv("\\Rarr","\\Rightarrow"),Sv("\\real","\\Re"),Sv("\\reals","\\mathbb{R}"),Sv("\\Reals","\\mathbb{R}"),Sv("\\Rho","\\mathrm{P}"),Sv("\\sdot","\\cdot"),Sv("\\sect","\\S"),Sv("\\spades","\\spadesuit"),Sv("\\sub","\\subset"),Sv("\\sube","\\subseteq"),Sv("\\supe","\\supseteq"),Sv("\\Tau","\\mathrm{T}"),Sv("\\thetasym","\\vartheta"),Sv("\\weierp","\\wp"),Sv("\\Zeta","\\mathrm{Z}"),Sv("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Sv("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Sv("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Sv("\\bra","\\mathinner{\\langle{#1}|}"),Sv("\\ket","\\mathinner{|{#1}\\rangle}"),Sv("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Sv("\\Bra","\\left\\langle#1\\right|"),Sv("\\Ket","\\left|#1\\right\\rangle");var ky=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",o),a.length&&r.macros.set("\\|",s));var i=t;!t&&a.length&&("|"===r.future().text&&(r.popToken(),i=!0));return{tokens:i?a:n,numArgs:0}};t.macros.set("|",l(!1)),a.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...i,...u,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};Sv("\\bra@ket",ky(!1)),Sv("\\bra@set",ky(!0)),Sv("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Sv("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Sv("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Sv("\\angln","{\\angl n}"),Sv("\\blue","\\textcolor{##6495ed}{#1}"),Sv("\\orange","\\textcolor{##ffa500}{#1}"),Sv("\\pink","\\textcolor{##ff00af}{#1}"),Sv("\\red","\\textcolor{##df0030}{#1}"),Sv("\\green","\\textcolor{##28ae7b}{#1}"),Sv("\\gray","\\textcolor{gray}{#1}"),Sv("\\purple","\\textcolor{##9d38bd}{#1}"),Sv("\\blueA","\\textcolor{##ccfaff}{#1}"),Sv("\\blueB","\\textcolor{##80f6ff}{#1}"),Sv("\\blueC","\\textcolor{##63d9ea}{#1}"),Sv("\\blueD","\\textcolor{##11accd}{#1}"),Sv("\\blueE","\\textcolor{##0c7f99}{#1}"),Sv("\\tealA","\\textcolor{##94fff5}{#1}"),Sv("\\tealB","\\textcolor{##26edd5}{#1}"),Sv("\\tealC","\\textcolor{##01d1c1}{#1}"),Sv("\\tealD","\\textcolor{##01a995}{#1}"),Sv("\\tealE","\\textcolor{##208170}{#1}"),Sv("\\greenA","\\textcolor{##b6ffb0}{#1}"),Sv("\\greenB","\\textcolor{##8af281}{#1}"),Sv("\\greenC","\\textcolor{##74cf70}{#1}"),Sv("\\greenD","\\textcolor{##1fab54}{#1}"),Sv("\\greenE","\\textcolor{##0d923f}{#1}"),Sv("\\goldA","\\textcolor{##ffd0a9}{#1}"),Sv("\\goldB","\\textcolor{##ffbb71}{#1}"),Sv("\\goldC","\\textcolor{##ff9c39}{#1}"),Sv("\\goldD","\\textcolor{##e07d10}{#1}"),Sv("\\goldE","\\textcolor{##a75a05}{#1}"),Sv("\\redA","\\textcolor{##fca9a9}{#1}"),Sv("\\redB","\\textcolor{##ff8482}{#1}"),Sv("\\redC","\\textcolor{##f9685d}{#1}"),Sv("\\redD","\\textcolor{##e84d39}{#1}"),Sv("\\redE","\\textcolor{##bc2612}{#1}"),Sv("\\maroonA","\\textcolor{##ffbde0}{#1}"),Sv("\\maroonB","\\textcolor{##ff92c6}{#1}"),Sv("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Sv("\\maroonD","\\textcolor{##ca337c}{#1}"),Sv("\\maroonE","\\textcolor{##9e034e}{#1}"),Sv("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Sv("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Sv("\\purpleC","\\textcolor{##aa87ff}{#1}"),Sv("\\purpleD","\\textcolor{##7854ab}{#1}"),Sv("\\purpleE","\\textcolor{##543b78}{#1}"),Sv("\\mintA","\\textcolor{##f5f9e8}{#1}"),Sv("\\mintB","\\textcolor{##edf2df}{#1}"),Sv("\\mintC","\\textcolor{##e0e5cc}{#1}"),Sv("\\grayA","\\textcolor{##f6f7f7}{#1}"),Sv("\\grayB","\\textcolor{##f0f1f2}{#1}"),Sv("\\grayC","\\textcolor{##e3e5e6}{#1}"),Sv("\\grayD","\\textcolor{##d6d8da}{#1}"),Sv("\\grayE","\\textcolor{##babec2}{#1}"),Sv("\\grayF","\\textcolor{##888d93}{#1}"),Sv("\\grayG","\\textcolor{##626569}{#1}"),Sv("\\grayH","\\textcolor{##3b3e40}{#1}"),Sv("\\grayI","\\textcolor{##21242c}{#1}"),Sv("\\kaBlue","\\textcolor{##314453}{#1}"),Sv("\\kaGreen","\\textcolor{##71B307}{#1}");var Ey={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Ty{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new gy(vy,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new my(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:r}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new jp("EOF",r.loc)),this.pushTokens(n),t.range(r,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var n,a=this.future(),i=0,o=0;do{if(n=this.popToken(),t.push(n),"{"===n.text)++i;else if("}"===n.text){if(-1===--i)throw new Bp("Extra }",n)}else if("EOF"===n.text)throw new Bp("Unexpected end of input in a macro argument, expected '"+(e&&r?e[o]:"}")+"'",n);if(e&&r)if((0===i||1===i&&"{"===e[o])&&n.text===e[o]){if(++o===e.length){t.splice(-o,o);break}}else o=0}while(0!==i||r);return"{"===a.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:a,end:n}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new Bp("The length of delimiters doesn't match the number of args!");for(var r=t[0],n=0;n<r.length;n++){var a=this.popToken();if(r[n]!==a.text)throw new Bp("Use of the macro doesn't match its definition",a)}}for(var i=[],o=0;o<e;o++)i.push(this.consumeArg(t&&t[o+1]).tokens);return i}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new Bp("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,n=t.noexpand?null:this._getExpansion(r);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===r[0]&&!this.isDefined(r))throw new Bp("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var a=n.tokens,i=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(var o=(a=a.slice()).length-1;o>=0;--o){var s=a[o];if("#"===s.text){if(0===o)throw new Bp("Incomplete placeholder at end of macro body",s);if("#"===(s=a[--o]).text)a.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new Bp("Not a valid argument number",s);a.splice(o,2,...i[+s.text-1])}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new jp(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var a=0;if(-1!==n.indexOf("#"))for(var i=n.replace(/##/g,"");-1!==i.indexOf("#"+(a+1));)++a;for(var o=new my(n,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:a}}return n}isDefined(e){return this.macros.has(e)||uy.hasOwnProperty(e)||Bf.math.hasOwnProperty(e)||Bf.text.hasOwnProperty(e)||Ey.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:uy.hasOwnProperty(e)&&!uy[e].primitive}}var _y=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ny=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Cy={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Oy={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class Iy{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Ty(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new Bp("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new jp("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==Iy.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&uy[n.text]&&uy[n.text].infix)break;var a=this.parseAtom(t);if(!a)break;"internal"!==a.type&&r.push(a)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,r=-1,n=0;n<e.length;n++)if("infix"===e[n].type){if(-1!==r)throw new Bp("only one infix operator per group",e[n].token);r=n,t=e[n].replaceWith}if(-1!==r&&t){var a,i,o=e.slice(0,r),s=e.slice(r+1);return a=1===o.length&&"ordgroup"===o[0].type?o[0]:{type:"ordgroup",mode:this.mode,body:o},i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},["\\\\abovefrac"===t?this.callFunction(t,[a,e[r],i],[]):this.callFunction(t,[a,i],[])]}return e}handleSupSubscript(e){var t=this.fetch(),r=t.text;this.consume(),this.consumeSpaces();var n=this.parseGroup(e);if(!n)throw new Bp("Expected group after '"+r+"'",t);return n}formatUnsupportedCmd(e){for(var t=[],r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});var n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}}parseAtom(e){var t,r,n=this.parseGroup("atom",e);if("text"===this.mode)return n;for(;;){this.consumeSpaces();var a=this.fetch();if("\\limits"===a.text||"\\nolimits"===a.text){if(n&&"op"===n.type){var i="\\limits"===a.text;n.limits=i,n.alwaysHandleSupSub=!0}else{if(!n||"operatorname"!==n.type)throw new Bp("Limit controls must follow a math operator",a);n.alwaysHandleSupSub&&(n.limits="\\limits"===a.text)}this.consume()}else if("^"===a.text){if(t)throw new Bp("Double superscript",a);t=this.handleSupSubscript("superscript")}else if("_"===a.text){if(r)throw new Bp("Double subscript",a);r=this.handleSupSubscript("subscript")}else if("'"===a.text){if(t)throw new Bp("Double superscript",a);var o={type:"textord",mode:this.mode,text:"\\prime"},s=[o];for(this.consume();"'"===this.fetch().text;)s.push(o),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:s}}else{if(!Ny[a.text])break;var l=_y.test(a.text),u=[];for(u.push(new jp(Ny[a.text])),this.consume();;){var c=this.fetch().text;if(!Ny[c])break;if(_y.test(c)!==l)break;u.unshift(new jp(Ny[c])),this.consume()}var d=this.subparse(u);l?r={type:"ordgroup",mode:"math",body:d}:t={type:"ordgroup",mode:"math",body:d}}}return t||r?{type:"supsub",mode:this.mode,base:n,sup:t,sub:r}:n}parseFunction(e,t){var r=this.fetch(),n=r.text,a=uy[n];if(!a)return null;if(this.consume(),t&&"atom"!==t&&!a.allowedInArgument)throw new Bp("Got function '"+n+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!a.allowedInText)throw new Bp("Can't use function '"+n+"' in text mode",r);if("math"===this.mode&&!1===a.allowedInMath)throw new Bp("Can't use function '"+n+"' in math mode",r);var{args:i,optArgs:o}=this.parseArguments(n,a);return this.callFunction(n,i,o,r,e)}callFunction(e,t,r,n,a){var i={funcName:e,parser:this,token:n,breakOnTokenText:a},o=uy[e];if(o&&o.handler)return o.handler(i,t,r);throw new Bp("No function handler for "+e)}parseArguments(e,t){var r=t.numArgs+t.numOptionalArgs;if(0===r)return{args:[],optArgs:[]};for(var n=[],a=[],i=0;i<r;i++){var o=t.argTypes&&t.argTypes[i],s=i<t.numOptionalArgs;(t.primitive&&null==o||"sqrt"===t.type&&1===i&&null==a[0])&&(o="primitive");var l=this.parseGroupOfType("argument to '"+e+"'",o,s);if(s)a.push(l);else{if(null==l)throw new Bp("Null argument, please report this as a bug");n.push(l)}}return{args:n,optArgs:a}}parseGroupOfType(e,t,r){switch(t){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,t);case"hbox":var n=this.parseArgumentGroup(r,"text");return null!=n?{type:"styling",mode:n.mode,body:[n],style:"text"}:null;case"raw":var a=this.parseStringGroup("raw",r);return null!=a?{type:"raw",mode:"text",string:a.text}:null;case"primitive":if(r)throw new Bp("A primitive argument cannot be optional");var i=this.parseGroup(e);if(null==i)throw new Bp("Expected group as "+e,this.fetch());return i;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Bp("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var r=this.gullet.scanArgument(t);if(null==r)return null;for(var n,a="";"EOF"!==(n=this.fetch()).text;)a+=n.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(e,t){for(var r,n=this.fetch(),a=n,i="";"EOF"!==(r=this.fetch()).text&&e.test(i+r.text);)i+=(a=r).text,this.consume();if(""===i)throw new Bp("Invalid "+t+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new Bp("Invalid color: '"+t.text+"'",t);var n=r[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,r=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",r=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new Bp("Invalid size: '"+t.text+"'",t);var a={number:+(n[1]+n[2]),unit:n[3]};if(!xf(a))throw new Bp("Invalid unit: '"+a.unit+"'",t);return{type:"size",mode:this.mode,value:a,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,t){var r=this.gullet.scanArgument(e);if(null==r)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:a};return t&&this.switchMode(n),i}parseGroup(e,t){var r,n=this.fetch(),a=n.text;if("{"===a||"\\begingroup"===a){this.consume();var i="{"===a?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,i),s=this.fetch();this.expect(i),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:Pp.range(n,s),body:o,semisimple:"\\begingroup"===a||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===a[0]&&!Ey.hasOwnProperty(a)){if(this.settings.throwOnError)throw new Bp("Undefined control sequence: "+a,n);r=this.formatUnsupportedCmd(a),this.consume()}return r}formLigatures(e){for(var t=e.length-1,r=0;r<t;++r){var n=e[r],a=n.text;"-"===a&&"-"===e[r+1].text&&(r+1<t&&"-"===e[r+2].text?(e.splice(r,3,{type:"textord",mode:"text",loc:Pp.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:Pp.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==a&&"`"!==a||e[r+1].text!==a||(e.splice(r,2,{type:"textord",mode:"text",loc:Pp.range(n,e[r+1]),text:a+a}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),n="*"===r.charAt(0);if(n&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Bp("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:n}}Oy.hasOwnProperty(t[0])&&!Bf[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Oy[t[0]]+t.slice(1));var a,i=py.exec(t);if(i&&("i"===(t=t.substring(0,i.index))?t="ı":"j"===t&&(t="ȷ")),Bf[this.mode][t]){this.settings.strict&&"math"===this.mode&&vm.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o,s=Bf[this.mode][t].group,l=Pp.range(e);if(Pf.hasOwnProperty(s)){var u=s;o={type:"atom",mode:this.mode,family:u,loc:l,text:t}}else o={type:s,mode:this.mode,loc:l,text:t};a=o}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(of(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),a={type:"textord",mode:"text",loc:Pp.range(e),text:t}}if(this.consume(),i)for(var c=0;c<i[0].length;c++){var d=i[0][c];if(!Cy[d])throw new Bp("Unknown accent ' "+d+"'",e);var h=Cy[d][this.mode]||Cy[d].text;if(!h)throw new Bp("Accent "+d+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:Pp.range(e),label:h,isStretchy:!1,isShifty:!0,base:a}}return a}}Iy.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Ry=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Iy(e,t);delete r.gullet.macros.current["\\df@tag"];var n=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new Bp("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:r.subparse([new jp("\\df@tag")])}]}return n},My=function(e,t,r){t.textContent="";var n=zy(e,r).toNode();t.appendChild(n)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),My=function(){throw new Bp("KaTeX doesn't work in quirks mode.")});var Ay=function(e,t,r){if(r.throwOnError||!(e instanceof Bp))throw e;var n=Mm.makeSpan(["katex-error"],[new Mf(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+r.errorColor),n},zy=function(e,t){var r=new Gp(t);try{return function(e,t,r){var n,a=gg(r);if("mathml"===r.output)return mg(e,t,a,r.displayMode,!0);if("html"===r.output){var i=ag(e,a);n=Mm.makeSpan(["katex"],[i])}else{var o=mg(e,t,a,r.displayMode,!1),s=ag(e,a);n=Mm.makeSpan(["katex"],[o,s])}return vg(n,r)}(Ry(e,r),e,r)}catch(n){return Ay(n,e,r)}},Dy={version:"0.16.10",render:My,renderToString:function(e,t){return zy(e,t).toMarkup()},ParseError:Bp,SETTINGS_SCHEMA:Wp,__parse:function(e,t){var r=new Gp(t);return Ry(e,r)},__renderToDomTree:zy,__renderToHTMLTree:function(e,t){var r=new Gp(t);try{return function(e,t,r){var n=ag(e,gg(r)),a=Mm.makeSpan(["katex"],[n]);return vg(a,r)}(Ry(e,r),0,r)}catch(n){return Ay(n,e,r)}},__setFontMetrics:function(e,t){cf[e]=t},__defineSymbol:qf,__defineFunction:Um,__defineMacro:Sv,__domTree:{Span:Cf,Anchor:Of,SymbolNode:Mf,SvgNode:Af,PathNode:zf,LineNode:Df}};const Ly=e=>/^https?:\/\//i.test(e??"");function Py(e,t){return e.find(e=>String(e.id)===t)}function jy(e,t,r){return Ly(e)?e:r.basePath?`${r.basePath}/${r.questionId}/${e}`:((null==t?void 0:t.baseUrl)??"")+e}function By(e,t={}){if(!e)return"";const r=t.media||[];let n=e;n=n.replace(/<img\b[^>]*>/gi,e=>{const n=e.match(/data-asset-variable=["']([^"']+)["']/i);if(!n)return e;const a=Py(r,n[1]);if(!a)return e;const i=e.match(/\ssrc=["']([^"']*)["']/i),o=function(e,t,r){if(t.isAvailableLocally&&t.basePath){const n=`${t.basePath.substring(0,t.basePath.lastIndexOf("/"))}/${t.sectionId??""}`;return t.questionId?`${n}/${t.questionId}/${e.src}`:r}return Ly(e.src)?e.src:e.baseUrl?(e.baseUrl??"")+e.src:r}(a,t,null==i?void 0:i[1]);return void 0===o?e:i?e.replace(/\ssrc=["'][^"']*["']/i,` src="${o}"`):e.replace(/^<img/i,`<img src="${o}"`)});const a=function(e){return(e||[]).filter(e=>e&&("image"===e.type||/^image\//i.test(e.mimeType||"")))}(r);if(a.length&&/<figure\b[^>]*\bimage\b/i.test(n)){let e=0;n=n.replace(/<figure\b[^>]*class="[^"]*\bimage\b[^"]*"[^>]*>\s*<\/figure>/gi,()=>{var t;const r=a[e++];if(!r)return'<figure class="image"></figure>';return`<figure class="image"><img src="${(null==(t=r.src)?void 0:t.startsWith("http"))?r.src:(r.baseUrl??"")+r.src}" style="max-width:100%" alt="" /></figure>`})}return n=function(e,t,r){return e.replace(/<(video|audio)\b([^>]*)>([\s\S]*?)<\/\1>/gi,(e,n,a,i)=>{const o=a.match(/data-asset-variable=["']([^"']+)["']/i);if(!o)return e;const s=Py(t,o[1]);if(!s)return e;let l=a;return l=l.replace(/\sposter=["']([^"']*)["']/i,(e,t)=>t&&!Ly(t)?` poster="${jy(t,s,r)}"`:e),l=l.replace(/\ssrc=["']([^"']*)["']/i,(e,t)=>t&&!Ly(t)?` src="${jy(t,s,r)}"`:e),`<${n}${l}>${i.replace(/<source\b[^>]*>/gi,e=>{const t=e.match(/\ssrc=["']([^"']*)["']/i);return!t||Ly(t[1])?e:e.replace(/\ssrc=["'][^"']*["']/i,` src="${jy(t[1],s,r)}"`)})}</${n}>`})}(n,r,t),n}const qy={en:{NEXT:"Next",PREVIOUS:"Previous",SUBMIT:"Submit",CLOSE:"Close",BACK:"Back",SKIP:"Skip",RETRY:"Retry",REPLAY:"Replay",SHOW_ANSWER:"Show Answer",VIEW_SOLUTION:"View Solution",VIEW_HINT:"View Hint",HIDE_ANSWER:"Hide Answer",QUESTION:"Question",OF:"of",SECTION:"Section",CORRECT_ANSWER:"Correct Answer",INCORRECT_ANSWER:"Wrong Answer, Try Again",PARTIAL_SCORE:"Partial Score",YOUR_ANSWER:"Your Answer",EXPECTED_ANSWER:"Expected Answer",TIME_REMAINING:"Time Remaining",TIME_TAKEN:"Time Taken",TIME_UP:"Time Up!",SECONDS:"seconds",MINUTES:"minutes",SCORE:"Score",TOTAL_SCORE:"Total Score",CORRECT:"Correct",INCORRECT:"Incorrect",SKIPPED:"Skipped",PARTIAL:"Partial",START_QUIZ:"Start Quiz",END_QUIZ:"End Quiz",QUIZ_COMPLETE:"Quiz Complete!",THANK_YOU:"Thank you for completing the quiz.",ERROR_LOADING:"Error loading content",LOADING:"Loading…",RETRY_LOADING:"Retry Loading",NETWORK_ERROR:"Network error. Please check your connection.",BOOKMARK:"Bookmark",UNBOOKMARK:"Unbookmark",ZOOM_IN:"Zoom In",ZOOM_OUT:"Zoom Out",START:"Start",BEGIN:"Begin",QUESTIONS:"Questions",SECTIONS:"Sections",TIME_LIMIT:"Time Limit",MAX_SCORE:"Max Score",INSTRUCTIONS:"Instructions",ASSESSMENT_OVERVIEW:"Assessment Overview",SECTION_INTRO:"Section Introduction",PROGRESS:"Progress",NAVIGATION:"Navigation",QUESTION_PALETTE:"Question Palette",SHOW_HINT:"Show Hint",HIDE_HINT:"Hide Hint",HINT:"Hint",SOLUTION:"Solution",NO_HINTS:"No hints available",ANSWERED:"Answered",UNANSWERED:"Unanswered",NOT_VISITED:"Not visited",NEEDS_REVIEW:"Needs review",CURRENT:"Current",OPEN_MENU:"Open navigation menu",CLOSE_MENU:"Close navigation menu",SUBMIT_ASSESSMENT:"Submit Assessment",PROGRESS_SAVED:"Progress is saved",ASSESSMENT_SECTIONS:"Assessment sections",SECTIONS_COVER_NOTE:"Here's what you'll be covering in this assessment.",START_ASSESSMENT:"Start assessment",ATTEMPTS_LEFT:"Attempts Left",MINUTES_LABEL:"Minutes",TIMER_START_NOTE:"The timer starts when you click. You have {attempts} attempts for this assessment.",START_SECTION:"Start section",HELP:"Help",MANDATORY_NOTE:"All questions are mandatory. Choose the response you believe is correct — you can revisit any question before submitting.",SUBMIT_TITLE:"Submit your assessment?",SUBMIT_BODY:"You can review your answers after submitting.",CONFIRM:"Confirm",CANCEL:"Cancel",YOUR_RESULTS:"Your Results",REVIEW_ALL:"Review all answers",RETAKE:"Retake",REVIEW:"Review",BACK_TO_RESULTS:"Back to results",RESULT_SUMMARY:"You scored {score} out of {max}.",ANSWER:"Answer",HELP_LEGEND_TITLE:"Section markers",SECTION_CURRENT:"Current section",SECTION_DONE:"Completed section",SECTION_UPCOMING:"Upcoming section"},ar:{NEXT:"التالي",PREVIOUS:"السابق",SUBMIT:"إرسال",CLOSE:"إغلاق",BACK:"رجوع",SKIP:"تخطّي",RETRY:"إعادة المحاولة",REPLAY:"إعادة التشغيل",SHOW_ANSWER:"عرض الإجابة",VIEW_SOLUTION:"عرض الحل",VIEW_HINT:"عرض التلميح",HIDE_ANSWER:"إخفاء الإجابة",QUESTION:"سؤال",OF:"من",SECTION:"القسم",CORRECT_ANSWER:"إجابة صحيحة",INCORRECT_ANSWER:"إجابة خاطئة، حاول مرة أخرى",PARTIAL_SCORE:"درجة جزئية",YOUR_ANSWER:"إجابتك",EXPECTED_ANSWER:"الإجابة المتوقعة",TIME_REMAINING:"الوقت المتبقّي",TIME_TAKEN:"الوقت المستغرق",TIME_UP:"انتهى الوقت!",SECONDS:"ثوانٍ",MINUTES:"دقائق",SCORE:"الدرجة",TOTAL_SCORE:"الدرجة الكلية",CORRECT:"صحيح",INCORRECT:"غير صحيح",SKIPPED:"تم التخطّي",PARTIAL:"جزئي",START_QUIZ:"ابدأ الاختبار",END_QUIZ:"إنهاء الاختبار",QUIZ_COMPLETE:"اكتمل الاختبار!",THANK_YOU:"شكراً لإكمالك الاختبار.",ERROR_LOADING:"خطأ في تحميل المحتوى",LOADING:"جارٍ التحميل…",RETRY_LOADING:"إعادة التحميل",NETWORK_ERROR:"خطأ في الشبكة. يُرجى التحقق من اتصالك.",BOOKMARK:"إشارة مرجعية",UNBOOKMARK:"إزالة الإشارة المرجعية",ZOOM_IN:"تكبير",ZOOM_OUT:"تصغير",START:"ابدأ",BEGIN:"ابدأ",QUESTIONS:"الأسئلة",SECTIONS:"الأقسام",TIME_LIMIT:"الحد الزمني",MAX_SCORE:"أقصى درجة",INSTRUCTIONS:"التعليمات",ASSESSMENT_OVERVIEW:"نظرة عامة على التقييم",SECTION_INTRO:"مقدمة القسم",PROGRESS:"التقدّم",NAVIGATION:"التنقّل",QUESTION_PALETTE:"لوحة الأسئلة",SHOW_HINT:"عرض التلميح",HIDE_HINT:"إخفاء التلميح",HINT:"تلميح",SOLUTION:"الحل",NO_HINTS:"لا تتوفّر تلميحات",ANSWERED:"تمت الإجابة",UNANSWERED:"لم تتم الإجابة",NOT_VISITED:"لم تتم زيارته",NEEDS_REVIEW:"يحتاج إلى مراجعة",CURRENT:"الحالي",OPEN_MENU:"فتح قائمة التنقّل",CLOSE_MENU:"إغلاق قائمة التنقّل",SUBMIT_ASSESSMENT:"إرسال التقييم",PROGRESS_SAVED:"تم حفظ التقدّم",ASSESSMENT_SECTIONS:"أقسام التقييم",SECTIONS_COVER_NOTE:"إليك ما ستغطّيه في هذا التقييم.",START_ASSESSMENT:"بدء التقييم",ATTEMPTS_LEFT:"المحاولات المتبقية",MINUTES_LABEL:"دقائق",TIMER_START_NOTE:"يبدأ المؤقّت عند النقر. لديك {attempts} محاولات لهذا التقييم.",START_SECTION:"بدء القسم",HELP:"مساعدة",MANDATORY_NOTE:"جميع الأسئلة إلزامية. اختر الإجابة التي تعتقد أنها صحيحة — يمكنك العودة إلى أي سؤال قبل الإرسال.",SUBMIT_TITLE:"هل تريد إرسال التقييم؟",SUBMIT_BODY:"يمكنك مراجعة إجاباتك بعد الإرسال.",CONFIRM:"تأكيد",CANCEL:"إلغاء",YOUR_RESULTS:"نتائجك",REVIEW_ALL:"مراجعة جميع الإجابات",RETAKE:"إعادة المحاولة",REVIEW:"مراجعة",BACK_TO_RESULTS:"العودة إلى النتائج",RESULT_SUMMARY:"لقد حصلت على {score} من {max}.",ANSWER:"الإجابة",HELP_LEGEND_TITLE:"علامات الأقسام",SECTION_CURRENT:"القسم الحالي",SECTION_DONE:"قسم مكتمل",SECTION_UPCOMING:"قسم قادم"},fr:{NEXT:"Suivant",PREVIOUS:"Précédent",SUBMIT:"Soumettre",CLOSE:"Fermer",BACK:"Retour",SKIP:"Passer",RETRY:"Réessayer",REPLAY:"Rejouer",SHOW_ANSWER:"Afficher la réponse",VIEW_SOLUTION:"Voir la solution",VIEW_HINT:"Voir l’indice",HIDE_ANSWER:"Masquer la réponse",QUESTION:"Question",OF:"sur",SECTION:"Section",CORRECT_ANSWER:"Bonne réponse",INCORRECT_ANSWER:"Mauvaise réponse, réessayez",PARTIAL_SCORE:"Score partiel",YOUR_ANSWER:"Votre réponse",EXPECTED_ANSWER:"Réponse attendue",TIME_REMAINING:"Temps restant",TIME_TAKEN:"Temps passé",TIME_UP:"Temps écoulé !",SECONDS:"secondes",MINUTES:"minutes",SCORE:"Score",TOTAL_SCORE:"Score total",CORRECT:"Correct",INCORRECT:"Incorrect",SKIPPED:"Ignoré",PARTIAL:"Partiel",START_QUIZ:"Commencer le quiz",END_QUIZ:"Terminer le quiz",QUIZ_COMPLETE:"Quiz terminé !",THANK_YOU:"Merci d’avoir complété le quiz.",ERROR_LOADING:"Erreur lors du chargement du contenu",LOADING:"Chargement…",RETRY_LOADING:"Réessayer le chargement",NETWORK_ERROR:"Erreur réseau. Veuillez vérifier votre connexion.",BOOKMARK:"Marquer",UNBOOKMARK:"Retirer le marque-page",ZOOM_IN:"Agrandir",ZOOM_OUT:"Réduire",START:"Démarrer",BEGIN:"Commencer",QUESTIONS:"Questions",SECTIONS:"Sections",TIME_LIMIT:"Limite de temps",MAX_SCORE:"Score maximal",INSTRUCTIONS:"Instructions",ASSESSMENT_OVERVIEW:"Aperçu de l’évaluation",SECTION_INTRO:"Introduction de la section",PROGRESS:"Progression",NAVIGATION:"Navigation",QUESTION_PALETTE:"Palette de questions",SHOW_HINT:"Afficher l’indice",HIDE_HINT:"Masquer l’indice",HINT:"Indice",SOLUTION:"Solution",NO_HINTS:"Aucun indice disponible",ANSWERED:"Répondu",UNANSWERED:"Sans réponse",NOT_VISITED:"Non visité",NEEDS_REVIEW:"À revoir",CURRENT:"Actuel",OPEN_MENU:"Ouvrir le menu de navigation",CLOSE_MENU:"Fermer le menu de navigation",SUBMIT_ASSESSMENT:"Soumettre l’évaluation",PROGRESS_SAVED:"Progression enregistrée",ASSESSMENT_SECTIONS:"Sections de l’évaluation",SECTIONS_COVER_NOTE:"Voici ce que vous allez aborder dans cette évaluation.",START_ASSESSMENT:"Commencer l’évaluation",ATTEMPTS_LEFT:"Tentatives restantes",MINUTES_LABEL:"Minutes",TIMER_START_NOTE:"Le minuteur démarre lorsque vous cliquez. Vous avez {attempts} tentatives pour cette évaluation.",START_SECTION:"Commencer la section",HELP:"Aide",MANDATORY_NOTE:"Toutes les questions sont obligatoires. Choisissez la réponse que vous pensez correcte — vous pouvez revenir sur n’importe quelle question avant de soumettre.",SUBMIT_TITLE:"Soumettre votre évaluation ?",SUBMIT_BODY:"Vous pourrez revoir vos réponses après la soumission.",CONFIRM:"Confirmer",CANCEL:"Annuler",YOUR_RESULTS:"Vos résultats",REVIEW_ALL:"Revoir toutes les réponses",RETAKE:"Recommencer",REVIEW:"Revoir",BACK_TO_RESULTS:"Retour aux résultats",RESULT_SUMMARY:"Vous avez obtenu {score} sur {max}.",ANSWER:"Réponse",HELP_LEGEND_TITLE:"Repères de section",SECTION_CURRENT:"Section actuelle",SECTION_DONE:"Section terminée",SECTION_UPCOMING:"Section à venir"},pt:{NEXT:"Próximo",PREVIOUS:"Anterior",SUBMIT:"Enviar",CLOSE:"Fechar",BACK:"Voltar",SKIP:"Pular",RETRY:"Tentar novamente",REPLAY:"Repetir",SHOW_ANSWER:"Mostrar resposta",VIEW_SOLUTION:"Ver solução",VIEW_HINT:"Ver dica",HIDE_ANSWER:"Ocultar resposta",QUESTION:"Pergunta",OF:"de",SECTION:"Seção",CORRECT_ANSWER:"Resposta correta",INCORRECT_ANSWER:"Resposta errada, tente novamente",PARTIAL_SCORE:"Pontuação parcial",YOUR_ANSWER:"Sua resposta",EXPECTED_ANSWER:"Resposta esperada",TIME_REMAINING:"Tempo restante",TIME_TAKEN:"Tempo gasto",TIME_UP:"Tempo esgotado!",SECONDS:"segundos",MINUTES:"minutos",SCORE:"Pontuação",TOTAL_SCORE:"Pontuação total",CORRECT:"Correto",INCORRECT:"Incorreto",SKIPPED:"Ignorado",PARTIAL:"Parcial",START_QUIZ:"Iniciar questionário",END_QUIZ:"Encerrar questionário",QUIZ_COMPLETE:"Questionário concluído!",THANK_YOU:"Obrigado por concluir o questionário.",ERROR_LOADING:"Erro ao carregar o conteúdo",LOADING:"Carregando…",RETRY_LOADING:"Tentar carregar novamente",NETWORK_ERROR:"Erro de rede. Verifique sua conexão.",BOOKMARK:"Marcar",UNBOOKMARK:"Desmarcar",ZOOM_IN:"Ampliar",ZOOM_OUT:"Reduzir",START:"Iniciar",BEGIN:"Começar",QUESTIONS:"Perguntas",SECTIONS:"Seções",TIME_LIMIT:"Limite de tempo",MAX_SCORE:"Pontuação máxima",INSTRUCTIONS:"Instruções",ASSESSMENT_OVERVIEW:"Visão geral da avaliação",SECTION_INTRO:"Introdução da seção",PROGRESS:"Progresso",NAVIGATION:"Navegação",QUESTION_PALETTE:"Painel de perguntas",SHOW_HINT:"Mostrar dica",HIDE_HINT:"Ocultar dica",HINT:"Dica",SOLUTION:"Solução",NO_HINTS:"Nenhuma dica disponível",ANSWERED:"Respondida",UNANSWERED:"Não respondida",NOT_VISITED:"Não visitada",NEEDS_REVIEW:"Precisa de revisão",CURRENT:"Atual",OPEN_MENU:"Abrir menu de navegação",CLOSE_MENU:"Fechar menu de navegação",SUBMIT_ASSESSMENT:"Enviar avaliação",PROGRESS_SAVED:"Progresso salvo",ASSESSMENT_SECTIONS:"Seções da avaliação",SECTIONS_COVER_NOTE:"Veja o que você abordará nesta avaliação.",START_ASSESSMENT:"Iniciar avaliação",ATTEMPTS_LEFT:"Tentativas restantes",MINUTES_LABEL:"Minutos",TIMER_START_NOTE:"O cronômetro começa quando você clica. Você tem {attempts} tentativas para esta avaliação.",START_SECTION:"Iniciar seção",HELP:"Ajuda",MANDATORY_NOTE:"Todas as perguntas são obrigatórias. Escolha a resposta que você acredita estar correta — você pode revisar qualquer pergunta antes de enviar.",SUBMIT_TITLE:"Enviar sua avaliação?",SUBMIT_BODY:"Você pode revisar suas respostas após o envio.",CONFIRM:"Confirmar",CANCEL:"Cancelar",YOUR_RESULTS:"Seus resultados",REVIEW_ALL:"Revisar todas as respostas",RETAKE:"Refazer",REVIEW:"Revisar",BACK_TO_RESULTS:"Voltar aos resultados",RESULT_SUMMARY:"Você marcou {score} de {max}.",ANSWER:"Resposta",HELP_LEGEND_TITLE:"Marcadores de seção",SECTION_CURRENT:"Seção atual",SECTION_DONE:"Seção concluída",SECTION_UPCOMING:"Próxima seção"}};function Uy(e,t,r={}){let n=(qy[e]||qy.en)[t]||qy.en[t]||t;return Object.entries(r).forEach(([e,t])=>{n=n.replace(`{${e}}`,String(t))}),n}function Hy(e,t="en"){if(!e)return"";if("object"==typeof e&&!Array.isArray(e))return Fy(e,t);if("string"==typeof e){if(e.startsWith("{"))try{const r=JSON.parse(e);if(r&&"object"==typeof r&&!Array.isArray(r))return Fy(r,t)||e}catch{return e}return e}return""}function Fy(e,t){const r=Object.keys(e)[0],n=void 0!==e[t]?e[t]:void 0!==e.en?e.en:void 0!==r?e[r]:"";return"string"==typeof n?n:""}const Vy="_body_icj8w_1";function Wy({question:e,language:t="en",mediaCtx:r}){const n=j.useRef(null),a=j.useRef(null);return j.useEffect(()=>{const i=n.current;if(i&&(null==e?void 0:e.body))try{const n=Hy(e.body,t),o=By(n,{...r,media:(null==r?void 0:r.media)??e.media});if(o===a.current)return;a.current=o,i.innerHTML=o;i.querySelectorAll(".math").forEach(e=>{try{const t=e.textContent||"",r=e.classList.contains("math-block");Dy.render(t,e,{displayMode:r})}catch(t){console.warn("[QuestionBody] KaTeX render error:",t)}})}catch(o){console.error("[QuestionBody] Error rendering body:",o)}},[null==e?void 0:e.body,(null==r?void 0:r.media)??(null==e?void 0:e.media),null==r?void 0:r.basePath,null==r?void 0:r.isAvailableLocally,null==r?void 0:r.sectionId,null==r?void 0:r.questionId,t]),$.jsx("div",{ref:n,className:Vy,lang:t,dir:"auto"})}function $y(e){const t=e.interactions||{},r=Object.keys(t)[0],n=r?t[r].options:void 0;return Array.isArray(n)?n:[]}function Gy(e,t,r={}){return By(Hy(e,t),r)}const Yy="_mcq_1451t_1",Qy="_options_1451t_7",Ky="_option_1451t_7",Xy="_selected_1451t_42",Zy="_indicator_1451t_47",Jy="_radio_1451t_57",eb="_indicatorMark_1451t_69",tb="_alpha_1451t_76",rb="_label_1451t_83",nb="_review_1451t_91";const ab="_boolean_126cw_1",ib="_optionsRow_126cw_7",ob="_card_126cw_22",sb="_selected_126cw_56",lb="_cardLabel_126cw_61",ub="_review_126cw_74";const cb="_sa_ur0ho_1",db="_label_ur0ho_7",hb="_actions_ur0ho_14",pb="_revealBtn_ur0ho_19",fb="_answer_ur0ho_49",mb="_blurred_ur0ho_56",gb="_answerText_ur0ho_62";const vb="_ftb_13jy5_1",yb="_template_13jy5_8",bb="_blankWrap_13jy5_15",wb="_blankNum_13jy5_21",xb="_blank_13jy5_15",Sb="_filled_13jy5_63",kb="_fallbackBlanks_13jy5_68";function Eb({question:e,replayed:t=!1,language:r="en",mediaCtx:n,savedResponse:a=null,onOptionSelected:i,onComponentLoaded:o,onGoToNext:s}){const l=function(e){return Object.keys(e.responseDeclaration||{})}(e),u={...n,media:(null==n?void 0:n.media)??e.media},[c,d]=j.useState(()=>(null==a?void 0:a.responses)??{}),h=j.useRef(!1);j.useEffect(()=>{h.current||(h.current=!0,null==o||o())},[e.identifier]);const p=Hy(e.body,r),f=p.split(/\[\[(response\d+)\]\]/g),m=l[l.length-1];let g=0;const v=e=>{g+=1;const r=g;return $.jsxs("span",{className:bb,children:[$.jsx("span",{className:wb,"aria-hidden":"true",children:r}),$.jsx("input",{type:"text",className:`${xb} ${c[e]?Sb:""}`.trim(),value:c[e]||"",disabled:t,"aria-label":`Blank ${r}`,onChange:r=>((e,r)=>{if(t)return;const n={...c,[e]:r};d(n),null==i||i({responses:n,timestamp:Date.now()})})(e,r.target.value),onKeyDown:t=>{"Enter"===t.key&&e===m&&(null==s||s())}})]},`blank-${e}`)},y=f.length>1;return $.jsx("div",{className:vb,lang:r,dir:"auto",children:y?$.jsx("p",{className:yb,children:f.map((e,t)=>t%2==0?$.jsx("span",{dangerouslySetInnerHTML:{__html:By(e,u)}},`text-${t}`):v(e))}):$.jsxs($.Fragment,{children:[$.jsx("div",{dangerouslySetInnerHTML:{__html:By(p,u)}}),$.jsx("div",{className:kb,children:l.map(e=>v(e))})]})})}function Tb(e){if(!Array.isArray(e))return[];const t=[...e];for(let r=t.length-1;r>0;r--){const e=Math.floor(Math.random()*(r+1));[t[r],t[e]]=[t[e],t[r]]}return t}const _b="_mtf_65g70_1",Nb="_board_65g70_7",Cb="_row_65g70_16",Ob="_leftCard_65g70_27",Ib="_rightCell_65g70_28",Rb="_arrow_65g70_47",Mb="_dragging_65g70_57",Ab="_over_65g70_62",zb="_term_65g70_67",Db="mtf-right";function Lb({option:e,index:t,language:r,mediaCtx:n,disabled:a,onSwap:i}){const o=j.useRef(null),[{isDragging:s},l]=Bh({type:Db,item:{index:t},canDrag:!a,collect:e=>({isDragging:e.isDragging()})}),[{isOver:u},c]=Fh({accept:Db,collect:e=>({isOver:e.isOver()}),drop:e=>i(e.index,t)});l(c(o));const d=Gy(e.label,r,n);return $.jsx("div",{ref:o,className:`${Ib} ${s?Mb:""} ${u?Ab:""}`.trim(),dangerouslySetInnerHTML:{__html:d}})}const Pb="_seq_ptw2c_1",jb="_row_ptw2c_10",Bb="_dragging_ptw2c_23",qb="_over_ptw2c_28",Ub="_grip_ptw2c_33",Hb="_label_ptw2c_39",Fb="_controls_ptw2c_49",Vb="_nudge_ptw2c_54",Wb="_seqWrap_ptw2c_85",$b="seq-item";function Gb({index:e,total:t,label:r,disabled:n,onMove:a,onNudge:i}){const o=j.useRef(null),[{isDragging:s},l]=Bh({type:$b,item:{index:e},canDrag:!n,collect:e=>({isDragging:e.isDragging()})}),[{isOver:u},c]=Fh({accept:$b,collect:e=>({isOver:e.isOver()}),hover:t=>{t.index!==e&&(a(t.index,e),t.index=e)}});return l(c(o)),$.jsxs("li",{ref:o,className:`${jb} ${s?Bb:""} ${u?qb:""}`.trim(),children:[$.jsx("span",{className:Ub,"aria-hidden":"true",children:"⠿"}),$.jsx("span",{className:Hb,dangerouslySetInnerHTML:{__html:r}}),$.jsxs("span",{className:Fb,children:[$.jsx("button",{type:"button",className:Vb,"aria-label":`Move item ${e+1} up`,disabled:n||0===e,onClick:()=>i(e,-1),children:"↑"}),$.jsx("button",{type:"button",className:Vb,"aria-label":`Move item ${e+1} down`,disabled:n||e===t-1,onClick:()=>i(e,1),children:"↓"})]})]})}const Yb="_reo_zhyrs_1",Qb="_sectionLabel_zhyrs_7",Kb="_answer_zhyrs_16",Xb="_filled_zhyrs_29",Zb="_over_zhyrs_34",Jb="_placeholder_zhyrs_39",ew="_chip_zhyrs_46",tw="_bank_zhyrs_73",rw="_bankWord_zhyrs_79",nw="_dragging_zhyrs_106",aw="_allUsed_zhyrs_110",iw="reo-word";function ow({option:e,label:t,disabled:r,onAdd:n}){const a=j.useRef(null),[{isDragging:i},o]=Bh({type:iw,item:{value:e.value},canDrag:!r,collect:e=>({isDragging:e.isDragging()})});return o(a),$.jsx("button",{ref:a,type:"button",className:`${rw} ${i?nw:""}`.trim(),disabled:r,onClick:()=>n(e.value),dangerouslySetInnerHTML:{__html:t}})}const sw=new Map([["multiple choice question",function({question:e,replayed:t=!1,language:r="en",mediaCtx:n,savedResponse:a=null,score:i=null,onOptionSelected:o,onComponentLoaded:s}){const l=$y(e),u={...n,media:(null==n?void 0:n.media)??e.media},[c,d]=j.useState(null),h=j.useRef(!1);return j.useEffect(()=>{void 0!==(null==a?void 0:a.value)&&null!==(null==a?void 0:a.value)&&d(a.value),h.current||(h.current=!0,null==s||s())},[e.identifier]),$.jsxs("div",{className:Yy,children:[$.jsx(Wy,{question:e,language:r,mediaCtx:u}),$.jsx("div",{className:Qy,role:"radiogroup","aria-label":"Answer options",children:l.map((e,n)=>{const a=c===e.value;return $.jsxs("button",{type:"button",className:`${Ky} ${a?Xy:""}`.trim(),role:"radio","aria-checked":a,disabled:t,onClick:()=>{return r=e.value,void(t||(d(r),null==o||o({value:r,timestamp:Date.now()})));var r},children:[$.jsx("span",{className:`${Zy} ${Jy}`,"aria-hidden":"true",children:a&&$.jsx("span",{className:eb})}),$.jsx("span",{className:tb,"aria-hidden":"true",children:String.fromCharCode(65+n)}),$.jsx("span",{className:rb,dangerouslySetInnerHTML:{__html:Gy(e.label,r,u)}})]},`${e.value}-${n}`)})}),t&&null!=i&&$.jsxs("div",{className:nb,children:["Score: ",i]})]})}],["boolean question",function({question:e,replayed:t=!1,language:r="en",mediaCtx:n,savedResponse:a=null,score:i=null,onOptionSelected:o,onComponentLoaded:s}){const l=$y(e),u={...n,media:(null==n?void 0:n.media)??e.media},[c,d]=j.useState(null),h=j.useRef(!1);j.useEffect(()=>{void 0!==(null==a?void 0:a.value)&&null!==(null==a?void 0:a.value)&&d(a.value),h.current||(h.current=!0,null==s||s())},[e.identifier]),j.useEffect(()=>{t&&d(null)},[t]);const p=e=>{t||(d(e),null==o||o({value:e,timestamp:Date.now()}))};return $.jsxs("div",{className:ab,children:[$.jsx(Wy,{question:e,language:r,mediaCtx:u}),$.jsx("div",{className:ib,role:"radiogroup","aria-label":"True or False",children:l.map(e=>{const n=c===e.value,a=Gy(e.label,r,u);return $.jsx("button",{type:"button",className:`${ob} ${n?sb:""}`.trim(),role:"radio","aria-checked":n,disabled:t,onClick:()=>p(e.value),onKeyDown:t=>{return r=t,n=e.value,void("Enter"!==r.key&&" "!==r.key||(r.preventDefault(),p(n)));var r,n},children:$.jsx("span",{className:lb,dangerouslySetInnerHTML:{__html:a}})},e.value)})}),t&&null!=i&&$.jsxs("div",{className:ub,children:["Score: ",i]})]})}],["subjective question",function({question:e,language:t="en",mediaCtx:r,savedResponse:n=null,onOptionSelected:a,onComponentLoaded:i}){const o=j.useRef(!1),[s,l]=j.useState(Boolean(null==n?void 0:n.shown));j.useEffect(()=>{o.current||(o.current=!0,null==i||i())},[e.identifier]);const u={...r,media:(null==r?void 0:r.media)??e.media},c=e.answer?By(Hy(e.answer,t),u):"";return $.jsxs("div",{className:cb,children:[s&&$.jsx("p",{className:db,children:Uy(t,"QUESTION")}),$.jsx(Wy,{question:e,language:t,mediaCtx:u}),c&&$.jsxs($.Fragment,{children:[!s&&$.jsx("div",{className:hb,children:$.jsx("button",{type:"button",className:pb,onClick:()=>{l(!0),null==a||a({shown:!0,timestamp:Date.now()})},"aria-expanded":!1,children:Uy(t,"SHOW_ANSWER")})}),$.jsxs("div",{className:`${fb} ${s?"":mb}`.trim(),"aria-hidden":!s||void 0,children:[$.jsx("p",{className:db,children:Uy(t,"ANSWER")}),$.jsx("div",{className:gb,dangerouslySetInnerHTML:{__html:c}})]})]})]})}],["fill in the blank question",Eb],["ftb question",Eb],["match the following question",function({question:e,replayed:t=!1,language:r="en",mediaCtx:n,shuffleOptions:a=!0,savedResponse:i=null,onOptionSelected:o,onComponentLoaded:s}){const l={...n,media:(null==n?void 0:n.media)??e.media},{left:u,right:c}=j.useMemo(()=>function(e){const t=e.interactions||{},r=Object.keys(t)[0],n=r?t[r].options:void 0;return n&&!Array.isArray(n)?{left:n.left||[],right:n.right||[]}:{left:[],right:[]}}(e),[e.identifier]),[d,h]=j.useState(()=>{const e=null==i?void 0:i.matches;if(e){const t=new Map(c.map(e=>[String(e.value),e])),r=u.map(r=>t.get(String(e[String(r.value)])));if(r.every(Boolean))return r}return a?Tb(c):[...c]}),p=j.useRef(!1);j.useEffect(()=>{p.current||(p.current=!0,null==s||s())},[e.identifier]);const f=(e,r)=>{if(t||e===r)return;const n=[...d];[n[e],n[r]]=[n[r],n[e]],h(n),(e=>{const t={};u.forEach((r,n)=>{e[n]&&(t[String(r.value)]=String(e[n].value))}),null==o||o({matches:t,timestamp:Date.now()})})(n)};return $.jsxs("div",{className:_b,children:[$.jsx(Wy,{question:e,language:r,mediaCtx:l}),$.jsx("div",{className:Nb,dir:"ltr",children:u.map((e,n)=>$.jsxs("div",{className:Cb,children:[$.jsx("div",{className:Ob,children:$.jsx("span",{className:zb,dangerouslySetInnerHTML:{__html:Gy(e.label,r,l)}})}),$.jsx("span",{className:Rb,"aria-hidden":"true",children:"→"}),d[n]&&$.jsx(Lb,{option:d[n],index:n,language:r,mediaCtx:l,disabled:t,onSwap:f})]},String(e.value)))})]})}],["sequence question",function({question:e,replayed:t=!1,language:r="en",mediaCtx:n,shuffleOptions:a=!0,savedResponse:i=null,onOptionSelected:o,onComponentLoaded:s}){const l={...n,media:(null==n?void 0:n.media)??e.media},u=j.useMemo(()=>$y(e),[e.identifier]),[c,d]=j.useState(()=>{if(null==i?void 0:i.order){const e=new Map(u.map(e=>[e.value,e])),t=i.order.map(t=>e.get(t)).filter(e=>Boolean(e));if(t.length===u.length)return t}return a?Tb(u):[...u]}),h=j.useRef(!1);j.useEffect(()=>{h.current||(h.current=!0,null==s||s())},[e.identifier]);const p=(e,r)=>{if(t||r<0||r>=c.length)return;const n=[...c],[a]=n.splice(e,1);n.splice(r,0,a),(e=>{d(e),null==o||o({order:e.map(e=>e.value),timestamp:Date.now()})})(n)};return $.jsxs("div",{className:Wb,children:[$.jsx(Wy,{question:e,language:r,mediaCtx:l}),$.jsx("ol",{className:Pb,"aria-label":"Arrange in order",children:c.map((e,n)=>$.jsx(Gb,{index:n,total:c.length,disabled:t,label:Gy(e.label,r,l),onMove:p,onNudge:(e,t)=>p(e,e+t)},String(e.value)))})]})}],["reorder question",function({question:e,replayed:t=!1,language:r="en",mediaCtx:n,shuffleOptions:a=!0,savedResponse:i=null,onOptionSelected:o,onComponentLoaded:s}){const l={...n,media:(null==n?void 0:n.media)??e.media},u=j.useMemo(()=>function(e,t){var r,n;const a=e.interactions||{},i=Object.keys(a)[0];if(!i)return[];const o=a[i],s=null==(n=null==(r=o.i18n)?void 0:r[t])?void 0:n.options;return Array.isArray(s)&&s.length>0?s:Array.isArray(o.options)?o.options:[]}(e,r),[e.identifier,r]),c=j.useMemo(()=>new Map(u.map(e=>[e.value,e])),[u]),d=()=>((null==i?void 0:i.order)??[]).map(e=>c.get(e)).filter(e=>Boolean(e)),h=()=>{const e=new Set((null==i?void 0:i.order)??[]),t=u.filter(t=>!e.has(t.value));return a?Tb(t):t},[p,f]=j.useState(d),[m,g]=j.useState(h),v=j.useRef(r);j.useEffect(()=>{v.current!==r&&(v.current=r,f(d()),g(h()))},[r]);const y=j.useRef(!1);j.useEffect(()=>{y.current||(y.current=!0,null==s||s())},[e.identifier]);const b=j.useRef(null);j.useEffect(()=>{const e=JSON.stringify(p.map(e=>e.value));null!==b.current?e!==b.current&&(b.current=e,null==o||o({order:p.map(e=>e.value),timestamp:Date.now()})):b.current=e},[p]);const w=e=>{if(t)return;const r=c.get(e);r&&(f(t=>t.some(t=>t.value===e)?t:[...t,r]),g(t=>t.filter(t=>t.value!==e)))},[{isOver:x},S]=Fh({accept:iw,collect:e=>({isOver:e.isOver()}),drop:e=>w(e.value)}),k=j.useRef(null);return S(k),$.jsxs("div",{className:Yb,children:[$.jsx(Wy,{question:e,language:r,mediaCtx:l}),$.jsx("p",{className:Qb,children:"Your Answer"}),$.jsx("div",{ref:k,className:`${Kb} ${p.length?Xb:""} ${x?Zb:""}`.trim(),"aria-label":"Your answer",children:0===p.length?$.jsx("span",{className:Jb,children:t?"— No answer —":"Tap or drag words to build your answer…"}):p.map((e,n)=>$.jsxs("button",{type:"button",className:ew,disabled:t,"aria-label":`Remove ${Gy(e.label,r,l)}`,onClick:()=>(e=>{if(t)return;const r=c.get(e);f(t=>t.filter(t=>t.value!==e)),g(t=>r&&!t.some(t=>t.value===e)?[...t,r]:t)})(e.value),children:[$.jsx("span",{dangerouslySetInnerHTML:{__html:Gy(e.label,r,l)}}),!t&&$.jsx("span",{"aria-hidden":"true",children:" ×"})]},`${e.value}-${n}`))}),!t&&$.jsxs($.Fragment,{children:[$.jsx("p",{className:Qb,children:"Word Bank"}),$.jsx("div",{className:tw,children:0===m.length?$.jsx("span",{className:aw,children:"All words used"}):m.map((e,n)=>$.jsx(ow,{option:e,label:Gy(e.label,r,l),disabled:t,onAdd:w},`${e.value}-${n}`))})]})]})}]]);const lw="_renderer_12cvw_1",uw="_error_12cvw_5";function cw({question:e,replayed:t=!1,tryAgain:r=!1,shuffleOptions:n=!0,score:a=null,onOptionSelected:i,onComponentLoaded:o,onShowAnswerClicked:s,onGoToNext:l}){var u,c;const{state:d}=Rp(),h=d.language;if(!e)return $.jsx("div",{className:uw,children:"No question provided"});const p=null==(u=d.playerConfig)?void 0:u.metadata,f=null==(c=d.sections.find(t=>t.children.some(t=>t.identifier===e.identifier)))?void 0:c.identifier,m={media:e.media,basePath:null==p?void 0:p.basePath,isAvailableLocally:null==p?void 0:p.isAvailableLocally,sectionId:f,questionId:e.identifier},g=d.answers[e.identifier]||null,v=(y=e.primaryCategory)&&sw.get(y.toLowerCase())||null;var y;return v?$.jsx("div",{className:lw,dir:"ar"===h?"rtl":void 0,children:$.jsx(v,{question:e,replayed:t,tryAgain:r,language:h,mediaCtx:m,shuffleOptions:n,savedResponse:g,score:a,onOptionSelected:i,onComponentLoaded:o,onShowAnswerClicked:s,onGoToNext:l})}):$.jsxs("div",{className:uw,children:["Unknown question type: ",e.primaryCategory]})}const dw="_card_zjm87_1",hw="_meta_zjm87_15",pw="_category_zjm87_22",fw="_difficulty_zjm87_23",mw="_body_zjm87_44",gw="_footer_zjm87_48";function vw({question:e,children:t,meta:r,footer:n}){const a=(null==r?void 0:r.category)??e.primaryCategory,i=null==r?void 0:r.difficulty,o=Boolean(a||i);return $.jsxs("article",{className:dw,children:[o&&$.jsxs("div",{className:hw,children:[a&&$.jsx("span",{className:pw,children:a}),i&&$.jsx("span",{className:fw,children:i})]}),$.jsx("div",{className:mw,children:t}),n&&$.jsx("div",{className:gw,children:n})]})}function yw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-previous ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M15 18l-6-6 6-6"})]})}function bw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-next ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M9 18l6-6-6-6"})]})}function ww({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-hint ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M9 18h6"}),$.jsx("path",{d:"M10 21h4"}),$.jsx("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.6.45 1.1 1.2 1.1 2.2h5c0-1 .5-1.75 1.1-2.2A6 6 0 0 0 12 3z"})]})}function xw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-timer ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M9 2h6"}),$.jsx("circle",{cx:"12",cy:"13",r:"8"}),$.jsx("path",{d:"M12 9v4l3 2"})]})}function Sw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-menu ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M4 6h16"}),$.jsx("path",{d:"M4 12h16"}),$.jsx("path",{d:"M4 18h16"})]})}function kw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-close ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M6 6l12 12"}),$.jsx("path",{d:"M18 6L6 18"})]})}function Ew({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-clipboard ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("rect",{x:"8",y:"3",width:"8",height:"4",rx:"1"}),$.jsx("path",{d:"M16 5h2a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2"})]})}function Tw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-grid ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("rect",{x:"4",y:"4",width:"7",height:"7",rx:"1.5"}),$.jsx("rect",{x:"13",y:"4",width:"7",height:"7",rx:"1.5"}),$.jsx("rect",{x:"4",y:"13",width:"7",height:"7",rx:"1.5"}),$.jsx("rect",{x:"13",y:"13",width:"7",height:"7",rx:"1.5"})]})}function _w({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-attempts ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"3"}),$.jsx("path",{d:"M12 9v6"}),$.jsx("path",{d:"M9 12h6"})]})}function Nw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-chevron-right ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M9 6l6 6-6 6"})]})}function Cw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-shield ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M12 3l7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V6l7-3z"})]})}const Ow="_hint_1tcen_1",Iw="_actions_1tcen_8",Rw="_toggleBtn_1tcen_14",Mw="_panel_1tcen_43",Aw="_hintPanel_1tcen_49",zw="_solutionPanel_1tcen_54",Dw="_panelHeading_1tcen_59";function Lw(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e){const r=e,n=r.value??r.body??r.solution??r.hint;if("string"==typeof n)return n;if(n&&"object"==typeof n)return Hy(n,t)}return""}function Pw({hints:e=[],solutions:t=[],answer:r,canViewSolution:n=!1,showHints:a=!1,showSolutions:i=!1,language:o="en",mediaCtx:s}){const[l,u]=j.useState(!1),[c,d]=j.useState(!1),h=e.map(e=>Lw(e,o)).filter(Boolean),p=t.map(e=>Lw(e,o)).filter(Boolean),f=Hy(r,o),m=a&&h.length>0,g=i&&n&&(p.length>0||Boolean(f));return m||g?$.jsxs("div",{className:Ow,children:[$.jsxs("div",{className:Iw,children:[m&&$.jsxs("button",{type:"button",className:Rw,onClick:()=>u(e=>!e),"aria-expanded":l,children:[$.jsx(ww,{size:16}),Uy(o,l?"HIDE_HINT":"SHOW_HINT")]}),g&&$.jsx("button",{type:"button",className:Rw,onClick:()=>d(e=>!e),"aria-expanded":c,children:Uy(o,"VIEW_SOLUTION")})]}),l&&m&&$.jsxs("div",{className:`${Mw} ${Aw}`,children:[$.jsx("h3",{className:Dw,children:Uy(o,"HINT")}),h.map((e,t)=>$.jsx(Wy,{question:{body:e},language:o,mediaCtx:s},t))]}),c&&g&&$.jsxs("div",{className:`${Mw} ${zw}`,children:[$.jsx("h3",{className:Dw,children:Uy(o,"SOLUTION")}),p.map((e,t)=>$.jsx(Wy,{question:{body:e},language:o,mediaCtx:s},t)),0===p.length&&f&&$.jsx(Wy,{question:{body:f},language:o,mediaCtx:s})]})]}):null}const jw={viewport:"_viewport_lo371_1",toast:"_toast_lo371_14","toast-in":"_toast-in_lo371_1",text:"_text_lo371_36",title:"_title_lo371_42",message:"_message_lo371_48",closeBtn:"_closeBtn_lo371_53",correct:"_correct_lo371_75",incorrect:"_incorrect_lo371_80",partial:"_partial_lo371_85",info:"_info_lo371_90"};function Bw({type:e="info",message:t="",onClose:r,duration:n=3e3}){const{state:a}=Rp(),i=a.language;j.useEffect(()=>{if(!n)return;const e=setTimeout(()=>null==r?void 0:r(),n);return()=>clearTimeout(e)},[n,r,t,e]);const o={correct:Uy(i,"CORRECT_ANSWER"),incorrect:Uy(i,"INCORRECT_ANSWER"),partial:Uy(i,"PARTIAL_SCORE"),info:"Info"};return $.jsx("div",{className:jw.viewport,"aria-live":"polite",children:$.jsxs("div",{className:`${jw.toast} ${jw[e]}`,role:"status",children:[$.jsxs("div",{className:jw.text,children:[$.jsx("strong",{className:jw.title,children:o[e]}),t&&$.jsx("span",{className:jw.message,children:t})]}),$.jsx("button",{type:"button",className:jw.closeBtn,onClick:r,"aria-label":Uy(i,"CLOSE"),children:$.jsx(kw,{size:16})})]})})}function qw({state:e,onClose:t,onZoomIn:r,onZoomOut:n}){return e.open?$.jsxs("div",{className:"image-viewer__overlay",children:[$.jsx("button",{type:"button",className:"image-viewer__close","aria-label":"Close",onClick:t}),$.jsx("div",{className:"image-viewer__container",children:$.jsx("img",{className:`image-viewer__img ${e.orientation}`,src:e.src,alt:"Zoomed",style:{width:`${e.zoom}%`,height:`${e.zoom}%`}})}),$.jsxs("div",{className:"image-viewer__zoom",children:[$.jsx("button",{type:"button",className:"image-viewer__zoomin","aria-label":"Zoom in",onClick:r,children:"+"}),$.jsx("button",{type:"button",className:"image-viewer__zoomout","aria-label":"Zoom out",onClick:n,children:"−"})]})]}):null}const Uw={open:!1,src:"",orientation:"neutral",zoom:100};function Hw(e){const t=e.naturalHeight||e.clientHeight,r=e.naturalWidth||e.clientWidth;return t>r?"portrait":t<r?"landscape":"neutral"}function Fw(e){return!!e&&(!0===e.shown||(void 0!==e.value&&null!==e.value&&""!==e.value||(!!(Array.isArray(e.order)&&e.order.length>0)||(!!(e.matches&&Object.keys(e.matches).length>0)||!(!e.responses||!Object.values(e.responses).some(e=>""!==String(e??"").trim()))))))}function Vw(e){const t=e.responseDeclaration;if(!t)return;const r=Object.keys(t);return r.length?t[r[0]]:void 0}function Ww(e){var t,r;const n=null==(r=null==(t=e.outcomeDeclaration)?void 0:t.maxScore)?void 0:r.defaultValue;return"number"==typeof n&&n>0?n:"number"==typeof e.maxScore&&e.maxScore>0?e.maxScore:1}const $w=(e,t)=>Math.min(e,t),Gw=e=>{var t;return"MAP_RESPONSE"===String((null==(t=e.responseProcessing)?void 0:t.template)||"").toUpperCase()},Yw=(e,t)=>{const r=e/Ww(t);return r<0?0:r>1?1:r};function Qw(e,t){var r;if(!Fw(t))return 0;const n=Vw(e);if(!n)return 0;const a=null==(r=n.correctResponse)?void 0:r.value,i=t.value;if(null!=a&&i===a)return 1;const o=n.mapping;if(o&&o.length){const t=o.find(e=>e.value===i);if(t&&t.score)return Yw(t.score,e)}return 0}function Kw(e,t){var r;if(!Fw(t))return 0;const n=e.responseDeclaration,a=t.responses;if(!n||!a)return 0;const i=Object.keys(n).filter(e=>e.includes("response")).sort(),o=i.length;if(0===o)return 0;const s=Ww(e),l=e=>{var t;const r=n[e],i=String(a[e]??"").trim(),o=null==r?void 0:r.mapping;if(o&&o.length){const e=o.find(e=>{const t=String(e.value??"").trim();return e.caseSensitive?i===t:i.toLowerCase()===t.toLowerCase()});return e&&Number(e.score)||0}const s="string"==typeof(null==(t=null==r?void 0:r.correctResponse)?void 0:t.value)?r.correctResponse.value.trim():"";return i&&s&&i.toLowerCase()===s.toLowerCase()?1:0};if(Gw(e)){if(!0===e.evalUnordered){const t=[],o=new Set;for(const e of i)for(const a of(null==(r=n[e])?void 0:r.mapping)??[]){const e=!!a.caseSensitive,r=String(a.value??"").trim();if(!r)continue;const n=(e?r:r.toLowerCase())+"\0"+e;o.has(n)||(o.add(n),t.push({value:r,score:Number(a.score)||0,caseSensitive:e}))}const l=i.map(e=>String(a[e]??"").trim()).filter(Boolean);let u=0;for(const e of t){const t=l.some(t=>e.caseSensitive?t===e.value:t.toLowerCase()===e.value.toLowerCase());t&&(u+=e.score)}return Yw($w(u,s),e)}let t=0;for(const e of i)t+=l(e);return Yw($w(t,s),e)}const u=i.filter(e=>l(e)>0).length;return Yw(Math.round(s*u/o),e)}function Xw(e,t,r){var n,a,i,o;if(!Fw(t))return 0;const s=Vw(e),l=t.order;if(!s||!l)return 0;const u=Ww(e),c=(r?null==(i=null==(a=null==(n=s.i18n)?void 0:n[r])?void 0:a.correctResponse)?void 0:i.value:void 0)??(null==(o=s.correctResponse)?void 0:o.value),d=Array.isArray(c)?c:[],h=s.mapping;if(Gw(e)&&h&&h.length&&d.length){const t=new Map(h.map(e=>[String(e.value),Number(e.score)||0]));let r=0;return d.forEach((e,n)=>{l[n]===e&&(r+=t.get(String(e))??0)}),Yw($w(r,u),e)}return d.length===l.length&&d.every((e,t)=>e===l[t])?1:0}const Zw=new Map([["multiple choice question",Qw],["boolean question",Qw],["subjective question",function(e,t){return(null==t?void 0:t.shown)?1:0}],["fill in the blank question",Kw],["ftb question",Kw],["match the following question",function(e,t){var r;if(!Fw(t))return 0;const n=Vw(e),a=t.matches;if(!n||!a)return 0;const i=Ww(e),o=n.mapping;if(Gw(e)&&o&&o.length){let t=0;for(const e of o)void 0!==e.key&&a[e.key]===e.value&&(t+=Number(e.score)||0);return Yw($w(t,i),e)}const s=null==(r=n.correctResponse)?void 0:r.value,l=s&&"object"==typeof s&&!Array.isArray(s)?s:{},u=Object.keys(l).length;if(0===u)return 0;const c=Object.keys(l).filter(e=>a[e]===l[e]).length;return Yw(Math.round(i*c/u),e)}],["sequence question",Xw],["reorder question",Xw]]);function Jw(e,t,r){if(!Fw(t))return 0;const n=(a=e.primaryCategory)&&Zw.get(a.toLowerCase())||null;var a;return n?n(e,t,r):0}const ex="_sectionPlayer_q0p96_1",tx="_content_q0p96_8",rx="_navBar_q0p96_28",nx="_counter_q0p96_44",ax="_navBtn_q0p96_53",ix="_navLabel_q0p96_97",ox="_error_q0p96_130";function sx({section:e,onSectionEnd:t,isLastSection:r=!0}){var n;const{state:a,storeAnswer:i,setCurrentQuestion:o}=Rp(),{logOptionSelected:s,logAnswerSubmitted:l}=Lp(),u=a.language,c=(null==e?void 0:e.children)??[],[d,h]=j.useState(0),[p,f]=j.useState(null),m=j.useRef(null),g=function(e,t=[]){const[r,n]=j.useState(Uw),a=j.useCallback(e=>{n({open:!0,src:e.src,orientation:Hw(e),zoom:100})},[]),i=j.useCallback(()=>n(e=>({...e,open:!1,zoom:100})),[]),o=j.useCallback(()=>n(e=>({...e,zoom:e.zoom+10})),[]),s=j.useCallback(()=>n(e=>e.zoom>100?{...e,zoom:e.zoom-10}:e),[]);return j.useEffect(()=>{const t=e.current;if(!t)return;const r=()=>{t.querySelectorAll("img[data-asset-variable]").forEach(e=>{if("true"===e.dataset.zoomBound)return;e.dataset.zoomBound="true",e.classList.add("option-image");const t=()=>{e.classList.remove("portrait","landscape","neutral"),e.classList.add(Hw(e))};e.complete?t():e.addEventListener("load",t,{once:!0});const r=document.createElement("div");if(r.className="magnify-icon",r.onclick=t=>{t.stopPropagation(),a(e)},e.parentNode){const t=e.parentElement;t&&"static"===getComputedStyle(t).position&&(t.style.position="relative"),e.parentNode.insertBefore(r,e.nextSibling)}})};r();const n=new MutationObserver(()=>r());return n.observe(t,{childList:!0,subtree:!0}),()=>n.disconnect()},t),{state:r,close:i,zoomIn:o,zoomOut:s}}(m,[d,u]),v=a.currentQuestionIndex;j.useEffect(()=>{h(v)},[v]);const y=j.useRef(null),b=()=>{y.current&&(clearTimeout(y.current),y.current=null)};j.useEffect(()=>b,[]);const w=t=>{var r;const n=c[d],i=n?a.answers[n.identifier]:void 0;if(!1===(null==(r=a.config)?void 0:r.showFeedback)||!1===(null==e?void 0:e.showFeedback)||!1===(null==n?void 0:n.showFeedback)||!n||!Fw(i))return void t();const o=Jw(n,i,u);f({type:o>=1?"correct":o>0?"partial":"incorrect",message:Uy(u,o>=1?"CORRECT_ANSWER":o>0?"PARTIAL_SCORE":"INCORRECT_ANSWER")}),b(),y.current=setTimeout(()=>{f(null),t()},1e3)},x=e=>{b(),h(e),o(e),f(null)},S=!function(e){return!0===(null==e?void 0:e.allowSkip)||"Yes"===(null==e?void 0:e.allowSkip)}(e),k=function(e,t,r={},n={}){const{requireAnswer:a=!1}=n;if(e>=t.length-1)return!1;if(a)return Fw(r[t[e].identifier]);return!0}(d,c,a.answers,{requireAnswer:S}),E=()=>{w(()=>{k&&x(d+1)})};if(0===c.length)return $.jsx("div",{className:ox,children:Uy(u,"ERROR_LOADING")});const T=c[d],_=0===d,N=d===c.length-1,C=Fw(a.answers[T.identifier]),O=null==(n=a.playerConfig)?void 0:n.metadata,I={media:T.media,basePath:null==O?void 0:O.basePath,isAvailableLocally:null==O?void 0:O.isAvailableLocally,sectionId:null==e?void 0:e.identifier,questionId:T.identifier};return $.jsxs("div",{className:ex,children:[$.jsxs("div",{className:rx,children:[$.jsxs("button",{type:"button",className:ax,onClick:()=>{d>0&&x(d-1)},disabled:_,"aria-label":Uy(u,"PREVIOUS"),children:[$.jsx(yw,{size:18}),$.jsx("span",{className:ix,children:Uy(u,"PREVIOUS")})]}),$.jsxs("span",{className:nx,children:[Uy(u,"QUESTION")," ",d+1," ",Uy(u,"OF")," ",c.length]}),N&&r?$.jsxs("button",{type:"button",className:ax,style:{visibility:"hidden"},"aria-hidden":"true",tabIndex:-1,disabled:!0,children:[$.jsx("span",{className:ix,children:Uy(u,"NEXT")}),$.jsx(bw,{size:18})]}):$.jsxs("button",{type:"button",className:ax,onClick:N?()=>{w(()=>null==t?void 0:t())}:E,disabled:N?S&&!C:!k,"aria-label":Uy(u,"NEXT"),children:[$.jsx("span",{className:ix,children:Uy(u,"NEXT")}),$.jsx(bw,{size:18})]})]}),$.jsx("div",{className:tx,ref:m,children:$.jsxs(vw,{question:T,meta:{category:T.primaryCategory},children:[$.jsx(cw,{question:T,shuffleOptions:T.shuffleOptions,onOptionSelected:e=>{const t=c[d];if(!t)return;b(),f(null),i(t.identifier,e);const r=e.value??e.order??e.responses??e.matches;if(s(t.identifier,r),!Fw(e))return;const n=t.maxScore??1,a=Jw(t,e,u)*n;l(t.identifier,r,a,n)},onGoToNext:E},T.identifier),$.jsx(Pw,{hints:T.hints,solutions:T.solutions,canViewSolution:C,showHints:null==e?void 0:e.showHints,showSolutions:null==e?void 0:e.showSolutions,language:u,mediaCtx:I})]})}),$.jsx(qw,{state:g.state,onClose:g.close,onZoomIn:g.zoomIn,onZoomOut:g.zoomOut}),p&&$.jsx(Bw,{type:p.type,message:p.message,onClose:()=>f(null)})]})}const lx="_overview_1rzur_1",ux="_badge_1rzur_21",cx="_main_1rzur_34",dx="_heading_1rzur_41",hx="_headingText_1rzur_49",px="_title_1rzur_53",fx="_decoCards_1rzur_61",mx="_decoCard_1rzur_61",gx="_statsCard_1rzur_98",vx="_stat_1rzur_98",yx="_statIcon_1rzur_142",bx="_statText_1rzur_160",wx="_statLabel_1rzur_167",xx="_statValue_1rzur_176",Sx="_sectionsHeading_1rzur_184",kx="_sectionsNote_1rzur_191",Ex="_grid_1rzur_197",Tx="_sectionCard_1rzur_214",_x="_cardTop_1rzur_241",Nx="_cardName_1rzur_247",Cx="_cardChevron_1rzur_255",Ox="_cardCount_1rzur_260",Ix="_cardBlurb_1rzur_265",Rx="_startBtn_1rzur_270",Mx="_footerNote_1rzur_295",Ax="_footerIcon_1rzur_305",zx=["#a85236","#cc8545","#c2703c","#5f8268"];function Dx({title:e,sections:t,totalQuestions:r,totalSections:n,timeLimit:a=0,attemptsLeft:i=3,onStart:o,onSectionSelect:s,language:l="en"}){const u=[{key:"q",icon:$.jsx(Ew,{size:20}),label:Uy(l,"QUESTIONS"),value:String(r)},...a>0?[{key:"m",icon:$.jsx(xw,{size:20}),label:Uy(l,"MINUTES_LABEL"),value:(c=a,`${Math.floor(c/60)}:${String(c%60).padStart(2,"0")}`)}]:[],{key:"s",icon:$.jsx(Tw,{size:20}),label:Uy(l,"SECTIONS"),value:String(n)},{key:"a",icon:$.jsx(_w,{size:20}),label:Uy(l,"ATTEMPTS_LEFT"),value:String(i)}];var c;return $.jsx("div",{className:lx,children:$.jsxs("main",{className:cx,children:[$.jsxs("div",{className:dx,children:[$.jsx("div",{className:hx,children:$.jsx("h1",{className:px,children:e})}),$.jsxs("span",{className:fx,"aria-hidden":"true",children:[$.jsx("span",{className:mx}),$.jsx("span",{className:mx}),$.jsx("span",{className:mx})]})]}),$.jsx("dl",{className:gx,children:u.map(({key:e,icon:t,label:r,value:n})=>$.jsxs("div",{className:vx,children:[$.jsx("span",{className:yx,children:t}),$.jsxs("div",{className:bx,children:[$.jsx("dt",{className:wx,children:r}),$.jsx("dd",{className:xx,children:n})]})]},e))}),$.jsx("h2",{className:Sx,children:Uy(l,"ASSESSMENT_SECTIONS")}),$.jsx("p",{className:kx,children:Uy(l,"SECTIONS_COVER_NOTE")}),$.jsx("div",{className:Ex,children:t.map((e,t)=>{const r=Hy(e.description,l),n=Hy(e.name,l),a=s?"button":"div";return $.jsxs(a,{className:Tx,...s?{type:"button",onClick:()=>s(t)}:{},children:[$.jsxs("div",{className:_x,children:[t<zx.length&&$.jsx("span",{className:ux,style:{background:zx[t]},"aria-hidden":"true",children:String.fromCharCode(65+t)}),$.jsx("span",{className:Nx,children:n}),$.jsx(Nw,{size:18,className:Cx})]}),$.jsx("span",{className:Ox,children:(i=e.children.length,`${i} ${1===i?Uy(l,"QUESTION").toLowerCase():Uy(l,"QUESTIONS").toLowerCase()}`)}),r&&$.jsx("span",{className:Ix,children:r})]},e.identifier);var i})}),$.jsxs("button",{type:"button",className:Rx,onClick:o,children:[Uy(l,"START_ASSESSMENT")," ",$.jsx("span",{"aria-hidden":"true",children:"→"})]}),$.jsxs("p",{className:Mx,children:[$.jsx(Cw,{size:16,className:Ax}),Uy(l,"TIMER_START_NOTE",{attempts:i})]})]})})}const Lx="_wrap_4zgjs_1",Px="_card_4zgjs_14",jx="_banner_4zgjs_23",Bx="_bannerBadge_4zgjs_38",qx="_bannerText_4zgjs_52",Ux="_bannerEyebrow_4zgjs_57",Hx="_bannerTitle_4zgjs_66",Fx="_bannerDeco_4zgjs_73",Vx="_body_4zgjs_83",Wx="_instructions_4zgjs_95",$x="_instructionsHeading_4zgjs_101",Gx="_instructionsBody_4zgjs_110",Yx="_startBtn_4zgjs_117";function Qx({section:e,sectionIndex:t,onBegin:r,language:n="en"}){var a;const i=String.fromCharCode(65+t),o=(null==(a=e.children)?void 0:a.length)??0,s=Hy(e.instructions,n)||Uy(n,"MANDATORY_NOTE");return $.jsx("div",{className:Lx,children:$.jsxs("article",{className:Px,children:[$.jsxs("div",{className:jx,children:[$.jsx("span",{className:Bx,"aria-hidden":"true",children:i}),$.jsxs("div",{className:qx,children:[$.jsxs("p",{className:Ux,children:[Uy(n,"SECTION")," ",i]}),$.jsxs("h1",{className:Hx,children:[o," ",Uy(n,"QUESTIONS")]})]}),$.jsx("span",{className:Fx,"aria-hidden":"true"})]}),$.jsxs("div",{className:Vx,children:[$.jsxs("div",{className:Wx,children:[$.jsx("h2",{className:$x,children:Uy(n,"INSTRUCTIONS")}),$.jsx("div",{className:Gx,dangerouslySetInnerHTML:{__html:s}})]}),$.jsxs("button",{type:"button",className:Yx,onClick:r,children:[Uy(n,"START_SECTION")," ",i," ",$.jsx("span",{"aria-hidden":"true",children:"→"})]})]})]})})}const Kx="_sidebar_1irht_1",Xx="_label_1irht_15",Zx="_list_1irht_24",Jx="_card_1irht_33",eS="_active_1irht_55",tS="_badge_1irht_60",rS="_badgeActive_1irht_86",nS="_text_1irht_95",aS="_name_1irht_102",iS="_blurb_1irht_108",oS="_status_1irht_113",sS="_answered_1irht_122",lS="_remaining_1irht_126";function uS({sections:e,currentSectionIndex:t,answers:r,onSectionJump:n,language:a="en"}){return $.jsxs("nav",{className:Kx,"aria-label":Uy(a,"NAVIGATION"),children:[$.jsx("p",{className:Xx,children:Uy(a,"SECTIONS")}),$.jsx("ul",{className:Zx,children:e.map((e,i)=>{const o=i===t,s=e.children.length,l=function(e,t){return e.children.reduce((e,r)=>Fw(t[r.identifier])?e+1:e,0)}(e,r),u=Hy(e.description,a),c=Hy(e.name,a),d=String.fromCharCode(65+i);return $.jsx("li",{children:$.jsxs("button",{type:"button",className:`${Jx} ${o?eS:""}`.trim(),onClick:()=>n(i),"aria-current":o?"true":void 0,children:[$.jsx("span",{className:`${tS} ${o?rS:""}`.trim(),"aria-hidden":"true",children:d}),$.jsxs("span",{className:nS,children:[$.jsx("span",{className:aS,children:c}),u&&$.jsx("span",{className:iS,children:u}),$.jsxs("span",{className:oS,children:[$.jsxs("span",{className:sS,children:["✓ ",l]}),$.jsxs("span",{className:lS,children:["○ ",s-l]})]})]})]})},e.identifier)})})]})}const cS="_overlay_1utl4_1",dS="_panel_1utl4_10",hS="_panelHeader_1utl4_43",pS="_panelTitle_1utl4_55",fS="_closeBtn_1utl4_62";function mS({isOpen:e,onClose:t,sections:r,currentSectionIndex:n,answers:a,onSectionJump:i,language:o="en"}){const s=j.useRef(null),l=j.useRef(null);return j.useEffect(()=>{var r;if(!e)return;l.current=document.activeElement;const n=s.current,a=()=>Array.from((null==n?void 0:n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))??[]).filter(e=>!e.hasAttribute("disabled"));null==(r=a()[0])||r.focus();const i=e=>{if("Escape"===e.key)return e.preventDefault(),void t();if("Tab"!==e.key)return;const r=a();if(0===r.length)return;const n=r[0],i=r[r.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),i.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),n.focus())};return document.addEventListener("keydown",i),()=>{var e,t;document.removeEventListener("keydown",i),null==(t=null==(e=l.current)?void 0:e.focus)||t.call(e)}},[e,t]),e?$.jsx("div",{className:cS,onClick:t,children:$.jsxs("div",{ref:s,className:dS,role:"dialog","aria-modal":"true","aria-label":Uy(o,"NAVIGATION"),onClick:e=>e.stopPropagation(),children:[$.jsxs("div",{className:hS,children:[$.jsx("span",{className:pS,children:Uy(o,"NAVIGATION")}),$.jsx("button",{type:"button",className:fS,onClick:t,"aria-label":Uy(o,"CLOSE_MENU"),children:$.jsx(kw,{size:20})})]}),$.jsx(uS,{sections:r,currentSectionIndex:n,answers:a,onSectionJump:e=>{i(e),t()},language:o})]})}):null}const gS={header:"_header_1az8i_1",left:"_left_1az8i_20",right:"_right_1az8i_21",menuBtn:"_menuBtn_1az8i_42",brand:"_brand_1az8i_70",brandName:"_brandName_1az8i_85",brandBadge:"_brandBadge_1az8i_89",steps:"_steps_1az8i_121",step:"_step_1az8i_121",stepDot:"_stepDot_1az8i_148",active:"_active_1az8i_161",completed:"_completed_1az8i_166",timer:"_timer_1az8i_171",timerLow:"_timerLow_1az8i_190",helpWrap:"_helpWrap_1az8i_195",help:"_help_1az8i_195",legendBackdrop:"_legendBackdrop_1az8i_224",legend:"_legend_1az8i_224",legendTitle:"_legendTitle_1az8i_246",legendItem:"_legendItem_1az8i_255",legendDot:"_legendDot_1az8i_263",counter:"_counter_1az8i_285",submitBtn:"_submitBtn_1az8i_293"};function vS({brand:e,sections:t,currentSectionIndex:r,completed:n,timeRemaining:a=null,timeElapsed:i=null,questionNumber:o,totalQuestions:s,onSubmit:l,onMenuClick:u,onBrandClick:c,language:d="en"}){const h=null!=a,p=h||null!=i,f=h&&a<=60,[m,g]=j.useState(!1);return $.jsxs("header",{className:gS.header,children:[$.jsxs("div",{className:gS.left,children:[u&&$.jsx("button",{type:"button",className:gS.menuBtn,onClick:u,"aria-label":Uy(d,"OPEN_MENU"),children:$.jsx(Sw,{size:20})}),$.jsxs("button",{type:"button",className:gS.brand,onClick:c,"aria-label":`${e} — ${Uy(d,"ASSESSMENT_OVERVIEW")}`,children:[$.jsx("span",{className:gS.brandBadge,"aria-hidden":"true",children:e.charAt(0).toUpperCase()}),$.jsx("span",{className:gS.brandName,children:e})]}),$.jsx("ol",{className:gS.steps,"aria-label":Uy(d,"SECTIONS"),children:t.map((e,t)=>{const a=t===r?"active":n[t]?"completed":"upcoming";return $.jsx("li",{className:`${gS.step} ${gS[a]}`,"aria-current":"active"===a?"step":void 0,title:Hy(e.name,d),children:$.jsx("span",{className:gS.stepDot,children:String.fromCharCode(65+t)})},e.identifier)})})]}),$.jsxs("div",{className:gS.right,children:[p&&$.jsxs("div",{className:`${gS.timer} ${f?gS.timerLow:""}`.trim(),role:"timer","aria-label":Uy(d,"TIME_REMAINING"),children:[$.jsx(xw,{size:16}),$.jsx("span",{className:gS.timerValue,children:(v=h?a:i,`${Math.floor(v/60)}:${String(v%60).padStart(2,"0")}`)})]}),$.jsxs("div",{className:gS.helpWrap,children:[$.jsx("button",{type:"button",className:gS.help,onClick:()=>g(e=>!e),"aria-label":Uy(d,"HELP_LEGEND_TITLE"),"aria-expanded":m,children:"?"}),m&&$.jsxs($.Fragment,{children:[$.jsx("div",{className:gS.legendBackdrop,onClick:()=>g(!1)}),$.jsxs("div",{className:gS.legend,role:"dialog","aria-label":Uy(d,"HELP_LEGEND_TITLE"),children:[$.jsx("p",{className:gS.legendTitle,children:Uy(d,"HELP_LEGEND_TITLE")}),$.jsxs("div",{className:gS.legendItem,children:[$.jsx("span",{className:`${gS.legendDot} ${gS.active}`,"aria-hidden":"true",children:"A"}),$.jsx("span",{children:Uy(d,"SECTION_CURRENT")})]}),$.jsxs("div",{className:gS.legendItem,children:[$.jsx("span",{className:`${gS.legendDot} ${gS.completed}`,"aria-hidden":"true",children:"A"}),$.jsx("span",{children:Uy(d,"SECTION_DONE")})]}),$.jsxs("div",{className:gS.legendItem,children:[$.jsx("span",{className:`${gS.legendDot} ${gS.upcoming}`,"aria-hidden":"true",children:"B"}),$.jsx("span",{children:Uy(d,"SECTION_UPCOMING")})]})]})]})]}),$.jsxs("span",{className:gS.counter,children:[o,"/",s]}),$.jsx("button",{type:"button",className:gS.submitBtn,onClick:l,children:Uy(d,"SUBMIT")})]})]});var v}const yS="_overlay_unqze_1",bS="_panel_unqze_12",wS="_header_unqze_33",xS="_title_unqze_40",SS="_closeBtn_unqze_47",kS="_body_unqze_66",ES="_counts_unqze_73",TS="_count_unqze_73",_S="_answered_unqze_86",NS="_unanswered_unqze_91",CS="_countLabel_unqze_96",OS="_countValue_unqze_103",IS="_actions_unqze_110",RS="_cancelBtn_unqze_116",MS="_confirmBtn_unqze_146";function AS({answeredCount:e,unansweredCount:t,onConfirm:r,onCancel:n,language:a="en"}){const i=j.useRef(null),o=j.useRef(null);return j.useEffect(()=>{var e;o.current=document.activeElement;const t=i.current,r=()=>Array.from((null==t?void 0:t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))??[]).filter(e=>!e.hasAttribute("disabled"));null==(e=r()[0])||e.focus();const a=e=>{if("Escape"===e.key)return e.preventDefault(),void n();if("Tab"!==e.key)return;const t=r();if(0===t.length)return;const a=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),i.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),a.focus())};return document.addEventListener("keydown",a),()=>{var e,t;document.removeEventListener("keydown",a),null==(t=null==(e=o.current)?void 0:e.focus)||t.call(e)}},[n]),$.jsx("div",{className:yS,onClick:n,children:$.jsxs("div",{ref:i,className:bS,role:"dialog","aria-modal":"true","aria-labelledby":"submit-modal-title",onClick:e=>e.stopPropagation(),children:[$.jsxs("div",{className:wS,children:[$.jsx("h2",{id:"submit-modal-title",className:xS,children:Uy(a,"SUBMIT_TITLE")}),$.jsx("button",{type:"button",className:SS,onClick:n,"aria-label":Uy(a,"CLOSE"),children:$.jsx(kw,{size:18})})]}),$.jsx("p",{className:kS,children:Uy(a,"SUBMIT_BODY")}),$.jsxs("dl",{className:ES,children:[$.jsxs("div",{className:`${TS} ${_S}`,children:[$.jsx("dt",{className:CS,children:Uy(a,"ANSWERED")}),$.jsx("dd",{className:OS,children:e})]}),$.jsxs("div",{className:`${TS} ${NS}`,children:[$.jsx("dt",{className:CS,children:Uy(a,"UNANSWERED")}),$.jsx("dd",{className:OS,children:t})]})]}),$.jsxs("div",{className:IS,children:[$.jsx("button",{type:"button",className:RS,onClick:n,children:Uy(a,"CANCEL")}),$.jsx("button",{type:"button",className:MS,onClick:r,children:Uy(a,"SUBMIT")})]})]})})}const zS="_scoreboard_37x30_1",DS="_heading_37x30_13",LS="_stats_37x30_20",PS="_stat_37x30_20",jS="_statValue_37x30_41",BS="_statLabel_37x30_49",qS="_correct_37x30_57",US="_incorrect_37x30_61",HS="_partial_37x30_65",FS="_skipped_37x30_69",VS="_score_37x30_1",WS="_submit_37x30_79";function $S({correct:e=0,incorrect:t=0,partial:r=0,skipped:n=0,totalScore:a=0,onSubmit:i}){const o=[{key:"correct",label:"Correct",value:e,variant:qS},{key:"incorrect",label:"Incorrect",value:t,variant:US},{key:"partial",label:"Partial",value:r,variant:HS},{key:"skipped",label:"Skipped",value:n,variant:FS}];return $.jsxs("section",{className:zS,"aria-label":"Quiz Summary",children:[$.jsx("h2",{className:DS,children:"Quiz Summary"}),$.jsx("dl",{className:LS,children:o.map(({key:e,label:t,value:r,variant:n})=>$.jsxs("div",{className:`${PS} ${n}`,children:[$.jsx("dt",{className:BS,children:t}),$.jsx("dd",{className:jS,children:r})]},e))}),$.jsxs("p",{className:VS,children:["Score: ",$.jsx("strong",{children:a})]}),i&&$.jsx("button",{type:"button",className:WS,onClick:i,children:"Submit"})]})}const GS="_results_atdwt_1",YS="_card_atdwt_11",QS="_title_atdwt_26",KS="_timeTaken_atdwt_33",XS="_actions_atdwt_40",ZS="_reviewBtn_atdwt_47",JS="_retakeBtn_atdwt_75";function ek({summary:e,timeTaken:t=null,onReviewAll:r,onRetake:n,language:a="en"}){const{totalScore:i}=e;return $.jsx("section",{className:GS,"aria-label":Uy(a,"YOUR_RESULTS"),children:$.jsxs("div",{className:YS,children:[$.jsx("h1",{className:QS,children:Uy(a,"YOUR_RESULTS")}),$.jsx($S,{correct:e.correct,incorrect:e.incorrect,partial:e.partial,skipped:e.skipped,totalScore:i}),null!=t&&$.jsxs("p",{className:KS,children:[Uy(a,"TIME_TAKEN"),": ",$.jsx("strong",{children:(o=t,`${Math.floor(o/60)}:${String(o%60).padStart(2,"0")}`)})]}),$.jsxs("div",{className:XS,children:[$.jsx("button",{type:"button",className:ZS,onClick:r,children:Uy(a,"REVIEW_ALL")}),$.jsx("button",{type:"button",className:JS,onClick:n,children:Uy(a,"RETAKE")})]})]})});var o}const tk="_review_fqu8x_1",rk="_topbar_fqu8x_9",nk="_title_fqu8x_25",ak="_exitBtn_fqu8x_32",ik="_body_fqu8x_62",ok="_paletteCol_fqu8x_68",sk="_main_fqu8x_80",lk="_verdict_fqu8x_99",uk="_navBar_fqu8x_133",ck="_counter_fqu8x_141",dk="_navBtn_fqu8x_148",hk="_navLabel_fqu8x_180",pk="_empty_fqu8x_185";const fk={correct:"CORRECT",incorrect:"INCORRECT",partial:"PARTIAL",skipped:"SKIPPED",review:"NEEDS_REVIEW"},mk={correct:"_correct_fqu8x_108",incorrect:"_incorrect_fqu8x_113",partial:"_partial_fqu8x_118",skipped:"_skipped_fqu8x_123",review:"_pending_fqu8x_128"};function gk({questions:e,sections:t,answers:r,startIndex:n=0,onExit:a,language:i="en"}){var o;const{state:s,storeAnswer:l}=Rp(),u=Math.min(Math.max(n,0),Math.max(e.length-1,0)),[c,d]=j.useState(u),h=[];let p=0;for(const S of t)h.push(p),p+=S.children.length;const f=Math.max(0,h.filter(e=>e<=c).length-1);if(0===e.length)return $.jsx("section",{className:tk,children:$.jsx("div",{className:pk,children:Uy(i,"ERROR_LOADING")})});const m=e[c],{kind:g}=function(e,t,r){var n;const a=t[e.identifier];if(!Fw(a))return{kind:"skipped",raw:0};if("subjective question"===(null==(n=e.primaryCategory)?void 0:n.toLowerCase()))return{kind:"review",raw:0};const i=Jw(e,a,r);return i>=1?{kind:"correct",raw:i}:i>0?{kind:"partial",raw:i}:{kind:"incorrect",raw:i}}(m,r,i),v=0===c,y=c===e.length-1,b=t[f],w=null==(o=s.playerConfig)?void 0:o.metadata,x={media:m.media,basePath:null==w?void 0:w.basePath,isAvailableLocally:null==w?void 0:w.isAvailableLocally,sectionId:null==b?void 0:b.identifier,questionId:m.identifier};return $.jsxs("section",{className:tk,"aria-label":Uy(i,"REVIEW"),children:[$.jsxs("header",{className:rk,children:[$.jsx("h1",{className:nk,children:Uy(i,"REVIEW")}),$.jsx("button",{type:"button",className:ak,onClick:a,children:Uy(i,"BACK_TO_RESULTS")})]}),$.jsxs("div",{className:ik,children:[$.jsx("aside",{className:ok,children:$.jsx(uS,{sections:t,currentSectionIndex:f,answers:r,onSectionJump:e=>d(h[e]??0),language:i})}),$.jsxs("div",{className:sk,children:[$.jsxs("div",{className:uk,children:[$.jsxs("button",{type:"button",className:dk,onClick:()=>d(e=>Math.max(0,e-1)),disabled:v,"aria-label":Uy(i,"PREVIOUS"),children:[$.jsx(yw,{size:18}),$.jsx("span",{className:hk,children:Uy(i,"PREVIOUS")})]}),$.jsxs("span",{className:ck,children:[Uy(i,"QUESTION")," ",c+1," ",Uy(i,"OF")," ",e.length]}),$.jsxs("button",{type:"button",className:dk,onClick:()=>d(t=>Math.min(e.length-1,t+1)),disabled:y,"aria-label":Uy(i,"NEXT"),children:[$.jsx("span",{className:hk,children:Uy(i,"NEXT")}),$.jsx(bw,{size:18})]})]}),$.jsx("div",{className:`${lk} ${mk[g]}`,children:Uy(i,fk[g])}),$.jsxs(vw,{question:m,meta:{category:m.primaryCategory},children:[$.jsx(cw,{question:m,shuffleOptions:m.shuffleOptions,onOptionSelected:e=>l(m.identifier,e)},m.identifier),$.jsx(Pw,{hints:m.hints,solutions:m.solutions,canViewSolution:!0,showHints:null==b?void 0:b.showHints,showSolutions:null==b?void 0:b.showSolutions,language:i,mediaCtx:x})]})]})]})]})}function vk(e){var t,r;if(!e)return null;const n=(e.primaryCategory||"").toLowerCase(),a="subjective question"===n||"SA"===(e.qType||"").toUpperCase(),i={identifier:e.identifier,code:e.code,name:e.name,body:e.body||"",qType:(null==(t=e.qType)?void 0:t.toUpperCase())||"",primaryCategory:n,mimeType:e.mimeType||"application/vnd.sunbird.question",interactions:e.interactions||{},interactionTypes:e.interactionTypes||[],outcomeDeclaration:{maxScore:{defaultValue:Tk(e)}},maxScore:Tk(e),media:e.media||[],solutions:Ek(e),hints:xk(e.hints),templateId:e.templateId||"",language:e.language||[],status:e.status||"Draft",showFeedback:!1!==e.showFeedback&&"No"!==e.showFeedback&&(!0===e.showFeedback||"Yes"===e.showFeedback||void 0),shuffleOptions:!1!==e.shuffleOptions};return a?i.answer=e.answer:(i.responseDeclaration=function(e){const t={};if(!e||"object"!=typeof e)return t;for(const r of Object.keys(e)){const n=e[r];n&&"object"==typeof n&&(t[r]={cardinality:n.cardinality||"single",type:n.type||"string",correctResponse:yk(n.correctResponse,n.type),mapping:wk(n.mapping),i18n:bk(n.i18n,n.type)})}return t}(e.responseDeclaration),(null==(r=e.responseProcessing)?void 0:r.template)&&(i.responseProcessing={template:e.responseProcessing.template}),!0!==e.evalUnordered&&"true"!==String(e.evalUnordered).toLowerCase()||(i.evalUnordered=!0)),i}function yk(e,t){if(!e||void 0===e.value||null===e.value)return;let r=e.value;return"integer"===t&&(r=Array.isArray(r)?r.map(e=>parseInt(e,10)):parseInt(r,10)),{value:r}}function bk(e,t){var r;if(!e||"object"!=typeof e)return;const n={};for(const a of Object.keys(e)){const i=yk(null==(r=e[a])?void 0:r.correctResponse,t);i&&(n[a]={correctResponse:i})}return Object.keys(n).length>0?n:void 0}function wk(e){if(Array.isArray(e)&&0!==e.length)return e.map(e=>{if(e&&e.outcomes&&void 0===e.value&&void 0===e.key)return{value:e.response,score:Number(e.outcomes.score)||0};const t={score:Number(e.score)||0};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),void 0!==e.caseSensitive&&(t.caseSensitive=!!e.caseSensitive),t})}function xk(e){return e?Array.isArray(e)?e:"object"==typeof e?Object.values(e).map(e=>({value:e})):[]:[]}function Sk(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function kk(e,t){if(!e||"object"!=typeof e)return"";const r=e.type,n=e.value??"";if("html"===r)return"string"==typeof n?n:"";if("video"===r||"audio"===r){const e=t.find(e=>(null==e?void 0:e.id)===n),a=(null==e?void 0:e.src)||"";if(!a)return"";const i=Sk(String(n)),o=Sk(a);return"video"===r?`<video data-asset-variable="${i}" width="400" controls><source src="${o}"></video>`:`<audio data-asset-variable="${i}" controls><source src="${o}"></audio>`}return""}function Ek(e){var t;const r=null==(t=null==e?void 0:e.editorState)?void 0:t.solutions;if(Array.isArray(r)&&r.length>0){const t=Array.isArray(e.media)?e.media:[],n=r.map(e=>{const r=null==e?void 0:e.value;if(!r||"object"!=typeof r)return null;const n={};for(const[a,i]of Object.entries(r)){const e=kk(i,t);e&&(n[a]=e)}return Object.keys(n).length>0?{value:n}:null}).filter(e=>Boolean(e));if(n.length>0)return n}return xk(e.solutions)}function Tk(e){var t,r;return void 0!==e.maxScore&&null!==e.maxScore?Number(e.maxScore):void 0!==(null==(r=null==(t=e.outcomeDeclaration)?void 0:t.maxScore)?void 0:r.defaultValue)?Number(e.outcomeDeclaration.maxScore.defaultValue):1}function _k(e){return e?{identifier:e.identifier,name:e.name||"",description:e.description||"",instructions:e.instructions||{},children:e.children||[],allowSkip:"Yes"===e.allowSkip||!0===e.allowSkip,shuffle:!0===e.shuffle,timeLimits:Ok(e.timeLimits),showTimer:!1!==e.showTimer,showSolutions:Ck(e,"showSolutions"),showHints:Ck(e,"showHints"),showFeedback:Nk(e,"showFeedback")}:null}function Nk(e,t){var r;const n=e[t]??(null==(r=e.metadata)?void 0:r[t]);return!1!==n&&"No"!==n&&(!0===n||"Yes"===n||void 0)}function Ck(e,t){var r;const n=e[t]??(null==(r=e.metadata)?void 0:r[t]);return!0===n||"Yes"===n}function Ok(e){return e&&e.questionSet?{max:Number(e.questionSet.max)||0,min:Number(e.questionSet.min)||0}:{max:0,min:0}}function Ik(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rk}=Object.prototype,{getPrototypeOf:Mk}=Object,Ak=(zk=Object.create(null),e=>{const t=Rk.call(e);return zk[t]||(zk[t]=t.slice(8,-1).toLowerCase())});var zk;const Dk=e=>(e=e.toLowerCase(),t=>Ak(t)===e),Lk=e=>t=>typeof t===e,{isArray:Pk}=Array,jk=Lk("undefined");const Bk=Dk("ArrayBuffer");const qk=Lk("string"),Uk=Lk("function"),Hk=Lk("number"),Fk=e=>null!==e&&"object"==typeof e,Vk=e=>{if("object"!==Ak(e))return!1;const t=Mk(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Wk=Dk("Date"),$k=Dk("File"),Gk=Dk("Blob"),Yk=Dk("FileList"),Qk=Dk("URLSearchParams"),[Kk,Xk,Zk,Jk]=["ReadableStream","Request","Response","Headers"].map(Dk);function eE(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,a;if("object"!=typeof e&&(e=[e]),Pk(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let o;for(n=0;n<i;n++)o=a[n],t.call(null,e[o],o,e)}}function tE(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,a=r.length;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const rE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,nE=e=>!jk(e)&&e!==rE;const aE=(iE="undefined"!=typeof Uint8Array&&Mk(Uint8Array),e=>iE&&e instanceof iE);var iE;const oE=Dk("HTMLFormElement"),sE=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),lE=Dk("RegExp"),uE=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};eE(r,(r,a)=>{let i;!1!==(i=t(r,a,e))&&(n[a]=i||r)}),Object.defineProperties(e,n)},cE="abcdefghijklmnopqrstuvwxyz",dE="0123456789",hE={DIGIT:dE,ALPHA:cE,ALPHA_DIGIT:cE+cE.toUpperCase()+dE};const pE=Dk("AsyncFunction"),fE={isArray:Pk,isArrayBuffer:Bk,isBuffer:function(e){return null!==e&&!jk(e)&&null!==e.constructor&&!jk(e.constructor)&&Uk(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Uk(e.append)&&("formdata"===(t=Ak(e))||"object"===t&&Uk(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Bk(e.buffer),t},isString:qk,isNumber:Hk,isBoolean:e=>!0===e||!1===e,isObject:Fk,isPlainObject:Vk,isReadableStream:Kk,isRequest:Xk,isResponse:Zk,isHeaders:Jk,isUndefined:jk,isDate:Wk,isFile:$k,isBlob:Gk,isRegExp:lE,isFunction:Uk,isStream:e=>Fk(e)&&Uk(e.pipe),isURLSearchParams:Qk,isTypedArray:aE,isFileList:Yk,forEach:eE,merge:function e(){const{caseless:t}=nE(this)&&this||{},r={},n=(n,a)=>{const i=t&&tE(r,a)||a;Vk(r[i])&&Vk(n)?r[i]=e(r[i],n):Vk(n)?r[i]=e({},n):Pk(n)?r[i]=n.slice():r[i]=n};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&eE(arguments[a],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(eE(t,(t,n)=>{r&&Uk(t)?e[n]=Ik(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],n&&!n(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==r&&Mk(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Ak,kindOfTest:Dk,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(Pk(e))return e;let t=e.length;if(!Hk(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:oE,hasOwnProperty:sE,hasOwnProp:sE,reduceDescriptors:uE,freezeMethods:e=>{uE(e,(t,r)=>{if(Uk(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];Uk(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return Pk(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:tE,global:rE,isContextDefined:nE,ALPHABET:hE,generateString:(e=16,t=hE.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&Uk(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Fk(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const a=Pk(e)?[]:{};return eE(e,(e,t)=>{const i=r(e,n+1);!jk(i)&&(a[t]=i)}),t[n]=void 0,a}}return e};return r(e,0)},isAsyncFn:pE,isThenable:e=>e&&(Fk(e)||Uk(e))&&Uk(e.then)&&Uk(e.catch)};function mE(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}fE.inherits(mE,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fE.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gE=mE.prototype,vE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vE[e]={value:e}}),Object.defineProperties(mE,vE),Object.defineProperty(gE,"isAxiosError",{value:!0}),mE.from=(e,t,r,n,a,i)=>{const o=Object.create(gE);return fE.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),mE.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};function yE(e){return fE.isPlainObject(e)||fE.isArray(e)}function bE(e){return fE.endsWith(e,"[]")?e.slice(0,-2):e}function wE(e,t,r){return e?e.concat(t).map(function(e,t){return e=bE(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const xE=fE.toFlatObject(fE,{},null,function(e){return/^is[A-Z]/.test(e)});function SE(e,t,r){if(!fE.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=fE.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!fE.isUndefined(t[e])})).metaTokens,a=r.visitor||u,i=r.dots,o=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&fE.isSpecCompliantForm(t);if(!fE.isFunction(a))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(fE.isDate(e))return e.toISOString();if(!s&&fE.isBlob(e))throw new mE("Blob is not supported. Use a Buffer instead.");return fE.isArrayBuffer(e)||fE.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,a){let s=e;if(e&&!a&&"object"==typeof e)if(fE.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(fE.isArray(e)&&function(e){return fE.isArray(e)&&!e.some(yE)}(e)||(fE.isFileList(e)||fE.endsWith(r,"[]"))&&(s=fE.toArray(e)))return r=bE(r),s.forEach(function(e,n){!fE.isUndefined(e)&&null!==e&&t.append(!0===o?wE([r],n,i):null===o?r:r+"[]",l(e))}),!1;return!!yE(e)||(t.append(wE(a,r,i),l(e)),!1)}const c=[],d=Object.assign(xE,{defaultVisitor:u,convertValue:l,isVisitable:yE});if(!fE.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!fE.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),fE.forEach(r,function(r,i){!0===(!(fE.isUndefined(r)||null===r)&&a.call(t,r,fE.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])}),c.pop()}}(e),t}function kE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function EE(e,t){this._pairs=[],e&&SE(e,this,t)}const TE=EE.prototype;function _E(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function NE(e,t,r){if(!t)return e;const n=r&&r.encode||_E,a=r&&r.serialize;let i;if(i=a?a(t,r):fE.isURLSearchParams(t)?t.toString():new EE(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}TE.append=function(e,t){this._pairs.push([e,t])},TE.toString=function(e){const t=e?function(t){return e.call(this,t,kE)}:kE;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const CE=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){fE.forEach(this.handlers,function(t){null!==t&&e(t)})}},OE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},IE={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:EE,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},RE="undefined"!=typeof window&&"undefined"!=typeof document,ME=(AE="undefined"!=typeof navigator&&navigator.product,RE&&["ReactNative","NativeScript","NS"].indexOf(AE)<0);var AE;const zE="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,DE=RE&&window.location.href||"http://localhost",LE={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:RE,hasStandardBrowserEnv:ME,hasStandardBrowserWebWorkerEnv:zE,origin:DE},Symbol.toStringTag,{value:"Module"})),...IE};function PE(e){function t(e,r,n,a){let i=e[a++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),s=a>=e.length;if(i=!i&&fE.isArray(n)?n.length:i,s)return fE.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o;n[i]&&fE.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],a)&&fE.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}(n[i])),!o}if(fE.isFormData(e)&&fE.isFunction(e.entries)){const r={};return fE.forEachEntry(e,(e,n)=>{t(function(e){return fE.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const jE={transitional:OE,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,a=fE.isObject(e);a&&fE.isHTMLForm(e)&&(e=new FormData(e));if(fE.isFormData(e))return n?JSON.stringify(PE(e)):e;if(fE.isArrayBuffer(e)||fE.isBuffer(e)||fE.isStream(e)||fE.isFile(e)||fE.isBlob(e)||fE.isReadableStream(e))return e;if(fE.isArrayBufferView(e))return e.buffer;if(fE.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return SE(e,new LE.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return LE.isNode&&fE.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=fE.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return SE(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||n?(t.setContentType("application/json",!1),function(e,t,r){if(fE.isString(e))try{return(t||JSON.parse)(e),fE.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||jE.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(fE.isResponse(e)||fE.isReadableStream(e))return e;if(e&&fE.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(a){if(r){if("SyntaxError"===a.name)throw mE.from(a,mE.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:LE.classes.FormData,Blob:LE.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fE.forEach(["delete","get","head","post","put","patch"],e=>{jE.headers[e]={}});const BE=jE,qE=fE.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),UE=Symbol("internals");function HE(e){return e&&String(e).trim().toLowerCase()}function FE(e){return!1===e||null==e?e:fE.isArray(e)?e.map(FE):String(e)}function VE(e,t,r,n,a){return fE.isFunction(n)?n.call(this,t,r):(a&&(t=r),fE.isString(t)?fE.isString(n)?-1!==t.indexOf(n):fE.isRegExp(n)?n.test(t):void 0:void 0)}class WE{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function a(e,t,r){const a=HE(t);if(!a)throw new Error("header name must be a non-empty string");const i=fE.findKey(n,a);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=FE(e))}const i=(e,t)=>fE.forEach(e,(e,r)=>a(e,r,t));if(fE.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(fE.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),r=e.substring(0,a).trim().toLowerCase(),n=e.substring(a+1).trim(),!r||t[r]&&qE[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(fE.isHeaders(e))for(const[o,s]of e.entries())a(s,o,r);else null!=e&&a(t,e,r);return this}get(e,t){if(e=HE(e)){const r=fE.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(fE.isFunction(t))return t.call(this,e,r);if(fE.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=HE(e)){const r=fE.findKey(this,e);return!(!r||void 0===this[r]||t&&!VE(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function a(e){if(e=HE(e)){const a=fE.findKey(r,e);!a||t&&!VE(0,r[a],a,t)||(delete r[a],n=!0)}}return fE.isArray(e)?e.forEach(a):a(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const a=t[r];e&&!VE(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}normalize(e){const t=this,r={};return fE.forEach(this,(n,a)=>{const i=fE.findKey(r,a);if(i)return t[i]=FE(n),void delete t[a];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(a):String(a).trim();o!==a&&delete t[a],t[o]=FE(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return fE.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&fE.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[UE]=this[UE]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=HE(e);t[n]||(!function(e,t){const r=fE.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,a){return this[n].call(this,t,e,r,a)},configurable:!0})})}(r,e),t[n]=!0)}return fE.isArray(e)?e.forEach(n):n(e),this}}WE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),fE.reduceDescriptors(WE.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),fE.freezeMethods(WE);const $E=WE;function GE(e,t){const r=this||BE,n=t||r,a=$E.from(n.headers);let i=n.data;return fE.forEach(e,function(e){i=e.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function YE(e){return!(!e||!e.__CANCEL__)}function QE(e,t,r){mE.call(this,null==e?"canceled":e,mE.ERR_CANCELED,t,r),this.name="CanceledError"}function KE(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new mE("Request failed with status code "+r.status,[mE.ERR_BAD_REQUEST,mE.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}fE.inherits(QE,mE,{__CANCEL__:!0});const XE=(e,t,r=3)=>{let n=0;const a=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a,i=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=n[o];a||(a=l),r[i]=s,n[i]=l;let c=o,d=0;for(;c!==i;)d+=r[c++],c%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const h=u&&l-u;return h?Math.round(1e3*d/h):void 0}}(50,250);return function(e,t){let r=0;const n=1e3/t;let a=null;return function(){const t=!0===this,i=Date.now();if(t||i-r>n)return a&&(clearTimeout(a),a=null),r=i,e.apply(null,arguments);a||(a=setTimeout(()=>(a=null,r=Date.now(),e.apply(null,arguments)),n-(i-r)))}}(r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,s=i-n,l=a(s);n=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&i<=o?(o-i)/l:void 0,event:r,lengthComputable:null!=o};u[t?"download":"upload"]=!0,e(u)},r)},ZE=LE.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=fE.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},JE=LE.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const o=[e+"="+encodeURIComponent(t)];fE.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),fE.isString(n)&&o.push("path="+n),fE.isString(a)&&o.push("domain="+a),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eT(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const tT=e=>e instanceof $E?{...e}:e;function rT(e,t){t=t||{};const r={};function n(e,t,r){return fE.isPlainObject(e)&&fE.isPlainObject(t)?fE.merge.call({caseless:r},e,t):fE.isPlainObject(t)?fE.merge({},t):fE.isArray(t)?t.slice():t}function a(e,t,r){return fE.isUndefined(t)?fE.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!fE.isUndefined(t))return n(void 0,t)}function o(e,t){return fE.isUndefined(t)?fE.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,a,i){return i in t?n(r,a):i in e?n(void 0,r):void 0}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t)=>a(tT(e),tT(t),!0)};return fE.forEach(Object.keys(Object.assign({},e,t)),function(n){const i=l[n]||a,o=i(e[n],t[n],n);fE.isUndefined(o)&&i!==s||(r[n]=o)}),r}const nT=e=>{const t=rT({},e);let r,{data:n,withXSRFToken:a,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:l}=t;if(t.headers=s=$E.from(s),t.url=NE(eT(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),fE.isFormData(n))if(LE.hasStandardBrowserEnv||LE.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(LE.hasStandardBrowserEnv&&(a&&fE.isFunction(a)&&(a=a(t)),a||!1!==a&&ZE(t.url))){const e=i&&o&&JE.read(o);e&&s.set(i,e)}return t},aT="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=nT(e);let a=n.data;const i=$E.from(n.headers).normalize();let o,{responseType:s}=n;function l(){n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let u=new XMLHttpRequest;function c(){if(!u)return;const n=$E.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());KE(function(e){t(e),l()},function(e){r(e),l()},{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}u.open(n.method.toUpperCase(),n.url,!0),u.timeout=n.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(r(new mE("Request aborted",mE.ECONNABORTED,n,u)),u=null)},u.onerror=function(){r(new mE("Network Error",mE.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const t=n.transitional||OE;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new mE(e,t.clarifyTimeoutError?mE.ETIMEDOUT:mE.ECONNABORTED,n,u)),u=null},void 0===a&&i.setContentType(null),"setRequestHeader"in u&&fE.forEach(i.toJSON(),function(e,t){u.setRequestHeader(t,e)}),fE.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),s&&"json"!==s&&(u.responseType=n.responseType),"function"==typeof n.onDownloadProgress&&u.addEventListener("progress",XE(n.onDownloadProgress,!0)),"function"==typeof n.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",XE(n.onUploadProgress)),(n.cancelToken||n.signal)&&(o=t=>{u&&(r(!t||t.type?new QE(null,e,u):t),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);d&&-1===LE.protocols.indexOf(d)?r(new mE("Unsupported protocol "+d+":",mE.ERR_BAD_REQUEST,e)):u.send(a||null)})},iT=(e,t)=>{let r,n=new AbortController;const a=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof mE?t:new QE(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{a(new mE(`timeout ${t} of ms exceeded`,mE.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",a):e.unsubscribe(a))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",a));const{signal:s}=n;return s.unsubscribe=o,[s,()=>{i&&clearTimeout(i),i=null}]},oT=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,a=0;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},sT=(e,t,r,n,a)=>{const i=async function*(e,t,r){for await(const n of e)yield*oT(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,a);let o=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:a}=await i.next();if(t)return e.close(),void n();let s=a.byteLength;r&&r(o+=s),e.enqueue(new Uint8Array(a))},cancel:e=>(n(e),i.return())},{highWaterMark:2})},lT=(e,t)=>{const r=null!=e;return n=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:n}))},uT="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,cT=uT&&"function"==typeof ReadableStream,dT=uT&&("function"==typeof TextEncoder?(hT=new TextEncoder,e=>hT.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var hT;const pT=cT&&(()=>{let e=!1;const t=new Request(LE.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),fT=cT&&!!(()=>{try{return fE.isReadableStream(new Response("").body)}catch(e){}})(),mT={stream:fT&&(e=>e.body)};var gT;uT&&(gT=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!mT[e]&&(mT[e]=fE.isFunction(gT[e])?t=>t[e]():(t,r)=>{throw new mE(`Response type '${e}' is not supported`,mE.ERR_NOT_SUPPORT,r)})}));const vT=async(e,t)=>{const r=fE.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:fE.isBlob(e)?e.size:fE.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:fE.isArrayBufferView(e)?e.byteLength:(fE.isURLSearchParams(e)&&(e+=""),fE.isString(e)?(await dT(e)).byteLength:void 0))(t):r},yT={http:null,xhr:aT,fetch:uT&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:h}=nT(e);u=u?(u+"").toLowerCase():"text";let p,f,[m,g]=a||i||o?iT([a,i],o):[];const v=()=>{!p&&setTimeout(()=>{m&&m.unsubscribe()}),p=!0};let y;try{if(l&&pT&&"get"!==r&&"head"!==r&&0!==(y=await vT(c,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});fE.isFormData(n)&&(e=r.headers.get("content-type"))&&c.setContentType(e),r.body&&(n=sT(r.body,65536,lT(y,XE(l)),null,dT))}fE.isString(d)||(d=d?"cors":"omit"),f=new Request(t,{...h,signal:m,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",withCredentials:d});let a=await fetch(f);const i=fT&&("stream"===u||"response"===u);if(fT&&(s||i)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});const t=fE.toFiniteNumber(a.headers.get("content-length"));a=new Response(sT(a.body,65536,s&&lT(t,XE(s,!0)),i&&v,dT),e)}u=u||"text";let o=await mT[fE.findKey(mT,u)||"text"](a,e);return!i&&v(),g&&g(),await new Promise((t,r)=>{KE(t,r,{data:o,headers:$E.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:f})})}catch(b){if(v(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new mE("Network Error",mE.ERR_NETWORK,e,f),{cause:b.cause||b});throw mE.from(b,b&&b.code,e,f)}})};fE.forEach(yT,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const bT=e=>`- ${e}`,wT=e=>fE.isFunction(e)||null===e||!1===e,xT=e=>{e=fE.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!wT(r)&&(n=yT[(t=String(r)).toLowerCase()],void 0===n))throw new mE(`Unknown adapter '${t}'`);if(n)break;a[t||"#"+i]=n}if(!n){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new mE("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(bT).join("\n"):" "+bT(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function ST(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new QE(null,e)}function kT(e){ST(e),e.headers=$E.from(e.headers),e.data=GE.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return xT(e.adapter||BE.adapter)(e).then(function(t){return ST(e),t.data=GE.call(e,e.transformResponse,t),t.headers=$E.from(t.headers),t},function(t){return YE(t)||(ST(e),t&&t.response&&(t.response.data=GE.call(e,e.transformResponse,t.response),t.response.headers=$E.from(t.response.headers))),Promise.reject(t)})}const ET="1.7.2",TT={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{TT[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _T={};TT.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,a,i)=>{if(!1===e)throw new mE(n(a," has been removed"+(t?" in "+t:"")),mE.ERR_DEPRECATED);return t&&!_T[a]&&(_T[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,i)}};const NT={assertOptions:function(e,t,r){if("object"!=typeof e)throw new mE("options must be an object",mE.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new mE("option "+i+" must be "+r,mE.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new mE("Unknown option "+i,mE.ERR_BAD_OPTION)}},validators:TT},CT=NT.validators;class OT{constructor(e){this.defaults=e,this.interceptors={request:new CE,response:new CE}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(n){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=rT(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:a}=t;void 0!==r&&NT.assertOptions(r,{silentJSONParsing:CT.transitional(CT.boolean),forcedJSONParsing:CT.transitional(CT.boolean),clarifyTimeoutError:CT.transitional(CT.boolean)},!1),null!=n&&(fE.isFunction(n)?t.paramsSerializer={serialize:n}:NT.assertOptions(n,{encode:CT.function,serialize:CT.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&fE.merge(a.common,a[t.method]);a&&fE.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=$E.concat(i,a);const o=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[kT.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=o.length;let h=t;for(d=0;d<c;){const e=o[d++],t=o[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{u=kT.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return NE(eT((e=rT(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}fE.forEach(["delete","get","head","options"],function(e){OT.prototype[e]=function(t,r){return this.request(rT(r||{},{method:e,url:t,data:(r||{}).data}))}}),fE.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,a){return this.request(rT(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}OT.prototype[e]=t(),OT.prototype[e+"Form"]=t(!0)});const IT=OT;class RT{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,a){r.reason||(r.reason=new QE(e,n,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new RT(function(t){e=t}),cancel:e}}}const MT=RT;const AT={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(AT).forEach(([e,t])=>{AT[t]=e});const zT=AT;const DT=function e(t){const r=new IT(t),n=Ik(IT.prototype.request,r);return fE.extend(n,IT.prototype,r,{allOwnKeys:!0}),fE.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(rT(t,r))},n}(BE);DT.Axios=IT,DT.CanceledError=QE,DT.CancelToken=MT,DT.isCancel=YE,DT.VERSION=ET,DT.toFormData=SE,DT.AxiosError=mE,DT.Cancel=DT.CanceledError,DT.all=function(e){return Promise.all(e)},DT.spread=function(e){return function(t){return e.apply(null,t)}},DT.isAxiosError=function(e){return fE.isObject(e)&&!0===e.isAxiosError},DT.mergeConfig=rT,DT.AxiosHeaders=$E,DT.formToJSON=e=>PE(fE.isHTMLForm(e)?new FormData(e):e),DT.getAdapter=xT,DT.HttpStatusCode=zT,DT.default=DT;const LT=DT;class PT extends Error{constructor(e,t,r,n){super(t),this.name="QumlApiError",this.kind=e,this.status=r,this.cause=n,Object.setPrototypeOf(this,PT.prototype)}}let jT=function(e="",t={}){return LT.create({baseURL:e,headers:{"Content-Type":"application/json",...t}})}();function BT(e){return LT.isAxiosError(e)?e.response?new PT("http",`Request failed with status ${e.response.status}`,e.response.status,e):new PT("network",e.message||"Network error",void 0,e):new PT("network",(null==e?void 0:e.message)||"Unknown error",void 0,e)}function qT(e,t){var r;if(!e||"object"!=typeof e)throw new PT("invalid","Empty or malformed API response",t);if("OK"!==e.responseCode){const n=(null==(r=e.params)?void 0:r.errmsg)||e.responseCode||"Non-OK response";throw new PT("response",`API responded with: ${n}`,t)}if(void 0===e.result)throw new PT("invalid","API response missing `result`",t);return e.result}const UT="/questionset/v2/hierarchy/",HT="/question/v2/list";function FT(e){return("string"==typeof e&&e.trim()?e.trim():"/api").replace(/\/+$/,"")}function VT(e){const t="undefined"!=typeof window?window[e]:void 0;return"string"==typeof t&&t?t:void 0}async function WT(e,t={}){if(!e)throw new PT("invalid","getQuestionSetHierarchy: identifier is required");const r=VT("questionSetHierarchyUrl")??`${FT(t.pathPrefix)}${UT}`,n=r.endsWith("/")?`${r}${e}`:`${r}/${e}`,a=n.includes("?")?`${n}&mode=edit`:`${n}?mode=edit`,i=await async function(e,t){try{const r=await jT.get(e,t);return qT(r.data,r.status)}catch(r){if(r instanceof PT)throw r;throw BT(r)}}(a,{baseURL:t.baseUrl});if(!(null==i?void 0:i.questionset))throw new PT("invalid","Hierarchy response missing `questionset`");return i.questionset}async function $T(e,t={}){if(!e||0===e.length)return[];const r=VT("questionListUrl")??`${FT(t.pathPrefix)}${HT}`,n=t.language?`${r}?lang=${t.language}`:r,a=[];for(let o=0;o<e.length;o+=50)a.push(e.slice(o,o+50));const i=await Promise.all(a.map(e=>async function(e,t,r){try{const n=await jT.post(e,t,r);return qT(n.data,n.status)}catch(n){if(n instanceof PT)throw n;throw BT(n)}}(n,{request:{search:{identifier:e}}},{baseURL:t.baseUrl})));return i.flatMap(e=>(null==e?void 0:e.questions)??[])}function GT(e){const t=e.children??[];if(0===t.length)return[];if(t.every(e=>"Question"===e.objectType))return[e];const r=t.filter(e=>"Question"===e.objectType);return r.length>0&&console.warn(`[data-service] ${r.length} root-level question(s) ignored (mixed section/question layout unsupported):`,r.map(e=>e.identifier)),t.filter(e=>"Question"!==e.objectType)}function YT(e){return[...(e.children??[]).filter(e=>"Question"===e.objectType||!e.children)].sort((e,t)=>(e.index??0)-(t.index??0))}const QT="_appShell_4863e_1",KT="_appBody_4863e_13",XT="_sidebarSlot_4863e_20",ZT="_main_4863e_29",JT="_status_4863e_71",e_="_error_4863e_72";function t_({playerConfig:e,onPlayerEvent:t}){var r;const{state:n,setPlayerConfig:a,setSections:i,setCurrentSection:o,setCurrentQuestion:s,setLoading:l,setError:u,clearError:c,resetState:d,setAttempt:h}=Rp(),p=n.language,[f,m]=j.useState({}),[g,v]=j.useState("overview"),[y,b]=j.useState(!1),[w,x]=j.useState(!1),[S,k]=j.useState(0),[E,T]=j.useState(null),_=j.useRef(!1),N=!1!==(null==(r=null==e?void 0:e.config)?void 0:r.showSectionIntro),C="No"===f.showStartPage||!1===f.showStartPage,O="No"!==f.requiresSubmit&&!1!==f.requiresSubmit,I=j.useCallback(async()=>{var t,r;if(!e)return;a(e);const n=e.data??{},o=e.metadata??{},s=n.sections??o.sections,c=Array.isArray(s)?s:[];if(c.length>0){const e=c.map(e=>{const t=_k(e);if(!t)return null;const r=(e.children??[]).map(e=>vk(e)).filter(e=>Boolean(e));return{...t,children:r}}).filter(e=>Boolean(e));return m(n.sections?n:o),void i(e)}if((d=o)&&"object"==typeof d&>(d).some(e=>YT(e).some(e=>e&&(e.body||e.interactions&&Object.keys(e.interactions).length>0)))){const e=function(e){return GT(e).map(e=>{const t=_k(e);if(!t)return null;const r=YT(e).map(e=>vk(e)).filter(e=>Boolean(e));return{...t,children:r}}).filter(e=>Boolean(e))}(o);if(e.length>0)return m(o),void i(e)}var d;const h=n.identifier??o.identifier,p="string"==typeof h?h:void 0;if(!p)return;const f=(null==(t=e.context)?void 0:t.host)??"",g=e.config??{},v=("string"==typeof g.apiSlug?g.apiSlug:void 0)??("string"==typeof g.slug?g.slug:void 0);l(!0);try{const{metadata:t,sections:n}=await async function(e,t={}){const r=await WT(e,t),n=GT(r),a=n.map(YT),i=a.flat().map(e=>e.identifier),o=await $T(i,t),s=new Map(o.map(e=>[e.identifier,e]));return{metadata:r,sections:n.map((e,t)=>{const r=_k(e);if(!r)return null;const n=a[t].map(e=>{const t=s.get(e.identifier);return vk({...e,...t??{}})}).filter(e=>Boolean(e));return{...r,children:n}}).filter(e=>Boolean(e))}}(p,{baseUrl:f,language:null==(r=e.config)?void 0:r.language,pathPrefix:v});m(t),i(n),l(!1)}catch(y){const e=y instanceof PT?y.message:"Failed to load the assessment.";u(e)}},[e,a,i,l,u]);j.useEffect(()=>{I()},[I]);const R=j.useMemo(()=>{let e=0,t=0,r=0,a=0,i=0,o=0;for(const s of n.sections)for(const l of s.children){const s=l.maxScore??1;o+=s;const u=n.answers[l.identifier];if(!Fw(u)){a+=1;continue}const c=Jw(l,u,p);i+=c*s,c>=1?e+=1:c>0?r+=1:t+=1}return{correct:e,incorrect:t,partial:r,skipped:a,totalScore:Math.round(i),maxScore:o}},[n.sections,n.answers,p]),M=j.useMemo(()=>{var t;const r=f,a=n.sections.reduce((e,t)=>e+t.children.length,0),i=n.sections.reduce((e,t)=>e+t.children.reduce((e,t)=>e+(t.maxScore??1),0),0),o=null==(t=r.timeLimits)?void 0:t.questionSet,s=(null==e?void 0:e.config)??{};return{title:Hy(r.name,p)||Uy(p,"ASSESSMENT_OVERVIEW"),description:Hy(r.description,p)||void 0,instructions:r.instructions,totalQuestions:a,totalSections:n.sections.length,timeLimit:Number(null==o?void 0:o.max)||0,showTimer:!0===r.showTimer||"true"===r.showTimer,maxScore:i,attemptsLeft:Math.max(0,(s.maxAttempts??3)-(n.attemptNumber-1))}},[f,e,n.sections,n.attemptNumber,p]),A="assessment"===g||"sectionIntro"===g,z=j.useRef(null);j.useEffect(()=>{if(!A||null==E)return void(z.current=null);z.current=Date.now()+1e3*E;const e=setInterval(()=>{const t=Math.max(0,Math.ceil((z.current-Date.now())/1e3));T(t),t<=0&&clearInterval(e)},250);return()=>clearInterval(e)},[A]);const[D,L]=j.useState(0),P=j.useRef(null);j.useEffect(()=>{if(!A||M.timeLimit>0||!M.showTimer)return;P.current=Date.now()-1e3*D;const e=setInterval(()=>{L(Math.floor((Date.now()-P.current)/1e3))},250);return()=>clearInterval(e)},[A,M.timeLimit,M.showTimer]),j.useEffect(()=>{0===E&&(x(!1),v("results"))},[E]);const B=j.useMemo(()=>n.sections.flatMap(e=>e.children),[n.sections]),q=j.useMemo(()=>n.sections.map(e=>e.children.length>0&&e.children.every(e=>Fw(n.answers[e.identifier]))),[n.sections,n.answers]),U=()=>{M.showTimer&&null==E&&M.timeLimit>0&&T(M.timeLimit)},H=()=>{o(0),s(0),U(),v(N?"sectionIntro":"assessment")},F=()=>{s(0),v("assessment")},V=e=>{o(e),s(0),U(),v(N?"sectionIntro":"assessment")},W=()=>{O?x(!0):G()},G=()=>{x(!1),v("results"),null==t||t({type:"quizEnd",summary:R})},Y=()=>x(!1),Q=()=>{k(0),v("review")},K=()=>{const e=n.attemptNumber+1;d(),I(),h(e),T(null),L(0),x(!1),v("overview")},X=()=>{const e=n.currentSectionIndex+1;e<n.sections.length?(o(e),s(0),v(N?"sectionIntro":"assessment"),null==t||t({type:"sectionEnd",sectionIndex:n.currentSectionIndex})):O?x(!0):G()},Z=e=>{o(e),s(0),v("assessment")};if(j.useEffect(()=>{!_.current&&C&&"overview"===g&&0!==n.sections.length&&(_.current=!0,o(0),s(0),U(),v("assessment"))},[C,g,n.sections.length]),!n.playerConfig||n.loading)return $.jsx("div",{className:JT,children:Uy(p,"LOADING")});if(n.error){const e=()=>{c(),I()};return $.jsxs("div",{className:e_,children:[$.jsx("p",{children:n.error}),$.jsx("button",{type:"button",onClick:e,children:Uy(p,"RETRY")})]})}const J=n.sections[n.currentSectionIndex],ee=n.sections.slice(0,n.currentSectionIndex).reduce((e,t)=>e+t.children.length,0)+n.currentQuestionIndex+1;let te;if("overview"===g&&C&&!_.current)te=$.jsx("div",{className:JT,children:Uy(p,"LOADING")});else if("overview"===g)te=$.jsx(Dx,{title:M.title,sections:n.sections,totalQuestions:M.totalQuestions,totalSections:M.totalSections,timeLimit:M.timeLimit,attemptsLeft:M.attemptsLeft,onStart:H,onSectionSelect:V,language:p});else if("results"===g){const e=M.showTimer?M.timeLimit>0?M.timeLimit-(E??M.timeLimit):D:null;te=$.jsx(ek,{summary:R,timeTaken:e,onReviewAll:Q,onRetake:K,language:p})}else if("review"===g)te=$.jsx(gk,{questions:B,sections:n.sections,answers:n.answers,startIndex:S,onExit:()=>v("results"),language:p});else{const e="sectionIntro"===g&&J?$.jsx(Qx,{section:J,sectionIndex:n.currentSectionIndex,totalSections:n.sections.length,onBegin:F,language:p},`intro-${n.currentSectionIndex}`):$.jsx(sx,{section:J,onSectionEnd:X,isLastSection:n.currentSectionIndex===n.sections.length-1},n.currentSectionIndex);te=$.jsxs($.Fragment,{children:[$.jsx(vS,{brand:M.title,sections:n.sections,currentSectionIndex:n.currentSectionIndex,completed:q,timeRemaining:M.showTimer?E:null,timeElapsed:M.showTimer&&0===M.timeLimit?D:null,questionNumber:ee,totalQuestions:M.totalQuestions,onSubmit:W,onMenuClick:()=>b(!0),onBrandClick:()=>v("overview"),language:p}),$.jsxs("div",{className:KT,children:[$.jsx("aside",{className:XT,children:$.jsx(uS,{sections:n.sections,currentSectionIndex:n.currentSectionIndex,answers:n.answers,onSectionJump:Z,language:p})}),$.jsx("main",{className:ZT,children:e}),$.jsx(mS,{isOpen:y,onClose:()=>b(!1),sections:n.sections,currentSectionIndex:n.currentSectionIndex,answers:n.answers,onSectionJump:Z,language:p})]}),w&&$.jsx(AS,{answeredCount:M.totalQuestions-R.skipped,unansweredCount:R.skipped,onConfirm:G,onCancel:Y,language:p})]})}return $.jsx(fh,{backend:dp,children:$.jsx("div",{className:QT,children:te})})}class r_ extends HTMLElement{constructor(){super(),this.root=null,this.unsubscribeTelemetry=null,this.shadow=this.attachShadow({mode:"open"})}connectedCallback(){try{const r=this.getAttribute("player-config"),n=r?JSON.parse(r):{context:{},config:{}};try{n.context&&function(e){const t="undefined"!=typeof window?window.EkTelemetry:void 0;Mp=t??null,t?"function"==typeof t.initialize&&t.initialize(e):console.warn("[TelemetryService] Sunbird SDK not available")}(n.context)}catch(t){return console.error("[SunbirdQumlPlayer] Telemetry initialization error:",t),void this._showError("Failed to initialize player services")}const a=document.createElement("div");a.className="quml-player-root",this.shadow.appendChild(a);const i=document.createElement("style");i.textContent="\n :host {\n /* all:initial isolates us from host-page styles, but it also resets\n display + height — so re-declare them AFTER it, or the element falls\n back to an inline, auto-height box that can't fill its container. */\n all: initial;\n display: block;\n /* Fill the host's container height. Without this the custom element is\n auto-height (content-sized), so every inner height:100% collapses and\n the assessment stage — whose .appBody is overflow:hidden — clips the\n question with no scroll viewport, freezing the screen on mobile. */\n height: 100%;\n box-sizing: border-box;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .quml-player-root { all: initial; display: block; height: 100%; box-sizing: border-box; }\n ",this.shadow.insertBefore(i,a),this._injectStyles();const o=e=>this._dispatchEvent("telemetryEvent",e);this.unsubscribeTelemetry=(e=e=>o(e),Ap.add(e),()=>{Ap.delete(e)}),this.root=ed(a),this.root.render($.jsx(Ip,{playerConfig:n,children:$.jsx(t_,{playerConfig:n,onPlayerEvent:e=>this._dispatchEvent("playerEvent",e),onTelemetryEvent:o})}))}catch(r){console.error("[SunbirdQumlPlayer] Initialization error:",r),this._showError("Failed to load player")}var e}disconnectedCallback(){this.unsubscribeTelemetry&&(this.unsubscribeTelemetry(),this.unsubscribeTelemetry=null),this.root&&(this.root.unmount(),this.root=null)}_showError(e){this.shadow.innerHTML=`\n <style>\n :host { display: block; }\n .error { color: #d32f2f; padding: 20px; font-family: sans-serif; }\n </style>\n <div class="error">${e}</div>\n `}_dispatchEvent(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}_injectStyles(){const e=document.createElement("style");e.textContent=`\n ${"undefined"!=typeof BUNDLED_CSS?BUNDLED_CSS:""}\n :host { display: block; height: 100%; box-sizing: border-box; }\n .quml-player-root { all: initial; display: block; height: 100%; box-sizing: border-box; }\n `,this.shadow.firstChild?this.shadow.insertBefore(e,this.shadow.firstChild):this.shadow.appendChild(e)}getAnswers(){return{}}reset(){}}return"undefined"==typeof customElements||customElements.get("sunbird-quml-player")||customElements.define("sunbird-quml-player",r_),r_}();
|
|
31
|
+
*/function ee(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var te=new Set,re={};function ne(e,t){ae(e,t),ae(e+"Capture",t)}function ae(e,t){for(re[e]=t,e=0;e<t.length;e++)te.add(t[e])}var ie=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),oe=Object.prototype.hasOwnProperty,se=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,le={},ue={};function ce(e,t,r,n,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new ce(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new ce(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new ce(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new ce(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){de[e]=new ce(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){de[e]=new ce(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){de[e]=new ce(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){de[e]=new ce(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){de[e]=new ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var he=/[\-:]([a-z])/g;function pe(e){return e[1].toUpperCase()}function fe(e,t,r,n){var a=de.hasOwnProperty(t)?de[t]:null;(null!==a?0!==a.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,a,n)&&(r=null),n||null===a?function(e){return!!oe.call(ue,e)||!oe.call(le,e)&&(se.test(e)?ue[e]=!0:(le[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=null===r?3!==a.type&&"":r:(t=a.attributeName,n=a.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(a=a.type)||4===a&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(he,pe);de[t]=new ce(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(he,pe);de[t]=new ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(he,pe);de[t]=new ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){de[e]=new ce(e,1,!1,e.toLowerCase(),null,!1,!1)}),de.xlinkHref=new ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){de[e]=new ce(e,1,!1,e.toLowerCase(),null,!0,!0)});var me=Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ge=Symbol.for("react.element"),ve=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),be=Symbol.for("react.strict_mode"),we=Symbol.for("react.profiler"),xe=Symbol.for("react.provider"),Se=Symbol.for("react.context"),ke=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),Ce=Symbol.for("react.offscreen"),Oe=Symbol.iterator;function Ie(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Oe&&e[Oe]||e["@@iterator"])?e:null}var Re,Me=Object.assign;function Ae(e){if(void 0===Re)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Re=t&&t[1]||""}return"\n"+Re+e}var ze=!1;function De(e,t){if(!e||ze)return"";ze=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&"string"==typeof u.stack){for(var a=u.stack.split("\n"),i=n.stack.split("\n"),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||a[o]!==i[s]){var l="\n"+a[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{ze=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ae(e):""}function Le(e){switch(e.tag){case 5:return Ae(e.type);case 16:return Ae("Lazy");case 13:return Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 2:case 15:return e=De(e.type,!1);case 11:return e=De(e.type.render,!1);case 1:return e=De(e.type,!0);default:return""}}function Pe(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ye:return"Fragment";case ve:return"Portal";case we:return"Profiler";case be:return"StrictMode";case Ee:return"Suspense";case Te:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Se:return(e.displayName||"Context")+".Consumer";case xe:return(e._context.displayName||"Context")+".Provider";case ke:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return null!==(t=e.displayName||null)?t:Pe(e.type)||"Memo";case Ne:t=e._payload,e=e._init;try{return Pe(e(t))}catch(r){}}return null}function je(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pe(t);case 8:return t===be?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Be(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function qe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ue(e){e._valueTracker||(e._valueTracker=function(e){var t=qe(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=qe(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Fe(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ve(e,t){var r=t.checked;return Me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function We(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Be(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function $e(e,t){null!=(t=t.checked)&&fe(e,"checked",t,!1)}function Ge(e,t){$e(e,t);var r=Be(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Qe(e,t.type,r):t.hasOwnProperty("defaultValue")&&Qe(e,t.type,Be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ye(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Qe(e,t,r){"number"===t&&Fe(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ke=Array.isArray;function Xe(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Be(r),t=null,a=0;a<e.length;a++){if(e[a].value===r)return e[a].selected=!0,void(n&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Ze(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(ee(91));return Me({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Je(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(ee(92));if(Ke(r)){if(1<r.length)throw Error(ee(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:Be(r)}}function et(e,t){var r=Be(t.value),n=Be(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function tt(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function rt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function nt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?rt(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var at,it,ot=(it=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((at=at||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=at.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction(function(){return it(e,t)})}:it);function st(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var lt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ut=["Webkit","ms","Moz","O"];function ct(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||lt.hasOwnProperty(e)&<[e]?(""+t).trim():t+"px"}function dt(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),a=ct(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}Object.keys(lt).forEach(function(e){ut.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lt[t]=lt[e]})});var ht=Me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pt(e,t){if(t){if(ht[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ee(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ee(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ee(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ee(62))}}function ft(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mt=null;function gt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var vt=null,yt=null,bt=null;function wt(e){if(e=fi(e)){if("function"!=typeof vt)throw Error(ee(280));var t=e.stateNode;t&&(t=gi(t),vt(e.stateNode,e.type,t))}}function xt(e){yt?bt?bt.push(e):bt=[e]:yt=e}function St(){if(yt){var e=yt,t=bt;if(bt=yt=null,wt(e),t)for(e=0;e<t.length;e++)wt(t[e])}}function kt(e,t){return e(t)}function Et(){}var Tt=!1;function _t(e,t,r){if(Tt)return e(t,r);Tt=!0;try{return kt(e,t,r)}finally{Tt=!1,(null!==yt||null!==bt)&&(Et(),St())}}function Nt(e,t){var r=e.stateNode;if(null===r)return null;var n=gi(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(ee(231,t,typeof r));return r}var Ct=!1;if(ie)try{var Ot={};Object.defineProperty(Ot,"passive",{get:function(){Ct=!0}}),window.addEventListener("test",Ot,Ot),window.removeEventListener("test",Ot,Ot)}catch(it){Ct=!1}function It(e,t,r,n,a,i,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var Rt=!1,Mt=null,At=!1,zt=null,Dt={onError:function(e){Rt=!0,Mt=e}};function Lt(e,t,r,n,a,i,o,s,l){Rt=!1,Mt=null,It.apply(Dt,arguments)}function Pt(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function jt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Bt(e){if(Pt(e)!==e)throw Error(ee(188))}function qt(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Pt(e)))throw Error(ee(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(n=a.return)){r=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return Bt(a),e;if(i===n)return Bt(a),t;i=i.sibling}throw Error(ee(188))}if(r.return!==n.return)r=a,n=i;else{for(var o=!1,s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o)throw Error(ee(189))}}if(r.alternate!==n)throw Error(ee(190))}if(3!==r.tag)throw Error(ee(188));return r.stateNode.current===r?e:t}(e))?Ut(e):null}function Ut(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ut(e);if(null!==t)return t;e=e.sibling}return null}var Ht=J.unstable_scheduleCallback,Ft=J.unstable_cancelCallback,Vt=J.unstable_shouldYield,Wt=J.unstable_requestPaint,$t=J.unstable_now,Gt=J.unstable_getCurrentPriorityLevel,Yt=J.unstable_ImmediatePriority,Qt=J.unstable_UserBlockingPriority,Kt=J.unstable_NormalPriority,Xt=J.unstable_LowPriority,Zt=J.unstable_IdlePriority,Jt=null,er=null;var tr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(rr(e)/nr|0)|0},rr=Math.log,nr=Math.LN2;var ar=64,ir=4194304;function or(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sr(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,o=268435455&r;if(0!==o){var s=o&~a;0!==s?n=or(s):0!==(i&=o)&&(n=or(i))}else 0!==(o=r&~a)?n=or(o):0!==i&&(n=or(i));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&a)&&((a=n&-n)>=(i=t&-t)||16===a&&4194240&i))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)a=1<<(r=31-tr(t)),n|=e[r],t&=~a;return n}function lr(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ur(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function cr(){var e=ar;return!(4194240&(ar<<=1))&&(ar=64),e}function dr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function hr(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-tr(t)]=r}function pr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-tr(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var fr=0;function mr(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var gr,vr,yr,br,wr,xr=!1,Sr=[],kr=null,Er=null,Tr=null,_r=new Map,Nr=new Map,Cr=[],Or="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ir(e,t){switch(e){case"focusin":case"focusout":kr=null;break;case"dragenter":case"dragleave":Er=null;break;case"mouseover":case"mouseout":Tr=null;break;case"pointerover":case"pointerout":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nr.delete(t.pointerId)}}function Rr(e,t,r,n,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},null!==t&&(null!==(t=fi(t))&&vr(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Mr(e){var t=pi(e.target);if(null!==t){var r=Pt(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=jt(r)))return e.blockedOn=t,void wr(e.priority,function(){yr(r)})}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Ar(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Vr(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=fi(r))&&vr(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);mt=n,r.target.dispatchEvent(n),mt=null,t.shift()}return!0}function zr(e,t,r){Ar(e)&&r.delete(t)}function Dr(){xr=!1,null!==kr&&Ar(kr)&&(kr=null),null!==Er&&Ar(Er)&&(Er=null),null!==Tr&&Ar(Tr)&&(Tr=null),_r.forEach(zr),Nr.forEach(zr)}function Lr(e,t){e.blockedOn===t&&(e.blockedOn=null,xr||(xr=!0,J.unstable_scheduleCallback(J.unstable_NormalPriority,Dr)))}function Pr(e){function t(t){return Lr(t,e)}if(0<Sr.length){Lr(Sr[0],e);for(var r=1;r<Sr.length;r++){var n=Sr[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==kr&&Lr(kr,e),null!==Er&&Lr(Er,e),null!==Tr&&Lr(Tr,e),_r.forEach(t),Nr.forEach(t),r=0;r<Cr.length;r++)(n=Cr[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Cr.length&&null===(r=Cr[0]).blockedOn;)Mr(r),null===r.blockedOn&&Cr.shift()}var jr=me.ReactCurrentBatchConfig,Br=!0;function qr(e,t,r,n){var a=fr,i=jr.transition;jr.transition=null;try{fr=1,Hr(e,t,r,n)}finally{fr=a,jr.transition=i}}function Ur(e,t,r,n){var a=fr,i=jr.transition;jr.transition=null;try{fr=4,Hr(e,t,r,n)}finally{fr=a,jr.transition=i}}function Hr(e,t,r,n){if(Br){var a=Vr(e,t,r,n);if(null===a)Ba(e,t,n,Fr,r),Ir(e,n);else if(function(e,t,r,n,a){switch(t){case"focusin":return kr=Rr(kr,e,t,r,n,a),!0;case"dragenter":return Er=Rr(Er,e,t,r,n,a),!0;case"mouseover":return Tr=Rr(Tr,e,t,r,n,a),!0;case"pointerover":var i=a.pointerId;return _r.set(i,Rr(_r.get(i)||null,e,t,r,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Nr.set(i,Rr(Nr.get(i)||null,e,t,r,n,a)),!0}return!1}(a,e,t,r,n))n.stopPropagation();else if(Ir(e,n),4&t&&-1<Or.indexOf(e)){for(;null!==a;){var i=fi(a);if(null!==i&&gr(i),null===(i=Vr(e,t,r,n))&&Ba(e,t,n,Fr,r),i===a)break;a=i}null!==a&&n.stopPropagation()}else Ba(e,t,n,null,r)}}var Fr=null;function Vr(e,t,r,n){if(Fr=null,null!==(e=pi(e=gt(n))))if(null===(t=Pt(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=jt(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fr=e,null}function Wr(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Gt()){case Yt:return 1;case Qt:return 4;case Kt:case Xt:return 16;case Zt:return 536870912;default:return 16}default:return 16}}var $r=null,Gr=null,Yr=null;function Qr(){if(Yr)return Yr;var e,t,r=Gr,n=r.length,a="value"in $r?$r.value:$r.textContent,i=a.length;for(e=0;e<n&&r[e]===a[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===a[i-t];t++);return Yr=a.slice(e,1<t?1-t:void 0)}function Kr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Xr(){return!0}function Zr(){return!1}function Jr(e){function t(t,r,n,a,i){for(var o in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Xr:Zr,this.isPropagationStopped=Zr,this}return Me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Xr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Xr)},persist:function(){},isPersistent:Xr}),t}var en,tn,rn,nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},an=Jr(nn),on=Me({},nn,{view:0,detail:0}),sn=Jr(on),ln=Me({},on,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rn&&(rn&&"mousemove"===e.type?(en=e.screenX-rn.screenX,tn=e.screenY-rn.screenY):tn=en=0,rn=e),en)},movementY:function(e){return"movementY"in e?e.movementY:tn}}),un=Jr(ln),cn=Jr(Me({},ln,{dataTransfer:0})),dn=Jr(Me({},on,{relatedTarget:0})),hn=Jr(Me({},nn,{animationName:0,elapsedTime:0,pseudoElement:0})),pn=Me({},nn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fn=Jr(pn),mn=Jr(Me({},nn,{data:0})),gn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=yn[e])&&!!t[e]}function wn(){return bn}var xn=Me({},on,{key:function(e){if(e.key){var t=gn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Kr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?vn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wn,charCode:function(e){return"keypress"===e.type?Kr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Kr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=Jr(xn),kn=Jr(Me({},ln,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),En=Jr(Me({},on,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wn})),Tn=Jr(Me({},nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=Me({},ln,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=Jr(_n),Cn=[9,13,27,32],On=ie&&"CompositionEvent"in window,In=null;ie&&"documentMode"in document&&(In=document.documentMode);var Rn=ie&&"TextEvent"in window&&!In,Mn=ie&&(!On||In&&8<In&&11>=In),An=String.fromCharCode(32),zn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pn=!1;var jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function qn(e,t,r,n){xt(n),0<(t=Ua(t,"onChange")).length&&(r=new an("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Un=null,Hn=null;function Fn(e){Aa(e,0)}function Vn(e){if(He(mi(e)))return e}function Wn(e,t){if("change"===e)return t}var $n=!1;if(ie){var Gn;if(ie){var Yn="oninput"in document;if(!Yn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Yn="function"==typeof Qn.oninput}Gn=Yn}else Gn=!1;$n=Gn&&(!document.documentMode||9<document.documentMode)}function Kn(){Un&&(Un.detachEvent("onpropertychange",Xn),Hn=Un=null)}function Xn(e){if("value"===e.propertyName&&Vn(Hn)){var t=[];qn(t,Hn,e,gt(e)),_t(Fn,t)}}function Zn(e,t,r){"focusin"===e?(Kn(),Hn=r,(Un=t).attachEvent("onpropertychange",Xn)):"focusout"===e&&Kn()}function Jn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vn(Hn)}function ea(e,t){if("click"===e)return Vn(t)}function ta(e,t){if("input"===e||"change"===e)return Vn(t)}var ra="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function na(e,t){if(ra(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!oe.call(t,a)||!ra(e[a],t[a]))return!1}return!0}function aa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ia(e,t){var r,n=aa(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aa(n)}}function oa(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?oa(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function sa(){for(var e=window,t=Fe();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=Fe((e=t.contentWindow).document)}return t}function la(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ua(e){var t=sa(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&oa(r.ownerDocument.documentElement,r)){if(null!==n&&la(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=void 0===n.end?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=ia(r,i);var o=ia(r,n);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ca=ie&&"documentMode"in document&&11>=document.documentMode,da=null,ha=null,pa=null,fa=!1;function ma(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;fa||null==da||da!==Fe(n)||("selectionStart"in(n=da)&&la(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},pa&&na(pa,n)||(pa=n,0<(n=Ua(ha,"onSelect")).length&&(t=new an("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=da)))}function ga(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var va={animationend:ga("Animation","AnimationEnd"),animationiteration:ga("Animation","AnimationIteration"),animationstart:ga("Animation","AnimationStart"),transitionend:ga("Transition","TransitionEnd")},ya={},ba={};function wa(e){if(ya[e])return ya[e];if(!va[e])return e;var t,r=va[e];for(t in r)if(r.hasOwnProperty(t)&&t in ba)return ya[e]=r[t];return e}ie&&(ba=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);var xa=wa("animationend"),Sa=wa("animationiteration"),ka=wa("animationstart"),Ea=wa("transitionend"),Ta=new Map,_a="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Na(e,t){Ta.set(e,t),ne(t,[e])}for(var Ca=0;Ca<_a.length;Ca++){var Oa=_a[Ca];Na(Oa.toLowerCase(),"on"+(Oa[0].toUpperCase()+Oa.slice(1)))}Na(xa,"onAnimationEnd"),Na(Sa,"onAnimationIteration"),Na(ka,"onAnimationStart"),Na("dblclick","onDoubleClick"),Na("focusin","onFocus"),Na("focusout","onBlur"),Na(Ea,"onTransitionEnd"),ae("onMouseEnter",["mouseout","mouseover"]),ae("onMouseLeave",["mouseout","mouseover"]),ae("onPointerEnter",["pointerout","pointerover"]),ae("onPointerLeave",["pointerout","pointerover"]),ne("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ne("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ne("onBeforeInput",["compositionend","keypress","textInput","paste"]),ne("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ne("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ne("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ia="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ra=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ia));function Ma(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,a,i,o,s,l){if(Lt.apply(this,arguments),Rt){if(!Rt)throw Error(ee(198));var u=Mt;Rt=!1,Mt=null,At||(At=!0,zt=u)}}(n,t,void 0,e),e.currentTarget=null}function Aa(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break e;Ma(a,s,u),i=l}else for(o=0;o<n.length;o++){if(l=(s=n[o]).instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break e;Ma(a,s,u),i=l}}}if(At)throw e=zt,At=!1,zt=null,e}function za(e,t){var r=t[ci];void 0===r&&(r=t[ci]=new Set);var n=e+"__bubble";r.has(n)||(ja(t,e,2,!1),r.add(n))}function Da(e,t,r){var n=0;t&&(n|=4),ja(r,e,n,t)}var La="_reactListening"+Math.random().toString(36).slice(2);function Pa(e){if(!e[La]){e[La]=!0,te.forEach(function(t){"selectionchange"!==t&&(Ra.has(t)||Da(t,!1,e),Da(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[La]||(t[La]=!0,Da("selectionchange",!1,t))}}function ja(e,t,r,n){switch(Wr(t)){case 1:var a=qr;break;case 4:a=Ur;break;default:a=Hr}r=a.bind(null,t,r,e),a=void 0,!Ct||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),n?void 0!==a?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):void 0!==a?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function Ba(e,t,r,n,a){var i=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var o=n.tag;if(3===o||4===o){var s=n.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===o)for(o=n.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;o=o.return}for(;null!==s;){if(null===(o=pi(s)))return;if(5===(l=o.tag)||6===l){n=i=o;continue e}s=s.parentNode}}n=n.return}_t(function(){var n=i,a=gt(r),o=[];e:{var s=Ta.get(e);if(void 0!==s){var l=an,u=e;switch(e){case"keypress":if(0===Kr(r))break e;case"keydown":case"keyup":l=Sn;break;case"focusin":u="focus",l=dn;break;case"focusout":u="blur",l=dn;break;case"beforeblur":case"afterblur":l=dn;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=un;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=cn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=En;break;case xa:case Sa:case ka:l=hn;break;case Ea:l=Tn;break;case"scroll":l=sn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=fn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=kn}var c=!!(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var p,f=n;null!==f;){var m=(p=f).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==h&&(null!=(m=Nt(f,h))&&c.push(qa(f,m,p)))),d)break;f=f.return}0<c.length&&(s=new l(s,u,null,r,a),o.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===mt||!(u=r.relatedTarget||r.fromElement)||!pi(u)&&!u[ui])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?pi(u):null)&&(u!==(d=Pt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=un,m="onMouseLeave",h="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=kn,m="onPointerLeave",h="onPointerEnter",f="pointer"),d=null==l?s:mi(l),p=null==u?s:mi(u),(s=new c(m,f+"leave",l,r,a)).target=d,s.relatedTarget=p,m=null,pi(a)===n&&((c=new c(h,f+"enter",u,r,a)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(h=u,f=0,p=c=l;p;p=Ha(p))f++;for(p=0,m=h;m;m=Ha(m))p++;for(;0<f-p;)c=Ha(c),f--;for(;0<p-f;)h=Ha(h),p--;for(;f--;){if(c===h||null!==h&&c===h.alternate)break e;c=Ha(c),h=Ha(h)}c=null}else c=null;null!==l&&Fa(o,s,l,c,!1),null!==u&&null!==d&&Fa(o,d,u,c,!0)}if("select"===(l=(s=n?mi(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Wn;else if(Bn(s))if($n)g=ta;else{g=Jn;var v=Zn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ea);switch(g&&(g=g(e,n))?qn(o,g,r,a):(v&&v(e,s,n),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&Qe(s,"number",s.value)),v=n?mi(n):window,e){case"focusin":(Bn(v)||"true"===v.contentEditable)&&(da=v,ha=n,pa=null);break;case"focusout":pa=ha=da=null;break;case"mousedown":fa=!0;break;case"contextmenu":case"mouseup":case"dragend":fa=!1,ma(o,r,a);break;case"selectionchange":if(ca)break;case"keydown":case"keyup":ma(o,r,a)}var y;if(On)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Pn?Dn(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==r.locale&&(Pn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Pn&&(y=Qr()):(Gr="value"in($r=a)?$r.value:$r.textContent,Pn=!0)),0<(v=Ua(n,b)).length&&(b=new mn(b,e,null,r,a),o.push({event:b,listeners:v}),y?b.data=y:null!==(y=Ln(r))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(zn=!0,An);case"textInput":return(e=t.data)===An&&zn?null:e;default:return null}}(e,r):function(e,t){if(Pn)return"compositionend"===e||!On&&Dn(e,t)?(e=Qr(),Yr=Gr=$r=null,Pn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Ua(n,"onBeforeInput")).length&&(a=new mn("onBeforeInput","beforeinput",null,r,a),o.push({event:a,listeners:n}),a.data=y))}Aa(o,t)})}function qa(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ua(e,t){for(var r=t+"Capture",n=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Nt(e,r))&&n.unshift(qa(e,i,a)),null!=(i=Nt(e,t))&&n.push(qa(e,i,a))),e=e.return}return n}function Ha(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Fa(e,t,r,n,a){for(var i=t._reactName,o=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,a?null!=(l=Nt(r,i))&&o.unshift(qa(r,l,s)):a||null!=(l=Nt(r,i))&&o.push(qa(r,l,s))),r=r.return}0!==o.length&&e.push({event:t,listeners:o})}var Va=/\r\n?/g,Wa=/\u0000|\uFFFD/g;function $a(e){return("string"==typeof e?e:""+e).replace(Va,"\n").replace(Wa,"")}function Ga(e,t,r){if(t=$a(t),$a(e)!==t&&r)throw Error(ee(425))}function Ya(){}var Qa=null,Ka=null;function Xa(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Za="function"==typeof setTimeout?setTimeout:void 0,Ja="function"==typeof clearTimeout?clearTimeout:void 0,ei="function"==typeof Promise?Promise:void 0,ti="function"==typeof queueMicrotask?queueMicrotask:void 0!==ei?function(e){return ei.resolve(null).then(e).catch(ri)}:Za;function ri(e){setTimeout(function(){throw e})}function ni(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&8===a.nodeType)if("/$"===(r=a.data)){if(0===n)return e.removeChild(a),void Pr(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=a}while(r);Pr(t)}function ai(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ii(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var oi=Math.random().toString(36).slice(2),si="__reactFiber$"+oi,li="__reactProps$"+oi,ui="__reactContainer$"+oi,ci="__reactEvents$"+oi,di="__reactListeners$"+oi,hi="__reactHandles$"+oi;function pi(e){var t=e[si];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ui]||r[si]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=ii(e);null!==e;){if(r=e[si])return r;e=ii(e)}return t}r=(e=r).parentNode}return null}function fi(e){return!(e=e[si]||e[ui])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function mi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ee(33))}function gi(e){return e[li]||null}var vi=[],yi=-1;function bi(e){return{current:e}}function wi(e){0>yi||(e.current=vi[yi],vi[yi]=null,yi--)}function xi(e,t){yi++,vi[yi]=e.current,e.current=t}var Si={},ki=bi(Si),Ei=bi(!1),Ti=Si;function _i(e,t){var r=e.type.contextTypes;if(!r)return Si;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in r)i[a]=t[a];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ni(e){return null!=(e=e.childContextTypes)}function Ci(){wi(Ei),wi(ki)}function Oi(e,t,r){if(ki.current!==Si)throw Error(ee(168));xi(ki,t),xi(Ei,r)}function Ii(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var a in n=n.getChildContext())if(!(a in t))throw Error(ee(108,je(e)||"Unknown",a));return Me({},r,n)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Si,Ti=ki.current,xi(ki,e),xi(Ei,Ei.current),!0}function Mi(e,t,r){var n=e.stateNode;if(!n)throw Error(ee(169));r?(e=Ii(e,t,Ti),n.__reactInternalMemoizedMergedChildContext=e,wi(Ei),wi(ki),xi(ki,e)):wi(Ei),xi(Ei,r)}var Ai=null,zi=!1,Di=!1;function Li(e){null===Ai?Ai=[e]:Ai.push(e)}function Pi(){if(!Di&&null!==Ai){Di=!0;var e=0,t=fr;try{var r=Ai;for(fr=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Ai=null,zi=!1}catch(a){throw null!==Ai&&(Ai=Ai.slice(e+1)),Ht(Yt,Pi),a}finally{fr=t,Di=!1}}return null}var ji=[],Bi=0,qi=null,Ui=0,Hi=[],Fi=0,Vi=null,Wi=1,$i="";function Gi(e,t){ji[Bi++]=Ui,ji[Bi++]=qi,qi=e,Ui=t}function Yi(e,t,r){Hi[Fi++]=Wi,Hi[Fi++]=$i,Hi[Fi++]=Vi,Vi=e;var n=Wi;e=$i;var a=32-tr(n)-1;n&=~(1<<a),r+=1;var i=32-tr(t)+a;if(30<i){var o=a-a%5;i=(n&(1<<o)-1).toString(32),n>>=o,a-=o,Wi=1<<32-tr(t)+a|r<<a|n,$i=i+e}else Wi=1<<i|r<<a|n,$i=e}function Qi(e){null!==e.return&&(Gi(e,1),Yi(e,1,0))}function Ki(e){for(;e===qi;)qi=ji[--Bi],ji[Bi]=null,Ui=ji[--Bi],ji[Bi]=null;for(;e===Vi;)Vi=Hi[--Fi],Hi[Fi]=null,$i=Hi[--Fi],Hi[Fi]=null,Wi=Hi[--Fi],Hi[Fi]=null}var Xi=null,Zi=null,Ji=!1,eo=null;function to(e,t){var r=Nc(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function ro(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Xi=e,Zi=ai(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Xi=e,Zi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Vi?{id:Wi,overflow:$i}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Nc(18,null,null,0)).stateNode=t,r.return=e,e.child=r,Xi=e,Zi=null,!0);default:return!1}}function no(e){return!(!(1&e.mode)||128&e.flags)}function ao(e){if(Ji){var t=Zi;if(t){var r=t;if(!ro(e,t)){if(no(e))throw Error(ee(418));t=ai(r.nextSibling);var n=Xi;t&&ro(e,t)?to(n,r):(e.flags=-4097&e.flags|2,Ji=!1,Xi=e)}}else{if(no(e))throw Error(ee(418));e.flags=-4097&e.flags|2,Ji=!1,Xi=e}}}function io(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Xi=e}function oo(e){if(e!==Xi)return!1;if(!Ji)return io(e),Ji=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Xa(e.type,e.memoizedProps)),t&&(t=Zi)){if(no(e))throw so(),Error(ee(418));for(;t;)to(e,t),t=ai(t.nextSibling)}if(io(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(ee(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Zi=ai(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Zi=null}}else Zi=Xi?ai(e.stateNode.nextSibling):null;return!0}function so(){for(var e=Zi;e;)e=ai(e.nextSibling)}function lo(){Zi=Xi=null,Ji=!1}function uo(e){null===eo?eo=[e]:eo.push(e)}var co=me.ReactCurrentBatchConfig;function ho(e,t){if(e&&e.defaultProps){for(var r in t=Me({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var po=bi(null),fo=null,mo=null,go=null;function vo(){go=mo=fo=null}function yo(e){var t=po.current;wi(po),e._currentValue=t}function bo(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function wo(e,t){fo=e,go=mo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ml=!0),e.firstContext=null)}function xo(e){var t=e._currentValue;if(go!==e)if(e={context:e,memoizedValue:t,next:null},null===mo){if(null===fo)throw Error(ee(308));mo=e,fo.dependencies={lanes:0,firstContext:e}}else mo=mo.next=e;return t}var So=null;function ko(e){null===So?So=[e]:So.push(e)}function Eo(e,t,r,n){var a=t.interleaved;return null===a?(r.next=r,ko(t)):(r.next=a.next,a.next=r),t.interleaved=r,To(e,n)}function To(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var _o=!1;function No(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Eu){var a=n.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),n.pending=t,To(e,r)}return null===(a=n.interleaved)?(t.next=t,ko(n)):(t.next=a.next,a.next=t),n.interleaved=t,To(e,r)}function Ro(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,pr(e,r)}}function Mo(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var a=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?a=i=o:i=i.next=o,r=r.next}while(null!==r);null===i?a=i=t:i=i.next=t}else a=i=t;return r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ao(e,t,r,n){var a=e.updateQueue;_o=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?i=u:o.next=u,o=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=a.baseState;for(o=0,c=u=l=null,s=i;;){var h=s.lane,p=s.eventTime;if((n&h)===h){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(h=t,p=r,m.tag){case 1:if("function"==typeof(f=m.payload)){d=f.call(p,d,h);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(h="function"==typeof(f=m.payload)?f.call(p,d,h):f))break e;d=Me({},d,h);break e;case 2:_o=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=a.effects)?a.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,o|=h;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(h=s).next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}if(null===c&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===i&&(a.shared.lanes=0);Mu|=o,e.lanes=o,e.memoizedState=d}}function zo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(null!==a){if(n.callback=null,n=r,"function"!=typeof a)throw Error(ee(191,a));a.call(n)}}}var Do=(new Z.Component).refs;function Lo(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:Me({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Po={isMounted:function(e){return!!(e=e._reactInternals)&&Pt(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ku(),a=Xu(e),i=Oo(n,a);i.payload=t,null!=r&&(i.callback=r),null!==(t=Io(e,i,a))&&(Zu(t,e,a,n),Ro(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ku(),a=Xu(e),i=Oo(n,a);i.tag=1,i.payload=t,null!=r&&(i.callback=r),null!==(t=Io(e,i,a))&&(Zu(t,e,a,n),Ro(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ku(),n=Xu(e),a=Oo(r,n);a.tag=2,null!=t&&(a.callback=t),null!==(t=Io(e,a,n))&&(Zu(t,e,n,r),Ro(t,e,n))}};function jo(e,t,r,n,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!na(r,n)||!na(a,i))}function Bo(e,t,r){var n=!1,a=Si,i=t.contextType;return"object"==typeof i&&null!==i?i=xo(i):(a=Ni(t)?Ti:ki.current,i=(n=null!=(n=t.contextTypes))?_i(e,a):Si),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Po,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function qo(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Po.enqueueReplaceState(t,t.state,null)}function Uo(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=Do,No(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=xo(i):(i=Ni(t)?Ti:ki.current,a.context=_i(e,i)),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Lo(e,t,i,r),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Po.enqueueReplaceState(a,a.state,null),Ao(e,r,a,n),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function Ho(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(ee(309));var n=r.stateNode}if(!n)throw Error(ee(147,e));var a=n,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=a.refs;t===Do&&(t=a.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(ee(284));if(!r._owner)throw Error(ee(290,e))}return e}function Fo(e,t){throw e=Object.prototype.toString.call(t),Error(ee(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Vo(e){return(0,e._init)(e._payload)}function Wo(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Oc(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Ac(r,e.mode,n)).return=e,t):((t=a(t,r)).return=e,t)}function l(e,t,r,n){var i=r.type;return i===ye?c(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Ne&&Vo(i)===t.type)?((n=a(t,r.props)).ref=Ho(e,t,r),n.return=e,n):((n=Ic(r.type,r.key,r.props,null,e.mode,n)).ref=Ho(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=zc(r,e.mode,n)).return=e,t):((t=a(t,r.children||[])).return=e,t)}function c(e,t,r,n,i){return null===t||7!==t.tag?((t=Rc(r,e.mode,n,i)).return=e,t):((t=a(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ac(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ge:return(r=Ic(t.type,t.key,t.props,null,e.mode,r)).ref=Ho(e,null,t),r.return=e,r;case ve:return(t=zc(t,e.mode,r)).return=e,t;case Ne:return d(e,(0,t._init)(t._payload),r)}if(Ke(t)||Ie(t))return(t=Rc(t,e.mode,r,null)).return=e,t;Fo(e,t)}return null}function h(e,t,r,n){var a=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==a?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ge:return r.key===a?l(e,t,r,n):null;case ve:return r.key===a?u(e,t,r,n):null;case Ne:return h(e,t,(a=r._init)(r._payload),n)}if(Ke(r)||Ie(r))return null!==a?null:c(e,t,r,n,null);Fo(e,r)}return null}function p(e,t,r,n,a){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,a);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ge:return l(t,e=e.get(null===n.key?r:n.key)||null,n,a);case ve:return u(t,e=e.get(null===n.key?r:n.key)||null,n,a);case Ne:return p(e,t,r,(0,n._init)(n._payload),a)}if(Ke(n)||Ie(n))return c(t,e=e.get(r)||null,n,a,null);Fo(t,n)}return null}return function s(l,u,c,f){if("object"==typeof c&&null!==c&&c.type===ye&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case ge:e:{for(var m=c.key,g=u;null!==g;){if(g.key===m){if((m=c.type)===ye){if(7===g.tag){r(l,g.sibling),(u=a(g,c.props.children)).return=l,l=u;break e}}else if(g.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===Ne&&Vo(m)===g.type){r(l,g.sibling),(u=a(g,c.props)).ref=Ho(l,g,c),u.return=l,l=u;break e}r(l,g);break}t(l,g),g=g.sibling}c.type===ye?((u=Rc(c.props.children,l.mode,f,c.key)).return=l,l=u):((f=Ic(c.type,c.key,c.props,null,l.mode,f)).ref=Ho(l,u,c),f.return=l,l=f)}return o(l);case ve:e:{for(g=c.key;null!==u;){if(u.key===g){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){r(l,u.sibling),(u=a(u,c.children||[])).return=l,l=u;break e}r(l,u);break}t(l,u),u=u.sibling}(u=zc(c,l.mode,f)).return=l,l=u}return o(l);case Ne:return s(l,u,(g=c._init)(c._payload),f)}if(Ke(c))return function(a,o,s,l){for(var u=null,c=null,f=o,m=o=0,g=null;null!==f&&m<s.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=h(a,f,s[m],l);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(a,f),o=i(v,o,m),null===c?u=v:c.sibling=v,c=v,f=g}if(m===s.length)return r(a,f),Ji&&Gi(a,m),u;if(null===f){for(;m<s.length;m++)null!==(f=d(a,s[m],l))&&(o=i(f,o,m),null===c?u=f:c.sibling=f,c=f);return Ji&&Gi(a,m),u}for(f=n(a,f);m<s.length;m++)null!==(g=p(f,a,m,s[m],l))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),o=i(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(a,e)}),Ji&&Gi(a,m),u}(l,u,c,f);if(Ie(c))return function(a,o,s,l){var u=Ie(s);if("function"!=typeof u)throw Error(ee(150));if(null==(s=u.call(s)))throw Error(ee(151));for(var c=u=null,f=o,m=o=0,g=null,v=s.next();null!==f&&!v.done;m++,v=s.next()){f.index>m?(g=f,f=null):g=f.sibling;var y=h(a,f,v.value,l);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(a,f),o=i(y,o,m),null===c?u=y:c.sibling=y,c=y,f=g}if(v.done)return r(a,f),Ji&&Gi(a,m),u;if(null===f){for(;!v.done;m++,v=s.next())null!==(v=d(a,v.value,l))&&(o=i(v,o,m),null===c?u=v:c.sibling=v,c=v);return Ji&&Gi(a,m),u}for(f=n(a,f);!v.done;m++,v=s.next())null!==(v=p(f,a,m,v.value,l))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=i(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return t(a,e)}),Ji&&Gi(a,m),u}(l,u,c,f);Fo(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==u&&6===u.tag?(r(l,u.sibling),(u=a(u,c)).return=l,l=u):(r(l,u),(u=Ac(c,l.mode,f)).return=l,l=u),o(l)):r(l,u)}}var $o=Wo(!0),Go=Wo(!1),Yo={},Qo=bi(Yo),Ko=bi(Yo),Xo=bi(Yo);function Zo(e){if(e===Yo)throw Error(ee(174));return e}function Jo(e,t){switch(xi(Xo,t),xi(Ko,e),xi(Qo,Yo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nt(null,"");break;default:t=nt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}wi(Qo),xi(Qo,t)}function es(){wi(Qo),wi(Ko),wi(Xo)}function ts(e){Zo(Xo.current);var t=Zo(Qo.current),r=nt(t,e.type);t!==r&&(xi(Ko,e),xi(Qo,r))}function rs(e){Ko.current===e&&(wi(Qo),wi(Ko))}var ns=bi(0);function as(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var is=[];function os(){for(var e=0;e<is.length;e++)is[e]._workInProgressVersionPrimary=null;is.length=0}var ss=me.ReactCurrentDispatcher,ls=me.ReactCurrentBatchConfig,us=0,cs=null,ds=null,hs=null,ps=!1,fs=!1,ms=0,gs=0;function vs(){throw Error(ee(321))}function ys(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ra(e[r],t[r]))return!1;return!0}function bs(e,t,r,n,a,i){if(us=i,cs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ss.current=null===e||null===e.memoizedState?rl:nl,e=r(n,a),fs){i=0;do{if(fs=!1,ms=0,25<=i)throw Error(ee(301));i+=1,hs=ds=null,t.updateQueue=null,ss.current=al,e=r(n,a)}while(fs)}if(ss.current=tl,t=null!==ds&&null!==ds.next,us=0,hs=ds=cs=null,ps=!1,t)throw Error(ee(300));return e}function ws(){var e=0!==ms;return ms=0,e}function xs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===hs?cs.memoizedState=hs=e:hs=hs.next=e,hs}function Ss(){if(null===ds){var e=cs.alternate;e=null!==e?e.memoizedState:null}else e=ds.next;var t=null===hs?cs.memoizedState:hs.next;if(null!==t)hs=t,ds=e;else{if(null===e)throw Error(ee(310));e={memoizedState:(ds=e).memoizedState,baseState:ds.baseState,baseQueue:ds.baseQueue,queue:ds.queue,next:null},null===hs?cs.memoizedState=hs=e:hs=hs.next=e}return hs}function ks(e,t){return"function"==typeof t?t(e):t}function Es(e){var t=Ss(),r=t.queue;if(null===r)throw Error(ee(311));r.lastRenderedReducer=e;var n=ds,a=n.baseQueue,i=r.pending;if(null!==i){if(null!==a){var o=a.next;a.next=i.next,i.next=o}n.baseQueue=a=i,r.pending=null}if(null!==a){i=a.next,n=n.baseState;var s=o=null,l=null,u=i;do{var c=u.lane;if((us&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=n):l=l.next=d,cs.lanes|=c,Mu|=c}u=u.next}while(null!==u&&u!==i);null===l?o=n:l.next=s,ra(n,t.memoizedState)||(ml=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){a=e;do{i=a.lane,cs.lanes|=i,Mu|=i,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ts(e){var t=Ss(),r=t.queue;if(null===r)throw Error(ee(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var o=a=a.next;do{i=e(i,o.action),o=o.next}while(o!==a);ra(i,t.memoizedState)||(ml=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function _s(){}function Ns(e,t){var r=cs,n=Ss(),a=t(),i=!ra(n.memoizedState,a);if(i&&(n.memoizedState=a,ml=!0),n=n.queue,Bs(Is.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||null!==hs&&1&hs.memoizedState.tag){if(r.flags|=2048,zs(9,Os.bind(null,r,n,a,t),void 0,null),null===Tu)throw Error(ee(349));30&us||Cs(r,t,a)}return a}function Cs(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=cs.updateQueue)?(t={lastEffect:null,stores:null},cs.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Os(e,t,r,n){t.value=r,t.getSnapshot=n,Rs(t)&&Ms(e)}function Is(e,t,r){return r(function(){Rs(t)&&Ms(e)})}function Rs(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ra(e,r)}catch(n){return!0}}function Ms(e){var t=To(e,1);null!==t&&Zu(t,e,1,-1)}function As(e){var t=xs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:e},t.queue=e,e=e.dispatch=Xs.bind(null,cs,e),[t.memoizedState,e]}function zs(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=cs.updateQueue)?(t={lastEffect:null,stores:null},cs.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Ds(){return Ss().memoizedState}function Ls(e,t,r,n){var a=xs();cs.flags|=e,a.memoizedState=zs(1|t,r,void 0,void 0===n?null:n)}function Ps(e,t,r,n){var a=Ss();n=void 0===n?null:n;var i=void 0;if(null!==ds){var o=ds.memoizedState;if(i=o.destroy,null!==n&&ys(n,o.deps))return void(a.memoizedState=zs(t,r,i,n))}cs.flags|=e,a.memoizedState=zs(1|t,r,i,n)}function js(e,t){return Ls(8390656,8,e,t)}function Bs(e,t){return Ps(2048,8,e,t)}function qs(e,t){return Ps(4,2,e,t)}function Us(e,t){return Ps(4,4,e,t)}function Hs(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fs(e,t,r){return r=null!=r?r.concat([e]):null,Ps(4,4,Hs.bind(null,t,e),r)}function Vs(){}function Ws(e,t){var r=Ss();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ys(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function $s(e,t){var r=Ss();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ys(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Gs(e,t,r){return 21&us?(ra(r,t)||(r=cr(),cs.lanes|=r,Mu|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ml=!0),e.memoizedState=r)}function Ys(e,t){var r=fr;fr=0!==r&&4>r?r:4,e(!0);var n=ls.transition;ls.transition={};try{e(!1),t()}finally{fr=r,ls.transition=n}}function Qs(){return Ss().memoizedState}function Ks(e,t,r){var n=Xu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Zs(e))Js(t,r);else if(null!==(r=Eo(e,t,r,n))){Zu(r,e,n,Ku()),el(r,t,n)}}function Xs(e,t,r){var n=Xu(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Zs(e))Js(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=i(o,r);if(a.hasEagerState=!0,a.eagerState=s,ra(s,o)){var l=t.interleaved;return null===l?(a.next=a,ko(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(u){}null!==(r=Eo(e,t,a,n))&&(Zu(r,e,n,a=Ku()),el(r,t,n))}}function Zs(e){var t=e.alternate;return e===cs||null!==t&&t===cs}function Js(e,t){fs=ps=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function el(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,pr(e,r)}}var tl={readContext:xo,useCallback:vs,useContext:vs,useEffect:vs,useImperativeHandle:vs,useInsertionEffect:vs,useLayoutEffect:vs,useMemo:vs,useReducer:vs,useRef:vs,useState:vs,useDebugValue:vs,useDeferredValue:vs,useTransition:vs,useMutableSource:vs,useSyncExternalStore:vs,useId:vs,unstable_isNewReconciler:!1},rl={readContext:xo,useCallback:function(e,t){return xs().memoizedState=[e,void 0===t?null:t],e},useContext:xo,useEffect:js,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Ls(4194308,4,Hs.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ls(4,2,e,t)},useMemo:function(e,t){var r=xs();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=xs();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ks.bind(null,cs,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},xs().memoizedState=e},useState:As,useDebugValue:Vs,useDeferredValue:function(e){return xs().memoizedState=e},useTransition:function(){var e=As(!1),t=e[0];return e=Ys.bind(null,e[1]),xs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=cs,a=xs();if(Ji){if(void 0===r)throw Error(ee(407));r=r()}else{if(r=t(),null===Tu)throw Error(ee(349));30&us||Cs(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,js(Is.bind(null,n,i,e),[e]),n.flags|=2048,zs(9,Os.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=xs(),t=Tu.identifierPrefix;if(Ji){var r=$i;t=":"+t+"R"+(r=(Wi&~(1<<32-tr(Wi)-1)).toString(32)+r),0<(r=ms++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=gs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},nl={readContext:xo,useCallback:Ws,useContext:xo,useEffect:Bs,useImperativeHandle:Fs,useInsertionEffect:qs,useLayoutEffect:Us,useMemo:$s,useReducer:Es,useRef:Ds,useState:function(){return Es(ks)},useDebugValue:Vs,useDeferredValue:function(e){return Gs(Ss(),ds.memoizedState,e)},useTransition:function(){return[Es(ks)[0],Ss().memoizedState]},useMutableSource:_s,useSyncExternalStore:Ns,useId:Qs,unstable_isNewReconciler:!1},al={readContext:xo,useCallback:Ws,useContext:xo,useEffect:Bs,useImperativeHandle:Fs,useInsertionEffect:qs,useLayoutEffect:Us,useMemo:$s,useReducer:Ts,useRef:Ds,useState:function(){return Ts(ks)},useDebugValue:Vs,useDeferredValue:function(e){var t=Ss();return null===ds?t.memoizedState=e:Gs(t,ds.memoizedState,e)},useTransition:function(){return[Ts(ks)[0],Ss().memoizedState]},useMutableSource:_s,useSyncExternalStore:Ns,useId:Qs,unstable_isNewReconciler:!1};function il(e,t){try{var r="",n=t;do{r+=Le(n),n=n.return}while(n);var a=r}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a,digest:null}}function ol(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function sl(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var ll="function"==typeof WeakMap?WeakMap:Map;function ul(e,t,r){(r=Oo(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){qu||(qu=!0,Uu=n),sl(0,t)},r}function cl(e,t,r){(r=Oo(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){sl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){sl(0,t),"function"!=typeof n&&(null===Hu?Hu=new Set([this]):Hu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function dl(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new ll;var a=new Set;n.set(t,a)}else void 0===(a=n.get(t))&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=xc.bind(null,e,t,r),t.then(e,e))}function hl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function pl(e,t,r,n,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Oo(-1,1)).tag=2,Io(r,t,1))),r.lanes|=1),e)}var fl=me.ReactCurrentOwner,ml=!1;function gl(e,t,r,n){t.child=null===e?Go(t,null,r,n):$o(t,e.child,r,n)}function vl(e,t,r,n,a){r=r.render;var i=t.ref;return wo(t,a),n=bs(e,t,r,n,i,a),r=ws(),null===e||ml?(Ji&&r&&Qi(t),t.flags|=1,gl(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ql(e,t,a))}function yl(e,t,r,n,a){if(null===e){var i=r.type;return"function"!=typeof i||Cc(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Ic(r.type,null,n,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,bl(e,t,i,n,a))}if(i=e.child,0===(e.lanes&a)){var o=i.memoizedProps;if((r=null!==(r=r.compare)?r:na)(o,n)&&e.ref===t.ref)return ql(e,t,a)}return t.flags|=1,(e=Oc(i,n)).ref=t.ref,e.return=t,t.child=e}function bl(e,t,r,n,a){if(null!==e){var i=e.memoizedProps;if(na(i,n)&&e.ref===t.ref){if(ml=!1,t.pendingProps=n=i,0===(e.lanes&a))return t.lanes=e.lanes,ql(e,t,a);131072&e.flags&&(ml=!0)}}return Sl(e,t,r,n,a)}function wl(e,t,r){var n=t.pendingProps,a=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xi(Ou,Cu),Cu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==i?i.baseLanes:r,xi(Ou,Cu),Cu|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xi(Ou,Cu),Cu|=r;else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,xi(Ou,Cu),Cu|=n;return gl(e,t,a,r),t.child}function xl(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Sl(e,t,r,n,a){var i=Ni(r)?Ti:ki.current;return i=_i(t,i),wo(t,a),r=bs(e,t,r,n,i,a),n=ws(),null===e||ml?(Ji&&n&&Qi(t),t.flags|=1,gl(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ql(e,t,a))}function kl(e,t,r,n,a){if(Ni(r)){var i=!0;Ri(t)}else i=!1;if(wo(t,a),null===t.stateNode)Bl(e,t),Bo(t,r,n),Uo(t,r,n,a),n=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;"object"==typeof u&&null!==u?u=xo(u):u=_i(t,u=Ni(r)?Ti:ki.current);var c=r.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==n||l!==u)&&qo(t,o,n,u),_o=!1;var h=t.memoizedState;o.state=h,Ao(t,n,o,a),l=t.memoizedState,s!==n||h!==l||Ei.current||_o?("function"==typeof c&&(Lo(t,r,c,n),l=t.memoizedState),(s=_o||jo(t,r,s,n,h,l,u))?(d||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Co(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ho(t.type,s),o.props=u,d=t.pendingProps,h=o.context,"object"==typeof(l=r.contextType)&&null!==l?l=xo(l):l=_i(t,l=Ni(r)?Ti:ki.current);var p=r.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||h!==l)&&qo(t,o,n,l),_o=!1,h=t.memoizedState,o.state=h,Ao(t,n,o,a);var f=t.memoizedState;s!==d||h!==f||Ei.current||_o?("function"==typeof p&&(Lo(t,r,p,n),f=t.memoizedState),(u=_o||jo(t,r,u,n,h,f,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(n,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),o.props=n,o.state=f,o.context=l,n=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return El(e,t,r,n,i,a)}function El(e,t,r,n,a,i){xl(e,t);var o=!!(128&t.flags);if(!n&&!o)return a&&Mi(t,r,!1),ql(e,t,i);n=t.stateNode,fl.current=t;var s=o&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&o?(t.child=$o(t,e.child,null,i),t.child=$o(t,null,s,i)):gl(e,t,s,i),t.memoizedState=n.state,a&&Mi(t,r,!0),t.child}function Tl(e){var t=e.stateNode;t.pendingContext?Oi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Oi(0,t.context,!1),Jo(e,t.containerInfo)}function _l(e,t,r,n,a){return lo(),uo(a),t.flags|=256,gl(e,t,r,n),t.child}var Nl,Cl,Ol,Il,Rl={dehydrated:null,treeContext:null,retryLane:0};function Ml(e){return{baseLanes:e,cachePool:null,transitions:null}}function Al(e,t,r){var n,a=t.pendingProps,i=ns.current,o=!1,s=!!(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&!!(2&i)),n?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),xi(ns,1&i),null===e)return ao(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=a.children,e=a.fallback,o?(a=t.mode,o=t.child,s={mode:"hidden",children:s},1&a||null===o?o=Mc(s,a,0,null):(o.childLanes=0,o.pendingProps=s),e=Rc(e,a,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ml(r),t.memoizedState=Rl,e):zl(t,s));if(null!==(i=e.memoizedState)&&null!==(n=i.dehydrated))return function(e,t,r,n,a,i,o){if(r)return 256&t.flags?(t.flags&=-257,Dl(e,t,o,n=ol(Error(ee(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=n.fallback,a=t.mode,n=Mc({mode:"visible",children:n.children},a,0,null),(i=Rc(i,a,o,null)).flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,1&t.mode&&$o(t,e.child,null,o),t.child.memoizedState=Ml(o),t.memoizedState=Rl,i);if(!(1&t.mode))return Dl(e,t,o,null);if("$!"===a.data){if(n=a.nextSibling&&a.nextSibling.dataset)var s=n.dgst;return n=s,Dl(e,t,o,n=ol(i=Error(ee(419)),n,void 0))}if(s=0!==(o&e.childLanes),ml||s){if(null!==(n=Tu)){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(n.suspendedLanes|o))?0:a)&&a!==i.retryLane&&(i.retryLane=a,To(e,a),Zu(n,e,a,-1))}return dc(),Dl(e,t,o,n=ol(Error(ee(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=kc.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,Zi=ai(a.nextSibling),Xi=t,Ji=!0,eo=null,null!==e&&(Hi[Fi++]=Wi,Hi[Fi++]=$i,Hi[Fi++]=Vi,Wi=e.id,$i=e.overflow,Vi=t),t=zl(t,n.children),t.flags|=4096,t)}(e,t,s,a,n,i,r);if(o){o=a.fallback,s=t.mode,n=(i=e.child).sibling;var l={mode:"hidden",children:a.children};return 1&s||t.child===i?(a=Oc(i,l)).subtreeFlags=14680064&i.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=l,t.deletions=null),null!==n?o=Oc(n,o):(o=Rc(o,s,r,null)).flags|=2,o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,s=null===(s=e.child.memoizedState)?Ml(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=Rl,a}return e=(o=e.child).sibling,a=Oc(o,{mode:"visible",children:a.children}),!(1&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function zl(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Dl(e,t,r,n){return null!==n&&uo(n),$o(t,e.child,null,r),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ll(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),bo(e.return,t,r)}function Pl(e,t,r,n,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=a)}function jl(e,t,r){var n=t.pendingProps,a=n.revealOrder,i=n.tail;if(gl(e,t,n.children,r),2&(n=ns.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ll(e,r,t);else if(19===e.tag)Ll(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(xi(ns,n),1&t.mode)switch(a){case"forwards":for(r=t.child,a=null;null!==r;)null!==(e=r.alternate)&&null===as(e)&&(a=r),r=r.sibling;null===(r=a)?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),Pl(t,!1,a,r,i);break;case"backwards":for(r=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===as(e)){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}Pl(t,!0,r,null,i);break;case"together":Pl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ql(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Mu|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ee(153));if(null!==t.child){for(r=Oc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Oc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ul(e,t){if(!Ji)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;null!==a;)r|=a.lanes|a.childLanes,n|=14680064&a.subtreeFlags,n|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Fl(e,t,r){var n=t.pendingProps;switch(Ki(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hl(t),null;case 1:case 17:return Ni(t.type)&&Ci(),Hl(t),null;case 3:return n=t.stateNode,es(),wi(Ei),wi(ki),os(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(oo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==eo&&(rc(eo),eo=null))),Cl(e,t),Hl(t),null;case 5:rs(t);var a=Zo(Xo.current);if(r=t.type,null!==e&&null!=t.stateNode)Ol(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(ee(166));return Hl(t),null}if(e=Zo(Qo.current),oo(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[si]=t,n[li]=i,e=!!(1&t.mode),r){case"dialog":za("cancel",n),za("close",n);break;case"iframe":case"object":case"embed":za("load",n);break;case"video":case"audio":for(a=0;a<Ia.length;a++)za(Ia[a],n);break;case"source":za("error",n);break;case"img":case"image":case"link":za("error",n),za("load",n);break;case"details":za("toggle",n);break;case"input":We(n,i),za("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},za("invalid",n);break;case"textarea":Je(n,i),za("invalid",n)}for(var o in pt(r,i),a=null,i)if(i.hasOwnProperty(o)){var s=i[o];"children"===o?"string"==typeof s?n.textContent!==s&&(!0!==i.suppressHydrationWarning&&Ga(n.textContent,s,e),a=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&Ga(n.textContent,s,e),a=["children",""+s]):re.hasOwnProperty(o)&&null!=s&&"onScroll"===o&&za("scroll",n)}switch(r){case"input":Ue(n),Ye(n,i,!0);break;case"textarea":Ue(n),tt(n);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(n.onclick=Ya)}n=a,t.updateQueue=n,null!==n&&(t.flags|=4)}else{o=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=rt(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),"select"===r&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[si]=t,e[li]=n,Nl(e,t,!1,!1),t.stateNode=e;e:{switch(o=ft(r,n),r){case"dialog":za("cancel",e),za("close",e),a=n;break;case"iframe":case"object":case"embed":za("load",e),a=n;break;case"video":case"audio":for(a=0;a<Ia.length;a++)za(Ia[a],e);a=n;break;case"source":za("error",e),a=n;break;case"img":case"image":case"link":za("error",e),za("load",e),a=n;break;case"details":za("toggle",e),a=n;break;case"input":We(e,n),a=Ve(e,n),za("invalid",e);break;case"option":default:a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=Me({},n,{value:void 0}),za("invalid",e);break;case"textarea":Je(e,n),a=Ze(e,n),za("invalid",e)}for(i in pt(r,a),s=a)if(s.hasOwnProperty(i)){var l=s[i];"style"===i?dt(e,l):"dangerouslySetInnerHTML"===i?null!=(l=l?l.__html:void 0)&&ot(e,l):"children"===i?"string"==typeof l?("textarea"!==r||""!==l)&&st(e,l):"number"==typeof l&&st(e,""+l):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(re.hasOwnProperty(i)?null!=l&&"onScroll"===i&&za("scroll",e):null!=l&&fe(e,i,l,o))}switch(r){case"input":Ue(e),Ye(e,n,!1);break;case"textarea":Ue(e),tt(e);break;case"option":null!=n.value&&e.setAttribute("value",""+Be(n.value));break;case"select":e.multiple=!!n.multiple,null!=(i=n.value)?Xe(e,!!n.multiple,i,!1):null!=n.defaultValue&&Xe(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Ya)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Hl(t),null;case 6:if(e&&null!=t.stateNode)Il(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(ee(166));if(r=Zo(Xo.current),Zo(Qo.current),oo(t)){if(n=t.stateNode,r=t.memoizedProps,n[si]=t,(i=n.nodeValue!==r)&&null!==(e=Xi))switch(e.tag){case 3:Ga(n.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ga(n.nodeValue,r,!!(1&e.mode))}i&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[si]=t,t.stateNode=n}return Hl(t),null;case 13:if(wi(ns),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Ji&&null!==Zi&&1&t.mode&&!(128&t.flags))so(),lo(),t.flags|=98560,i=!1;else if(i=oo(t),null!==n&&null!==n.dehydrated){if(null===e){if(!i)throw Error(ee(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(ee(317));i[si]=t}else lo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Hl(t),i=!1}else null!==eo&&(rc(eo),eo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ns.current?0===Iu&&(Iu=3):dc())),null!==t.updateQueue&&(t.flags|=4),Hl(t),null);case 4:return es(),Cl(e,t),null===e&&Pa(t.stateNode.containerInfo),Hl(t),null;case 10:return yo(t.type._context),Hl(t),null;case 19:if(wi(ns),null===(i=t.memoizedState))return Hl(t),null;if(n=!!(128&t.flags),null===(o=i.rendering))if(n)Ul(i,!1);else{if(0!==Iu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(o=as(e))){for(t.flags|=128,Ul(i,!1),null!==(n=o.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(i=r).flags&=14680066,null===(o=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return xi(ns,1&ns.current|2),t.child}e=e.sibling}null!==i.tail&&$t()>ju&&(t.flags|=128,n=!0,Ul(i,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=as(o))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ul(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!Ji)return Hl(t),null}else 2*$t()-i.renderingStartTime>ju&&1073741824!==r&&(t.flags|=128,n=!0,Ul(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(r=i.last)?r.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$t(),t.sibling=null,r=ns.current,xi(ns,n?1&r|2:1&r),t):(Hl(t),null);case 22:case 23:return sc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&1&t.mode?!!(1073741824&Cu)&&(Hl(t),6&t.subtreeFlags&&(t.flags|=8192)):Hl(t),null;case 24:case 25:return null}throw Error(ee(156,t.tag))}function Vl(e,t){switch(Ki(t),t.tag){case 1:return Ni(t.type)&&Ci(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return es(),wi(Ei),wi(ki),os(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return rs(t),null;case 13:if(wi(ns),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(ee(340));lo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return wi(ns),null;case 4:return es(),null;case 10:return yo(t.type._context),null;case 22:case 23:return sc(),null;default:return null}}Nl=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Cl=function(){},Ol=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,Zo(Qo.current);var i,o=null;switch(r){case"input":a=Ve(e,a),n=Ve(e,n),o=[];break;case"select":a=Me({},a,{value:void 0}),n=Me({},n,{value:void 0}),o=[];break;case"textarea":a=Ze(e,a),n=Ze(e,n),o=[];break;default:"function"!=typeof a.onClick&&"function"==typeof n.onClick&&(e.onclick=Ya)}for(u in pt(r,n),r=null,a)if(!n.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var s=a[u];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(re.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(s=null!=a?a[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(o||(o=[]),o.push(u,r)),r=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(o=o||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(o=o||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(re.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&za("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},Il=function(e,t,r,n){r!==n&&(t.flags|=4)};var Wl=!1,$l=!1,Gl="function"==typeof WeakSet?WeakSet:Set,Yl=null;function Ql(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(n){wc(e,t,n)}else r.current=null}function Kl(e,t,r){try{r()}catch(n){wc(e,t,n)}}var Xl=!1;function Zl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&Kl(t,r,i)}a=a.next}while(a!==n)}}function Jl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function eu(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function tu(e){var t=e.alternate;null!==t&&(e.alternate=null,tu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[si],delete t[li],delete t[ci],delete t[di],delete t[hi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ru(e){return 5===e.tag||3===e.tag||4===e.tag}function nu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ru(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function au(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ya));else if(4!==n&&null!==(e=e.child))for(au(e,t,r),e=e.sibling;null!==e;)au(e,t,r),e=e.sibling}function iu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(iu(e,t,r),e=e.sibling;null!==e;)iu(e,t,r),e=e.sibling}var ou=null,su=!1;function lu(e,t,r){for(r=r.child;null!==r;)uu(e,t,r),r=r.sibling}function uu(e,t,r){if(er&&"function"==typeof er.onCommitFiberUnmount)try{er.onCommitFiberUnmount(Jt,r)}catch(s){}switch(r.tag){case 5:$l||Ql(r,t);case 6:var n=ou,a=su;ou=null,lu(e,t,r),su=a,null!==(ou=n)&&(su?(e=ou,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):ou.removeChild(r.stateNode));break;case 18:null!==ou&&(su?(e=ou,r=r.stateNode,8===e.nodeType?ni(e.parentNode,r):1===e.nodeType&&ni(e,r),Pr(e)):ni(ou,r.stateNode));break;case 4:n=ou,a=su,ou=r.stateNode.containerInfo,su=!0,lu(e,t,r),ou=n,su=a;break;case 0:case 11:case 14:case 15:if(!$l&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){a=n=n.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(2&i||4&i)&&Kl(r,t,o),a=a.next}while(a!==n)}lu(e,t,r);break;case 1:if(!$l&&(Ql(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){wc(r,t,s)}lu(e,t,r);break;case 21:lu(e,t,r);break;case 22:1&r.mode?($l=(n=$l)||null!==r.memoizedState,lu(e,t,r),$l=n):lu(e,t,r);break;default:lu(e,t,r)}}function cu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Gl),t.forEach(function(t){var n=Ec.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))})}}function du(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var a=r[n];try{var i=e,o=t,s=o;e:for(;null!==s;){switch(s.tag){case 5:ou=s.stateNode,su=!1;break e;case 3:case 4:ou=s.stateNode.containerInfo,su=!0;break e}s=s.return}if(null===ou)throw Error(ee(160));uu(i,o,a),ou=null,su=!1;var l=a.alternate;null!==l&&(l.return=null),a.return=null}catch(u){wc(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hu(t,e),t=t.sibling}function hu(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(du(t,e),pu(e),4&n){try{Zl(3,e,e.return),Jl(3,e)}catch(m){wc(e,e.return,m)}try{Zl(5,e,e.return)}catch(m){wc(e,e.return,m)}}break;case 1:du(t,e),pu(e),512&n&&null!==r&&Ql(r,r.return);break;case 5:if(du(t,e),pu(e),512&n&&null!==r&&Ql(r,r.return),32&e.flags){var a=e.stateNode;try{st(a,"")}catch(m){wc(e,e.return,m)}}if(4&n&&null!=(a=e.stateNode)){var i=e.memoizedProps,o=null!==r?r.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===i.type&&null!=i.name&&$e(a,i),ft(s,o);var u=ft(s,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];"style"===c?dt(a,d):"dangerouslySetInnerHTML"===c?ot(a,d):"children"===c?st(a,d):fe(a,c,d,u)}switch(s){case"input":Ge(a,i);break;case"textarea":et(a,i);break;case"select":var h=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?Xe(a,!!i.multiple,p,!1):h!==!!i.multiple&&(null!=i.defaultValue?Xe(a,!!i.multiple,i.defaultValue,!0):Xe(a,!!i.multiple,i.multiple?[]:"",!1))}a[li]=i}catch(m){wc(e,e.return,m)}}break;case 6:if(du(t,e),pu(e),4&n){if(null===e.stateNode)throw Error(ee(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(m){wc(e,e.return,m)}}break;case 3:if(du(t,e),pu(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Pr(t.containerInfo)}catch(m){wc(e,e.return,m)}break;case 4:default:du(t,e),pu(e);break;case 13:du(t,e),pu(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(Pu=$t())),4&n&&cu(e);break;case 22:if(c=null!==r&&null!==r.memoizedState,1&e.mode?($l=(u=$l)||c,du(t,e),$l=u):du(t,e),pu(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(Yl=e,c=e.child;null!==c;){for(d=Yl=c;null!==Yl;){switch(p=(h=Yl).child,h.tag){case 0:case 11:case 14:case 15:Zl(4,h,h.return);break;case 1:Ql(h,h.return);var f=h.stateNode;if("function"==typeof f.componentWillUnmount){n=h,r=h.return;try{t=n,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(m){wc(n,r,m)}}break;case 5:Ql(h,h.return);break;case 22:if(null!==h.memoizedState){vu(d);continue}}null!==p?(p.return=h,Yl=p):vu(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{a=d.stateNode,u?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=d.stateNode,o=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=ct("display",o))}catch(m){wc(e,e.return,m)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(m){wc(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:du(t,e),pu(e),4&n&&cu(e);case 21:}}function pu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ru(r)){var n=r;break e}r=r.return}throw Error(ee(160))}switch(n.tag){case 5:var a=n.stateNode;32&n.flags&&(st(a,""),n.flags&=-33),iu(e,nu(e),a);break;case 3:case 4:var i=n.stateNode.containerInfo;au(e,nu(e),i);break;default:throw Error(ee(161))}}catch(o){wc(e,e.return,o)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function fu(e,t,r){Yl=e,mu(e)}function mu(e,t,r){for(var n=!!(1&e.mode);null!==Yl;){var a=Yl,i=a.child;if(22===a.tag&&n){var o=null!==a.memoizedState||Wl;if(!o){var s=a.alternate,l=null!==s&&null!==s.memoizedState||$l;s=Wl;var u=$l;if(Wl=o,($l=l)&&!u)for(Yl=a;null!==Yl;)l=(o=Yl).child,22===o.tag&&null!==o.memoizedState?yu(a):null!==l?(l.return=o,Yl=l):yu(a);for(;null!==i;)Yl=i,mu(i),i=i.sibling;Yl=a,Wl=s,$l=u}gu(e)}else 8772&a.subtreeFlags&&null!==i?(i.return=a,Yl=i):gu(e)}}function gu(e){for(;null!==Yl;){var t=Yl;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:$l||Jl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!$l)if(null===r)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:ho(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&zo(t,i,n);break;case 3:var o=t.updateQueue;if(null!==o){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}zo(t,o,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Pr(d)}}}break;default:throw Error(ee(163))}$l||512&t.flags&&eu(t)}catch(h){wc(t,t.return,h)}}if(t===e){Yl=null;break}if(null!==(r=t.sibling)){r.return=t.return,Yl=r;break}Yl=t.return}}function vu(e){for(;null!==Yl;){var t=Yl;if(t===e){Yl=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Yl=r;break}Yl=t.return}}function yu(e){for(;null!==Yl;){var t=Yl;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Jl(4,t)}catch(l){wc(t,r,l)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var a=t.return;try{n.componentDidMount()}catch(l){wc(t,a,l)}}var i=t.return;try{eu(t)}catch(l){wc(t,i,l)}break;case 5:var o=t.return;try{eu(t)}catch(l){wc(t,o,l)}}}catch(l){wc(t,t.return,l)}if(t===e){Yl=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Yl=s;break}Yl=t.return}}var bu,wu=Math.ceil,xu=me.ReactCurrentDispatcher,Su=me.ReactCurrentOwner,ku=me.ReactCurrentBatchConfig,Eu=0,Tu=null,_u=null,Nu=0,Cu=0,Ou=bi(0),Iu=0,Ru=null,Mu=0,Au=0,zu=0,Du=null,Lu=null,Pu=0,ju=1/0,Bu=null,qu=!1,Uu=null,Hu=null,Fu=!1,Vu=null,Wu=0,$u=0,Gu=null,Yu=-1,Qu=0;function Ku(){return 6&Eu?$t():-1!==Yu?Yu:Yu=$t()}function Xu(e){return 1&e.mode?2&Eu&&0!==Nu?Nu&-Nu:null!==co.transition?(0===Qu&&(Qu=cr()),Qu):0!==(e=fr)?e:e=void 0===(e=window.event)?16:Wr(e.type):1}function Zu(e,t,r,n){if(50<$u)throw $u=0,Gu=null,Error(ee(185));hr(e,r,n),2&Eu&&e===Tu||(e===Tu&&(!(2&Eu)&&(Au|=r),4===Iu&&nc(e,Nu)),Ju(e,n),1===r&&0===Eu&&!(1&t.mode)&&(ju=$t()+500,zi&&Pi()))}function Ju(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-tr(i),s=1<<o,l=a[o];-1===l?0!==(s&r)&&0===(s&n)||(a[o]=lr(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var n=sr(e,e===Tu?Nu:0);if(0===n)null!==r&&Ft(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ft(r),1===t)0===e.tag?function(e){zi=!0,Li(e)}(ac.bind(null,e)):Li(ac.bind(null,e)),ti(function(){!(6&Eu)&&Pi()}),r=null;else{switch(mr(n)){case 1:r=Yt;break;case 4:r=Qt;break;case 16:default:r=Kt;break;case 536870912:r=Zt}r=Tc(r,ec.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ec(e,t){if(Yu=-1,Qu=0,6&Eu)throw Error(ee(327));var r=e.callbackNode;if(yc()&&e.callbackNode!==r)return null;var n=sr(e,e===Tu?Nu:0);if(0===n)return null;if(30&n||0!==(n&e.expiredLanes)||t)t=hc(e,n);else{t=n;var a=Eu;Eu|=2;var i=cc();for(Tu===e&&Nu===t||(Bu=null,ju=$t()+500,lc(e,t));;)try{fc();break}catch(s){uc(e,s)}vo(),xu.current=i,Eu=a,null!==_u?t=0:(Tu=null,Nu=0,t=Iu)}if(0!==t){if(2===t&&(0!==(a=ur(e))&&(n=a,t=tc(e,a))),1===t)throw r=Ru,lc(e,0),nc(e,n),Ju(e,$t()),r;if(6===t)nc(e,n);else{if(a=e.current.alternate,!(30&n||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var a=r[n],i=a.getSnapshot;a=a.value;try{if(!ra(i(),a))return!1}catch(o){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)||(t=hc(e,n),2===t&&(i=ur(e),0!==i&&(n=i,t=tc(e,i))),1!==t)))throw r=Ru,lc(e,0),nc(e,n),Ju(e,$t()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(ee(345));case 2:case 5:vc(e,Lu,Bu);break;case 3:if(nc(e,n),(130023424&n)===n&&10<(t=Pu+500-$t())){if(0!==sr(e,0))break;if(((a=e.suspendedLanes)&n)!==n){Ku(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Za(vc.bind(null,e,Lu,Bu),t);break}vc(e,Lu,Bu);break;case 4:if(nc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,a=-1;0<n;){var o=31-tr(n);i=1<<o,(o=t[o])>a&&(a=o),n&=~i}if(n=a,10<(n=(120>(n=$t()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*wu(n/1960))-n)){e.timeoutHandle=Za(vc.bind(null,e,Lu,Bu),n);break}vc(e,Lu,Bu);break;default:throw Error(ee(329))}}}return Ju(e,$t()),e.callbackNode===r?ec.bind(null,e):null}function tc(e,t){var r=Du;return e.current.memoizedState.isDehydrated&&(lc(e,t).flags|=256),2!==(e=hc(e,t))&&(t=Lu,Lu=r,null!==t&&rc(t)),e}function rc(e){null===Lu?Lu=e:Lu.push.apply(Lu,e)}function nc(e,t){for(t&=~zu,t&=~Au,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-tr(t),n=1<<r;e[r]=-1,t&=~n}}function ac(e){if(6&Eu)throw Error(ee(327));yc();var t=sr(e,0);if(!(1&t))return Ju(e,$t()),null;var r=hc(e,t);if(0!==e.tag&&2===r){var n=ur(e);0!==n&&(t=n,r=tc(e,n))}if(1===r)throw r=Ru,lc(e,0),nc(e,t),Ju(e,$t()),r;if(6===r)throw Error(ee(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vc(e,Lu,Bu),Ju(e,$t()),null}function ic(e,t){var r=Eu;Eu|=1;try{return e(t)}finally{0===(Eu=r)&&(ju=$t()+500,zi&&Pi())}}function oc(e){null!==Vu&&0===Vu.tag&&!(6&Eu)&&yc();var t=Eu;Eu|=1;var r=ku.transition,n=fr;try{if(ku.transition=null,fr=1,e)return e()}finally{fr=n,ku.transition=r,!(6&(Eu=t))&&Pi()}}function sc(){Cu=Ou.current,wi(Ou)}function lc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Ja(r)),null!==_u)for(r=_u.return;null!==r;){var n=r;switch(Ki(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ci();break;case 3:es(),wi(Ei),wi(ki),os();break;case 5:rs(n);break;case 4:es();break;case 13:case 19:wi(ns);break;case 10:yo(n.type._context);break;case 22:case 23:sc()}r=r.return}if(Tu=e,_u=e=Oc(e.current,null),Nu=Cu=t,Iu=0,Ru=null,zu=Au=Mu=0,Lu=Du=null,null!==So){for(t=0;t<So.length;t++)if(null!==(n=(r=So[t]).interleaved)){r.interleaved=null;var a=n.next,i=r.pending;if(null!==i){var o=i.next;i.next=a,n.next=o}r.pending=n}So=null}return e}function uc(e,t){for(;;){var r=_u;try{if(vo(),ss.current=tl,ps){for(var n=cs.memoizedState;null!==n;){var a=n.queue;null!==a&&(a.pending=null),n=n.next}ps=!1}if(us=0,hs=ds=cs=null,fs=!1,ms=0,Su.current=null,null===r||null===r.return){Iu=1,Ru=t,_u=null;break}e:{var i=e,o=r.return,s=r,l=t;if(t=Nu,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=hl(o);if(null!==p){p.flags&=-257,pl(p,o,s,0,t),1&p.mode&&dl(i,u,t),l=u;var f=(t=p).updateQueue;if(null===f){var m=new Set;m.add(l),t.updateQueue=m}else f.add(l);break e}if(!(1&t)){dl(i,u,t),dc();break e}l=Error(ee(426))}else if(Ji&&1&s.mode){var g=hl(o);if(null!==g){!(65536&g.flags)&&(g.flags|=256),pl(g,o,s,0,t),uo(il(l,s));break e}}i=l=il(l,s),4!==Iu&&(Iu=2),null===Du?Du=[i]:Du.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Mo(i,ul(0,l,t));break e;case 1:s=l;var v=i.type,y=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Hu&&Hu.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Mo(i,cl(i,s,t));break e}}i=i.return}while(null!==i)}gc(r)}catch(b){t=b,_u===r&&null!==r&&(_u=r=r.return);continue}break}}function cc(){var e=xu.current;return xu.current=tl,null===e?tl:e}function dc(){0!==Iu&&3!==Iu&&2!==Iu||(Iu=4),null===Tu||!(268435455&Mu)&&!(268435455&Au)||nc(Tu,Nu)}function hc(e,t){var r=Eu;Eu|=2;var n=cc();for(Tu===e&&Nu===t||(Bu=null,lc(e,t));;)try{pc();break}catch(a){uc(e,a)}if(vo(),Eu=r,xu.current=n,null!==_u)throw Error(ee(261));return Tu=null,Nu=0,Iu}function pc(){for(;null!==_u;)mc(_u)}function fc(){for(;null!==_u&&!Vt();)mc(_u)}function mc(e){var t=bu(e.alternate,e,Cu);e.memoizedProps=e.pendingProps,null===t?gc(e):_u=t,Su.current=null}function gc(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Vl(r,t)))return r.flags&=32767,void(_u=r);if(null===e)return Iu=6,void(_u=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Fl(r,t,Cu)))return void(_u=r);if(null!==(t=t.sibling))return void(_u=t);_u=t=e}while(null!==t);0===Iu&&(Iu=5)}function vc(e,t,r){var n=fr,a=ku.transition;try{ku.transition=null,fr=1,function(e,t,r,n){do{yc()}while(null!==Vu);if(6&Eu)throw Error(ee(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ee(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-tr(r),i=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~i}}(e,i),e===Tu&&(_u=Tu=null,Nu=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Fu||(Fu=!0,Tc(Kt,function(){return yc(),null})),i=!!(15990&r.flags),!!(15990&r.subtreeFlags)||i){i=ku.transition,ku.transition=null;var o=fr;fr=1;var s=Eu;Eu|=4,Su.current=null,function(e,t){if(Qa=Br,la(e=sa())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch(w){r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var p;d!==r||0!==a&&3!==d.nodeType||(s=o+a),d!==i||0!==n&&3!==d.nodeType||(l=o+n),3===d.nodeType&&(o+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===r&&++u===a&&(s=o),h===i&&++c===n&&(l=o),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ka={focusedElem:e,selectionRange:r},Br=!1,Yl=t;null!==Yl;)if(e=(t=Yl).child,1028&t.subtreeFlags&&null!==e)e.return=t,Yl=e;else for(;null!==Yl;){t=Yl;try{var f=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==f){var m=f.memoizedProps,g=f.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:ho(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(ee(163))}}catch(w){wc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Yl=e;break}Yl=t.return}f=Xl,Xl=!1}(e,r),hu(r,e),ua(Ka),Br=!!Qa,Ka=Qa=null,e.current=r,fu(r),Wt(),Eu=s,fr=o,ku.transition=i}else e.current=r;if(Fu&&(Fu=!1,Vu=e,Wu=a),i=e.pendingLanes,0===i&&(Hu=null),function(e){if(er&&"function"==typeof er.onCommitFiberRoot)try{er.onCommitFiberRoot(Jt,e,void 0,!(128&~e.current.flags))}catch(t){}}(r.stateNode),Ju(e,$t()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(qu)throw qu=!1,e=Uu,Uu=null,e;!!(1&Wu)&&0!==e.tag&&yc(),i=e.pendingLanes,1&i?e===Gu?$u++:($u=0,Gu=e):$u=0,Pi()}(e,t,r,n)}finally{ku.transition=a,fr=n}return null}function yc(){if(null!==Vu){var e=mr(Wu),t=ku.transition,r=fr;try{if(ku.transition=null,fr=16>e?16:e,null===Vu)var n=!1;else{if(e=Vu,Vu=null,Wu=0,6&Eu)throw Error(ee(331));var a=Eu;for(Eu|=4,Yl=e.current;null!==Yl;){var i=Yl,o=i.child;if(16&Yl.flags){var s=i.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(Yl=u;null!==Yl;){var c=Yl;switch(c.tag){case 0:case 11:case 15:Zl(8,c,i)}var d=c.child;if(null!==d)d.return=c,Yl=d;else for(;null!==Yl;){var h=(c=Yl).sibling,p=c.return;if(tu(c),c===u){Yl=null;break}if(null!==h){h.return=p,Yl=h;break}Yl=p}}}var f=i.alternate;if(null!==f){var m=f.child;if(null!==m){f.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Yl=i}}if(2064&i.subtreeFlags&&null!==o)o.return=i,Yl=o;else e:for(;null!==Yl;){if(2048&(i=Yl).flags)switch(i.tag){case 0:case 11:case 15:Zl(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Yl=v;break e}Yl=i.return}}var y=e.current;for(Yl=y;null!==Yl;){var b=(o=Yl).child;if(2064&o.subtreeFlags&&null!==b)b.return=o,Yl=b;else e:for(o=y;null!==Yl;){if(2048&(s=Yl).flags)try{switch(s.tag){case 0:case 11:case 15:Jl(9,s)}}catch(x){wc(s,s.return,x)}if(s===o){Yl=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Yl=w;break e}Yl=s.return}}if(Eu=a,Pi(),er&&"function"==typeof er.onPostCommitFiberRoot)try{er.onPostCommitFiberRoot(Jt,e)}catch(x){}n=!0}return n}finally{fr=r,ku.transition=t}}return!1}function bc(e,t,r){e=Io(e,t=ul(0,t=il(r,t),1),1),t=Ku(),null!==e&&(hr(e,1,t),Ju(e,t))}function wc(e,t,r){if(3===e.tag)bc(e,e,r);else for(;null!==t;){if(3===t.tag){bc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Hu||!Hu.has(n))){t=Io(t,e=cl(t,e=il(r,e),1),1),e=Ku(),null!==t&&(hr(t,1,e),Ju(t,e));break}}t=t.return}}function xc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=Ku(),e.pingedLanes|=e.suspendedLanes&r,Tu===e&&(Nu&r)===r&&(4===Iu||3===Iu&&(130023424&Nu)===Nu&&500>$t()-Pu?lc(e,0):zu|=r),Ju(e,t)}function Sc(e,t){0===t&&(1&e.mode?(t=ir,!(130023424&(ir<<=1))&&(ir=4194304)):t=1);var r=Ku();null!==(e=To(e,t))&&(hr(e,t,r),Ju(e,r))}function kc(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Sc(e,r)}function Ec(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ee(314))}null!==n&&n.delete(t),Sc(e,r)}function Tc(e,t){return Ht(e,t)}function _c(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nc(e,t,r,n){return new _c(e,t,r,n)}function Cc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oc(e,t){var r=e.alternate;return null===r?((r=Nc(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ic(e,t,r,n,a,i){var o=2;if(n=e,"function"==typeof e)Cc(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case ye:return Rc(r.children,a,i,t);case be:o=8,a|=8;break;case we:return(e=Nc(12,r,t,2|a)).elementType=we,e.lanes=i,e;case Ee:return(e=Nc(13,r,t,a)).elementType=Ee,e.lanes=i,e;case Te:return(e=Nc(19,r,t,a)).elementType=Te,e.lanes=i,e;case Ce:return Mc(r,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case xe:o=10;break e;case Se:o=9;break e;case ke:o=11;break e;case _e:o=14;break e;case Ne:o=16,n=null;break e}throw Error(ee(130,null==e?e:typeof e,""))}return(t=Nc(o,r,t,a)).elementType=e,t.type=n,t.lanes=i,t}function Rc(e,t,r,n){return(e=Nc(7,e,n,t)).lanes=r,e}function Mc(e,t,r,n){return(e=Nc(22,e,n,t)).elementType=Ce,e.lanes=r,e.stateNode={isHidden:!1},e}function Ac(e,t,r){return(e=Nc(6,e,null,t)).lanes=r,e}function zc(e,t,r){return(t=Nc(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dc(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dr(0),this.expirationTimes=dr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dr(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Lc(e,t,r,n,a,i,o,s,l){return e=new Dc(e,t,r,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},No(i),e}function Pc(e){if(!e)return Si;e:{if(Pt(e=e._reactInternals)!==e||1!==e.tag)throw Error(ee(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ni(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ee(171))}if(1===e.tag){var r=e.type;if(Ni(r))return Ii(e,r,t)}return t}function jc(e,t,r,n,a,i,o,s,l){return(e=Lc(r,n,!0,e,0,i,0,s,l)).context=Pc(null),r=e.current,(i=Oo(n=Ku(),a=Xu(r))).callback=null!=t?t:null,Io(r,i,a),e.current.lanes=a,hr(e,a,n),Ju(e,n),e}function Bc(e,t,r,n){var a=t.current,i=Ku(),o=Xu(a);return r=Pc(r),null===t.context?t.context=r:t.pendingContext=r,(t=Oo(i,o)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Io(a,t,o))&&(Zu(e,a,o,i),Ro(e,a,o)),o}function qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Hc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}bu=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ei.current)ml=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ml=!1,function(e,t,r){switch(t.tag){case 3:Tl(t),lo();break;case 5:ts(t);break;case 1:Ni(t.type)&&Ri(t);break;case 4:Jo(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;xi(po,n._currentValue),n._currentValue=a;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(xi(ns,1&ns.current),t.flags|=128,null):0!==(r&t.child.childLanes)?Al(e,t,r):(xi(ns,1&ns.current),null!==(e=ql(e,t,r))?e.sibling:null);xi(ns,1&ns.current);break;case 19:if(n=0!==(r&t.childLanes),128&e.flags){if(n)return jl(e,t,r);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),xi(ns,ns.current),n)break;return null;case 22:case 23:return t.lanes=0,wl(e,t,r)}return ql(e,t,r)}(e,t,r);ml=!!(131072&e.flags)}else ml=!1,Ji&&1048576&t.flags&&Yi(t,Ui,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bl(e,t),e=t.pendingProps;var a=_i(t,ki.current);wo(t,r),a=bs(null,t,n,e,a,r);var i=ws();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ni(n)?(i=!0,Ri(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,No(t),a.updater=Po,t.stateNode=a,a._reactInternals=t,Uo(t,n,e,r),t=El(null,t,n,!0,i,r)):(t.tag=0,Ji&&i&&Qi(t),gl(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bl(e,t),e=t.pendingProps,n=(a=n._init)(n._payload),t.type=n,a=t.tag=function(e){if("function"==typeof e)return Cc(e)?1:0;if(null!=e){if((e=e.$$typeof)===ke)return 11;if(e===_e)return 14}return 2}(n),e=ho(n,e),a){case 0:t=Sl(null,t,n,e,r);break e;case 1:t=kl(null,t,n,e,r);break e;case 11:t=vl(null,t,n,e,r);break e;case 14:t=yl(null,t,n,ho(n.type,e),r);break e}throw Error(ee(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,Sl(e,t,n,a=t.elementType===n?a:ho(n,a),r);case 1:return n=t.type,a=t.pendingProps,kl(e,t,n,a=t.elementType===n?a:ho(n,a),r);case 3:e:{if(Tl(t),null===e)throw Error(ee(387));n=t.pendingProps,a=(i=t.memoizedState).element,Co(e,t),Ao(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated){if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=_l(e,t,n,r,a=il(Error(ee(423)),t));break e}if(n!==a){t=_l(e,t,n,r,a=il(Error(ee(424)),t));break e}for(Zi=ai(t.stateNode.containerInfo.firstChild),Xi=t,Ji=!0,eo=null,r=Go(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(lo(),n===a){t=ql(e,t,r);break e}gl(e,t,n,r)}t=t.child}return t;case 5:return ts(t),null===e&&ao(t),n=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,o=a.children,Xa(n,a)?o=null:null!==i&&Xa(n,i)&&(t.flags|=32),xl(e,t),gl(e,t,o,r),t.child;case 6:return null===e&&ao(t),null;case 13:return Al(e,t,r);case 4:return Jo(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=$o(t,null,n,r):gl(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,vl(e,t,n,a=t.elementType===n?a:ho(n,a),r);case 7:return gl(e,t,t.pendingProps,r),t.child;case 8:case 12:return gl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,xi(po,n._currentValue),n._currentValue=o,null!==i)if(ra(i.value,o)){if(i.children===a.children&&!Ei.current){t=ql(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){o=i.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===i.tag){(l=Oo(-1,r&-r)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,null!==(l=i.alternate)&&(l.lanes|=r),bo(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===i.tag)o=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(o=i.return))throw Error(ee(341));o.lanes|=r,null!==(s=o.alternate)&&(s.lanes|=r),bo(o,r,t),o=i.sibling}else o=i.child;if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===t){o=null;break}if(null!==(i=o.sibling)){i.return=o.return,o=i;break}o=o.return}i=o}gl(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,wo(t,r),n=n(a=xo(a)),t.flags|=1,gl(e,t,n,r),t.child;case 14:return a=ho(n=t.type,t.pendingProps),yl(e,t,n,a=ho(n.type,a),r);case 15:return bl(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ho(n,a),Bl(e,t),t.tag=1,Ni(n)?(e=!0,Ri(t)):e=!1,wo(t,r),Bo(t,n,a),Uo(t,n,a,r),El(null,t,n,!0,e,r);case 19:return jl(e,t,r);case 22:return wl(e,t,r)}throw Error(ee(156,t.tag))};var Fc="function"==typeof reportError?reportError:function(e){console.error(e)};function Vc(e){this._internalRoot=e}function Wc(e){this._internalRoot=e}function $c(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yc(){}function Qc(e,t,r,n,a){var i=r._reactRootContainer;if(i){var o=i;if("function"==typeof a){var s=a;a=function(){var e=qc(o);s.call(e)}}Bc(t,o,e,a)}else o=function(e,t,r,n,a){if(a){if("function"==typeof n){var i=n;n=function(){var e=qc(o);i.call(e)}}var o=jc(t,n,e,0,null,!1,0,"",Yc);return e._reactRootContainer=o,e[ui]=o.current,Pa(8===e.nodeType?e.parentNode:e),oc(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof n){var s=n;n=function(){var e=qc(l);s.call(e)}}var l=Lc(e,0,!1,null,0,!1,0,"",Yc);return e._reactRootContainer=l,e[ui]=l.current,Pa(8===e.nodeType?e.parentNode:e),oc(function(){Bc(t,l,r,n)}),l}(r,t,e,a,n);return qc(o)}Wc.prototype.render=Vc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(ee(409));Bc(e,t,null,null)},Wc.prototype.unmount=Vc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;oc(function(){Bc(null,e,null,null)}),t[ui]=null}},Wc.prototype.unstable_scheduleHydration=function(e){if(e){var t=br();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Cr.length&&0!==t&&t<Cr[r].priority;r++);Cr.splice(r,0,e),0===r&&Mr(e)}},gr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=or(t.pendingLanes);0!==r&&(pr(t,1|r),Ju(t,$t()),!(6&Eu)&&(ju=$t()+500,Pi()))}break;case 13:oc(function(){var t=To(e,1);if(null!==t){var r=Ku();Zu(t,e,1,r)}}),Hc(e,1)}},vr=function(e){if(13===e.tag){var t=To(e,134217728);if(null!==t)Zu(t,e,134217728,Ku());Hc(e,134217728)}},yr=function(e){if(13===e.tag){var t=Xu(e),r=To(e,t);if(null!==r)Zu(r,e,t,Ku());Hc(e,t)}},br=function(){return fr},wr=function(e,t){var r=fr;try{return fr=e,t()}finally{fr=r}},vt=function(e,t,r){switch(t){case"input":if(Ge(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=gi(n);if(!a)throw Error(ee(90));He(n),Ge(n,a)}}}break;case"textarea":et(e,r);break;case"select":null!=(t=r.value)&&Xe(e,!!r.multiple,t,!1)}},kt=ic,Et=oc;var Kc={usingClientEntryPoint:!1,Events:[fi,mi,gi,xt,St,ic]},Xc={findFiberByHostInstance:pi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Zc={bundleType:Xc.bundleType,version:Xc.version,rendererPackageName:Xc.rendererPackageName,rendererConfig:Xc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:me.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qt(e))?null:e.stateNode},findFiberByHostInstance:Xc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jc.isDisabled&&Jc.supportsFiber)try{Jt=Jc.inject(Zc),er=Jc}catch(it){}}Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kc,Y.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$c(t))throw Error(ee(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ve,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},Y.createRoot=function(e,t){if(!$c(e))throw Error(ee(299));var r=!1,n="",a=Fc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Lc(e,1,!1,null,0,r,0,n,a),e[ui]=t.current,Pa(8===e.nodeType?e.parentNode:e),new Vc(t)},Y.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(ee(188));throw e=Object.keys(e).join(","),Error(ee(268,e))}return e=null===(e=qt(t))?null:e.stateNode},Y.flushSync=function(e){return oc(e)},Y.hydrate=function(e,t,r){if(!Gc(t))throw Error(ee(200));return Qc(null,e,t,!0,r)},Y.hydrateRoot=function(e,t,r){if(!$c(e))throw Error(ee(405));var n=null!=r&&r.hydratedSources||null,a=!1,i="",o=Fc;if(null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(o=r.onRecoverableError)),t=jc(t,null,e,1,null!=r?r:null,a,0,i,o),e[ui]=t.current,Pa(e),n)for(e=0;e<n.length;e++)a=(a=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Wc(t)},Y.render=function(e,t,r){if(!Gc(t))throw Error(ee(200));return Qc(null,e,t,!1,r)},Y.unmountComponentAtNode=function(e){if(!Gc(e))throw Error(ee(40));return!!e._reactRootContainer&&(oc(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,e[ui]=null})}),!0)},Y.unstable_batchedUpdates=ic,Y.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Gc(r))throw Error(ee(200));if(null==e||void 0===e._reactInternals)throw Error(ee(38));return Qc(e,t,r,!1,n)},Y.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),G.exports=Y;var ed,td=G.exports;ed=td.createRoot,td.hydrateRoot;const rd=j.createContext({dragDropManager:void 0});function nd(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ad="function"==typeof Symbol&&Symbol.observable||"@@observable",id=function(){return Math.random().toString(36).substring(7).split("").join(".")},od={INIT:"@@redux/INIT"+id(),REPLACE:"@@redux/REPLACE"+id(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+id()}};function sd(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(nd(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(nd(1));return r(sd)(e,t)}if("function"!=typeof e)throw new Error(nd(2));var a=e,i=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error(nd(3));return i}function d(e){if("function"!=typeof e)throw new Error(nd(4));if(l)throw new Error(nd(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(nd(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),o=null}}}function h(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(nd(7));if(void 0===e.type)throw new Error(nd(8));if(l)throw new Error(nd(9));try{l=!0,i=a(i,e)}finally{l=!1}for(var t=o=s,r=0;r<t.length;r++){(0,t[r])()}return e}return h({type:od.INIT}),(n={dispatch:h,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(nd(10));a=e,h({type:od.REPLACE})}})[ad]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(nd(11));function r(){e.next&&e.next(c())}return r(),{unsubscribe:t(r)}}})[ad]=function(){return this},e},n}function ld(e,t,...r){if("undefined"!=typeof process&&"production"===process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,function(){return r[n++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function ud(e){return"object"==typeof e}const cd="dnd-core/INIT_COORDS",dd="dnd-core/BEGIN_DRAG",hd="dnd-core/PUBLISH_DRAG_SOURCE",pd="dnd-core/HOVER",fd="dnd-core/DROP",md="dnd-core/END_DRAG";function gd(e,t){return{type:cd,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const vd={type:cd,payload:{clientOffset:null,sourceClientOffset:null}};function yd(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:a,getSourceClientOffset:i}=r,o=e.getMonitor(),s=e.getRegistry();e.dispatch(gd(a)),function(e,t,r){ld(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){ld(r.getSource(e),"Expected sourceIds to be registered.")})}(t,o,s);const l=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,o);if(null==l)return void e.dispatch(vd);let u=null;if(a){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){ld("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(l)}e.dispatch(gd(a,u));const c=s.getSource(l).beginDrag(o,l);if(null==c)return;!function(e){ld(ud(e),"Item must be an object.")}(c),s.pinSource(l);const d=s.getSourceType(l);return{type:dd,payload:{itemType:d,item:c,sourceId:l,clientOffset:a||null,sourceClientOffset:u||null,isSourcePublic:!!n}}}}function bd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){bd(e,t,r[t])})}return e}function xd(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){ld(e.isDragging(),"Cannot call drop while not dragging."),ld(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r);const a=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r);a.forEach((a,i)=>{const o=function(e,t,r,n){const a=r.getTarget(e);let i=a?a.drop(n,e):void 0;(function(e){ld(void 0===e||ud(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:n.getDropResult());return i}(a,i,n,r),s={type:fd,payload:{dropResult:wd({},t,o)}};e.dispatch(s)})}}function Sd(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){ld(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const n=t.getSourceId();if(null!=n){r.getSource(n,!0).endDrag(t,n),r.unpinSource()}return{type:md}}}function kd(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function Ed(e){return function(t,{clientOffset:r}={}){!function(e){ld(Array.isArray(e),"Expected targetIds to be an array.")}(t);const n=t.slice(0),a=e.getMonitor(),i=e.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){const a=e[n];kd(t.getTargetType(a),r)||e.splice(n,1)}}(n,i,a.getItemType()),function(e,t,r){ld(t.isDragging(),"Cannot call hover while not dragging."),ld(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const t=e[n];ld(e.lastIndexOf(t)===n,"Expected targetIds to be unique in the passed array.");ld(r.getTarget(t),"Expected targetIds to be registered.")}}(n,a,i),function(e,t,r){e.forEach(function(e){r.getTarget(e).hover(t,e)})}(n,a,i),{type:pd,payload:{targetIds:n,clientOffset:r||null}}}}function Td(e){return function(){if(e.getMonitor().isDragging())return{type:hd}}}class _d{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const r=function(e){return{beginDrag:yd(e),publishDragSource:Td(e),hover:Ed(e),drop:xd(e),endDrag:Sd(e)}}(this);return Object.keys(r).reduce((n,a)=>{const i=r[a];var o;return n[a]=(o=i,(...r)=>{const n=o.apply(e,r);void 0!==n&&t(n)}),n},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function Nd(e,t){return{x:e.x-t.x,y:e.y-t.y}}const Cd=[],Od=[];Cd.__IS_NONE__=!0,Od.__IS_ALL__=!0;class Id{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;ld("function"==typeof e,"listener must be a function."),ld(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),a=t.stateId;try{const i=a===n||a===n+1&&!function(e,t){return e!==Cd&&(e===Od||void 0===t||(r=e,t.filter(e=>r.indexOf(e)>-1)).length>0);var r}(t.dirtyHandlerIds,r);i||e()}finally{n=a}})}subscribeToOffsetChange(e){ld("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return ld(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if(ld(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return kd(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if(ld(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),a=this.getItemType();if(a&&!kd(n,a))return!1;const i=this.getTargetIds();if(!i.length)return!1;const o=i.indexOf(e);return r?o===i.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?Nd(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,n),r):null}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?Nd(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const Rd="undefined"!=typeof global?global:self,Md=Rd.MutationObserver||Rd.WebKitMutationObserver;function Ad(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}const zd="function"==typeof Md?function(e){let t=1;const r=new Md(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:Ad;class Dd{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Ld=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=zd(this.flush),this.requestErrorThrow=Ad(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Pd=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new Dd(this.onError,e=>t[t.length]=e);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(Ld.registerPendingError);const jd="dnd-core/ADD_SOURCE",Bd="dnd-core/ADD_TARGET",qd="dnd-core/REMOVE_SOURCE",Ud="dnd-core/REMOVE_TARGET";function Hd(e,t){t&&Array.isArray(e)?e.forEach(e=>Hd(e,!1)):ld("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Fd,Vd;(Vd=Fd||(Fd={})).SOURCE="SOURCE",Vd.TARGET="TARGET";let Wd=0;function $d(e){const t=(Wd++).toString();switch(e){case Fd.SOURCE:return`S${t}`;case Fd.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Gd(e){switch(e[0]){case"S":return Fd.SOURCE;case"T":return Fd.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Yd(e,t){const r=e.entries();let n=!1;do{const{done:e,value:[,a]}=r.next();if(a===t)return!0;n=!!e}while(!n);return!1}class Qd{addSource(e,t){Hd(e),function(e){ld("function"==typeof e.canDrag,"Expected canDrag to be a function."),ld("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),ld("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(Fd.SOURCE,e,t);return this.store.dispatch(function(e){return{type:jd,payload:{sourceId:e}}}(r)),r}addTarget(e,t){Hd(e,!0),function(e){ld("function"==typeof e.canDrop,"Expected canDrop to be a function."),ld("function"==typeof e.hover,"Expected hover to be a function."),ld("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(Fd.TARGET,e,t);return this.store.dispatch(function(e){return{type:Bd,payload:{targetId:e}}}(r)),r}containsHandler(e){return Yd(this.dragSources,e)||Yd(this.dropTargets,e)}getSource(e,t=!1){ld(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return ld(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return ld(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return ld(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Gd(e)===Fd.SOURCE}isTargetId(e){return Gd(e)===Fd.TARGET}removeSource(e){var t;ld(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:qd,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Ld.enqueueTask(Pd.create(t))}removeTarget(e){ld(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Ud,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);ld(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){ld(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=$d(e);return this.types.set(n,t),e===Fd.SOURCE?this.dragSources.set(n,r):e===Fd.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Kd=(e,t)=>e===t;function Xd(e=Cd,t){switch(t.type){case pd:break;case jd:case Bd:case Ud:case qd:return Cd;default:return Od}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,a=function(e,t){const r=new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const a=[];return r.forEach((e,t)=>{1===e&&a.push(t)}),a}(r,n),i=a.length>0||!function(e,t,r=Kd){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(r,n);if(!i)return Cd;const o=n[n.length-1],s=r[r.length-1];return o!==s&&(o&&a.push(o),s&&a.push(s)),a}function Zd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jd={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function eh(e=Jd,t){const{payload:r}=t;switch(t.type){case cd:case dd:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case pd:return n=e.clientOffset,a=r.clientOffset,!n&&!a||n&&a&&n.x===a.x&&n.y===a.y?e:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){Zd(e,t,r[t])})}return e}({},e,{clientOffset:r.clientOffset});case md:case fd:return Jd;default:return e}var n,a}function th(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){th(e,t,r[t])})}return e}const nh={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ah(e=nh,t){const{payload:r}=t;switch(t.type){case dd:return rh({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case hd:return rh({},e,{isSourcePublic:!0});case pd:return rh({},e,{targetIds:r.targetIds});case Ud:return-1===e.targetIds.indexOf(r.targetId)?e:rh({},e,{targetIds:(n=e.targetIds,a=r.targetId,n.filter(e=>e!==a))});case fd:return rh({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case md:return rh({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,a}function ih(e=0,t){switch(t.type){case jd:case Bd:return e+1;case qd:case Ud:return e-1;default:return e}}function oh(e=0){return e+1}function sh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){sh(e,t,r[t])})}return e}function uh(e={},t){return{dirtyHandlerIds:Xd(e.dirtyHandlerIds,{type:t.type,payload:lh({},t.payload,{prevTargetIds:(r=e,n="dragOperation.targetIds",a=[],n.split(".").reduce((e,t)=>e&&e[t]?e[t]:a||null,r))})}),dragOffset:eh(e.dragOffset,t),refCount:ih(e.refCount,t),dragOperation:ah(e.dragOperation,t),stateId:oh(e.stateId)};var r,n,a}function ch(e,t=void 0,r={},n=!1){const a=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return sd(uh,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),i=new Id(a,new Qd(a)),o=new _d(a,i),s=e(o,t,r);return o.receiveBackend(s),o}function dh(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}let hh=0;const ph=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var fh=j.memo(function(e){var{children:t}=e,r=dh(e,["children"]);const[n,a]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=mh(),r,n){const a=t;a[ph]||(a[ph]={dragDropManager:ch(e,t,r,n)});return a[ph]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(r);return j.useEffect(()=>{if(a){const e=mh();return++hh,()=>{0===--hh&&(e[ph]=null)}}},[]),$.jsx(rd.Provider,{value:n,children:t})});function mh(){return"undefined"!=typeof global?global:window}var gh=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(a=n;0!==a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=n;0!==a--;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;0!==a--;){var o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r};const vh=e(gh),yh="undefined"!=typeof window?j.useLayoutEffect:j.useEffect;function bh(e,t,r){const[n,a]=function(e,t,r){const[n,a]=j.useState(()=>t(e)),i=j.useCallback(()=>{const i=t(e);vh(n,i)||(a(i),r&&r())},[n,e,r]);return yh(i),[n,i]}(e,t,r);return yh(function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})},[e,a]),n}function wh(e,t,r){return bh(t,e||(()=>({})),()=>r.reconnect())}function xh(e,t){const r=[...t||[]];return null==t&&"function"!=typeof e&&r.push(e),j.useMemo(()=>"function"==typeof e?e():e,r)}function Sh(e){return j.useMemo(()=>e.hooks.dragSource(),[e])}function kh(e){return j.useMemo(()=>e.hooks.dragPreview(),[e])}let Eh=!1,Th=!1;class _h{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){ld(!Eh,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Eh=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Eh=!1}}isDragging(){if(!this.sourceId)return!1;ld(!Th,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Th=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Th=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Nh=!1;class Ch{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;ld(!Nh,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Nh=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Nh=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function Oh(e,t,r,n){let a=r?r.call(n,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<i.length;l++){const o=i[l];if(!s(o))return!1;const u=e[o],c=t[o];if(a=r?r.call(n,u,c,o):void 0,!1===a||void 0===a&&u!==c)return!1}return!0}function Ih(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Rh(e){return(t=null,r=null)=>{if(!j.isValidElement(t)){const n=t;return e(n,r),n}const n=t;!function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(n);return function(e,t){const r=e.ref;return ld("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?j.cloneElement(e,{ref:e=>{Ah(r,e),Ah(t,e)}}):j.cloneElement(e,{ref:t})}(n,r?t=>e(t,r):e)}}function Mh(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=Rh(n);t[r]=()=>e}}),t}function Ah(e,t){"function"==typeof e?e(t):e.current=t}class zh{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Oh(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Oh(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Mh({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Ih(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Ih(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Dh{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Oh(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Mh({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Ih(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Lh(){const{dragDropManager:e}=j.useContext(rd);return ld(null!=e,"Expected drag drop context"),e}class Ph{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return r="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=r?r:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const r=this.spec,n=this.monitor,{isDragging:a}=r;return a?a(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:n}=e;n&&n(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function jh(e,t,r){const n=Lh(),a=function(e,t,r){const n=j.useMemo(()=>new Ph(e,t,r),[t,r]);return j.useEffect(()=>{n.spec=e},[e]),n}(e,t,r),i=function(e){return j.useMemo(()=>{const t=e.type;return ld(null!=t,"spec.type must be defined"),t},[e])}(e);yh(function(){if(null!=i){const[e,o]=function(e,t,r){const n=r.getRegistry(),a=n.addSource(e,t);return[a,()=>n.removeSource(a)]}(i,a,n);return t.receiveHandlerId(e),r.receiveHandlerId(e),o}},[n,t,r,a,i])}function Bh(e,t){const r=xh(e,t);ld(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=function(){const e=Lh();return j.useMemo(()=>new _h(e),[e])}(),a=function(e,t){const r=Lh(),n=j.useMemo(()=>new zh(r.getBackend()),[r]);return yh(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),yh(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}(r.options,r.previewOptions);return jh(r,n,a),[wh(r.collect,n,a),Sh(a),kh(a)]}function qh(e){return j.useMemo(()=>e.hooks.dropTarget(),[e])}class Uh{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function Hh(e,t,r){const n=Lh(),a=function(e,t){const r=j.useMemo(()=>new Uh(e,t),[t]);return j.useEffect(()=>{r.spec=e},[e]),r}(e,t),i=function(e){const{accept:t}=e;return j.useMemo(()=>(ld(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}(e);yh(function(){const[e,o]=function(e,t,r){const n=r.getRegistry(),a=n.addTarget(e,t);return[a,()=>n.removeTarget(a)]}(i,a,n);return t.receiveHandlerId(e),r.receiveHandlerId(e),o},[n,t,a,r,i.map(e=>e.toString()).join("|")])}function Fh(e,t){const r=xh(e,t),n=function(){const e=Lh();return j.useMemo(()=>new Ch(e),[e])}(),a=function(e){const t=Lh(),r=j.useMemo(()=>new Dh(t.getBackend()),[t]);return yh(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}(r.options);return Hh(r,n,a),[wh(r.collect,n,a),qh(a)]}function Vh(e){let t=null;return()=>(null==t&&(t=e()),t)}class Wh{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const a=[];return r.forEach(e=>a.push(e)),a}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter(e=>e!==n)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class $h{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const Gh="__NATIVE_FILE__",Yh="__NATIVE_URL__",Qh="__NATIVE_TEXT__",Kh="__NATIVE_HTML__",Xh=Object.freeze(Object.defineProperty({__proto__:null,FILE:Gh,HTML:Kh,TEXT:Qh,URL:Yh},Symbol.toStringTag,{value:"Module"}));function Zh(e,t,r){const n=t.reduce((t,r)=>t||e.getData(r),"");return null!=n?n:r}const Jh={[Gh]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Kh]:{exposeProperties:{html:(e,t)=>Zh(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Yh]:{exposeProperties:{urls:(e,t)=>Zh(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Qh]:{exposeProperties:{text:(e,t)=>Zh(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function ep(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Jh).filter(e=>{const r=Jh[e];return!!(null==r?void 0:r.matchesTypes)&&r.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}const tp=Vh(()=>/firefox/i.test(navigator.userAgent)),rp=Vh(()=>Boolean(window.safari));class np{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:a,c3s:i}=this;let o=t.length-1;if(e===t[o])return r[o];let s,l=0,u=i.length-1;for(;l<=u;){s=Math.floor(.5*(l+u));const n=t[s];if(n<e)l=s+1;else{if(!(n>e))return r[s];u=s-1}}o=Math.max(0,u);const c=e-t[o],d=c*c;return r[o]+n[o]*c+a[o]*d+i[o]*c*d}constructor(e,t){const{length:r}=e,n=[];for(let h=0;h<r;h++)n.push(h);n.sort((t,r)=>e[t]<e[r]?-1:1);const a=[],i=[];let o,s;for(let h=0;h<r-1;h++)o=e[h+1]-e[h],s=t[h+1]-t[h],a.push(o),i.push(s/o);const l=[i[0]];for(let h=0;h<a.length-1;h++){const e=i[h],t=i[h+1];if(e*t<=0)l.push(0);else{o=a[h];const r=a[h+1],n=o+r;l.push(3*n/((n+r)/e+(n+o)/t))}}l.push(i[i.length-1]);const u=[],c=[];let d;for(let h=0;h<l.length-1;h++){d=i[h];const e=l[h],t=1/a[h],r=e+l[h+1]-d-d;u.push((d-e-r)*t),c.push(r*t*t)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=c}}function ap(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function ip(e){return{x:e.clientX,y:e.clientY}}function op(e,t,r,n,a){const i="IMG"===(o=t).nodeName&&(tp()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(o)));var o,s;const l=ap(i?e:t),u={x:r.x-l.x,y:r.y-l.y},{offsetWidth:c,offsetHeight:d}=e,{anchorX:h,anchorY:p}=n,{dragPreviewWidth:f,dragPreviewHeight:m}=function(e,t,r,n){let a=e?t.width:r,i=e?t.height:n;return rp()&&e&&(i/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:i}}(i,t,c,d),{offsetX:g,offsetY:v}=a,y=0===v||v;return{x:0===g||g?g:new np([0,.5,1],[u.x,u.x/c*f,u.x+f-c]).interpolate(h),y:y?v:(()=>{let e=new np([0,.5,1],[u.y,u.y/d*m,u.y+m-d]).interpolate(p);return rp()&&i&&(e+=(window.devicePixelRatio-1)*m),e})()}}class sp{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function lp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function up(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){lp(e,t,r[t])})}return e}class cp{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),a=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",a),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),a=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",a),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",a)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return up({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return up({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Xh).some(t=>Xh[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=Jh[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new $h(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&ap(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=ip(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,a=ep(n);if(this.monitor.isDragging()){if(n&&"function"==typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),a=this.sourcePreviewNodes.get(e)||t;if(a){const{anchorX:e,anchorY:i,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=op(t,a,r,{anchorX:e,anchorY:i},{offsetX:o,offsetY:s});n.setDragImage(a,l.x,l.y)}}try{null==n||n.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(a)this.beginDragNativeItem(a);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=ep(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:ip(e)});t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=ip(e),this.scheduleHover(t);(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):ep(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:ip(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new sp(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Wh(this.isNodeInDocument)}}const dp=function(e,t,r){return new cp(e,t,r)},hp="en";function pp(e){if(null==e?void 0:e.language)return e.language;try{if("undefined"!=typeof localStorage){const e=localStorage.getItem("app-language");if(e)return e}}catch{}return hp}const fp={playerConfig:null,context:null,config:null,sections:[],currentSectionIndex:0,questions:[],currentQuestionIndex:0,answers:{},loading:!1,error:null,isDurationExpired:!1,language:hp,showFeedback:!1,attemptNumber:1},mp="SET_PLAYER_CONFIG",gp="SET_SECTIONS",vp="SET_QUESTIONS",yp="SET_CURRENT_SECTION",bp="SET_CURRENT_QUESTION",wp="STORE_ANSWER",xp="SET_LOADING",Sp="SET_ERROR",kp="SET_LANGUAGE",Ep="SET_SHOW_FEEDBACK",Tp="SET_ATTEMPT",_p="RESET_STATE",Np="CLEAR_ERROR";function Cp(e,t){switch(t.type){case mp:return{...e,playerConfig:t.payload,context:t.payload.context,config:t.payload.config,language:pp(t.payload.config)};case gp:return{...e,sections:t.payload,currentSectionIndex:0};case vp:return{...e,questions:t.payload,currentQuestionIndex:0,loading:!1};case yp:return{...e,currentSectionIndex:t.payload};case bp:return{...e,currentQuestionIndex:t.payload};case wp:{const{identifier:r,response:n}=t.payload,a={...e.answers};return a[r]=n,{...e,answers:a}}case xp:return{...e,loading:t.payload};case Sp:return{...e,error:t.payload,loading:!1};case kp:return{...e,language:t.payload};case Ep:return{...e,showFeedback:t.payload};case Tp:return{...e,attemptNumber:t.payload};case _p:return fp;case Np:return{...e,error:null};default:return e}}const Op=j.createContext(null);function Ip({children:e,playerConfig:t}){const[r,n]=j.useReducer(Cp,{...fp,language:pp(null==t?void 0:t.config)}),a=j.useCallback(e=>{n({type:mp,payload:e})},[]),i=j.useCallback(e=>{n({type:gp,payload:e})},[]),o=j.useCallback(e=>{n({type:vp,payload:e})},[]),s=j.useCallback(e=>{n({type:yp,payload:e})},[]),l=j.useCallback(e=>{n({type:bp,payload:e})},[]),u=j.useCallback((e,t)=>{n({type:wp,payload:{identifier:e,response:t}})},[]),c=j.useCallback(e=>{n({type:xp,payload:e})},[]),d=j.useCallback(e=>{n({type:Sp,payload:e})},[]),h=j.useCallback(()=>{n({type:Np})},[]),p=j.useCallback(e=>{n({type:kp,payload:e})},[]),f=j.useCallback(e=>{n({type:Ep,payload:e})},[]),m=j.useCallback(e=>{n({type:Tp,payload:e})},[]),g=j.useCallback(()=>{n({type:_p})},[]),v=j.useMemo(()=>({state:r,dispatch:n,setPlayerConfig:a,setSections:i,setQuestions:o,setCurrentSection:s,setCurrentQuestion:l,storeAnswer:u,setLoading:c,setError:d,clearError:h,setLanguage:p,setShowFeedback:f,setAttempt:m,resetState:g}),[r,a,i,o,s,l,u,c,d,h,p,f,g]);return $.jsx(Op.Provider,{value:v,children:e})}function Rp(){const e=j.useContext(Op);if(!e)throw new Error("useQuml must be used within QumlProvider");return e}let Mp=null;const Ap=new Set;function zp(e){Ap.forEach(t=>t(e))}function Dp(e){return!(!Mp||"function"!=typeof Mp.logEvent)&&(Mp.logEvent(e),!0)}function Lp(){return{logOptionSelected:j.useCallback((e,t)=>{!function(e){const t={eid:"INTERACT",edata:e,timestamp:Date.now()};Dp(t),zp(t)}({type:"CHOOSE",id:Array.isArray(t)?t.join(","):String(t),questionId:e})},[]),logAnswerSubmitted:j.useCallback((e,t,r,n=1)=>{!function(e){const t={eid:"ASSESS",edata:e,timestamp:Date.now()};Dp(t),zp(t)}({type:"assess",questionId:e,maxScore:n,score:r})},[]),logPageViewed:j.useCallback(e=>{!function(e){const t={eid:"IMPRESSION",edata:e,timestamp:Date.now()};Dp(t),zp(t)}({pageId:e})},[])}}class Pp{constructor(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new Pp(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class jp{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new jp(t,Pp.range(this,e))}}class Bp{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,n,a="KaTeX parse error: "+e,i=t&&t.loc;if(i&&i.start<=i.end){var o=i.lexer.input;r=i.start,n=i.end,r===o.length?a+=" at end of input: ":a+=" at position "+(r+1)+": ";var s=o.slice(r,n).replace(/[^]/g,"$&̲");a+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+s+(n+15<o.length?o.slice(n,n+15)+"…":o.slice(n))}var l=new Error(a);return l.name="ParseError",l.__proto__=Bp.prototype,l.position=r,null!=r&&null!=n&&(l.length=n-r),l.rawMessage=e,l}}Bp.prototype.__proto__=Error.prototype;var qp=/([A-Z])/g,Up={"&":"&",">":">","<":"<",'"':""","'":"'"},Hp=/[&><"']/g;var Fp=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},Vp={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(Hp,e=>Up[e])},hyphenate:function(e){return e.replace(qp,"-$1").toLowerCase()},getBaseElem:Fp,isCharacterBox:function(e){var t=Fp(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},Wp={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function $p(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Gp{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},Wp)if(Wp.hasOwnProperty(t)){var r=Wp[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:$p(r)}}reportNonstrict(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new Bp("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(a){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=Vp.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var r="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(r)}}class Yp{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return Qp[Kp[this.id]]}sub(){return Qp[Xp[this.id]]}fracNum(){return Qp[Zp[this.id]]}fracDen(){return Qp[Jp[this.id]]}cramp(){return Qp[ef[this.id]]}text(){return Qp[tf[this.id]]}isTight(){return this.size>=2}}var Qp=[new Yp(0,0,!1),new Yp(1,0,!0),new Yp(2,1,!1),new Yp(3,1,!0),new Yp(4,2,!1),new Yp(5,2,!0),new Yp(6,3,!1),new Yp(7,3,!0)],Kp=[4,5,4,5,6,7,6,7],Xp=[5,5,5,5,7,7,7,7],Zp=[2,3,4,5,6,7,6,7],Jp=[3,3,5,5,7,7,7,7],ef=[1,1,3,3,5,5,7,7],tf=[0,1,2,3,2,3,2,3],rf={DISPLAY:Qp[0],TEXT:Qp[2],SCRIPT:Qp[4],SCRIPTSCRIPT:Qp[6]},nf=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var af=[];function of(e){for(var t=0;t<af.length;t+=2)if(e>=af[t]&&e<=af[t+1])return!0;return!1}nf.forEach(e=>e.blocks.forEach(e=>af.push(...e)));var sf=80,lf={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class uf{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Vp.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var cf={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},df={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},hf={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function pf(e,t,r){if(!cf[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=cf[t][n];if(!a&&e[0]in hf&&(n=hf[e[0]].charCodeAt(0),a=cf[t][n]),a||"text"!==r||of(n)&&(a=cf[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var ff={};var mf=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],gf=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],vf=function(e,t){return t.size<2?e:mf[e-1][t.size-1]};class yf{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||yf.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=gf[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new yf(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:vf(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:gf[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=vf(yf.BASESIZE,e);return this.size===t&&this.textSize===yf.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==yf.BASESIZE?["sizing","reset-size"+this.size,"size"+yf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!ff[t=e>=5?0:e>=3?1:2]){var r=ff[t]={cssEmPerMu:df.quad[t]/18};for(var n in df)df.hasOwnProperty(n)&&(r[n]=df[n][t])}return ff[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}yf.BASESIZE=6;var bf={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},wf={ex:!0,em:!0,mu:!0},xf=function(e){return"string"!=typeof e&&(e=e.unit),e in bf||e in wf||"ex"===e},Sf=function(e,t){var r;if(e.unit in bf)r=bf[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var n;if(n=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new Bp("Invalid unit: '"+e.unit+"'");r=n.fontMetrics().quad}n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},kf=function(e){return+e.toFixed(4)+"em"},Ef=function(e){return e.filter(e=>e).join(" ")},Tf=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},_f=function(e){var t=document.createElement(e);for(var r in t.className=Ef(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t},Nf=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+Vp.escape(Ef(this.classes))+'"');var r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=Vp.hyphenate(n)+":"+this.style[n]+";");for(var a in r&&(t+=' style="'+Vp.escape(r)+'"'),this.attributes)this.attributes.hasOwnProperty(a)&&(t+=" "+a+'="'+Vp.escape(this.attributes[a])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"};class Cf{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Tf.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Vp.contains(this.classes,e)}toNode(){return _f.call(this,"span")}toMarkup(){return Nf.call(this,"span")}}class Of{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Tf.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Vp.contains(this.classes,e)}toNode(){return _f.call(this,"a")}toMarkup(){return Nf.call(this,"a")}}class If{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return Vp.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+Vp.escape(this.src)+'" alt="'+Vp.escape(this.alt)+'"',t="";for(var r in this.style)this.style.hasOwnProperty(r)&&(t+=Vp.hyphenate(r)+":"+this.style[r]+";");return t&&(e+=' style="'+Vp.escape(t)+'"'),e+="'/>"}}var Rf={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class Mf{constructor(e,t,r,n,a,i,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=r||0,this.italic=n||0,this.skew=a||0,this.width=i||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<nf.length;t++)for(var r=nf[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Rf[this.text])}hasClass(e){return Vp.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=kf(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=Ef(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=Vp.escape(Ef(this.classes)),t+='"');var r="";for(var n in this.italic>0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=Vp.hyphenate(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+Vp.escape(r)+'"');var a=Vp.escape(this.text);return e?(t+=">",t+=a,t+="</span>"):a}}class Af{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+Vp.escape(this.attributes[t])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>"}}class zf{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",lf[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+Vp.escape(this.alternate)+'"/>':'<path d="'+Vp.escape(lf[this.pathName])+'"/>'}}class Df{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+Vp.escape(this.attributes[t])+'"');return e+="/>"}}function Lf(e){if(e instanceof Mf)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var Pf={bin:1,close:1,inner:1,open:1,punct:1,rel:1},jf={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Bf={math:{},text:{}};function qf(e,t,r,n,a,i){Bf[e][a]={font:t,group:r,replace:n},i&&n&&(Bf[e][n]=Bf[e][a])}var Uf="math",Hf="text",Ff="main",Vf="ams",Wf="accent-token",$f="bin",Gf="close",Yf="inner",Qf="mathord",Kf="op-token",Xf="open",Zf="punct",Jf="rel",em="spacing",tm="textord";qf(Uf,Ff,Jf,"≡","\\equiv",!0),qf(Uf,Ff,Jf,"≺","\\prec",!0),qf(Uf,Ff,Jf,"≻","\\succ",!0),qf(Uf,Ff,Jf,"∼","\\sim",!0),qf(Uf,Ff,Jf,"⊥","\\perp"),qf(Uf,Ff,Jf,"⪯","\\preceq",!0),qf(Uf,Ff,Jf,"⪰","\\succeq",!0),qf(Uf,Ff,Jf,"≃","\\simeq",!0),qf(Uf,Ff,Jf,"∣","\\mid",!0),qf(Uf,Ff,Jf,"≪","\\ll",!0),qf(Uf,Ff,Jf,"≫","\\gg",!0),qf(Uf,Ff,Jf,"≍","\\asymp",!0),qf(Uf,Ff,Jf,"∥","\\parallel"),qf(Uf,Ff,Jf,"⋈","\\bowtie",!0),qf(Uf,Ff,Jf,"⌣","\\smile",!0),qf(Uf,Ff,Jf,"⊑","\\sqsubseteq",!0),qf(Uf,Ff,Jf,"⊒","\\sqsupseteq",!0),qf(Uf,Ff,Jf,"≐","\\doteq",!0),qf(Uf,Ff,Jf,"⌢","\\frown",!0),qf(Uf,Ff,Jf,"∋","\\ni",!0),qf(Uf,Ff,Jf,"∝","\\propto",!0),qf(Uf,Ff,Jf,"⊢","\\vdash",!0),qf(Uf,Ff,Jf,"⊣","\\dashv",!0),qf(Uf,Ff,Jf,"∋","\\owns"),qf(Uf,Ff,Zf,".","\\ldotp"),qf(Uf,Ff,Zf,"⋅","\\cdotp"),qf(Uf,Ff,tm,"#","\\#"),qf(Hf,Ff,tm,"#","\\#"),qf(Uf,Ff,tm,"&","\\&"),qf(Hf,Ff,tm,"&","\\&"),qf(Uf,Ff,tm,"ℵ","\\aleph",!0),qf(Uf,Ff,tm,"∀","\\forall",!0),qf(Uf,Ff,tm,"ℏ","\\hbar",!0),qf(Uf,Ff,tm,"∃","\\exists",!0),qf(Uf,Ff,tm,"∇","\\nabla",!0),qf(Uf,Ff,tm,"♭","\\flat",!0),qf(Uf,Ff,tm,"ℓ","\\ell",!0),qf(Uf,Ff,tm,"♮","\\natural",!0),qf(Uf,Ff,tm,"♣","\\clubsuit",!0),qf(Uf,Ff,tm,"℘","\\wp",!0),qf(Uf,Ff,tm,"♯","\\sharp",!0),qf(Uf,Ff,tm,"♢","\\diamondsuit",!0),qf(Uf,Ff,tm,"ℜ","\\Re",!0),qf(Uf,Ff,tm,"♡","\\heartsuit",!0),qf(Uf,Ff,tm,"ℑ","\\Im",!0),qf(Uf,Ff,tm,"♠","\\spadesuit",!0),qf(Uf,Ff,tm,"§","\\S",!0),qf(Hf,Ff,tm,"§","\\S"),qf(Uf,Ff,tm,"¶","\\P",!0),qf(Hf,Ff,tm,"¶","\\P"),qf(Uf,Ff,tm,"†","\\dag"),qf(Hf,Ff,tm,"†","\\dag"),qf(Hf,Ff,tm,"†","\\textdagger"),qf(Uf,Ff,tm,"‡","\\ddag"),qf(Hf,Ff,tm,"‡","\\ddag"),qf(Hf,Ff,tm,"‡","\\textdaggerdbl"),qf(Uf,Ff,Gf,"⎱","\\rmoustache",!0),qf(Uf,Ff,Xf,"⎰","\\lmoustache",!0),qf(Uf,Ff,Gf,"⟯","\\rgroup",!0),qf(Uf,Ff,Xf,"⟮","\\lgroup",!0),qf(Uf,Ff,$f,"∓","\\mp",!0),qf(Uf,Ff,$f,"⊖","\\ominus",!0),qf(Uf,Ff,$f,"⊎","\\uplus",!0),qf(Uf,Ff,$f,"⊓","\\sqcap",!0),qf(Uf,Ff,$f,"∗","\\ast"),qf(Uf,Ff,$f,"⊔","\\sqcup",!0),qf(Uf,Ff,$f,"◯","\\bigcirc",!0),qf(Uf,Ff,$f,"∙","\\bullet",!0),qf(Uf,Ff,$f,"‡","\\ddagger"),qf(Uf,Ff,$f,"≀","\\wr",!0),qf(Uf,Ff,$f,"⨿","\\amalg"),qf(Uf,Ff,$f,"&","\\And"),qf(Uf,Ff,Jf,"⟵","\\longleftarrow",!0),qf(Uf,Ff,Jf,"⇐","\\Leftarrow",!0),qf(Uf,Ff,Jf,"⟸","\\Longleftarrow",!0),qf(Uf,Ff,Jf,"⟶","\\longrightarrow",!0),qf(Uf,Ff,Jf,"⇒","\\Rightarrow",!0),qf(Uf,Ff,Jf,"⟹","\\Longrightarrow",!0),qf(Uf,Ff,Jf,"↔","\\leftrightarrow",!0),qf(Uf,Ff,Jf,"⟷","\\longleftrightarrow",!0),qf(Uf,Ff,Jf,"⇔","\\Leftrightarrow",!0),qf(Uf,Ff,Jf,"⟺","\\Longleftrightarrow",!0),qf(Uf,Ff,Jf,"↦","\\mapsto",!0),qf(Uf,Ff,Jf,"⟼","\\longmapsto",!0),qf(Uf,Ff,Jf,"↗","\\nearrow",!0),qf(Uf,Ff,Jf,"↩","\\hookleftarrow",!0),qf(Uf,Ff,Jf,"↪","\\hookrightarrow",!0),qf(Uf,Ff,Jf,"↘","\\searrow",!0),qf(Uf,Ff,Jf,"↼","\\leftharpoonup",!0),qf(Uf,Ff,Jf,"⇀","\\rightharpoonup",!0),qf(Uf,Ff,Jf,"↙","\\swarrow",!0),qf(Uf,Ff,Jf,"↽","\\leftharpoondown",!0),qf(Uf,Ff,Jf,"⇁","\\rightharpoondown",!0),qf(Uf,Ff,Jf,"↖","\\nwarrow",!0),qf(Uf,Ff,Jf,"⇌","\\rightleftharpoons",!0),qf(Uf,Vf,Jf,"≮","\\nless",!0),qf(Uf,Vf,Jf,"","\\@nleqslant"),qf(Uf,Vf,Jf,"","\\@nleqq"),qf(Uf,Vf,Jf,"⪇","\\lneq",!0),qf(Uf,Vf,Jf,"≨","\\lneqq",!0),qf(Uf,Vf,Jf,"","\\@lvertneqq"),qf(Uf,Vf,Jf,"⋦","\\lnsim",!0),qf(Uf,Vf,Jf,"⪉","\\lnapprox",!0),qf(Uf,Vf,Jf,"⊀","\\nprec",!0),qf(Uf,Vf,Jf,"⋠","\\npreceq",!0),qf(Uf,Vf,Jf,"⋨","\\precnsim",!0),qf(Uf,Vf,Jf,"⪹","\\precnapprox",!0),qf(Uf,Vf,Jf,"≁","\\nsim",!0),qf(Uf,Vf,Jf,"","\\@nshortmid"),qf(Uf,Vf,Jf,"∤","\\nmid",!0),qf(Uf,Vf,Jf,"⊬","\\nvdash",!0),qf(Uf,Vf,Jf,"⊭","\\nvDash",!0),qf(Uf,Vf,Jf,"⋪","\\ntriangleleft"),qf(Uf,Vf,Jf,"⋬","\\ntrianglelefteq",!0),qf(Uf,Vf,Jf,"⊊","\\subsetneq",!0),qf(Uf,Vf,Jf,"","\\@varsubsetneq"),qf(Uf,Vf,Jf,"⫋","\\subsetneqq",!0),qf(Uf,Vf,Jf,"","\\@varsubsetneqq"),qf(Uf,Vf,Jf,"≯","\\ngtr",!0),qf(Uf,Vf,Jf,"","\\@ngeqslant"),qf(Uf,Vf,Jf,"","\\@ngeqq"),qf(Uf,Vf,Jf,"⪈","\\gneq",!0),qf(Uf,Vf,Jf,"≩","\\gneqq",!0),qf(Uf,Vf,Jf,"","\\@gvertneqq"),qf(Uf,Vf,Jf,"⋧","\\gnsim",!0),qf(Uf,Vf,Jf,"⪊","\\gnapprox",!0),qf(Uf,Vf,Jf,"⊁","\\nsucc",!0),qf(Uf,Vf,Jf,"⋡","\\nsucceq",!0),qf(Uf,Vf,Jf,"⋩","\\succnsim",!0),qf(Uf,Vf,Jf,"⪺","\\succnapprox",!0),qf(Uf,Vf,Jf,"≆","\\ncong",!0),qf(Uf,Vf,Jf,"","\\@nshortparallel"),qf(Uf,Vf,Jf,"∦","\\nparallel",!0),qf(Uf,Vf,Jf,"⊯","\\nVDash",!0),qf(Uf,Vf,Jf,"⋫","\\ntriangleright"),qf(Uf,Vf,Jf,"⋭","\\ntrianglerighteq",!0),qf(Uf,Vf,Jf,"","\\@nsupseteqq"),qf(Uf,Vf,Jf,"⊋","\\supsetneq",!0),qf(Uf,Vf,Jf,"","\\@varsupsetneq"),qf(Uf,Vf,Jf,"⫌","\\supsetneqq",!0),qf(Uf,Vf,Jf,"","\\@varsupsetneqq"),qf(Uf,Vf,Jf,"⊮","\\nVdash",!0),qf(Uf,Vf,Jf,"⪵","\\precneqq",!0),qf(Uf,Vf,Jf,"⪶","\\succneqq",!0),qf(Uf,Vf,Jf,"","\\@nsubseteqq"),qf(Uf,Vf,$f,"⊴","\\unlhd"),qf(Uf,Vf,$f,"⊵","\\unrhd"),qf(Uf,Vf,Jf,"↚","\\nleftarrow",!0),qf(Uf,Vf,Jf,"↛","\\nrightarrow",!0),qf(Uf,Vf,Jf,"⇍","\\nLeftarrow",!0),qf(Uf,Vf,Jf,"⇏","\\nRightarrow",!0),qf(Uf,Vf,Jf,"↮","\\nleftrightarrow",!0),qf(Uf,Vf,Jf,"⇎","\\nLeftrightarrow",!0),qf(Uf,Vf,Jf,"△","\\vartriangle"),qf(Uf,Vf,tm,"ℏ","\\hslash"),qf(Uf,Vf,tm,"▽","\\triangledown"),qf(Uf,Vf,tm,"◊","\\lozenge"),qf(Uf,Vf,tm,"Ⓢ","\\circledS"),qf(Uf,Vf,tm,"®","\\circledR"),qf(Hf,Vf,tm,"®","\\circledR"),qf(Uf,Vf,tm,"∡","\\measuredangle",!0),qf(Uf,Vf,tm,"∄","\\nexists"),qf(Uf,Vf,tm,"℧","\\mho"),qf(Uf,Vf,tm,"Ⅎ","\\Finv",!0),qf(Uf,Vf,tm,"⅁","\\Game",!0),qf(Uf,Vf,tm,"‵","\\backprime"),qf(Uf,Vf,tm,"▲","\\blacktriangle"),qf(Uf,Vf,tm,"▼","\\blacktriangledown"),qf(Uf,Vf,tm,"■","\\blacksquare"),qf(Uf,Vf,tm,"⧫","\\blacklozenge"),qf(Uf,Vf,tm,"★","\\bigstar"),qf(Uf,Vf,tm,"∢","\\sphericalangle",!0),qf(Uf,Vf,tm,"∁","\\complement",!0),qf(Uf,Vf,tm,"ð","\\eth",!0),qf(Hf,Ff,tm,"ð","ð"),qf(Uf,Vf,tm,"╱","\\diagup"),qf(Uf,Vf,tm,"╲","\\diagdown"),qf(Uf,Vf,tm,"□","\\square"),qf(Uf,Vf,tm,"□","\\Box"),qf(Uf,Vf,tm,"◊","\\Diamond"),qf(Uf,Vf,tm,"¥","\\yen",!0),qf(Hf,Vf,tm,"¥","\\yen",!0),qf(Uf,Vf,tm,"✓","\\checkmark",!0),qf(Hf,Vf,tm,"✓","\\checkmark"),qf(Uf,Vf,tm,"ℶ","\\beth",!0),qf(Uf,Vf,tm,"ℸ","\\daleth",!0),qf(Uf,Vf,tm,"ℷ","\\gimel",!0),qf(Uf,Vf,tm,"ϝ","\\digamma",!0),qf(Uf,Vf,tm,"ϰ","\\varkappa"),qf(Uf,Vf,Xf,"┌","\\@ulcorner",!0),qf(Uf,Vf,Gf,"┐","\\@urcorner",!0),qf(Uf,Vf,Xf,"└","\\@llcorner",!0),qf(Uf,Vf,Gf,"┘","\\@lrcorner",!0),qf(Uf,Vf,Jf,"≦","\\leqq",!0),qf(Uf,Vf,Jf,"⩽","\\leqslant",!0),qf(Uf,Vf,Jf,"⪕","\\eqslantless",!0),qf(Uf,Vf,Jf,"≲","\\lesssim",!0),qf(Uf,Vf,Jf,"⪅","\\lessapprox",!0),qf(Uf,Vf,Jf,"≊","\\approxeq",!0),qf(Uf,Vf,$f,"⋖","\\lessdot"),qf(Uf,Vf,Jf,"⋘","\\lll",!0),qf(Uf,Vf,Jf,"≶","\\lessgtr",!0),qf(Uf,Vf,Jf,"⋚","\\lesseqgtr",!0),qf(Uf,Vf,Jf,"⪋","\\lesseqqgtr",!0),qf(Uf,Vf,Jf,"≑","\\doteqdot"),qf(Uf,Vf,Jf,"≓","\\risingdotseq",!0),qf(Uf,Vf,Jf,"≒","\\fallingdotseq",!0),qf(Uf,Vf,Jf,"∽","\\backsim",!0),qf(Uf,Vf,Jf,"⋍","\\backsimeq",!0),qf(Uf,Vf,Jf,"⫅","\\subseteqq",!0),qf(Uf,Vf,Jf,"⋐","\\Subset",!0),qf(Uf,Vf,Jf,"⊏","\\sqsubset",!0),qf(Uf,Vf,Jf,"≼","\\preccurlyeq",!0),qf(Uf,Vf,Jf,"⋞","\\curlyeqprec",!0),qf(Uf,Vf,Jf,"≾","\\precsim",!0),qf(Uf,Vf,Jf,"⪷","\\precapprox",!0),qf(Uf,Vf,Jf,"⊲","\\vartriangleleft"),qf(Uf,Vf,Jf,"⊴","\\trianglelefteq"),qf(Uf,Vf,Jf,"⊨","\\vDash",!0),qf(Uf,Vf,Jf,"⊪","\\Vvdash",!0),qf(Uf,Vf,Jf,"⌣","\\smallsmile"),qf(Uf,Vf,Jf,"⌢","\\smallfrown"),qf(Uf,Vf,Jf,"≏","\\bumpeq",!0),qf(Uf,Vf,Jf,"≎","\\Bumpeq",!0),qf(Uf,Vf,Jf,"≧","\\geqq",!0),qf(Uf,Vf,Jf,"⩾","\\geqslant",!0),qf(Uf,Vf,Jf,"⪖","\\eqslantgtr",!0),qf(Uf,Vf,Jf,"≳","\\gtrsim",!0),qf(Uf,Vf,Jf,"⪆","\\gtrapprox",!0),qf(Uf,Vf,$f,"⋗","\\gtrdot"),qf(Uf,Vf,Jf,"⋙","\\ggg",!0),qf(Uf,Vf,Jf,"≷","\\gtrless",!0),qf(Uf,Vf,Jf,"⋛","\\gtreqless",!0),qf(Uf,Vf,Jf,"⪌","\\gtreqqless",!0),qf(Uf,Vf,Jf,"≖","\\eqcirc",!0),qf(Uf,Vf,Jf,"≗","\\circeq",!0),qf(Uf,Vf,Jf,"≜","\\triangleq",!0),qf(Uf,Vf,Jf,"∼","\\thicksim"),qf(Uf,Vf,Jf,"≈","\\thickapprox"),qf(Uf,Vf,Jf,"⫆","\\supseteqq",!0),qf(Uf,Vf,Jf,"⋑","\\Supset",!0),qf(Uf,Vf,Jf,"⊐","\\sqsupset",!0),qf(Uf,Vf,Jf,"≽","\\succcurlyeq",!0),qf(Uf,Vf,Jf,"⋟","\\curlyeqsucc",!0),qf(Uf,Vf,Jf,"≿","\\succsim",!0),qf(Uf,Vf,Jf,"⪸","\\succapprox",!0),qf(Uf,Vf,Jf,"⊳","\\vartriangleright"),qf(Uf,Vf,Jf,"⊵","\\trianglerighteq"),qf(Uf,Vf,Jf,"⊩","\\Vdash",!0),qf(Uf,Vf,Jf,"∣","\\shortmid"),qf(Uf,Vf,Jf,"∥","\\shortparallel"),qf(Uf,Vf,Jf,"≬","\\between",!0),qf(Uf,Vf,Jf,"⋔","\\pitchfork",!0),qf(Uf,Vf,Jf,"∝","\\varpropto"),qf(Uf,Vf,Jf,"◀","\\blacktriangleleft"),qf(Uf,Vf,Jf,"∴","\\therefore",!0),qf(Uf,Vf,Jf,"∍","\\backepsilon"),qf(Uf,Vf,Jf,"▶","\\blacktriangleright"),qf(Uf,Vf,Jf,"∵","\\because",!0),qf(Uf,Vf,Jf,"⋘","\\llless"),qf(Uf,Vf,Jf,"⋙","\\gggtr"),qf(Uf,Vf,$f,"⊲","\\lhd"),qf(Uf,Vf,$f,"⊳","\\rhd"),qf(Uf,Vf,Jf,"≂","\\eqsim",!0),qf(Uf,Ff,Jf,"⋈","\\Join"),qf(Uf,Vf,Jf,"≑","\\Doteq",!0),qf(Uf,Vf,$f,"∔","\\dotplus",!0),qf(Uf,Vf,$f,"∖","\\smallsetminus"),qf(Uf,Vf,$f,"⋒","\\Cap",!0),qf(Uf,Vf,$f,"⋓","\\Cup",!0),qf(Uf,Vf,$f,"⩞","\\doublebarwedge",!0),qf(Uf,Vf,$f,"⊟","\\boxminus",!0),qf(Uf,Vf,$f,"⊞","\\boxplus",!0),qf(Uf,Vf,$f,"⋇","\\divideontimes",!0),qf(Uf,Vf,$f,"⋉","\\ltimes",!0),qf(Uf,Vf,$f,"⋊","\\rtimes",!0),qf(Uf,Vf,$f,"⋋","\\leftthreetimes",!0),qf(Uf,Vf,$f,"⋌","\\rightthreetimes",!0),qf(Uf,Vf,$f,"⋏","\\curlywedge",!0),qf(Uf,Vf,$f,"⋎","\\curlyvee",!0),qf(Uf,Vf,$f,"⊝","\\circleddash",!0),qf(Uf,Vf,$f,"⊛","\\circledast",!0),qf(Uf,Vf,$f,"⋅","\\centerdot"),qf(Uf,Vf,$f,"⊺","\\intercal",!0),qf(Uf,Vf,$f,"⋒","\\doublecap"),qf(Uf,Vf,$f,"⋓","\\doublecup"),qf(Uf,Vf,$f,"⊠","\\boxtimes",!0),qf(Uf,Vf,Jf,"⇢","\\dashrightarrow",!0),qf(Uf,Vf,Jf,"⇠","\\dashleftarrow",!0),qf(Uf,Vf,Jf,"⇇","\\leftleftarrows",!0),qf(Uf,Vf,Jf,"⇆","\\leftrightarrows",!0),qf(Uf,Vf,Jf,"⇚","\\Lleftarrow",!0),qf(Uf,Vf,Jf,"↞","\\twoheadleftarrow",!0),qf(Uf,Vf,Jf,"↢","\\leftarrowtail",!0),qf(Uf,Vf,Jf,"↫","\\looparrowleft",!0),qf(Uf,Vf,Jf,"⇋","\\leftrightharpoons",!0),qf(Uf,Vf,Jf,"↶","\\curvearrowleft",!0),qf(Uf,Vf,Jf,"↺","\\circlearrowleft",!0),qf(Uf,Vf,Jf,"↰","\\Lsh",!0),qf(Uf,Vf,Jf,"⇈","\\upuparrows",!0),qf(Uf,Vf,Jf,"↿","\\upharpoonleft",!0),qf(Uf,Vf,Jf,"⇃","\\downharpoonleft",!0),qf(Uf,Ff,Jf,"⊶","\\origof",!0),qf(Uf,Ff,Jf,"⊷","\\imageof",!0),qf(Uf,Vf,Jf,"⊸","\\multimap",!0),qf(Uf,Vf,Jf,"↭","\\leftrightsquigarrow",!0),qf(Uf,Vf,Jf,"⇉","\\rightrightarrows",!0),qf(Uf,Vf,Jf,"⇄","\\rightleftarrows",!0),qf(Uf,Vf,Jf,"↠","\\twoheadrightarrow",!0),qf(Uf,Vf,Jf,"↣","\\rightarrowtail",!0),qf(Uf,Vf,Jf,"↬","\\looparrowright",!0),qf(Uf,Vf,Jf,"↷","\\curvearrowright",!0),qf(Uf,Vf,Jf,"↻","\\circlearrowright",!0),qf(Uf,Vf,Jf,"↱","\\Rsh",!0),qf(Uf,Vf,Jf,"⇊","\\downdownarrows",!0),qf(Uf,Vf,Jf,"↾","\\upharpoonright",!0),qf(Uf,Vf,Jf,"⇂","\\downharpoonright",!0),qf(Uf,Vf,Jf,"⇝","\\rightsquigarrow",!0),qf(Uf,Vf,Jf,"⇝","\\leadsto"),qf(Uf,Vf,Jf,"⇛","\\Rrightarrow",!0),qf(Uf,Vf,Jf,"↾","\\restriction"),qf(Uf,Ff,tm,"‘","`"),qf(Uf,Ff,tm,"$","\\$"),qf(Hf,Ff,tm,"$","\\$"),qf(Hf,Ff,tm,"$","\\textdollar"),qf(Uf,Ff,tm,"%","\\%"),qf(Hf,Ff,tm,"%","\\%"),qf(Uf,Ff,tm,"_","\\_"),qf(Hf,Ff,tm,"_","\\_"),qf(Hf,Ff,tm,"_","\\textunderscore"),qf(Uf,Ff,tm,"∠","\\angle",!0),qf(Uf,Ff,tm,"∞","\\infty",!0),qf(Uf,Ff,tm,"′","\\prime"),qf(Uf,Ff,tm,"△","\\triangle"),qf(Uf,Ff,tm,"Γ","\\Gamma",!0),qf(Uf,Ff,tm,"Δ","\\Delta",!0),qf(Uf,Ff,tm,"Θ","\\Theta",!0),qf(Uf,Ff,tm,"Λ","\\Lambda",!0),qf(Uf,Ff,tm,"Ξ","\\Xi",!0),qf(Uf,Ff,tm,"Π","\\Pi",!0),qf(Uf,Ff,tm,"Σ","\\Sigma",!0),qf(Uf,Ff,tm,"Υ","\\Upsilon",!0),qf(Uf,Ff,tm,"Φ","\\Phi",!0),qf(Uf,Ff,tm,"Ψ","\\Psi",!0),qf(Uf,Ff,tm,"Ω","\\Omega",!0),qf(Uf,Ff,tm,"A","Α"),qf(Uf,Ff,tm,"B","Β"),qf(Uf,Ff,tm,"E","Ε"),qf(Uf,Ff,tm,"Z","Ζ"),qf(Uf,Ff,tm,"H","Η"),qf(Uf,Ff,tm,"I","Ι"),qf(Uf,Ff,tm,"K","Κ"),qf(Uf,Ff,tm,"M","Μ"),qf(Uf,Ff,tm,"N","Ν"),qf(Uf,Ff,tm,"O","Ο"),qf(Uf,Ff,tm,"P","Ρ"),qf(Uf,Ff,tm,"T","Τ"),qf(Uf,Ff,tm,"X","Χ"),qf(Uf,Ff,tm,"¬","\\neg",!0),qf(Uf,Ff,tm,"¬","\\lnot"),qf(Uf,Ff,tm,"⊤","\\top"),qf(Uf,Ff,tm,"⊥","\\bot"),qf(Uf,Ff,tm,"∅","\\emptyset"),qf(Uf,Vf,tm,"∅","\\varnothing"),qf(Uf,Ff,Qf,"α","\\alpha",!0),qf(Uf,Ff,Qf,"β","\\beta",!0),qf(Uf,Ff,Qf,"γ","\\gamma",!0),qf(Uf,Ff,Qf,"δ","\\delta",!0),qf(Uf,Ff,Qf,"ϵ","\\epsilon",!0),qf(Uf,Ff,Qf,"ζ","\\zeta",!0),qf(Uf,Ff,Qf,"η","\\eta",!0),qf(Uf,Ff,Qf,"θ","\\theta",!0),qf(Uf,Ff,Qf,"ι","\\iota",!0),qf(Uf,Ff,Qf,"κ","\\kappa",!0),qf(Uf,Ff,Qf,"λ","\\lambda",!0),qf(Uf,Ff,Qf,"μ","\\mu",!0),qf(Uf,Ff,Qf,"ν","\\nu",!0),qf(Uf,Ff,Qf,"ξ","\\xi",!0),qf(Uf,Ff,Qf,"ο","\\omicron",!0),qf(Uf,Ff,Qf,"π","\\pi",!0),qf(Uf,Ff,Qf,"ρ","\\rho",!0),qf(Uf,Ff,Qf,"σ","\\sigma",!0),qf(Uf,Ff,Qf,"τ","\\tau",!0),qf(Uf,Ff,Qf,"υ","\\upsilon",!0),qf(Uf,Ff,Qf,"ϕ","\\phi",!0),qf(Uf,Ff,Qf,"χ","\\chi",!0),qf(Uf,Ff,Qf,"ψ","\\psi",!0),qf(Uf,Ff,Qf,"ω","\\omega",!0),qf(Uf,Ff,Qf,"ε","\\varepsilon",!0),qf(Uf,Ff,Qf,"ϑ","\\vartheta",!0),qf(Uf,Ff,Qf,"ϖ","\\varpi",!0),qf(Uf,Ff,Qf,"ϱ","\\varrho",!0),qf(Uf,Ff,Qf,"ς","\\varsigma",!0),qf(Uf,Ff,Qf,"φ","\\varphi",!0),qf(Uf,Ff,$f,"∗","*",!0),qf(Uf,Ff,$f,"+","+"),qf(Uf,Ff,$f,"−","-",!0),qf(Uf,Ff,$f,"⋅","\\cdot",!0),qf(Uf,Ff,$f,"∘","\\circ",!0),qf(Uf,Ff,$f,"÷","\\div",!0),qf(Uf,Ff,$f,"±","\\pm",!0),qf(Uf,Ff,$f,"×","\\times",!0),qf(Uf,Ff,$f,"∩","\\cap",!0),qf(Uf,Ff,$f,"∪","\\cup",!0),qf(Uf,Ff,$f,"∖","\\setminus",!0),qf(Uf,Ff,$f,"∧","\\land"),qf(Uf,Ff,$f,"∨","\\lor"),qf(Uf,Ff,$f,"∧","\\wedge",!0),qf(Uf,Ff,$f,"∨","\\vee",!0),qf(Uf,Ff,tm,"√","\\surd"),qf(Uf,Ff,Xf,"⟨","\\langle",!0),qf(Uf,Ff,Xf,"∣","\\lvert"),qf(Uf,Ff,Xf,"∥","\\lVert"),qf(Uf,Ff,Gf,"?","?"),qf(Uf,Ff,Gf,"!","!"),qf(Uf,Ff,Gf,"⟩","\\rangle",!0),qf(Uf,Ff,Gf,"∣","\\rvert"),qf(Uf,Ff,Gf,"∥","\\rVert"),qf(Uf,Ff,Jf,"=","="),qf(Uf,Ff,Jf,":",":"),qf(Uf,Ff,Jf,"≈","\\approx",!0),qf(Uf,Ff,Jf,"≅","\\cong",!0),qf(Uf,Ff,Jf,"≥","\\ge"),qf(Uf,Ff,Jf,"≥","\\geq",!0),qf(Uf,Ff,Jf,"←","\\gets"),qf(Uf,Ff,Jf,">","\\gt",!0),qf(Uf,Ff,Jf,"∈","\\in",!0),qf(Uf,Ff,Jf,"","\\@not"),qf(Uf,Ff,Jf,"⊂","\\subset",!0),qf(Uf,Ff,Jf,"⊃","\\supset",!0),qf(Uf,Ff,Jf,"⊆","\\subseteq",!0),qf(Uf,Ff,Jf,"⊇","\\supseteq",!0),qf(Uf,Vf,Jf,"⊈","\\nsubseteq",!0),qf(Uf,Vf,Jf,"⊉","\\nsupseteq",!0),qf(Uf,Ff,Jf,"⊨","\\models"),qf(Uf,Ff,Jf,"←","\\leftarrow",!0),qf(Uf,Ff,Jf,"≤","\\le"),qf(Uf,Ff,Jf,"≤","\\leq",!0),qf(Uf,Ff,Jf,"<","\\lt",!0),qf(Uf,Ff,Jf,"→","\\rightarrow",!0),qf(Uf,Ff,Jf,"→","\\to"),qf(Uf,Vf,Jf,"≱","\\ngeq",!0),qf(Uf,Vf,Jf,"≰","\\nleq",!0),qf(Uf,Ff,em," ","\\ "),qf(Uf,Ff,em," ","\\space"),qf(Uf,Ff,em," ","\\nobreakspace"),qf(Hf,Ff,em," ","\\ "),qf(Hf,Ff,em," "," "),qf(Hf,Ff,em," ","\\space"),qf(Hf,Ff,em," ","\\nobreakspace"),qf(Uf,Ff,em,null,"\\nobreak"),qf(Uf,Ff,em,null,"\\allowbreak"),qf(Uf,Ff,Zf,",",","),qf(Uf,Ff,Zf,";",";"),qf(Uf,Vf,$f,"⊼","\\barwedge",!0),qf(Uf,Vf,$f,"⊻","\\veebar",!0),qf(Uf,Ff,$f,"⊙","\\odot",!0),qf(Uf,Ff,$f,"⊕","\\oplus",!0),qf(Uf,Ff,$f,"⊗","\\otimes",!0),qf(Uf,Ff,tm,"∂","\\partial",!0),qf(Uf,Ff,$f,"⊘","\\oslash",!0),qf(Uf,Vf,$f,"⊚","\\circledcirc",!0),qf(Uf,Vf,$f,"⊡","\\boxdot",!0),qf(Uf,Ff,$f,"△","\\bigtriangleup"),qf(Uf,Ff,$f,"▽","\\bigtriangledown"),qf(Uf,Ff,$f,"†","\\dagger"),qf(Uf,Ff,$f,"⋄","\\diamond"),qf(Uf,Ff,$f,"⋆","\\star"),qf(Uf,Ff,$f,"◃","\\triangleleft"),qf(Uf,Ff,$f,"▹","\\triangleright"),qf(Uf,Ff,Xf,"{","\\{"),qf(Hf,Ff,tm,"{","\\{"),qf(Hf,Ff,tm,"{","\\textbraceleft"),qf(Uf,Ff,Gf,"}","\\}"),qf(Hf,Ff,tm,"}","\\}"),qf(Hf,Ff,tm,"}","\\textbraceright"),qf(Uf,Ff,Xf,"{","\\lbrace"),qf(Uf,Ff,Gf,"}","\\rbrace"),qf(Uf,Ff,Xf,"[","\\lbrack",!0),qf(Hf,Ff,tm,"[","\\lbrack",!0),qf(Uf,Ff,Gf,"]","\\rbrack",!0),qf(Hf,Ff,tm,"]","\\rbrack",!0),qf(Uf,Ff,Xf,"(","\\lparen",!0),qf(Uf,Ff,Gf,")","\\rparen",!0),qf(Hf,Ff,tm,"<","\\textless",!0),qf(Hf,Ff,tm,">","\\textgreater",!0),qf(Uf,Ff,Xf,"⌊","\\lfloor",!0),qf(Uf,Ff,Gf,"⌋","\\rfloor",!0),qf(Uf,Ff,Xf,"⌈","\\lceil",!0),qf(Uf,Ff,Gf,"⌉","\\rceil",!0),qf(Uf,Ff,tm,"\\","\\backslash"),qf(Uf,Ff,tm,"∣","|"),qf(Uf,Ff,tm,"∣","\\vert"),qf(Hf,Ff,tm,"|","\\textbar",!0),qf(Uf,Ff,tm,"∥","\\|"),qf(Uf,Ff,tm,"∥","\\Vert"),qf(Hf,Ff,tm,"∥","\\textbardbl"),qf(Hf,Ff,tm,"~","\\textasciitilde"),qf(Hf,Ff,tm,"\\","\\textbackslash"),qf(Hf,Ff,tm,"^","\\textasciicircum"),qf(Uf,Ff,Jf,"↑","\\uparrow",!0),qf(Uf,Ff,Jf,"⇑","\\Uparrow",!0),qf(Uf,Ff,Jf,"↓","\\downarrow",!0),qf(Uf,Ff,Jf,"⇓","\\Downarrow",!0),qf(Uf,Ff,Jf,"↕","\\updownarrow",!0),qf(Uf,Ff,Jf,"⇕","\\Updownarrow",!0),qf(Uf,Ff,Kf,"∐","\\coprod"),qf(Uf,Ff,Kf,"⋁","\\bigvee"),qf(Uf,Ff,Kf,"⋀","\\bigwedge"),qf(Uf,Ff,Kf,"⨄","\\biguplus"),qf(Uf,Ff,Kf,"⋂","\\bigcap"),qf(Uf,Ff,Kf,"⋃","\\bigcup"),qf(Uf,Ff,Kf,"∫","\\int"),qf(Uf,Ff,Kf,"∫","\\intop"),qf(Uf,Ff,Kf,"∬","\\iint"),qf(Uf,Ff,Kf,"∭","\\iiint"),qf(Uf,Ff,Kf,"∏","\\prod"),qf(Uf,Ff,Kf,"∑","\\sum"),qf(Uf,Ff,Kf,"⨂","\\bigotimes"),qf(Uf,Ff,Kf,"⨁","\\bigoplus"),qf(Uf,Ff,Kf,"⨀","\\bigodot"),qf(Uf,Ff,Kf,"∮","\\oint"),qf(Uf,Ff,Kf,"∯","\\oiint"),qf(Uf,Ff,Kf,"∰","\\oiiint"),qf(Uf,Ff,Kf,"⨆","\\bigsqcup"),qf(Uf,Ff,Kf,"∫","\\smallint"),qf(Hf,Ff,Yf,"…","\\textellipsis"),qf(Uf,Ff,Yf,"…","\\mathellipsis"),qf(Hf,Ff,Yf,"…","\\ldots",!0),qf(Uf,Ff,Yf,"…","\\ldots",!0),qf(Uf,Ff,Yf,"⋯","\\@cdots",!0),qf(Uf,Ff,Yf,"⋱","\\ddots",!0),qf(Uf,Ff,tm,"⋮","\\varvdots"),qf(Uf,Ff,Wf,"ˊ","\\acute"),qf(Uf,Ff,Wf,"ˋ","\\grave"),qf(Uf,Ff,Wf,"¨","\\ddot"),qf(Uf,Ff,Wf,"~","\\tilde"),qf(Uf,Ff,Wf,"ˉ","\\bar"),qf(Uf,Ff,Wf,"˘","\\breve"),qf(Uf,Ff,Wf,"ˇ","\\check"),qf(Uf,Ff,Wf,"^","\\hat"),qf(Uf,Ff,Wf,"⃗","\\vec"),qf(Uf,Ff,Wf,"˙","\\dot"),qf(Uf,Ff,Wf,"˚","\\mathring"),qf(Uf,Ff,Qf,"","\\@imath"),qf(Uf,Ff,Qf,"","\\@jmath"),qf(Uf,Ff,tm,"ı","ı"),qf(Uf,Ff,tm,"ȷ","ȷ"),qf(Hf,Ff,tm,"ı","\\i",!0),qf(Hf,Ff,tm,"ȷ","\\j",!0),qf(Hf,Ff,tm,"ß","\\ss",!0),qf(Hf,Ff,tm,"æ","\\ae",!0),qf(Hf,Ff,tm,"œ","\\oe",!0),qf(Hf,Ff,tm,"ø","\\o",!0),qf(Hf,Ff,tm,"Æ","\\AE",!0),qf(Hf,Ff,tm,"Œ","\\OE",!0),qf(Hf,Ff,tm,"Ø","\\O",!0),qf(Hf,Ff,Wf,"ˊ","\\'"),qf(Hf,Ff,Wf,"ˋ","\\`"),qf(Hf,Ff,Wf,"ˆ","\\^"),qf(Hf,Ff,Wf,"˜","\\~"),qf(Hf,Ff,Wf,"ˉ","\\="),qf(Hf,Ff,Wf,"˘","\\u"),qf(Hf,Ff,Wf,"˙","\\."),qf(Hf,Ff,Wf,"¸","\\c"),qf(Hf,Ff,Wf,"˚","\\r"),qf(Hf,Ff,Wf,"ˇ","\\v"),qf(Hf,Ff,Wf,"¨",'\\"'),qf(Hf,Ff,Wf,"˝","\\H"),qf(Hf,Ff,Wf,"◯","\\textcircled");var rm={"--":!0,"---":!0,"``":!0,"''":!0};qf(Hf,Ff,tm,"–","--",!0),qf(Hf,Ff,tm,"–","\\textendash"),qf(Hf,Ff,tm,"—","---",!0),qf(Hf,Ff,tm,"—","\\textemdash"),qf(Hf,Ff,tm,"‘","`",!0),qf(Hf,Ff,tm,"‘","\\textquoteleft"),qf(Hf,Ff,tm,"’","'",!0),qf(Hf,Ff,tm,"’","\\textquoteright"),qf(Hf,Ff,tm,"“","``",!0),qf(Hf,Ff,tm,"“","\\textquotedblleft"),qf(Hf,Ff,tm,"”","''",!0),qf(Hf,Ff,tm,"”","\\textquotedblright"),qf(Uf,Ff,tm,"°","\\degree",!0),qf(Hf,Ff,tm,"°","\\degree"),qf(Hf,Ff,tm,"°","\\textdegree",!0),qf(Uf,Ff,tm,"£","\\pounds"),qf(Uf,Ff,tm,"£","\\mathsterling",!0),qf(Hf,Ff,tm,"£","\\pounds"),qf(Hf,Ff,tm,"£","\\textsterling",!0),qf(Uf,Vf,tm,"✠","\\maltese"),qf(Hf,Vf,tm,"✠","\\maltese");for(var nm='0123456789/@."',am=0;am<14;am++){var im=nm.charAt(am);qf(Uf,Ff,tm,im,im)}for(var om='0123456789!@*()-=+";:?/.,',sm=0;sm<25;sm++){var lm=om.charAt(sm);qf(Hf,Ff,tm,lm,lm)}for(var um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",cm=0;cm<52;cm++){var dm=um.charAt(cm);qf(Uf,Ff,Qf,dm,dm),qf(Hf,Ff,tm,dm,dm)}qf(Uf,Vf,tm,"C","ℂ"),qf(Hf,Vf,tm,"C","ℂ"),qf(Uf,Vf,tm,"H","ℍ"),qf(Hf,Vf,tm,"H","ℍ"),qf(Uf,Vf,tm,"N","ℕ"),qf(Hf,Vf,tm,"N","ℕ"),qf(Uf,Vf,tm,"P","ℙ"),qf(Hf,Vf,tm,"P","ℙ"),qf(Uf,Vf,tm,"Q","ℚ"),qf(Hf,Vf,tm,"Q","ℚ"),qf(Uf,Vf,tm,"R","ℝ"),qf(Hf,Vf,tm,"R","ℝ"),qf(Uf,Vf,tm,"Z","ℤ"),qf(Hf,Vf,tm,"Z","ℤ"),qf(Uf,Ff,Qf,"h","ℎ"),qf(Hf,Ff,Qf,"h","ℎ");for(var hm="",pm=0;pm<52;pm++){var fm=um.charAt(pm);qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56320+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56372+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56424+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56580+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56684+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56736+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56788+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56840+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56944+pm)),qf(Hf,Ff,tm,fm,hm),pm<26&&(qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56632+pm)),qf(Hf,Ff,tm,fm,hm),qf(Uf,Ff,Qf,fm,hm=String.fromCharCode(55349,56476+pm)),qf(Hf,Ff,tm,fm,hm))}qf(Uf,Ff,Qf,"k",hm=String.fromCharCode(55349,56668)),qf(Hf,Ff,tm,"k",hm);for(var mm=0;mm<10;mm++){var gm=mm.toString();qf(Uf,Ff,Qf,gm,hm=String.fromCharCode(55349,57294+mm)),qf(Hf,Ff,tm,gm,hm),qf(Uf,Ff,Qf,gm,hm=String.fromCharCode(55349,57314+mm)),qf(Hf,Ff,tm,gm,hm),qf(Uf,Ff,Qf,gm,hm=String.fromCharCode(55349,57324+mm)),qf(Hf,Ff,tm,gm,hm),qf(Uf,Ff,Qf,gm,hm=String.fromCharCode(55349,57334+mm)),qf(Hf,Ff,tm,gm,hm)}for(var vm="ÐÞþ",ym=0;ym<3;ym++){var bm=vm.charAt(ym);qf(Uf,Ff,Qf,bm,bm),qf(Hf,Ff,tm,bm,bm)}var wm=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],xm=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Sm=function(e,t,r){return Bf[r][e]&&Bf[r][e].replace&&(e=Bf[r][e].replace),{value:e,metrics:pf(e,t,r)}},km=function(e,t,r,n,a){var i,o=Sm(e,t,r),s=o.metrics;if(e=o.value,s){var l=s.italic;("text"===r||n&&"mathit"===n.font)&&(l=0),i=new Mf(e,s.height,s.depth,l,s.skew,s.width,a)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+r+"'"),i=new Mf(e,0,0,0,0,0,a);if(n){i.maxFontSize=n.sizeMultiplier,n.style.isTight()&&i.classes.push("mtight");var u=n.getColor();u&&(i.style.color=u)}return i},Em=(e,t)=>{if(Ef(e.classes)!==Ef(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},Tm=function(e){for(var t=0,r=0,n=0,a=0;a<e.children.length;a++){var i=e.children[a];i.height>t&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},_m=function(e,t,r,n){var a=new Cf(e,t,r,n);return Tm(a),a},Nm=(e,t,r,n)=>new Cf(e,t,r,n),Cm=function(e){var t=new uf(e);return Tm(t),t},Om=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Im={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-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"}},Rm={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Mm={fontMap:Im,makeSymbol:km,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&Sm(e,"Main-Bold",t).metrics?km(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===Bf[t][e].font?km(e,"Main-Regular",t,r,n):km(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:_m,makeSvgSpan:Nm,makeLineSpan:function(e,t,r){var n=_m([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=kf(n.height),n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var a=new Of(e,t,r,n);return Tm(a),a},makeFragment:Cm,wrapFragment:function(e,t){return e instanceof uf?_m([],[e],t):e},makeVList:function(e,t){for(var{children:r,depth:n}=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,a=n,i=1;i<t.length;i++){var o=-t[i].shift-a-t[i].elem.depth,s=o-(t[i-1].elem.height+t[i-1].elem.depth);a+=o,r.push({type:"kern",size:s}),r.push(t[i])}return{children:r,depth:n}}var l;if("top"===e.positionType){for(var u=e.positionData,c=0;c<e.children.length;c++){var d=e.children[c];u-="kern"===d.type?d.size:d.elem.height+d.elem.depth}l=u}else if("bottom"===e.positionType)l=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-h.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-h.elem.depth}}return{children:e.children,depth:l}}(e),a=0,i=0;i<r.length;i++){var o=r[i];if("elem"===o.type){var s=o.elem;a=Math.max(a,s.maxFontSize,s.height)}}a+=2;var l=_m(["pstrut"],[]);l.style.height=kf(a);for(var u=[],c=n,d=n,h=n,p=0;p<r.length;p++){var f=r[p];if("kern"===f.type)h+=f.size;else{var m=f.elem,g=f.wrapperClasses||[],v=f.wrapperStyle||{},y=_m(g,[l,m],void 0,v);y.style.top=kf(-a-h-m.depth),f.marginLeft&&(y.style.marginLeft=f.marginLeft),f.marginRight&&(y.style.marginRight=f.marginRight),u.push(y),h+=m.height+m.depth}c=Math.min(c,h),d=Math.max(d,h)}var b,w=_m(["vlist"],u);if(w.style.height=kf(d),c<0){var x=_m([],[]),S=_m(["vlist"],[x]);S.style.height=kf(-c);var k=_m(["vlist-s"],[new Mf("")]);b=[_m(["vlist-r"],[w,k]),_m(["vlist-r"],[S])]}else b=[_m(["vlist-r"],[w])];var E=_m(["vlist-t"],b);return 2===b.length&&E.classes.push("vlist-t2"),E.height=d,E.depth=-c,E},makeOrd:function(e,t,r){var n=e.mode,a=e.text,i=["mord"],o="math"===n||"text"===n&&t.font,s=o?t.font:t.fontFamily,l="",u="";if(55349===a.charCodeAt(0)&&([l,u]=function(e,t){var r=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,n="math"===t?0:1;if(119808<=r&&r<120484){var a=Math.floor((r-119808)/26);return[wm[a][2],wm[a][n]]}if(120782<=r&&r<=120831){var i=Math.floor((r-120782)/10);return[xm[i][2],xm[i][n]]}if(120485===r||120486===r)return[wm[0][2],wm[0][n]];if(120486<r&&r<120782)return["",""];throw new Bp("Unsupported character: "+e)}(a,n)),l.length>0)return km(a,l,n,t,i.concat(u));if(s){var c,d;if("boldsymbol"===s){var h=function(e,t,r,n,a){return"textord"!==a&&Sm(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(a,n,0,0,r);c=h.fontName,d=[h.fontClass]}else o?(c=Im[s].fontName,d=[s]):(c=Om(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(Sm(a,c,n).metrics)return km(a,c,n,t,i.concat(d));if(rm.hasOwnProperty(a)&&"Typewriter"===c.slice(0,10)){for(var p=[],f=0;f<a.length;f++)p.push(km(a[f],c,n,t,i.concat(d)));return Cm(p)}}if("mathord"===r)return km(a,"Math-Italic",n,t,i.concat(["mathnormal"]));if("textord"===r){var m=Bf[n][a]&&Bf[n][a].font;if("ams"===m){var g=Om("amsrm",t.fontWeight,t.fontShape);return km(a,g,n,t,i.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==m&&m){var v=Om(m,t.fontWeight,t.fontShape);return km(a,v,n,t,i.concat(v,t.fontWeight,t.fontShape))}var y=Om("textrm",t.fontWeight,t.fontShape);return km(a,y,n,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},makeGlue:(e,t)=>{var r=_m(["mspace"],[],t),n=Sf(e,t);return r.style.marginRight=kf(n),r},staticSvg:function(e,t){var[r,n,a]=Rm[e],i=new zf(r),o=new Af([i],{width:kf(n),height:kf(a),style:"width:"+kf(n),viewBox:"0 0 "+1e3*n+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),s=Nm(["overlay"],[o],t);return s.height=a,s.style.height=kf(a),s.style.width=kf(n),s},svgData:Rm,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Mf&&n instanceof Mf&&Em(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e}},Am={number:3,unit:"mu"},zm={number:4,unit:"mu"},Dm={number:5,unit:"mu"},Lm={mord:{mop:Am,mbin:zm,mrel:Dm,minner:Am},mop:{mord:Am,mop:Am,mrel:Dm,minner:Am},mbin:{mord:zm,mop:zm,mopen:zm,minner:zm},mrel:{mord:Dm,mop:Dm,mopen:Dm,minner:Dm},mopen:{},mclose:{mop:Am,mbin:zm,mrel:Dm,minner:Am},mpunct:{mord:Am,mop:Am,mrel:Dm,mopen:Am,mclose:Am,mpunct:Am,minner:Am},minner:{mord:Am,mop:Am,mbin:zm,mrel:Dm,mopen:Am,mpunct:Am,minner:Am}},Pm={mord:{mop:Am},mop:{mord:Am,mop:Am},mbin:{},mrel:{},mopen:{},mclose:{mop:Am},mpunct:{},minner:{mop:Am}},jm={},Bm={},qm={};function Um(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},l=0;l<r.length;++l)jm[r[l]]=s;t&&(i&&(Bm[t]=i),o&&(qm[t]=o))}function Hm(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;Um({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var Fm=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},Vm=function(e){return"ordgroup"===e.type?e.body:[e]},Wm=Mm.makeSpan,$m=["leftmost","mbin","mopen","mrel","mop","mpunct"],Gm=["rightmost","mrel","mclose","mpunct"],Ym={display:rf.DISPLAY,text:rf.TEXT,script:rf.SCRIPT,scriptscript:rf.SCRIPTSCRIPT},Qm={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Km=function(e,t,r,n){void 0===n&&(n=[null,null]);for(var a=[],i=0;i<e.length;i++){var o=rg(e[i],t);if(o instanceof uf){var s=o.children;a.push(...s)}else a.push(o)}if(Mm.tryCombineChars(a),!r)return a;var l=t;if(1===e.length){var u=e[0];"sizing"===u.type?l=t.havingSize(u.size):"styling"===u.type&&(l=t.havingStyle(Ym[u.style]))}var c=Wm([n[0]||"leftmost"],[],t),d=Wm([n[1]||"rightmost"],[],t),h="root"===r;return Xm(a,(e,t)=>{var r=t.classes[0],n=e.classes[0];"mbin"===r&&Vp.contains(Gm,n)?t.classes[0]="mord":"mbin"===n&&Vp.contains($m,r)&&(e.classes[0]="mord")},{node:c},d,h),Xm(a,(e,t)=>{var r=eg(t),n=eg(e),a=r&&n?e.hasClass("mtight")?Pm[r][n]:Lm[r][n]:null;if(a)return Mm.makeGlue(a,l)},{node:c},d,h),a},Xm=function e(t,r,n,a,i){a&&t.push(a);for(var o=0;o<t.length;o++){var s=t[o],l=Zm(s);if(l)e(l.children,r,n,null,i);else{var u=!s.hasClass("mspace");if(u){var c=r(s,n.node);c&&(n.insertAfter?n.insertAfter(c):(t.unshift(c),o++))}u?n.node=s:i&&s.hasClass("newline")&&(n.node=Wm(["leftmost"])),n.insertAfter=(e=>r=>{t.splice(e+1,0,r),o++})(o)}}a&&t.pop()},Zm=function(e){return e instanceof uf||e instanceof Of||e instanceof Cf&&e.hasClass("enclosing")?e:null},Jm=function e(t,r){var n=Zm(t);if(n){var a=n.children;if(a.length){if("right"===r)return e(a[a.length-1],"right");if("left"===r)return e(a[0],"left")}}return t},eg=function(e,t){return e?(t&&(e=Jm(e,t)),Qm[e.classes[0]]||null):null},tg=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Wm(t.concat(r))},rg=function(e,t,r){if(!e)return Wm();if(Bm[e.type]){var n=Bm[e.type](e,t);if(r&&t.size!==r.size){n=Wm(t.sizingClasses(r),[n],t);var a=t.sizeMultiplier/r.sizeMultiplier;n.height*=a,n.depth*=a}return n}throw new Bp("Got group of unknown type: '"+e.type+"'")};function ng(e,t){var r=Wm(["base"],e,t),n=Wm(["strut"]);return n.style.height=kf(r.height+r.depth),r.depth&&(n.style.verticalAlign=kf(-r.depth)),r.children.unshift(n),r}function ag(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var n,a=Km(e,t,"root");2===a.length&&a[1].hasClass("tag")&&(n=a.pop());for(var i,o=[],s=[],l=0;l<a.length;l++)if(s.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var u=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,s.push(a[l]),a[l].hasClass("nobreak")&&(u=!0);u||(o.push(ng(s,t)),s=[])}else a[l].hasClass("newline")&&(s.pop(),s.length>0&&(o.push(ng(s,t)),s=[]),o.push(a[l]));s.length>0&&o.push(ng(s,t)),r?((i=ng(Km(r,t,!0))).classes=["tag"],o.push(i)):n&&o.push(n);var c=Wm(["katex-html"],o);if(c.setAttribute("aria-hidden","true"),i){var d=i.children[0];d.style.height=kf(c.height+c.depth),c.depth&&(d.style.verticalAlign=kf(-c.depth))}return c}function ig(e){return new uf(e)}class og{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=Ef(this.classes));for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=Vp.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+Vp.escape(Ef(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class sg{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Vp.escape(this.toText())}toText(){return this.text}}var lg={MathNode:og,TextNode:sg,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",kf(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+kf(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:ig},ug=function(e,t,r){return!Bf[t][e]||!Bf[t][e].replace||55349===e.charCodeAt(0)||rm.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=Bf[t][e].replace),new lg.TextNode(e)},cg=function(e){return 1===e.length?e[0]:new lg.MathNode("mrow",e)},dg=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var a=e.text;return Vp.contains(["\\imath","\\jmath"],a)?null:(Bf[n][a]&&Bf[n][a].replace&&(a=Bf[n][a].replace),pf(a,Mm.fontMap[r].fontName,n)?Mm.fontMap[r].variant:null)},hg=function(e,t,r){if(1===e.length){var n=fg(e[0],t);return r&&n instanceof og&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var a,i=[],o=0;o<e.length;o++){var s=fg(e[o],t);if(s instanceof og&&a instanceof og){if("mtext"===s.type&&"mtext"===a.type&&s.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...s.children);continue}if("mn"===s.type&&"mn"===a.type){a.children.push(...s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===a.type){var l=s.children[0];if(l instanceof sg&&"."===l.text){a.children.push(...s.children);continue}}else if("mi"===a.type&&1===a.children.length){var u=a.children[0];if(u instanceof sg&&"̸"===u.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var c=s.children[0];c instanceof sg&&c.text.length>0&&(c.text=c.text.slice(0,1)+"̸"+c.text.slice(1),i.pop())}}}i.push(s),a=s}return i},pg=function(e,t,r){return cg(hg(e,t,r))},fg=function(e,t){if(!e)return new lg.MathNode("mrow");if(qm[e.type])return qm[e.type](e,t);throw new Bp("Got group of unknown type: '"+e.type+"'")};function mg(e,t,r,n,a){var i,o=hg(e,r);i=1===o.length&&o[0]instanceof og&&Vp.contains(["mrow","mtable"],o[0].type)?o[0]:new lg.MathNode("mrow",o);var s=new lg.MathNode("annotation",[new lg.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new lg.MathNode("semantics",[i,s]),u=new lg.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var c=a?"katex":"katex-mathml";return Mm.makeSpan([c],[u])}var gg=function(e){return new yf({style:e.displayMode?rf.DISPLAY:rf.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},vg=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=Mm.makeSpan(r,[e])}return e},yg={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},bg={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},wg=function(e,t,r,n,a){var i,o=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(i=Mm.makeSpan(["stretchy",t],[],a),"fbox"===t){var s=a.color&&a.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new Df({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new Df({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var u=new Af(l,{width:"100%",height:kf(o)});i=Mm.makeSvgSpan([],[u],a)}return i.height=o,i.style.height=kf(o),i},xg=function(e){var t=new lg.MathNode("mo",[new lg.TextNode(yg[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Sg=function(e,t){var{span:r,minWidth:n,height:a}=function(){var r=4e5,n=e.label.slice(1);if(Vp.contains(["widehat","widecheck","widetilde","utilde"],n)){var a,i,o,s="ordgroup"===(p=e.base).type?p.body.length:1;if(s>5)"widehat"===n||"widecheck"===n?(a=420,r=2364,o=.42,i=n+"4"):(a=312,r=2340,o=.34,i="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][l],a=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],i=n+l):(r=[0,600,1033,2339,2340][l],a=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],i="tilde"+l)}var u=new zf(i),c=new Af([u],{width:"100%",height:kf(o),viewBox:"0 0 "+r+" "+a,preserveAspectRatio:"none"});return{span:Mm.makeSvgSpan([],[c],t),minWidth:0,height:o}}var d,h,p,f=[],m=bg[n],[g,v,y]=m,b=y/1e3,w=g.length;if(1===w)d=["hide-tail"],h=[m[3]];else if(2===w)d=["halfarrow-left","halfarrow-right"],h=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");d=["brace-left","brace-center","brace-right"],h=["xMinYMin","xMidYMin","xMaxYMin"]}for(var x=0;x<w;x++){var S=new zf(g[x]),k=new Af([S],{width:"400em",height:kf(b),viewBox:"0 0 "+r+" "+y,preserveAspectRatio:h[x]+" slice"}),E=Mm.makeSvgSpan([d[x]],[k],t);if(1===w)return{span:E,minWidth:v,height:b};E.style.height=kf(b),f.push(E)}return{span:Mm.makeSpan(["stretchy"],f,t),minWidth:v,height:b}}();return r.height=a,r.style.height=kf(a),n>0&&(r.style.minWidth=kf(n)),r};function kg(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Eg(e){var t=Tg(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Tg(e){return e&&("atom"===e.type||jf.hasOwnProperty(e.type))?e:null}var _g=(e,t)=>{var r,n,a;e&&"supsub"===e.type?(r=(n=kg(e.base,"accent")).base,e.base=r,a=function(e){if(e instanceof Cf)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(rg(e,t)),e.base=n):r=(n=kg(e,"accent")).base;var i=rg(r,t.havingCrampedStyle()),o=0;if(n.isShifty&&Vp.isCharacterBox(r)){var s=Vp.getBaseElem(r);o=Lf(rg(s,t.havingCrampedStyle())).skew}var l,u="\\c"===n.label,c=u?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(n.isStretchy)l=Sg(n,t),l=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+kf(2*o)+")",marginLeft:kf(2*o)}:void 0}]},t);else{var d,h;"\\vec"===n.label?(d=Mm.staticSvg("vec",t),h=Mm.svgData.vec[1]):((d=Lf(d=Mm.makeOrd({mode:n.mode,text:n.label},t,"textord"))).italic=0,h=d.width,u&&(c+=d.depth)),l=Mm.makeSpan(["accent-body"],[d]);var p="\\textcircled"===n.label;p&&(l.classes.push("accent-full"),c=i.height);var f=o;p||(f-=h/2),l.style.left=kf(f),"\\textcircled"===n.label&&(l.style.top=".2em"),l=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-c},{type:"elem",elem:l}]},t)}var m=Mm.makeSpan(["mord","accent"],[l],t);return a?(a.children[0]=m,a.height=Math.max(m.height,a.height),a.classes[0]="mord",a):m},Ng=(e,t)=>{var r=e.isStretchy?xg(e.label):new lg.MathNode("mo",[ug(e.label,e.mode)]),n=new lg.MathNode("mover",[fg(e.base,t),r]);return n.setAttribute("accent","true"),n},Cg=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Um({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Fm(t[0]),n=!Cg.test(e.funcName),a=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:_g,mathmlBuilder:Ng}),Um({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:_g,mathmlBuilder:Ng}),Um({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(e,t)=>{var r=rg(e.base,t),n=Sg(e,t),a="\\utilde"===e.label?.12:0,i=Mm.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},t);return Mm.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=xg(e.label),n=new lg.MathNode("munder",[fg(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Og=e=>{var t=new lg.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Um({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:a}=e;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,n=t.style,a=t.havingStyle(n.sup()),i=Mm.wrapFragment(rg(e.body,a,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(o+"-arrow-pad"),e.below&&(a=t.havingStyle(n.sub()),(r=Mm.wrapFragment(rg(e.below,a,t),t)).classes.push(o+"-arrow-pad"));var s,l=Sg(e,t),u=-t.fontMetrics().axisHeight+.5*l.height,c=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(c-=i.depth),r){var d=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:l,shift:u},{type:"elem",elem:r,shift:d}]},t)}else s=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:c},{type:"elem",elem:l,shift:u}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),Mm.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,n=xg(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var a=Og(fg(e.body,t));if(e.below){var i=Og(fg(e.below,t));r=new lg.MathNode("munderover",[n,i,a])}else r=new lg.MathNode("mover",[n,a])}else if(e.below){var o=Og(fg(e.below,t));r=new lg.MathNode("munder",[n,o])}else r=Og(),r=new lg.MathNode("mover",[n,r]);return r}});var Ig=Mm.makeSpan;function Rg(e,t){var r=Km(e.body,t,!0);return Ig([e.mclass],r,t)}function Mg(e,t){var r,n=hg(e.body,t);return"minner"===e.mclass?r=new lg.MathNode("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new lg.MathNode("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new lg.MathNode("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Um({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Vm(a),isCharacterBox:Vp.isCharacterBox(a)}},htmlBuilder:Rg,mathmlBuilder:Mg});var Ag=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};Um({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Ag(t[0]),body:Vm(t[1]),isCharacterBox:Vp.isCharacterBox(t[1])}}}),Um({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:n,funcName:a}=e,i=t[1],o=t[0];r="\\stackrel"!==a?Ag(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==a,body:Vm(i)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===a?null:o,sub:"\\underset"===a?o:null};return{type:"mclass",mode:n.mode,mclass:r,body:[l],isCharacterBox:Vp.isCharacterBox(l)}},htmlBuilder:Rg,mathmlBuilder:Mg}),Um({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Ag(t[0]),body:Vm(t[0])}},htmlBuilder(e,t){var r=Km(e.body,t,!0),n=Mm.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=hg(e.body,t),n=new lg.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var zg={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Dg=()=>({type:"styling",body:[],mode:"math",style:"display"}),Lg=e=>"textord"===e.type&&"@"===e.text,Pg=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function jg(e,t,r){var n=zg[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var a={type:"atom",text:n,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[a],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}Um({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=Mm.wrapFragment(rg(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=kf(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new lg.MathNode("mrow",[fg(e.label,t)]);return(r=new lg.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new lg.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),Um({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Mm.wrapFragment(rg(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new lg.MathNode("mrow",[fg(e.fragment,t)])}),Um({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=kg(t[0],"ordgroup").body,a="",i=0;i<n.length;i++){a+=kg(n[i],"textord").text}var o,s=parseInt(a);if(isNaN(s))throw new Bp("\\@char has non-numeric argument "+a);if(s<0||s>=1114111)throw new Bp("\\@char with invalid code point "+a);return s<=65535?o=String.fromCharCode(s):(s-=65536,o=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:r.mode,text:o}}});var Bg=(e,t)=>{var r=Km(e.body,t.withColor(e.color),!1);return Mm.makeFragment(r)},qg=(e,t)=>{var r=hg(e.body,t.withColor(e.color)),n=new lg.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};Um({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=kg(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:Vm(a)}},htmlBuilder:Bg,mathmlBuilder:qg}),Um({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=kg(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:Bg,mathmlBuilder:qg}),Um({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,a="["===n.gullet.future().text?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&kg(a,"size").value}},htmlBuilder(e,t){var r=Mm.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=kf(Sf(e.size,t)))),r},mathmlBuilder(e,t){var r=new lg.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",kf(Sf(e.size,t)))),r}});var Ug={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Hg=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Bp("Expected a control sequence",e);return t},Fg=(e,t,r,n)=>{var a=e.gullet.macros.get(r.text);null==a&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};Um({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Ug[n.text])return"\\global"!==r&&"\\\\globallong"!==r||(n.text=Ug[n.text]),kg(t.parseFunction(),"internal");throw new Bp("Invalid token after macro prefix",n)}}),Um({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Bp("Expected a control sequence",n);for(var i,o=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){i=t.gullet.future(),s[o].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Bp('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new Bp('Argument number "'+n.text+'" out of order');o++,s.push([])}else{if("EOF"===n.text)throw new Bp("Expected a macro definition");s[o].push(n.text)}var{tokens:l}=t.gullet.consumeArg();return i&&l.unshift(i),"\\edef"!==r&&"\\xdef"!==r||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(a,{tokens:l,numArgs:o,delimiters:s},r===Ug[r]),{type:"internal",mode:t.mode}}}),Um({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Hg(t.gullet.popToken());t.gullet.consumeSpaces();var a=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return Fg(t,n,a,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),Um({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Hg(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return Fg(t,n,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var Vg=function(e,t,r){var n=pf(Bf.math[e]&&Bf.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},Wg=function(e,t,r,n){var a=r.havingBaseStyle(t),i=Mm.makeSpan(n.concat(a.sizingClasses(r)),[e],r),o=a.sizeMultiplier/r.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=a.sizeMultiplier,i},$g=function(e,t,r){var n=t.havingBaseStyle(r),a=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=kf(a),e.height-=a,e.depth+=a},Gg=function(e,t,r,n,a,i){var o=function(e,t,r,n){return Mm.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,a,n),s=Wg(Mm.makeSpan(["delimsizing","size"+t],[o],n),rf.TEXT,n,i);return r&&$g(s,n,rf.TEXT),s},Yg=function(e,t,r){var n;return n="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Mm.makeSpan(["delimsizinginner",n],[Mm.makeSpan([],[Mm.makeSymbol(e,t,r)])])}},Qg=function(e,t,r){var n=cf["Size4-Regular"][e.charCodeAt(0)]?cf["Size4-Regular"][e.charCodeAt(0)][4]:cf["Size1-Regular"][e.charCodeAt(0)][4],a=new zf("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new Af([a],{width:kf(n),height:kf(t),style:"width:"+kf(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=Mm.makeSvgSpan([],[i],r);return o.height=t,o.style.height=kf(t),o.style.width=kf(n),{type:"elem",elem:o}},Kg={type:"kern",size:-.008},Xg=["|","\\lvert","\\rvert","\\vert"],Zg=["\\|","\\lVert","\\rVert","\\Vert"],Jg=function(e,t,r,n,a,i){var o,s,l,u,c="",d=0;o=l=u=e,s=null;var h="Size1-Regular";"\\uparrow"===e?l=u="⏐":"\\Uparrow"===e?l=u="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",u="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",u="\\Downarrow"):Vp.contains(Xg,e)?(l="∣",c="vert",d=333):Vp.contains(Zg,e)?(l="∥",c="doublevert",d=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",u="⎣",h="Size4-Regular",c="lbrack",d=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",u="⎦",h="Size4-Regular",c="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",u="⎣",h="Size4-Regular",c="lfloor",d=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=u="⎢",h="Size4-Regular",c="lceil",d=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",u="⎦",h="Size4-Regular",c="rfloor",d=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=u="⎥",h="Size4-Regular",c="rceil",d=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",u="⎝",h="Size4-Regular",c="lparen",d=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",u="⎠",h="Size4-Regular",c="rparen",d=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",u="⎩",l="⎪",h="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",u="⎭",l="⎪",h="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",u="⎩",l="⎪",h="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",u="⎭",l="⎪",h="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",u="⎭",l="⎪",h="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",u="⎩",l="⎪",h="Size4-Regular");var p=Vg(o,h,a),f=p.height+p.depth,m=Vg(l,h,a),g=m.height+m.depth,v=Vg(u,h,a),y=v.height+v.depth,b=0,w=1;if(null!==s){var x=Vg(s,h,a);b=x.height+x.depth,w=2}var S=f+y+b,k=S+Math.max(0,Math.ceil((t-S)/(w*g)))*w*g,E=n.fontMetrics().axisHeight;r&&(E*=n.sizeMultiplier);var T=k/2-E,_=[];if(c.length>0){var N=k-f-y,C=Math.round(1e3*k),O=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(c,Math.round(1e3*N)),I=new zf(c,O),R=(d/1e3).toFixed(3)+"em",M=(C/1e3).toFixed(3)+"em",A=new Af([I],{width:R,height:M,viewBox:"0 0 "+d+" "+C}),z=Mm.makeSvgSpan([],[A],n);z.height=C/1e3,z.style.width=R,z.style.height=M,_.push({type:"elem",elem:z})}else{if(_.push(Yg(u,h,a)),_.push(Kg),null===s){var D=k-f-y+.016;_.push(Qg(l,D,n))}else{var L=(k-f-y-b)/2+.016;_.push(Qg(l,L,n)),_.push(Kg),_.push(Yg(s,h,a)),_.push(Kg),_.push(Qg(l,L,n))}_.push(Kg),_.push(Yg(o,h,a))}var P=n.havingBaseStyle(rf.TEXT),j=Mm.makeVList({positionType:"bottom",positionData:T,children:_},P);return Wg(Mm.makeSpan(["delimsizing","mult"],[j],P),rf.TEXT,n,i)},ev=.08,tv=function(e,t,r,n,a){var i=function(e,t,r){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,sf);break;case"sqrtSize1":n=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,sf);break;case"sqrtSize2":n=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,sf);break;case"sqrtSize3":n=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,sf);break;case"sqrtSize4":n=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,sf);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,sf,r)}return n}(e,n,r),o=new zf(e,i),s=new Af([o],{width:"400em",height:kf(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Mm.makeSvgSpan(["hide-tail"],[s],a)},rv=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],nv=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],av=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],iv=[0,1.2,1.8,2.4,3],ov=[{type:"small",style:rf.SCRIPTSCRIPT},{type:"small",style:rf.SCRIPT},{type:"small",style:rf.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],sv=[{type:"small",style:rf.SCRIPTSCRIPT},{type:"small",style:rf.SCRIPT},{type:"small",style:rf.TEXT},{type:"stack"}],lv=[{type:"small",style:rf.SCRIPTSCRIPT},{type:"small",style:rf.SCRIPT},{type:"small",style:rf.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],uv=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},cv=function(e,t,r,n){for(var a=Math.min(2,3-n.style.size);a<r.length&&"stack"!==r[a].type;a++){var i=Vg(e,uv(r[a]),"math"),o=i.height+i.depth;if("small"===r[a].type&&(o*=n.havingBaseStyle(r[a].style).sizeMultiplier),o>t)return r[a]}return r[r.length-1]},dv=function(e,t,r,n,a,i){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=Vp.contains(av,e)?ov:Vp.contains(rv,e)?lv:sv;var s=cv(e,t,o,n);return"small"===s.type?function(e,t,r,n,a,i){var o=Mm.makeSymbol(e,"Main-Regular",a,n),s=Wg(o,t,n,i);return r&&$g(s,n,t),s}(e,s.style,r,n,a,i):"large"===s.type?Gg(e,s.size,r,n,a,i):Jg(e,t,r,n,a,i)},hv={sqrtImage:function(e,t){var r,n,a=t.havingBaseSizing(),i=cv("\\surd",e*a.sizeMultiplier,lv,a),o=a.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,u=0,c=0;return"small"===i.type?(e<1?o=1:e<1.4&&(o=.7),u=(1+s)/o,(r=tv("sqrtMain",l=(1+s+ev)/o,c=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/o):"large"===i.type?(c=1080*iv[i.size],u=(iv[i.size]+s)/o,l=(iv[i.size]+s+ev)/o,(r=tv("sqrtSize"+i.size,l,c,s,t)).style.minWidth="1.02em",n=1/o):(l=e+s+ev,u=e+s,c=Math.floor(1e3*e+s)+80,(r=tv("sqrtTall",l,c,s,t)).style.minWidth="0.742em",n=1.056),r.height=u,r.style.height=kf(l),{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},sizedDelim:function(e,t,r,n,a){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),Vp.contains(rv,e)||Vp.contains(av,e))return Gg(e,t,!1,r,n,a);if(Vp.contains(nv,e))return Jg(e,iv[t],!1,r,n,a);throw new Bp("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:iv,customSizedDelim:dv,leftRightDelim:function(e,t,r,n,a,i){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),u=Math.max(l/500*901,2*l-s);return dv(e,u,!0,n,a,i)}},pv={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},fv=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function mv(e,t){var r=Tg(e);if(r&&Vp.contains(fv,r.text))return r;throw new Bp(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function gv(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Um({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=mv(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:pv[e.funcName].size,mclass:pv[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?Mm.makeSpan([e.mclass]):hv.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(ug(e.delim,e.mode));var r=new lg.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=kf(hv.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),Um({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new Bp("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:mv(t[0],e).text,color:r}}}),Um({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=mv(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=kg(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{gv(e);for(var r,n,a=Km(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,l=0;l<a.length;l++)a[l].isMiddle?s=!0:(i=Math.max(a[l].height,i),o=Math.max(a[l].depth,o));if(i*=t.sizeMultiplier,o*=t.sizeMultiplier,r="."===e.left?tg(t,["mopen"]):hv.leftRightDelim(e.left,i,o,t,e.mode,["mopen"]),a.unshift(r),s)for(var u=1;u<a.length;u++){var c=a[u].isMiddle;c&&(a[u]=hv.leftRightDelim(c.delim,i,o,c.options,e.mode,[]))}if("."===e.right)n=tg(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;n=hv.leftRightDelim(e.right,i,o,d,e.mode,["mclose"])}return a.push(n),Mm.makeSpan(["minner"],a,t)},mathmlBuilder:(e,t)=>{gv(e);var r=hg(e.body,t);if("."!==e.left){var n=new lg.MathNode("mo",[ug(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var a=new lg.MathNode("mo",[ug(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return cg(r)}}),Um({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=mv(t[0],e);if(!e.parser.leftrightDepth)throw new Bp("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=tg(t,[]);else{r=hv.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?ug("|","text"):ug(e.delim,e.mode),n=new lg.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var vv=(e,t)=>{var r,n,a,i=Mm.wrapFragment(rg(e.body,t),t),o=e.label.slice(1),s=t.sizeMultiplier,l=0,u=Vp.isCharacterBox(e.body);if("sout"===o)(r=Mm.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===o){var c=Sf({number:.6,unit:"pt"},t),d=Sf({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var h=i.height+i.depth+c+d;i.style.paddingLeft=kf(h/2+c);var p=Math.floor(1e3*h*s),f="M400000 "+(n=p)+" H0 L"+n/2+" 0 l65 45 L145 "+(n-80)+" H400000z",m=new Af([new zf("phase",f)],{width:"400em",height:kf(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});(r=Mm.makeSvgSpan(["hide-tail"],[m],t)).style.height=kf(h),l=i.depth+c+d}else{/cancel/.test(o)?u||i.classes.push("cancel-pad"):"angl"===o?i.classes.push("anglpad"):i.classes.push("boxpad");var g=0,v=0,y=0;/box/.test(o)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),v=g=t.fontMetrics().fboxsep+("colorbox"===o?0:y)):"angl"===o?(g=4*(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),v=Math.max(0,.25-i.depth)):v=g=u?.2:0,r=wg(i,o,g,v,t),/fbox|boxed|fcolorbox/.test(o)?(r.style.borderStyle="solid",r.style.borderWidth=kf(y)):"angl"===o&&.049!==y&&(r.style.borderTopWidth=kf(y),r.style.borderRightWidth=kf(y)),l=i.depth+v,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)a=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:l},{type:"elem",elem:i,shift:0}]},t);else{var b=/cancel|phase/.test(o)?["svg-align"]:[];a=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:r,shift:l,wrapperClasses:b}]},t)}return/cancel/.test(o)&&(a.height=i.height,a.depth=i.depth),/cancel/.test(o)&&!u?Mm.makeSpan(["mord","cancel-lap"],[a],t):Mm.makeSpan(["mord"],[a],t)},yv=(e,t)=>{var r=0,n=new lg.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[fg(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Um({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=kg(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:o}},htmlBuilder:vv,mathmlBuilder:yv}),Um({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=kg(t[0],"color-token").color,o=kg(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:o,borderColor:i,body:s}},htmlBuilder:vv,mathmlBuilder:yv}),Um({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),Um({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:vv,mathmlBuilder:yv}),Um({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var bv={};function wv(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<r.length;++l)bv[r[l]]=s;i&&(Bm[t]=i),o&&(qm[t]=o)}var xv={};function Sv(e,t){xv[e]=t}function kv(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}var Ev=e=>{if(!e.parser.settings.displayMode)throw new Bp("{"+e.envName+"} can be used only in display mode.")};function Tv(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function _v(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:u,emptySingleRow:c,maxNumCols:d,leqno:h}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var p=e.gullet.expandMacroAsText("\\arraystretch");if(null==p)o=1;else if(!(o=parseFloat(p))||o<0)throw new Bp("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var f=[],m=[f],g=[],v=[],y=null!=l?[]:void 0;function b(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new jp("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(b(),v.push(kv(e));;){var x=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),x={type:"ordgroup",mode:e.mode,body:x},r&&(x={type:"styling",mode:e.mode,style:r,body:[x]}),f.push(x);var S=e.fetch().text;if("&"===S){if(d&&f.length===d){if(u||s)throw new Bp("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===S){w(),1===f.length&&"styling"===x.type&&0===x.body[0].body.length&&(m.length>1||!c)&&m.pop(),v.length<m.length+1&&v.push([]);break}if("\\\\"!==S)throw new Bp("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var k=void 0;" "!==e.gullet.future().text&&(k=e.parseSizeGroup(!0)),g.push(k?k.value:null),w(),v.push(kv(e)),f=[],m.push(f),b()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:o,body:m,cols:i,rowGaps:g,hskipBeforeAndAfter:n,hLinesBeforeRow:v,colSeparationType:s,tags:y,leqno:h}}function Nv(e){return"d"===e.slice(0,1)?"display":"text"}var Cv=function(e,t){var r,n,a=e.body.length,i=e.hLinesBeforeRow,o=0,s=new Array(a),l=[],u=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),c=1/t.fontMetrics().ptPerEm,d=5*c;e.colSeparationType&&"small"===e.colSeparationType&&(d=t.havingStyle(rf.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var h="CD"===e.colSeparationType?Sf({number:3,unit:"ex"},t):12*c,p=3*c,f=e.arraystretch*h,m=.7*f,g=.3*f,v=0;function y(e){for(var t=0;t<e.length;++t)t>0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(i[0]),r=0;r<e.body.length;++r){var b=e.body[r],w=m,x=g;o<b.length&&(o=b.length);var S=new Array(b.length);for(n=0;n<b.length;++n){var k=rg(b[n],t);x<k.depth&&(x=k.depth),w<k.height&&(w=k.height),S[n]=k}var E=e.rowGaps[r],T=0;E&&(T=Sf(E,t))>0&&(x<(T+=g)&&(x=T),T=0),e.addJot&&(x+=p),S.height=w,S.depth=x,v+=w,S.pos=v,v+=x+T,s[r]=S,y(i[r+1])}var _,N,C=v/2+t.fontMetrics().axisHeight,O=e.cols||[],I=[],R=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r<a;++r){var M=s[r],A=M.pos-C,z=e.tags[r],D=void 0;(D=!0===z?Mm.makeSpan(["eqn-num"],[],t):!1===z?Mm.makeSpan([],[],t):Mm.makeSpan([],Km(z,t,!0),t)).depth=M.depth,D.height=M.height,R.push({type:"elem",elem:D,shift:A})}for(n=0,N=0;n<o||N<O.length;++n,++N){for(var L=O[N]||{},P=!0;"separator"===L.type;){if(P||((_=Mm.makeSpan(["arraycolsep"],[])).style.width=kf(t.fontMetrics().doubleRuleSep),I.push(_)),"|"!==L.separator&&":"!==L.separator)throw new Bp("Invalid separator type: "+L.separator);var j="|"===L.separator?"solid":"dashed",B=Mm.makeSpan(["vertical-separator"],[],t);B.style.height=kf(v),B.style.borderRightWidth=kf(u),B.style.borderRightStyle=j,B.style.margin="0 "+kf(-u/2);var q=v-C;q&&(B.style.verticalAlign=kf(-q)),I.push(B),L=O[++N]||{},P=!1}if(!(n>=o)){var U=void 0;(n>0||e.hskipBeforeAndAfter)&&0!==(U=Vp.deflt(L.pregap,d))&&((_=Mm.makeSpan(["arraycolsep"],[])).style.width=kf(U),I.push(_));var H=[];for(r=0;r<a;++r){var F=s[r],V=F[n];if(V){var W=F.pos-C;V.depth=F.depth,V.height=F.height,H.push({type:"elem",elem:V,shift:W})}}H=Mm.makeVList({positionType:"individualShift",children:H},t),H=Mm.makeSpan(["col-align-"+(L.align||"c")],[H]),I.push(H),(n<o-1||e.hskipBeforeAndAfter)&&0!==(U=Vp.deflt(L.postgap,d))&&((_=Mm.makeSpan(["arraycolsep"],[])).style.width=kf(U),I.push(_))}}if(s=Mm.makeSpan(["mtable"],I),l.length>0){for(var $=Mm.makeLineSpan("hline",t,u),G=Mm.makeLineSpan("hdashline",t,u),Y=[{type:"elem",elem:s,shift:0}];l.length>0;){var Q=l.pop(),K=Q.pos-C;Q.isDashed?Y.push({type:"elem",elem:G,shift:K}):Y.push({type:"elem",elem:$,shift:K})}s=Mm.makeVList({positionType:"individualShift",children:Y},t)}if(0===R.length)return Mm.makeSpan(["mord"],[s],t);var X=Mm.makeVList({positionType:"individualShift",children:R},t);return X=Mm.makeSpan(["tag"],[X],t),Mm.makeFragment([s,X])},Ov={c:"center ",l:"left ",r:"right "},Iv=function(e,t){for(var r=[],n=new lg.MathNode("mtd",[],["mtr-glue"]),a=new lg.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var o=e.body[i],s=[],l=0;l<o.length;l++)s.push(new lg.MathNode("mtd",[fg(o[l],t)]));e.tags&&e.tags[i]&&(s.unshift(n),s.push(n),e.leqno?s.unshift(a):s.push(a)),r.push(new lg.MathNode("mtr",s))}var u=new lg.MathNode("mtable",r),c=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);u.setAttribute("rowspacing",kf(c));var d="",h="";if(e.cols&&e.cols.length>0){var p=e.cols,f="",m=!1,g=0,v=p.length;"separator"===p[0].type&&(d+="top ",g=1),"separator"===p[p.length-1].type&&(d+="bottom ",v-=1);for(var y=g;y<v;y++)"align"===p[y].type?(h+=Ov[p[y].align],m&&(f+="none "),m=!0):"separator"===p[y].type&&m&&(f+="|"===p[y].separator?"solid ":"dashed ",m=!1);u.setAttribute("columnalign",h.trim()),/[sd]/.test(f)&&u.setAttribute("columnlines",f.trim())}if("align"===e.colSeparationType){for(var b=e.cols||[],w="",x=1;x<b.length;x++)w+=x%2?"0em ":"1em ";u.setAttribute("columnspacing",w.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?u.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?u.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?u.setAttribute("columnspacing","0.5em"):u.setAttribute("columnspacing","1em");var S="",k=e.hLinesBeforeRow;d+=k[0].length>0?"left ":"",d+=k[k.length-1].length>0?"right ":"";for(var E=1;E<k.length-1;E++)S+=0===k[E].length?"none ":k[E][0]?"dashed ":"solid ";return/[sd]/.test(S)&&u.setAttribute("rowlines",S.trim()),""!==d&&(u=new lg.MathNode("menclose",[u])).setAttribute("notation",d.trim()),e.arraystretch&&e.arraystretch<1&&(u=new lg.MathNode("mstyle",[u])).setAttribute("scriptlevel","1"),u},Rv=function(e,t){-1===e.envName.indexOf("ed")&&Ev(e);var r,n=[],a=e.envName.indexOf("at")>-1?"alignat":"align",i="split"===e.envName,o=_v(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:Tv(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var u="",c=0;c<t[0].body.length;c++){u+=kg(t[0].body[c],"textord").text}r=Number(u),s=2*r}var d=!s;o.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var n=kg(e[t],"styling");kg(n.body[0],"ordgroup").body.unshift(l)}if(d)s<e.length&&(s=e.length);else{var a=e.length/2;if(r<a)throw new Bp("Too many math in a row: expected "+r+", but got "+a,e[0])}});for(var h=0;h<s;++h){var p="r",f=0;h%2==1?p="l":h>0&&d&&(f=1),n[h]={type:"align",align:p,pregap:f,postgap:0}}return o.colSeparationType=d?"align":"alignat",o};wv({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(Tg(t[0])?[t[0]]:kg(t[0],"ordgroup").body).map(function(e){var t=Eg(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new Bp("Unknown column alignment: "+t,e)}),n={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return _v(e.parser,n,Nv(e.envName))},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var a=e.parser;if(a.consumeSpaces(),"["===a.fetch().text){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,-1==="lcr".indexOf(r))throw new Bp("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=_v(e.parser,n,Nv(e.envName)),o=Math.max(0,...i.body.map(e=>e.length));return i.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=_v(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(Tg(t[0])?[t[0]]:kg(t[0],"ordgroup").body).map(function(e){var t=Eg(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new Bp("Unknown column alignment: "+t,e)});if(r.length>1)throw new Bp("{subarray} can contain only one column");var n={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((n=_v(e.parser,n,"script")).body.length>0&&n.body[0].length>1)throw new Bp("{subarray} can contain only one column");return n},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=_v(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Nv(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Rv,htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Vp.contains(["gather","gather*"],e.envName)&&Ev(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Tv(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return _v(e.parser,t,"display")},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Rv,htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Ev(e);var t={autoTag:Tv(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return _v(e.parser,t,"display")},htmlBuilder:Cv,mathmlBuilder:Iv}),wv({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(Ev(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new Bp("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var n=[],a=[n],i=0;i<t.length;i++){for(var o=t[i],s=Dg(),l=0;l<o.length;l++)if(Lg(o[l])){n.push(s);var u=Eg(o[l+=1]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(u)>-1);else{if(!("<>AV".indexOf(u)>-1))throw new Bp('Expected one of "<>AV=|." after @',o[l]);for(var d=0;d<2;d++){for(var h=!0,p=l+1;p<o.length;p++){if(Pg(o[p],u)){h=!1,l=p;break}if(Lg(o[p]))throw new Bp("Missing a "+u+" character to complete a CD arrow.",o[p]);c[d].body.push(o[p])}if(h)throw new Bp("Missing a "+u+" character to complete a CD arrow.",o[l])}}var f={type:"styling",body:[jg(u,c,e)],mode:"math",style:"display"};n.push(f),s=Dg()}else s.body.push(o[l]);i%2==0?n.push(s):n.shift(),n=[],a.push(n)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}(e.parser)),htmlBuilder:Cv,mathmlBuilder:Iv}),Sv("\\nonumber","\\gdef\\@eqnsw{0}"),Sv("\\notag","\\nonumber"),Um({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Bp(e.funcName+" valid only within array environment")}});var Mv=bv;Um({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];if("ordgroup"!==a.type)throw new Bp("Invalid environment name",a);for(var i="",o=0;o<a.body.length;++o)i+=kg(a.body[o],"textord").text;if("\\begin"===n){if(!Mv.hasOwnProperty(i))throw new Bp("No such environment: "+i,a);var s=Mv[i],{args:l,optArgs:u}=r.parseArguments("\\begin{"+i+"}",s),c={mode:r.mode,envName:i,parser:r},d=s.handler(c,l,u);r.expect("\\end",!1);var h=r.nextToken,p=kg(r.parseFunction(),"environment");if(p.name!==i)throw new Bp("Mismatch: \\begin{"+i+"} matched by \\end{"+p.name+"}",h);return d}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var Av=(e,t)=>{var r=e.font,n=t.withFont(r);return rg(e.body,n)},zv=(e,t)=>{var r=e.font,n=t.withFont(r);return fg(e.body,n)},Dv={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Um({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=Fm(t[0]),i=n;return i in Dv&&(i=Dv[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:Av,mathmlBuilder:zv}),Um({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],a=Vp.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Ag(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}}),Um({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:a}=e,{mode:i}=r,o=r.parseExpression(!0,a);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:Av,mathmlBuilder:zv});var Lv=(e,t)=>{var r=t;return"display"===e?r=r.id>=rf.SCRIPT.id?r.text():rf.DISPLAY:"text"===e&&r.size===rf.DISPLAY.size?r=rf.TEXT:"script"===e?r=rf.SCRIPT:"scriptscript"===e&&(r=rf.SCRIPTSCRIPT),r},Pv=(e,t)=>{var r,n=Lv(e.size,t.style),a=n.fracNum(),i=n.fracDen();r=t.havingStyle(a);var o=rg(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<l?l:o.depth}r=t.havingStyle(i);var u,c,d,h,p,f,m,g,v,y,b=rg(e.denom,r,t);if(e.hasBarLine?(e.barSize?(c=Sf(e.barSize,t),u=Mm.makeLineSpan("frac-line",t,c)):u=Mm.makeLineSpan("frac-line",t),c=u.height,d=u.height):(u=null,c=0,d=t.fontMetrics().defaultRuleThickness),n.size===rf.DISPLAY.size||"display"===e.size?(h=t.fontMetrics().num1,p=c>0?3*d:7*d,f=t.fontMetrics().denom1):(c>0?(h=t.fontMetrics().num2,p=d):(h=t.fontMetrics().num3,p=3*d),f=t.fontMetrics().denom2),u){var w=t.fontMetrics().axisHeight;h-o.depth-(w+.5*c)<p&&(h+=p-(h-o.depth-(w+.5*c))),w-.5*c-(b.height-f)<p&&(f+=p-(w-.5*c-(b.height-f)));var x=-(w-.5*c);m=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:f},{type:"elem",elem:u,shift:x},{type:"elem",elem:o,shift:-h}]},t)}else{var S=h-o.depth-(b.height-f);S<p&&(h+=.5*(p-S),f+=.5*(p-S)),m=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:f},{type:"elem",elem:o,shift:-h}]},t)}return r=t.havingStyle(n),m.height*=r.sizeMultiplier/t.sizeMultiplier,m.depth*=r.sizeMultiplier/t.sizeMultiplier,g=n.size===rf.DISPLAY.size?t.fontMetrics().delim1:n.size===rf.SCRIPTSCRIPT.size?t.havingStyle(rf.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?tg(t,["mopen"]):hv.customSizedDelim(e.leftDelim,g,!0,t.havingStyle(n),e.mode,["mopen"]),y=e.continued?Mm.makeSpan([]):null==e.rightDelim?tg(t,["mclose"]):hv.customSizedDelim(e.rightDelim,g,!0,t.havingStyle(n),e.mode,["mclose"]),Mm.makeSpan(["mord"].concat(r.sizingClasses(t)),[v,Mm.makeSpan(["mfrac"],[m]),y],t)},jv=(e,t)=>{var r=new lg.MathNode("mfrac",[fg(e.numer,t),fg(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=Sf(e.barSize,t);r.setAttribute("linethickness",kf(n))}}else r.setAttribute("linethickness","0px");var a=Lv(e.size,t.style);if(a.size!==t.style.size){r=new lg.MathNode("mstyle",[r]);var i=a.size===rf.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new lg.MathNode("mo",[new lg.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(r),null!=e.rightDelim){var l=new lg.MathNode("mo",[new lg.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return cg(o)}return r};Um({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:n,funcName:a}=e,i=t[0],o=t[1],s=null,l=null,u="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text"}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:o,hasBarLine:r,leftDelim:s,rightDelim:l,size:u,barSize:null}},htmlBuilder:Pv,mathmlBuilder:jv}),Um({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:a,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),Um({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:n,token:a}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:a}}});var Bv=["display","text","script","scriptscript"],qv=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};Um({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:n}=e,a=t[4],i=t[5],o=Fm(t[0]),s="atom"===o.type&&"open"===o.family?qv(o.text):null,l=Fm(t[1]),u="atom"===l.type&&"close"===l.family?qv(l.text):null,c=kg(t[2],"size"),d=null;r=!!c.isBlank||(d=c.value).number>0;var h="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var f=kg(p.body[0],"textord");h=Bv[Number(f.text)]}}else p=kg(p,"textord"),h=Bv[Number(p.text)];return{type:"genfrac",mode:n.mode,numer:a,denom:i,continued:!1,hasBarLine:r,barSize:d,leftDelim:s,rightDelim:u,size:h}},htmlBuilder:Pv,mathmlBuilder:jv}),Um({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:a}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:kg(t[0],"size").value,token:a}}}),Um({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(kg(t[1],"infix").size),o=t[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:o,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Pv,mathmlBuilder:jv});var Uv=(e,t)=>{var r,n,a=t.style;"supsub"===e.type?(r=e.sup?rg(e.sup,t.havingStyle(a.sup()),t):rg(e.sub,t.havingStyle(a.sub()),t),n=kg(e.base,"horizBrace")):n=kg(e,"horizBrace");var i,o=rg(n.base,t.havingBaseStyle(rf.DISPLAY)),s=Sg(n,t);if(n.isOver?(i=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=Mm.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=Mm.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):Mm.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Mm.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)};Um({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:Uv,mathmlBuilder:(e,t)=>{var r=xg(e.label);return new lg.MathNode(e.isOver?"mover":"munder",[fg(e.base,t),r])}}),Um({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=kg(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:Vm(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Km(e.body,t,!1);return Mm.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=pg(e.body,t);return r instanceof og||(r=new og("mrow",[r])),r.setAttribute("href",e.href),r}}),Um({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=kg(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var o=n[i];"~"===o&&(o="\\textasciitilde"),a.push({type:"textord",mode:"text",text:o})}var s={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:Vm(s)}}}),Um({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Vm(t[0])}},htmlBuilder(e,t){var r=Km(e.body,t,!1);return Mm.makeFragment(r)},mathmlBuilder:(e,t)=>new lg.MathNode("mrow",hg(e.body,t))}),Um({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:n,funcName:a,token:i}=e,o=kg(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(a){case"\\htmlClass":l.class=o,r={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,r={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,r={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var u=o.split(","),c=0;c<u.length;c++){var d=u[c].split("=");if(2!==d.length)throw new Bp("Error parsing key-value for \\htmlData");l["data-"+d[0].trim()]=d[1].trim()}r={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(r)?{type:"html",mode:n.mode,attributes:l,body:Vm(s)}:n.formatUnsupportedCmd(a)},htmlBuilder:(e,t)=>{var r=Km(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var a=Mm.makeSpan(n,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>pg(e.body,t)}),Um({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Vm(t[0]),mathml:Vm(t[1])}},htmlBuilder:(e,t)=>{var r=Km(e.html,t,!1);return Mm.makeFragment(r)},mathmlBuilder:(e,t)=>pg(e.mathml,t)});var Hv=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Bp("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!xf(r))throw new Bp("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Um({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(r[0])for(var l=kg(r[0],"raw").string.split(","),u=0;u<l.length;u++){var c=l[u].split("=");if(2===c.length){var d=c[1].trim();switch(c[0].trim()){case"alt":s=d;break;case"width":a=Hv(d);break;case"height":i=Hv(d);break;case"totalheight":o=Hv(d);break;default:throw new Bp("Invalid key: '"+c[0]+"' in \\includegraphics.")}}}var h=kg(t[0],"url").url;return""===s&&(s=(s=(s=h).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:h})?{type:"includegraphics",mode:n.mode,alt:s,width:a,height:i,totalheight:o,src:h}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Sf(e.height,t),n=0;e.totalheight.number>0&&(n=Sf(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=Sf(e.width,t));var i={height:kf(r+n)};a>0&&(i.width=kf(a)),n>0&&(i.verticalAlign=kf(-n));var o=new If(e.src,e.alt,i);return o.height=r,o.depth=n,o},mathmlBuilder:(e,t)=>{var r=new lg.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Sf(e.height,t),a=0;if(e.totalheight.number>0&&(a=Sf(e.totalheight,t)-n,r.setAttribute("valign",kf(-a))),r.setAttribute("height",kf(n+a)),e.width.number>0){var i=Sf(e.width,t);r.setAttribute("width",kf(i))}return r.setAttribute("src",e.src),r}}),Um({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=kg(t[0],"size");if(r.settings.strict){var i="m"===n[1],o="mu"===a.value.unit;i?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+a.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder:(e,t)=>Mm.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=Sf(e.dimension,t);return new lg.SpaceNode(r)}}),Um({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(e,t)=>{var r;"clap"===e.alignment?(r=Mm.makeSpan([],[rg(e.body,t)]),r=Mm.makeSpan(["inner"],[r],t)):r=Mm.makeSpan(["inner"],[rg(e.body,t)]);var n=Mm.makeSpan(["fix"],[]),a=Mm.makeSpan([e.alignment],[r,n],t),i=Mm.makeSpan(["strut"]);return i.style.height=kf(a.height+a.depth),a.depth&&(i.style.verticalAlign=kf(-a.depth)),a.children.unshift(i),a=Mm.makeSpan(["thinbox"],[a],t),Mm.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new lg.MathNode("mpadded",[fg(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),Um({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,a=n.mode;n.switchMode("math");var i="\\("===r?"\\)":"$",o=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:o}}}),Um({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Bp("Mismatched "+e.funcName)}});var Fv=(e,t)=>{switch(t.style.size){case rf.DISPLAY.size:return e.display;case rf.TEXT.size:return e.text;case rf.SCRIPT.size:return e.script;case rf.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Um({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Vm(t[0]),text:Vm(t[1]),script:Vm(t[2]),scriptscript:Vm(t[3])}},htmlBuilder:(e,t)=>{var r=Fv(e,t),n=Km(r,t,!1);return Mm.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=Fv(e,t);return pg(r,t)}});var Vv=(e,t,r,n,a,i,o)=>{e=Mm.makeSpan([],[e]);var s,l,u,c=r&&Vp.isCharacterBox(r);if(t){var d=rg(t,n.havingStyle(a.sup()),n);l={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var h=rg(r,n.havingStyle(a.sub()),n);s={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}if(l&&s){var p=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;u=Mm.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:kf(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:kf(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var f=e.height-o;u=Mm.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:kf(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},n)}else{if(!l)return e;var m=e.depth+o;u=Mm.makeVList({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:kf(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var g=[u];if(s&&0!==i&&!c){var v=Mm.makeSpan(["mspace"],[],n);v.style.marginRight=kf(i),g.unshift(v)}return Mm.makeSpan(["mop","op-limits"],g,n)},Wv=["\\smallint"],$v=(e,t)=>{var r,n,a,i=!1;"supsub"===e.type?(r=e.sup,n=e.sub,a=kg(e.base,"op"),i=!0):a=kg(e,"op");var o,s=t.style,l=!1;if(s.size===rf.DISPLAY.size&&a.symbol&&!Vp.contains(Wv,a.name)&&(l=!0),a.symbol){var u=l?"Size2-Regular":"Size1-Regular",c="";if("\\oiint"!==a.name&&"\\oiiint"!==a.name||(c=a.name.slice(1),a.name="oiint"===c?"\\iint":"\\iiint"),o=Mm.makeSymbol(a.name,u,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),c.length>0){var d=o.italic,h=Mm.staticSvg(c+"Size"+(l?"2":"1"),t);o=Mm.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:h,shift:l?.08:0}]},t),a.name="\\"+c,o.classes.unshift("mop"),o.italic=d}}else if(a.body){var p=Km(a.body,t,!0);1===p.length&&p[0]instanceof Mf?(o=p[0]).classes[0]="mop":o=Mm.makeSpan(["mop"],p,t)}else{for(var f=[],m=1;m<a.name.length;m++)f.push(Mm.mathsym(a.name[m],a.mode,t));o=Mm.makeSpan(["mop"],f,t)}var g=0,v=0;return(o instanceof Mf||"\\oiint"===a.name||"\\oiiint"===a.name)&&!a.suppressBaseShift&&(g=(o.height-o.depth)/2-t.fontMetrics().axisHeight,v=o.italic),i?Vv(o,r,n,t,s,v,g):(g&&(o.style.position="relative",o.style.top=kf(g)),o)},Gv=(e,t)=>{var r;if(e.symbol)r=new og("mo",[ug(e.name,e.mode)]),Vp.contains(Wv,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new og("mo",hg(e.body,t));else{r=new og("mi",[new sg(e.name.slice(1))]);var n=new og("mo",[ug("","text")]);r=e.parentIsSupSub?new og("mrow",[r,n]):ig([r,n])}return r},Yv={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Um({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=n;return 1===a.length&&(a=Yv[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:$v,mathmlBuilder:Gv}),Um({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Vm(n)}},htmlBuilder:$v,mathmlBuilder:Gv});var Qv={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Um({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:$v,mathmlBuilder:Gv}),Um({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:$v,mathmlBuilder:Gv}),Um({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return 1===n.length&&(n=Qv[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:$v,mathmlBuilder:Gv});var Kv=(e,t)=>{var r,n,a,i,o=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,a=kg(e.base,"operatorname"),o=!0):a=kg(e,"operatorname"),a.body.length>0){for(var s=a.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),l=Km(s,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var c=l[u];c instanceof Mf&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=Mm.makeSpan(["mop"],l,t)}else i=Mm.makeSpan(["mop"],[],t);return o?Vv(i,r,n,t,t.style,0,0):i};function Xv(e,t,r){for(var n=Km(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var o=n[i].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[o+1]==="reset-size"+t.size&&(n[i].classes[o+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return Mm.makeFragment(n)}Um({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"operatorname",mode:r.mode,body:Vm(a),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:Kv,mathmlBuilder:(e,t)=>{for(var r=hg(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(i instanceof lg.SpaceNode);else if(i instanceof lg.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var o=i.children[0];1===i.children.length&&o instanceof lg.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break;default:n=!1}else n=!1}if(n){var s=r.map(e=>e.toText()).join("");r=[new lg.TextNode(s)]}var l=new lg.MathNode("mi",r);l.setAttribute("mathvariant","normal");var u=new lg.MathNode("mo",[ug("","text")]);return e.parentIsSupSub?new lg.MathNode("mrow",[l,u]):lg.newDocumentFragment([l,u])}}),Sv("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Hm({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?Mm.makeFragment(Km(e.body,t,!1)):Mm.makeSpan(["mord"],Km(e.body,t,!0),t),mathmlBuilder:(e,t)=>pg(e.body,t,!0)}),Um({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=rg(e.body,t.havingCrampedStyle()),n=Mm.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]},t);return Mm.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new lg.MathNode("mo",[new lg.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new lg.MathNode("mover",[fg(e.body,t),r]);return n.setAttribute("accent","true"),n}}),Um({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:Vm(n)}},htmlBuilder:(e,t)=>{var r=Km(e.body,t.withPhantom(),!1);return Mm.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=hg(e.body,t);return new lg.MathNode("mphantom",r)}}),Um({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Mm.makeSpan([],[rg(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),Mm.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=hg(Vm(e.body),t),n=new lg.MathNode("mphantom",r),a=new lg.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),Um({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=Mm.makeSpan(["inner"],[rg(e.body,t.withPhantom())]),n=Mm.makeSpan(["fix"],[]);return Mm.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=hg(Vm(e.body),t),n=new lg.MathNode("mphantom",r),a=new lg.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}}),Um({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=kg(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=rg(e.body,t),n=Sf(e.dy,t);return Mm.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new lg.MathNode("mpadded",[fg(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),Um({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Um({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,a=r[0],i=kg(t[0],"size"),o=kg(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&kg(a,"size").value,width:i.value,height:o.value}},htmlBuilder(e,t){var r=Mm.makeSpan(["mord","rule"],[],t),n=Sf(e.width,t),a=Sf(e.height,t),i=e.shift?Sf(e.shift,t):0;return r.style.borderRightWidth=kf(n),r.style.borderTopWidth=kf(a),r.style.bottom=kf(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=1.125*a*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Sf(e.width,t),n=Sf(e.height,t),a=e.shift?Sf(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new lg.MathNode("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",kf(r)),o.setAttribute("height",kf(n));var s=new lg.MathNode("mpadded",[o]);return a>=0?s.setAttribute("height",kf(a)):(s.setAttribute("height",kf(a)),s.setAttribute("depth",kf(-a))),s.setAttribute("voffset",kf(a)),s}});var Zv=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];Um({type:"sizing",names:Zv,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Zv.indexOf(n)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return Xv(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=hg(e.body,r),a=new lg.MathNode("mstyle",n);return a.setAttribute("mathsize",kf(r.sizeMultiplier)),a}}),Um({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,a=!1,i=!1,o=r[0]&&kg(r[0],"ordgroup");if(o)for(var s="",l=0;l<o.body.length;++l){if("t"===(s=o.body[l].text))a=!0;else{if("b"!==s){a=!1,i=!1;break}i=!0}}else a=!0,i=!0;var u=t[0];return{type:"smash",mode:n.mode,body:u,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var r=Mm.makeSpan([],[rg(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].depth=0;var i=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return Mm.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new lg.MathNode("mpadded",[fg(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),Um({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(e,t){var r=rg(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=Mm.wrapFragment(r,t);var n=t.fontMetrics().defaultRuleThickness,a=n;t.style.id<rf.TEXT.id&&(a=t.fontMetrics().xHeight);var i=n+a/4,o=r.height+r.depth+i+n,{span:s,ruleWidth:l,advanceWidth:u}=hv.sqrtImage(o,t),c=s.height-l;c>r.height+r.depth+i&&(i=(i+c-r.height-r.depth)/2);var d=s.height-r.height-i-l;r.style.paddingLeft=kf(u);var h=Mm.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var p=t.havingStyle(rf.SCRIPTSCRIPT),f=rg(e.index,p,t),m=.6*(h.height-h.depth),g=Mm.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:f}]},t),v=Mm.makeSpan(["root"],[g]);return Mm.makeSpan(["mord","sqrt"],[v,h],t)}return Mm.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new lg.MathNode("mroot",[fg(r,t),fg(n,t)]):new lg.MathNode("msqrt",[fg(r,t)])}});var Jv={display:rf.DISPLAY,text:rf.TEXT,script:rf.SCRIPT,scriptscript:rf.SCRIPTSCRIPT};Um({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:o,body:i}},htmlBuilder(e,t){var r=Jv[e.style],n=t.havingStyle(r).withFont("");return Xv(e.body,n,t)},mathmlBuilder(e,t){var r=Jv[e.style],n=t.havingStyle(r),a=hg(e.body,n),i=new lg.MathNode("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});Hm({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===rf.DISPLAY.size||r.alwaysHandleSupSub)?$v:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===rf.DISPLAY.size||r.limits)?Kv:null:"accent"===r.type?Vp.isCharacterBox(r.base)?_g:null:"horizBrace"===r.type&&!e.sub===r.isOver?Uv:null:null}(e,t);if(r)return r(e,t);var n,a,i,{base:o,sup:s,sub:l}=e,u=rg(o,t),c=t.fontMetrics(),d=0,h=0,p=o&&Vp.isCharacterBox(o);if(s){var f=t.havingStyle(t.style.sup());n=rg(s,f,t),p||(d=u.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());a=rg(l,m,t),p||(h=u.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}i=t.style===rf.DISPLAY?c.sup1:t.style.cramped?c.sup3:c.sup2;var g,v=t.sizeMultiplier,y=kf(.5/c.ptPerEm/v),b=null;if(a){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(u instanceof Mf||w)&&(b=kf(-u.italic))}if(n&&a){d=Math.max(d,i,n.depth+.25*c.xHeight),h=Math.max(h,c.sub2);var x=4*c.defaultRuleThickness;if(d-n.depth-(a.height-h)<x){h=x-(d-n.depth)+a.height;var S=.8*c.xHeight-(d-n.depth);S>0&&(d+=S,h-=S)}var k=[{type:"elem",elem:a,shift:h,marginRight:y,marginLeft:b},{type:"elem",elem:n,shift:-d,marginRight:y}];g=Mm.makeVList({positionType:"individualShift",children:k},t)}else if(a){h=Math.max(h,c.sub1,a.height-.8*c.xHeight);var E=[{type:"elem",elem:a,marginLeft:b,marginRight:y}];g=Mm.makeVList({positionType:"shift",positionData:h,children:E},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");d=Math.max(d,i,n.depth+.25*c.xHeight),g=Mm.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:n,marginRight:y}]},t)}var T=eg(u,"right")||"mord";return Mm.makeSpan([T],[u,Mm.makeSpan(["msupsub"],[g])],t)},mathmlBuilder(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var a,i=[fg(e.base,t)];if(e.sub&&i.push(fg(e.sub,t)),e.sup&&i.push(fg(e.sup,t)),n)a=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;a=o&&"op"===o.type&&o.limits&&t.style===rf.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===rf.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;a=s&&"op"===s.type&&s.limits&&(t.style===rf.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===rf.DISPLAY)?"munder":"msub"}else{var l=e.base;a=l&&"op"===l.type&&l.limits&&(t.style===rf.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===rf.DISPLAY)?"mover":"msup"}return new lg.MathNode(a,i)}}),Hm({type:"atom",htmlBuilder:(e,t)=>Mm.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new lg.MathNode("mo",[ug(e.text,e.mode)]);if("bin"===e.family){var n=dg(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var ey={mi:"italic",mn:"normal",mtext:"normal"};Hm({type:"mathord",htmlBuilder:(e,t)=>Mm.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new lg.MathNode("mi",[ug(e.text,e.mode,t)]),n=dg(e,t)||"italic";return n!==ey[r.type]&&r.setAttribute("mathvariant",n),r}}),Hm({type:"textord",htmlBuilder:(e,t)=>Mm.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,n=ug(e.text,e.mode,t),a=dg(e,t)||"normal";return r="text"===e.mode?new lg.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new lg.MathNode("mn",[n]):"\\prime"===e.text?new lg.MathNode("mo",[n]):new lg.MathNode("mi",[n]),a!==ey[r.type]&&r.setAttribute("mathvariant",a),r}});var ty={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ry={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Hm({type:"spacing",htmlBuilder(e,t){if(ry.hasOwnProperty(e.text)){var r=ry[e.text].className||"";if("text"===e.mode){var n=Mm.makeOrd(e,t,"textord");return n.classes.push(r),n}return Mm.makeSpan(["mspace",r],[Mm.mathsym(e.text,e.mode,t)],t)}if(ty.hasOwnProperty(e.text))return Mm.makeSpan(["mspace",ty[e.text]],[],t);throw new Bp('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!ry.hasOwnProperty(e.text)){if(ty.hasOwnProperty(e.text))return new lg.MathNode("mspace");throw new Bp('Unknown type of space "'+e.text+'"')}return new lg.MathNode("mtext",[new lg.TextNode(" ")])}});var ny=()=>{var e=new lg.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Hm({type:"tag",mathmlBuilder(e,t){var r=new lg.MathNode("mtable",[new lg.MathNode("mtr",[ny(),new lg.MathNode("mtd",[pg(e.body,t)]),ny(),new lg.MathNode("mtd",[pg(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var ay={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},iy={"\\textbf":"textbf","\\textmd":"textmd"},oy={"\\textit":"textit","\\textup":"textup"},sy=(e,t)=>{var r=e.font;return r?ay[r]?t.withTextFontFamily(ay[r]):iy[r]?t.withTextFontWeight(iy[r]):t.withTextFontShape(oy[r]):t};Um({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"text",mode:r.mode,body:Vm(a),font:n}},htmlBuilder(e,t){var r=sy(e,t),n=Km(e.body,r,!0);return Mm.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=sy(e,t);return pg(e.body,r)}}),Um({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=rg(e.body,t),n=Mm.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=Mm.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t);return Mm.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new lg.MathNode("mo",[new lg.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new lg.MathNode("munder",[fg(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),Um({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=rg(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return Mm.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new lg.MathNode("mpadded",[fg(e.body,t)],["vcenter"])}),Um({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Bp("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=ly(e),n=[],a=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var o=r[i];"~"===o&&(o="\\textasciitilde"),n.push(Mm.makeSymbol(o,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return Mm.makeSpan(["mord","text"].concat(a.sizingClasses(t)),Mm.tryCombineChars(n),a)},mathmlBuilder(e,t){var r=new lg.TextNode(ly(e)),n=new lg.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var ly=e=>e.body.replace(/ /g,e.star?"␣":" "),uy=jm,cy="[ \r\n\t]",dy="(\\\\[a-zA-Z@]+)"+cy+"*",hy="[̀-ͯ]",py=new RegExp(hy+"+$"),fy="("+cy+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧-豈-]"+hy+"*|[\ud800-\udbff][\udc00-\udfff]"+hy+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+dy+"|\\\\[^\ud800-\udfff])";class my{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(fy,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new jp("EOF",new Pp(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new Bp("Unexpected character: '"+e[t]+"'",new jp(e[t],new Pp(this,t,t+1)));var n=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[n]){var a=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===a?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new jp(n,new Pp(this,t,this.tokenRegex.lastIndex))}}class gy{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new Bp("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var vy=xv;Sv("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),Sv("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),Sv("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),Sv("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),Sv("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),Sv("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Sv("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var yy={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Sv("\\char",function(e){var t,r=e.popToken(),n="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])n=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new Bp("\\char` missing argument");n=r.text.charCodeAt(0)}else t=10;if(t){if(null==(n=yy[r.text])||n>=t)throw new Bp("Invalid base-"+t+" digit "+r.text);for(var a;null!=(a=yy[e.future().text])&&a<t;)n*=t,n+=a,e.popToken()}return"\\@char{"+n+"}"});var by=(e,t,r)=>{var n=e.consumeArg().tokens;if(1!==n.length)throw new Bp("\\newcommand's first argument must be a macro name");var a=n[0].text,i=e.isDefined(a);if(i&&!t)throw new Bp("\\newcommand{"+a+"} attempting to redefine "+a+"; use \\renewcommand");if(!i&&!r)throw new Bp("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(1===(n=e.consumeArg().tokens).length&&"["===n[0].text){for(var s="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)s+=l.text,l=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new Bp("Invalid number of arguments: "+s);o=parseInt(s),n=e.consumeArg().tokens}return e.macros.set(a,{tokens:n,numArgs:o}),""};Sv("\\newcommand",e=>by(e,!1,!0)),Sv("\\renewcommand",e=>by(e,!0,!1)),Sv("\\providecommand",e=>by(e,!0,!0)),Sv("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join("")),""}),Sv("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join("")),""}),Sv("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),uy[r],Bf.math[r],Bf.text[r]),""}),Sv("\\bgroup","{"),Sv("\\egroup","}"),Sv("~","\\nobreakspace"),Sv("\\lq","`"),Sv("\\rq","'"),Sv("\\aa","\\r a"),Sv("\\AA","\\r A"),Sv("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),Sv("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Sv("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),Sv("ℬ","\\mathscr{B}"),Sv("ℰ","\\mathscr{E}"),Sv("ℱ","\\mathscr{F}"),Sv("ℋ","\\mathscr{H}"),Sv("ℐ","\\mathscr{I}"),Sv("ℒ","\\mathscr{L}"),Sv("ℳ","\\mathscr{M}"),Sv("ℛ","\\mathscr{R}"),Sv("ℭ","\\mathfrak{C}"),Sv("ℌ","\\mathfrak{H}"),Sv("ℨ","\\mathfrak{Z}"),Sv("\\Bbbk","\\Bbb{k}"),Sv("·","\\cdotp"),Sv("\\llap","\\mathllap{\\textrm{#1}}"),Sv("\\rlap","\\mathrlap{\\textrm{#1}}"),Sv("\\clap","\\mathclap{\\textrm{#1}}"),Sv("\\mathstrut","\\vphantom{(}"),Sv("\\underbar","\\underline{\\text{#1}}"),Sv("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Sv("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),Sv("\\ne","\\neq"),Sv("≠","\\neq"),Sv("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),Sv("∉","\\notin"),Sv("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),Sv("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),Sv("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),Sv("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),Sv("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),Sv("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),Sv("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),Sv("⟂","\\perp"),Sv("‼","\\mathclose{!\\mkern-0.8mu!}"),Sv("∌","\\notni"),Sv("⌜","\\ulcorner"),Sv("⌝","\\urcorner"),Sv("⌞","\\llcorner"),Sv("⌟","\\lrcorner"),Sv("©","\\copyright"),Sv("®","\\textregistered"),Sv("️","\\textregistered"),Sv("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),Sv("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),Sv("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),Sv("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),Sv("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Sv("⋮","\\vdots"),Sv("\\varGamma","\\mathit{\\Gamma}"),Sv("\\varDelta","\\mathit{\\Delta}"),Sv("\\varTheta","\\mathit{\\Theta}"),Sv("\\varLambda","\\mathit{\\Lambda}"),Sv("\\varXi","\\mathit{\\Xi}"),Sv("\\varPi","\\mathit{\\Pi}"),Sv("\\varSigma","\\mathit{\\Sigma}"),Sv("\\varUpsilon","\\mathit{\\Upsilon}"),Sv("\\varPhi","\\mathit{\\Phi}"),Sv("\\varPsi","\\mathit{\\Psi}"),Sv("\\varOmega","\\mathit{\\Omega}"),Sv("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Sv("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),Sv("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Sv("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Sv("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Sv("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var wy={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Sv("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in wy?t=wy[r]:("\\not"===r.slice(0,4)||r in Bf.math&&Vp.contains(["bin","rel"],Bf.math[r].group))&&(t="\\dotsb"),t});var xy={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Sv("\\dotso",function(e){return e.future().text in xy?"\\ldots\\,":"\\ldots"}),Sv("\\dotsc",function(e){var t=e.future().text;return t in xy&&","!==t?"\\ldots\\,":"\\ldots"}),Sv("\\cdots",function(e){return e.future().text in xy?"\\@cdots\\,":"\\@cdots"}),Sv("\\dotsb","\\cdots"),Sv("\\dotsm","\\cdots"),Sv("\\dotsi","\\!\\cdots"),Sv("\\dotsx","\\ldots\\,"),Sv("\\DOTSI","\\relax"),Sv("\\DOTSB","\\relax"),Sv("\\DOTSX","\\relax"),Sv("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Sv("\\,","\\tmspace+{3mu}{.1667em}"),Sv("\\thinspace","\\,"),Sv("\\>","\\mskip{4mu}"),Sv("\\:","\\tmspace+{4mu}{.2222em}"),Sv("\\medspace","\\:"),Sv("\\;","\\tmspace+{5mu}{.2777em}"),Sv("\\thickspace","\\;"),Sv("\\!","\\tmspace-{3mu}{.1667em}"),Sv("\\negthinspace","\\!"),Sv("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Sv("\\negthickspace","\\tmspace-{5mu}{.277em}"),Sv("\\enspace","\\kern.5em "),Sv("\\enskip","\\hskip.5em\\relax"),Sv("\\quad","\\hskip1em\\relax"),Sv("\\qquad","\\hskip2em\\relax"),Sv("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Sv("\\tag@paren","\\tag@literal{({#1})}"),Sv("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Bp("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Sv("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Sv("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Sv("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Sv("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Sv("\\newline","\\\\\\relax"),Sv("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Sy=kf(cf["Main-Regular"]["T".charCodeAt(0)][1]-.7*cf["Main-Regular"]["A".charCodeAt(0)][1]);Sv("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Sy+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Sv("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Sy+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Sv("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Sv("\\@hspace","\\hskip #1\\relax"),Sv("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Sv("\\ordinarycolon",":"),Sv("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Sv("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Sv("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Sv("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Sv("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Sv("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Sv("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Sv("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Sv("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Sv("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Sv("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Sv("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Sv("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Sv("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Sv("∷","\\dblcolon"),Sv("∹","\\eqcolon"),Sv("≔","\\coloneqq"),Sv("≕","\\eqqcolon"),Sv("⩴","\\Coloneqq"),Sv("\\ratio","\\vcentcolon"),Sv("\\coloncolon","\\dblcolon"),Sv("\\colonequals","\\coloneqq"),Sv("\\coloncolonequals","\\Coloneqq"),Sv("\\equalscolon","\\eqqcolon"),Sv("\\equalscoloncolon","\\Eqqcolon"),Sv("\\colonminus","\\coloneq"),Sv("\\coloncolonminus","\\Coloneq"),Sv("\\minuscolon","\\eqcolon"),Sv("\\minuscoloncolon","\\Eqcolon"),Sv("\\coloncolonapprox","\\Colonapprox"),Sv("\\coloncolonsim","\\Colonsim"),Sv("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Sv("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Sv("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Sv("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Sv("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Sv("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Sv("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Sv("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Sv("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Sv("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),Sv("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),Sv("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),Sv("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),Sv("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Sv("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Sv("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Sv("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Sv("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Sv("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Sv("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Sv("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Sv("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Sv("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Sv("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Sv("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Sv("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Sv("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Sv("\\imath","\\html@mathml{\\@imath}{ı}"),Sv("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Sv("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Sv("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Sv("⟦","\\llbracket"),Sv("⟧","\\rrbracket"),Sv("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Sv("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Sv("⦃","\\lBrace"),Sv("⦄","\\rBrace"),Sv("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Sv("⦵","\\minuso"),Sv("\\darr","\\downarrow"),Sv("\\dArr","\\Downarrow"),Sv("\\Darr","\\Downarrow"),Sv("\\lang","\\langle"),Sv("\\rang","\\rangle"),Sv("\\uarr","\\uparrow"),Sv("\\uArr","\\Uparrow"),Sv("\\Uarr","\\Uparrow"),Sv("\\N","\\mathbb{N}"),Sv("\\R","\\mathbb{R}"),Sv("\\Z","\\mathbb{Z}"),Sv("\\alef","\\aleph"),Sv("\\alefsym","\\aleph"),Sv("\\Alpha","\\mathrm{A}"),Sv("\\Beta","\\mathrm{B}"),Sv("\\bull","\\bullet"),Sv("\\Chi","\\mathrm{X}"),Sv("\\clubs","\\clubsuit"),Sv("\\cnums","\\mathbb{C}"),Sv("\\Complex","\\mathbb{C}"),Sv("\\Dagger","\\ddagger"),Sv("\\diamonds","\\diamondsuit"),Sv("\\empty","\\emptyset"),Sv("\\Epsilon","\\mathrm{E}"),Sv("\\Eta","\\mathrm{H}"),Sv("\\exist","\\exists"),Sv("\\harr","\\leftrightarrow"),Sv("\\hArr","\\Leftrightarrow"),Sv("\\Harr","\\Leftrightarrow"),Sv("\\hearts","\\heartsuit"),Sv("\\image","\\Im"),Sv("\\infin","\\infty"),Sv("\\Iota","\\mathrm{I}"),Sv("\\isin","\\in"),Sv("\\Kappa","\\mathrm{K}"),Sv("\\larr","\\leftarrow"),Sv("\\lArr","\\Leftarrow"),Sv("\\Larr","\\Leftarrow"),Sv("\\lrarr","\\leftrightarrow"),Sv("\\lrArr","\\Leftrightarrow"),Sv("\\Lrarr","\\Leftrightarrow"),Sv("\\Mu","\\mathrm{M}"),Sv("\\natnums","\\mathbb{N}"),Sv("\\Nu","\\mathrm{N}"),Sv("\\Omicron","\\mathrm{O}"),Sv("\\plusmn","\\pm"),Sv("\\rarr","\\rightarrow"),Sv("\\rArr","\\Rightarrow"),Sv("\\Rarr","\\Rightarrow"),Sv("\\real","\\Re"),Sv("\\reals","\\mathbb{R}"),Sv("\\Reals","\\mathbb{R}"),Sv("\\Rho","\\mathrm{P}"),Sv("\\sdot","\\cdot"),Sv("\\sect","\\S"),Sv("\\spades","\\spadesuit"),Sv("\\sub","\\subset"),Sv("\\sube","\\subseteq"),Sv("\\supe","\\supseteq"),Sv("\\Tau","\\mathrm{T}"),Sv("\\thetasym","\\vartheta"),Sv("\\weierp","\\wp"),Sv("\\Zeta","\\mathrm{Z}"),Sv("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Sv("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Sv("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Sv("\\bra","\\mathinner{\\langle{#1}|}"),Sv("\\ket","\\mathinner{|{#1}\\rangle}"),Sv("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Sv("\\Bra","\\left\\langle#1\\right|"),Sv("\\Ket","\\left|#1\\right\\rangle");var ky=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",o),a.length&&r.macros.set("\\|",s));var i=t;!t&&a.length&&("|"===r.future().text&&(r.popToken(),i=!0));return{tokens:i?a:n,numArgs:0}};t.macros.set("|",l(!1)),a.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...i,...u,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};Sv("\\bra@ket",ky(!1)),Sv("\\bra@set",ky(!0)),Sv("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),Sv("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),Sv("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),Sv("\\angln","{\\angl n}"),Sv("\\blue","\\textcolor{##6495ed}{#1}"),Sv("\\orange","\\textcolor{##ffa500}{#1}"),Sv("\\pink","\\textcolor{##ff00af}{#1}"),Sv("\\red","\\textcolor{##df0030}{#1}"),Sv("\\green","\\textcolor{##28ae7b}{#1}"),Sv("\\gray","\\textcolor{gray}{#1}"),Sv("\\purple","\\textcolor{##9d38bd}{#1}"),Sv("\\blueA","\\textcolor{##ccfaff}{#1}"),Sv("\\blueB","\\textcolor{##80f6ff}{#1}"),Sv("\\blueC","\\textcolor{##63d9ea}{#1}"),Sv("\\blueD","\\textcolor{##11accd}{#1}"),Sv("\\blueE","\\textcolor{##0c7f99}{#1}"),Sv("\\tealA","\\textcolor{##94fff5}{#1}"),Sv("\\tealB","\\textcolor{##26edd5}{#1}"),Sv("\\tealC","\\textcolor{##01d1c1}{#1}"),Sv("\\tealD","\\textcolor{##01a995}{#1}"),Sv("\\tealE","\\textcolor{##208170}{#1}"),Sv("\\greenA","\\textcolor{##b6ffb0}{#1}"),Sv("\\greenB","\\textcolor{##8af281}{#1}"),Sv("\\greenC","\\textcolor{##74cf70}{#1}"),Sv("\\greenD","\\textcolor{##1fab54}{#1}"),Sv("\\greenE","\\textcolor{##0d923f}{#1}"),Sv("\\goldA","\\textcolor{##ffd0a9}{#1}"),Sv("\\goldB","\\textcolor{##ffbb71}{#1}"),Sv("\\goldC","\\textcolor{##ff9c39}{#1}"),Sv("\\goldD","\\textcolor{##e07d10}{#1}"),Sv("\\goldE","\\textcolor{##a75a05}{#1}"),Sv("\\redA","\\textcolor{##fca9a9}{#1}"),Sv("\\redB","\\textcolor{##ff8482}{#1}"),Sv("\\redC","\\textcolor{##f9685d}{#1}"),Sv("\\redD","\\textcolor{##e84d39}{#1}"),Sv("\\redE","\\textcolor{##bc2612}{#1}"),Sv("\\maroonA","\\textcolor{##ffbde0}{#1}"),Sv("\\maroonB","\\textcolor{##ff92c6}{#1}"),Sv("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Sv("\\maroonD","\\textcolor{##ca337c}{#1}"),Sv("\\maroonE","\\textcolor{##9e034e}{#1}"),Sv("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Sv("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Sv("\\purpleC","\\textcolor{##aa87ff}{#1}"),Sv("\\purpleD","\\textcolor{##7854ab}{#1}"),Sv("\\purpleE","\\textcolor{##543b78}{#1}"),Sv("\\mintA","\\textcolor{##f5f9e8}{#1}"),Sv("\\mintB","\\textcolor{##edf2df}{#1}"),Sv("\\mintC","\\textcolor{##e0e5cc}{#1}"),Sv("\\grayA","\\textcolor{##f6f7f7}{#1}"),Sv("\\grayB","\\textcolor{##f0f1f2}{#1}"),Sv("\\grayC","\\textcolor{##e3e5e6}{#1}"),Sv("\\grayD","\\textcolor{##d6d8da}{#1}"),Sv("\\grayE","\\textcolor{##babec2}{#1}"),Sv("\\grayF","\\textcolor{##888d93}{#1}"),Sv("\\grayG","\\textcolor{##626569}{#1}"),Sv("\\grayH","\\textcolor{##3b3e40}{#1}"),Sv("\\grayI","\\textcolor{##21242c}{#1}"),Sv("\\kaBlue","\\textcolor{##314453}{#1}"),Sv("\\kaGreen","\\textcolor{##71B307}{#1}");var Ey={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Ty{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new gy(vy,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new my(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:r}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new jp("EOF",r.loc)),this.pushTokens(n),t.range(r,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var n,a=this.future(),i=0,o=0;do{if(n=this.popToken(),t.push(n),"{"===n.text)++i;else if("}"===n.text){if(-1===--i)throw new Bp("Extra }",n)}else if("EOF"===n.text)throw new Bp("Unexpected end of input in a macro argument, expected '"+(e&&r?e[o]:"}")+"'",n);if(e&&r)if((0===i||1===i&&"{"===e[o])&&n.text===e[o]){if(++o===e.length){t.splice(-o,o);break}}else o=0}while(0!==i||r);return"{"===a.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:a,end:n}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new Bp("The length of delimiters doesn't match the number of args!");for(var r=t[0],n=0;n<r.length;n++){var a=this.popToken();if(r[n]!==a.text)throw new Bp("Use of the macro doesn't match its definition",a)}}for(var i=[],o=0;o<e;o++)i.push(this.consumeArg(t&&t[o+1]).tokens);return i}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new Bp("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,n=t.noexpand?null:this._getExpansion(r);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===r[0]&&!this.isDefined(r))throw new Bp("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var a=n.tokens,i=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(var o=(a=a.slice()).length-1;o>=0;--o){var s=a[o];if("#"===s.text){if(0===o)throw new Bp("Incomplete placeholder at end of macro body",s);if("#"===(s=a[--o]).text)a.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new Bp("Not a valid argument number",s);a.splice(o,2,...i[+s.text-1])}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new jp(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var a=0;if(-1!==n.indexOf("#"))for(var i=n.replace(/##/g,"");-1!==i.indexOf("#"+(a+1));)++a;for(var o=new my(n,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:a}}return n}isDefined(e){return this.macros.has(e)||uy.hasOwnProperty(e)||Bf.math.hasOwnProperty(e)||Bf.text.hasOwnProperty(e)||Ey.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:uy.hasOwnProperty(e)&&!uy[e].primitive}}var _y=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ny=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Cy={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Oy={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class Iy{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Ty(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new Bp("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new jp("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==Iy.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&uy[n.text]&&uy[n.text].infix)break;var a=this.parseAtom(t);if(!a)break;"internal"!==a.type&&r.push(a)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,r=-1,n=0;n<e.length;n++)if("infix"===e[n].type){if(-1!==r)throw new Bp("only one infix operator per group",e[n].token);r=n,t=e[n].replaceWith}if(-1!==r&&t){var a,i,o=e.slice(0,r),s=e.slice(r+1);return a=1===o.length&&"ordgroup"===o[0].type?o[0]:{type:"ordgroup",mode:this.mode,body:o},i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},["\\\\abovefrac"===t?this.callFunction(t,[a,e[r],i],[]):this.callFunction(t,[a,i],[])]}return e}handleSupSubscript(e){var t=this.fetch(),r=t.text;this.consume(),this.consumeSpaces();var n=this.parseGroup(e);if(!n)throw new Bp("Expected group after '"+r+"'",t);return n}formatUnsupportedCmd(e){for(var t=[],r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});var n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}}parseAtom(e){var t,r,n=this.parseGroup("atom",e);if("text"===this.mode)return n;for(;;){this.consumeSpaces();var a=this.fetch();if("\\limits"===a.text||"\\nolimits"===a.text){if(n&&"op"===n.type){var i="\\limits"===a.text;n.limits=i,n.alwaysHandleSupSub=!0}else{if(!n||"operatorname"!==n.type)throw new Bp("Limit controls must follow a math operator",a);n.alwaysHandleSupSub&&(n.limits="\\limits"===a.text)}this.consume()}else if("^"===a.text){if(t)throw new Bp("Double superscript",a);t=this.handleSupSubscript("superscript")}else if("_"===a.text){if(r)throw new Bp("Double subscript",a);r=this.handleSupSubscript("subscript")}else if("'"===a.text){if(t)throw new Bp("Double superscript",a);var o={type:"textord",mode:this.mode,text:"\\prime"},s=[o];for(this.consume();"'"===this.fetch().text;)s.push(o),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:s}}else{if(!Ny[a.text])break;var l=_y.test(a.text),u=[];for(u.push(new jp(Ny[a.text])),this.consume();;){var c=this.fetch().text;if(!Ny[c])break;if(_y.test(c)!==l)break;u.unshift(new jp(Ny[c])),this.consume()}var d=this.subparse(u);l?r={type:"ordgroup",mode:"math",body:d}:t={type:"ordgroup",mode:"math",body:d}}}return t||r?{type:"supsub",mode:this.mode,base:n,sup:t,sub:r}:n}parseFunction(e,t){var r=this.fetch(),n=r.text,a=uy[n];if(!a)return null;if(this.consume(),t&&"atom"!==t&&!a.allowedInArgument)throw new Bp("Got function '"+n+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!a.allowedInText)throw new Bp("Can't use function '"+n+"' in text mode",r);if("math"===this.mode&&!1===a.allowedInMath)throw new Bp("Can't use function '"+n+"' in math mode",r);var{args:i,optArgs:o}=this.parseArguments(n,a);return this.callFunction(n,i,o,r,e)}callFunction(e,t,r,n,a){var i={funcName:e,parser:this,token:n,breakOnTokenText:a},o=uy[e];if(o&&o.handler)return o.handler(i,t,r);throw new Bp("No function handler for "+e)}parseArguments(e,t){var r=t.numArgs+t.numOptionalArgs;if(0===r)return{args:[],optArgs:[]};for(var n=[],a=[],i=0;i<r;i++){var o=t.argTypes&&t.argTypes[i],s=i<t.numOptionalArgs;(t.primitive&&null==o||"sqrt"===t.type&&1===i&&null==a[0])&&(o="primitive");var l=this.parseGroupOfType("argument to '"+e+"'",o,s);if(s)a.push(l);else{if(null==l)throw new Bp("Null argument, please report this as a bug");n.push(l)}}return{args:n,optArgs:a}}parseGroupOfType(e,t,r){switch(t){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,t);case"hbox":var n=this.parseArgumentGroup(r,"text");return null!=n?{type:"styling",mode:n.mode,body:[n],style:"text"}:null;case"raw":var a=this.parseStringGroup("raw",r);return null!=a?{type:"raw",mode:"text",string:a.text}:null;case"primitive":if(r)throw new Bp("A primitive argument cannot be optional");var i=this.parseGroup(e);if(null==i)throw new Bp("Expected group as "+e,this.fetch());return i;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new Bp("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var r=this.gullet.scanArgument(t);if(null==r)return null;for(var n,a="";"EOF"!==(n=this.fetch()).text;)a+=n.text,this.consume();return this.consume(),r.text=a,r}parseRegexGroup(e,t){for(var r,n=this.fetch(),a=n,i="";"EOF"!==(r=this.fetch()).text&&e.test(i+r.text);)i+=(a=r).text,this.consume();if(""===i)throw new Bp("Invalid "+t+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new Bp("Invalid color: '"+t.text+"'",t);var n=r[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,r=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",r=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new Bp("Invalid size: '"+t.text+"'",t);var a={number:+(n[1]+n[2]),unit:n[3]};if(!xf(a))throw new Bp("Invalid unit: '"+a.unit+"'",t);return{type:"size",mode:this.mode,value:a,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,t){var r=this.gullet.scanArgument(e);if(null==r)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:a};return t&&this.switchMode(n),i}parseGroup(e,t){var r,n=this.fetch(),a=n.text;if("{"===a||"\\begingroup"===a){this.consume();var i="{"===a?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,i),s=this.fetch();this.expect(i),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:Pp.range(n,s),body:o,semisimple:"\\begingroup"===a||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===a[0]&&!Ey.hasOwnProperty(a)){if(this.settings.throwOnError)throw new Bp("Undefined control sequence: "+a,n);r=this.formatUnsupportedCmd(a),this.consume()}return r}formLigatures(e){for(var t=e.length-1,r=0;r<t;++r){var n=e[r],a=n.text;"-"===a&&"-"===e[r+1].text&&(r+1<t&&"-"===e[r+2].text?(e.splice(r,3,{type:"textord",mode:"text",loc:Pp.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:Pp.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==a&&"`"!==a||e[r+1].text!==a||(e.splice(r,2,{type:"textord",mode:"text",loc:Pp.range(n,e[r+1]),text:a+a}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),n="*"===r.charAt(0);if(n&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new Bp("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:n}}Oy.hasOwnProperty(t[0])&&!Bf[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Oy[t[0]]+t.slice(1));var a,i=py.exec(t);if(i&&("i"===(t=t.substring(0,i.index))?t="ı":"j"===t&&(t="ȷ")),Bf[this.mode][t]){this.settings.strict&&"math"===this.mode&&vm.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o,s=Bf[this.mode][t].group,l=Pp.range(e);if(Pf.hasOwnProperty(s)){var u=s;o={type:"atom",mode:this.mode,family:u,loc:l,text:t}}else o={type:s,mode:this.mode,loc:l,text:t};a=o}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(of(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),a={type:"textord",mode:"text",loc:Pp.range(e),text:t}}if(this.consume(),i)for(var c=0;c<i[0].length;c++){var d=i[0][c];if(!Cy[d])throw new Bp("Unknown accent ' "+d+"'",e);var h=Cy[d][this.mode]||Cy[d].text;if(!h)throw new Bp("Accent "+d+" unsupported in "+this.mode+" mode",e);a={type:"accent",mode:this.mode,loc:Pp.range(e),label:h,isStretchy:!1,isShifty:!0,base:a}}return a}}Iy.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Ry=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Iy(e,t);delete r.gullet.macros.current["\\df@tag"];var n=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new Bp("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:r.subparse([new jp("\\df@tag")])}]}return n},My=function(e,t,r){t.textContent="";var n=zy(e,r).toNode();t.appendChild(n)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),My=function(){throw new Bp("KaTeX doesn't work in quirks mode.")});var Ay=function(e,t,r){if(r.throwOnError||!(e instanceof Bp))throw e;var n=Mm.makeSpan(["katex-error"],[new Mf(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+r.errorColor),n},zy=function(e,t){var r=new Gp(t);try{return function(e,t,r){var n,a=gg(r);if("mathml"===r.output)return mg(e,t,a,r.displayMode,!0);if("html"===r.output){var i=ag(e,a);n=Mm.makeSpan(["katex"],[i])}else{var o=mg(e,t,a,r.displayMode,!1),s=ag(e,a);n=Mm.makeSpan(["katex"],[o,s])}return vg(n,r)}(Ry(e,r),e,r)}catch(n){return Ay(n,e,r)}},Dy={version:"0.16.10",render:My,renderToString:function(e,t){return zy(e,t).toMarkup()},ParseError:Bp,SETTINGS_SCHEMA:Wp,__parse:function(e,t){var r=new Gp(t);return Ry(e,r)},__renderToDomTree:zy,__renderToHTMLTree:function(e,t){var r=new Gp(t);try{return function(e,t,r){var n=ag(e,gg(r)),a=Mm.makeSpan(["katex"],[n]);return vg(a,r)}(Ry(e,r),0,r)}catch(n){return Ay(n,e,r)}},__setFontMetrics:function(e,t){cf[e]=t},__defineSymbol:qf,__defineFunction:Um,__defineMacro:Sv,__domTree:{Span:Cf,Anchor:Of,SymbolNode:Mf,SvgNode:Af,PathNode:zf,LineNode:Df}};const Ly=e=>/^https?:\/\//i.test(e??"");function Py(e,t){return e.find(e=>String(e.id)===t)}function jy(e,t,r){return Ly(e)?e:r.isAvailableLocally&&r.basePath?`${r.basePath}/${r.questionId}/${e}`:((null==t?void 0:t.baseUrl)??"")+e}function By(e,t={}){if(!e)return"";const r=t.media||[];let n=e;n=n.replace(/<img\b[^>]*>/gi,e=>{const n=e.match(/data-asset-variable=["']([^"']+)["']/i);if(!n)return e;const a=Py(r,n[1]);if(!a)return e;const i=e.match(/\ssrc=["']([^"']*)["']/i),o=function(e,t,r){if(t.isAvailableLocally&&t.basePath){const n=`${t.basePath.substring(0,t.basePath.lastIndexOf("/"))}/${t.sectionId??""}`;return t.questionId?`${n}/${t.questionId}/${e.src}`:r}return Ly(e.src)?e.src:e.baseUrl?(e.baseUrl??"")+e.src:r}(a,t,null==i?void 0:i[1]);return void 0===o?e:i?e.replace(/\ssrc=["'][^"']*["']/i,` src="${o}"`):e.replace(/^<img/i,`<img src="${o}"`)});const a=function(e){return(e||[]).filter(e=>e&&("image"===e.type||/^image\//i.test(e.mimeType||"")))}(r);if(a.length&&/<figure\b[^>]*\bimage\b/i.test(n)){let e=0;n=n.replace(/<figure\b[^>]*class="[^"]*\bimage\b[^"]*"[^>]*>\s*<\/figure>/gi,()=>{var t;const r=a[e++];if(!r)return'<figure class="image"></figure>';return`<figure class="image"><img src="${(null==(t=r.src)?void 0:t.startsWith("http"))?r.src:(r.baseUrl??"")+r.src}" style="max-width:100%" alt="" /></figure>`})}return n=function(e,t,r){return e.replace(/<(video|audio)\b([^>]*)>([\s\S]*?)<\/\1>/gi,(e,n,a,i)=>{const o=a.match(/data-asset-variable=["']([^"']+)["']/i);if(!o)return e;const s=Py(t,o[1]);if(!s)return e;let l=a;return l=l.replace(/\sposter=["']([^"']*)["']/i,(e,t)=>t&&!Ly(t)?` poster="${jy(t,s,r)}"`:e),l=l.replace(/\ssrc=["']([^"']*)["']/i,(e,t)=>t&&!Ly(t)?` src="${jy(t,s,r)}"`:e),`<${n}${l}>${i.replace(/<source\b[^>]*>/gi,e=>{const t=e.match(/\ssrc=["']([^"']*)["']/i);return!t||Ly(t[1])?e:e.replace(/\ssrc=["'][^"']*["']/i,` src="${jy(t[1],s,r)}"`)})}</${n}>`})}(n,r,t),n}const qy={en:{NEXT:"Next",PREVIOUS:"Previous",SUBMIT:"Submit",CLOSE:"Close",BACK:"Back",SKIP:"Skip",RETRY:"Retry",REPLAY:"Replay",SHOW_ANSWER:"Show Answer",VIEW_SOLUTION:"View Solution",VIEW_HINT:"View Hint",HIDE_ANSWER:"Hide Answer",QUESTION:"Question",OF:"of",SECTION:"Section",CORRECT_ANSWER:"Correct Answer",INCORRECT_ANSWER:"Wrong Answer, Try Again",PARTIAL_SCORE:"Partial Score",YOUR_ANSWER:"Your Answer",EXPECTED_ANSWER:"Expected Answer",TIME_REMAINING:"Time Remaining",TIME_TAKEN:"Time Taken",TIME_UP:"Time Up!",SECONDS:"seconds",MINUTES:"minutes",SCORE:"Score",TOTAL_SCORE:"Total Score",CORRECT:"Correct",INCORRECT:"Incorrect",SKIPPED:"Skipped",PARTIAL:"Partial",START_QUIZ:"Start Quiz",END_QUIZ:"End Quiz",QUIZ_COMPLETE:"Quiz Complete!",THANK_YOU:"Thank you for completing the quiz.",ERROR_LOADING:"Error loading content",LOADING:"Loading…",RETRY_LOADING:"Retry Loading",NETWORK_ERROR:"Network error. Please check your connection.",BOOKMARK:"Bookmark",UNBOOKMARK:"Unbookmark",ZOOM_IN:"Zoom In",ZOOM_OUT:"Zoom Out",START:"Start",BEGIN:"Begin",QUESTIONS:"Questions",SECTIONS:"Sections",TIME_LIMIT:"Time Limit",MAX_SCORE:"Max Score",INSTRUCTIONS:"Instructions",ASSESSMENT_OVERVIEW:"Assessment Overview",SECTION_INTRO:"Section Introduction",PROGRESS:"Progress",NAVIGATION:"Navigation",QUESTION_PALETTE:"Question Palette",SHOW_HINT:"Show Hint",HIDE_HINT:"Hide Hint",HINT:"Hint",SOLUTION:"Solution",NO_HINTS:"No hints available",ANSWERED:"Answered",UNANSWERED:"Unanswered",NOT_VISITED:"Not visited",NEEDS_REVIEW:"Needs review",CURRENT:"Current",OPEN_MENU:"Open navigation menu",CLOSE_MENU:"Close navigation menu",SUBMIT_ASSESSMENT:"Submit Assessment",PROGRESS_SAVED:"Progress is saved",ASSESSMENT_SECTIONS:"Assessment sections",SECTIONS_COVER_NOTE:"Here's what you'll be covering in this assessment.",START_ASSESSMENT:"Start assessment",ATTEMPTS_LEFT:"Attempts Left",MINUTES_LABEL:"Minutes",TIMER_START_NOTE:"The timer starts when you click. You have {attempts} attempts for this assessment.",START_SECTION:"Start section",HELP:"Help",MANDATORY_NOTE:"All questions are mandatory. Choose the response you believe is correct — you can revisit any question before submitting.",SUBMIT_TITLE:"Submit your assessment?",SUBMIT_BODY:"You can review your answers after submitting.",CONFIRM:"Confirm",CANCEL:"Cancel",YOUR_RESULTS:"Your Results",REVIEW_ALL:"Review all answers",RETAKE:"Retake",REVIEW:"Review",BACK_TO_RESULTS:"Back to results",RESULT_SUMMARY:"You scored {score} out of {max}.",ANSWER:"Answer",HELP_LEGEND_TITLE:"Section markers",SECTION_CURRENT:"Current section",SECTION_DONE:"Completed section",SECTION_UPCOMING:"Upcoming section"},ar:{NEXT:"التالي",PREVIOUS:"السابق",SUBMIT:"إرسال",CLOSE:"إغلاق",BACK:"رجوع",SKIP:"تخطّي",RETRY:"إعادة المحاولة",REPLAY:"إعادة التشغيل",SHOW_ANSWER:"عرض الإجابة",VIEW_SOLUTION:"عرض الحل",VIEW_HINT:"عرض التلميح",HIDE_ANSWER:"إخفاء الإجابة",QUESTION:"سؤال",OF:"من",SECTION:"القسم",CORRECT_ANSWER:"إجابة صحيحة",INCORRECT_ANSWER:"إجابة خاطئة، حاول مرة أخرى",PARTIAL_SCORE:"درجة جزئية",YOUR_ANSWER:"إجابتك",EXPECTED_ANSWER:"الإجابة المتوقعة",TIME_REMAINING:"الوقت المتبقّي",TIME_TAKEN:"الوقت المستغرق",TIME_UP:"انتهى الوقت!",SECONDS:"ثوانٍ",MINUTES:"دقائق",SCORE:"الدرجة",TOTAL_SCORE:"الدرجة الكلية",CORRECT:"صحيح",INCORRECT:"غير صحيح",SKIPPED:"تم التخطّي",PARTIAL:"جزئي",START_QUIZ:"ابدأ الاختبار",END_QUIZ:"إنهاء الاختبار",QUIZ_COMPLETE:"اكتمل الاختبار!",THANK_YOU:"شكراً لإكمالك الاختبار.",ERROR_LOADING:"خطأ في تحميل المحتوى",LOADING:"جارٍ التحميل…",RETRY_LOADING:"إعادة التحميل",NETWORK_ERROR:"خطأ في الشبكة. يُرجى التحقق من اتصالك.",BOOKMARK:"إشارة مرجعية",UNBOOKMARK:"إزالة الإشارة المرجعية",ZOOM_IN:"تكبير",ZOOM_OUT:"تصغير",START:"ابدأ",BEGIN:"ابدأ",QUESTIONS:"الأسئلة",SECTIONS:"الأقسام",TIME_LIMIT:"الحد الزمني",MAX_SCORE:"أقصى درجة",INSTRUCTIONS:"التعليمات",ASSESSMENT_OVERVIEW:"نظرة عامة على التقييم",SECTION_INTRO:"مقدمة القسم",PROGRESS:"التقدّم",NAVIGATION:"التنقّل",QUESTION_PALETTE:"لوحة الأسئلة",SHOW_HINT:"عرض التلميح",HIDE_HINT:"إخفاء التلميح",HINT:"تلميح",SOLUTION:"الحل",NO_HINTS:"لا تتوفّر تلميحات",ANSWERED:"تمت الإجابة",UNANSWERED:"لم تتم الإجابة",NOT_VISITED:"لم تتم زيارته",NEEDS_REVIEW:"يحتاج إلى مراجعة",CURRENT:"الحالي",OPEN_MENU:"فتح قائمة التنقّل",CLOSE_MENU:"إغلاق قائمة التنقّل",SUBMIT_ASSESSMENT:"إرسال التقييم",PROGRESS_SAVED:"تم حفظ التقدّم",ASSESSMENT_SECTIONS:"أقسام التقييم",SECTIONS_COVER_NOTE:"إليك ما ستغطّيه في هذا التقييم.",START_ASSESSMENT:"بدء التقييم",ATTEMPTS_LEFT:"المحاولات المتبقية",MINUTES_LABEL:"دقائق",TIMER_START_NOTE:"يبدأ المؤقّت عند النقر. لديك {attempts} محاولات لهذا التقييم.",START_SECTION:"بدء القسم",HELP:"مساعدة",MANDATORY_NOTE:"جميع الأسئلة إلزامية. اختر الإجابة التي تعتقد أنها صحيحة — يمكنك العودة إلى أي سؤال قبل الإرسال.",SUBMIT_TITLE:"هل تريد إرسال التقييم؟",SUBMIT_BODY:"يمكنك مراجعة إجاباتك بعد الإرسال.",CONFIRM:"تأكيد",CANCEL:"إلغاء",YOUR_RESULTS:"نتائجك",REVIEW_ALL:"مراجعة جميع الإجابات",RETAKE:"إعادة المحاولة",REVIEW:"مراجعة",BACK_TO_RESULTS:"العودة إلى النتائج",RESULT_SUMMARY:"لقد حصلت على {score} من {max}.",ANSWER:"الإجابة",HELP_LEGEND_TITLE:"علامات الأقسام",SECTION_CURRENT:"القسم الحالي",SECTION_DONE:"قسم مكتمل",SECTION_UPCOMING:"قسم قادم"},fr:{NEXT:"Suivant",PREVIOUS:"Précédent",SUBMIT:"Soumettre",CLOSE:"Fermer",BACK:"Retour",SKIP:"Passer",RETRY:"Réessayer",REPLAY:"Rejouer",SHOW_ANSWER:"Afficher la réponse",VIEW_SOLUTION:"Voir la solution",VIEW_HINT:"Voir l’indice",HIDE_ANSWER:"Masquer la réponse",QUESTION:"Question",OF:"sur",SECTION:"Section",CORRECT_ANSWER:"Bonne réponse",INCORRECT_ANSWER:"Mauvaise réponse, réessayez",PARTIAL_SCORE:"Score partiel",YOUR_ANSWER:"Votre réponse",EXPECTED_ANSWER:"Réponse attendue",TIME_REMAINING:"Temps restant",TIME_TAKEN:"Temps passé",TIME_UP:"Temps écoulé !",SECONDS:"secondes",MINUTES:"minutes",SCORE:"Score",TOTAL_SCORE:"Score total",CORRECT:"Correct",INCORRECT:"Incorrect",SKIPPED:"Ignoré",PARTIAL:"Partiel",START_QUIZ:"Commencer le quiz",END_QUIZ:"Terminer le quiz",QUIZ_COMPLETE:"Quiz terminé !",THANK_YOU:"Merci d’avoir complété le quiz.",ERROR_LOADING:"Erreur lors du chargement du contenu",LOADING:"Chargement…",RETRY_LOADING:"Réessayer le chargement",NETWORK_ERROR:"Erreur réseau. Veuillez vérifier votre connexion.",BOOKMARK:"Marquer",UNBOOKMARK:"Retirer le marque-page",ZOOM_IN:"Agrandir",ZOOM_OUT:"Réduire",START:"Démarrer",BEGIN:"Commencer",QUESTIONS:"Questions",SECTIONS:"Sections",TIME_LIMIT:"Limite de temps",MAX_SCORE:"Score maximal",INSTRUCTIONS:"Instructions",ASSESSMENT_OVERVIEW:"Aperçu de l’évaluation",SECTION_INTRO:"Introduction de la section",PROGRESS:"Progression",NAVIGATION:"Navigation",QUESTION_PALETTE:"Palette de questions",SHOW_HINT:"Afficher l’indice",HIDE_HINT:"Masquer l’indice",HINT:"Indice",SOLUTION:"Solution",NO_HINTS:"Aucun indice disponible",ANSWERED:"Répondu",UNANSWERED:"Sans réponse",NOT_VISITED:"Non visité",NEEDS_REVIEW:"À revoir",CURRENT:"Actuel",OPEN_MENU:"Ouvrir le menu de navigation",CLOSE_MENU:"Fermer le menu de navigation",SUBMIT_ASSESSMENT:"Soumettre l’évaluation",PROGRESS_SAVED:"Progression enregistrée",ASSESSMENT_SECTIONS:"Sections de l’évaluation",SECTIONS_COVER_NOTE:"Voici ce que vous allez aborder dans cette évaluation.",START_ASSESSMENT:"Commencer l’évaluation",ATTEMPTS_LEFT:"Tentatives restantes",MINUTES_LABEL:"Minutes",TIMER_START_NOTE:"Le minuteur démarre lorsque vous cliquez. Vous avez {attempts} tentatives pour cette évaluation.",START_SECTION:"Commencer la section",HELP:"Aide",MANDATORY_NOTE:"Toutes les questions sont obligatoires. Choisissez la réponse que vous pensez correcte — vous pouvez revenir sur n’importe quelle question avant de soumettre.",SUBMIT_TITLE:"Soumettre votre évaluation ?",SUBMIT_BODY:"Vous pourrez revoir vos réponses après la soumission.",CONFIRM:"Confirmer",CANCEL:"Annuler",YOUR_RESULTS:"Vos résultats",REVIEW_ALL:"Revoir toutes les réponses",RETAKE:"Recommencer",REVIEW:"Revoir",BACK_TO_RESULTS:"Retour aux résultats",RESULT_SUMMARY:"Vous avez obtenu {score} sur {max}.",ANSWER:"Réponse",HELP_LEGEND_TITLE:"Repères de section",SECTION_CURRENT:"Section actuelle",SECTION_DONE:"Section terminée",SECTION_UPCOMING:"Section à venir"},pt:{NEXT:"Próximo",PREVIOUS:"Anterior",SUBMIT:"Enviar",CLOSE:"Fechar",BACK:"Voltar",SKIP:"Pular",RETRY:"Tentar novamente",REPLAY:"Repetir",SHOW_ANSWER:"Mostrar resposta",VIEW_SOLUTION:"Ver solução",VIEW_HINT:"Ver dica",HIDE_ANSWER:"Ocultar resposta",QUESTION:"Pergunta",OF:"de",SECTION:"Seção",CORRECT_ANSWER:"Resposta correta",INCORRECT_ANSWER:"Resposta errada, tente novamente",PARTIAL_SCORE:"Pontuação parcial",YOUR_ANSWER:"Sua resposta",EXPECTED_ANSWER:"Resposta esperada",TIME_REMAINING:"Tempo restante",TIME_TAKEN:"Tempo gasto",TIME_UP:"Tempo esgotado!",SECONDS:"segundos",MINUTES:"minutos",SCORE:"Pontuação",TOTAL_SCORE:"Pontuação total",CORRECT:"Correto",INCORRECT:"Incorreto",SKIPPED:"Ignorado",PARTIAL:"Parcial",START_QUIZ:"Iniciar questionário",END_QUIZ:"Encerrar questionário",QUIZ_COMPLETE:"Questionário concluído!",THANK_YOU:"Obrigado por concluir o questionário.",ERROR_LOADING:"Erro ao carregar o conteúdo",LOADING:"Carregando…",RETRY_LOADING:"Tentar carregar novamente",NETWORK_ERROR:"Erro de rede. Verifique sua conexão.",BOOKMARK:"Marcar",UNBOOKMARK:"Desmarcar",ZOOM_IN:"Ampliar",ZOOM_OUT:"Reduzir",START:"Iniciar",BEGIN:"Começar",QUESTIONS:"Perguntas",SECTIONS:"Seções",TIME_LIMIT:"Limite de tempo",MAX_SCORE:"Pontuação máxima",INSTRUCTIONS:"Instruções",ASSESSMENT_OVERVIEW:"Visão geral da avaliação",SECTION_INTRO:"Introdução da seção",PROGRESS:"Progresso",NAVIGATION:"Navegação",QUESTION_PALETTE:"Painel de perguntas",SHOW_HINT:"Mostrar dica",HIDE_HINT:"Ocultar dica",HINT:"Dica",SOLUTION:"Solução",NO_HINTS:"Nenhuma dica disponível",ANSWERED:"Respondida",UNANSWERED:"Não respondida",NOT_VISITED:"Não visitada",NEEDS_REVIEW:"Precisa de revisão",CURRENT:"Atual",OPEN_MENU:"Abrir menu de navegação",CLOSE_MENU:"Fechar menu de navegação",SUBMIT_ASSESSMENT:"Enviar avaliação",PROGRESS_SAVED:"Progresso salvo",ASSESSMENT_SECTIONS:"Seções da avaliação",SECTIONS_COVER_NOTE:"Veja o que você abordará nesta avaliação.",START_ASSESSMENT:"Iniciar avaliação",ATTEMPTS_LEFT:"Tentativas restantes",MINUTES_LABEL:"Minutos",TIMER_START_NOTE:"O cronômetro começa quando você clica. Você tem {attempts} tentativas para esta avaliação.",START_SECTION:"Iniciar seção",HELP:"Ajuda",MANDATORY_NOTE:"Todas as perguntas são obrigatórias. Escolha a resposta que você acredita estar correta — você pode revisar qualquer pergunta antes de enviar.",SUBMIT_TITLE:"Enviar sua avaliação?",SUBMIT_BODY:"Você pode revisar suas respostas após o envio.",CONFIRM:"Confirmar",CANCEL:"Cancelar",YOUR_RESULTS:"Seus resultados",REVIEW_ALL:"Revisar todas as respostas",RETAKE:"Refazer",REVIEW:"Revisar",BACK_TO_RESULTS:"Voltar aos resultados",RESULT_SUMMARY:"Você marcou {score} de {max}.",ANSWER:"Resposta",HELP_LEGEND_TITLE:"Marcadores de seção",SECTION_CURRENT:"Seção atual",SECTION_DONE:"Seção concluída",SECTION_UPCOMING:"Próxima seção"}};function Uy(e,t,r={}){let n=(qy[e]||qy.en)[t]||qy.en[t]||t;return Object.entries(r).forEach(([e,t])=>{n=n.replace(`{${e}}`,String(t))}),n}function Hy(e,t="en"){if(!e)return"";if("object"==typeof e&&!Array.isArray(e))return Fy(e,t);if("string"==typeof e){if(e.startsWith("{"))try{const r=JSON.parse(e);if(r&&"object"==typeof r&&!Array.isArray(r))return Fy(r,t)||e}catch{return e}return e}return""}function Fy(e,t){const r=Object.keys(e)[0],n=void 0!==e[t]?e[t]:void 0!==e.en?e.en:void 0!==r?e[r]:"";return"string"==typeof n?n:""}const Vy="_body_icj8w_1";function Wy({question:e,language:t="en",mediaCtx:r}){const n=j.useRef(null),a=j.useRef(null);return j.useEffect(()=>{const i=n.current;if(i&&(null==e?void 0:e.body))try{const n=Hy(e.body,t),o=By(n,{...r,media:(null==r?void 0:r.media)??e.media});if(o===a.current)return;a.current=o,i.innerHTML=o;i.querySelectorAll(".math").forEach(e=>{try{const t=e.textContent||"",r=e.classList.contains("math-block");Dy.render(t,e,{displayMode:r})}catch(t){console.warn("[QuestionBody] KaTeX render error:",t)}})}catch(o){console.error("[QuestionBody] Error rendering body:",o)}},[null==e?void 0:e.body,(null==r?void 0:r.media)??(null==e?void 0:e.media),null==r?void 0:r.basePath,null==r?void 0:r.isAvailableLocally,null==r?void 0:r.sectionId,null==r?void 0:r.questionId,t]),$.jsx("div",{ref:n,className:Vy,lang:t,dir:"auto"})}function $y(e){const t=e.interactions||{},r=Object.keys(t)[0],n=r?t[r].options:void 0;return Array.isArray(n)?n:[]}function Gy(e,t,r={}){return By(Hy(e,t),r)}const Yy="_mcq_1451t_1",Qy="_options_1451t_7",Ky="_option_1451t_7",Xy="_selected_1451t_42",Zy="_indicator_1451t_47",Jy="_radio_1451t_57",eb="_indicatorMark_1451t_69",tb="_alpha_1451t_76",rb="_label_1451t_83",nb="_review_1451t_91";const ab="_boolean_126cw_1",ib="_optionsRow_126cw_7",ob="_card_126cw_22",sb="_selected_126cw_56",lb="_cardLabel_126cw_61",ub="_review_126cw_74";const cb="_sa_ur0ho_1",db="_label_ur0ho_7",hb="_actions_ur0ho_14",pb="_revealBtn_ur0ho_19",fb="_answer_ur0ho_49",mb="_blurred_ur0ho_56",gb="_answerText_ur0ho_62";const vb="_ftb_13jy5_1",yb="_template_13jy5_8",bb="_blankWrap_13jy5_15",wb="_blankNum_13jy5_21",xb="_blank_13jy5_15",Sb="_filled_13jy5_63",kb="_fallbackBlanks_13jy5_68";function Eb({question:e,replayed:t=!1,language:r="en",mediaCtx:n,savedResponse:a=null,onOptionSelected:i,onComponentLoaded:o,onGoToNext:s}){const l=function(e){return Object.keys(e.responseDeclaration||{})}(e),u={...n,media:(null==n?void 0:n.media)??e.media},[c,d]=j.useState(()=>(null==a?void 0:a.responses)??{}),h=j.useRef(!1);j.useEffect(()=>{h.current||(h.current=!0,null==o||o())},[e.identifier]);const p=Hy(e.body,r),f=p.split(/\[\[(response\d+)\]\]/g),m=l[l.length-1];let g=0;const v=e=>{g+=1;const r=g;return $.jsxs("span",{className:bb,children:[$.jsx("span",{className:wb,"aria-hidden":"true",children:r}),$.jsx("input",{type:"text",className:`${xb} ${c[e]?Sb:""}`.trim(),value:c[e]||"",disabled:t,"aria-label":`Blank ${r}`,onChange:r=>((e,r)=>{if(t)return;const n={...c,[e]:r};d(n),null==i||i({responses:n,timestamp:Date.now()})})(e,r.target.value),onKeyDown:t=>{"Enter"===t.key&&e===m&&(null==s||s())}})]},`blank-${e}`)},y=f.length>1;return $.jsx("div",{className:vb,lang:r,dir:"auto",children:y?$.jsx("p",{className:yb,children:f.map((e,t)=>t%2==0?$.jsx("span",{dangerouslySetInnerHTML:{__html:By(e,u)}},`text-${t}`):v(e))}):$.jsxs($.Fragment,{children:[$.jsx("div",{dangerouslySetInnerHTML:{__html:By(p,u)}}),$.jsx("div",{className:kb,children:l.map(e=>v(e))})]})})}function Tb(e){if(!Array.isArray(e))return[];const t=[...e];for(let r=t.length-1;r>0;r--){const e=Math.floor(Math.random()*(r+1));[t[r],t[e]]=[t[e],t[r]]}return t}const _b="_mtf_65g70_1",Nb="_board_65g70_7",Cb="_row_65g70_16",Ob="_leftCard_65g70_27",Ib="_rightCell_65g70_28",Rb="_arrow_65g70_47",Mb="_dragging_65g70_57",Ab="_over_65g70_62",zb="_term_65g70_67",Db="mtf-right";function Lb({option:e,index:t,language:r,mediaCtx:n,disabled:a,onSwap:i}){const o=j.useRef(null),[{isDragging:s},l]=Bh({type:Db,item:{index:t},canDrag:!a,collect:e=>({isDragging:e.isDragging()})}),[{isOver:u},c]=Fh({accept:Db,collect:e=>({isOver:e.isOver()}),drop:e=>i(e.index,t)});l(c(o));const d=Gy(e.label,r,n);return $.jsx("div",{ref:o,className:`${Ib} ${s?Mb:""} ${u?Ab:""}`.trim(),dangerouslySetInnerHTML:{__html:d}})}const Pb="_seq_ptw2c_1",jb="_row_ptw2c_10",Bb="_dragging_ptw2c_23",qb="_over_ptw2c_28",Ub="_grip_ptw2c_33",Hb="_label_ptw2c_39",Fb="_controls_ptw2c_49",Vb="_nudge_ptw2c_54",Wb="_seqWrap_ptw2c_85",$b="seq-item";function Gb({index:e,total:t,label:r,disabled:n,onMove:a,onNudge:i}){const o=j.useRef(null),[{isDragging:s},l]=Bh({type:$b,item:{index:e},canDrag:!n,collect:e=>({isDragging:e.isDragging()})}),[{isOver:u},c]=Fh({accept:$b,collect:e=>({isOver:e.isOver()}),hover:t=>{t.index!==e&&(a(t.index,e),t.index=e)}});return l(c(o)),$.jsxs("li",{ref:o,className:`${jb} ${s?Bb:""} ${u?qb:""}`.trim(),children:[$.jsx("span",{className:Ub,"aria-hidden":"true",children:"⠿"}),$.jsx("span",{className:Hb,dangerouslySetInnerHTML:{__html:r}}),$.jsxs("span",{className:Fb,children:[$.jsx("button",{type:"button",className:Vb,"aria-label":`Move item ${e+1} up`,disabled:n||0===e,onClick:()=>i(e,-1),children:"↑"}),$.jsx("button",{type:"button",className:Vb,"aria-label":`Move item ${e+1} down`,disabled:n||e===t-1,onClick:()=>i(e,1),children:"↓"})]})]})}const Yb="_reo_zhyrs_1",Qb="_sectionLabel_zhyrs_7",Kb="_answer_zhyrs_16",Xb="_filled_zhyrs_29",Zb="_over_zhyrs_34",Jb="_placeholder_zhyrs_39",ew="_chip_zhyrs_46",tw="_bank_zhyrs_73",rw="_bankWord_zhyrs_79",nw="_dragging_zhyrs_106",aw="_allUsed_zhyrs_110",iw="reo-word";function ow({option:e,label:t,disabled:r,onAdd:n}){const a=j.useRef(null),[{isDragging:i},o]=Bh({type:iw,item:{value:e.value},canDrag:!r,collect:e=>({isDragging:e.isDragging()})});return o(a),$.jsx("button",{ref:a,type:"button",className:`${rw} ${i?nw:""}`.trim(),disabled:r,onClick:()=>n(e.value),dangerouslySetInnerHTML:{__html:t}})}const sw=new Map([["multiple choice question",function({question:e,replayed:t=!1,language:r="en",mediaCtx:n,savedResponse:a=null,score:i=null,onOptionSelected:o,onComponentLoaded:s}){const l=$y(e),u={...n,media:(null==n?void 0:n.media)??e.media},[c,d]=j.useState(null),h=j.useRef(!1);return j.useEffect(()=>{void 0!==(null==a?void 0:a.value)&&null!==(null==a?void 0:a.value)&&d(a.value),h.current||(h.current=!0,null==s||s())},[e.identifier]),$.jsxs("div",{className:Yy,children:[$.jsx(Wy,{question:e,language:r,mediaCtx:u}),$.jsx("div",{className:Qy,role:"radiogroup","aria-label":"Answer options",children:l.map((e,n)=>{const a=c===e.value;return $.jsxs("button",{type:"button",className:`${Ky} ${a?Xy:""}`.trim(),role:"radio","aria-checked":a,disabled:t,onClick:()=>{return r=e.value,void(t||(d(r),null==o||o({value:r,timestamp:Date.now()})));var r},children:[$.jsx("span",{className:`${Zy} ${Jy}`,"aria-hidden":"true",children:a&&$.jsx("span",{className:eb})}),$.jsx("span",{className:tb,"aria-hidden":"true",children:String.fromCharCode(65+n)}),$.jsx("span",{className:rb,dangerouslySetInnerHTML:{__html:Gy(e.label,r,u)}})]},`${e.value}-${n}`)})}),t&&null!=i&&$.jsxs("div",{className:nb,children:["Score: ",i]})]})}],["boolean question",function({question:e,replayed:t=!1,language:r="en",mediaCtx:n,savedResponse:a=null,score:i=null,onOptionSelected:o,onComponentLoaded:s}){const l=$y(e),u={...n,media:(null==n?void 0:n.media)??e.media},[c,d]=j.useState(null),h=j.useRef(!1);j.useEffect(()=>{void 0!==(null==a?void 0:a.value)&&null!==(null==a?void 0:a.value)&&d(a.value),h.current||(h.current=!0,null==s||s())},[e.identifier]),j.useEffect(()=>{t&&d(null)},[t]);const p=e=>{t||(d(e),null==o||o({value:e,timestamp:Date.now()}))};return $.jsxs("div",{className:ab,children:[$.jsx(Wy,{question:e,language:r,mediaCtx:u}),$.jsx("div",{className:ib,role:"radiogroup","aria-label":"True or False",children:l.map(e=>{const n=c===e.value,a=Gy(e.label,r,u);return $.jsx("button",{type:"button",className:`${ob} ${n?sb:""}`.trim(),role:"radio","aria-checked":n,disabled:t,onClick:()=>p(e.value),onKeyDown:t=>{return r=t,n=e.value,void("Enter"!==r.key&&" "!==r.key||(r.preventDefault(),p(n)));var r,n},children:$.jsx("span",{className:lb,dangerouslySetInnerHTML:{__html:a}})},e.value)})}),t&&null!=i&&$.jsxs("div",{className:ub,children:["Score: ",i]})]})}],["subjective question",function({question:e,language:t="en",mediaCtx:r,savedResponse:n=null,onOptionSelected:a,onComponentLoaded:i}){const o=j.useRef(!1),[s,l]=j.useState(Boolean(null==n?void 0:n.shown));j.useEffect(()=>{o.current||(o.current=!0,null==i||i())},[e.identifier]);const u={...r,media:(null==r?void 0:r.media)??e.media},c=e.answer?By(Hy(e.answer,t),u):"";return $.jsxs("div",{className:cb,children:[s&&$.jsx("p",{className:db,children:Uy(t,"QUESTION")}),$.jsx(Wy,{question:e,language:t,mediaCtx:u}),c&&$.jsxs($.Fragment,{children:[!s&&$.jsx("div",{className:hb,children:$.jsx("button",{type:"button",className:pb,onClick:()=>{l(!0),null==a||a({shown:!0,timestamp:Date.now()})},"aria-expanded":!1,children:Uy(t,"SHOW_ANSWER")})}),$.jsxs("div",{className:`${fb} ${s?"":mb}`.trim(),"aria-hidden":!s||void 0,children:[$.jsx("p",{className:db,children:Uy(t,"ANSWER")}),$.jsx("div",{className:gb,dangerouslySetInnerHTML:{__html:c}})]})]})]})}],["fill in the blank question",Eb],["ftb question",Eb],["match the following question",function({question:e,replayed:t=!1,language:r="en",mediaCtx:n,shuffleOptions:a=!0,savedResponse:i=null,onOptionSelected:o,onComponentLoaded:s}){const l={...n,media:(null==n?void 0:n.media)??e.media},{left:u,right:c}=j.useMemo(()=>function(e){const t=e.interactions||{},r=Object.keys(t)[0],n=r?t[r].options:void 0;return n&&!Array.isArray(n)?{left:n.left||[],right:n.right||[]}:{left:[],right:[]}}(e),[e.identifier]),[d,h]=j.useState(()=>{const e=null==i?void 0:i.matches;if(e){const t=new Map(c.map(e=>[String(e.value),e])),r=u.map(r=>t.get(String(e[String(r.value)])));if(r.every(Boolean))return r}return a?Tb(c):[...c]}),p=j.useRef(!1);j.useEffect(()=>{p.current||(p.current=!0,null==s||s())},[e.identifier]);const f=(e,r)=>{if(t||e===r)return;const n=[...d];[n[e],n[r]]=[n[r],n[e]],h(n),(e=>{const t={};u.forEach((r,n)=>{e[n]&&(t[String(r.value)]=String(e[n].value))}),null==o||o({matches:t,timestamp:Date.now()})})(n)};return $.jsxs("div",{className:_b,children:[$.jsx(Wy,{question:e,language:r,mediaCtx:l}),$.jsx("div",{className:Nb,dir:"ltr",children:u.map((e,n)=>$.jsxs("div",{className:Cb,children:[$.jsx("div",{className:Ob,children:$.jsx("span",{className:zb,dangerouslySetInnerHTML:{__html:Gy(e.label,r,l)}})}),$.jsx("span",{className:Rb,"aria-hidden":"true",children:"→"}),d[n]&&$.jsx(Lb,{option:d[n],index:n,language:r,mediaCtx:l,disabled:t,onSwap:f})]},String(e.value)))})]})}],["sequence question",function({question:e,replayed:t=!1,language:r="en",mediaCtx:n,shuffleOptions:a=!0,savedResponse:i=null,onOptionSelected:o,onComponentLoaded:s}){const l={...n,media:(null==n?void 0:n.media)??e.media},u=j.useMemo(()=>$y(e),[e.identifier]),[c,d]=j.useState(()=>{if(null==i?void 0:i.order){const e=new Map(u.map(e=>[e.value,e])),t=i.order.map(t=>e.get(t)).filter(e=>Boolean(e));if(t.length===u.length)return t}return a?Tb(u):[...u]}),h=j.useRef(!1);j.useEffect(()=>{h.current||(h.current=!0,null==s||s())},[e.identifier]);const p=(e,r)=>{if(t||r<0||r>=c.length)return;const n=[...c],[a]=n.splice(e,1);n.splice(r,0,a),(e=>{d(e),null==o||o({order:e.map(e=>e.value),timestamp:Date.now()})})(n)};return $.jsxs("div",{className:Wb,children:[$.jsx(Wy,{question:e,language:r,mediaCtx:l}),$.jsx("ol",{className:Pb,"aria-label":"Arrange in order",children:c.map((e,n)=>$.jsx(Gb,{index:n,total:c.length,disabled:t,label:Gy(e.label,r,l),onMove:p,onNudge:(e,t)=>p(e,e+t)},String(e.value)))})]})}],["reorder question",function({question:e,replayed:t=!1,language:r="en",mediaCtx:n,shuffleOptions:a=!0,savedResponse:i=null,onOptionSelected:o,onComponentLoaded:s}){const l={...n,media:(null==n?void 0:n.media)??e.media},u=j.useMemo(()=>function(e,t){var r,n;const a=e.interactions||{},i=Object.keys(a)[0];if(!i)return[];const o=a[i],s=null==(n=null==(r=o.i18n)?void 0:r[t])?void 0:n.options;return Array.isArray(s)&&s.length>0?s:Array.isArray(o.options)?o.options:[]}(e,r),[e.identifier,r]),c=j.useMemo(()=>new Map(u.map(e=>[e.value,e])),[u]),d=()=>((null==i?void 0:i.order)??[]).map(e=>c.get(e)).filter(e=>Boolean(e)),h=()=>{const e=new Set((null==i?void 0:i.order)??[]),t=u.filter(t=>!e.has(t.value));return a?Tb(t):t},[p,f]=j.useState(d),[m,g]=j.useState(h),v=j.useRef(r);j.useEffect(()=>{v.current!==r&&(v.current=r,f(d()),g(h()))},[r]);const y=j.useRef(!1);j.useEffect(()=>{y.current||(y.current=!0,null==s||s())},[e.identifier]);const b=j.useRef(null);j.useEffect(()=>{const e=JSON.stringify(p.map(e=>e.value));null!==b.current?e!==b.current&&(b.current=e,null==o||o({order:p.map(e=>e.value),timestamp:Date.now()})):b.current=e},[p]);const w=e=>{if(t)return;const r=c.get(e);r&&(f(t=>t.some(t=>t.value===e)?t:[...t,r]),g(t=>t.filter(t=>t.value!==e)))},[{isOver:x},S]=Fh({accept:iw,collect:e=>({isOver:e.isOver()}),drop:e=>w(e.value)}),k=j.useRef(null);return S(k),$.jsxs("div",{className:Yb,children:[$.jsx(Wy,{question:e,language:r,mediaCtx:l}),$.jsx("p",{className:Qb,children:"Your Answer"}),$.jsx("div",{ref:k,className:`${Kb} ${p.length?Xb:""} ${x?Zb:""}`.trim(),"aria-label":"Your answer",children:0===p.length?$.jsx("span",{className:Jb,children:t?"— No answer —":"Tap or drag words to build your answer…"}):p.map((e,n)=>$.jsxs("button",{type:"button",className:ew,disabled:t,"aria-label":`Remove ${Gy(e.label,r,l)}`,onClick:()=>(e=>{if(t)return;const r=c.get(e);f(t=>t.filter(t=>t.value!==e)),g(t=>r&&!t.some(t=>t.value===e)?[...t,r]:t)})(e.value),children:[$.jsx("span",{dangerouslySetInnerHTML:{__html:Gy(e.label,r,l)}}),!t&&$.jsx("span",{"aria-hidden":"true",children:" ×"})]},`${e.value}-${n}`))}),!t&&$.jsxs($.Fragment,{children:[$.jsx("p",{className:Qb,children:"Word Bank"}),$.jsx("div",{className:tw,children:0===m.length?$.jsx("span",{className:aw,children:"All words used"}):m.map((e,n)=>$.jsx(ow,{option:e,label:Gy(e.label,r,l),disabled:t,onAdd:w},`${e.value}-${n}`))})]})]})}]]);const lw="_renderer_12cvw_1",uw="_error_12cvw_5";function cw({question:e,replayed:t=!1,tryAgain:r=!1,shuffleOptions:n=!0,score:a=null,onOptionSelected:i,onComponentLoaded:o,onShowAnswerClicked:s,onGoToNext:l}){var u,c;const{state:d}=Rp(),h=d.language;if(!e)return $.jsx("div",{className:uw,children:"No question provided"});const p=null==(u=d.playerConfig)?void 0:u.metadata,f=null==(c=d.sections.find(t=>t.children.some(t=>t.identifier===e.identifier)))?void 0:c.identifier,m={media:e.media,basePath:null==p?void 0:p.basePath,isAvailableLocally:null==p?void 0:p.isAvailableLocally,sectionId:f,questionId:e.identifier},g=d.answers[e.identifier]||null,v=(y=e.primaryCategory)&&sw.get(y.toLowerCase())||null;var y;return v?$.jsx("div",{className:lw,dir:"ar"===h?"rtl":void 0,children:$.jsx(v,{question:e,replayed:t,tryAgain:r,language:h,mediaCtx:m,shuffleOptions:n,savedResponse:g,score:a,onOptionSelected:i,onComponentLoaded:o,onShowAnswerClicked:s,onGoToNext:l})}):$.jsxs("div",{className:uw,children:["Unknown question type: ",e.primaryCategory]})}const dw="_card_zjm87_1",hw="_meta_zjm87_15",pw="_category_zjm87_22",fw="_difficulty_zjm87_23",mw="_body_zjm87_44",gw="_footer_zjm87_48";function vw({question:e,children:t,meta:r,footer:n}){const a=(null==r?void 0:r.category)??e.primaryCategory,i=null==r?void 0:r.difficulty,o=Boolean(a||i);return $.jsxs("article",{className:dw,children:[o&&$.jsxs("div",{className:hw,children:[a&&$.jsx("span",{className:pw,children:a}),i&&$.jsx("span",{className:fw,children:i})]}),$.jsx("div",{className:mw,children:t}),n&&$.jsx("div",{className:gw,children:n})]})}function yw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-previous ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M15 18l-6-6 6-6"})]})}function bw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-next ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M9 18l6-6-6-6"})]})}function ww({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-hint ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M9 18h6"}),$.jsx("path",{d:"M10 21h4"}),$.jsx("path",{d:"M12 3a6 6 0 0 0-3.6 10.8c.6.45 1.1 1.2 1.1 2.2h5c0-1 .5-1.75 1.1-2.2A6 6 0 0 0 12 3z"})]})}function xw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-timer ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M9 2h6"}),$.jsx("circle",{cx:"12",cy:"13",r:"8"}),$.jsx("path",{d:"M12 9v4l3 2"})]})}function Sw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-menu ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M4 6h16"}),$.jsx("path",{d:"M4 12h16"}),$.jsx("path",{d:"M4 18h16"})]})}function kw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-close ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M6 6l12 12"}),$.jsx("path",{d:"M18 6L6 18"})]})}function Ew({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-clipboard ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("rect",{x:"8",y:"3",width:"8",height:"4",rx:"1"}),$.jsx("path",{d:"M16 5h2a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2"})]})}function Tw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-grid ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("rect",{x:"4",y:"4",width:"7",height:"7",rx:"1.5"}),$.jsx("rect",{x:"13",y:"4",width:"7",height:"7",rx:"1.5"}),$.jsx("rect",{x:"4",y:"13",width:"7",height:"7",rx:"1.5"}),$.jsx("rect",{x:"13",y:"13",width:"7",height:"7",rx:"1.5"})]})}function _w({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-attempts ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"3"}),$.jsx("path",{d:"M12 9v6"}),$.jsx("path",{d:"M9 12h6"})]})}function Nw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-chevron-right ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M9 6l6 6-6 6"})]})}function Cw({size:e=24,className:t="",title:r}){const n=r?{role:"img","aria-label":r}:{"aria-hidden":!0};return $.jsxs("svg",{className:`icon icon-shield ${t}`.trim(),width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[r?$.jsx("title",{children:r}):null,$.jsx("path",{d:"M12 3l7 3v5c0 4.5-3 8-7 10-4-2-7-5.5-7-10V6l7-3z"})]})}const Ow="_hint_1tcen_1",Iw="_actions_1tcen_8",Rw="_toggleBtn_1tcen_14",Mw="_panel_1tcen_43",Aw="_hintPanel_1tcen_49",zw="_solutionPanel_1tcen_54",Dw="_panelHeading_1tcen_59";function Lw(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e){const r=e,n=r.value??r.body??r.solution??r.hint;if("string"==typeof n)return n;if(n&&"object"==typeof n)return Hy(n,t)}return""}function Pw({hints:e=[],solutions:t=[],answer:r,canViewSolution:n=!1,showHints:a=!1,showSolutions:i=!1,language:o="en",mediaCtx:s}){const[l,u]=j.useState(!1),[c,d]=j.useState(!1),h=e.map(e=>Lw(e,o)).filter(Boolean),p=t.map(e=>Lw(e,o)).filter(Boolean),f=Hy(r,o),m=a&&h.length>0,g=i&&n&&(p.length>0||Boolean(f));return m||g?$.jsxs("div",{className:Ow,children:[$.jsxs("div",{className:Iw,children:[m&&$.jsxs("button",{type:"button",className:Rw,onClick:()=>u(e=>!e),"aria-expanded":l,children:[$.jsx(ww,{size:16}),Uy(o,l?"HIDE_HINT":"SHOW_HINT")]}),g&&$.jsx("button",{type:"button",className:Rw,onClick:()=>d(e=>!e),"aria-expanded":c,children:Uy(o,"VIEW_SOLUTION")})]}),l&&m&&$.jsxs("div",{className:`${Mw} ${Aw}`,children:[$.jsx("h3",{className:Dw,children:Uy(o,"HINT")}),h.map((e,t)=>$.jsx(Wy,{question:{body:e},language:o,mediaCtx:s},t))]}),c&&g&&$.jsxs("div",{className:`${Mw} ${zw}`,children:[$.jsx("h3",{className:Dw,children:Uy(o,"SOLUTION")}),p.map((e,t)=>$.jsx(Wy,{question:{body:e},language:o,mediaCtx:s},t)),0===p.length&&f&&$.jsx(Wy,{question:{body:f},language:o,mediaCtx:s})]})]}):null}const jw={viewport:"_viewport_lo371_1",toast:"_toast_lo371_14","toast-in":"_toast-in_lo371_1",text:"_text_lo371_36",title:"_title_lo371_42",message:"_message_lo371_48",closeBtn:"_closeBtn_lo371_53",correct:"_correct_lo371_75",incorrect:"_incorrect_lo371_80",partial:"_partial_lo371_85",info:"_info_lo371_90"};function Bw({type:e="info",message:t="",onClose:r,duration:n=3e3}){const{state:a}=Rp(),i=a.language;j.useEffect(()=>{if(!n)return;const e=setTimeout(()=>null==r?void 0:r(),n);return()=>clearTimeout(e)},[n,r,t,e]);const o={correct:Uy(i,"CORRECT_ANSWER"),incorrect:Uy(i,"INCORRECT_ANSWER"),partial:Uy(i,"PARTIAL_SCORE"),info:"Info"};return $.jsx("div",{className:jw.viewport,"aria-live":"polite",children:$.jsxs("div",{className:`${jw.toast} ${jw[e]}`,role:"status",children:[$.jsxs("div",{className:jw.text,children:[$.jsx("strong",{className:jw.title,children:o[e]}),t&&$.jsx("span",{className:jw.message,children:t})]}),$.jsx("button",{type:"button",className:jw.closeBtn,onClick:r,"aria-label":Uy(i,"CLOSE"),children:$.jsx(kw,{size:16})})]})})}function qw({state:e,onClose:t,onZoomIn:r,onZoomOut:n}){return e.open?$.jsxs("div",{className:"image-viewer__overlay",children:[$.jsx("button",{type:"button",className:"image-viewer__close","aria-label":"Close",onClick:t}),$.jsx("div",{className:"image-viewer__container",children:$.jsx("img",{className:`image-viewer__img ${e.orientation}`,src:e.src,alt:"Zoomed",style:{width:`${e.zoom}%`,height:`${e.zoom}%`}})}),$.jsxs("div",{className:"image-viewer__zoom",children:[$.jsx("button",{type:"button",className:"image-viewer__zoomin","aria-label":"Zoom in",onClick:r,children:"+"}),$.jsx("button",{type:"button",className:"image-viewer__zoomout","aria-label":"Zoom out",onClick:n,children:"−"})]})]}):null}const Uw={open:!1,src:"",orientation:"neutral",zoom:100};function Hw(e){const t=e.naturalHeight||e.clientHeight,r=e.naturalWidth||e.clientWidth;return t>r?"portrait":t<r?"landscape":"neutral"}function Fw(e){return!!e&&(!0===e.shown||(void 0!==e.value&&null!==e.value&&""!==e.value||(!!(Array.isArray(e.order)&&e.order.length>0)||(!!(e.matches&&Object.keys(e.matches).length>0)||!(!e.responses||!Object.values(e.responses).some(e=>""!==String(e??"").trim()))))))}function Vw(e){const t=e.responseDeclaration;if(!t)return;const r=Object.keys(t);return r.length?t[r[0]]:void 0}function Ww(e){var t,r;const n=null==(r=null==(t=e.outcomeDeclaration)?void 0:t.maxScore)?void 0:r.defaultValue;return"number"==typeof n&&n>0?n:"number"==typeof e.maxScore&&e.maxScore>0?e.maxScore:1}const $w=(e,t)=>Math.min(e,t),Gw=e=>{var t;return"MAP_RESPONSE"===String((null==(t=e.responseProcessing)?void 0:t.template)||"").toUpperCase()},Yw=(e,t)=>{const r=e/Ww(t);return r<0?0:r>1?1:r};function Qw(e,t){var r;if(!Fw(t))return 0;const n=Vw(e);if(!n)return 0;const a=null==(r=n.correctResponse)?void 0:r.value,i=t.value;if(null!=a&&i===a)return 1;const o=n.mapping;if(o&&o.length){const t=o.find(e=>e.value===i);if(t&&t.score)return Yw(t.score,e)}return 0}function Kw(e,t){var r;if(!Fw(t))return 0;const n=e.responseDeclaration,a=t.responses;if(!n||!a)return 0;const i=Object.keys(n).filter(e=>e.includes("response")).sort(),o=i.length;if(0===o)return 0;const s=Ww(e),l=e=>{var t;const r=n[e],i=String(a[e]??"").trim(),o=null==r?void 0:r.mapping;if(o&&o.length){const e=o.find(e=>{const t=String(e.value??"").trim();return e.caseSensitive?i===t:i.toLowerCase()===t.toLowerCase()});return e&&Number(e.score)||0}const s="string"==typeof(null==(t=null==r?void 0:r.correctResponse)?void 0:t.value)?r.correctResponse.value.trim():"";return i&&s&&i.toLowerCase()===s.toLowerCase()?1:0};if(Gw(e)){if(!0===e.evalUnordered){const t=[],o=new Set;for(const e of i)for(const a of(null==(r=n[e])?void 0:r.mapping)??[]){const e=!!a.caseSensitive,r=String(a.value??"").trim();if(!r)continue;const n=(e?r:r.toLowerCase())+"\0"+e;o.has(n)||(o.add(n),t.push({value:r,score:Number(a.score)||0,caseSensitive:e}))}const l=i.map(e=>String(a[e]??"").trim()).filter(Boolean);let u=0;for(const e of t){const t=l.some(t=>e.caseSensitive?t===e.value:t.toLowerCase()===e.value.toLowerCase());t&&(u+=e.score)}return Yw($w(u,s),e)}let t=0;for(const e of i)t+=l(e);return Yw($w(t,s),e)}const u=i.filter(e=>l(e)>0).length;return Yw(Math.round(s*u/o),e)}function Xw(e,t,r){var n,a,i,o;if(!Fw(t))return 0;const s=Vw(e),l=t.order;if(!s||!l)return 0;const u=Ww(e),c=(r?null==(i=null==(a=null==(n=s.i18n)?void 0:n[r])?void 0:a.correctResponse)?void 0:i.value:void 0)??(null==(o=s.correctResponse)?void 0:o.value),d=Array.isArray(c)?c:[],h=s.mapping;if(Gw(e)&&h&&h.length&&d.length){const t=new Map(h.map(e=>[String(e.value),Number(e.score)||0]));let r=0;return d.forEach((e,n)=>{l[n]===e&&(r+=t.get(String(e))??0)}),Yw($w(r,u),e)}return d.length===l.length&&d.every((e,t)=>e===l[t])?1:0}const Zw=new Map([["multiple choice question",Qw],["boolean question",Qw],["subjective question",function(e,t){return(null==t?void 0:t.shown)?1:0}],["fill in the blank question",Kw],["ftb question",Kw],["match the following question",function(e,t){var r;if(!Fw(t))return 0;const n=Vw(e),a=t.matches;if(!n||!a)return 0;const i=Ww(e),o=n.mapping;if(Gw(e)&&o&&o.length){let t=0;for(const e of o)void 0!==e.key&&a[e.key]===e.value&&(t+=Number(e.score)||0);return Yw($w(t,i),e)}const s=null==(r=n.correctResponse)?void 0:r.value,l=s&&"object"==typeof s&&!Array.isArray(s)?s:{},u=Object.keys(l).length;if(0===u)return 0;const c=Object.keys(l).filter(e=>a[e]===l[e]).length;return Yw(Math.round(i*c/u),e)}],["sequence question",Xw],["reorder question",Xw]]);function Jw(e,t,r){if(!Fw(t))return 0;const n=(a=e.primaryCategory)&&Zw.get(a.toLowerCase())||null;var a;return n?n(e,t,r):0}const ex="_sectionPlayer_q0p96_1",tx="_content_q0p96_8",rx="_navBar_q0p96_28",nx="_counter_q0p96_44",ax="_navBtn_q0p96_53",ix="_navLabel_q0p96_97",ox="_error_q0p96_130";function sx({section:e,onSectionEnd:t,isLastSection:r=!0}){var n;const{state:a,storeAnswer:i,setCurrentQuestion:o}=Rp(),{logOptionSelected:s,logAnswerSubmitted:l}=Lp(),u=a.language,c=(null==e?void 0:e.children)??[],[d,h]=j.useState(0),[p,f]=j.useState(null),m=j.useRef(null),g=function(e,t=[]){const[r,n]=j.useState(Uw),a=j.useCallback(e=>{n({open:!0,src:e.src,orientation:Hw(e),zoom:100})},[]),i=j.useCallback(()=>n(e=>({...e,open:!1,zoom:100})),[]),o=j.useCallback(()=>n(e=>({...e,zoom:e.zoom+10})),[]),s=j.useCallback(()=>n(e=>e.zoom>100?{...e,zoom:e.zoom-10}:e),[]);return j.useEffect(()=>{const t=e.current;if(!t)return;const r=()=>{t.querySelectorAll("img[data-asset-variable]").forEach(e=>{if("true"===e.dataset.zoomBound)return;e.dataset.zoomBound="true",e.classList.add("option-image");const t=()=>{e.classList.remove("portrait","landscape","neutral"),e.classList.add(Hw(e))};e.complete?t():e.addEventListener("load",t,{once:!0});const r=document.createElement("div");if(r.className="magnify-icon",r.onclick=t=>{t.stopPropagation(),a(e)},e.parentNode){const t=e.parentElement;t&&"static"===getComputedStyle(t).position&&(t.style.position="relative"),e.parentNode.insertBefore(r,e.nextSibling)}})};r();const n=new MutationObserver(()=>r());return n.observe(t,{childList:!0,subtree:!0}),()=>n.disconnect()},t),{state:r,close:i,zoomIn:o,zoomOut:s}}(m,[d,u]),v=a.currentQuestionIndex;j.useEffect(()=>{h(v)},[v]);const y=j.useRef(null),b=()=>{y.current&&(clearTimeout(y.current),y.current=null)};j.useEffect(()=>b,[]);const w=t=>{var r;const n=c[d],i=n?a.answers[n.identifier]:void 0;if(!1===(null==(r=a.config)?void 0:r.showFeedback)||!1===(null==e?void 0:e.showFeedback)||!1===(null==n?void 0:n.showFeedback)||!n||!Fw(i))return void t();const o=Jw(n,i,u);f({type:o>=1?"correct":o>0?"partial":"incorrect",message:Uy(u,o>=1?"CORRECT_ANSWER":o>0?"PARTIAL_SCORE":"INCORRECT_ANSWER")}),b(),y.current=setTimeout(()=>{f(null),t()},1e3)},x=e=>{b(),h(e),o(e),f(null)},S=!function(e){return!0===(null==e?void 0:e.allowSkip)||"Yes"===(null==e?void 0:e.allowSkip)}(e),k=function(e,t,r={},n={}){const{requireAnswer:a=!1}=n;if(e>=t.length-1)return!1;if(a)return Fw(r[t[e].identifier]);return!0}(d,c,a.answers,{requireAnswer:S}),E=()=>{w(()=>{k&&x(d+1)})};if(0===c.length)return $.jsx("div",{className:ox,children:Uy(u,"ERROR_LOADING")});const T=c[d],_=0===d,N=d===c.length-1,C=Fw(a.answers[T.identifier]),O=null==(n=a.playerConfig)?void 0:n.metadata,I={media:T.media,basePath:null==O?void 0:O.basePath,isAvailableLocally:null==O?void 0:O.isAvailableLocally,sectionId:null==e?void 0:e.identifier,questionId:T.identifier};return $.jsxs("div",{className:ex,children:[$.jsxs("div",{className:rx,children:[$.jsxs("button",{type:"button",className:ax,onClick:()=>{d>0&&x(d-1)},disabled:_,"aria-label":Uy(u,"PREVIOUS"),children:[$.jsx(yw,{size:18}),$.jsx("span",{className:ix,children:Uy(u,"PREVIOUS")})]}),$.jsxs("span",{className:nx,children:[Uy(u,"QUESTION")," ",d+1," ",Uy(u,"OF")," ",c.length]}),N&&r?$.jsxs("button",{type:"button",className:ax,style:{visibility:"hidden"},"aria-hidden":"true",tabIndex:-1,disabled:!0,children:[$.jsx("span",{className:ix,children:Uy(u,"NEXT")}),$.jsx(bw,{size:18})]}):$.jsxs("button",{type:"button",className:ax,onClick:N?()=>{w(()=>null==t?void 0:t())}:E,disabled:N?S&&!C:!k,"aria-label":Uy(u,"NEXT"),children:[$.jsx("span",{className:ix,children:Uy(u,"NEXT")}),$.jsx(bw,{size:18})]})]}),$.jsx("div",{className:tx,ref:m,children:$.jsxs(vw,{question:T,meta:{category:T.primaryCategory},children:[$.jsx(cw,{question:T,shuffleOptions:T.shuffleOptions,onOptionSelected:e=>{const t=c[d];if(!t)return;b(),f(null),i(t.identifier,e);const r=e.value??e.order??e.responses??e.matches;if(s(t.identifier,r),!Fw(e))return;const n=t.maxScore??1,a=Jw(t,e,u)*n;l(t.identifier,r,a,n)},onGoToNext:E},T.identifier),$.jsx(Pw,{hints:T.hints,solutions:T.solutions,canViewSolution:C,showHints:null==e?void 0:e.showHints,showSolutions:null==e?void 0:e.showSolutions,language:u,mediaCtx:I})]})}),$.jsx(qw,{state:g.state,onClose:g.close,onZoomIn:g.zoomIn,onZoomOut:g.zoomOut}),p&&$.jsx(Bw,{type:p.type,message:p.message,onClose:()=>f(null)})]})}const lx="_overview_1rzur_1",ux="_badge_1rzur_21",cx="_main_1rzur_34",dx="_heading_1rzur_41",hx="_headingText_1rzur_49",px="_title_1rzur_53",fx="_decoCards_1rzur_61",mx="_decoCard_1rzur_61",gx="_statsCard_1rzur_98",vx="_stat_1rzur_98",yx="_statIcon_1rzur_142",bx="_statText_1rzur_160",wx="_statLabel_1rzur_167",xx="_statValue_1rzur_176",Sx="_sectionsHeading_1rzur_184",kx="_sectionsNote_1rzur_191",Ex="_grid_1rzur_197",Tx="_sectionCard_1rzur_214",_x="_cardTop_1rzur_241",Nx="_cardName_1rzur_247",Cx="_cardChevron_1rzur_255",Ox="_cardCount_1rzur_260",Ix="_cardBlurb_1rzur_265",Rx="_startBtn_1rzur_270",Mx="_footerNote_1rzur_295",Ax="_footerIcon_1rzur_305",zx=["#a85236","#cc8545","#c2703c","#5f8268"];function Dx({title:e,sections:t,totalQuestions:r,totalSections:n,timeLimit:a=0,attemptsLeft:i=3,onStart:o,onSectionSelect:s,language:l="en"}){const u=[{key:"q",icon:$.jsx(Ew,{size:20}),label:Uy(l,"QUESTIONS"),value:String(r)},...a>0?[{key:"m",icon:$.jsx(xw,{size:20}),label:Uy(l,"MINUTES_LABEL"),value:(c=a,`${Math.floor(c/60)}:${String(c%60).padStart(2,"0")}`)}]:[],{key:"s",icon:$.jsx(Tw,{size:20}),label:Uy(l,"SECTIONS"),value:String(n)},{key:"a",icon:$.jsx(_w,{size:20}),label:Uy(l,"ATTEMPTS_LEFT"),value:String(i)}];var c;return $.jsx("div",{className:lx,children:$.jsxs("main",{className:cx,children:[$.jsxs("div",{className:dx,children:[$.jsx("div",{className:hx,children:$.jsx("h1",{className:px,children:e})}),$.jsxs("span",{className:fx,"aria-hidden":"true",children:[$.jsx("span",{className:mx}),$.jsx("span",{className:mx}),$.jsx("span",{className:mx})]})]}),$.jsx("dl",{className:gx,children:u.map(({key:e,icon:t,label:r,value:n})=>$.jsxs("div",{className:vx,children:[$.jsx("span",{className:yx,children:t}),$.jsxs("div",{className:bx,children:[$.jsx("dt",{className:wx,children:r}),$.jsx("dd",{className:xx,children:n})]})]},e))}),$.jsx("h2",{className:Sx,children:Uy(l,"ASSESSMENT_SECTIONS")}),$.jsx("p",{className:kx,children:Uy(l,"SECTIONS_COVER_NOTE")}),$.jsx("div",{className:Ex,children:t.map((e,t)=>{const r=Hy(e.description,l),n=Hy(e.name,l),a=s?"button":"div";return $.jsxs(a,{className:Tx,...s?{type:"button",onClick:()=>s(t)}:{},children:[$.jsxs("div",{className:_x,children:[t<zx.length&&$.jsx("span",{className:ux,style:{background:zx[t]},"aria-hidden":"true",children:String.fromCharCode(65+t)}),$.jsx("span",{className:Nx,children:n}),$.jsx(Nw,{size:18,className:Cx})]}),$.jsx("span",{className:Ox,children:(i=e.children.length,`${i} ${1===i?Uy(l,"QUESTION").toLowerCase():Uy(l,"QUESTIONS").toLowerCase()}`)}),r&&$.jsx("span",{className:Ix,children:r})]},e.identifier);var i})}),$.jsxs("button",{type:"button",className:Rx,onClick:o,children:[Uy(l,"START_ASSESSMENT")," ",$.jsx("span",{"aria-hidden":"true",children:"→"})]}),$.jsxs("p",{className:Mx,children:[$.jsx(Cw,{size:16,className:Ax}),Uy(l,"TIMER_START_NOTE",{attempts:i})]})]})})}const Lx="_wrap_4zgjs_1",Px="_card_4zgjs_14",jx="_banner_4zgjs_23",Bx="_bannerBadge_4zgjs_38",qx="_bannerText_4zgjs_52",Ux="_bannerEyebrow_4zgjs_57",Hx="_bannerTitle_4zgjs_66",Fx="_bannerDeco_4zgjs_73",Vx="_body_4zgjs_83",Wx="_instructions_4zgjs_95",$x="_instructionsHeading_4zgjs_101",Gx="_instructionsBody_4zgjs_110",Yx="_startBtn_4zgjs_117";function Qx({section:e,sectionIndex:t,onBegin:r,language:n="en"}){var a;const i=String.fromCharCode(65+t),o=(null==(a=e.children)?void 0:a.length)??0,s=Hy(e.instructions,n)||Uy(n,"MANDATORY_NOTE");return $.jsx("div",{className:Lx,children:$.jsxs("article",{className:Px,children:[$.jsxs("div",{className:jx,children:[$.jsx("span",{className:Bx,"aria-hidden":"true",children:i}),$.jsxs("div",{className:qx,children:[$.jsxs("p",{className:Ux,children:[Uy(n,"SECTION")," ",i]}),$.jsxs("h1",{className:Hx,children:[o," ",Uy(n,"QUESTIONS")]})]}),$.jsx("span",{className:Fx,"aria-hidden":"true"})]}),$.jsxs("div",{className:Vx,children:[$.jsxs("div",{className:Wx,children:[$.jsx("h2",{className:$x,children:Uy(n,"INSTRUCTIONS")}),$.jsx("div",{className:Gx,dangerouslySetInnerHTML:{__html:s}})]}),$.jsxs("button",{type:"button",className:Yx,onClick:r,children:[Uy(n,"START_SECTION")," ",i," ",$.jsx("span",{"aria-hidden":"true",children:"→"})]})]})]})})}const Kx="_sidebar_1irht_1",Xx="_label_1irht_15",Zx="_list_1irht_24",Jx="_card_1irht_33",eS="_active_1irht_55",tS="_badge_1irht_60",rS="_badgeActive_1irht_86",nS="_text_1irht_95",aS="_name_1irht_102",iS="_blurb_1irht_108",oS="_status_1irht_113",sS="_answered_1irht_122",lS="_remaining_1irht_126";function uS({sections:e,currentSectionIndex:t,answers:r,onSectionJump:n,language:a="en"}){return $.jsxs("nav",{className:Kx,"aria-label":Uy(a,"NAVIGATION"),children:[$.jsx("p",{className:Xx,children:Uy(a,"SECTIONS")}),$.jsx("ul",{className:Zx,children:e.map((e,i)=>{const o=i===t,s=e.children.length,l=function(e,t){return e.children.reduce((e,r)=>Fw(t[r.identifier])?e+1:e,0)}(e,r),u=Hy(e.description,a),c=Hy(e.name,a),d=String.fromCharCode(65+i);return $.jsx("li",{children:$.jsxs("button",{type:"button",className:`${Jx} ${o?eS:""}`.trim(),onClick:()=>n(i),"aria-current":o?"true":void 0,children:[$.jsx("span",{className:`${tS} ${o?rS:""}`.trim(),"aria-hidden":"true",children:d}),$.jsxs("span",{className:nS,children:[$.jsx("span",{className:aS,children:c}),u&&$.jsx("span",{className:iS,children:u}),$.jsxs("span",{className:oS,children:[$.jsxs("span",{className:sS,children:["✓ ",l]}),$.jsxs("span",{className:lS,children:["○ ",s-l]})]})]})]})},e.identifier)})})]})}const cS="_overlay_1utl4_1",dS="_panel_1utl4_10",hS="_panelHeader_1utl4_43",pS="_panelTitle_1utl4_55",fS="_closeBtn_1utl4_62";function mS({isOpen:e,onClose:t,sections:r,currentSectionIndex:n,answers:a,onSectionJump:i,language:o="en"}){const s=j.useRef(null),l=j.useRef(null);return j.useEffect(()=>{var r;if(!e)return;l.current=document.activeElement;const n=s.current,a=()=>Array.from((null==n?void 0:n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))??[]).filter(e=>!e.hasAttribute("disabled"));null==(r=a()[0])||r.focus();const i=e=>{if("Escape"===e.key)return e.preventDefault(),void t();if("Tab"!==e.key)return;const r=a();if(0===r.length)return;const n=r[0],i=r[r.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),i.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),n.focus())};return document.addEventListener("keydown",i),()=>{var e,t;document.removeEventListener("keydown",i),null==(t=null==(e=l.current)?void 0:e.focus)||t.call(e)}},[e,t]),e?$.jsx("div",{className:cS,onClick:t,children:$.jsxs("div",{ref:s,className:dS,role:"dialog","aria-modal":"true","aria-label":Uy(o,"NAVIGATION"),onClick:e=>e.stopPropagation(),children:[$.jsxs("div",{className:hS,children:[$.jsx("span",{className:pS,children:Uy(o,"NAVIGATION")}),$.jsx("button",{type:"button",className:fS,onClick:t,"aria-label":Uy(o,"CLOSE_MENU"),children:$.jsx(kw,{size:20})})]}),$.jsx(uS,{sections:r,currentSectionIndex:n,answers:a,onSectionJump:e=>{i(e),t()},language:o})]})}):null}const gS={header:"_header_1az8i_1",left:"_left_1az8i_20",right:"_right_1az8i_21",menuBtn:"_menuBtn_1az8i_42",brand:"_brand_1az8i_70",brandName:"_brandName_1az8i_85",brandBadge:"_brandBadge_1az8i_89",steps:"_steps_1az8i_121",step:"_step_1az8i_121",stepDot:"_stepDot_1az8i_148",active:"_active_1az8i_161",completed:"_completed_1az8i_166",timer:"_timer_1az8i_171",timerLow:"_timerLow_1az8i_190",helpWrap:"_helpWrap_1az8i_195",help:"_help_1az8i_195",legendBackdrop:"_legendBackdrop_1az8i_224",legend:"_legend_1az8i_224",legendTitle:"_legendTitle_1az8i_246",legendItem:"_legendItem_1az8i_255",legendDot:"_legendDot_1az8i_263",counter:"_counter_1az8i_285",submitBtn:"_submitBtn_1az8i_293"};function vS({brand:e,sections:t,currentSectionIndex:r,completed:n,timeRemaining:a=null,timeElapsed:i=null,questionNumber:o,totalQuestions:s,onSubmit:l,onMenuClick:u,onBrandClick:c,language:d="en"}){const h=null!=a,p=h||null!=i,f=h&&a<=60,[m,g]=j.useState(!1);return $.jsxs("header",{className:gS.header,children:[$.jsxs("div",{className:gS.left,children:[u&&$.jsx("button",{type:"button",className:gS.menuBtn,onClick:u,"aria-label":Uy(d,"OPEN_MENU"),children:$.jsx(Sw,{size:20})}),$.jsxs("button",{type:"button",className:gS.brand,onClick:c,"aria-label":`${e} — ${Uy(d,"ASSESSMENT_OVERVIEW")}`,children:[$.jsx("span",{className:gS.brandBadge,"aria-hidden":"true",children:e.charAt(0).toUpperCase()}),$.jsx("span",{className:gS.brandName,children:e})]}),$.jsx("ol",{className:gS.steps,"aria-label":Uy(d,"SECTIONS"),children:t.map((e,t)=>{const a=t===r?"active":n[t]?"completed":"upcoming";return $.jsx("li",{className:`${gS.step} ${gS[a]}`,"aria-current":"active"===a?"step":void 0,title:Hy(e.name,d),children:$.jsx("span",{className:gS.stepDot,children:String.fromCharCode(65+t)})},e.identifier)})})]}),$.jsxs("div",{className:gS.right,children:[p&&$.jsxs("div",{className:`${gS.timer} ${f?gS.timerLow:""}`.trim(),role:"timer","aria-label":Uy(d,"TIME_REMAINING"),children:[$.jsx(xw,{size:16}),$.jsx("span",{className:gS.timerValue,children:(v=h?a:i,`${Math.floor(v/60)}:${String(v%60).padStart(2,"0")}`)})]}),$.jsxs("div",{className:gS.helpWrap,children:[$.jsx("button",{type:"button",className:gS.help,onClick:()=>g(e=>!e),"aria-label":Uy(d,"HELP_LEGEND_TITLE"),"aria-expanded":m,children:"?"}),m&&$.jsxs($.Fragment,{children:[$.jsx("div",{className:gS.legendBackdrop,onClick:()=>g(!1)}),$.jsxs("div",{className:gS.legend,role:"dialog","aria-label":Uy(d,"HELP_LEGEND_TITLE"),children:[$.jsx("p",{className:gS.legendTitle,children:Uy(d,"HELP_LEGEND_TITLE")}),$.jsxs("div",{className:gS.legendItem,children:[$.jsx("span",{className:`${gS.legendDot} ${gS.active}`,"aria-hidden":"true",children:"A"}),$.jsx("span",{children:Uy(d,"SECTION_CURRENT")})]}),$.jsxs("div",{className:gS.legendItem,children:[$.jsx("span",{className:`${gS.legendDot} ${gS.completed}`,"aria-hidden":"true",children:"A"}),$.jsx("span",{children:Uy(d,"SECTION_DONE")})]}),$.jsxs("div",{className:gS.legendItem,children:[$.jsx("span",{className:`${gS.legendDot} ${gS.upcoming}`,"aria-hidden":"true",children:"B"}),$.jsx("span",{children:Uy(d,"SECTION_UPCOMING")})]})]})]})]}),$.jsxs("span",{className:gS.counter,children:[o,"/",s]}),$.jsx("button",{type:"button",className:gS.submitBtn,onClick:l,children:Uy(d,"SUBMIT")})]})]});var v}const yS="_overlay_unqze_1",bS="_panel_unqze_12",wS="_header_unqze_33",xS="_title_unqze_40",SS="_closeBtn_unqze_47",kS="_body_unqze_66",ES="_counts_unqze_73",TS="_count_unqze_73",_S="_answered_unqze_86",NS="_unanswered_unqze_91",CS="_countLabel_unqze_96",OS="_countValue_unqze_103",IS="_actions_unqze_110",RS="_cancelBtn_unqze_116",MS="_confirmBtn_unqze_146";function AS({answeredCount:e,unansweredCount:t,onConfirm:r,onCancel:n,language:a="en"}){const i=j.useRef(null),o=j.useRef(null);return j.useEffect(()=>{var e;o.current=document.activeElement;const t=i.current,r=()=>Array.from((null==t?void 0:t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))??[]).filter(e=>!e.hasAttribute("disabled"));null==(e=r()[0])||e.focus();const a=e=>{if("Escape"===e.key)return e.preventDefault(),void n();if("Tab"!==e.key)return;const t=r();if(0===t.length)return;const a=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),i.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),a.focus())};return document.addEventListener("keydown",a),()=>{var e,t;document.removeEventListener("keydown",a),null==(t=null==(e=o.current)?void 0:e.focus)||t.call(e)}},[n]),$.jsx("div",{className:yS,onClick:n,children:$.jsxs("div",{ref:i,className:bS,role:"dialog","aria-modal":"true","aria-labelledby":"submit-modal-title",onClick:e=>e.stopPropagation(),children:[$.jsxs("div",{className:wS,children:[$.jsx("h2",{id:"submit-modal-title",className:xS,children:Uy(a,"SUBMIT_TITLE")}),$.jsx("button",{type:"button",className:SS,onClick:n,"aria-label":Uy(a,"CLOSE"),children:$.jsx(kw,{size:18})})]}),$.jsx("p",{className:kS,children:Uy(a,"SUBMIT_BODY")}),$.jsxs("dl",{className:ES,children:[$.jsxs("div",{className:`${TS} ${_S}`,children:[$.jsx("dt",{className:CS,children:Uy(a,"ANSWERED")}),$.jsx("dd",{className:OS,children:e})]}),$.jsxs("div",{className:`${TS} ${NS}`,children:[$.jsx("dt",{className:CS,children:Uy(a,"UNANSWERED")}),$.jsx("dd",{className:OS,children:t})]})]}),$.jsxs("div",{className:IS,children:[$.jsx("button",{type:"button",className:RS,onClick:n,children:Uy(a,"CANCEL")}),$.jsx("button",{type:"button",className:MS,onClick:r,children:Uy(a,"SUBMIT")})]})]})})}const zS="_scoreboard_37x30_1",DS="_heading_37x30_13",LS="_stats_37x30_20",PS="_stat_37x30_20",jS="_statValue_37x30_41",BS="_statLabel_37x30_49",qS="_correct_37x30_57",US="_incorrect_37x30_61",HS="_partial_37x30_65",FS="_skipped_37x30_69",VS="_score_37x30_1",WS="_submit_37x30_79";function $S({correct:e=0,incorrect:t=0,partial:r=0,skipped:n=0,totalScore:a=0,onSubmit:i}){const o=[{key:"correct",label:"Correct",value:e,variant:qS},{key:"incorrect",label:"Incorrect",value:t,variant:US},{key:"partial",label:"Partial",value:r,variant:HS},{key:"skipped",label:"Skipped",value:n,variant:FS}];return $.jsxs("section",{className:zS,"aria-label":"Quiz Summary",children:[$.jsx("h2",{className:DS,children:"Quiz Summary"}),$.jsx("dl",{className:LS,children:o.map(({key:e,label:t,value:r,variant:n})=>$.jsxs("div",{className:`${PS} ${n}`,children:[$.jsx("dt",{className:BS,children:t}),$.jsx("dd",{className:jS,children:r})]},e))}),$.jsxs("p",{className:VS,children:["Score: ",$.jsx("strong",{children:a})]}),i&&$.jsx("button",{type:"button",className:WS,onClick:i,children:"Submit"})]})}const GS="_results_atdwt_1",YS="_card_atdwt_11",QS="_title_atdwt_26",KS="_timeTaken_atdwt_33",XS="_actions_atdwt_40",ZS="_reviewBtn_atdwt_47",JS="_retakeBtn_atdwt_75";function ek({summary:e,timeTaken:t=null,onReviewAll:r,onRetake:n,language:a="en"}){const{totalScore:i}=e;return $.jsx("section",{className:GS,"aria-label":Uy(a,"YOUR_RESULTS"),children:$.jsxs("div",{className:YS,children:[$.jsx("h1",{className:QS,children:Uy(a,"YOUR_RESULTS")}),$.jsx($S,{correct:e.correct,incorrect:e.incorrect,partial:e.partial,skipped:e.skipped,totalScore:i}),null!=t&&$.jsxs("p",{className:KS,children:[Uy(a,"TIME_TAKEN"),": ",$.jsx("strong",{children:(o=t,`${Math.floor(o/60)}:${String(o%60).padStart(2,"0")}`)})]}),$.jsxs("div",{className:XS,children:[$.jsx("button",{type:"button",className:ZS,onClick:r,children:Uy(a,"REVIEW_ALL")}),$.jsx("button",{type:"button",className:JS,onClick:n,children:Uy(a,"RETAKE")})]})]})});var o}const tk="_review_fqu8x_1",rk="_topbar_fqu8x_9",nk="_title_fqu8x_25",ak="_exitBtn_fqu8x_32",ik="_body_fqu8x_62",ok="_paletteCol_fqu8x_68",sk="_main_fqu8x_80",lk="_verdict_fqu8x_99",uk="_navBar_fqu8x_133",ck="_counter_fqu8x_141",dk="_navBtn_fqu8x_148",hk="_navLabel_fqu8x_180",pk="_empty_fqu8x_185";const fk={correct:"CORRECT",incorrect:"INCORRECT",partial:"PARTIAL",skipped:"SKIPPED",review:"NEEDS_REVIEW"},mk={correct:"_correct_fqu8x_108",incorrect:"_incorrect_fqu8x_113",partial:"_partial_fqu8x_118",skipped:"_skipped_fqu8x_123",review:"_pending_fqu8x_128"};function gk({questions:e,sections:t,answers:r,startIndex:n=0,onExit:a,language:i="en"}){var o;const{state:s,storeAnswer:l}=Rp(),u=Math.min(Math.max(n,0),Math.max(e.length-1,0)),[c,d]=j.useState(u),h=[];let p=0;for(const S of t)h.push(p),p+=S.children.length;const f=Math.max(0,h.filter(e=>e<=c).length-1);if(0===e.length)return $.jsx("section",{className:tk,children:$.jsx("div",{className:pk,children:Uy(i,"ERROR_LOADING")})});const m=e[c],{kind:g}=function(e,t,r){var n;const a=t[e.identifier];if(!Fw(a))return{kind:"skipped",raw:0};if("subjective question"===(null==(n=e.primaryCategory)?void 0:n.toLowerCase()))return{kind:"review",raw:0};const i=Jw(e,a,r);return i>=1?{kind:"correct",raw:i}:i>0?{kind:"partial",raw:i}:{kind:"incorrect",raw:i}}(m,r,i),v=0===c,y=c===e.length-1,b=t[f],w=null==(o=s.playerConfig)?void 0:o.metadata,x={media:m.media,basePath:null==w?void 0:w.basePath,isAvailableLocally:null==w?void 0:w.isAvailableLocally,sectionId:null==b?void 0:b.identifier,questionId:m.identifier};return $.jsxs("section",{className:tk,"aria-label":Uy(i,"REVIEW"),children:[$.jsxs("header",{className:rk,children:[$.jsx("h1",{className:nk,children:Uy(i,"REVIEW")}),$.jsx("button",{type:"button",className:ak,onClick:a,children:Uy(i,"BACK_TO_RESULTS")})]}),$.jsxs("div",{className:ik,children:[$.jsx("aside",{className:ok,children:$.jsx(uS,{sections:t,currentSectionIndex:f,answers:r,onSectionJump:e=>d(h[e]??0),language:i})}),$.jsxs("div",{className:sk,children:[$.jsxs("div",{className:uk,children:[$.jsxs("button",{type:"button",className:dk,onClick:()=>d(e=>Math.max(0,e-1)),disabled:v,"aria-label":Uy(i,"PREVIOUS"),children:[$.jsx(yw,{size:18}),$.jsx("span",{className:hk,children:Uy(i,"PREVIOUS")})]}),$.jsxs("span",{className:ck,children:[Uy(i,"QUESTION")," ",c+1," ",Uy(i,"OF")," ",e.length]}),$.jsxs("button",{type:"button",className:dk,onClick:()=>d(t=>Math.min(e.length-1,t+1)),disabled:y,"aria-label":Uy(i,"NEXT"),children:[$.jsx("span",{className:hk,children:Uy(i,"NEXT")}),$.jsx(bw,{size:18})]})]}),$.jsx("div",{className:`${lk} ${mk[g]}`,children:Uy(i,fk[g])}),$.jsxs(vw,{question:m,meta:{category:m.primaryCategory},children:[$.jsx(cw,{question:m,shuffleOptions:m.shuffleOptions,onOptionSelected:e=>l(m.identifier,e)},m.identifier),$.jsx(Pw,{hints:m.hints,solutions:m.solutions,canViewSolution:!0,showHints:null==b?void 0:b.showHints,showSolutions:null==b?void 0:b.showSolutions,language:i,mediaCtx:x})]})]})]})]})}function vk(e){var t,r;if(!e)return null;const n=(e.primaryCategory||"").toLowerCase(),a="subjective question"===n||"SA"===(e.qType||"").toUpperCase(),i={identifier:e.identifier,code:e.code,name:e.name,body:e.body||"",qType:(null==(t=e.qType)?void 0:t.toUpperCase())||"",primaryCategory:n,mimeType:e.mimeType||"application/vnd.sunbird.question",interactions:e.interactions||{},interactionTypes:e.interactionTypes||[],outcomeDeclaration:{maxScore:{defaultValue:Tk(e)}},maxScore:Tk(e),media:e.media||[],solutions:Ek(e),hints:xk(e.hints),templateId:e.templateId||"",language:e.language||[],status:e.status||"Draft",showFeedback:!1!==e.showFeedback&&"No"!==e.showFeedback&&(!0===e.showFeedback||"Yes"===e.showFeedback||void 0),shuffleOptions:!1!==e.shuffleOptions};return a?i.answer=e.answer:(i.responseDeclaration=function(e){const t={};if(!e||"object"!=typeof e)return t;for(const r of Object.keys(e)){const n=e[r];n&&"object"==typeof n&&(t[r]={cardinality:n.cardinality||"single",type:n.type||"string",correctResponse:yk(n.correctResponse,n.type),mapping:wk(n.mapping),i18n:bk(n.i18n,n.type)})}return t}(e.responseDeclaration),(null==(r=e.responseProcessing)?void 0:r.template)&&(i.responseProcessing={template:e.responseProcessing.template}),!0!==e.evalUnordered&&"true"!==String(e.evalUnordered).toLowerCase()||(i.evalUnordered=!0)),i}function yk(e,t){if(!e||void 0===e.value||null===e.value)return;let r=e.value;return"integer"===t&&(r=Array.isArray(r)?r.map(e=>parseInt(e,10)):parseInt(r,10)),{value:r}}function bk(e,t){var r;if(!e||"object"!=typeof e)return;const n={};for(const a of Object.keys(e)){const i=yk(null==(r=e[a])?void 0:r.correctResponse,t);i&&(n[a]={correctResponse:i})}return Object.keys(n).length>0?n:void 0}function wk(e){if(Array.isArray(e)&&0!==e.length)return e.map(e=>{if(e&&e.outcomes&&void 0===e.value&&void 0===e.key)return{value:e.response,score:Number(e.outcomes.score)||0};const t={score:Number(e.score)||0};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),void 0!==e.caseSensitive&&(t.caseSensitive=!!e.caseSensitive),t})}function xk(e){return e?Array.isArray(e)?e:"object"==typeof e?Object.values(e).map(e=>({value:e})):[]:[]}function Sk(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function kk(e,t){if(!e||"object"!=typeof e)return"";const r=e.type,n=e.value??"";if("html"===r)return"string"==typeof n?n:"";if("video"===r||"audio"===r){const e=t.find(e=>(null==e?void 0:e.id)===n),a=(null==e?void 0:e.src)||"";if(!a)return"";const i=Sk(String(n)),o=Sk(a);return"video"===r?`<video data-asset-variable="${i}" width="400" controls><source src="${o}"></video>`:`<audio data-asset-variable="${i}" controls><source src="${o}"></audio>`}return""}function Ek(e){var t;const r=null==(t=null==e?void 0:e.editorState)?void 0:t.solutions;if(Array.isArray(r)&&r.length>0){const t=Array.isArray(e.media)?e.media:[],n=r.map(e=>{const r=null==e?void 0:e.value;if(!r||"object"!=typeof r)return null;const n={};for(const[a,i]of Object.entries(r)){const e=kk(i,t);e&&(n[a]=e)}return Object.keys(n).length>0?{value:n}:null}).filter(e=>Boolean(e));if(n.length>0)return n}return xk(e.solutions)}function Tk(e){var t,r;return void 0!==e.maxScore&&null!==e.maxScore?Number(e.maxScore):void 0!==(null==(r=null==(t=e.outcomeDeclaration)?void 0:t.maxScore)?void 0:r.defaultValue)?Number(e.outcomeDeclaration.maxScore.defaultValue):1}function _k(e){return e?{identifier:e.identifier,name:e.name||"",description:e.description||"",instructions:e.instructions||{},children:e.children||[],allowSkip:"Yes"===e.allowSkip||!0===e.allowSkip,shuffle:!0===e.shuffle,timeLimits:Ok(e.timeLimits),showTimer:!1!==e.showTimer,showSolutions:Ck(e,"showSolutions"),showHints:Ck(e,"showHints"),showFeedback:Nk(e,"showFeedback")}:null}function Nk(e,t){var r;const n=e[t]??(null==(r=e.metadata)?void 0:r[t]);return!1!==n&&"No"!==n&&(!0===n||"Yes"===n||void 0)}function Ck(e,t){var r;const n=e[t]??(null==(r=e.metadata)?void 0:r[t]);return!0===n||"Yes"===n}function Ok(e){return e&&e.questionSet?{max:Number(e.questionSet.max)||0,min:Number(e.questionSet.min)||0}:{max:0,min:0}}function Ik(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rk}=Object.prototype,{getPrototypeOf:Mk}=Object,Ak=(zk=Object.create(null),e=>{const t=Rk.call(e);return zk[t]||(zk[t]=t.slice(8,-1).toLowerCase())});var zk;const Dk=e=>(e=e.toLowerCase(),t=>Ak(t)===e),Lk=e=>t=>typeof t===e,{isArray:Pk}=Array,jk=Lk("undefined");const Bk=Dk("ArrayBuffer");const qk=Lk("string"),Uk=Lk("function"),Hk=Lk("number"),Fk=e=>null!==e&&"object"==typeof e,Vk=e=>{if("object"!==Ak(e))return!1;const t=Mk(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Wk=Dk("Date"),$k=Dk("File"),Gk=Dk("Blob"),Yk=Dk("FileList"),Qk=Dk("URLSearchParams"),[Kk,Xk,Zk,Jk]=["ReadableStream","Request","Response","Headers"].map(Dk);function eE(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,a;if("object"!=typeof e&&(e=[e]),Pk(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let o;for(n=0;n<i;n++)o=a[n],t.call(null,e[o],o,e)}}function tE(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,a=r.length;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const rE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,nE=e=>!jk(e)&&e!==rE;const aE=(iE="undefined"!=typeof Uint8Array&&Mk(Uint8Array),e=>iE&&e instanceof iE);var iE;const oE=Dk("HTMLFormElement"),sE=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),lE=Dk("RegExp"),uE=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};eE(r,(r,a)=>{let i;!1!==(i=t(r,a,e))&&(n[a]=i||r)}),Object.defineProperties(e,n)},cE="abcdefghijklmnopqrstuvwxyz",dE="0123456789",hE={DIGIT:dE,ALPHA:cE,ALPHA_DIGIT:cE+cE.toUpperCase()+dE};const pE=Dk("AsyncFunction"),fE={isArray:Pk,isArrayBuffer:Bk,isBuffer:function(e){return null!==e&&!jk(e)&&null!==e.constructor&&!jk(e.constructor)&&Uk(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Uk(e.append)&&("formdata"===(t=Ak(e))||"object"===t&&Uk(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Bk(e.buffer),t},isString:qk,isNumber:Hk,isBoolean:e=>!0===e||!1===e,isObject:Fk,isPlainObject:Vk,isReadableStream:Kk,isRequest:Xk,isResponse:Zk,isHeaders:Jk,isUndefined:jk,isDate:Wk,isFile:$k,isBlob:Gk,isRegExp:lE,isFunction:Uk,isStream:e=>Fk(e)&&Uk(e.pipe),isURLSearchParams:Qk,isTypedArray:aE,isFileList:Yk,forEach:eE,merge:function e(){const{caseless:t}=nE(this)&&this||{},r={},n=(n,a)=>{const i=t&&tE(r,a)||a;Vk(r[i])&&Vk(n)?r[i]=e(r[i],n):Vk(n)?r[i]=e({},n):Pk(n)?r[i]=n.slice():r[i]=n};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&eE(arguments[a],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(eE(t,(t,n)=>{r&&Uk(t)?e[n]=Ik(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],n&&!n(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==r&&Mk(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Ak,kindOfTest:Dk,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(Pk(e))return e;let t=e.length;if(!Hk(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:oE,hasOwnProperty:sE,hasOwnProp:sE,reduceDescriptors:uE,freezeMethods:e=>{uE(e,(t,r)=>{if(Uk(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];Uk(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return Pk(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:tE,global:rE,isContextDefined:nE,ALPHABET:hE,generateString:(e=16,t=hE.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&Uk(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Fk(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const a=Pk(e)?[]:{};return eE(e,(e,t)=>{const i=r(e,n+1);!jk(i)&&(a[t]=i)}),t[n]=void 0,a}}return e};return r(e,0)},isAsyncFn:pE,isThenable:e=>e&&(Fk(e)||Uk(e))&&Uk(e.then)&&Uk(e.catch)};function mE(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a)}fE.inherits(mE,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fE.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gE=mE.prototype,vE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vE[e]={value:e}}),Object.defineProperties(mE,vE),Object.defineProperty(gE,"isAxiosError",{value:!0}),mE.from=(e,t,r,n,a,i)=>{const o=Object.create(gE);return fE.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),mE.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};function yE(e){return fE.isPlainObject(e)||fE.isArray(e)}function bE(e){return fE.endsWith(e,"[]")?e.slice(0,-2):e}function wE(e,t,r){return e?e.concat(t).map(function(e,t){return e=bE(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const xE=fE.toFlatObject(fE,{},null,function(e){return/^is[A-Z]/.test(e)});function SE(e,t,r){if(!fE.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=fE.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!fE.isUndefined(t[e])})).metaTokens,a=r.visitor||u,i=r.dots,o=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&fE.isSpecCompliantForm(t);if(!fE.isFunction(a))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(fE.isDate(e))return e.toISOString();if(!s&&fE.isBlob(e))throw new mE("Blob is not supported. Use a Buffer instead.");return fE.isArrayBuffer(e)||fE.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,a){let s=e;if(e&&!a&&"object"==typeof e)if(fE.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(fE.isArray(e)&&function(e){return fE.isArray(e)&&!e.some(yE)}(e)||(fE.isFileList(e)||fE.endsWith(r,"[]"))&&(s=fE.toArray(e)))return r=bE(r),s.forEach(function(e,n){!fE.isUndefined(e)&&null!==e&&t.append(!0===o?wE([r],n,i):null===o?r:r+"[]",l(e))}),!1;return!!yE(e)||(t.append(wE(a,r,i),l(e)),!1)}const c=[],d=Object.assign(xE,{defaultVisitor:u,convertValue:l,isVisitable:yE});if(!fE.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!fE.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),fE.forEach(r,function(r,i){!0===(!(fE.isUndefined(r)||null===r)&&a.call(t,r,fE.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])}),c.pop()}}(e),t}function kE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function EE(e,t){this._pairs=[],e&&SE(e,this,t)}const TE=EE.prototype;function _E(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function NE(e,t,r){if(!t)return e;const n=r&&r.encode||_E,a=r&&r.serialize;let i;if(i=a?a(t,r):fE.isURLSearchParams(t)?t.toString():new EE(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}TE.append=function(e,t){this._pairs.push([e,t])},TE.toString=function(e){const t=e?function(t){return e.call(this,t,kE)}:kE;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const CE=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){fE.forEach(this.handlers,function(t){null!==t&&e(t)})}},OE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},IE={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:EE,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},RE="undefined"!=typeof window&&"undefined"!=typeof document,ME=(AE="undefined"!=typeof navigator&&navigator.product,RE&&["ReactNative","NativeScript","NS"].indexOf(AE)<0);var AE;const zE="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,DE=RE&&window.location.href||"http://localhost",LE={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:RE,hasStandardBrowserEnv:ME,hasStandardBrowserWebWorkerEnv:zE,origin:DE},Symbol.toStringTag,{value:"Module"})),...IE};function PE(e){function t(e,r,n,a){let i=e[a++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),s=a>=e.length;if(i=!i&&fE.isArray(n)?n.length:i,s)return fE.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o;n[i]&&fE.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],a)&&fE.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}(n[i])),!o}if(fE.isFormData(e)&&fE.isFunction(e.entries)){const r={};return fE.forEachEntry(e,(e,n)=>{t(function(e){return fE.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const jE={transitional:OE,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,a=fE.isObject(e);a&&fE.isHTMLForm(e)&&(e=new FormData(e));if(fE.isFormData(e))return n?JSON.stringify(PE(e)):e;if(fE.isArrayBuffer(e)||fE.isBuffer(e)||fE.isStream(e)||fE.isFile(e)||fE.isBlob(e)||fE.isReadableStream(e))return e;if(fE.isArrayBufferView(e))return e.buffer;if(fE.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return SE(e,new LE.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return LE.isNode&&fE.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=fE.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return SE(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||n?(t.setContentType("application/json",!1),function(e,t,r){if(fE.isString(e))try{return(t||JSON.parse)(e),fE.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||jE.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(fE.isResponse(e)||fE.isReadableStream(e))return e;if(e&&fE.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(a){if(r){if("SyntaxError"===a.name)throw mE.from(a,mE.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:LE.classes.FormData,Blob:LE.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fE.forEach(["delete","get","head","post","put","patch"],e=>{jE.headers[e]={}});const BE=jE,qE=fE.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),UE=Symbol("internals");function HE(e){return e&&String(e).trim().toLowerCase()}function FE(e){return!1===e||null==e?e:fE.isArray(e)?e.map(FE):String(e)}function VE(e,t,r,n,a){return fE.isFunction(n)?n.call(this,t,r):(a&&(t=r),fE.isString(t)?fE.isString(n)?-1!==t.indexOf(n):fE.isRegExp(n)?n.test(t):void 0:void 0)}class WE{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function a(e,t,r){const a=HE(t);if(!a)throw new Error("header name must be a non-empty string");const i=fE.findKey(n,a);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=FE(e))}const i=(e,t)=>fE.forEach(e,(e,r)=>a(e,r,t));if(fE.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(fE.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),r=e.substring(0,a).trim().toLowerCase(),n=e.substring(a+1).trim(),!r||t[r]&&qE[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(fE.isHeaders(e))for(const[o,s]of e.entries())a(s,o,r);else null!=e&&a(t,e,r);return this}get(e,t){if(e=HE(e)){const r=fE.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(fE.isFunction(t))return t.call(this,e,r);if(fE.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=HE(e)){const r=fE.findKey(this,e);return!(!r||void 0===this[r]||t&&!VE(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function a(e){if(e=HE(e)){const a=fE.findKey(r,e);!a||t&&!VE(0,r[a],a,t)||(delete r[a],n=!0)}}return fE.isArray(e)?e.forEach(a):a(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const a=t[r];e&&!VE(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}normalize(e){const t=this,r={};return fE.forEach(this,(n,a)=>{const i=fE.findKey(r,a);if(i)return t[i]=FE(n),void delete t[a];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(a):String(a).trim();o!==a&&delete t[a],t[o]=FE(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return fE.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&fE.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[UE]=this[UE]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=HE(e);t[n]||(!function(e,t){const r=fE.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,a){return this[n].call(this,t,e,r,a)},configurable:!0})})}(r,e),t[n]=!0)}return fE.isArray(e)?e.forEach(n):n(e),this}}WE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),fE.reduceDescriptors(WE.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),fE.freezeMethods(WE);const $E=WE;function GE(e,t){const r=this||BE,n=t||r,a=$E.from(n.headers);let i=n.data;return fE.forEach(e,function(e){i=e.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function YE(e){return!(!e||!e.__CANCEL__)}function QE(e,t,r){mE.call(this,null==e?"canceled":e,mE.ERR_CANCELED,t,r),this.name="CanceledError"}function KE(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new mE("Request failed with status code "+r.status,[mE.ERR_BAD_REQUEST,mE.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}fE.inherits(QE,mE,{__CANCEL__:!0});const XE=(e,t,r=3)=>{let n=0;const a=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a,i=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=n[o];a||(a=l),r[i]=s,n[i]=l;let c=o,d=0;for(;c!==i;)d+=r[c++],c%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const h=u&&l-u;return h?Math.round(1e3*d/h):void 0}}(50,250);return function(e,t){let r=0;const n=1e3/t;let a=null;return function(){const t=!0===this,i=Date.now();if(t||i-r>n)return a&&(clearTimeout(a),a=null),r=i,e.apply(null,arguments);a||(a=setTimeout(()=>(a=null,r=Date.now(),e.apply(null,arguments)),n-(i-r)))}}(r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,s=i-n,l=a(s);n=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&i<=o?(o-i)/l:void 0,event:r,lengthComputable:null!=o};u[t?"download":"upload"]=!0,e(u)},r)},ZE=LE.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=fE.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},JE=LE.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const o=[e+"="+encodeURIComponent(t)];fE.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),fE.isString(n)&&o.push("path="+n),fE.isString(a)&&o.push("domain="+a),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eT(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const tT=e=>e instanceof $E?{...e}:e;function rT(e,t){t=t||{};const r={};function n(e,t,r){return fE.isPlainObject(e)&&fE.isPlainObject(t)?fE.merge.call({caseless:r},e,t):fE.isPlainObject(t)?fE.merge({},t):fE.isArray(t)?t.slice():t}function a(e,t,r){return fE.isUndefined(t)?fE.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!fE.isUndefined(t))return n(void 0,t)}function o(e,t){return fE.isUndefined(t)?fE.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,a,i){return i in t?n(r,a):i in e?n(void 0,r):void 0}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t)=>a(tT(e),tT(t),!0)};return fE.forEach(Object.keys(Object.assign({},e,t)),function(n){const i=l[n]||a,o=i(e[n],t[n],n);fE.isUndefined(o)&&i!==s||(r[n]=o)}),r}const nT=e=>{const t=rT({},e);let r,{data:n,withXSRFToken:a,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:l}=t;if(t.headers=s=$E.from(s),t.url=NE(eT(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),fE.isFormData(n))if(LE.hasStandardBrowserEnv||LE.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(LE.hasStandardBrowserEnv&&(a&&fE.isFunction(a)&&(a=a(t)),a||!1!==a&&ZE(t.url))){const e=i&&o&&JE.read(o);e&&s.set(i,e)}return t},aT="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=nT(e);let a=n.data;const i=$E.from(n.headers).normalize();let o,{responseType:s}=n;function l(){n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let u=new XMLHttpRequest;function c(){if(!u)return;const n=$E.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());KE(function(e){t(e),l()},function(e){r(e),l()},{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}u.open(n.method.toUpperCase(),n.url,!0),u.timeout=n.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(r(new mE("Request aborted",mE.ECONNABORTED,n,u)),u=null)},u.onerror=function(){r(new mE("Network Error",mE.ERR_NETWORK,n,u)),u=null},u.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const t=n.transitional||OE;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new mE(e,t.clarifyTimeoutError?mE.ETIMEDOUT:mE.ECONNABORTED,n,u)),u=null},void 0===a&&i.setContentType(null),"setRequestHeader"in u&&fE.forEach(i.toJSON(),function(e,t){u.setRequestHeader(t,e)}),fE.isUndefined(n.withCredentials)||(u.withCredentials=!!n.withCredentials),s&&"json"!==s&&(u.responseType=n.responseType),"function"==typeof n.onDownloadProgress&&u.addEventListener("progress",XE(n.onDownloadProgress,!0)),"function"==typeof n.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",XE(n.onUploadProgress)),(n.cancelToken||n.signal)&&(o=t=>{u&&(r(!t||t.type?new QE(null,e,u):t),u.abort(),u=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);d&&-1===LE.protocols.indexOf(d)?r(new mE("Unsupported protocol "+d+":",mE.ERR_BAD_REQUEST,e)):u.send(a||null)})},iT=(e,t)=>{let r,n=new AbortController;const a=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof mE?t:new QE(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{a(new mE(`timeout ${t} of ms exceeded`,mE.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",a):e.unsubscribe(a))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",a));const{signal:s}=n;return s.unsubscribe=o,[s,()=>{i&&clearTimeout(i),i=null}]},oT=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,a=0;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},sT=(e,t,r,n,a)=>{const i=async function*(e,t,r){for await(const n of e)yield*oT(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,a);let o=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:a}=await i.next();if(t)return e.close(),void n();let s=a.byteLength;r&&r(o+=s),e.enqueue(new Uint8Array(a))},cancel:e=>(n(e),i.return())},{highWaterMark:2})},lT=(e,t)=>{const r=null!=e;return n=>setTimeout(()=>t({lengthComputable:r,total:e,loaded:n}))},uT="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,cT=uT&&"function"==typeof ReadableStream,dT=uT&&("function"==typeof TextEncoder?(hT=new TextEncoder,e=>hT.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var hT;const pT=cT&&(()=>{let e=!1;const t=new Request(LE.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),fT=cT&&!!(()=>{try{return fE.isReadableStream(new Response("").body)}catch(e){}})(),mT={stream:fT&&(e=>e.body)};var gT;uT&&(gT=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!mT[e]&&(mT[e]=fE.isFunction(gT[e])?t=>t[e]():(t,r)=>{throw new mE(`Response type '${e}' is not supported`,mE.ERR_NOT_SUPPORT,r)})}));const vT=async(e,t)=>{const r=fE.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:fE.isBlob(e)?e.size:fE.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:fE.isArrayBufferView(e)?e.byteLength:(fE.isURLSearchParams(e)&&(e+=""),fE.isString(e)?(await dT(e)).byteLength:void 0))(t):r},yT={http:null,xhr:aT,fetch:uT&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:h}=nT(e);u=u?(u+"").toLowerCase():"text";let p,f,[m,g]=a||i||o?iT([a,i],o):[];const v=()=>{!p&&setTimeout(()=>{m&&m.unsubscribe()}),p=!0};let y;try{if(l&&pT&&"get"!==r&&"head"!==r&&0!==(y=await vT(c,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});fE.isFormData(n)&&(e=r.headers.get("content-type"))&&c.setContentType(e),r.body&&(n=sT(r.body,65536,lT(y,XE(l)),null,dT))}fE.isString(d)||(d=d?"cors":"omit"),f=new Request(t,{...h,signal:m,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",withCredentials:d});let a=await fetch(f);const i=fT&&("stream"===u||"response"===u);if(fT&&(s||i)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=a[t]});const t=fE.toFiniteNumber(a.headers.get("content-length"));a=new Response(sT(a.body,65536,s&&lT(t,XE(s,!0)),i&&v,dT),e)}u=u||"text";let o=await mT[fE.findKey(mT,u)||"text"](a,e);return!i&&v(),g&&g(),await new Promise((t,r)=>{KE(t,r,{data:o,headers:$E.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:f})})}catch(b){if(v(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new mE("Network Error",mE.ERR_NETWORK,e,f),{cause:b.cause||b});throw mE.from(b,b&&b.code,e,f)}})};fE.forEach(yT,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const bT=e=>`- ${e}`,wT=e=>fE.isFunction(e)||null===e||!1===e,xT=e=>{e=fE.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!wT(r)&&(n=yT[(t=String(r)).toLowerCase()],void 0===n))throw new mE(`Unknown adapter '${t}'`);if(n)break;a[t||"#"+i]=n}if(!n){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new mE("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(bT).join("\n"):" "+bT(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function ST(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new QE(null,e)}function kT(e){ST(e),e.headers=$E.from(e.headers),e.data=GE.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return xT(e.adapter||BE.adapter)(e).then(function(t){return ST(e),t.data=GE.call(e,e.transformResponse,t),t.headers=$E.from(t.headers),t},function(t){return YE(t)||(ST(e),t&&t.response&&(t.response.data=GE.call(e,e.transformResponse,t.response),t.response.headers=$E.from(t.response.headers))),Promise.reject(t)})}const ET="1.7.2",TT={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{TT[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const _T={};TT.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,a,i)=>{if(!1===e)throw new mE(n(a," has been removed"+(t?" in "+t:"")),mE.ERR_DEPRECATED);return t&&!_T[a]&&(_T[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,i)}};const NT={assertOptions:function(e,t,r){if("object"!=typeof e)throw new mE("options must be an object",mE.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new mE("option "+i+" must be "+r,mE.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new mE("Unknown option "+i,mE.ERR_BAD_OPTION)}},validators:TT},CT=NT.validators;class OT{constructor(e){this.defaults=e,this.interceptors={request:new CE,response:new CE}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(n){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=rT(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:a}=t;void 0!==r&&NT.assertOptions(r,{silentJSONParsing:CT.transitional(CT.boolean),forcedJSONParsing:CT.transitional(CT.boolean),clarifyTimeoutError:CT.transitional(CT.boolean)},!1),null!=n&&(fE.isFunction(n)?t.paramsSerializer={serialize:n}:NT.assertOptions(n,{encode:CT.function,serialize:CT.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&fE.merge(a.common,a[t.method]);a&&fE.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=$E.concat(i,a);const o=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[kT.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=o.length;let h=t;for(d=0;d<c;){const e=o[d++],t=o[d++];try{h=e(h)}catch(p){t.call(this,p);break}}try{u=kT.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return NE(eT((e=rT(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}fE.forEach(["delete","get","head","options"],function(e){OT.prototype[e]=function(t,r){return this.request(rT(r||{},{method:e,url:t,data:(r||{}).data}))}}),fE.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,a){return this.request(rT(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}OT.prototype[e]=t(),OT.prototype[e+"Form"]=t(!0)});const IT=OT;class RT{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,a){r.reason||(r.reason=new QE(e,n,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new RT(function(t){e=t}),cancel:e}}}const MT=RT;const AT={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(AT).forEach(([e,t])=>{AT[t]=e});const zT=AT;const DT=function e(t){const r=new IT(t),n=Ik(IT.prototype.request,r);return fE.extend(n,IT.prototype,r,{allOwnKeys:!0}),fE.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(rT(t,r))},n}(BE);DT.Axios=IT,DT.CanceledError=QE,DT.CancelToken=MT,DT.isCancel=YE,DT.VERSION=ET,DT.toFormData=SE,DT.AxiosError=mE,DT.Cancel=DT.CanceledError,DT.all=function(e){return Promise.all(e)},DT.spread=function(e){return function(t){return e.apply(null,t)}},DT.isAxiosError=function(e){return fE.isObject(e)&&!0===e.isAxiosError},DT.mergeConfig=rT,DT.AxiosHeaders=$E,DT.formToJSON=e=>PE(fE.isHTMLForm(e)?new FormData(e):e),DT.getAdapter=xT,DT.HttpStatusCode=zT,DT.default=DT;const LT=DT;class PT extends Error{constructor(e,t,r,n){super(t),this.name="QumlApiError",this.kind=e,this.status=r,this.cause=n,Object.setPrototypeOf(this,PT.prototype)}}let jT=function(e="",t={}){return LT.create({baseURL:e,headers:{"Content-Type":"application/json",...t}})}();function BT(e){return LT.isAxiosError(e)?e.response?new PT("http",`Request failed with status ${e.response.status}`,e.response.status,e):new PT("network",e.message||"Network error",void 0,e):new PT("network",(null==e?void 0:e.message)||"Unknown error",void 0,e)}function qT(e,t){var r;if(!e||"object"!=typeof e)throw new PT("invalid","Empty or malformed API response",t);if("OK"!==e.responseCode){const n=(null==(r=e.params)?void 0:r.errmsg)||e.responseCode||"Non-OK response";throw new PT("response",`API responded with: ${n}`,t)}if(void 0===e.result)throw new PT("invalid","API response missing `result`",t);return e.result}const UT="/questionset/v2/hierarchy/",HT="/question/v2/list";function FT(e){return("string"==typeof e&&e.trim()?e.trim():"/api").replace(/\/+$/,"")}function VT(e){const t="undefined"!=typeof window?window[e]:void 0;return"string"==typeof t&&t?t:void 0}async function WT(e,t={}){if(!e)throw new PT("invalid","getQuestionSetHierarchy: identifier is required");const r=VT("questionSetHierarchyUrl")??`${FT(t.pathPrefix)}${UT}`,n=r.endsWith("/")?`${r}${e}`:`${r}/${e}`,a=n.includes("?")?`${n}&mode=edit`:`${n}?mode=edit`,i=await async function(e,t){try{const r=await jT.get(e,t);return qT(r.data,r.status)}catch(r){if(r instanceof PT)throw r;throw BT(r)}}(a,{baseURL:t.baseUrl});if(!(null==i?void 0:i.questionset))throw new PT("invalid","Hierarchy response missing `questionset`");return i.questionset}async function $T(e,t={}){if(!e||0===e.length)return[];const r=VT("questionListUrl")??`${FT(t.pathPrefix)}${HT}`,n=t.language?`${r}?lang=${t.language}`:r,a=[];for(let o=0;o<e.length;o+=50)a.push(e.slice(o,o+50));const i=await Promise.all(a.map(e=>async function(e,t,r){try{const n=await jT.post(e,t,r);return qT(n.data,n.status)}catch(n){if(n instanceof PT)throw n;throw BT(n)}}(n,{request:{search:{identifier:e}}},{baseURL:t.baseUrl})));return i.flatMap(e=>(null==e?void 0:e.questions)??[])}function GT(e){const t=e.children??[];if(0===t.length)return[];if(t.every(e=>"Question"===e.objectType))return[e];const r=t.filter(e=>"Question"===e.objectType);return r.length>0&&console.warn(`[data-service] ${r.length} root-level question(s) ignored (mixed section/question layout unsupported):`,r.map(e=>e.identifier)),t.filter(e=>"Question"!==e.objectType)}function YT(e){return[...(e.children??[]).filter(e=>"Question"===e.objectType||!e.children)].sort((e,t)=>(e.index??0)-(t.index??0))}const QT="_appShell_4863e_1",KT="_appBody_4863e_13",XT="_sidebarSlot_4863e_20",ZT="_main_4863e_29",JT="_status_4863e_71",e_="_error_4863e_72";function t_({playerConfig:e,onPlayerEvent:t}){var r;const{state:n,setPlayerConfig:a,setSections:i,setCurrentSection:o,setCurrentQuestion:s,setLoading:l,setError:u,clearError:c,resetState:d,setAttempt:h}=Rp(),p=n.language,[f,m]=j.useState({}),[g,v]=j.useState("overview"),[y,b]=j.useState(!1),[w,x]=j.useState(!1),[S,k]=j.useState(0),[E,T]=j.useState(null),_=j.useRef(!1),N=!1!==(null==(r=null==e?void 0:e.config)?void 0:r.showSectionIntro),C="No"===f.showStartPage||!1===f.showStartPage,O="No"!==f.requiresSubmit&&!1!==f.requiresSubmit,I=j.useCallback(async()=>{var t,r;if(!e)return;a(e);const n=e.data??{},o=e.metadata??{},s=n.sections??o.sections,c=Array.isArray(s)?s:[];if(c.length>0){const e=c.map(e=>{const t=_k(e);if(!t)return null;const r=(e.children??[]).map(e=>vk(e)).filter(e=>Boolean(e));return{...t,children:r}}).filter(e=>Boolean(e));return m(n.sections?n:o),void i(e)}if((d=o)&&"object"==typeof d&>(d).some(e=>YT(e).some(e=>e&&(e.body||e.interactions&&Object.keys(e.interactions).length>0)))){const e=function(e){return GT(e).map(e=>{const t=_k(e);if(!t)return null;const r=YT(e).map(e=>vk(e)).filter(e=>Boolean(e));return{...t,children:r}}).filter(e=>Boolean(e))}(o);if(e.length>0)return m(o),void i(e)}var d;const h=n.identifier??o.identifier,p="string"==typeof h?h:void 0;if(!p)return;const f=(null==(t=e.context)?void 0:t.host)??"",g=e.config??{},v=("string"==typeof g.apiSlug?g.apiSlug:void 0)??("string"==typeof g.slug?g.slug:void 0);l(!0);try{const{metadata:t,sections:n}=await async function(e,t={}){const r=await WT(e,t),n=GT(r),a=n.map(YT),i=a.flat().map(e=>e.identifier),o=await $T(i,t),s=new Map(o.map(e=>[e.identifier,e]));return{metadata:r,sections:n.map((e,t)=>{const r=_k(e);if(!r)return null;const n=a[t].map(e=>{const t=s.get(e.identifier);return vk({...e,...t??{}})}).filter(e=>Boolean(e));return{...r,children:n}}).filter(e=>Boolean(e))}}(p,{baseUrl:f,language:null==(r=e.config)?void 0:r.language,pathPrefix:v});m(t),i(n),l(!1)}catch(y){const e=y instanceof PT?y.message:"Failed to load the assessment.";u(e)}},[e,a,i,l,u]);j.useEffect(()=>{I()},[I]);const R=j.useMemo(()=>{let e=0,t=0,r=0,a=0,i=0,o=0;for(const s of n.sections)for(const l of s.children){const s=l.maxScore??1;o+=s;const u=n.answers[l.identifier];if(!Fw(u)){a+=1;continue}const c=Jw(l,u,p);i+=c*s,c>=1?e+=1:c>0?r+=1:t+=1}return{correct:e,incorrect:t,partial:r,skipped:a,totalScore:Math.round(i),maxScore:o}},[n.sections,n.answers,p]),M=j.useMemo(()=>{var t;const r=f,a=n.sections.reduce((e,t)=>e+t.children.length,0),i=n.sections.reduce((e,t)=>e+t.children.reduce((e,t)=>e+(t.maxScore??1),0),0),o=null==(t=r.timeLimits)?void 0:t.questionSet,s=(null==e?void 0:e.config)??{};return{title:Hy(r.name,p)||Uy(p,"ASSESSMENT_OVERVIEW"),description:Hy(r.description,p)||void 0,instructions:r.instructions,totalQuestions:a,totalSections:n.sections.length,timeLimit:Number(null==o?void 0:o.max)||0,showTimer:!0===r.showTimer||"true"===r.showTimer,maxScore:i,attemptsLeft:Math.max(0,(s.maxAttempts??3)-(n.attemptNumber-1))}},[f,e,n.sections,n.attemptNumber,p]),A="assessment"===g||"sectionIntro"===g,z=j.useRef(null);j.useEffect(()=>{if(!A||null==E)return void(z.current=null);z.current=Date.now()+1e3*E;const e=setInterval(()=>{const t=Math.max(0,Math.ceil((z.current-Date.now())/1e3));T(t),t<=0&&clearInterval(e)},250);return()=>clearInterval(e)},[A]);const[D,L]=j.useState(0),P=j.useRef(null);j.useEffect(()=>{if(!A||M.timeLimit>0||!M.showTimer)return;P.current=Date.now()-1e3*D;const e=setInterval(()=>{L(Math.floor((Date.now()-P.current)/1e3))},250);return()=>clearInterval(e)},[A,M.timeLimit,M.showTimer]),j.useEffect(()=>{0===E&&(x(!1),v("results"))},[E]);const B=j.useMemo(()=>n.sections.flatMap(e=>e.children),[n.sections]),q=j.useMemo(()=>n.sections.map(e=>e.children.length>0&&e.children.every(e=>Fw(n.answers[e.identifier]))),[n.sections,n.answers]),U=()=>{M.showTimer&&null==E&&M.timeLimit>0&&T(M.timeLimit)},H=()=>{o(0),s(0),U(),v(N?"sectionIntro":"assessment")},F=()=>{s(0),v("assessment")},V=e=>{o(e),s(0),U(),v(N?"sectionIntro":"assessment")},W=()=>{O?x(!0):G()},G=()=>{x(!1),v("results"),null==t||t({type:"quizEnd",summary:R})},Y=()=>x(!1),Q=()=>{k(0),v("review")},K=()=>{const e=n.attemptNumber+1;d(),I(),h(e),T(null),L(0),x(!1),v("overview")},X=()=>{const e=n.currentSectionIndex+1;e<n.sections.length?(o(e),s(0),v(N?"sectionIntro":"assessment"),null==t||t({type:"sectionEnd",sectionIndex:n.currentSectionIndex})):O?x(!0):G()},Z=e=>{o(e),s(0),v("assessment")};if(j.useEffect(()=>{!_.current&&C&&"overview"===g&&0!==n.sections.length&&(_.current=!0,o(0),s(0),U(),v("assessment"))},[C,g,n.sections.length]),!n.playerConfig||n.loading)return $.jsx("div",{className:JT,children:Uy(p,"LOADING")});if(n.error){const e=()=>{c(),I()};return $.jsxs("div",{className:e_,children:[$.jsx("p",{children:n.error}),$.jsx("button",{type:"button",onClick:e,children:Uy(p,"RETRY")})]})}const J=n.sections[n.currentSectionIndex],ee=n.sections.slice(0,n.currentSectionIndex).reduce((e,t)=>e+t.children.length,0)+n.currentQuestionIndex+1;let te;if("overview"===g&&C&&!_.current)te=$.jsx("div",{className:JT,children:Uy(p,"LOADING")});else if("overview"===g)te=$.jsx(Dx,{title:M.title,sections:n.sections,totalQuestions:M.totalQuestions,totalSections:M.totalSections,timeLimit:M.timeLimit,attemptsLeft:M.attemptsLeft,onStart:H,onSectionSelect:V,language:p});else if("results"===g){const e=M.showTimer?M.timeLimit>0?M.timeLimit-(E??M.timeLimit):D:null;te=$.jsx(ek,{summary:R,timeTaken:e,onReviewAll:Q,onRetake:K,language:p})}else if("review"===g)te=$.jsx(gk,{questions:B,sections:n.sections,answers:n.answers,startIndex:S,onExit:()=>v("results"),language:p});else{const e="sectionIntro"===g&&J?$.jsx(Qx,{section:J,sectionIndex:n.currentSectionIndex,totalSections:n.sections.length,onBegin:F,language:p},`intro-${n.currentSectionIndex}`):$.jsx(sx,{section:J,onSectionEnd:X,isLastSection:n.currentSectionIndex===n.sections.length-1},n.currentSectionIndex);te=$.jsxs($.Fragment,{children:[$.jsx(vS,{brand:M.title,sections:n.sections,currentSectionIndex:n.currentSectionIndex,completed:q,timeRemaining:M.showTimer?E:null,timeElapsed:M.showTimer&&0===M.timeLimit?D:null,questionNumber:ee,totalQuestions:M.totalQuestions,onSubmit:W,onMenuClick:()=>b(!0),onBrandClick:()=>v("overview"),language:p}),$.jsxs("div",{className:KT,children:[$.jsx("aside",{className:XT,children:$.jsx(uS,{sections:n.sections,currentSectionIndex:n.currentSectionIndex,answers:n.answers,onSectionJump:Z,language:p})}),$.jsx("main",{className:ZT,children:e}),$.jsx(mS,{isOpen:y,onClose:()=>b(!1),sections:n.sections,currentSectionIndex:n.currentSectionIndex,answers:n.answers,onSectionJump:Z,language:p})]}),w&&$.jsx(AS,{answeredCount:M.totalQuestions-R.skipped,unansweredCount:R.skipped,onConfirm:G,onCancel:Y,language:p})]})}return $.jsx(fh,{backend:dp,children:$.jsx("div",{className:QT,children:te})})}class r_ extends HTMLElement{constructor(){super(),this.root=null,this.unsubscribeTelemetry=null,this.shadow=this.attachShadow({mode:"open"})}connectedCallback(){try{const r=this.getAttribute("player-config"),n=r?JSON.parse(r):{context:{},config:{}};try{n.context&&function(e){const t="undefined"!=typeof window?window.EkTelemetry:void 0;Mp=t??null,t?"function"==typeof t.initialize&&t.initialize(e):console.warn("[TelemetryService] Sunbird SDK not available")}(n.context)}catch(t){return console.error("[SunbirdQumlPlayer] Telemetry initialization error:",t),void this._showError("Failed to initialize player services")}const a=document.createElement("div");a.className="quml-player-root",this.shadow.appendChild(a);const i=document.createElement("style");i.textContent="\n :host {\n /* all:initial isolates us from host-page styles, but it also resets\n display + height — so re-declare them AFTER it, or the element falls\n back to an inline, auto-height box that can't fill its container. */\n all: initial;\n display: block;\n /* Fill the host's container height. Without this the custom element is\n auto-height (content-sized), so every inner height:100% collapses and\n the assessment stage — whose .appBody is overflow:hidden — clips the\n question with no scroll viewport, freezing the screen on mobile. */\n height: 100%;\n box-sizing: border-box;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n .quml-player-root { all: initial; display: block; height: 100%; box-sizing: border-box; }\n ",this.shadow.insertBefore(i,a),this._injectStyles();const o=e=>this._dispatchEvent("telemetryEvent",e);this.unsubscribeTelemetry=(e=e=>o(e),Ap.add(e),()=>{Ap.delete(e)}),this.root=ed(a),this.root.render($.jsx(Ip,{playerConfig:n,children:$.jsx(t_,{playerConfig:n,onPlayerEvent:e=>this._dispatchEvent("playerEvent",e),onTelemetryEvent:o})}))}catch(r){console.error("[SunbirdQumlPlayer] Initialization error:",r),this._showError("Failed to load player")}var e}disconnectedCallback(){this.unsubscribeTelemetry&&(this.unsubscribeTelemetry(),this.unsubscribeTelemetry=null),this.root&&(this.root.unmount(),this.root=null)}_showError(e){this.shadow.innerHTML=`\n <style>\n :host { display: block; }\n .error { color: #d32f2f; padding: 20px; font-family: sans-serif; }\n </style>\n <div class="error">${e}</div>\n `}_dispatchEvent(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}_injectStyles(){const e=document.createElement("style");e.textContent=`\n ${"undefined"!=typeof BUNDLED_CSS?BUNDLED_CSS:""}\n :host { display: block; height: 100%; box-sizing: border-box; }\n .quml-player-root { all: initial; display: block; height: 100%; box-sizing: border-box; }\n `,this.shadow.firstChild?this.shadow.insertBefore(e,this.shadow.firstChild):this.shadow.appendChild(e)}getAnswers(){return{}}reset(){}}return"undefined"==typeof customElements||customElements.get("sunbird-quml-player")||customElements.define("sunbird-quml-player",r_),r_}();
|