📄 index-B6WX8LFA.js
/home/palash/git/local-ai/dist/assets/index-B6WX8LFA.js
Language: js • Lines: 378
var v6=Object.defineProperty;var g6=(r,a,l)=>a in r?v6(r,a,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[a]=l;var bt=(r,a,l)=>g6(r,typeof a!="symbol"?a+"":a,l);(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(s){if(s.ep)return;s.ep=!0;const f=l(s);fetch(s.href,f)}})();var Bc={exports:{}},wi={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var j2;function y6(){if(j2)return wi;j2=1;var r=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(u,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var m in s)m!=="key"&&(f[m]=s[m])}else f=s;return s=f.ref,{$$typeof:r,type:u,key:d,ref:s!==void 0?s:null,props:f}}return wi.Fragment=a,wi.jsx=l,wi.jsxs=l,wi}var G2;function b6(){return G2||(G2=1,Bc.exports=y6()),Bc.exports}var O=b6(),Lc={exports:{}},Ti={},qc={exports:{}},Hc={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Y2;function x6(){return Y2||(Y2=1,(function(r){function a(G,te){var ve=G.length;G.push(te);e:for(;0<ve;){var de=ve-1>>>1,ce=G[de];if(0<s(ce,te))G[de]=te,G[ve]=ce,ve=de;else break e}}function l(G){return G.length===0?null:G[0]}function u(G){if(G.length===0)return null;var te=G[0],ve=G.pop();if(ve!==te){G[0]=ve;e:for(var de=0,ce=G.length,k=ce>>>1;de<k;){var Z=2*(de+1)-1,$=G[Z],he=Z+1,ke=G[he];if(0>s($,ve))he<ce&&0>s(ke,$)?(G[de]=ke,G[he]=ve,de=he):(G[de]=$,G[Z]=ve,de=Z);else if(he<ce&&0>s(ke,ve))G[de]=ke,G[he]=ve,de=he;else break e}}return te}function s(G,te){var ve=G.sortIndex-te.sortIndex;return ve!==0?ve:G.id-te.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();r.unstable_now=function(){return d.now()-m}}var v=[],g=[],x=1,T=null,A=3,D=!1,R=!1,U=!1,F=!1,I=typeof setTimeout=="function"?setTimeout:null,fe=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function re(G){for(var te=l(g);te!==null;){if(te.callback===null)u(g);else if(te.startTime<=G)u(g),te.sortIndex=te.expirationTime,a(v,te);else break;te=l(g)}}function ie(G){if(U=!1,re(G),!R)if(l(v)!==null)R=!0,le||(le=!0,ge());else{var te=l(g);te!==null&&He(ie,te.startTime-G)}}var le=!1,X=-1,we=5,Te=-1;function Ge(){return F?!0:!(r.unstable_now()-Te<we)}function ze(){if(F=!1,le){var G=r.unstable_now();Te=G;var te=!0;try{e:{R=!1,U&&(U=!1,fe(X),X=-1),D=!0;var ve=A;try{t:{for(re(G),T=l(v);T!==null&&!(T.expirationTime>G&&Ge());){var de=T.callback;if(typeof de=="function"){T.callback=null,A=T.priorityLevel;var ce=de(T.expirationTime<=G);if(G=r.unstable_now(),typeof ce=="function"){T.callback=ce,re(G),te=!0;break t}T===l(v)&&u(v),re(G)}else u(v);T=l(v)}if(T!==null)te=!0;else{var k=l(g);k!==null&&He(ie,k.startTime-G),te=!1}}break e}finally{T=null,A=ve,D=!1}te=void 0}}finally{te?ge():le=!1}}}var ge;if(typeof oe=="function")ge=function(){oe(ze)};else if(typeof MessageChannel<"u"){var Fe=new MessageChannel,mt=Fe.port2;Fe.port1.onmessage=ze,ge=function(){mt.postMessage(null)}}else ge=function(){I(ze,0)};function He(G,te){X=I(function(){G(r.unstable_now())},te)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(G){G.callback=null},r.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<G?Math.floor(1e3/G):5},r.unstable_getCurrentPriorityLevel=function(){return A},r.unstable_next=function(G){switch(A){case 1:case 2:case 3:var te=3;break;default:te=A}var ve=A;A=te;try{return G()}finally{A=ve}},r.unstable_requestPaint=function(){F=!0},r.unstable_runWithPriority=function(G,te){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ve=A;A=G;try{return te()}finally{A=ve}},r.unstable_scheduleCallback=function(G,te,ve){var de=r.unstable_now();switch(typeof ve=="object"&&ve!==null?(ve=ve.delay,ve=typeof ve=="number"&&0<ve?de+ve:de):ve=de,G){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=ve+ce,G={id:x++,callback:te,priorityLevel:G,startTime:ve,expirationTime:ce,sortIndex:-1},ve>de?(G.sortIndex=ve,a(g,G),l(v)===null&&G===l(g)&&(U?(fe(X),X=-1):U=!0,He(ie,ve-de))):(G.sortIndex=ce,a(v,G),R||D||(R=!0,le||(le=!0,ge()))),G},r.unstable_shouldYield=Ge,r.unstable_wrapCallback=function(G){var te=A;return function(){var ve=A;A=te;try{return G.apply(this,arguments)}finally{A=ve}}}})(Hc)),Hc}var X2;function S6(){return X2||(X2=1,qc.exports=x6()),qc.exports}var Uc={exports:{}},Be={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Z2;function w6(){if(Z2)return Be;Z2=1;var r=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),A=Symbol.iterator;function D(k){return k===null||typeof k!="object"?null:(k=A&&k[A]||k["@@iterator"],typeof k=="function"?k:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,F={};function I(k,Z,$){this.props=k,this.context=Z,this.refs=F,this.updater=$||R}I.prototype.isReactComponent={},I.prototype.setState=function(k,Z){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,Z,"setState")},I.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function fe(){}fe.prototype=I.prototype;function oe(k,Z,$){this.props=k,this.context=Z,this.refs=F,this.updater=$||R}var re=oe.prototype=new fe;re.constructor=oe,U(re,I.prototype),re.isPureReactComponent=!0;var ie=Array.isArray;function le(){}var X={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function Te(k,Z,$){var he=$.ref;return{$$typeof:r,type:k,key:Z,ref:he!==void 0?he:null,props:$}}function Ge(k,Z){return Te(k.type,Z,k.props)}function ze(k){return typeof k=="object"&&k!==null&&k.$$typeof===r}function ge(k){var Z={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function($){return Z[$]})}var Fe=/\/+/g;function mt(k,Z){return typeof k=="object"&&k!==null&&k.key!=null?ge(""+k.key):Z.toString(36)}function He(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(le,le):(k.status="pending",k.then(function(Z){k.status==="pending"&&(k.status="fulfilled",k.value=Z)},function(Z){k.status==="pending"&&(k.status="rejected",k.reason=Z)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function G(k,Z,$,he,ke){var Oe=typeof k;(Oe==="undefined"||Oe==="boolean")&&(k=null);var Le=!1;if(k===null)Le=!0;else switch(Oe){case"bigint":case"string":case"number":Le=!0;break;case"object":switch(k.$$typeof){case r:case a:Le=!0;break;case x:return Le=k._init,G(Le(k._payload),Z,$,he,ke)}}if(Le)return ke=ke(k),Le=he===""?"."+mt(k,0):he,ie(ke)?($="",Le!=null&&($=Le.replace(Fe,"$&/")+"/"),G(ke,Z,$,"",function(U0){return U0})):ke!=null&&(ze(ke)&&(ke=Ge(ke,$+(ke.key==null||k&&k.key===ke.key?"":(""+ke.key).replace(Fe,"$&/")+"/")+Le)),Z.push(ke)),1;Le=0;var Tt=he===""?".":he+":";if(ie(k))for(var We=0;We<k.length;We++)he=k[We],Oe=Tt+mt(he,We),Le+=G(he,Z,$,Oe,ke);else if(We=D(k),typeof We=="function")for(k=We.call(k),We=0;!(he=k.next()).done;)he=he.value,Oe=Tt+mt(he,We++),Le+=G(he,Z,$,Oe,ke);else if(Oe==="object"){if(typeof k.then=="function")return G(He(k),Z,$,he,ke);throw Z=String(k),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Le}function te(k,Z,$){if(k==null)return k;var he=[],ke=0;return G(k,he,"","",function(Oe){return Z.call($,Oe,ke++)}),he}function ve(k){if(k._status===-1){var Z=k._result;Z=Z(),Z.then(function($){(k._status===0||k._status===-1)&&(k._status=1,k._result=$)},function($){(k._status===0||k._status===-1)&&(k._status=2,k._result=$)}),k._status===-1&&(k._status=0,k._result=Z)}if(k._status===1)return k._result.default;throw k._result}var de=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},ce={map:te,forEach:function(k,Z,$){te(k,function(){Z.apply(this,arguments)},$)},count:function(k){var Z=0;return te(k,function(){Z++}),Z},toArray:function(k){return te(k,function(Z){return Z})||[]},only:function(k){if(!ze(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Be.Activity=T,Be.Children=ce,Be.Component=I,Be.Fragment=l,Be.Profiler=s,Be.PureComponent=oe,Be.StrictMode=u,Be.Suspense=v,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,Be.__COMPILER_RUNTIME={__proto__:null,c:function(k){return X.H.useMemoCache(k)}},Be.cache=function(k){return function(){return k.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(k,Z,$){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var he=U({},k.props),ke=k.key;if(Z!=null)for(Oe in Z.key!==void 0&&(ke=""+Z.key),Z)!we.call(Z,Oe)||Oe==="key"||Oe==="__self"||Oe==="__source"||Oe==="ref"&&Z.ref===void 0||(he[Oe]=Z[Oe]);var Oe=arguments.length-2;if(Oe===1)he.children=$;else if(1<Oe){for(var Le=Array(Oe),Tt=0;Tt<Oe;Tt++)Le[Tt]=arguments[Tt+2];he.children=Le}return Te(k.type,ke,he)},Be.createContext=function(k){return k={$$typeof:d,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:f,_context:k},k},Be.createElement=function(k,Z,$){var he,ke={},Oe=null;if(Z!=null)for(he in Z.key!==void 0&&(Oe=""+Z.key),Z)we.call(Z,he)&&he!=="key"&&he!=="__self"&&he!=="__source"&&(ke[he]=Z[he]);var Le=arguments.length-2;if(Le===1)ke.children=$;else if(1<Le){for(var Tt=Array(Le),We=0;We<Le;We++)Tt[We]=arguments[We+2];ke.children=Tt}if(k&&k.defaultProps)for(he in Le=k.defaultProps,Le)ke[he]===void 0&&(ke[he]=Le[he]);return Te(k,Oe,ke)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(k){return{$$typeof:m,render:k}},Be.isValidElement=ze,Be.lazy=function(k){return{$$typeof:x,_payload:{_status:-1,_result:k},_init:ve}},Be.memo=function(k,Z){return{$$typeof:g,type:k,compare:Z===void 0?null:Z}},Be.startTransition=function(k){var Z=X.T,$={};X.T=$;try{var he=k(),ke=X.S;ke!==null&&ke($,he),typeof he=="object"&&he!==null&&typeof he.then=="function"&&he.then(le,de)}catch(Oe){de(Oe)}finally{Z!==null&&$.types!==null&&(Z.types=$.types),X.T=Z}},Be.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},Be.use=function(k){return X.H.use(k)},Be.useActionState=function(k,Z,$){return X.H.useActionState(k,Z,$)},Be.useCallback=function(k,Z){return X.H.useCallback(k,Z)},Be.useContext=function(k){return X.H.useContext(k)},Be.useDebugValue=function(){},Be.useDeferredValue=function(k,Z){return X.H.useDeferredValue(k,Z)},Be.useEffect=function(k,Z){return X.H.useEffect(k,Z)},Be.useEffectEvent=function(k){return X.H.useEffectEvent(k)},Be.useId=function(){return X.H.useId()},Be.useImperativeHandle=function(k,Z,$){return X.H.useImperativeHandle(k,Z,$)},Be.useInsertionEffect=function(k,Z){return X.H.useInsertionEffect(k,Z)},Be.useLayoutEffect=function(k,Z){return X.H.useLayoutEffect(k,Z)},Be.useMemo=function(k,Z){return X.H.useMemo(k,Z)},Be.useOptimistic=function(k,Z){return X.H.useOptimistic(k,Z)},Be.useReducer=function(k,Z,$){return X.H.useReducer(k,Z,$)},Be.useRef=function(k){return X.H.useRef(k)},Be.useState=function(k){return X.H.useState(k)},Be.useSyncExternalStore=function(k,Z,$){return X.H.useSyncExternalStore(k,Z,$)},Be.useTransition=function(){return X.H.useTransition()},Be.version="19.2.8",Be}var V2;function B1(){return V2||(V2=1,Uc.exports=w6()),Uc.exports}var jc={exports:{}},p0={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Q2;function T6(){if(Q2)return p0;Q2=1;var r=B1();function a(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var u={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(v,g,x){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:T==null?null:""+T,children:v,containerInfo:g,implementation:x}}var d=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return p0.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,p0.createPortal=function(v,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return f(v,g,null,x)},p0.flushSync=function(v){var g=d.T,x=u.p;try{if(d.T=null,u.p=2,v)return v()}finally{d.T=g,u.p=x,u.d.f()}},p0.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,u.d.C(v,g))},p0.prefetchDNS=function(v){typeof v=="string"&&u.d.D(v)},p0.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var x=g.as,T=m(x,g.crossOrigin),A=typeof g.integrity=="string"?g.integrity:void 0,D=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?u.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:T,integrity:A,fetchPriority:D}):x==="script"&&u.d.X(v,{crossOrigin:T,integrity:A,fetchPriority:D,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},p0.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=m(g.as,g.crossOrigin);u.d.M(v,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&u.d.M(v)},p0.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,T=m(x,g.crossOrigin);u.d.L(v,x,{crossOrigin:T,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},p0.preloadModule=function(v,g){if(typeof v=="string")if(g){var x=m(g.as,g.crossOrigin);u.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else u.d.m(v)},p0.requestFormReset=function(v){u.d.r(v)},p0.unstable_batchedUpdates=function(v,g){return v(g)},p0.useFormState=function(v,g,x){return d.H.useFormState(v,g,x)},p0.useFormStatus=function(){return d.H.useHostTransitionStatus()},p0.version="19.2.8",p0}var K2;function A6(){if(K2)return jc.exports;K2=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(a){console.error(a)}}return r(),jc.exports=T6(),jc.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var F2;function z6(){if(F2)return Ti;F2=1;var r=S6(),a=B1(),l=A6();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(u(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,i=t;;){var o=n.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){n=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===n)return v(o),e;if(c===i)return v(o),t;c=c.sibling}throw Error(u(188))}if(n.return!==i.return)n=o,i=c;else{for(var y=!1,S=o.child;S;){if(S===n){y=!0,n=o,i=c;break}if(S===i){y=!0,i=o,n=c;break}S=S.sibling}if(!y){for(S=c.child;S;){if(S===n){y=!0,n=c,i=o;break}if(S===i){y=!0,i=c,n=o;break}S=S.sibling}if(!y)throw Error(u(189))}}if(n.alternate!==i)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var T=Object.assign,A=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),Te=Symbol.for("react.activity"),Ge=Symbol.for("react.memo_cache_sentinel"),ze=Symbol.iterator;function ge(e){return e===null||typeof e!="object"?null:(e=ze&&e[ze]||e["@@iterator"],typeof e=="function"?e:null)}var Fe=Symbol.for("react.client.reference");function mt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case I:return"Profiler";case F:return"StrictMode";case ie:return"Suspense";case le:return"SuspenseList";case Te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case oe:return e.displayName||"Context";case fe:return(e._context.displayName||"Context")+".Consumer";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:mt(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return mt(e(t))}catch{}}return null}var He=Array.isArray,G=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},de=[],ce=-1;function k(e){return{current:e}}function Z(e){0>ce||(e.current=de[ce],de[ce]=null,ce--)}function $(e,t){ce++,de[ce]=e.current,e.current=t}var he=k(null),ke=k(null),Oe=k(null),Le=k(null);function Tt(e,t){switch($(Oe,t),$(ke,e),$(he,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?o2(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=o2(t),e=c2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(he),$(he,e)}function We(){Z(he),Z(ke),Z(Oe)}function U0(e){e.memoizedState!==null&&$(Le,e);var t=he.current,n=c2(t,e.type);t!==n&&($(ke,e),$(he,n))}function Ie(e){ke.current===e&&(Z(he),Z(ke)),Le.current===e&&(Z(Le),yi._currentValue=ve)}var Ut,at;function e0(e){if(Ut===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ut=t&&t[1]||"",at=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ut+e+at}var rt=!1;function j0(e,t){if(!e||rt)return"";rt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(Y){var j=Y}Reflect.construct(e,[],K)}else{try{K.call()}catch(Y){j=Y}e.call(K.prototype)}}else{try{throw Error()}catch(Y){j=Y}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(Y){if(Y&&j&&typeof Y.stack=="string")return[Y.stack,j.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),y=c[0],S=c[1];if(y&&S){var C=y.split(`
`),H=S.split(`
`);for(o=i=0;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;for(;o<H.length&&!H[o].includes("DetermineComponentFrameRoot");)o++;if(i===C.length||o===H.length)for(i=C.length-1,o=H.length-1;1<=i&&0<=o&&C[i]!==H[o];)o--;for(;1<=i&&0<=o;i--,o--)if(C[i]!==H[o]){if(i!==1||o!==1)do if(i--,o--,0>o||C[i]!==H[o]){var V=`
`+C[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=i&&0<=o);break}}}finally{rt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?e0(n):""}function pn(e,t){switch(e.tag){case 26:case 27:case 5:return e0(e.type);case 16:return e0("Lazy");case 13:return e.child!==t&&t!==null?e0("Suspense Fallback"):e0("Suspense");case 19:return e0("SuspenseList");case 0:case 15:return j0(e.type,!1);case 11:return j0(e.type.render,!1);case 1:return j0(e.type,!0);case 31:return e0("Activity");default:return""}}function Ft(e){try{var t="",n=null;do t+=pn(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}var aa=Object.prototype.hasOwnProperty,r0=r.unstable_scheduleCallback,va=r.unstable_cancelCallback,vn=r.unstable_shouldYield,d0=r.unstable_requestPaint,ct=r.unstable_now,D0=r.unstable_getCurrentPriorityLevel,na=r.unstable_ImmediatePriority,la=r.unstable_UserBlockingPriority,g0=r.unstable_NormalPriority,ra=r.unstable_LowPriority,ga=r.unstable_IdlePriority,be=r.log,me=r.unstable_setDisableYieldValue,Je=null,Xe=null;function Pe(e){if(typeof be=="function"&&me(e),Xe&&typeof Xe.setStrictMode=="function")try{Xe.setStrictMode(Je,e)}catch{}}var ft=Math.clz32?Math.clz32:y0,i0=Math.log,At=Math.LN2;function y0(e){return e>>>=0,e===0?32:31-(i0(e)/At|0)|0}var Aa=256,al=262144,nl=4194304;function ya(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ll(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var S=i&134217727;return S!==0?(i=S&~c,i!==0?o=ya(i):(y&=S,y!==0?o=ya(y):n||(n=S&~e,n!==0&&(o=ya(n))))):(S=i&~c,S!==0?o=ya(S):y!==0?o=ya(y):n||(n=i&~e,n!==0&&(o=ya(n)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:o}function za(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _l(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function G0(){var e=nl;return nl<<=1,(nl&62914560)===0&&(nl=4194304),e}function Ea(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ga(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ar(e,t,n,i,o,c){var y=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var S=e.entanglements,C=e.expirationTimes,H=e.hiddenUpdates;for(n=y&~n;0<n;){var V=31-ft(n),K=1<<V;S[V]=0,C[V]=-1;var j=H[V];if(j!==null)for(H[V]=null,V=0;V<j.length;V++){var Y=j[V];Y!==null&&(Y.lane&=-536870913)}n&=~K}i!==0&&Hi(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(y&~t))}function Hi(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-ft(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function zr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-ft(n),o=1<<i;o&t|e[i]&t&&(e[i]|=t),n&=~o}}function Rl(e,t){var n=t&-t;return n=(n&42)!==0?1:Ol(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ol(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function rl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ui(){var e=te.p;return e!==0?e:(e=window.event,e===void 0?32:O2(e.type))}function gn(e,t){var n=te.p;try{return te.p=e,t()}finally{te.p=n}}var ka=Math.random().toString(36).slice(2),It="__reactFiber$"+ka,Ye="__reactProps$"+ka,Y0="__reactContainer$"+ka,Er="__reactEvents$"+ka,ji="__reactListeners$"+ka,kr="__reactHandles$"+ka,Mr="__reactResources$"+ka,yn="__reactMarker$"+ka;function Cr(e){delete e[It],delete e[Ye],delete e[Er],delete e[ji],delete e[kr]}function bn(e){var t=e[It];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Y0]||n[It]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=g2(e);e!==null;){if(n=e[It])return n;e=g2(e)}return t}e=n,n=e.parentNode}return null}function xn(e){if(e=e[It]||e[Y0]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function il(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function b0(e){var t=e[Mr];return t||(t=e[Mr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Dt(e){e[yn]=!0}var Ma=new Set,Gi={};function ba(e,t){Sn(e,t),Sn(e+"Capture",t)}function Sn(e,t){for(Gi[e]=t,e=0;e<t.length;e++)Ma.add(t[e])}var Yi=RegExp("^[: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]*$"),Dr={},ul={};function _r(e){return aa.call(ul,e)?!0:aa.call(Dr,e)?!1:Yi.test(e)?ul[e]=!0:(Dr[e]=!0,!1)}function Ya(e,t,n){if(_r(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function xa(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function x0(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xi(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rs(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(y){n=""+y,c.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(y){n=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nl(e){if(!e._valueTracker){var t=Xi(e)?"checked":"value";e._valueTracker=Rs(e,t,""+e[t])}}function Rr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Xi(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Bl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Zi=/[\n"\\]/g;function _0(e){return e.replace(Zi,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Or(e,t,n,i,o,c,y,S){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_t(t)):e.value!==""+_t(t)&&(e.value=""+_t(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?wn(e,y,_t(t)):n!=null?wn(e,y,_t(n)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+_t(S):e.removeAttribute("name")}function Nr(e,t,n,i,o,c,y,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Nl(e);return}n=n!=null?""+_t(n):"",t=t!=null?""+_t(t):n,S||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=S?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Nl(e)}function wn(e,t,n){t==="number"&&Bl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ca(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&i&&(e[n].defaultSelected=!0)}else{for(n=""+_t(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ue(e,t,n){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+_t(n):""}function z(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(u(92));if(He(i)){if(1<i.length)throw Error(u(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=_t(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Nl(e)}function L(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var P=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xe(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||P.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Me(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&n[o]!==i&&xe(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&xe(e,c,t[c])}function _e(e){if(e.indexOf("-")===-1)return!1;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 zt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),t0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function m0(e){return t0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Et(){}var S0=null;function Jt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ll=null,ql=null;function sf(e){var t=xn(e);if(t&&(e=t.stateNode)){var n=e[Ye]||null;e:switch(e=t.stateNode,t.type){case"input":if(Or(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+_0(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=i[Ye]||null;if(!o)throw Error(u(90));Or(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Rr(i)}break e;case"textarea":ue(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ca(e,!!n.multiple,t,!1)}}}var Os=!1;function of(e,t,n){if(Os)return e(t,n);Os=!0;try{var i=e(t);return i}finally{if(Os=!1,(Ll!==null||ql!==null)&&(_u(),Ll&&(t=Ll,e=ql,ql=Ll=null,sf(t),e)))for(t=0;t<e.length;t++)sf(e[t])}}function Br(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Ye]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var Xa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ns=!1;if(Xa)try{var Lr={};Object.defineProperty(Lr,"passive",{get:function(){Ns=!0}}),window.addEventListener("test",Lr,Lr),window.removeEventListener("test",Lr,Lr)}catch{Ns=!1}var Tn=null,Bs=null,Vi=null;function cf(){if(Vi)return Vi;var e,t=Bs,n=t.length,i,o="value"in Tn?Tn.value:Tn.textContent,c=o.length;for(e=0;e<n&&t[e]===o[e];e++);var y=n-e;for(i=1;i<=y&&t[n-i]===o[c-i];i++);return Vi=o.slice(e,1<i?1-i:void 0)}function Qi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ki(){return!0}function ff(){return!1}function R0(e){function t(n,i,o,c,y){this._reactName=n,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=y,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ki:ff,this.isPropagationStopped=ff,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ki)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),t}var sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fi=R0(sl),qr=T({},sl,{view:0,detail:0}),m3=R0(qr),Ls,qs,Hr,Ii=T({},qr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Us,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Hr&&(Hr&&e.type==="mousemove"?(Ls=e.screenX-Hr.screenX,qs=e.screenY-Hr.screenY):qs=Ls=0,Hr=e),Ls)},movementY:function(e){return"movementY"in e?e.movementY:qs}}),hf=R0(Ii),p3=T({},Ii,{dataTransfer:0}),v3=R0(p3),g3=T({},qr,{relatedTarget:0}),Hs=R0(g3),y3=T({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),b3=R0(y3),x3=T({},sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),S3=R0(x3),w3=T({},sl,{data:0}),df=R0(w3),T3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A3={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"},z3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=z3[e])?!!t[e]:!1}function Us(){return E3}var k3=T({},qr,{key:function(e){if(e.key){var t=T3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?A3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Us,charCode:function(e){return e.type==="keypress"?Qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),M3=R0(k3),C3=T({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mf=R0(C3),D3=T({},qr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Us}),_3=R0(D3),R3=T({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),O3=R0(R3),N3=T({},Ii,{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}),B3=R0(N3),L3=T({},sl,{newState:0,oldState:0}),q3=R0(L3),H3=[9,13,27,32],js=Xa&&"CompositionEvent"in window,Ur=null;Xa&&"documentMode"in document&&(Ur=document.documentMode);var U3=Xa&&"TextEvent"in window&&!Ur,pf=Xa&&(!js||Ur&&8<Ur&&11>=Ur),vf=" ",gf=!1;function yf(e,t){switch(e){case"keyup":return H3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hl=!1;function j3(e,t){switch(e){case"compositionend":return bf(t);case"keypress":return t.which!==32?null:(gf=!0,vf);case"textInput":return e=t.data,e===vf&&gf?null:e;default:return null}}function G3(e,t){if(Hl)return e==="compositionend"||!js&&yf(e,t)?(e=cf(),Vi=Bs=Tn=null,Hl=!1,e):null;switch(e){case"paste":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 pf&&t.locale!=="ko"?null:t.data;default:return null}}var Y3={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 xf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Y3[e.type]:t==="textarea"}function Sf(e,t,n,i){Ll?ql?ql.push(i):ql=[i]:Ll=i,t=Hu(t,"onChange"),0<t.length&&(n=new Fi("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var jr=null,Gr=null;function X3(e){n2(e,0)}function Ji(e){var t=il(e);if(Rr(t))return e}function wf(e,t){if(e==="change")return t}var Tf=!1;if(Xa){var Gs;if(Xa){var Ys="oninput"in document;if(!Ys){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),Ys=typeof Af.oninput=="function"}Gs=Ys}else Gs=!1;Tf=Gs&&(!document.documentMode||9<document.documentMode)}function zf(){jr&&(jr.detachEvent("onpropertychange",Ef),Gr=jr=null)}function Ef(e){if(e.propertyName==="value"&&Ji(Gr)){var t=[];Sf(t,Gr,e,Jt(e)),of(X3,t)}}function Z3(e,t,n){e==="focusin"?(zf(),jr=t,Gr=n,jr.attachEvent("onpropertychange",Ef)):e==="focusout"&&zf()}function V3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ji(Gr)}function Q3(e,t){if(e==="click")return Ji(t)}function K3(e,t){if(e==="input"||e==="change")return Ji(t)}function F3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var X0=typeof Object.is=="function"?Object.is:F3;function Yr(e,t){if(X0(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var o=n[i];if(!aa.call(t,o)||!X0(e[o],t[o]))return!1}return!0}function kf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mf(e,t){var n=kf(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kf(n)}}function Cf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Df(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bl(e.document)}return t}function Xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var I3=Xa&&"documentMode"in document&&11>=document.documentMode,Ul=null,Zs=null,Xr=null,Vs=!1;function _f(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vs||Ul==null||Ul!==Bl(i)||(i=Ul,"selectionStart"in i&&Xs(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Xr&&Yr(Xr,i)||(Xr=i,i=Hu(Zs,"onSelect"),0<i.length&&(t=new Fi("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Ul)))}function ol(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jl={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionrun:ol("Transition","TransitionRun"),transitionstart:ol("Transition","TransitionStart"),transitioncancel:ol("Transition","TransitionCancel"),transitionend:ol("Transition","TransitionEnd")},Qs={},Rf={};Xa&&(Rf=document.createElement("div").style,"AnimationEvent"in window||(delete jl.animationend.animation,delete jl.animationiteration.animation,delete jl.animationstart.animation),"TransitionEvent"in window||delete jl.transitionend.transition);function cl(e){if(Qs[e])return Qs[e];if(!jl[e])return e;var t=jl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rf)return Qs[e]=t[n];return e}var Of=cl("animationend"),Nf=cl("animationiteration"),Bf=cl("animationstart"),J3=cl("transitionrun"),$3=cl("transitionstart"),W3=cl("transitioncancel"),Lf=cl("transitionend"),qf=new Map,Ks="abort auxClick beforeToggle 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(" ");Ks.push("scrollEnd");function Sa(e,t){qf.set(e,t),ba(t,[e])}var $i=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ia=[],Gl=0,Fs=0;function Wi(){for(var e=Gl,t=Fs=Gl=0;t<e;){var n=ia[t];ia[t++]=null;var i=ia[t];ia[t++]=null;var o=ia[t];ia[t++]=null;var c=ia[t];if(ia[t++]=null,i!==null&&o!==null){var y=i.pending;y===null?o.next=o:(o.next=y.next,y.next=o),i.pending=o}c!==0&&Hf(n,o,c)}}function Pi(e,t,n,i){ia[Gl++]=e,ia[Gl++]=t,ia[Gl++]=n,ia[Gl++]=i,Fs|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Is(e,t,n,i){return Pi(e,t,n,i),eu(e)}function fl(e,t){return Pi(e,null,null,t),eu(e)}function Hf(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var o=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-ft(n),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=n|536870912),c):null}function eu(e){if(50<fi)throw fi=0,rc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yl={};function P3(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Z0(e,t,n,i){return new P3(e,t,n,i)}function Js(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Za(e,t){var n=e.alternate;return n===null?(n=Z0(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Uf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function tu(e,t,n,i,o,c){var y=0;if(i=e,typeof e=="function")Js(e)&&(y=1);else if(typeof e=="string")y=l6(e,n,he.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Te:return e=Z0(31,n,t,o),e.elementType=Te,e.lanes=c,e;case U:return hl(n.children,o,c,t);case F:y=8,o|=24;break;case I:return e=Z0(12,n,t,o|2),e.elementType=I,e.lanes=c,e;case ie:return e=Z0(13,n,t,o),e.elementType=ie,e.lanes=c,e;case le:return e=Z0(19,n,t,o),e.elementType=le,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:y=10;break e;case fe:y=9;break e;case re:y=11;break e;case X:y=14;break e;case we:y=16,i=null;break e}y=29,n=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Z0(y,n,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function hl(e,t,n,i){return e=Z0(7,e,i,t),e.lanes=n,e}function $s(e,t,n){return e=Z0(6,e,null,t),e.lanes=n,e}function jf(e){var t=Z0(18,null,null,0);return t.stateNode=e,t}function Ws(e,t,n){return t=Z0(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gf=new WeakMap;function ua(e,t){if(typeof e=="object"&&e!==null){var n=Gf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ft(t)},Gf.set(e,t),t)}return{value:e,source:t,stack:Ft(t)}}var Xl=[],Zl=0,au=null,Zr=0,sa=[],oa=0,An=null,Da=1,_a="";function Va(e,t){Xl[Zl++]=Zr,Xl[Zl++]=au,au=e,Zr=t}function Yf(e,t,n){sa[oa++]=Da,sa[oa++]=_a,sa[oa++]=An,An=e;var i=Da;e=_a;var o=32-ft(i)-1;i&=~(1<<o),n+=1;var c=32-ft(t)+o;if(30<c){var y=o-o%5;c=(i&(1<<y)-1).toString(32),i>>=y,o-=y,Da=1<<32-ft(t)+o|n<<o|i,_a=c+e}else Da=1<<c|n<<o|i,_a=e}function Ps(e){e.return!==null&&(Va(e,1),Yf(e,1,0))}function eo(e){for(;e===au;)au=Xl[--Zl],Xl[Zl]=null,Zr=Xl[--Zl],Xl[Zl]=null;for(;e===An;)An=sa[--oa],sa[oa]=null,_a=sa[--oa],sa[oa]=null,Da=sa[--oa],sa[oa]=null}function Xf(e,t){sa[oa++]=Da,sa[oa++]=_a,sa[oa++]=An,Da=t.id,_a=t.overflow,An=e}var u0=null,St=null,$e=!1,zn=null,ca=!1,to=Error(u(519));function En(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vr(ua(t,e)),to}function Zf(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[It]=e,t[Ye]=i,n){case"dialog":Ve("cancel",t),Ve("close",t);break;case"iframe":case"object":case"embed":Ve("load",t);break;case"video":case"audio":for(n=0;n<di.length;n++)Ve(di[n],t);break;case"source":Ve("error",t);break;case"img":case"image":case"link":Ve("error",t),Ve("load",t);break;case"details":Ve("toggle",t);break;case"input":Ve("invalid",t),Nr(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ve("invalid",t);break;case"textarea":Ve("invalid",t),z(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||u2(t.textContent,n)?(i.popover!=null&&(Ve("beforetoggle",t),Ve("toggle",t)),i.onScroll!=null&&Ve("scroll",t),i.onScrollEnd!=null&&Ve("scrollend",t),i.onClick!=null&&(t.onclick=Et),t=!0):t=!1,t||En(e,!0)}function Vf(e){for(u0=e.return;u0;)switch(u0.tag){case 5:case 31:case 13:ca=!1;return;case 27:case 3:ca=!0;return;default:u0=u0.return}}function Vl(e){if(e!==u0)return!1;if(!$e)return Vf(e),$e=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||xc(e.type,e.memoizedProps)),n=!n),n&&St&&En(e),Vf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));St=v2(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));St=v2(e)}else t===27?(t=St,jn(e.type)?(e=zc,zc=null,St=e):St=t):St=u0?ha(e.stateNode.nextSibling):null;return!0}function dl(){St=u0=null,$e=!1}function ao(){var e=zn;return e!==null&&(L0===null?L0=e:L0.push.apply(L0,e),zn=null),e}function Vr(e){zn===null?zn=[e]:zn.push(e)}var no=k(null),ml=null,Qa=null;function kn(e,t,n){$(no,t._currentValue),t._currentValue=n}function Ka(e){e._currentValue=no.current,Z(no)}function lo(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function ro(e,t,n,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var y=o.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=o;for(var C=0;C<t.length;C++)if(S.context===t[C]){c.lanes|=n,S=c.alternate,S!==null&&(S.lanes|=n),lo(c.return,n,e),i||(y=null);break e}c=S.next}}else if(o.tag===18){if(y=o.return,y===null)throw Error(u(341));y.lanes|=n,c=y.alternate,c!==null&&(c.lanes|=n),lo(y,n,e),y=null}else y=o.child;if(y!==null)y.return=o;else for(y=o;y!==null;){if(y===e){y=null;break}if(o=y.sibling,o!==null){o.return=y.return,y=o;break}y=y.return}o=y}}function Ql(e,t,n,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var y=o.alternate;if(y===null)throw Error(u(387));if(y=y.memoizedProps,y!==null){var S=o.type;X0(o.pendingProps.value,y.value)||(e!==null?e.push(S):e=[S])}}else if(o===Le.current){if(y=o.alternate,y===null)throw Error(u(387));y.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(yi):e=[yi])}o=o.return}e!==null&&ro(t,e,n,i),t.flags|=262144}function nu(e){for(e=e.firstContext;e!==null;){if(!X0(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pl(e){ml=e,Qa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function s0(e){return Qf(ml,e)}function lu(e,t){return ml===null&&pl(e),Qf(e,t)}function Qf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qa===null){if(e===null)throw Error(u(308));Qa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qa=Qa.next=t;return n}var e5=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},t5=r.unstable_scheduleCallback,a5=r.unstable_NormalPriority,jt={$$typeof:oe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function io(){return{controller:new e5,data:new Map,refCount:0}}function Qr(e){e.refCount--,e.refCount===0&&t5(a5,function(){e.controller.abort()})}var Kr=null,uo=0,Kl=0,Fl=null;function n5(e,t){if(Kr===null){var n=Kr=[];uo=0,Kl=fc(),Fl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return uo++,t.then(Kf,Kf),t}function Kf(){if(--uo===0&&Kr!==null){Fl!==null&&(Fl.status="fulfilled");var e=Kr;Kr=null,Kl=0,Fl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function l5(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),i}var Ff=G.S;G.S=function(e,t){_h=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&n5(e,t),Ff!==null&&Ff(e,t)};var vl=k(null);function so(){var e=vl.current;return e!==null?e:yt.pooledCache}function ru(e,t){t===null?$(vl,vl.current):$(vl,t.pool)}function If(){var e=so();return e===null?null:{parent:jt._currentValue,pool:e}}var Il=Error(u(460)),oo=Error(u(474)),iu=Error(u(542)),uu={then:function(){}};function Jf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $f(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Et,Et),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pf(e),e;default:if(typeof t.status=="string")t.then(Et,Et);else{if(e=yt,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pf(e),e}throw yl=t,Il}}function gl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(yl=n,Il):n}}var yl=null;function Wf(){if(yl===null)throw Error(u(459));var e=yl;return yl=null,e}function Pf(e){if(e===Il||e===iu)throw Error(u(483))}var Jl=null,Fr=0;function su(e){var t=Fr;return Fr+=1,Jl===null&&(Jl=[]),$f(Jl,e,t)}function Ir(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ou(e,t){throw t.$$typeof===A?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function e4(e){function t(B,_){if(e){var q=B.deletions;q===null?(B.deletions=[_],B.flags|=16):q.push(_)}}function n(B,_){if(!e)return null;for(;_!==null;)t(B,_),_=_.sibling;return null}function i(B){for(var _=new Map;B!==null;)B.key!==null?_.set(B.key,B):_.set(B.index,B),B=B.sibling;return _}function o(B,_){return B=Za(B,_),B.index=0,B.sibling=null,B}function c(B,_,q){return B.index=q,e?(q=B.alternate,q!==null?(q=q.index,q<_?(B.flags|=67108866,_):q):(B.flags|=67108866,_)):(B.flags|=1048576,_)}function y(B){return e&&B.alternate===null&&(B.flags|=67108866),B}function S(B,_,q,Q){return _===null||_.tag!==6?(_=$s(q,B.mode,Q),_.return=B,_):(_=o(_,q),_.return=B,_)}function C(B,_,q,Q){var Ee=q.type;return Ee===U?V(B,_,q.props.children,Q,q.key):_!==null&&(_.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===we&&gl(Ee)===_.type)?(_=o(_,q.props),Ir(_,q),_.return=B,_):(_=tu(q.type,q.key,q.props,null,B.mode,Q),Ir(_,q),_.return=B,_)}function H(B,_,q,Q){return _===null||_.tag!==4||_.stateNode.containerInfo!==q.containerInfo||_.stateNode.implementation!==q.implementation?(_=Ws(q,B.mode,Q),_.return=B,_):(_=o(_,q.children||[]),_.return=B,_)}function V(B,_,q,Q,Ee){return _===null||_.tag!==7?(_=hl(q,B.mode,Q,Ee),_.return=B,_):(_=o(_,q),_.return=B,_)}function K(B,_,q){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=$s(""+_,B.mode,q),_.return=B,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case D:return q=tu(_.type,_.key,_.props,null,B.mode,q),Ir(q,_),q.return=B,q;case R:return _=Ws(_,B.mode,q),_.return=B,_;case we:return _=gl(_),K(B,_,q)}if(He(_)||ge(_))return _=hl(_,B.mode,q,null),_.return=B,_;if(typeof _.then=="function")return K(B,su(_),q);if(_.$$typeof===oe)return K(B,lu(B,_),q);ou(B,_)}return null}function j(B,_,q,Q){var Ee=_!==null?_.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Ee!==null?null:S(B,_,""+q,Q);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case D:return q.key===Ee?C(B,_,q,Q):null;case R:return q.key===Ee?H(B,_,q,Q):null;case we:return q=gl(q),j(B,_,q,Q)}if(He(q)||ge(q))return Ee!==null?null:V(B,_,q,Q,null);if(typeof q.then=="function")return j(B,_,su(q),Q);if(q.$$typeof===oe)return j(B,_,lu(B,q),Q);ou(B,q)}return null}function Y(B,_,q,Q,Ee){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return B=B.get(q)||null,S(_,B,""+Q,Ee);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case D:return B=B.get(Q.key===null?q:Q.key)||null,C(_,B,Q,Ee);case R:return B=B.get(Q.key===null?q:Q.key)||null,H(_,B,Q,Ee);case we:return Q=gl(Q),Y(B,_,q,Q,Ee)}if(He(Q)||ge(Q))return B=B.get(q)||null,V(_,B,Q,Ee,null);if(typeof Q.then=="function")return Y(B,_,q,su(Q),Ee);if(Q.$$typeof===oe)return Y(B,_,q,lu(_,Q),Ee);ou(_,Q)}return null}function Se(B,_,q,Q){for(var Ee=null,nt=null,Ae=_,Ue=_=0,Ke=null;Ae!==null&&Ue<q.length;Ue++){Ae.index>Ue?(Ke=Ae,Ae=null):Ke=Ae.sibling;var lt=j(B,Ae,q[Ue],Q);if(lt===null){Ae===null&&(Ae=Ke);break}e&&Ae&&lt.alternate===null&&t(B,Ae),_=c(lt,_,Ue),nt===null?Ee=lt:nt.sibling=lt,nt=lt,Ae=Ke}if(Ue===q.length)return n(B,Ae),$e&&Va(B,Ue),Ee;if(Ae===null){for(;Ue<q.length;Ue++)Ae=K(B,q[Ue],Q),Ae!==null&&(_=c(Ae,_,Ue),nt===null?Ee=Ae:nt.sibling=Ae,nt=Ae);return $e&&Va(B,Ue),Ee}for(Ae=i(Ae);Ue<q.length;Ue++)Ke=Y(Ae,B,Ue,q[Ue],Q),Ke!==null&&(e&&Ke.alternate!==null&&Ae.delete(Ke.key===null?Ue:Ke.key),_=c(Ke,_,Ue),nt===null?Ee=Ke:nt.sibling=Ke,nt=Ke);return e&&Ae.forEach(function(Vn){return t(B,Vn)}),$e&&Va(B,Ue),Ee}function De(B,_,q,Q){if(q==null)throw Error(u(151));for(var Ee=null,nt=null,Ae=_,Ue=_=0,Ke=null,lt=q.next();Ae!==null&&!lt.done;Ue++,lt=q.next()){Ae.index>Ue?(Ke=Ae,Ae=null):Ke=Ae.sibling;var Vn=j(B,Ae,lt.value,Q);if(Vn===null){Ae===null&&(Ae=Ke);break}e&&Ae&&Vn.alternate===null&&t(B,Ae),_=c(Vn,_,Ue),nt===null?Ee=Vn:nt.sibling=Vn,nt=Vn,Ae=Ke}if(lt.done)return n(B,Ae),$e&&Va(B,Ue),Ee;if(Ae===null){for(;!lt.done;Ue++,lt=q.next())lt=K(B,lt.value,Q),lt!==null&&(_=c(lt,_,Ue),nt===null?Ee=lt:nt.sibling=lt,nt=lt);return $e&&Va(B,Ue),Ee}for(Ae=i(Ae);!lt.done;Ue++,lt=q.next())lt=Y(Ae,B,Ue,lt.value,Q),lt!==null&&(e&&lt.alternate!==null&&Ae.delete(lt.key===null?Ue:lt.key),_=c(lt,_,Ue),nt===null?Ee=lt:nt.sibling=lt,nt=lt);return e&&Ae.forEach(function(p6){return t(B,p6)}),$e&&Va(B,Ue),Ee}function gt(B,_,q,Q){if(typeof q=="object"&&q!==null&&q.type===U&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case D:e:{for(var Ee=q.key;_!==null;){if(_.key===Ee){if(Ee=q.type,Ee===U){if(_.tag===7){n(B,_.sibling),Q=o(_,q.props.children),Q.return=B,B=Q;break e}}else if(_.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===we&&gl(Ee)===_.type){n(B,_.sibling),Q=o(_,q.props),Ir(Q,q),Q.return=B,B=Q;break e}n(B,_);break}else t(B,_);_=_.sibling}q.type===U?(Q=hl(q.props.children,B.mode,Q,q.key),Q.return=B,B=Q):(Q=tu(q.type,q.key,q.props,null,B.mode,Q),Ir(Q,q),Q.return=B,B=Q)}return y(B);case R:e:{for(Ee=q.key;_!==null;){if(_.key===Ee)if(_.tag===4&&_.stateNode.containerInfo===q.containerInfo&&_.stateNode.implementation===q.implementation){n(B,_.sibling),Q=o(_,q.children||[]),Q.return=B,B=Q;break e}else{n(B,_);break}else t(B,_);_=_.sibling}Q=Ws(q,B.mode,Q),Q.return=B,B=Q}return y(B);case we:return q=gl(q),gt(B,_,q,Q)}if(He(q))return Se(B,_,q,Q);if(ge(q)){if(Ee=ge(q),typeof Ee!="function")throw Error(u(150));return q=Ee.call(q),De(B,_,q,Q)}if(typeof q.then=="function")return gt(B,_,su(q),Q);if(q.$$typeof===oe)return gt(B,_,lu(B,q),Q);ou(B,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,_!==null&&_.tag===6?(n(B,_.sibling),Q=o(_,q),Q.return=B,B=Q):(n(B,_),Q=$s(q,B.mode,Q),Q.return=B,B=Q),y(B)):n(B,_)}return function(B,_,q,Q){try{Fr=0;var Ee=gt(B,_,q,Q);return Jl=null,Ee}catch(Ae){if(Ae===Il||Ae===iu)throw Ae;var nt=Z0(29,Ae,null,B.mode);return nt.lanes=Q,nt.return=B,nt}finally{}}}var bl=e4(!0),t4=e4(!1),Mn=!1;function co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Cn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Dn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(it&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=eu(e),Hf(e,null,n),t}return Pi(e,i,t,n),eu(e)}function Jr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,zr(e,n)}}function ho(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var y={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?o=c=y:c=c.next=y,n=n.next}while(n!==null);c===null?o=c=t:c=c.next=t}else o=c=t;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var mo=!1;function $r(){if(mo){var e=Fl;if(e!==null)throw e}}function Wr(e,t,n,i){mo=!1;var o=e.updateQueue;Mn=!1;var c=o.firstBaseUpdate,y=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var C=S,H=C.next;C.next=null,y===null?c=H:y.next=H,y=C;var V=e.alternate;V!==null&&(V=V.updateQueue,S=V.lastBaseUpdate,S!==y&&(S===null?V.firstBaseUpdate=H:S.next=H,V.lastBaseUpdate=C))}if(c!==null){var K=o.baseState;y=0,V=H=C=null,S=c;do{var j=S.lane&-536870913,Y=j!==S.lane;if(Y?(Qe&j)===j:(i&j)===j){j!==0&&j===Kl&&(mo=!0),V!==null&&(V=V.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var Se=e,De=S;j=t;var gt=n;switch(De.tag){case 1:if(Se=De.payload,typeof Se=="function"){K=Se.call(gt,K,j);break e}K=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=De.payload,j=typeof Se=="function"?Se.call(gt,K,j):Se,j==null)break e;K=T({},K,j);break e;case 2:Mn=!0}}j=S.callback,j!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=o.callbacks,Y===null?o.callbacks=[j]:Y.push(j))}else Y={lane:j,tag:S.tag,payload:S.payload,callback:S.callback,next:null},V===null?(H=V=Y,C=K):V=V.next=Y,y|=j;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;Y=S,S=Y.next,Y.next=null,o.lastBaseUpdate=Y,o.shared.pending=null}}while(!0);V===null&&(C=K),o.baseState=C,o.firstBaseUpdate=H,o.lastBaseUpdate=V,c===null&&(o.shared.lanes=0),Bn|=y,e.lanes=y,e.memoizedState=K}}function a4(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function n4(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)a4(n[e],t)}var $l=k(null),cu=k(0);function l4(e,t){e=an,$(cu,e),$($l,t),an=e|t.baseLanes}function po(){$(cu,an),$($l,$l.current)}function vo(){an=cu.current,Z($l),Z(cu)}var V0=k(null),fa=null;function _n(e){var t=e.alternate;$(qt,qt.current&1),$(V0,e),fa===null&&(t===null||$l.current!==null||t.memoizedState!==null)&&(fa=e)}function go(e){$(qt,qt.current),$(V0,e),fa===null&&(fa=e)}function r4(e){e.tag===22?($(qt,qt.current),$(V0,e),fa===null&&(fa=e)):Rn()}function Rn(){$(qt,qt.current),$(V0,V0.current)}function Q0(e){Z(V0),fa===e&&(fa=null),Z(qt)}var qt=k(0);function fu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Tc(n)||Ac(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fa=0,qe=null,pt=null,Gt=null,hu=!1,Wl=!1,xl=!1,du=0,Pr=0,Pl=null,r5=0;function Nt(){throw Error(u(321))}function yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!X0(e[n],t[n]))return!1;return!0}function bo(e,t,n,i,o,c){return Fa=c,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?Y4:No,xl=!1,c=n(i,o),xl=!1,Wl&&(c=u4(t,n,i,o)),i4(e),c}function i4(e){G.H=ai;var t=pt!==null&&pt.next!==null;if(Fa=0,Gt=pt=qe=null,hu=!1,Pr=0,Pl=null,t)throw Error(u(300));e===null||Yt||(e=e.dependencies,e!==null&&nu(e)&&(Yt=!0))}function u4(e,t,n,i){qe=e;var o=0;do{if(Wl&&(Pl=null),Pr=0,Wl=!1,25<=o)throw Error(u(301));if(o+=1,Gt=pt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}G.H=X4,c=t(n,i)}while(Wl);return c}function i5(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?ei(t):t,e=e.useState()[0],(pt!==null?pt.memoizedState:null)!==e&&(qe.flags|=1024),t}function xo(){var e=du!==0;return du=0,e}function So(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function wo(e){if(hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}hu=!1}Fa=0,Gt=pt=qe=null,Wl=!1,Pr=du=0,Pl=null}function w0(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gt===null?qe.memoizedState=Gt=e:Gt=Gt.next=e,Gt}function Ht(){if(pt===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=pt.next;var t=Gt===null?qe.memoizedState:Gt.next;if(t!==null)Gt=t,pt=e;else{if(e===null)throw qe.alternate===null?Error(u(467)):Error(u(310));pt=e,e={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},Gt===null?qe.memoizedState=Gt=e:Gt=Gt.next=e}return Gt}function mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ei(e){var t=Pr;return Pr+=1,Pl===null&&(Pl=[]),e=$f(Pl,e,t),t=qe,(Gt===null?t.memoizedState:Gt.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?Y4:No),e}function pu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ei(e);if(e.$$typeof===oe)return s0(e)}throw Error(u(438,String(e)))}function To(e){var t=null,n=qe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=qe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=mu(),qe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=Ge;return t.index++,n}function Ia(e,t){return typeof t=="function"?t(e):t}function vu(e){var t=Ht();return Ao(t,pt,e)}function Ao(e,t,n){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=n;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var y=o.next;o.next=c.next,c.next=y}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var S=y=null,C=null,H=t,V=!1;do{var K=H.lane&-536870913;if(K!==H.lane?(Qe&K)===K:(Fa&K)===K){var j=H.revertLane;if(j===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),K===Kl&&(V=!0);else if((Fa&j)===j){H=H.next,j===Kl&&(V=!0);continue}else K={lane:0,revertLane:H.revertLane,gesture:null,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},C===null?(S=C=K,y=c):C=C.next=K,qe.lanes|=j,Bn|=j;K=H.action,xl&&n(c,K),c=H.hasEagerState?H.eagerState:n(c,K)}else j={lane:K,revertLane:H.revertLane,gesture:H.gesture,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},C===null?(S=C=j,y=c):C=C.next=j,qe.lanes|=K,Bn|=K;H=H.next}while(H!==null&&H!==t);if(C===null?y=c:C.next=S,!X0(c,e.memoizedState)&&(Yt=!0,V&&(n=Fl,n!==null)))throw n;e.memoizedState=c,e.baseState=y,e.baseQueue=C,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function zo(e){var t=Ht(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var i=n.dispatch,o=n.pending,c=t.memoizedState;if(o!==null){n.pending=null;var y=o=o.next;do c=e(c,y.action),y=y.next;while(y!==o);X0(c,t.memoizedState)||(Yt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function s4(e,t,n){var i=qe,o=Ht(),c=$e;if(c){if(n===void 0)throw Error(u(407));n=n()}else n=t();var y=!X0((pt||o).memoizedState,n);if(y&&(o.memoizedState=n,Yt=!0),o=o.queue,Mo(f4.bind(null,i,o,e),[e]),o.getSnapshot!==t||y||Gt!==null&&Gt.memoizedState.tag&1){if(i.flags|=2048,er(9,{destroy:void 0},c4.bind(null,i,o,n,t),null),yt===null)throw Error(u(349));c||(Fa&127)!==0||o4(i,t,n)}return n}function o4(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=qe.updateQueue,t===null?(t=mu(),qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function c4(e,t,n,i){t.value=n,t.getSnapshot=i,h4(t)&&d4(e)}function f4(e,t,n){return n(function(){h4(t)&&d4(e)})}function h4(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!X0(e,n)}catch{return!0}}function d4(e){var t=fl(e,2);t!==null&&q0(t,e,2)}function Eo(e){var t=w0();if(typeof e=="function"){var n=e;if(e=n(),xl){Pe(!0);try{n()}finally{Pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:e},t}function m4(e,t,n,i){return e.baseState=n,Ao(e,pt,typeof i=="function"?i:Ia)}function u5(e,t,n,i,o){if(bu(e))throw Error(u(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){c.listeners.push(y)}};G.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,p4(t,c)):(c.next=n.next,t.pending=n.next=c)}}function p4(e,t){var n=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=G.T,y={};G.T=y;try{var S=n(o,i),C=G.S;C!==null&&C(y,S),v4(e,t,S)}catch(H){ko(e,t,H)}finally{c!==null&&y.types!==null&&(c.types=y.types),G.T=c}}else try{c=n(o,i),v4(e,t,c)}catch(H){ko(e,t,H)}}function v4(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){g4(e,t,i)},function(i){return ko(e,t,i)}):g4(e,t,n)}function g4(e,t,n){t.status="fulfilled",t.value=n,y4(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,p4(e,n)))}function ko(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,y4(t),t=t.next;while(t!==i)}e.action=null}function y4(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function b4(e,t){return t}function x4(e,t){if($e){var n=yt.formState;if(n!==null){e:{var i=qe;if($e){if(St){t:{for(var o=St,c=ca;o.nodeType!==8;){if(!c){o=null;break t}if(o=ha(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){St=ha(o.nextSibling),i=o.data==="F!";break e}}En(i)}i=!1}i&&(t=n[0])}}return n=w0(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:b4,lastRenderedState:t},n.queue=i,n=U4.bind(null,qe,i),i.dispatch=n,i=Eo(!1),c=Oo.bind(null,qe,!1,i.queue),i=w0(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,n=u5.bind(null,qe,o,c,n),o.dispatch=n,i.memoizedState=e,[t,n,!1]}function S4(e){var t=Ht();return w4(t,pt,e)}function w4(e,t,n){if(t=Ao(e,t,b4)[0],e=vu(Ia)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ei(t)}catch(y){throw y===Il?iu:y}else i=t;t=Ht();var o=t.queue,c=o.dispatch;return n!==t.memoizedState&&(qe.flags|=2048,er(9,{destroy:void 0},s5.bind(null,o,n),null)),[i,c,e]}function s5(e,t){e.action=t}function T4(e){var t=Ht(),n=pt;if(n!==null)return w4(t,n,e);Ht(),t=t.memoizedState,n=Ht();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function er(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=qe.updateQueue,t===null&&(t=mu(),qe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function A4(){return Ht().memoizedState}function gu(e,t,n,i){var o=w0();qe.flags|=e,o.memoizedState=er(1|t,{destroy:void 0},n,i===void 0?null:i)}function yu(e,t,n,i){var o=Ht();i=i===void 0?null:i;var c=o.memoizedState.inst;pt!==null&&i!==null&&yo(i,pt.memoizedState.deps)?o.memoizedState=er(t,c,n,i):(qe.flags|=e,o.memoizedState=er(1|t,c,n,i))}function z4(e,t){gu(8390656,8,e,t)}function Mo(e,t){yu(2048,8,e,t)}function o5(e){qe.flags|=4;var t=qe.updateQueue;if(t===null)t=mu(),qe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function E4(e){var t=Ht().memoizedState;return o5({ref:t,nextImpl:e}),function(){if((it&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function k4(e,t){return yu(4,2,e,t)}function M4(e,t){return yu(4,4,e,t)}function C4(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function D4(e,t,n){n=n!=null?n.concat([e]):null,yu(4,4,C4.bind(null,t,e),n)}function Co(){}function _4(e,t){var n=Ht();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&yo(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function R4(e,t){var n=Ht();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&yo(t,i[1]))return i[0];if(i=e(),xl){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[i,t],i}function Do(e,t,n){return n===void 0||(Fa&1073741824)!==0&&(Qe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Oh(),qe.lanes|=e,Bn|=e,n)}function O4(e,t,n,i){return X0(n,t)?n:$l.current!==null?(e=Do(e,n,i),X0(e,t)||(Yt=!0),e):(Fa&42)===0||(Fa&1073741824)!==0&&(Qe&261930)===0?(Yt=!0,e.memoizedState=n):(e=Oh(),qe.lanes|=e,Bn|=e,t)}function N4(e,t,n,i,o){var c=te.p;te.p=c!==0&&8>c?c:8;var y=G.T,S={};G.T=S,Oo(e,!1,t,n);try{var C=o(),H=G.S;if(H!==null&&H(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var V=l5(C,i);ti(e,t,V,I0(e))}else ti(e,t,i,I0(e))}catch(K){ti(e,t,{then:function(){},status:"rejected",reason:K},I0())}finally{te.p=c,y!==null&&S.types!==null&&(y.types=S.types),G.T=y}}function c5(){}function _o(e,t,n,i){if(e.tag!==5)throw Error(u(476));var o=B4(e).queue;N4(e,o,t,ve,n===null?c5:function(){return L4(e),n(i)})}function B4(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:ve},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function L4(e){var t=B4(e);t.next===null&&(t=e.alternate.memoizedState),ti(e,t.next.queue,{},I0())}function Ro(){return s0(yi)}function q4(){return Ht().memoizedState}function H4(){return Ht().memoizedState}function f5(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=I0();e=Cn(n);var i=Dn(t,e,n);i!==null&&(q0(i,t,n),Jr(i,t,n)),t={cache:io()},e.payload=t;return}t=t.return}}function h5(e,t,n){var i=I0();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},bu(e)?j4(t,n):(n=Is(e,t,n,i),n!==null&&(q0(n,e,i),G4(n,t,i)))}function U4(e,t,n){var i=I0();ti(e,t,n,i)}function ti(e,t,n,i){var o={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(bu(e))j4(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var y=t.lastRenderedState,S=c(y,n);if(o.hasEagerState=!0,o.eagerState=S,X0(S,y))return Pi(e,t,o,0),yt===null&&Wi(),!1}catch{}finally{}if(n=Is(e,t,o,i),n!==null)return q0(n,e,i),G4(n,t,i),!0}return!1}function Oo(e,t,n,i){if(i={lane:2,revertLane:fc(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},bu(e)){if(t)throw Error(u(479))}else t=Is(e,n,i,2),t!==null&&q0(t,e,2)}function bu(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function j4(e,t){Wl=hu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function G4(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,zr(e,n)}}var ai={readContext:s0,use:pu,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};ai.useEffectEvent=Nt;var Y4={readContext:s0,use:pu,useCallback:function(e,t){return w0().memoizedState=[e,t===void 0?null:t],e},useContext:s0,useEffect:z4,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,gu(4194308,4,C4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gu(4194308,4,e,t)},useInsertionEffect:function(e,t){gu(4,2,e,t)},useMemo:function(e,t){var n=w0();t=t===void 0?null:t;var i=e();if(xl){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=w0();if(n!==void 0){var o=n(t);if(xl){Pe(!0);try{n(t)}finally{Pe(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=h5.bind(null,qe,e),[i.memoizedState,e]},useRef:function(e){var t=w0();return e={current:e},t.memoizedState=e},useState:function(e){e=Eo(e);var t=e.queue,n=U4.bind(null,qe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Co,useDeferredValue:function(e,t){var n=w0();return Do(n,e,t)},useTransition:function(){var e=Eo(!1);return e=N4.bind(null,qe,e.queue,!0,!1),w0().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=qe,o=w0();if($e){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),yt===null)throw Error(u(349));(Qe&127)!==0||o4(i,t,n)}o.memoizedState=n;var c={value:n,getSnapshot:t};return o.queue=c,z4(f4.bind(null,i,c,e),[e]),i.flags|=2048,er(9,{destroy:void 0},c4.bind(null,i,c,n,t),null),n},useId:function(){var e=w0(),t=yt.identifierPrefix;if($e){var n=_a,i=Da;n=(i&~(1<<32-ft(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=du++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=r5++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ro,useFormState:x4,useActionState:x4,useOptimistic:function(e){var t=w0();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Oo.bind(null,qe,!0,n),n.dispatch=t,[e,t]},useMemoCache:To,useCacheRefresh:function(){return w0().memoizedState=f5.bind(null,qe)},useEffectEvent:function(e){var t=w0(),n={impl:e};return t.memoizedState=n,function(){if((it&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},No={readContext:s0,use:pu,useCallback:_4,useContext:s0,useEffect:Mo,useImperativeHandle:D4,useInsertionEffect:k4,useLayoutEffect:M4,useMemo:R4,useReducer:vu,useRef:A4,useState:function(){return vu(Ia)},useDebugValue:Co,useDeferredValue:function(e,t){var n=Ht();return O4(n,pt.memoizedState,e,t)},useTransition:function(){var e=vu(Ia)[0],t=Ht().memoizedState;return[typeof e=="boolean"?e:ei(e),t]},useSyncExternalStore:s4,useId:q4,useHostTransitionStatus:Ro,useFormState:S4,useActionState:S4,useOptimistic:function(e,t){var n=Ht();return m4(n,pt,e,t)},useMemoCache:To,useCacheRefresh:H4};No.useEffectEvent=E4;var X4={readContext:s0,use:pu,useCallback:_4,useContext:s0,useEffect:Mo,useImperativeHandle:D4,useInsertionEffect:k4,useLayoutEffect:M4,useMemo:R4,useReducer:zo,useRef:A4,useState:function(){return zo(Ia)},useDebugValue:Co,useDeferredValue:function(e,t){var n=Ht();return pt===null?Do(n,e,t):O4(n,pt.memoizedState,e,t)},useTransition:function(){var e=zo(Ia)[0],t=Ht().memoizedState;return[typeof e=="boolean"?e:ei(e),t]},useSyncExternalStore:s4,useId:q4,useHostTransitionStatus:Ro,useFormState:T4,useActionState:T4,useOptimistic:function(e,t){var n=Ht();return pt!==null?m4(n,pt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:To,useCacheRefresh:H4};X4.useEffectEvent=E4;function Bo(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Lo={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=I0(),o=Cn(i);o.payload=t,n!=null&&(o.callback=n),t=Dn(e,o,i),t!==null&&(q0(t,e,i),Jr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=I0(),o=Cn(i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Dn(e,o,i),t!==null&&(q0(t,e,i),Jr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=I0(),i=Cn(n);i.tag=2,t!=null&&(i.callback=t),t=Dn(e,i,n),t!==null&&(q0(t,e,n),Jr(t,e,n))}};function Z4(e,t,n,i,o,c,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,y):t.prototype&&t.prototype.isPureReactComponent?!Yr(n,i)||!Yr(o,c):!0}function V4(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Lo.enqueueReplaceState(t,t.state,null)}function Sl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=T({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Q4(e){$i(e)}function K4(e){console.error(e)}function F4(e){$i(e)}function xu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function I4(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function qo(e,t,n){return n=Cn(n),n.tag=3,n.payload={element:null},n.callback=function(){xu(e,t)},n}function J4(e){return e=Cn(e),e.tag=3,e}function $4(e,t,n,i){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){I4(t,n,i)}}var y=n.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){I4(t,n,i),typeof o!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var S=i.stack;this.componentDidCatch(i.value,{componentStack:S!==null?S:""})})}function d5(e,t,n,i,o){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Ql(t,n,o,!0),n=V0.current,n!==null){switch(n.tag){case 31:case 13:return fa===null?Ru():n.alternate===null&&Bt===0&&(Bt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,i===uu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),sc(e,i,o)),!1;case 22:return n.flags|=65536,i===uu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),sc(e,i,o)),!1}throw Error(u(435,n.tag))}return sc(e,i,o),Ru(),!1}if($e)return t=V0.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==to&&(e=Error(u(422),{cause:i}),Vr(ua(e,n)))):(i!==to&&(t=Error(u(423),{cause:i}),Vr(ua(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=ua(i,n),o=qo(e.stateNode,i,o),ho(e,o),Bt!==4&&(Bt=2)),!1;var c=Error(u(520),{cause:i});if(c=ua(c,n),ci===null?ci=[c]:ci.push(c),Bt!==4&&(Bt=2),t===null)return!0;i=ua(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=qo(n.stateNode,i,e),ho(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ln===null||!Ln.has(c))))return n.flags|=65536,o&=-o,n.lanes|=o,o=J4(o),$4(o,e,n,i),ho(n,o),!1}n=n.return}while(n!==null);return!1}var Ho=Error(u(461)),Yt=!1;function o0(e,t,n,i){t.child=e===null?t4(t,null,n,i):bl(t,e.child,n,i)}function W4(e,t,n,i,o){n=n.render;var c=t.ref;if("ref"in i){var y={};for(var S in i)S!=="ref"&&(y[S]=i[S])}else y=i;return pl(t),i=bo(e,t,n,y,c,o),S=xo(),e!==null&&!Yt?(So(e,t,o),Ja(e,t,o)):($e&&S&&Ps(t),t.flags|=1,o0(e,t,i,o),t.child)}function P4(e,t,n,i,o){if(e===null){var c=n.type;return typeof c=="function"&&!Js(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,eh(e,t,c,i,o)):(e=tu(n.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Qo(e,o)){var y=c.memoizedProps;if(n=n.compare,n=n!==null?n:Yr,n(y,i)&&e.ref===t.ref)return Ja(e,t,o)}return t.flags|=1,e=Za(c,i),e.ref=t.ref,e.return=t,t.child=e}function eh(e,t,n,i,o){if(e!==null){var c=e.memoizedProps;if(Yr(c,i)&&e.ref===t.ref)if(Yt=!1,t.pendingProps=i=c,Qo(e,o))(e.flags&131072)!==0&&(Yt=!0);else return t.lanes=e.lanes,Ja(e,t,o)}return Uo(e,t,n,i,o)}function th(e,t,n,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return ah(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ru(t,c!==null?c.cachePool:null),c!==null?l4(t,c):po(),r4(t);else return i=t.lanes=536870912,ah(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(ru(t,c.cachePool),l4(t,c),Rn(),t.memoizedState=null):(e!==null&&ru(t,null),po(),Rn());return o0(e,t,o,n),t.child}function ni(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ah(e,t,n,i,o){var c=so();return c=c===null?null:{parent:jt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ru(t,null),po(),r4(t),e!==null&&Ql(e,t,i,!0),t.childLanes=o,null}function Su(e,t){return t=Tu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function nh(e,t,n){return bl(t,e.child,null,n),e=Su(t,t.pendingProps),e.flags|=2,Q0(t),t.memoizedState=null,e}function m5(e,t,n){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if($e){if(i.mode==="hidden")return e=Su(t,i),t.lanes=536870912,ni(null,e);if(go(t),(e=St)?(e=p2(e,ca),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:An!==null?{id:Da,overflow:_a}:null,retryLane:536870912,hydrationErrors:null},n=jf(e),n.return=t,t.child=n,u0=t,St=null)):e=null,e===null)throw En(t);return t.lanes=536870912,null}return Su(t,i)}var c=e.memoizedState;if(c!==null){var y=c.dehydrated;if(go(t),o)if(t.flags&256)t.flags&=-257,t=nh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(Yt||Ql(e,t,n,!1),o=(n&e.childLanes)!==0,Yt||o){if(i=yt,i!==null&&(y=Rl(i,n),y!==0&&y!==c.retryLane))throw c.retryLane=y,fl(e,y),q0(i,e,y),Ho;Ru(),t=nh(e,t,n)}else e=c.treeContext,St=ha(y.nextSibling),u0=t,$e=!0,zn=null,ca=!1,e!==null&&Xf(t,e),t=Su(t,i),t.flags|=4096;return t}return e=Za(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Uo(e,t,n,i,o){return pl(t),n=bo(e,t,n,i,void 0,o),i=xo(),e!==null&&!Yt?(So(e,t,o),Ja(e,t,o)):($e&&i&&Ps(t),t.flags|=1,o0(e,t,n,o),t.child)}function lh(e,t,n,i,o,c){return pl(t),t.updateQueue=null,n=u4(t,i,n,o),i4(e),i=xo(),e!==null&&!Yt?(So(e,t,c),Ja(e,t,c)):($e&&i&&Ps(t),t.flags|=1,o0(e,t,n,c),t.child)}function rh(e,t,n,i,o){if(pl(t),t.stateNode===null){var c=Yl,y=n.contextType;typeof y=="object"&&y!==null&&(c=s0(y)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Lo,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},co(t),y=n.contextType,c.context=typeof y=="object"&&y!==null?s0(y):Yl,c.state=t.memoizedState,y=n.getDerivedStateFromProps,typeof y=="function"&&(Bo(t,n,y,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(y=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),y!==c.state&&Lo.enqueueReplaceState(c,c.state,null),Wr(t,i,c,o),$r(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,C=Sl(n,S);c.props=C;var H=c.context,V=n.contextType;y=Yl,typeof V=="object"&&V!==null&&(y=s0(V));var K=n.getDerivedStateFromProps;V=typeof K=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,V||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||H!==y)&&V4(t,c,i,y),Mn=!1;var j=t.memoizedState;c.state=j,Wr(t,i,c,o),$r(),H=t.memoizedState,S||j!==H||Mn?(typeof K=="function"&&(Bo(t,n,K,i),H=t.memoizedState),(C=Mn||Z4(t,n,C,i,j,H,y))?(V||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=H),c.props=i,c.state=H,c.context=y,i=C):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,fo(e,t),y=t.memoizedProps,V=Sl(n,y),c.props=V,K=t.pendingProps,j=c.context,H=n.contextType,C=Yl,typeof H=="object"&&H!==null&&(C=s0(H)),S=n.getDerivedStateFromProps,(H=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y!==K||j!==C)&&V4(t,c,i,C),Mn=!1,j=t.memoizedState,c.state=j,Wr(t,i,c,o),$r();var Y=t.memoizedState;y!==K||j!==Y||Mn||e!==null&&e.dependencies!==null&&nu(e.dependencies)?(typeof S=="function"&&(Bo(t,n,S,i),Y=t.memoizedState),(V=Mn||Z4(t,n,V,i,j,Y,C)||e!==null&&e.dependencies!==null&&nu(e.dependencies))?(H||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,Y,C),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,Y,C)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=Y),c.props=i,c.state=Y,c.context=C,i=V):(typeof c.componentDidUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,wu(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=bl(t,e.child,null,o),t.child=bl(t,null,n,o)):o0(e,t,n,o),t.memoizedState=c.state,e=t.child):e=Ja(e,t,o),e}function ih(e,t,n,i){return dl(),t.flags|=256,o0(e,t,n,i),t.child}var jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Go(e){return{baseLanes:e,cachePool:If()}}function Yo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=F0),e}function uh(e,t,n){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,y;if((y=c)||(y=e!==null&&e.memoizedState===null?!1:(qt.current&2)!==0),y&&(o=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if($e){if(o?_n(t):Rn(),(e=St)?(e=p2(e,ca),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:An!==null?{id:Da,overflow:_a}:null,retryLane:536870912,hydrationErrors:null},n=jf(e),n.return=t,t.child=n,u0=t,St=null)):e=null,e===null)throw En(t);return Ac(e)?t.lanes=32:t.lanes=536870912,null}var S=i.children;return i=i.fallback,o?(Rn(),o=t.mode,S=Tu({mode:"hidden",children:S},o),i=hl(i,o,n,null),S.return=t,i.return=t,S.sibling=i,t.child=S,i=t.child,i.memoizedState=Go(n),i.childLanes=Yo(e,y,n),t.memoizedState=jo,ni(null,i)):(_n(t),Xo(t,S))}var C=e.memoizedState;if(C!==null&&(S=C.dehydrated,S!==null)){if(c)t.flags&256?(_n(t),t.flags&=-257,t=Zo(e,t,n)):t.memoizedState!==null?(Rn(),t.child=e.child,t.flags|=128,t=null):(Rn(),S=i.fallback,o=t.mode,i=Tu({mode:"visible",children:i.children},o),S=hl(S,o,n,null),S.flags|=2,i.return=t,S.return=t,i.sibling=S,t.child=i,bl(t,e.child,null,n),i=t.child,i.memoizedState=Go(n),i.childLanes=Yo(e,y,n),t.memoizedState=jo,t=ni(null,i));else if(_n(t),Ac(S)){if(y=S.nextSibling&&S.nextSibling.dataset,y)var H=y.dgst;y=H,i=Error(u(419)),i.stack="",i.digest=y,Vr({value:i,source:null,stack:null}),t=Zo(e,t,n)}else if(Yt||Ql(e,t,n,!1),y=(n&e.childLanes)!==0,Yt||y){if(y=yt,y!==null&&(i=Rl(y,n),i!==0&&i!==C.retryLane))throw C.retryLane=i,fl(e,i),q0(y,e,i),Ho;Tc(S)||Ru(),t=Zo(e,t,n)}else Tc(S)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,St=ha(S.nextSibling),u0=t,$e=!0,zn=null,ca=!1,e!==null&&Xf(t,e),t=Xo(t,i.children),t.flags|=4096);return t}return o?(Rn(),S=i.fallback,o=t.mode,C=e.child,H=C.sibling,i=Za(C,{mode:"hidden",children:i.children}),i.subtreeFlags=C.subtreeFlags&65011712,H!==null?S=Za(H,S):(S=hl(S,o,n,null),S.flags|=2),S.return=t,i.return=t,i.sibling=S,t.child=i,ni(null,i),i=t.child,S=e.child.memoizedState,S===null?S=Go(n):(o=S.cachePool,o!==null?(C=jt._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=If(),S={baseLanes:S.baseLanes|n,cachePool:o}),i.memoizedState=S,i.childLanes=Yo(e,y,n),t.memoizedState=jo,ni(e.child,i)):(_n(t),n=e.child,e=n.sibling,n=Za(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=n,t.memoizedState=null,n)}function Xo(e,t){return t=Tu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tu(e,t){return e=Z0(22,e,null,t),e.lanes=0,e}function Zo(e,t,n){return bl(t,e.child,null,n),e=Xo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sh(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),lo(e.return,t,n)}function Vo(e,t,n,i,o,c){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:o,treeForkCount:c}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=n,y.tailMode=o,y.treeForkCount=c)}function oh(e,t,n){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var y=qt.current,S=(y&2)!==0;if(S?(y=y&1|2,t.flags|=128):y&=1,$(qt,y),o0(e,t,i,n),i=$e?Zr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sh(e,n,t);else if(e.tag===19)sh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&fu(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vo(t,!1,o,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&fu(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vo(t,!0,n,null,c,i);break;case"together":Vo(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Ja(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ql(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=Za(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Za(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&nu(e)))}function p5(e,t,n){switch(t.tag){case 3:Tt(t,t.stateNode.containerInfo),kn(t,jt,e.memoizedState.cache),dl();break;case 27:case 5:U0(t);break;case 4:Tt(t,t.stateNode.containerInfo);break;case 10:kn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,go(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(_n(t),t.flags|=128,null):(n&t.child.childLanes)!==0?uh(e,t,n):(_n(t),e=Ja(e,t,n),e!==null?e.sibling:null);_n(t);break;case 19:var o=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Ql(e,t,n,!1),i=(n&t.childLanes)!==0),o){if(i)return oh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),$(qt,qt.current),i)break;return null;case 22:return t.lanes=0,th(e,t,n,t.pendingProps);case 24:kn(t,jt,e.memoizedState.cache)}return Ja(e,t,n)}function ch(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Yt=!0;else{if(!Qo(e,n)&&(t.flags&128)===0)return Yt=!1,p5(e,t,n);Yt=(e.flags&131072)!==0}else Yt=!1,$e&&(t.flags&1048576)!==0&&Yf(t,Zr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=gl(t.elementType),t.type=e,typeof e=="function")Js(e)?(i=Sl(e,i),t.tag=1,t=rh(null,t,e,i,n)):(t.tag=0,t=Uo(null,t,e,i,n));else{if(e!=null){var o=e.$$typeof;if(o===re){t.tag=11,t=W4(null,t,e,i,n);break e}else if(o===X){t.tag=14,t=P4(null,t,e,i,n);break e}}throw t=mt(e)||e,Error(u(306,t,""))}}return t;case 0:return Uo(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,o=Sl(i,t.pendingProps),rh(e,t,i,o,n);case 3:e:{if(Tt(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,fo(e,t),Wr(t,i,null,n);var y=t.memoizedState;if(i=y.cache,kn(t,jt,i),i!==c.cache&&ro(t,[jt],n,!0),$r(),i=y.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=ih(e,t,i,n);break e}else if(i!==o){o=ua(Error(u(424)),t),Vr(o),t=ih(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(St=ha(e.firstChild),u0=t,$e=!0,zn=null,ca=!0,n=t4(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(dl(),i===o){t=Ja(e,t,n);break e}o0(e,t,i,n)}t=t.child}return t;case 26:return wu(e,t),e===null?(n=S2(t.type,null,t.pendingProps,null))?t.memoizedState=n:$e||(n=t.type,e=t.pendingProps,i=Uu(Oe.current).createElement(n),i[It]=t,i[Ye]=e,c0(i,n,e),Dt(i),t.stateNode=i):t.memoizedState=S2(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return U0(t),e===null&&$e&&(i=t.stateNode=y2(t.type,t.pendingProps,Oe.current),u0=t,ca=!0,o=St,jn(t.type)?(zc=o,St=ha(i.firstChild)):St=o),o0(e,t,t.pendingProps.children,n),wu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$e&&((o=i=St)&&(i=V5(i,t.type,t.pendingProps,ca),i!==null?(t.stateNode=i,u0=t,St=ha(i.firstChild),ca=!1,o=!0):o=!1),o||En(t)),U0(t),o=t.type,c=t.pendingProps,y=e!==null?e.memoizedProps:null,i=c.children,xc(o,c)?i=null:y!==null&&xc(o,y)&&(t.flags|=32),t.memoizedState!==null&&(o=bo(e,t,i5,null,null,n),yi._currentValue=o),wu(e,t),o0(e,t,i,n),t.child;case 6:return e===null&&$e&&((e=n=St)&&(n=Q5(n,t.pendingProps,ca),n!==null?(t.stateNode=n,u0=t,St=null,e=!0):e=!1),e||En(t)),null;case 13:return uh(e,t,n);case 4:return Tt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=bl(t,null,i,n):o0(e,t,i,n),t.child;case 11:return W4(e,t,t.type,t.pendingProps,n);case 7:return o0(e,t,t.pendingProps,n),t.child;case 8:return o0(e,t,t.pendingProps.children,n),t.child;case 12:return o0(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,kn(t,t.type,i.value),o0(e,t,i.children,n),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,pl(t),o=s0(o),i=i(o),t.flags|=1,o0(e,t,i,n),t.child;case 14:return P4(e,t,t.type,t.pendingProps,n);case 15:return eh(e,t,t.type,t.pendingProps,n);case 19:return oh(e,t,n);case 31:return m5(e,t,n);case 22:return th(e,t,n,t.pendingProps);case 24:return pl(t),i=s0(jt),e===null?(o=so(),o===null&&(o=yt,c=io(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=n),o=c),t.memoizedState={parent:i,cache:o},co(t),kn(t,jt,o)):((e.lanes&n)!==0&&(fo(e,t),Wr(t,null,null,n),$r()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),kn(t,jt,i)):(i=c.cache,kn(t,jt,i),i!==o.cache&&ro(t,[jt],n,!0))),o0(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function $a(e){e.flags|=4}function Ko(e,t,n,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(qh())e.flags|=8192;else throw yl=uu,oo}else e.flags&=-16777217}function fh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!E2(t))if(qh())e.flags|=8192;else throw yl=uu,oo}function Au(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?G0():536870912,e.lanes|=t,lr|=t)}function li(e,t){if(!$e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function wt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function v5(e,t,n){var i=t.pendingProps;switch(eo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(t),null;case 1:return wt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ka(jt),We(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vl(t)?$a(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ao())),wt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?($a(t),c!==null?(wt(t),fh(t,c)):(wt(t),Ko(t,o,null,i,n))):c?c!==e.memoizedState?($a(t),wt(t),fh(t,c)):(wt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&$a(t),wt(t),Ko(t,o,e,i,n)),null;case 27:if(Ie(t),n=Oe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&$a(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return wt(t),null}e=he.current,Vl(t)?Zf(t):(e=y2(o,i,n),t.stateNode=e,$a(t))}return wt(t),null;case 5:if(Ie(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&$a(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return wt(t),null}if(c=he.current,Vl(t))Zf(t);else{var y=Uu(Oe.current);switch(c){case 1:c=y.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=y.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=y.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?y.createElement(o,{is:i.is}):y.createElement(o)}}c[It]=t,c[Ye]=i;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)c.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=c;e:switch(c0(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&$a(t)}}return wt(t),Ko(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&$a(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=Oe.current,Vl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,o=u0,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[It]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||u2(e.nodeValue,n)),e||En(t,!0)}else e=Uu(e).createTextNode(i),e[It]=t,t.stateNode=e}return wt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Vl(t),n!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[It]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),e=!1}else n=ao(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Q0(t),t):(Q0(t),null);if((t.flags&128)!==0)throw Error(u(558))}return wt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Vl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[It]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;wt(t),o=!1}else o=ao(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Q0(t),t):(Q0(t),null)}return Q0(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Au(t,t.updateQueue),wt(t),null);case 4:return We(),e===null&&pc(t.stateNode.containerInfo),wt(t),null;case 10:return Ka(t.type),wt(t),null;case 19:if(Z(qt),i=t.memoizedState,i===null)return wt(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)li(i,!1);else{if(Bt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=fu(e),c!==null){for(t.flags|=128,li(i,!1),e=c.updateQueue,t.updateQueue=e,Au(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Uf(n,e),n=n.sibling;return $(qt,qt.current&1|2),$e&&Va(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&ct()>Cu&&(t.flags|=128,o=!0,li(i,!1),t.lanes=4194304)}else{if(!o)if(e=fu(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Au(t,e),li(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!$e)return wt(t),null}else 2*ct()-i.renderingStartTime>Cu&&n!==536870912&&(t.flags|=128,o=!0,li(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ct(),e.sibling=null,n=qt.current,$(qt,o?n&1|2:n&1),$e&&Va(t,i.treeForkCount),e):(wt(t),null);case 22:case 23:return Q0(t),vo(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(wt(t),t.subtreeFlags&6&&(t.flags|=8192)):wt(t),n=t.updateQueue,n!==null&&Au(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Z(vl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ka(jt),wt(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function g5(e,t){switch(eo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(jt),We(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ie(t),null;case 31:if(t.memoizedState!==null){if(Q0(t),t.alternate===null)throw Error(u(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Q0(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(qt),null;case 4:return We(),null;case 10:return Ka(t.type),null;case 22:case 23:return Q0(t),vo(),e!==null&&Z(vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ka(jt),null;case 25:return null;default:return null}}function hh(e,t){switch(eo(t),t.tag){case 3:Ka(jt),We();break;case 26:case 27:case 5:Ie(t);break;case 4:We();break;case 31:t.memoizedState!==null&&Q0(t);break;case 13:Q0(t);break;case 19:Z(qt);break;case 10:Ka(t.type);break;case 22:case 23:Q0(t),vo(),e!==null&&Z(vl);break;case 24:Ka(jt)}}function ri(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var o=i.next;n=o;do{if((n.tag&e)===e){i=void 0;var c=n.create,y=n.inst;i=c(),y.destroy=i}n=n.next}while(n!==o)}}catch(S){dt(t,t.return,S)}}function On(e,t,n){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var y=i.inst,S=y.destroy;if(S!==void 0){y.destroy=void 0,o=t;var C=n,H=S;try{H()}catch(V){dt(o,C,V)}}}i=i.next}while(i!==c)}}catch(V){dt(t,t.return,V)}}function dh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{n4(t,n)}catch(i){dt(e,e.return,i)}}}function mh(e,t,n){n.props=Sl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){dt(e,t,i)}}function ii(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(o){dt(e,t,o)}}function Ra(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(o){dt(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){dt(e,t,o)}else n.current=null}function ph(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(o){dt(e,e.return,o)}}function Fo(e,t,n){try{var i=e.stateNode;U5(i,e.type,n,t),i[Ye]=t}catch(o){dt(e,e.return,o)}}function vh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&jn(e.type)||e.tag===4}function Io(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&jn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jo(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Et));else if(i!==4&&(i===27&&jn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Jo(e,t,n),e=e.sibling;e!==null;)Jo(e,t,n),e=e.sibling}function zu(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&jn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(zu(e,t,n),e=e.sibling;e!==null;)zu(e,t,n),e=e.sibling}function gh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);c0(t,i,n),t[It]=e,t[Ye]=n}catch(c){dt(e,e.return,c)}}var Wa=!1,Xt=!1,$o=!1,yh=typeof WeakSet=="function"?WeakSet:Set,a0=null;function y5(e,t){if(e=e.containerInfo,yc=Qu,e=Df(e),Xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var y=0,S=-1,C=-1,H=0,V=0,K=e,j=null;t:for(;;){for(var Y;K!==n||o!==0&&K.nodeType!==3||(S=y+o),K!==c||i!==0&&K.nodeType!==3||(C=y+i),K.nodeType===3&&(y+=K.nodeValue.length),(Y=K.firstChild)!==null;)j=K,K=Y;for(;;){if(K===e)break t;if(j===n&&++H===o&&(S=y),j===c&&++V===i&&(C=y),(Y=K.nextSibling)!==null)break;K=j,j=K.parentNode}K=Y}n=S===-1||C===-1?null:{start:S,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(bc={focusedElem:e,selectionRange:n},Qu=!1,a0=t;a0!==null;)if(t=a0,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,a0=e;else for(;a0!==null;){switch(t=a0,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,o=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var Se=Sl(n.type,o);e=i.getSnapshotBeforeUpdate(Se,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(De){dt(n,n.return,De)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)wc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,a0=e;break}a0=t.return}}function bh(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:en(e,n),i&4&&ri(5,n);break;case 1:if(en(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(y){dt(n,n.return,y)}else{var o=Sl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){dt(n,n.return,y)}}i&64&&dh(n),i&512&&ii(n,n.return);break;case 3:if(en(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{n4(e,t)}catch(y){dt(n,n.return,y)}}break;case 27:t===null&&i&4&&gh(n);case 26:case 5:en(e,n),t===null&&i&4&&ph(n),i&512&&ii(n,n.return);break;case 12:en(e,n);break;case 31:en(e,n),i&4&&wh(e,n);break;case 13:en(e,n),i&4&&Th(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=k5.bind(null,n),K5(e,n))));break;case 22:if(i=n.memoizedState!==null||Wa,!i){t=t!==null&&t.memoizedState!==null||Xt,o=Wa;var c=Xt;Wa=i,(Xt=t)&&!c?tn(e,n,(n.subtreeFlags&8772)!==0):en(e,n),Wa=o,Xt=c}break;case 30:break;default:en(e,n)}}function xh(e){var t=e.alternate;t!==null&&(e.alternate=null,xh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var kt=null,O0=!1;function Pa(e,t,n){for(n=n.child;n!==null;)Sh(e,t,n),n=n.sibling}function Sh(e,t,n){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(Je,n)}catch{}switch(n.tag){case 26:Xt||Ra(n,t),Pa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xt||Ra(n,t);var i=kt,o=O0;jn(n.type)&&(kt=n.stateNode,O0=!1),Pa(e,t,n),pi(n.stateNode),kt=i,O0=o;break;case 5:Xt||Ra(n,t);case 6:if(i=kt,o=O0,kt=null,Pa(e,t,n),kt=i,O0=o,kt!==null)if(O0)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(n.stateNode)}catch(c){dt(n,t,c)}else try{kt.removeChild(n.stateNode)}catch(c){dt(n,t,c)}break;case 18:kt!==null&&(O0?(e=kt,d2(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),hr(e)):d2(kt,n.stateNode));break;case 4:i=kt,o=O0,kt=n.stateNode.containerInfo,O0=!0,Pa(e,t,n),kt=i,O0=o;break;case 0:case 11:case 14:case 15:On(2,n,t),Xt||On(4,n,t),Pa(e,t,n);break;case 1:Xt||(Ra(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&mh(n,t,i)),Pa(e,t,n);break;case 21:Pa(e,t,n);break;case 22:Xt=(i=Xt)||n.memoizedState!==null,Pa(e,t,n),Xt=i;break;default:Pa(e,t,n)}}function wh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{hr(e)}catch(n){dt(t,t.return,n)}}}function Th(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hr(e)}catch(n){dt(t,t.return,n)}}function b5(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yh),t;default:throw Error(u(435,e.tag))}}function Eu(e,t){var n=b5(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var o=M5.bind(null,e,i);i.then(o,o)}})}function N0(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i],c=e,y=t,S=y;e:for(;S!==null;){switch(S.tag){case 27:if(jn(S.type)){kt=S.stateNode,O0=!1;break e}break;case 5:kt=S.stateNode,O0=!1;break e;case 3:case 4:kt=S.stateNode.containerInfo,O0=!0;break e}S=S.return}if(kt===null)throw Error(u(160));Sh(c,y,o),kt=null,O0=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ah(t,e),t=t.sibling}var wa=null;function Ah(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:N0(t,e),B0(e),i&4&&(On(3,e,e.return),ri(3,e),On(5,e,e.return));break;case 1:N0(t,e),B0(e),i&512&&(Xt||n===null||Ra(n,n.return)),i&64&&Wa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var o=wa;if(N0(t,e),B0(e),i&512&&(Xt||n===null||Ra(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[yn]||c[It]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),c0(c,i,n),c[It]=e,Dt(c),i=c;break e;case"link":var y=A2("link","href",o).get(i+(n.href||""));if(y){for(var S=0;S<y.length;S++)if(c=y[S],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){y.splice(S,1);break t}}c=o.createElement(i),c0(c,i,n),o.head.appendChild(c);break;case"meta":if(y=A2("meta","content",o).get(i+(n.content||""))){for(S=0;S<y.length;S++)if(c=y[S],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){y.splice(S,1);break t}}c=o.createElement(i),c0(c,i,n),o.head.appendChild(c);break;default:throw Error(u(468,i))}c[It]=e,Dt(c),i=c}e.stateNode=i}else z2(o,e.type,e.stateNode);else e.stateNode=T2(o,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?z2(o,e.type,e.stateNode):T2(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Fo(e,e.memoizedProps,n.memoizedProps)}break;case 27:N0(t,e),B0(e),i&512&&(Xt||n===null||Ra(n,n.return)),n!==null&&i&4&&Fo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(N0(t,e),B0(e),i&512&&(Xt||n===null||Ra(n,n.return)),e.flags&32){o=e.stateNode;try{L(o,"")}catch(Se){dt(e,e.return,Se)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Fo(e,o,n!==null?n.memoizedProps:o)),i&1024&&($o=!0);break;case 6:if(N0(t,e),B0(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(Se){dt(e,e.return,Se)}}break;case 3:if(Yu=null,o=wa,wa=ju(t.containerInfo),N0(t,e),wa=o,B0(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{hr(t.containerInfo)}catch(Se){dt(e,e.return,Se)}$o&&($o=!1,zh(e));break;case 4:i=wa,wa=ju(e.stateNode.containerInfo),N0(t,e),B0(e),wa=i;break;case 12:N0(t,e),B0(e);break;case 31:N0(t,e),B0(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eu(e,i)));break;case 13:N0(t,e),B0(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Mu=ct()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eu(e,i)));break;case 22:o=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,H=Wa,V=Xt;if(Wa=H||o,Xt=V||C,N0(t,e),Xt=V,Wa=H,B0(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||C||Wa||Xt||wl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(c=C.stateNode,o)y=c.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{S=C.stateNode;var K=C.memoizedProps.style,j=K!=null&&K.hasOwnProperty("display")?K.display:null;S.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(Se){dt(C,C.return,Se)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(Se){dt(C,C.return,Se)}}}else if(t.tag===18){if(n===null){C=t;try{var Y=C.stateNode;o?m2(Y,!0):m2(C.stateNode,!1)}catch(Se){dt(C,C.return,Se)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Eu(e,n))));break;case 19:N0(t,e),B0(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eu(e,i)));break;case 30:break;case 21:break;default:N0(t,e),B0(e)}}function B0(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(vh(i)){n=i;break}i=i.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var o=n.stateNode,c=Io(e);zu(e,c,o);break;case 5:var y=n.stateNode;n.flags&32&&(L(y,""),n.flags&=-33);var S=Io(e);zu(e,S,y);break;case 3:case 4:var C=n.stateNode.containerInfo,H=Io(e);Jo(e,H,C);break;default:throw Error(u(161))}}catch(V){dt(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function en(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bh(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:On(4,t,t.return),wl(t);break;case 1:Ra(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&mh(t,t.return,n),wl(t);break;case 27:pi(t.stateNode);case 26:case 5:Ra(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function tn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,y=c.flags;switch(c.tag){case 0:case 11:case 15:tn(o,c,n),ri(4,c);break;case 1:if(tn(o,c,n),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(H){dt(i,i.return,H)}if(i=c,o=i.updateQueue,o!==null){var S=i.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)a4(C[o],S)}catch(H){dt(i,i.return,H)}}n&&y&64&&dh(c),ii(c,c.return);break;case 27:gh(c);case 26:case 5:tn(o,c,n),n&&i===null&&y&4&&ph(c),ii(c,c.return);break;case 12:tn(o,c,n);break;case 31:tn(o,c,n),n&&y&4&&wh(o,c);break;case 13:tn(o,c,n),n&&y&4&&Th(o,c);break;case 22:c.memoizedState===null&&tn(o,c,n),ii(c,c.return);break;case 30:break;default:tn(o,c,n)}t=t.sibling}}function Wo(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Qr(n))}function Po(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qr(e))}function Ta(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Eh(e,t,n,i),t=t.sibling}function Eh(e,t,n,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ta(e,t,n,i),o&2048&&ri(9,t);break;case 1:Ta(e,t,n,i);break;case 3:Ta(e,t,n,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qr(e)));break;case 12:if(o&2048){Ta(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,y=c.id,S=c.onPostCommit;typeof S=="function"&&S(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){dt(t,t.return,C)}}else Ta(e,t,n,i);break;case 31:Ta(e,t,n,i);break;case 13:Ta(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,y=t.alternate,t.memoizedState!==null?c._visibility&2?Ta(e,t,n,i):ui(e,t):c._visibility&2?Ta(e,t,n,i):(c._visibility|=2,tr(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Wo(y,t);break;case 24:Ta(e,t,n,i),o&2048&&Po(t.alternate,t);break;default:Ta(e,t,n,i)}}function tr(e,t,n,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,y=t,S=n,C=i,H=y.flags;switch(y.tag){case 0:case 11:case 15:tr(c,y,S,C,o),ri(8,y);break;case 23:break;case 22:var V=y.stateNode;y.memoizedState!==null?V._visibility&2?tr(c,y,S,C,o):ui(c,y):(V._visibility|=2,tr(c,y,S,C,o)),o&&H&2048&&Wo(y.alternate,y);break;case 24:tr(c,y,S,C,o),o&&H&2048&&Po(y.alternate,y);break;default:tr(c,y,S,C,o)}t=t.sibling}}function ui(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,o=i.flags;switch(i.tag){case 22:ui(n,i),o&2048&&Wo(i.alternate,i);break;case 24:ui(n,i),o&2048&&Po(i.alternate,i);break;default:ui(n,i)}t=t.sibling}}var si=8192;function ar(e,t,n){if(e.subtreeFlags&si)for(e=e.child;e!==null;)kh(e,t,n),e=e.sibling}function kh(e,t,n){switch(e.tag){case 26:ar(e,t,n),e.flags&si&&e.memoizedState!==null&&r6(n,wa,e.memoizedState,e.memoizedProps);break;case 5:ar(e,t,n);break;case 3:case 4:var i=wa;wa=ju(e.stateNode.containerInfo),ar(e,t,n),wa=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=si,si=16777216,ar(e,t,n),si=i):ar(e,t,n));break;default:ar(e,t,n)}}function Mh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function oi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];a0=i,Dh(i,e)}Mh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ch(e),e=e.sibling}function Ch(e){switch(e.tag){case 0:case 11:case 15:oi(e),e.flags&2048&&On(9,e,e.return);break;case 3:oi(e);break;case 12:oi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ku(e)):oi(e);break;default:oi(e)}}function ku(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];a0=i,Dh(i,e)}Mh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:On(8,t,t.return),ku(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ku(t));break;default:ku(t)}e=e.sibling}}function Dh(e,t){for(;a0!==null;){var n=a0;switch(n.tag){case 0:case 11:case 15:On(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Qr(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,a0=i;else e:for(n=e;a0!==null;){i=a0;var o=i.sibling,c=i.return;if(xh(i),i===n){a0=null;break e}if(o!==null){o.return=c,a0=o;break e}a0=c}}}var x5={getCacheForType:function(e){var t=s0(jt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return s0(jt).controller.signal}},S5=typeof WeakMap=="function"?WeakMap:Map,it=0,yt=null,Ze=null,Qe=0,ht=0,K0=null,Nn=!1,nr=!1,ec=!1,an=0,Bt=0,Bn=0,Tl=0,tc=0,F0=0,lr=0,ci=null,L0=null,ac=!1,Mu=0,_h=0,Cu=1/0,Du=null,Ln=null,$t=0,qn=null,rr=null,nn=0,nc=0,lc=null,Rh=null,fi=0,rc=null;function I0(){return(it&2)!==0&&Qe!==0?Qe&-Qe:G.T!==null?fc():Ui()}function Oh(){if(F0===0)if((Qe&536870912)===0||$e){var e=al;al<<=1,(al&3932160)===0&&(al=262144),F0=e}else F0=536870912;return e=V0.current,e!==null&&(e.flags|=32),F0}function q0(e,t,n){(e===yt&&(ht===2||ht===9)||e.cancelPendingCommit!==null)&&(ir(e,0),Hn(e,Qe,F0,!1)),Ga(e,n),((it&2)===0||e!==yt)&&(e===yt&&((it&2)===0&&(Tl|=n),Bt===4&&Hn(e,Qe,F0,!1)),Oa(e))}function Nh(e,t,n){if((it&6)!==0)throw Error(u(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||za(e,t),o=i?A5(e,t):uc(e,t,!0),c=i;do{if(o===0){nr&&!i&&Hn(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!w5(n)){o=uc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var S=e;o=ci;var C=S.current.memoizedState.isDehydrated;if(C&&(ir(S,y).flags|=256),y=uc(S,y,!1),y!==2){if(ec&&!C){S.errorRecoveryDisabledLanes|=c,Tl|=c,o=4;break e}c=L0,L0=o,c!==null&&(L0===null?L0=c:L0.push.apply(L0,c))}o=y}if(c=!1,o!==2)continue}}if(o===1){ir(e,0),Hn(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Hn(i,t,F0,!Nn);break e;case 2:L0=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Mu+300-ct(),10<o)){if(Hn(i,t,F0,!Nn),ll(i,0,!0)!==0)break e;nn=t,i.timeoutHandle=f2(Bh.bind(null,i,n,L0,Du,ac,t,F0,Tl,lr,Nn,c,"Throttled",-0,0),o);break e}Bh(i,n,L0,Du,ac,t,F0,Tl,lr,Nn,c,null,-0,0)}}break}while(!0);Oa(e)}function Bh(e,t,n,i,o,c,y,S,C,H,V,K,j,Y){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Et},kh(t,c,K);var Se=(c&62914560)===c?Mu-ct():(c&4194048)===c?_h-ct():0;if(Se=i6(K,Se),Se!==null){nn=c,e.cancelPendingCommit=Se(Xh.bind(null,e,t,c,n,i,o,y,S,C,V,K,null,j,Y)),Hn(e,c,y,!H);return}}Xh(e,t,c,n,i,o,y,S,C)}function w5(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var o=n[i],c=o.getSnapshot;o=o.value;try{if(!X0(c(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hn(e,t,n,i){t&=~tc,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-ft(o),y=1<<c;i[c]=-1,o&=~y}n!==0&&Hi(e,n,t)}function _u(){return(it&6)===0?(hi(0),!1):!0}function ic(){if(Ze!==null){if(ht===0)var e=Ze.return;else e=Ze,Qa=ml=null,wo(e),Jl=null,Fr=0,e=Ze;for(;e!==null;)hh(e.alternate,e),e=e.return;Ze=null}}function ir(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Y5(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),nn=0,ic(),yt=e,Ze=n=Za(e.current,null),Qe=t,ht=0,K0=null,Nn=!1,nr=za(e,t),ec=!1,lr=F0=tc=Tl=Bn=Bt=0,L0=ci=null,ac=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-ft(i),c=1<<o;t|=e[o],i&=~c}return an=t,Wi(),n}function Lh(e,t){qe=null,G.H=ai,t===Il||t===iu?(t=Wf(),ht=3):t===oo?(t=Wf(),ht=4):ht=t===Ho?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,K0=t,Ze===null&&(Bt=1,xu(e,ua(t,e.current)))}function qh(){var e=V0.current;return e===null?!0:(Qe&4194048)===Qe?fa===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?e===fa:!1}function Hh(){var e=G.H;return G.H=ai,e===null?ai:e}function Uh(){var e=G.A;return G.A=x5,e}function Ru(){Bt=4,Nn||(Qe&4194048)!==Qe&&V0.current!==null||(nr=!0),(Bn&134217727)===0&&(Tl&134217727)===0||yt===null||Hn(yt,Qe,F0,!1)}function uc(e,t,n){var i=it;it|=2;var o=Hh(),c=Uh();(yt!==e||Qe!==t)&&(Du=null,ir(e,t)),t=!1;var y=Bt;e:do try{if(ht!==0&&Ze!==null){var S=Ze,C=K0;switch(ht){case 8:ic(),y=6;break e;case 3:case 2:case 9:case 6:V0.current===null&&(t=!0);var H=ht;if(ht=0,K0=null,ur(e,S,C,H),n&&nr){y=0;break e}break;default:H=ht,ht=0,K0=null,ur(e,S,C,H)}}T5(),y=Bt;break}catch(V){Lh(e,V)}while(!0);return t&&e.shellSuspendCounter++,Qa=ml=null,it=i,G.H=o,G.A=c,Ze===null&&(yt=null,Qe=0,Wi()),y}function T5(){for(;Ze!==null;)jh(Ze)}function A5(e,t){var n=it;it|=2;var i=Hh(),o=Uh();yt!==e||Qe!==t?(Du=null,Cu=ct()+500,ir(e,t)):nr=za(e,t);e:do try{if(ht!==0&&Ze!==null){t=Ze;var c=K0;t:switch(ht){case 1:ht=0,K0=null,ur(e,t,c,1);break;case 2:case 9:if(Jf(c)){ht=0,K0=null,Gh(t);break}t=function(){ht!==2&&ht!==9||yt!==e||(ht=7),Oa(e)},c.then(t,t);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:Jf(c)?(ht=0,K0=null,Gh(t)):(ht=0,K0=null,ur(e,t,c,7));break;case 5:var y=null;switch(Ze.tag){case 26:y=Ze.memoizedState;case 5:case 27:var S=Ze;if(y?E2(y):S.stateNode.complete){ht=0,K0=null;var C=S.sibling;if(C!==null)Ze=C;else{var H=S.return;H!==null?(Ze=H,Ou(H)):Ze=null}break t}}ht=0,K0=null,ur(e,t,c,5);break;case 6:ht=0,K0=null,ur(e,t,c,6);break;case 8:ic(),Bt=6;break e;default:throw Error(u(462))}}z5();break}catch(V){Lh(e,V)}while(!0);return Qa=ml=null,G.H=i,G.A=o,it=n,Ze!==null?0:(yt=null,Qe=0,Wi(),Bt)}function z5(){for(;Ze!==null&&!vn();)jh(Ze)}function jh(e){var t=ch(e.alternate,e,an);e.memoizedProps=e.pendingProps,t===null?Ou(e):Ze=t}function Gh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=lh(n,t,t.pendingProps,t.type,void 0,Qe);break;case 11:t=lh(n,t,t.pendingProps,t.type.render,t.ref,Qe);break;case 5:wo(t);default:hh(n,t),t=Ze=Uf(t,an),t=ch(n,t,an)}e.memoizedProps=e.pendingProps,t===null?Ou(e):Ze=t}function ur(e,t,n,i){Qa=ml=null,wo(t),Jl=null,Fr=0;var o=t.return;try{if(d5(e,o,t,n,Qe)){Bt=1,xu(e,ua(n,e.current)),Ze=null;return}}catch(c){if(o!==null)throw Ze=o,c;Bt=1,xu(e,ua(n,e.current)),Ze=null;return}t.flags&32768?($e||i===1?e=!0:nr||(Qe&536870912)!==0?e=!1:(Nn=e=!0,(i===2||i===9||i===3||i===6)&&(i=V0.current,i!==null&&i.tag===13&&(i.flags|=16384))),Yh(t,e)):Ou(t)}function Ou(e){var t=e;do{if((t.flags&32768)!==0){Yh(t,Nn);return}e=t.return;var n=v5(t.alternate,t,an);if(n!==null){Ze=n;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);Bt===0&&(Bt=5)}function Yh(e,t){do{var n=g5(e.alternate,e);if(n!==null){n.flags&=32767,Ze=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ze=e;return}Ze=e=n}while(e!==null);Bt=6,Ze=null}function Xh(e,t,n,i,o,c,y,S,C){e.cancelPendingCommit=null;do Nu();while($t!==0);if((it&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Fs,Ar(e,n,c,y,S,C),e===yt&&(Ze=yt=null,Qe=0),rr=t,qn=e,nn=n,nc=c,lc=o,Rh=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,C5(g0,function(){return Fh(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=G.T,G.T=null,o=te.p,te.p=2,y=it,it|=4;try{y5(e,t,n)}finally{it=y,te.p=o,G.T=i}}$t=1,Zh(),Vh(),Qh()}}function Zh(){if($t===1){$t=0;var e=qn,t=rr,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=G.T,G.T=null;var i=te.p;te.p=2;var o=it;it|=4;try{Ah(t,e);var c=bc,y=Df(e.containerInfo),S=c.focusedElem,C=c.selectionRange;if(y!==S&&S&&S.ownerDocument&&Cf(S.ownerDocument.documentElement,S)){if(C!==null&&Xs(S)){var H=C.start,V=C.end;if(V===void 0&&(V=H),"selectionStart"in S)S.selectionStart=H,S.selectionEnd=Math.min(V,S.value.length);else{var K=S.ownerDocument||document,j=K&&K.defaultView||window;if(j.getSelection){var Y=j.getSelection(),Se=S.textContent.length,De=Math.min(C.start,Se),gt=C.end===void 0?De:Math.min(C.end,Se);!Y.extend&&De>gt&&(y=gt,gt=De,De=y);var B=Mf(S,De),_=Mf(S,gt);if(B&&_&&(Y.rangeCount!==1||Y.anchorNode!==B.node||Y.anchorOffset!==B.offset||Y.focusNode!==_.node||Y.focusOffset!==_.offset)){var q=K.createRange();q.setStart(B.node,B.offset),Y.removeAllRanges(),De>gt?(Y.addRange(q),Y.extend(_.node,_.offset)):(q.setEnd(_.node,_.offset),Y.addRange(q))}}}}for(K=[],Y=S;Y=Y.parentNode;)Y.nodeType===1&&K.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<K.length;S++){var Q=K[S];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Qu=!!yc,bc=yc=null}finally{it=o,te.p=i,G.T=n}}e.current=t,$t=2}}function Vh(){if($t===2){$t=0;var e=qn,t=rr,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=G.T,G.T=null;var i=te.p;te.p=2;var o=it;it|=4;try{bh(e,t.alternate,t)}finally{it=o,te.p=i,G.T=n}}$t=3}}function Qh(){if($t===4||$t===3){$t=0,d0();var e=qn,t=rr,n=nn,i=Rh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$t=5:($t=0,rr=qn=null,Kh(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Ln=null),rl(n),t=t.stateNode,Xe&&typeof Xe.onCommitFiberRoot=="function")try{Xe.onCommitFiberRoot(Je,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=G.T,o=te.p,te.p=2,G.T=null;try{for(var c=e.onRecoverableError,y=0;y<i.length;y++){var S=i[y];c(S.value,{componentStack:S.stack})}}finally{G.T=t,te.p=o}}(nn&3)!==0&&Nu(),Oa(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===rc?fi++:(fi=0,rc=e):fi=0,hi(0)}}function Kh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Qr(t)))}function Nu(){return Zh(),Vh(),Qh(),Fh()}function Fh(){if($t!==5)return!1;var e=qn,t=nc;nc=0;var n=rl(nn),i=G.T,o=te.p;try{te.p=32>n?32:n,G.T=null,n=lc,lc=null;var c=qn,y=nn;if($t=0,rr=qn=null,nn=0,(it&6)!==0)throw Error(u(331));var S=it;if(it|=4,Ch(c.current),Eh(c,c.current,y,n),it=S,hi(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot=="function")try{Xe.onPostCommitFiberRoot(Je,c)}catch{}return!0}finally{te.p=o,G.T=i,Kh(e,t)}}function Ih(e,t,n){t=ua(n,t),t=qo(e.stateNode,t,2),e=Dn(e,t,2),e!==null&&(Ga(e,2),Oa(e))}function dt(e,t,n){if(e.tag===3)Ih(e,e,n);else for(;t!==null;){if(t.tag===3){Ih(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ln===null||!Ln.has(i))){e=ua(n,e),n=J4(2),i=Dn(t,n,2),i!==null&&($4(n,i,t,e),Ga(i,2),Oa(i));break}}t=t.return}}function sc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new S5;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(n)||(ec=!0,o.add(n),e=E5.bind(null,e,t,n),t.then(e,e))}function E5(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,yt===e&&(Qe&n)===n&&(Bt===4||Bt===3&&(Qe&62914560)===Qe&&300>ct()-Mu?(it&2)===0&&ir(e,0):tc|=n,lr===Qe&&(lr=0)),Oa(e)}function Jh(e,t){t===0&&(t=G0()),e=fl(e,t),e!==null&&(Ga(e,t),Oa(e))}function k5(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jh(e,n)}function M5(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),Jh(e,n)}function C5(e,t){return r0(e,t)}var Bu=null,sr=null,oc=!1,Lu=!1,cc=!1,Un=0;function Oa(e){e!==sr&&e.next===null&&(sr===null?Bu=sr=e:sr=sr.next=e),Lu=!0,oc||(oc=!0,_5())}function hi(e,t){if(!cc&&Lu){cc=!0;do for(var n=!1,i=Bu;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var y=i.suspendedLanes,S=i.pingedLanes;c=(1<<31-ft(42|e)+1)-1,c&=o&~(y&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,e2(i,c))}else c=Qe,c=ll(i,i===yt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||za(i,c)||(n=!0,e2(i,c));i=i.next}while(n);cc=!1}}function D5(){$h()}function $h(){Lu=oc=!1;var e=0;Un!==0&&G5()&&(e=Un);for(var t=ct(),n=null,i=Bu;i!==null;){var o=i.next,c=Wh(i,t);c===0?(i.next=null,n===null?Bu=o:n.next=o,o===null&&(sr=n)):(n=i,(e!==0||(c&3)!==0)&&(Lu=!0)),i=o}$t!==0&&$t!==5||hi(e),Un!==0&&(Un=0)}function Wh(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var y=31-ft(c),S=1<<y,C=o[y];C===-1?((S&n)===0||(S&i)!==0)&&(o[y]=_l(S,t)):C<=t&&(e.expiredLanes|=S),c&=~S}if(t=yt,n=Qe,n=ll(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(ht===2||ht===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&va(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||za(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&va(i),rl(n)){case 2:case 8:n=la;break;case 32:n=g0;break;case 268435456:n=ga;break;default:n=g0}return i=Ph.bind(null,e),n=r0(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&va(i),e.callbackPriority=2,e.callbackNode=null,2}function Ph(e,t){if($t!==0&&$t!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Nu()&&e.callbackNode!==n)return null;var i=Qe;return i=ll(e,e===yt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Nh(e,i,t),Wh(e,ct()),e.callbackNode!=null&&e.callbackNode===n?Ph.bind(null,e):null)}function e2(e,t){if(Nu())return null;Nh(e,t,!0)}function _5(){X5(function(){(it&6)!==0?r0(na,D5):$h()})}function fc(){if(Un===0){var e=Kl;e===0&&(e=Aa,Aa<<=1,(Aa&261888)===0&&(Aa=256)),Un=e}return Un}function t2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:m0(""+e)}function a2(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function R5(e,t,n,i,o){if(t==="submit"&&n&&n.stateNode===o){var c=t2((o[Ye]||null).action),y=i.submitter;y&&(t=(t=y[Ye]||null)?t2(t.formAction):y.getAttribute("formAction"),t!==null&&(c=t,y=null));var S=new Fi("action","action",null,i,o);e.push({event:S,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Un!==0){var C=y?a2(o,y):new FormData(o);_o(n,{pending:!0,data:C,method:o.method,action:c},null,C)}}else typeof c=="function"&&(S.preventDefault(),C=y?a2(o,y):new FormData(o),_o(n,{pending:!0,data:C,method:o.method,action:c},c,C))},currentTarget:o}]})}}for(var hc=0;hc<Ks.length;hc++){var dc=Ks[hc],O5=dc.toLowerCase(),N5=dc[0].toUpperCase()+dc.slice(1);Sa(O5,"on"+N5)}Sa(Of,"onAnimationEnd"),Sa(Nf,"onAnimationIteration"),Sa(Bf,"onAnimationStart"),Sa("dblclick","onDoubleClick"),Sa("focusin","onFocus"),Sa("focusout","onBlur"),Sa(J3,"onTransitionRun"),Sa($3,"onTransitionStart"),Sa(W3,"onTransitionCancel"),Sa(Lf,"onTransitionEnd"),Sn("onMouseEnter",["mouseout","mouseover"]),Sn("onMouseLeave",["mouseout","mouseover"]),Sn("onPointerEnter",["pointerout","pointerover"]),Sn("onPointerLeave",["pointerout","pointerover"]),ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var di="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(" "),B5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(di));function n2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var y=i.length-1;0<=y;y--){var S=i[y],C=S.instance,H=S.currentTarget;if(S=S.listener,C!==c&&o.isPropagationStopped())break e;c=S,o.currentTarget=H;try{c(o)}catch(V){$i(V)}o.currentTarget=null,c=C}else for(y=0;y<i.length;y++){if(S=i[y],C=S.instance,H=S.currentTarget,S=S.listener,C!==c&&o.isPropagationStopped())break e;c=S,o.currentTarget=H;try{c(o)}catch(V){$i(V)}o.currentTarget=null,c=C}}}}function Ve(e,t){var n=t[Er];n===void 0&&(n=t[Er]=new Set);var i=e+"__bubble";n.has(i)||(l2(t,e,2,!1),n.add(i))}function mc(e,t,n){var i=0;t&&(i|=4),l2(n,e,i,t)}var qu="_reactListening"+Math.random().toString(36).slice(2);function pc(e){if(!e[qu]){e[qu]=!0,Ma.forEach(function(n){n!=="selectionchange"&&(B5.has(n)||mc(n,!1,e),mc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qu]||(t[qu]=!0,mc("selectionchange",!1,t))}}function l2(e,t,n,i){switch(O2(t)){case 2:var o=o6;break;case 8:o=c6;break;default:o=Dc}n=o.bind(null,t,n,e),o=void 0,!Ns||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function vc(e,t,n,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var S=i.stateNode.containerInfo;if(S===o)break;if(y===4)for(y=i.return;y!==null;){var C=y.tag;if((C===3||C===4)&&y.stateNode.containerInfo===o)return;y=y.return}for(;S!==null;){if(y=bn(S),y===null)return;if(C=y.tag,C===5||C===6||C===26||C===27){i=c=y;continue e}S=S.parentNode}}i=i.return}of(function(){var H=c,V=Jt(n),K=[];e:{var j=qf.get(e);if(j!==void 0){var Y=Fi,Se=e;switch(e){case"keypress":if(Qi(n)===0)break e;case"keydown":case"keyup":Y=M3;break;case"focusin":Se="focus",Y=Hs;break;case"focusout":Se="blur",Y=Hs;break;case"beforeblur":case"afterblur":Y=Hs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=v3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=_3;break;case Of:case Nf:case Bf:Y=b3;break;case Lf:Y=O3;break;case"scroll":case"scrollend":Y=m3;break;case"wheel":Y=B3;break;case"copy":case"cut":case"paste":Y=S3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=mf;break;case"toggle":case"beforetoggle":Y=q3}var De=(t&4)!==0,gt=!De&&(e==="scroll"||e==="scrollend"),B=De?j!==null?j+"Capture":null:j;De=[];for(var _=H,q;_!==null;){var Q=_;if(q=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||q===null||B===null||(Q=Br(_,B),Q!=null&&De.push(mi(_,Q,q))),gt)break;_=_.return}0<De.length&&(j=new Y(j,Se,null,n,V),K.push({event:j,listeners:De}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",j&&n!==S0&&(Se=n.relatedTarget||n.fromElement)&&(bn(Se)||Se[Y0]))break e;if((Y||j)&&(j=V.window===V?V:(j=V.ownerDocument)?j.defaultView||j.parentWindow:window,Y?(Se=n.relatedTarget||n.toElement,Y=H,Se=Se?bn(Se):null,Se!==null&&(gt=f(Se),De=Se.tag,Se!==gt||De!==5&&De!==27&&De!==6)&&(Se=null)):(Y=null,Se=H),Y!==Se)){if(De=hf,Q="onMouseLeave",B="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(De=mf,Q="onPointerLeave",B="onPointerEnter",_="pointer"),gt=Y==null?j:il(Y),q=Se==null?j:il(Se),j=new De(Q,_+"leave",Y,n,V),j.target=gt,j.relatedTarget=q,Q=null,bn(V)===H&&(De=new De(B,_+"enter",Se,n,V),De.target=q,De.relatedTarget=gt,Q=De),gt=Q,Y&&Se)t:{for(De=L5,B=Y,_=Se,q=0,Q=B;Q;Q=De(Q))q++;Q=0;for(var Ee=_;Ee;Ee=De(Ee))Q++;for(;0<q-Q;)B=De(B),q--;for(;0<Q-q;)_=De(_),Q--;for(;q--;){if(B===_||_!==null&&B===_.alternate){De=B;break t}B=De(B),_=De(_)}De=null}else De=null;Y!==null&&r2(K,j,Y,De,!1),Se!==null&&gt!==null&&r2(K,gt,Se,De,!0)}}e:{if(j=H?il(H):window,Y=j.nodeName&&j.nodeName.toLowerCase(),Y==="select"||Y==="input"&&j.type==="file")var nt=wf;else if(xf(j))if(Tf)nt=K3;else{nt=V3;var Ae=Z3}else Y=j.nodeName,!Y||Y.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?H&&_e(H.elementType)&&(nt=wf):nt=Q3;if(nt&&(nt=nt(e,H))){Sf(K,nt,n,V);break e}Ae&&Ae(e,j,H),e==="focusout"&&H&&j.type==="number"&&H.memoizedProps.value!=null&&wn(j,"number",j.value)}switch(Ae=H?il(H):window,e){case"focusin":(xf(Ae)||Ae.contentEditable==="true")&&(Ul=Ae,Zs=H,Xr=null);break;case"focusout":Xr=Zs=Ul=null;break;case"mousedown":Vs=!0;break;case"contextmenu":case"mouseup":case"dragend":Vs=!1,_f(K,n,V);break;case"selectionchange":if(I3)break;case"keydown":case"keyup":_f(K,n,V)}var Ue;if(js)e:{switch(e){case"compositionstart":var Ke="onCompositionStart";break e;case"compositionend":Ke="onCompositionEnd";break e;case"compositionupdate":Ke="onCompositionUpdate";break e}Ke=void 0}else Hl?yf(e,n)&&(Ke="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ke="onCompositionStart");Ke&&(pf&&n.locale!=="ko"&&(Hl||Ke!=="onCompositionStart"?Ke==="onCompositionEnd"&&Hl&&(Ue=cf()):(Tn=V,Bs="value"in Tn?Tn.value:Tn.textContent,Hl=!0)),Ae=Hu(H,Ke),0<Ae.length&&(Ke=new df(Ke,e,null,n,V),K.push({event:Ke,listeners:Ae}),Ue?Ke.data=Ue:(Ue=bf(n),Ue!==null&&(Ke.data=Ue)))),(Ue=U3?j3(e,n):G3(e,n))&&(Ke=Hu(H,"onBeforeInput"),0<Ke.length&&(Ae=new df("onBeforeInput","beforeinput",null,n,V),K.push({event:Ae,listeners:Ke}),Ae.data=Ue)),R5(K,e,H,n,V)}n2(K,t)})}function mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hu(e,t){for(var n=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Br(e,n),o!=null&&i.unshift(mi(e,o,c)),o=Br(e,t),o!=null&&i.push(mi(e,o,c))),e.tag===3)return i;e=e.return}return[]}function L5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function r2(e,t,n,i,o){for(var c=t._reactName,y=[];n!==null&&n!==i;){var S=n,C=S.alternate,H=S.stateNode;if(S=S.tag,C!==null&&C===i)break;S!==5&&S!==26&&S!==27||H===null||(C=H,o?(H=Br(n,c),H!=null&&y.unshift(mi(n,H,C))):o||(H=Br(n,c),H!=null&&y.push(mi(n,H,C)))),n=n.return}y.length!==0&&e.push({event:t,listeners:y})}var q5=/\r\n?/g,H5=/\u0000|\uFFFD/g;function i2(e){return(typeof e=="string"?e:""+e).replace(q5,`
`).replace(H5,"")}function u2(e,t){return t=i2(t),i2(e)===t}function vt(e,t,n,i,o,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||L(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&L(e,""+i);break;case"className":xa(e,"class",i);break;case"tabIndex":xa(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":xa(e,n,i);break;case"style":Me(e,i,c);break;case"data":if(t!=="object"){xa(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=m0(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&vt(e,t,"name",o.name,o,null),vt(e,t,"formEncType",o.formEncType,o,null),vt(e,t,"formMethod",o.formMethod,o,null),vt(e,t,"formTarget",o.formTarget,o,null)):(vt(e,t,"encType",o.encType,o,null),vt(e,t,"method",o.method,o,null),vt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=m0(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Et);break;case"onScroll":i!=null&&Ve("scroll",e);break;case"onScrollEnd":i!=null&&Ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=m0(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Ve("beforetoggle",e),Ve("toggle",e),Ya(e,"popover",i);break;case"xlinkActuate":x0(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":x0(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":x0(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":x0(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":x0(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":x0(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":x0(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":x0(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":x0(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ya(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=zt.get(n)||n,Ya(e,n,i))}}function gc(e,t,n,i,o,c){switch(n){case"style":Me(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(n=i.__html,n!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof i=="string"?L(e,i):(typeof i=="number"||typeof i=="bigint")&&L(e,""+i);break;case"onScroll":i!=null&&Ve("scroll",e);break;case"onScrollEnd":i!=null&&Ve("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gi.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),c=e[Ye]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,o);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ya(e,n,i)}}}function c0(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",e),Ve("load",e);var i=!1,o=!1,c;for(c in n)if(n.hasOwnProperty(c)){var y=n[c];if(y!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:vt(e,t,c,y,n,null)}}o&&vt(e,t,"srcSet",n.srcSet,n,null),i&&vt(e,t,"src",n.src,n,null);return;case"input":Ve("invalid",e);var S=c=y=o=null,C=null,H=null;for(i in n)if(n.hasOwnProperty(i)){var V=n[i];if(V!=null)switch(i){case"name":o=V;break;case"type":y=V;break;case"checked":C=V;break;case"defaultChecked":H=V;break;case"value":c=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,t));break;default:vt(e,t,i,V,n,null)}}Nr(e,c,S,C,H,y,o,!1);return;case"select":Ve("invalid",e),i=y=c=null;for(o in n)if(n.hasOwnProperty(o)&&(S=n[o],S!=null))switch(o){case"value":c=S;break;case"defaultValue":y=S;break;case"multiple":i=S;default:vt(e,t,o,S,n,null)}t=c,n=y,e.multiple=!!i,t!=null?Ca(e,!!i,t,!1):n!=null&&Ca(e,!!i,n,!0);return;case"textarea":Ve("invalid",e),c=o=i=null;for(y in n)if(n.hasOwnProperty(y)&&(S=n[y],S!=null))switch(y){case"value":i=S;break;case"defaultValue":o=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:vt(e,t,y,S,n,null)}z(e,i,o,c);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(i=n[C],i!=null))switch(C){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:vt(e,t,C,i,n,null)}return;case"dialog":Ve("beforetoggle",e),Ve("toggle",e),Ve("cancel",e),Ve("close",e);break;case"iframe":case"object":Ve("load",e);break;case"video":case"audio":for(i=0;i<di.length;i++)Ve(di[i],e);break;case"image":Ve("error",e),Ve("load",e);break;case"details":Ve("toggle",e);break;case"embed":case"source":case"link":Ve("error",e),Ve("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in n)if(n.hasOwnProperty(H)&&(i=n[H],i!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:vt(e,t,H,i,n,null)}return;default:if(_e(t)){for(V in n)n.hasOwnProperty(V)&&(i=n[V],i!==void 0&&gc(e,t,V,i,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(i=n[S],i!=null&&vt(e,t,S,i,n,null))}function U5(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,y=null,S=null,C=null,H=null,V=null;for(Y in n){var K=n[Y];if(n.hasOwnProperty(Y)&&K!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":C=K;default:i.hasOwnProperty(Y)||vt(e,t,Y,null,i,K)}}for(var j in i){var Y=i[j];if(K=n[j],i.hasOwnProperty(j)&&(Y!=null||K!=null))switch(j){case"type":c=Y;break;case"name":o=Y;break;case"checked":H=Y;break;case"defaultChecked":V=Y;break;case"value":y=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,t));break;default:Y!==K&&vt(e,t,j,Y,i,K)}}Or(e,y,S,C,H,V,c,o);return;case"select":Y=y=S=j=null;for(c in n)if(C=n[c],n.hasOwnProperty(c)&&C!=null)switch(c){case"value":break;case"multiple":Y=C;default:i.hasOwnProperty(c)||vt(e,t,c,null,i,C)}for(o in i)if(c=i[o],C=n[o],i.hasOwnProperty(o)&&(c!=null||C!=null))switch(o){case"value":j=c;break;case"defaultValue":S=c;break;case"multiple":y=c;default:c!==C&&vt(e,t,o,c,i,C)}t=S,n=y,i=Y,j!=null?Ca(e,!!n,j,!1):!!i!=!!n&&(t!=null?Ca(e,!!n,t,!0):Ca(e,!!n,n?[]:"",!1));return;case"textarea":Y=j=null;for(S in n)if(o=n[S],n.hasOwnProperty(S)&&o!=null&&!i.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:vt(e,t,S,null,i,o)}for(y in i)if(o=i[y],c=n[y],i.hasOwnProperty(y)&&(o!=null||c!=null))switch(y){case"value":j=o;break;case"defaultValue":Y=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==c&&vt(e,t,y,o,i,c)}ue(e,j,Y);return;case"option":for(var Se in n)if(j=n[Se],n.hasOwnProperty(Se)&&j!=null&&!i.hasOwnProperty(Se))switch(Se){case"selected":e.selected=!1;break;default:vt(e,t,Se,null,i,j)}for(C in i)if(j=i[C],Y=n[C],i.hasOwnProperty(C)&&j!==Y&&(j!=null||Y!=null))switch(C){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:vt(e,t,C,j,i,Y)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var De in n)j=n[De],n.hasOwnProperty(De)&&j!=null&&!i.hasOwnProperty(De)&&vt(e,t,De,null,i,j);for(H in i)if(j=i[H],Y=n[H],i.hasOwnProperty(H)&&j!==Y&&(j!=null||Y!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(u(137,t));break;default:vt(e,t,H,j,i,Y)}return;default:if(_e(t)){for(var gt in n)j=n[gt],n.hasOwnProperty(gt)&&j!==void 0&&!i.hasOwnProperty(gt)&&gc(e,t,gt,void 0,i,j);for(V in i)j=i[V],Y=n[V],!i.hasOwnProperty(V)||j===Y||j===void 0&&Y===void 0||gc(e,t,V,j,i,Y);return}}for(var B in n)j=n[B],n.hasOwnProperty(B)&&j!=null&&!i.hasOwnProperty(B)&&vt(e,t,B,null,i,j);for(K in i)j=i[K],Y=n[K],!i.hasOwnProperty(K)||j===Y||j==null&&Y==null||vt(e,t,K,j,i,Y)}function s2(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function j5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var o=n[i],c=o.transferSize,y=o.initiatorType,S=o.duration;if(c&&S&&s2(y)){for(y=0,S=o.responseEnd,i+=1;i<n.length;i++){var C=n[i],H=C.startTime;if(H>S)break;var V=C.transferSize,K=C.initiatorType;V&&s2(K)&&(C=C.responseEnd,y+=V*(C<S?1:(S-H)/(C-H)))}if(--i,t+=8*(c+y)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var yc=null,bc=null;function Uu(e){return e.nodeType===9?e:e.ownerDocument}function o2(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function c2(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function xc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Sc=null;function G5(){var e=window.event;return e&&e.type==="popstate"?e===Sc?!1:(Sc=e,!0):(Sc=null,!1)}var f2=typeof setTimeout=="function"?setTimeout:void 0,Y5=typeof clearTimeout=="function"?clearTimeout:void 0,h2=typeof Promise=="function"?Promise:void 0,X5=typeof queueMicrotask=="function"?queueMicrotask:typeof h2<"u"?function(e){return h2.resolve(null).then(e).catch(Z5)}:f2;function Z5(e){setTimeout(function(){throw e})}function jn(e){return e==="head"}function d2(e,t){var n=t,i=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(o),hr(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")pi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,pi(n);for(var c=n.firstChild;c;){var y=c.nextSibling,S=c.nodeName;c[yn]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=y}}else n==="body"&&pi(e.ownerDocument.body);n=o}while(n);hr(t)}function m2(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function wc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":wc(n),Cr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function V5(e,t,n,i){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[yn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ha(e.nextSibling),e===null)break}return null}function Q5(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ha(e.nextSibling),e===null))return null;return e}function p2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ha(e.nextSibling),e===null))return null;return e}function Tc(e){return e.data==="$?"||e.data==="$~"}function Ac(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function K5(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function ha(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zc=null;function v2(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return ha(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function g2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function y2(e,t,n){switch(t=Uu(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function pi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cr(e)}var da=new Map,b2=new Set;function ju(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ln=te.d;te.d={f:F5,r:I5,D:J5,C:$5,L:W5,m:P5,X:t6,S:e6,M:a6};function F5(){var e=ln.f(),t=_u();return e||t}function I5(e){var t=xn(e);t!==null&&t.tag===5&&t.type==="form"?L4(t):ln.r(e)}var or=typeof document>"u"?null:document;function x2(e,t,n){var i=or;if(i&&typeof t=="string"&&t){var o=_0(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),b2.has(o)||(b2.add(o),e={rel:e,crossOrigin:n,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),c0(t,"link",e),Dt(t),i.head.appendChild(t)))}}function J5(e){ln.D(e),x2("dns-prefetch",e,null)}function $5(e,t){ln.C(e,t),x2("preconnect",e,t)}function W5(e,t,n){ln.L(e,t,n);var i=or;if(i&&e&&t){var o='link[rel="preload"][as="'+_0(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+_0(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+_0(n.imageSizes)+'"]')):o+='[href="'+_0(e)+'"]';var c=o;switch(t){case"style":c=cr(e);break;case"script":c=fr(e)}da.has(c)||(e=T({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),da.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(vi(c))||t==="script"&&i.querySelector(gi(c))||(t=i.createElement("link"),c0(t,"link",e),Dt(t),i.head.appendChild(t)))}}function P5(e,t){ln.m(e,t);var n=or;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+_0(i)+'"][href="'+_0(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=fr(e)}if(!da.has(c)&&(e=T({rel:"modulepreload",href:e},t),da.set(c,e),n.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gi(c)))return}i=n.createElement("link"),c0(i,"link",e),Dt(i),n.head.appendChild(i)}}}function e6(e,t,n){ln.S(e,t,n);var i=or;if(i&&e){var o=b0(i).hoistableStyles,c=cr(e);t=t||"default";var y=o.get(c);if(!y){var S={loading:0,preload:null};if(y=i.querySelector(vi(c)))S.loading=5;else{e=T({rel:"stylesheet",href:e,"data-precedence":t},n),(n=da.get(c))&&Ec(e,n);var C=y=i.createElement("link");Dt(C),c0(C,"link",e),C._p=new Promise(function(H,V){C.onload=H,C.onerror=V}),C.addEventListener("load",function(){S.loading|=1}),C.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Gu(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:S},o.set(c,y)}}}function t6(e,t){ln.X(e,t);var n=or;if(n&&e){var i=b0(n).hoistableScripts,o=fr(e),c=i.get(o);c||(c=n.querySelector(gi(o)),c||(e=T({src:e,async:!0},t),(t=da.get(o))&&kc(e,t),c=n.createElement("script"),Dt(c),c0(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function a6(e,t){ln.M(e,t);var n=or;if(n&&e){var i=b0(n).hoistableScripts,o=fr(e),c=i.get(o);c||(c=n.querySelector(gi(o)),c||(e=T({src:e,async:!0,type:"module"},t),(t=da.get(o))&&kc(e,t),c=n.createElement("script"),Dt(c),c0(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function S2(e,t,n,i){var o=(o=Oe.current)?ju(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=cr(n.href),n=b0(o).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=cr(n.href);var c=b0(o).hoistableStyles,y=c.get(e);if(y||(o=o.ownerDocument||o,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,y),(c=o.querySelector(vi(e)))&&!c._p&&(y.instance=c,y.state.loading=5),da.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},da.set(e,n),c||n6(o,e,n,y.state))),t&&i===null)throw Error(u(528,""));return y}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=fr(n),n=b0(o).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function cr(e){return'href="'+_0(e)+'"'}function vi(e){return'link[rel="stylesheet"]['+e+"]"}function w2(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function n6(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),c0(t,"link",n),Dt(t),e.head.appendChild(t))}function fr(e){return'[src="'+_0(e)+'"]'}function gi(e){return"script[async]"+e}function T2(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+_0(n.href)+'"]');if(i)return t.instance=i,Dt(i),i;var o=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Dt(i),c0(i,"style",o),Gu(i,n.precedence,e),t.instance=i;case"stylesheet":o=cr(n.href);var c=e.querySelector(vi(o));if(c)return t.state.loading|=4,t.instance=c,Dt(c),c;i=w2(n),(o=da.get(o))&&Ec(i,o),c=(e.ownerDocument||e).createElement("link"),Dt(c);var y=c;return y._p=new Promise(function(S,C){y.onload=S,y.onerror=C}),c0(c,"link",i),t.state.loading|=4,Gu(c,n.precedence,e),t.instance=c;case"script":return c=fr(n.src),(o=e.querySelector(gi(c)))?(t.instance=o,Dt(o),o):(i=n,(o=da.get(c))&&(i=T({},n),kc(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),Dt(o),c0(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Gu(i,n.precedence,e));return t.instance}function Gu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,y=0;y<i.length;y++){var S=i[y];if(S.dataset.precedence===t)c=S;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yu=null;function A2(e,t,n){if(Yu===null){var i=new Map,o=Yu=new Map;o.set(n,i)}else o=Yu,i=o.get(n),i||(i=new Map,o.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var c=n[o];if(!(c[yn]||c[It]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var y=c.getAttribute(t)||"";y=e+y;var S=i.get(y);S?S.push(c):i.set(y,[c])}}return i}function z2(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function l6(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function E2(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function r6(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=cr(i.href),c=t.querySelector(vi(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Xu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,Dt(c);return}c=t.ownerDocument||t,i=w2(i),(o=da.get(o))&&Ec(i,o),c=c.createElement("link"),Dt(c);var y=c;y._p=new Promise(function(S,C){y.onload=S,y.onerror=C}),c0(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Xu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Mc=0;function i6(e,t){return e.stylesheets&&e.count===0&&Vu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Mc===0&&(Mc=62500*j5());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Mc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zu=null;function Vu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zu=new Map,t.forEach(u6,e),Zu=null,Xu.call(e))}function u6(e,t){if(!(t.state.loading&4)){var n=Zu.get(e);if(n)var i=n.get(null);else{n=new Map,Zu.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var y=o[c];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(n.set(y.dataset.precedence,y),i=y)}i&&n.set(null,i)}o=t.instance,y=o.getAttribute("data-precedence"),c=n.get(y)||i,c===i&&n.set(null,o),n.set(y,o),this.count++,i=Xu.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var yi={$$typeof:oe,Provider:null,Consumer:null,_currentValue:ve,_currentValue2:ve,_threadCount:0};function s6(e,t,n,i,o,c,y,S,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ea(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ea(0),this.hiddenUpdates=Ea(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function k2(e,t,n,i,o,c,y,S,C,H,V,K){return e=new s6(e,t,n,y,C,H,V,K,S),t=1,c===!0&&(t|=24),c=Z0(3,null,null,t),e.current=c,c.stateNode=e,t=io(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},co(c),e}function M2(e){return e?(e=Yl,e):Yl}function C2(e,t,n,i,o,c){o=M2(o),i.context===null?i.context=o:i.pendingContext=o,i=Cn(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=Dn(e,i,t),n!==null&&(q0(n,e,t),Jr(n,e,t))}function D2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cc(e,t){D2(e,t),(e=e.alternate)&&D2(e,t)}function _2(e){if(e.tag===13||e.tag===31){var t=fl(e,67108864);t!==null&&q0(t,e,67108864),Cc(e,67108864)}}function R2(e){if(e.tag===13||e.tag===31){var t=I0();t=Ol(t);var n=fl(e,t);n!==null&&q0(n,e,t),Cc(e,t)}}var Qu=!0;function o6(e,t,n,i){var o=G.T;G.T=null;var c=te.p;try{te.p=2,Dc(e,t,n,i)}finally{te.p=c,G.T=o}}function c6(e,t,n,i){var o=G.T;G.T=null;var c=te.p;try{te.p=8,Dc(e,t,n,i)}finally{te.p=c,G.T=o}}function Dc(e,t,n,i){if(Qu){var o=_c(i);if(o===null)vc(e,t,i,Ku,n),N2(e,i);else if(h6(o,e,t,n,i))i.stopPropagation();else if(N2(e,i),t&4&&-1<f6.indexOf(e)){for(;o!==null;){var c=xn(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var y=ya(c.pendingLanes);if(y!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;y;){var C=1<<31-ft(y);S.entanglements[1]|=C,y&=~C}Oa(c),(it&6)===0&&(Cu=ct()+500,hi(0))}}break;case 31:case 13:S=fl(c,2),S!==null&&q0(S,c,2),_u(),Cc(c,2)}if(c=_c(i),c===null&&vc(e,t,i,Ku,n),c===o)break;o=c}o!==null&&i.stopPropagation()}else vc(e,t,i,null,n)}}function _c(e){return e=Jt(e),Rc(e)}var Ku=null;function Rc(e){if(Ku=null,e=bn(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ku=e,null}function O2(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(D0()){case na:return 2;case la:return 8;case g0:case ra:return 32;case ga:return 268435456;default:return 32}default:return 32}}var Oc=!1,Gn=null,Yn=null,Xn=null,bi=new Map,xi=new Map,Zn=[],f6="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".split(" ");function N2(e,t){switch(e){case"focusin":case"focusout":Gn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(t.pointerId)}}function Si(e,t,n,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=xn(t),t!==null&&_2(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function h6(e,t,n,i,o){switch(t){case"focusin":return Gn=Si(Gn,e,t,n,i,o),!0;case"dragenter":return Yn=Si(Yn,e,t,n,i,o),!0;case"mouseover":return Xn=Si(Xn,e,t,n,i,o),!0;case"pointerover":var c=o.pointerId;return bi.set(c,Si(bi.get(c)||null,e,t,n,i,o)),!0;case"gotpointercapture":return c=o.pointerId,xi.set(c,Si(xi.get(c)||null,e,t,n,i,o)),!0}return!1}function B2(e){var t=bn(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,gn(e.priority,function(){R2(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,gn(e.priority,function(){R2(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_c(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);S0=i,n.target.dispatchEvent(i),S0=null}else return t=xn(n),t!==null&&_2(t),e.blockedOn=n,!1;t.shift()}return!0}function L2(e,t,n){Fu(e)&&n.delete(t)}function d6(){Oc=!1,Gn!==null&&Fu(Gn)&&(Gn=null),Yn!==null&&Fu(Yn)&&(Yn=null),Xn!==null&&Fu(Xn)&&(Xn=null),bi.forEach(L2),xi.forEach(L2)}function Iu(e,t){e.blockedOn===t&&(e.blockedOn=null,Oc||(Oc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,d6)))}var Ju=null;function q2(e){Ju!==e&&(Ju=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Ju===e&&(Ju=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Rc(i||n)===null)continue;break}var c=xn(n);c!==null&&(e.splice(t,3),t-=3,_o(c,{pending:!0,data:o,method:n.method,action:i},i,o))}}))}function hr(e){function t(C){return Iu(C,e)}Gn!==null&&Iu(Gn,e),Yn!==null&&Iu(Yn,e),Xn!==null&&Iu(Xn,e),bi.forEach(t),xi.forEach(t);for(var n=0;n<Zn.length;n++){var i=Zn[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Zn.length&&(n=Zn[0],n.blockedOn===null);)B2(n),n.blockedOn===null&&Zn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var o=n[i],c=n[i+1],y=o[Ye]||null;if(typeof c=="function")y||q2(n);else if(y){var S=null;if(c&&c.hasAttribute("formAction")){if(o=c,y=c[Ye]||null)S=y.formAction;else if(Rc(o)!==null)continue}else S=y.action;typeof S=="function"?n[i+1]=S:(n.splice(i,3),i-=3),q2(n)}}}function H2(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(y){return o=y})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Nc(e){this._internalRoot=e}$u.prototype.render=Nc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,i=I0();C2(n,i,e,t,null,null)},$u.prototype.unmount=Nc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;C2(e.current,2,null,e,null,null),_u(),t[Y0]=null}};function $u(e){this._internalRoot=e}$u.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ui();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zn.length&&t!==0&&t<Zn[n].priority;n++);Zn.splice(n,0,e),n===0&&B2(e)}};var U2=a.version;if(U2!=="19.2.8")throw Error(u(527,U2,"19.2.8"));te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var m6={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wu.isDisabled&&Wu.supportsFiber)try{Je=Wu.inject(m6),Xe=Wu}catch{}}return Ti.createRoot=function(e,t){if(!s(e))throw Error(u(299));var n=!1,i="",o=Q4,c=K4,y=F4;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=k2(e,1,!1,null,null,n,i,null,o,c,y,H2),e[Y0]=t.current,pc(e),new Nc(t)},Ti.hydrateRoot=function(e,t,n){if(!s(e))throw Error(u(299));var i=!1,o="",c=Q4,y=K4,S=F4,C=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=k2(e,1,!0,t,n??null,i,o,C,c,y,S,H2),t.context=M2(null),n=t.current,i=I0(),i=Ol(i),o=Cn(i),o.callback=null,Dn(n,o,i),n=i,t.current.lanes=n,Ga(t,n),Oa(t),e[Y0]=t.current,pc(e),new $u(t)},Ti.version="19.2.8",Ti}var I2;function E6(){if(I2)return Lc.exports;I2=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(a){console.error(a)}}return r(),Lc.exports=z6(),Lc.exports}var k6=E6(),J=B1();async function M0(r,a={}){a.headers=a.headers||{};const l=await fetch(r,a);return l.status===401&&window.dispatchEvent(new CustomEvent("auth:unauthorized")),l}async function M6(){window.location.assign("/outpost.goauthentik.io/sign_out?rd=/")}async function C6(){return(await M0("/api/check-auth")).json()}async function D6(){return(await M0("/api/sessions")).json()}async function _6(r){return(await M0(`/api/sessions/${r}/messages`)).json()}async function R6(){return(await M0("/api/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"New Chat"})})).json()}async function O6(r){await M0(`/api/sessions/${r}`,{method:"DELETE"})}async function N6(r,a){await M0(`/api/sessions/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a})})}function B6(){const r=new Date,a=-r.getTimezoneOffset(),l=a>=0?"+":"-",u=s=>String(Math.abs(s)).padStart(2,"0");return r.getFullYear()+"-"+u(r.getMonth()+1)+"-"+u(r.getDate())+"T"+u(r.getHours())+":"+u(r.getMinutes())+":"+u(r.getSeconds())+l+u(Math.floor(Math.abs(a)/60))+":"+u(Math.abs(a)%60)}async function L6(r,a,l,u,s,f,d){const m={session_id:r,message:a,client_timestamp:B6()};f&&(m.research=!0),d&&(m.cpu=!0),l&&(m.image=l);const v=await M0("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)});if(v.status===503){const g=await v.json();throw new Error(g.error||"Server is busy")}return v.json()}async function nm(r){return(await fetch(`/api/status/${r}`)).json()}async function q6(){return(await fetch("/api/model-status")).json()}async function H6(r,a,l){await fetch("/api/location",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({latitude:r,longitude:a,task_id:l})})}async function U6(r){await fetch("/api/location",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({denied:!0,task_id:r})})}async function j6(r,a){return(await M0("/api/tts",{method:"POST",body:JSON.stringify({text:r,voice:void 0})})).json()}async function G6(r,a){return(await M0("/api/extract-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r,data:a})})).json()}async function Y6(r,a="jpg"){return(await M0("/api/upload-image",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:r,ext:a})})).json()}async function X6(){return(await M0("/api/tasks")).json()}async function Z6(r){return(await M0("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)})).json()}async function J2(r,a){return(await M0(`/api/tasks/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json()}async function V6(r){await M0(`/api/tasks/${r}`,{method:"DELETE"})}async function Q6(r,a){return(await M0("/api/shares",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:r,msg_index:a})})).json()}async function K6(r){return(await fetch(`/api/public/share/${encodeURIComponent(r)}`)).json()}function F6({modelStatus:r,modelTps:a,tokenEstimate:l,contextCompressed:u,rawTokenEstimate:s,maxContext:f,onToggleSidebar:d,username:m,onLogout:v,reminderCount:g,onToggleTasks:x}){const[T,A]=J.useState(!1),D=J.useRef(null);J.useEffect(()=>{function U(F){D.current&&!D.current.contains(F.target)&&A(!1)}return document.addEventListener("click",U),()=>document.removeEventListener("click",U)},[]);const R={chat_loaded:"Chat model ready",image_active:"Image generation active",loading:"Loading model...",unloading:"Unloading model...",unloaded:"No model loaded"};return O.jsxs("div",{id:"model-bar",children:[O.jsx("button",{id:"sidebar-toggle",onClick:d,children:"☰"}),O.jsx("span",{id:"model-dot",className:r}),O.jsx("span",{id:"model-label",children:R[r]||r}),a!=null&&O.jsx("span",{id:"model-tps",style:{marginLeft:12,fontSize:12,color:"#888"},children:a<5?O.jsxs("span",{style:{color:"#f87171"},children:["⚠ ",a.toFixed(1)," t/s"]}):O.jsxs(O.Fragment,{children:[a.toFixed(1)," t/s"]})}),O.jsxs("span",{id:"token-indicator",children:[O.jsxs("svg",{id:"context-donut",viewBox:"0 0 24 24",width:"18",height:"18",children:[O.jsx("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"rgba(255,255,255,0.1)",strokeWidth:"3"}),O.jsx("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:l/f*100>80?"#f87171":l/f*100>60?"#fbbf24":"#4ade80",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:Math.PI*16,strokeDashoffset:Math.PI*16*(1-Math.min(l/f*100,100)/100),transform:"rotate(-90 12 12)"})]}),l>0&&O.jsxs("span",{className:"token-text",children:[l>1e3?(l/1e3).toFixed(1)+"k":l," / ",f>1e3?(f/1e3).toFixed(0)+"k":f,u&&s>0&&O.jsxs("span",{className:"token-compressed",title:"Context compressed — older messages summarized",children:["(",s>1e3?(s/1e3).toFixed(1)+"k":s,")"]})]})]}),O.jsxs("div",{id:"user-menu",ref:D,children:[O.jsx("span",{id:"user-name",onClick:()=>A(U=>!U),children:m}),O.jsxs("div",{id:"user-dropdown",className:T?"open":"",children:[O.jsxs("button",{className:"task-menu-item",onClick:()=>{x(),A(!1)},title:"Tasks",children:[O.jsx("span",{children:"☰ Tasks"}),g>0&&O.jsx("span",{id:"reminder-badge",children:g})]}),O.jsx("button",{onClick:v,children:"Logout"})]})]})]})}function I6({sessions:r,currentSessionId:a,onSwitchSession:l,onNewChat:u,onRenameSession:s,onDeleteSession:f,onClose:d,open:m}){return O.jsxs(O.Fragment,{children:[O.jsx("div",{id:"sidebar-overlay",className:m?"open":"",onClick:d}),O.jsxs("div",{id:"sidebar",className:m?"open":"",children:[O.jsx("div",{id:"sidebar-header",children:O.jsx("button",{id:"new-chat-btn",onClick:u,children:"+ New Chat"})}),O.jsx("div",{id:"session-list",children:r.map(v=>O.jsxs("div",{className:`session-item${v.session_id===a?" active":""}`,onClick:()=>l(v.session_id),children:[O.jsx("span",{className:"session-name",children:v.name.length>30?v.name.slice(0,30)+"...":v.name}),O.jsxs("span",{className:"session-actions",children:[O.jsx("button",{title:"Rename",onClick:g=>{g.stopPropagation(),s(v.session_id)},dangerouslySetInnerHTML:{__html:"&#9998;"}}),O.jsx("button",{title:"Delete",onClick:g=>{g.stopPropagation(),f(v.session_id)},dangerouslySetInnerHTML:{__html:"&#128465;"}})]})]},v.session_id))})]})]})}function L1(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Cl=L1();function lm(r){Cl=r}var Di={exec:()=>null};function ot(r,a=""){let l=typeof r=="string"?r:r.source;const u={replace:(s,f)=>{let d=typeof f=="string"?f:f.source;return d=d.replace(E0.caret,"$1"),l=l.replace(s,d),u},getRegex:()=>new RegExp(l,a)};return u}var E0={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},J6=/^(?:[ \t]*(?:\n|$))+/,$6=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,W6=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Li=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,P6=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,q1=/(?:[*+-]|\d{1,9}[.)])/,rm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,im=ot(rm).replace(/bull/g,q1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),e7=ot(rm).replace(/bull/g,q1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),H1=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,t7=/^[^\n]+/,U1=/(?!\s*\])(?:\\.|[^\[\]\\])+/,a7=ot(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U1).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),n7=ot(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,q1).getRegex(),bs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",j1=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,l7=ot("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",j1).replace("tag",bs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),um=ot(H1).replace("hr",Li).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bs).getRegex(),r7=ot(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",um).getRegex(),G1={blockquote:r7,code:$6,def:a7,fences:W6,heading:P6,hr:Li,html:l7,lheading:im,list:n7,newline:J6,paragraph:um,table:Di,text:t7},$2=ot("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Li).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bs).getRegex(),i7={...G1,lheading:e7,table:$2,paragraph:ot(H1).replace("hr",Li).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",$2).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",bs).getRegex()},u7={...G1,html:ot(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",j1).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Di,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ot(H1).replace("hr",Li).replace("heading",` *#{1,6} *[^
]`).replace("lheading",im).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},s7=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,o7=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,sm=/^( {2,}|\\)\n(?!\s*$)/,c7=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,xs=/[\p{P}\p{S}]/u,Y1=/[\s\p{P}\p{S}]/u,om=/[^\s\p{P}\p{S}]/u,f7=ot(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Y1).getRegex(),cm=/(?!~)[\p{P}\p{S}]/u,h7=/(?!~)[\s\p{P}\p{S}]/u,d7=/(?:[^\s\p{P}\p{S}]|~)/u,m7=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,fm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,p7=ot(fm,"u").replace(/punct/g,xs).getRegex(),v7=ot(fm,"u").replace(/punct/g,cm).getRegex(),hm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",g7=ot(hm,"gu").replace(/notPunctSpace/g,om).replace(/punctSpace/g,Y1).replace(/punct/g,xs).getRegex(),y7=ot(hm,"gu").replace(/notPunctSpace/g,d7).replace(/punctSpace/g,h7).replace(/punct/g,cm).getRegex(),b7=ot("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,om).replace(/punctSpace/g,Y1).replace(/punct/g,xs).getRegex(),x7=ot(/\\(punct)/,"gu").replace(/punct/g,xs).getRegex(),S7=ot(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),w7=ot(j1).replace("(?:-->|$)","-->").getRegex(),T7=ot("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",w7).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ds=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,A7=ot(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",ds).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),dm=ot(/^!?\[(label)\]\[(ref)\]/).replace("label",ds).replace("ref",U1).getRegex(),mm=ot(/^!?\[(ref)\](?:\[\])?/).replace("ref",U1).getRegex(),z7=ot("reflink|nolink(?!\\()","g").replace("reflink",dm).replace("nolink",mm).getRegex(),X1={_backpedal:Di,anyPunctuation:x7,autolink:S7,blockSkip:m7,br:sm,code:o7,del:Di,emStrongLDelim:p7,emStrongRDelimAst:g7,emStrongRDelimUnd:b7,escape:s7,link:A7,nolink:mm,punctuation:f7,reflink:dm,reflinkSearch:z7,tag:T7,text:c7,url:Di},E7={...X1,link:ot(/^!?\[(label)\]\((.*?)\)/).replace("label",ds).getRegex(),reflink:ot(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ds).getRegex()},c1={...X1,emStrongRDelimAst:y7,emStrongLDelim:v7,url:ot(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},k7={...c1,br:ot(sm).replace("{2,}","*").getRegex(),text:ot(c1.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Pu={normal:G1,gfm:i7,pedantic:u7},Ai={normal:X1,gfm:c1,breaks:k7,pedantic:E7},M7={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},W2=r=>M7[r];function Na(r,a){if(a){if(E0.escapeTest.test(r))return r.replace(E0.escapeReplace,W2)}else if(E0.escapeTestNoEncode.test(r))return r.replace(E0.escapeReplaceNoEncode,W2);return r}function P2(r){try{r=encodeURI(r).replace(E0.percentDecode,"%")}catch{return null}return r}function ed(r,a){var f;const l=r.replace(E0.findPipe,(d,m,v)=>{let g=!1,x=m;for(;--x>=0&&v[x]==="\\";)g=!g;return g?"|":" |"}),u=l.split(E0.splitPipe);let s=0;if(u[0].trim()||u.shift(),u.length>0&&!((f=u.at(-1))!=null&&f.trim())&&u.pop(),a)if(u.length>a)u.splice(a);else for(;u.length<a;)u.push("");for(;s<u.length;s++)u[s]=u[s].trim().replace(E0.slashPipe,"|");return u}function zi(r,a,l){const u=r.length;if(u===0)return"";let s=0;for(;s<u&&r.charAt(u-s-1)===a;)s++;return r.slice(0,u-s)}function C7(r,a){if(r.indexOf(a[1])===-1)return-1;let l=0;for(let u=0;u<r.length;u++)if(r[u]==="\\")u++;else if(r[u]===a[0])l++;else if(r[u]===a[1]&&(l--,l<0))return u;return l>0?-2:-1}function td(r,a,l,u,s){const f=a.href,d=a.title||null,m=r[1].replace(s.other.outputLinkReplace,"$1");u.state.inLink=!0;const v={type:r[0].charAt(0)==="!"?"image":"link",raw:l,href:f,title:d,text:m,tokens:u.inlineTokens(m)};return u.state.inLink=!1,v}function D7(r,a,l){const u=r.match(l.other.indentCodeCompensation);if(u===null)return a;const s=u[1];return a.split(`
`).map(f=>{const d=f.match(l.other.beginningSpace);if(d===null)return f;const[m]=d;return m.length>=s.length?f.slice(s.length):f}).join(`
`)}var ms=class{constructor(r){bt(this,"options");bt(this,"rules");bt(this,"lexer");this.options=r||Cl}space(r){const a=this.rules.block.newline.exec(r);if(a&&a[0].length>0)return{type:"space",raw:a[0]}}code(r){const a=this.rules.block.code.exec(r);if(a){const l=a[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:a[0],codeBlockStyle:"indented",text:this.options.pedantic?l:zi(l,`
`)}}}fences(r){const a=this.rules.block.fences.exec(r);if(a){const l=a[0],u=D7(l,a[3]||"",this.rules);return{type:"code",raw:l,lang:a[2]?a[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):a[2],text:u}}}heading(r){const a=this.rules.block.heading.exec(r);if(a){let l=a[2].trim();if(this.rules.other.endingHash.test(l)){const u=zi(l,"#");(this.options.pedantic||!u||this.rules.other.endingSpaceChar.test(u))&&(l=u.trim())}return{type:"heading",raw:a[0],depth:a[1].length,text:l,tokens:this.lexer.inline(l)}}}hr(r){const a=this.rules.block.hr.exec(r);if(a)return{type:"hr",raw:zi(a[0],`
`)}}blockquote(r){const a=this.rules.block.blockquote.exec(r);if(a){let l=zi(a[0],`
`).split(`
`),u="",s="";const f=[];for(;l.length>0;){let d=!1;const m=[];let v;for(v=0;v<l.length;v++)if(this.rules.other.blockquoteStart.test(l[v]))m.push(l[v]),d=!0;else if(!d)m.push(l[v]);else break;l=l.slice(v);const g=m.join(`
`),x=g.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");u=u?`${u}
${g}`:g,s=s?`${s}
${x}`:x;const T=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(x,f,!0),this.lexer.state.top=T,l.length===0)break;const A=f.at(-1);if((A==null?void 0:A.type)==="code")break;if((A==null?void 0:A.type)==="blockquote"){const D=A,R=D.raw+`
`+l.join(`
`),U=this.blockquote(R);f[f.length-1]=U,u=u.substring(0,u.length-D.raw.length)+U.raw,s=s.substring(0,s.length-D.text.length)+U.text;break}else if((A==null?void 0:A.type)==="list"){const D=A,R=D.raw+`
`+l.join(`
`),U=this.list(R);f[f.length-1]=U,u=u.substring(0,u.length-A.raw.length)+U.raw,s=s.substring(0,s.length-D.raw.length)+U.raw,l=R.substring(f.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:u,tokens:f,text:s}}}list(r){let a=this.rules.block.list.exec(r);if(a){let l=a[1].trim();const u=l.length>1,s={type:"list",raw:"",ordered:u,start:u?+l.slice(0,-1):"",loose:!1,items:[]};l=u?`\\d{1,9}\\${l.slice(-1)}`:`\\${l}`,this.options.pedantic&&(l=u?l:"[*+-]");const f=this.rules.other.listItemRegex(l);let d=!1;for(;r;){let v=!1,g="",x="";if(!(a=f.exec(r))||this.rules.block.hr.test(r))break;g=a[0],r=r.substring(g.length);let T=a[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,I=>" ".repeat(3*I.length)),A=r.split(`
`,1)[0],D=!T.trim(),R=0;if(this.options.pedantic?(R=2,x=T.trimStart()):D?R=a[1].length+1:(R=a[2].search(this.rules.other.nonSpaceChar),R=R>4?1:R,x=T.slice(R),R+=a[1].length),D&&this.rules.other.blankLine.test(A)&&(g+=A+`
`,r=r.substring(A.length+1),v=!0),!v){const I=this.rules.other.nextBulletRegex(R),fe=this.rules.other.hrRegex(R),oe=this.rules.other.fencesBeginRegex(R),re=this.rules.other.headingBeginRegex(R),ie=this.rules.other.htmlBeginRegex(R);for(;r;){const le=r.split(`
`,1)[0];let X;if(A=le,this.options.pedantic?(A=A.replace(this.rules.other.listReplaceNesting,"  "),X=A):X=A.replace(this.rules.other.tabCharGlobal,"    "),oe.test(A)||re.test(A)||ie.test(A)||I.test(A)||fe.test(A))break;if(X.search(this.rules.other.nonSpaceChar)>=R||!A.trim())x+=`
`+X.slice(R);else{if(D||T.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||oe.test(T)||re.test(T)||fe.test(T))break;x+=`
`+A}!D&&!A.trim()&&(D=!0),g+=le+`
`,r=r.substring(le.length+1),T=X.slice(R)}}s.loose||(d?s.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(d=!0));let U=null,F;this.options.gfm&&(U=this.rules.other.listIsTask.exec(x),U&&(F=U[0]!=="[ ] ",x=x.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:g,task:!!U,checked:F,loose:!1,text:x,tokens:[]}),s.raw+=g}const m=s.items.at(-1);if(m)m.raw=m.raw.trimEnd(),m.text=m.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let v=0;v<s.items.length;v++)if(this.lexer.state.top=!1,s.items[v].tokens=this.lexer.blockTokens(s.items[v].text,[]),!s.loose){const g=s.items[v].tokens.filter(T=>T.type==="space"),x=g.length>0&&g.some(T=>this.rules.other.anyLine.test(T.raw));s.loose=x}if(s.loose)for(let v=0;v<s.items.length;v++)s.items[v].loose=!0;return s}}html(r){const a=this.rules.block.html.exec(r);if(a)return{type:"html",block:!0,raw:a[0],pre:a[1]==="pre"||a[1]==="script"||a[1]==="style",text:a[0]}}def(r){const a=this.rules.block.def.exec(r);if(a){const l=a[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),u=a[2]?a[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=a[3]?a[3].substring(1,a[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):a[3];return{type:"def",tag:l,raw:a[0],href:u,title:s}}}table(r){var d;const a=this.rules.block.table.exec(r);if(!a||!this.rules.other.tableDelimiter.test(a[2]))return;const l=ed(a[1]),u=a[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(d=a[3])!=null&&d.trim()?a[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],f={type:"table",raw:a[0],header:[],align:[],rows:[]};if(l.length===u.length){for(const m of u)this.rules.other.tableAlignRight.test(m)?f.align.push("right"):this.rules.other.tableAlignCenter.test(m)?f.align.push("center"):this.rules.other.tableAlignLeft.test(m)?f.align.push("left"):f.align.push(null);for(let m=0;m<l.length;m++)f.header.push({text:l[m],tokens:this.lexer.inline(l[m]),header:!0,align:f.align[m]});for(const m of s)f.rows.push(ed(m,f.header.length).map((v,g)=>({text:v,tokens:this.lexer.inline(v),header:!1,align:f.align[g]})));return f}}lheading(r){const a=this.rules.block.lheading.exec(r);if(a)return{type:"heading",raw:a[0],depth:a[2].charAt(0)==="="?1:2,text:a[1],tokens:this.lexer.inline(a[1])}}paragraph(r){const a=this.rules.block.paragraph.exec(r);if(a){const l=a[1].charAt(a[1].length-1)===`
`?a[1].slice(0,-1):a[1];return{type:"paragraph",raw:a[0],text:l,tokens:this.lexer.inline(l)}}}text(r){const a=this.rules.block.text.exec(r);if(a)return{type:"text",raw:a[0],text:a[0],tokens:this.lexer.inline(a[0])}}escape(r){const a=this.rules.inline.escape.exec(r);if(a)return{type:"escape",raw:a[0],text:a[1]}}tag(r){const a=this.rules.inline.tag.exec(r);if(a)return!this.lexer.state.inLink&&this.rules.other.startATag.test(a[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(a[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(a[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(a[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:a[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:a[0]}}link(r){const a=this.rules.inline.link.exec(r);if(a){const l=a[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(l)){if(!this.rules.other.endAngleBracket.test(l))return;const f=zi(l.slice(0,-1),"\\");if((l.length-f.length)%2===0)return}else{const f=C7(a[2],"()");if(f===-2)return;if(f>-1){const m=(a[0].indexOf("!")===0?5:4)+a[1].length+f;a[2]=a[2].substring(0,f),a[0]=a[0].substring(0,m).trim(),a[3]=""}}let u=a[2],s="";if(this.options.pedantic){const f=this.rules.other.pedanticHrefTitle.exec(u);f&&(u=f[1],s=f[3])}else s=a[3]?a[3].slice(1,-1):"";return u=u.trim(),this.rules.other.startAngleBracket.test(u)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(l)?u=u.slice(1):u=u.slice(1,-1)),td(a,{href:u&&u.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},a[0],this.lexer,this.rules)}}reflink(r,a){let l;if((l=this.rules.inline.reflink.exec(r))||(l=this.rules.inline.nolink.exec(r))){const u=(l[2]||l[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=a[u.toLowerCase()];if(!s){const f=l[0].charAt(0);return{type:"text",raw:f,text:f}}return td(l,s,l[0],this.lexer,this.rules)}}emStrong(r,a,l=""){let u=this.rules.inline.emStrongLDelim.exec(r);if(!u||u[3]&&l.match(this.rules.other.unicodeAlphaNumeric))return;if(!(u[1]||u[2]||"")||!l||this.rules.inline.punctuation.exec(l)){const f=[...u[0]].length-1;let d,m,v=f,g=0;const x=u[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(x.lastIndex=0,a=a.slice(-1*r.length+f);(u=x.exec(a))!=null;){if(d=u[1]||u[2]||u[3]||u[4]||u[5]||u[6],!d)continue;if(m=[...d].length,u[3]||u[4]){v+=m;continue}else if((u[5]||u[6])&&f%3&&!((f+m)%3)){g+=m;continue}if(v-=m,v>0)continue;m=Math.min(m,m+v+g);const T=[...u[0]][0].length,A=r.slice(0,f+u.index+T+m);if(Math.min(f,m)%2){const R=A.slice(1,-1);return{type:"em",raw:A,text:R,tokens:this.lexer.inlineTokens(R)}}const D=A.slice(2,-2);return{type:"strong",raw:A,text:D,tokens:this.lexer.inlineTokens(D)}}}}codespan(r){const a=this.rules.inline.code.exec(r);if(a){let l=a[2].replace(this.rules.other.newLineCharGlobal," ");const u=this.rules.other.nonSpaceChar.test(l),s=this.rules.other.startingSpaceChar.test(l)&&this.rules.other.endingSpaceChar.test(l);return u&&s&&(l=l.substring(1,l.length-1)),{type:"codespan",raw:a[0],text:l}}}br(r){const a=this.rules.inline.br.exec(r);if(a)return{type:"br",raw:a[0]}}del(r){const a=this.rules.inline.del.exec(r);if(a)return{type:"del",raw:a[0],text:a[2],tokens:this.lexer.inlineTokens(a[2])}}autolink(r){const a=this.rules.inline.autolink.exec(r);if(a){let l,u;return a[2]==="@"?(l=a[1],u="mailto:"+l):(l=a[1],u=l),{type:"link",raw:a[0],text:l,href:u,tokens:[{type:"text",raw:l,text:l}]}}}url(r){var l;let a;if(a=this.rules.inline.url.exec(r)){let u,s;if(a[2]==="@")u=a[0],s="mailto:"+u;else{let f;do f=a[0],a[0]=((l=this.rules.inline._backpedal.exec(a[0]))==null?void 0:l[0])??"";while(f!==a[0]);u=a[0],a[1]==="www."?s="http://"+a[0]:s=a[0]}return{type:"link",raw:a[0],text:u,href:s,tokens:[{type:"text",raw:u,text:u}]}}}inlineText(r){const a=this.rules.inline.text.exec(r);if(a){const l=this.lexer.state.inRawBlock;return{type:"text",raw:a[0],text:a[0],escaped:l}}}},sn=class f1{constructor(a){bt(this,"tokens");bt(this,"options");bt(this,"state");bt(this,"tokenizer");bt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=a||Cl,this.options.tokenizer=this.options.tokenizer||new ms,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const l={other:E0,block:Pu.normal,inline:Ai.normal};this.options.pedantic?(l.block=Pu.pedantic,l.inline=Ai.pedantic):this.options.gfm&&(l.block=Pu.gfm,this.options.breaks?l.inline=Ai.breaks:l.inline=Ai.gfm),this.tokenizer.rules=l}static get rules(){return{block:Pu,inline:Ai}}static lex(a,l){return new f1(l).lex(a)}static lexInline(a,l){return new f1(l).inlineTokens(a)}lex(a){a=a.replace(E0.carriageReturn,`
`),this.blockTokens(a,this.tokens);for(let l=0;l<this.inlineQueue.length;l++){const u=this.inlineQueue[l];this.inlineTokens(u.src,u.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(a,l=[],u=!1){var s,f,d;for(this.options.pedantic&&(a=a.replace(E0.tabCharGlobal,"    ").replace(E0.spaceLine,""));a;){let m;if((f=(s=this.options.extensions)==null?void 0:s.block)!=null&&f.some(g=>(m=g.call({lexer:this},a,l))?(a=a.substring(m.raw.length),l.push(m),!0):!1))continue;if(m=this.tokenizer.space(a)){a=a.substring(m.raw.length);const g=l.at(-1);m.raw.length===1&&g!==void 0?g.raw+=`
`:l.push(m);continue}if(m=this.tokenizer.code(a)){a=a.substring(m.raw.length);const g=l.at(-1);(g==null?void 0:g.type)==="paragraph"||(g==null?void 0:g.type)==="text"?(g.raw+=`
`+m.raw,g.text+=`
`+m.text,this.inlineQueue.at(-1).src=g.text):l.push(m);continue}if(m=this.tokenizer.fences(a)){a=a.substring(m.raw.length),l.push(m);continue}if(m=this.tokenizer.heading(a)){a=a.substring(m.raw.length),l.push(m);continue}if(m=this.tokenizer.hr(a)){a=a.substring(m.raw.length),l.push(m);continue}if(m=this.tokenizer.blockquote(a)){a=a.substring(m.raw.length),l.push(m);continue}if(m=this.tokenizer.list(a)){a=a.substring(m.raw.length),l.push(m);continue}if(m=this.tokenizer.html(a)){a=a.substring(m.raw.length),l.push(m);continue}if(m=this.tokenizer.def(a)){a=a.substring(m.raw.length);const g=l.at(-1);(g==null?void 0:g.type)==="paragraph"||(g==null?void 0:g.type)==="text"?(g.raw+=`
`+m.raw,g.text+=`
`+m.raw,this.inlineQueue.at(-1).src=g.text):this.tokens.links[m.tag]||(this.tokens.links[m.tag]={href:m.href,title:m.title});continue}if(m=this.tokenizer.table(a)){a=a.substring(m.raw.length),l.push(m);continue}if(m=this.tokenizer.lheading(a)){a=a.substring(m.raw.length),l.push(m);continue}let v=a;if((d=this.options.extensions)!=null&&d.startBlock){let g=1/0;const x=a.slice(1);let T;this.options.extensions.startBlock.forEach(A=>{T=A.call({lexer:this},x),typeof T=="number"&&T>=0&&(g=Math.min(g,T))}),g<1/0&&g>=0&&(v=a.substring(0,g+1))}if(this.state.top&&(m=this.tokenizer.paragraph(v))){const g=l.at(-1);u&&(g==null?void 0:g.type)==="paragraph"?(g.raw+=`
`+m.raw,g.text+=`
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):l.push(m),u=v.length!==a.length,a=a.substring(m.raw.length);continue}if(m=this.tokenizer.text(a)){a=a.substring(m.raw.length);const g=l.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=`
`+m.raw,g.text+=`
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=g.text):l.push(m);continue}if(a){const g="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return this.state.top=!0,l}inline(a,l=[]){return this.inlineQueue.push({src:a,tokens:l}),l}inlineTokens(a,l=[]){var m,v,g;let u=a,s=null;if(this.tokens.links){const x=Object.keys(this.tokens.links);if(x.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(u))!=null;)x.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(u))!=null;)u=u.slice(0,s.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(u))!=null;)u=u.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let f=!1,d="";for(;a;){f||(d=""),f=!1;let x;if((v=(m=this.options.extensions)==null?void 0:m.inline)!=null&&v.some(A=>(x=A.call({lexer:this},a,l))?(a=a.substring(x.raw.length),l.push(x),!0):!1))continue;if(x=this.tokenizer.escape(a)){a=a.substring(x.raw.length),l.push(x);continue}if(x=this.tokenizer.tag(a)){a=a.substring(x.raw.length),l.push(x);continue}if(x=this.tokenizer.link(a)){a=a.substring(x.raw.length),l.push(x);continue}if(x=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(x.raw.length);const A=l.at(-1);x.type==="text"&&(A==null?void 0:A.type)==="text"?(A.raw+=x.raw,A.text+=x.text):l.push(x);continue}if(x=this.tokenizer.emStrong(a,u,d)){a=a.substring(x.raw.length),l.push(x);continue}if(x=this.tokenizer.codespan(a)){a=a.substring(x.raw.length),l.push(x);continue}if(x=this.tokenizer.br(a)){a=a.substring(x.raw.length),l.push(x);continue}if(x=this.tokenizer.del(a)){a=a.substring(x.raw.length),l.push(x);continue}if(x=this.tokenizer.autolink(a)){a=a.substring(x.raw.length),l.push(x);continue}if(!this.state.inLink&&(x=this.tokenizer.url(a))){a=a.substring(x.raw.length),l.push(x);continue}let T=a;if((g=this.options.extensions)!=null&&g.startInline){let A=1/0;const D=a.slice(1);let R;this.options.extensions.startInline.forEach(U=>{R=U.call({lexer:this},D),typeof R=="number"&&R>=0&&(A=Math.min(A,R))}),A<1/0&&A>=0&&(T=a.substring(0,A+1))}if(x=this.tokenizer.inlineText(T)){a=a.substring(x.raw.length),x.raw.slice(-1)!=="_"&&(d=x.raw.slice(-1)),f=!0;const A=l.at(-1);(A==null?void 0:A.type)==="text"?(A.raw+=x.raw,A.text+=x.text):l.push(x);continue}if(a){const A="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(A);break}else throw new Error(A)}}return l}},ps=class{constructor(r){bt(this,"options");bt(this,"parser");this.options=r||Cl}space(r){return""}code({text:r,lang:a,escaped:l}){var f;const u=(f=(a||"").match(E0.notSpaceStart))==null?void 0:f[0],s=r.replace(E0.endingNewline,"")+`
`;return u?'<pre><code class="language-'+Na(u)+'">'+(l?s:Na(s,!0))+`</code></pre>
`:"<pre><code>"+(l?s:Na(s,!0))+`</code></pre>
`}blockquote({tokens:r}){return`<blockquote>
${this.parser.parse(r)}</blockquote>
`}html({text:r}){return r}heading({tokens:r,depth:a}){return`<h${a}>${this.parser.parseInline(r)}</h${a}>
`}hr(r){return`<hr>
`}list(r){const a=r.ordered,l=r.start;let u="";for(let d=0;d<r.items.length;d++){const m=r.items[d];u+=this.listitem(m)}const s=a?"ol":"ul",f=a&&l!==1?' start="'+l+'"':"";return"<"+s+f+`>
`+u+"</"+s+`>
`}listitem(r){var l;let a="";if(r.task){const u=this.checkbox({checked:!!r.checked});r.loose?((l=r.tokens[0])==null?void 0:l.type)==="paragraph"?(r.tokens[0].text=u+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&r.tokens[0].tokens[0].type==="text"&&(r.tokens[0].tokens[0].text=u+" "+Na(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:u+" ",text:u+" ",escaped:!0}):a+=u+" "}return a+=this.parser.parse(r.tokens,!!r.loose),`<li>${a}</li>
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
`}table(r){let a="",l="";for(let s=0;s<r.header.length;s++)l+=this.tablecell(r.header[s]);a+=this.tablerow({text:l});let u="";for(let s=0;s<r.rows.length;s++){const f=r.rows[s];l="";for(let d=0;d<f.length;d++)l+=this.tablecell(f[d]);u+=this.tablerow({text:l})}return u&&(u=`<tbody>${u}</tbody>`),`<table>
<thead>
`+a+`</thead>
`+u+`</table>
`}tablerow({text:r}){return`<tr>
${r}</tr>
`}tablecell(r){const a=this.parser.parseInline(r.tokens),l=r.header?"th":"td";return(r.align?`<${l} align="${r.align}">`:`<${l}>`)+a+`</${l}>
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${Na(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:a,tokens:l}){const u=this.parser.parseInline(l),s=P2(r);if(s===null)return u;r=s;let f='<a href="'+r+'"';return a&&(f+=' title="'+Na(a)+'"'),f+=">"+u+"</a>",f}image({href:r,title:a,text:l,tokens:u}){u&&(l=this.parser.parseInline(u,this.parser.textRenderer));const s=P2(r);if(s===null)return Na(l);r=s;let f=`<img src="${r}" alt="${l}"`;return a&&(f+=` title="${Na(a)}"`),f+=">",f}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:Na(r.text)}},Z1=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}},on=class h1{constructor(a){bt(this,"options");bt(this,"renderer");bt(this,"textRenderer");this.options=a||Cl,this.options.renderer=this.options.renderer||new ps,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Z1}static parse(a,l){return new h1(l).parse(a)}static parseInline(a,l){return new h1(l).parseInline(a)}parse(a,l=!0){var s,f;let u="";for(let d=0;d<a.length;d++){const m=a[d];if((f=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&f[m.type]){const g=m,x=this.options.extensions.renderers[g.type].call({parser:this},g);if(x!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(g.type)){u+=x||"";continue}}const v=m;switch(v.type){case"space":{u+=this.renderer.space(v);continue}case"hr":{u+=this.renderer.hr(v);continue}case"heading":{u+=this.renderer.heading(v);continue}case"code":{u+=this.renderer.code(v);continue}case"table":{u+=this.renderer.table(v);continue}case"blockquote":{u+=this.renderer.blockquote(v);continue}case"list":{u+=this.renderer.list(v);continue}case"html":{u+=this.renderer.html(v);continue}case"paragraph":{u+=this.renderer.paragraph(v);continue}case"text":{let g=v,x=this.renderer.text(g);for(;d+1<a.length&&a[d+1].type==="text";)g=a[++d],x+=`
`+this.renderer.text(g);l?u+=this.renderer.paragraph({type:"paragraph",raw:x,text:x,tokens:[{type:"text",raw:x,text:x,escaped:!0}]}):u+=x;continue}default:{const g='Token with "'+v.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return u}parseInline(a,l=this.renderer){var s,f;let u="";for(let d=0;d<a.length;d++){const m=a[d];if((f=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&f[m.type]){const g=this.options.extensions.renderers[m.type].call({parser:this},m);if(g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(m.type)){u+=g||"";continue}}const v=m;switch(v.type){case"escape":{u+=l.text(v);break}case"html":{u+=l.html(v);break}case"link":{u+=l.link(v);break}case"image":{u+=l.image(v);break}case"strong":{u+=l.strong(v);break}case"em":{u+=l.em(v);break}case"codespan":{u+=l.codespan(v);break}case"br":{u+=l.br(v);break}case"del":{u+=l.del(v);break}case"text":{u+=l.text(v);break}default:{const g='Token with "'+v.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return u}},o1,cs=(o1=class{constructor(r){bt(this,"options");bt(this,"block");this.options=r||Cl}preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}provideLexer(){return this.block?sn.lex:sn.lexInline}provideParser(){return this.block?on.parse:on.parseInline}},bt(o1,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),o1),_7=class{constructor(...r){bt(this,"defaults",L1());bt(this,"options",this.setOptions);bt(this,"parse",this.parseMarkdown(!0));bt(this,"parseInline",this.parseMarkdown(!1));bt(this,"Parser",on);bt(this,"Renderer",ps);bt(this,"TextRenderer",Z1);bt(this,"Lexer",sn);bt(this,"Tokenizer",ms);bt(this,"Hooks",cs);this.use(...r)}walkTokens(r,a){var u,s;let l=[];for(const f of r)switch(l=l.concat(a.call(this,f)),f.type){case"table":{const d=f;for(const m of d.header)l=l.concat(this.walkTokens(m.tokens,a));for(const m of d.rows)for(const v of m)l=l.concat(this.walkTokens(v.tokens,a));break}case"list":{const d=f;l=l.concat(this.walkTokens(d.items,a));break}default:{const d=f;(s=(u=this.defaults.extensions)==null?void 0:u.childTokens)!=null&&s[d.type]?this.defaults.extensions.childTokens[d.type].forEach(m=>{const v=d[m].flat(1/0);l=l.concat(this.walkTokens(v,a))}):d.tokens&&(l=l.concat(this.walkTokens(d.tokens,a)))}}return l}use(...r){const a=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(l=>{const u={...l};if(u.async=this.defaults.async||u.async||!1,l.extensions&&(l.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const f=a.renderers[s.name];f?a.renderers[s.name]=function(...d){let m=s.renderer.apply(this,d);return m===!1&&(m=f.apply(this,d)),m}:a.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=a[s.level];f?f.unshift(s.tokenizer):a[s.level]=[s.tokenizer],s.start&&(s.level==="block"?a.startBlock?a.startBlock.push(s.start):a.startBlock=[s.start]:s.level==="inline"&&(a.startInline?a.startInline.push(s.start):a.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(a.childTokens[s.name]=s.childTokens)}),u.extensions=a),l.renderer){const s=this.defaults.renderer||new ps(this.defaults);for(const f in l.renderer){if(!(f in s))throw new Error(`renderer '${f}' does not exist`);if(["options","parser"].includes(f))continue;const d=f,m=l.renderer[d],v=s[d];s[d]=(...g)=>{let x=m.apply(s,g);return x===!1&&(x=v.apply(s,g)),x||""}}u.renderer=s}if(l.tokenizer){const s=this.defaults.tokenizer||new ms(this.defaults);for(const f in l.tokenizer){if(!(f in s))throw new Error(`tokenizer '${f}' does not exist`);if(["options","rules","lexer"].includes(f))continue;const d=f,m=l.tokenizer[d],v=s[d];s[d]=(...g)=>{let x=m.apply(s,g);return x===!1&&(x=v.apply(s,g)),x}}u.tokenizer=s}if(l.hooks){const s=this.defaults.hooks||new cs;for(const f in l.hooks){if(!(f in s))throw new Error(`hook '${f}' does not exist`);if(["options","block"].includes(f))continue;const d=f,m=l.hooks[d],v=s[d];cs.passThroughHooks.has(f)?s[d]=g=>{if(this.defaults.async)return Promise.resolve(m.call(s,g)).then(T=>v.call(s,T));const x=m.call(s,g);return v.call(s,x)}:s[d]=(...g)=>{let x=m.apply(s,g);return x===!1&&(x=v.apply(s,g)),x}}u.hooks=s}if(l.walkTokens){const s=this.defaults.walkTokens,f=l.walkTokens;u.walkTokens=function(d){let m=[];return m.push(f.call(this,d)),s&&(m=m.concat(s.call(this,d))),m}}this.defaults={...this.defaults,...u}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,a){return sn.lex(r,a??this.defaults)}parser(r,a){return on.parse(r,a??this.defaults)}parseMarkdown(r){return(l,u)=>{const s={...u},f={...this.defaults,...s},d=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&s.async===!1)return d(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof l>"u"||l===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof l!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(l)+", string expected"));f.hooks&&(f.hooks.options=f,f.hooks.block=r);const m=f.hooks?f.hooks.provideLexer():r?sn.lex:sn.lexInline,v=f.hooks?f.hooks.provideParser():r?on.parse:on.parseInline;if(f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(l):l).then(g=>m(g,f)).then(g=>f.hooks?f.hooks.processAllTokens(g):g).then(g=>f.walkTokens?Promise.all(this.walkTokens(g,f.walkTokens)).then(()=>g):g).then(g=>v(g,f)).then(g=>f.hooks?f.hooks.postprocess(g):g).catch(d);try{f.hooks&&(l=f.hooks.preprocess(l));let g=m(l,f);f.hooks&&(g=f.hooks.processAllTokens(g)),f.walkTokens&&this.walkTokens(g,f.walkTokens);let x=v(g,f);return f.hooks&&(x=f.hooks.postprocess(x)),x}catch(g){return d(g)}}}onError(r,a){return l=>{if(l.message+=`
Please report this to https://github.com/markedjs/marked.`,r){const u="<p>An error occurred:</p><pre>"+Na(l.message+"",!0)+"</pre>";return a?Promise.resolve(u):u}if(a)return Promise.reject(l);throw l}}},Ml=new _7;function tt(r,a){return Ml.parse(r,a)}tt.options=tt.setOptions=function(r){return Ml.setOptions(r),tt.defaults=Ml.defaults,lm(tt.defaults),tt};tt.getDefaults=L1;tt.defaults=Cl;tt.use=function(...r){return Ml.use(...r),tt.defaults=Ml.defaults,lm(tt.defaults),tt};tt.walkTokens=function(r,a){return Ml.walkTokens(r,a)};tt.parseInline=Ml.parseInline;tt.Parser=on;tt.parser=on.parse;tt.Renderer=ps;tt.TextRenderer=Z1;tt.Lexer=sn;tt.lexer=sn.lex;tt.Tokenizer=ms;tt.Hooks=cs;tt.parse=tt;tt.options;tt.setOptions;tt.use;tt.walkTokens;tt.parseInline;on.parse;sn.lex;class ae extends Error{constructor(a,l){var u="KaTeX parse error: "+a,s,f,d=l&&l.loc;if(d&&d.start<=d.end){var m=d.lexer.input;s=d.start,f=d.end,s===m.length?u+=" at end of input: ":u+=" at position "+(s+1)+": ";var v=m.slice(s,f).replace(/[^]/g,"$&̲"),g;s>15?g="…"+m.slice(s-15,s):g=m.slice(0,s);var x;f+15<m.length?x=m.slice(f,f+15)+"…":x=m.slice(f),u+=g+v+x}super(u),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,ae.prototype),this.position=s,s!=null&&f!=null&&(this.length=f-s),this.rawMessage=a}}var R7=/([A-Z])/g,O7=r=>r.replace(R7,"-$1").toLowerCase(),N7={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},B7=/[&><"']/g,v0=r=>String(r).replace(B7,a=>N7[a]),fs=r=>r.type==="ordgroup"||r.type==="color"?r.body.length===1?fs(r.body[0]):r:r.type==="font"?fs(r.body):r,L7=new Set(["mathord","textord","atom"]),hn=r=>L7.has(fs(r).type),q7=r=>{var a=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(r);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"},d1={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:r=>"#"+r},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:(r,a)=>(a.push(r),a)},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:r=>Math.max(0,r),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:r=>Math.max(0,r),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:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function H7(r){if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function U7(r){if(r.default!==void 0)return r.default;var a=Array.isArray(r.type)?r.type[0]:r.type;return H7(a)}function j7(r,a,l,u){var s=l[a];r[a]=s!==void 0?u.processor?u.processor(s):s:U7(u)}class V1{constructor(a){a===void 0&&(a={}),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,a=a||{};for(var l of Object.keys(d1)){var u=d1[l];u&&j7(this,l,a,u)}}reportNonstrict(a,l,u){var s=this.strict;if(typeof s=="function"&&(s=s(a,l,u)),!(!s||s==="ignore")){if(s===!0||s==="error")throw new ae("LaTeX-incompatible input and strict mode is set to 'error': "+(l+" ["+a+"]"),u);s==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(l+" ["+a+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+l+" ["+a+"]"))}}useStrictBehavior(a,l,u){var s=this.strict;if(typeof s=="function")try{s=s(a,l,u)}catch{s="error"}return!s||s==="ignore"?!1:s===!0||s==="error"?!0:s==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(l+" ["+a+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+s+"': "+l+" ["+a+"]")),!1)}isTrusted(a){if("url"in a&&a.url&&!a.protocol){var l=q7(a.url);if(l==null)return!1;a.protocol=l}var u=typeof this.trust=="function"?this.trust(a):this.trust;return!!u}}class Qn{constructor(a,l,u){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=a,this.size=l,this.cramped=u}sup(){return La[G7[this.id]]}sub(){return La[Y7[this.id]]}fracNum(){return La[X7[this.id]]}fracDen(){return La[Z7[this.id]]}cramp(){return La[V7[this.id]]}text(){return La[Q7[this.id]]}isTight(){return this.size>=2}}var Q1=0,vs=1,gr=2,cn=3,Ri=4,ma=5,yr=6,k0=7,La=[new Qn(Q1,0,!1),new Qn(vs,0,!0),new Qn(gr,1,!1),new Qn(cn,1,!0),new Qn(Ri,2,!1),new Qn(ma,2,!0),new Qn(yr,3,!1),new Qn(k0,3,!0)],G7=[Ri,ma,Ri,ma,yr,k0,yr,k0],Y7=[ma,ma,ma,ma,k0,k0,k0,k0],X7=[gr,cn,Ri,ma,yr,k0,yr,k0],Z7=[cn,cn,ma,ma,k0,k0,k0,k0],V7=[vs,vs,cn,cn,ma,ma,k0,k0],Q7=[Q1,vs,gr,cn,gr,cn,gr,cn],Ne={DISPLAY:La[Q1],TEXT:La[gr],SCRIPT:La[Ri],SCRIPTSCRIPT:La[yr]},m1=[{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]]}];function K7(r){for(var a=0;a<m1.length;a++)for(var l=m1[a],u=0;u<l.blocks.length;u++){var s=l.blocks[u];if(r>=s[0]&&r<=s[1])return l.name}return null}var hs=[];m1.forEach(r=>r.blocks.forEach(a=>hs.push(...a)));function pm(r){for(var a=0;a<hs.length;a+=2)if(r>=hs[a]&&r<=hs[a+1])return!0;return!1}var Wt=r=>r+" "+r,dr=80,F7=function(a,l){return"M95,"+(622+a+l)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.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
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+a/2.075+" -"+a+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+a)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+a)+" "+l+"h400000v"+(40+a)+"h-400000z"},I7=function(a,l){return"M263,"+(601+a+l)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+a/2.084+" -"+a+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+a)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+a)+" "+l+"h400000v"+(40+a)+"h-400000z"},J7=function(a,l){return"M983 "+(10+a+l)+`
l`+a/3.13+" -"+a+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+a)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+a)+" "+l+"h400000v"+(40+a)+"h-400000z"},$7=function(a,l){return"M424,"+(2398+a+l)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-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
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+a/4.223+" -"+a+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+a)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+a)+" "+l+`
h400000v`+(40+a)+"h-400000z"},W7=function(a,l){return"M473,"+(2713+a+l)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+a/5.298+" -"+a+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+a)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-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
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+a)+" "+l+"h400000v"+(40+a)+"H1017.7z"},P7=function(a){var l=a/2;return"M400000 "+a+" H0 L"+l+" 0 l65 45 L145 "+(a-80)+" H400000z"},e8=function(a,l,u){var s=u-54-l-a;return"M702 "+(a+l)+"H400000"+(40+a)+`
H742v`+s+`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
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+l+"H400000v"+(40+a)+"H742z"},t8=function(a,l,u){l=1e3*l;var s="";switch(a){case"sqrtMain":s=F7(l,dr);break;case"sqrtSize1":s=I7(l,dr);break;case"sqrtSize2":s=J7(l,dr);break;case"sqrtSize3":s=$7(l,dr);break;case"sqrtSize4":s=W7(l,dr);break;case"sqrtTall":s=e8(l,dr,u)}return s},a8=function(a,l){switch(a){case"⎜":return Wt("M291 0 H417 V"+l+" H291z");case"∣":return Wt("M145 0 H188 V"+l+" H145z");case"∥":return Wt("M145 0 H188 V"+l+" H145z")+Wt("M367 0 H410 V"+l+" H367z");case"⎟":return Wt("M457 0 H583 V"+l+" H457z");case"⎢":return Wt("M319 0 H403 V"+l+" H319z");case"⎥":return Wt("M263 0 H347 V"+l+" H263z");case"⎪":return Wt("M384 0 H504 V"+l+" H384z");case"⏐":return Wt("M312 0 H355 V"+l+" H312z");case"‖":return Wt("M257 0 H300 V"+l+" H257z")+Wt("M478 0 H521 V"+l+" H478z");default:return""}},ad={doubleleftarrow:`M262 157
l10-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
 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
 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
c2 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
 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
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-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
 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
-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
-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
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-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
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
 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
-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
c-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
 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
 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
 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
 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
 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
 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 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
 435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-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
-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
-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
 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
-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
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
 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
-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
 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
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-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
-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
 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Wt("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Wt("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Wt("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Wt("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 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-70-101l-7-8h399905v-40H95l7-8
c28.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
 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Wt("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
c-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
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
 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
 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.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
 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
 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
-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
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.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
60.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
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 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
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.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
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 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
-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
 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
 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
-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
-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
 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-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
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.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
 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-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
 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
 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
-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
-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
 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
-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
 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
m0 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
 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
-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
-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
 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
 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
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-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
 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
-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
 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Wt("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Wt("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Wt("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-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
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
 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
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
 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
c-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
 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
 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
 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
-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
 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
 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-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
 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 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
 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
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
 -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
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-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
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-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
-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
-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
-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,
-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,
-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,
-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,
-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
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-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
s-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
121.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
s2.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
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-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 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 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-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
-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
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,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
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-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
c-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
M0 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
c1.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,
1c0,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,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 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
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-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
c-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
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},n8=function(a,l){switch(a){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+l+` v1759 v84 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+l+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+l+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+l+" v1759 h84z";case"vert":return"M145 15 v585 v"+l+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-l+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+l+" v585 h43z";case"doublevert":return"M145 15 v585 v"+l+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-l+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+l+` v585 h43z
M367 15 v585 v`+l+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-l+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+l+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+l+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+l+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+l+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+l+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+l+` v602 h84z
M403 1759 V0 H319 V1759 v`+l+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+l+` v602 h84z
M347 1759 V0 h-84 V1759 v`+l+" 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
c-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,
-36,557 l0,`+(l+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.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
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(l+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-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,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(l+9)+`
c-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
c-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
c0,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
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(l+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-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.")}};function l8(r){return"toText"in r}class Sr{constructor(a){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=a,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(a){return this.classes.includes(a)}toNode(){for(var a=document.createDocumentFragment(),l=0;l<this.children.length;l++)a.appendChild(this.children[l].toNode());return a}toMarkup(){for(var a="",l=0;l<this.children.length;l++)a+=this.children[l].toMarkup();return a}toText(){return this.children.map(a=>{if(l8(a))return a.toText();throw new Error("Expected MathDomNode with toText, got "+a.constructor.name)}).join("")}}var p1={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},r8={ex:!0,em:!0,mu:!0},vm=function(a){return typeof a!="string"&&(a=a.unit),a in p1||a in r8||a==="ex"},Ot=function(a,l){var u;if(a.unit in p1)u=p1[a.unit]/l.fontMetrics().ptPerEm/l.sizeMultiplier;else if(a.unit==="mu")u=l.fontMetrics().cssEmPerMu;else{var s;if(l.style.isTight()?s=l.havingStyle(l.style.text()):s=l,a.unit==="ex")u=s.fontMetrics().xHeight;else if(a.unit==="em")u=s.fontMetrics().quad;else throw new ae("Invalid unit: '"+a.unit+"'");s!==l&&(u*=s.sizeMultiplier/l.sizeMultiplier)}return Math.min(a.number*u,l.maxSize)},se=function(a){return+a.toFixed(4)+"em"},$n=function(a){return a.filter(l=>l).join(" ")},K1=function(a){var l="";for(var u of Object.keys(a)){var s=a[u];s!==void 0&&(l+=O7(u)+":"+s+";")}return l},gm=function(a,l,u){if(this.classes=a||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=u||{},l){l.style.isTight()&&this.classes.push("mtight");var s=l.getColor();s&&(this.style.color=s)}},ym=function(a){var l=document.createElement(a);l.className=$n(this.classes),Object.assign(l.style,this.style);for(var u of Object.keys(this.attributes))l.setAttribute(u,this.attributes[u]);for(var s=0;s<this.children.length;s++)l.appendChild(this.children[s].toNode());return l},i8=/[\s"'>/=\x00-\x1f]/,bm=function(a){var l="<"+a;this.classes.length&&(l+=' class="'+v0($n(this.classes))+'"');var u=K1(this.style);u&&(l+=' style="'+v0(u)+'"');for(var s of Object.keys(this.attributes)){if(i8.test(s))throw new ae("Invalid attribute name '"+s+"'");l+=" "+s+'="'+v0(this.attributes[s])+'"'}l+=">";for(var f=0;f<this.children.length;f++)l+=this.children[f].toMarkup();return l+="</"+a+">",l};class wr{constructor(a,l,u,s){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,this.italic=void 0,gm.call(this,a,u,s),this.children=l||[]}setAttribute(a,l){this.attributes[a]=l}hasClass(a){return this.classes.includes(a)}toNode(){return ym.call(this,"span")}toMarkup(){return bm.call(this,"span")}}class Ss{constructor(a,l,u,s){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,gm.call(this,l,s),this.children=u||[],this.setAttribute("href",a)}setAttribute(a,l){this.attributes[a]=l}hasClass(a){return this.classes.includes(a)}toNode(){return ym.call(this,"a")}toMarkup(){return bm.call(this,"a")}}class u8{constructor(a,l,u){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=l,this.src=a,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=u}hasClass(a){return this.classes.includes(a)}toNode(){var a=document.createElement("img");return a.src=this.src,a.alt=this.alt,a.className="mord",Object.assign(a.style,this.style),a}toMarkup(){var a='<img src="'+v0(this.src)+'"'+(' alt="'+v0(this.alt)+'"'),l=K1(this.style);return l&&(a+=' style="'+v0(l)+'"'),a+="'/>",a}}var s8={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class P0{constructor(a,l,u,s,f,d,m,v){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=a,this.height=l||0,this.depth=u||0,this.italic=s||0,this.skew=f||0,this.width=d||0,this.classes=m||[],this.style=v||{},this.maxFontSize=0;var g=K7(this.text.charCodeAt(0));g&&this.classes.push(g+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=s8[this.text])}hasClass(a){return this.classes.includes(a)}toNode(){var a=document.createTextNode(this.text),l=null;return this.italic>0&&(l=document.createElement("span"),l.style.marginRight=se(this.italic)),this.classes.length>0&&(l=l||document.createElement("span"),l.className=$n(this.classes)),Object.keys(this.style).length>0&&(l=l||document.createElement("span"),Object.assign(l.style,this.style)),l?(l.appendChild(a),l):a}toMarkup(){var a=!1,l="<span";this.classes.length&&(a=!0,l+=' class="',l+=v0($n(this.classes)),l+='"');var u="";this.italic>0&&(u+="margin-right:"+se(this.italic)+";"),u+=K1(this.style),u&&(a=!0,l+=' style="'+v0(u)+'"');var s=v0(this.text);return a?(l+=">",l+=s,l+="</span>",l):s}}class fn{constructor(a,l){this.children=void 0,this.attributes=void 0,this.children=a||[],this.attributes=l||{}}toNode(){var a="http://www.w3.org/2000/svg",l=document.createElementNS(a,"svg");for(var u of Object.keys(this.attributes))l.setAttribute(u,this.attributes[u]);for(var s=0;s<this.children.length;s++)l.appendChild(this.children[s].toNode());return l}toMarkup(){var a='<svg xmlns="http://www.w3.org/2000/svg"';for(var l of Object.keys(this.attributes))a+=" "+l+'="'+v0(this.attributes[l])+'"';a+=">";for(var u=0;u<this.children.length;u++)a+=this.children[u].toMarkup();return a+="</svg>",a}}class Wn{constructor(a,l){this.pathName=void 0,this.alternate=void 0,this.pathName=a,this.alternate=l}toNode(){var a="http://www.w3.org/2000/svg",l=document.createElementNS(a,"path");return this.alternate?l.setAttribute("d",this.alternate):l.setAttribute("d",ad[this.pathName]),l}toMarkup(){return this.alternate?'<path d="'+v0(this.alternate)+'"/>':'<path d="'+v0(ad[this.pathName])+'"/>'}}class v1{constructor(a){this.attributes=void 0,this.attributes=a||{}}toNode(){var a="http://www.w3.org/2000/svg",l=document.createElementNS(a,"line");for(var u of Object.keys(this.attributes))l.setAttribute(u,this.attributes[u]);return l}toMarkup(){var a="<line";for(var l of Object.keys(this.attributes))a+=" "+l+'="'+v0(this.attributes[l])+'"';return a+="/>",a}}function o8(r){if(r instanceof P0)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function c8(r){if(r instanceof wr)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var f8=r=>r instanceof wr||r instanceof Ss||r instanceof Sr,qa={"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]}},es={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]},nd={Å:"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 h8(r,a){qa[r]=a}function F1(r,a,l){if(!qa[a])throw new Error("Font metrics not found for font: "+a+".");var u=r.charCodeAt(0),s=qa[a][u];if(!s&&r[0]in nd&&(u=nd[r[0]].charCodeAt(0),s=qa[a][u]),!s&&l==="text"&&pm(u)&&(s=qa[a][77]),s)return{depth:s[0],height:s[1],italic:s[2],skew:s[3],width:s[4]}}var Gc={};function d8(r){var a;if(r>=5?a=0:r>=3?a=1:a=2,!Gc[a]){var l=Gc[a]={cssEmPerMu:es.quad[a]/18};for(var u in es)es.hasOwnProperty(u)&&(l[u]=es[u][a])}return Gc[a]}var Mt={math:{},text:{}};function h(r,a,l,u,s,f){Mt[r][s]={font:a,group:l,replace:u},f&&u&&(Mt[r][u]=Mt[r][s])}var p="math",W="text",b="main",E="ams",Ct="accent-token",ye="bin",C0="close",Tr="inner",Ce="mathord",Kt="op-token",ea="open",qi="punct",M="rel",dn="spacing",N="textord";h(p,b,M,"≡","\\equiv",!0);h(p,b,M,"≺","\\prec",!0);h(p,b,M,"≻","\\succ",!0);h(p,b,M,"∼","\\sim",!0);h(p,b,M,"⊥","\\perp");h(p,b,M,"⪯","\\preceq",!0);h(p,b,M,"⪰","\\succeq",!0);h(p,b,M,"≃","\\simeq",!0);h(p,b,M,"∣","\\mid",!0);h(p,b,M,"≪","\\ll",!0);h(p,b,M,"≫","\\gg",!0);h(p,b,M,"≍","\\asymp",!0);h(p,b,M,"∥","\\parallel");h(p,b,M,"⋈","\\bowtie",!0);h(p,b,M,"⌣","\\smile",!0);h(p,b,M,"⊑","\\sqsubseteq",!0);h(p,b,M,"⊒","\\sqsupseteq",!0);h(p,b,M,"≐","\\doteq",!0);h(p,b,M,"⌢","\\frown",!0);h(p,b,M,"∋","\\ni",!0);h(p,b,M,"∝","\\propto",!0);h(p,b,M,"⊢","\\vdash",!0);h(p,b,M,"⊣","\\dashv",!0);h(p,b,M,"∋","\\owns");h(p,b,qi,".","\\ldotp");h(p,b,qi,"⋅","\\cdotp");h(p,b,qi,"⋅","·");h(W,b,N,"⋅","·");h(p,b,N,"#","\\#");h(W,b,N,"#","\\#");h(p,b,N,"&","\\&");h(W,b,N,"&","\\&");h(p,b,N,"ℵ","\\aleph",!0);h(p,b,N,"∀","\\forall",!0);h(p,b,N,"ℏ","\\hbar",!0);h(p,b,N,"∃","\\exists",!0);h(p,b,N,"∇","\\nabla",!0);h(p,b,N,"♭","\\flat",!0);h(p,b,N,"ℓ","\\ell",!0);h(p,b,N,"♮","\\natural",!0);h(p,b,N,"♣","\\clubsuit",!0);h(p,b,N,"℘","\\wp",!0);h(p,b,N,"♯","\\sharp",!0);h(p,b,N,"♢","\\diamondsuit",!0);h(p,b,N,"ℜ","\\Re",!0);h(p,b,N,"♡","\\heartsuit",!0);h(p,b,N,"ℑ","\\Im",!0);h(p,b,N,"♠","\\spadesuit",!0);h(p,b,N,"§","\\S",!0);h(W,b,N,"§","\\S");h(p,b,N,"¶","\\P",!0);h(W,b,N,"¶","\\P");h(p,b,N,"†","\\dag");h(W,b,N,"†","\\dag");h(W,b,N,"†","\\textdagger");h(p,b,N,"‡","\\ddag");h(W,b,N,"‡","\\ddag");h(W,b,N,"‡","\\textdaggerdbl");h(p,b,C0,"⎱","\\rmoustache",!0);h(p,b,ea,"⎰","\\lmoustache",!0);h(p,b,C0,"⟯","\\rgroup",!0);h(p,b,ea,"⟮","\\lgroup",!0);h(p,b,ye,"∓","\\mp",!0);h(p,b,ye,"⊖","\\ominus",!0);h(p,b,ye,"⊎","\\uplus",!0);h(p,b,ye,"⊓","\\sqcap",!0);h(p,b,ye,"∗","\\ast");h(p,b,ye,"⊔","\\sqcup",!0);h(p,b,ye,"◯","\\bigcirc",!0);h(p,b,ye,"∙","\\bullet",!0);h(p,b,ye,"‡","\\ddagger");h(p,b,ye,"≀","\\wr",!0);h(p,b,ye,"⨿","\\amalg");h(p,b,ye,"&","\\And");h(p,b,M,"⟵","\\longleftarrow",!0);h(p,b,M,"⇐","\\Leftarrow",!0);h(p,b,M,"⟸","\\Longleftarrow",!0);h(p,b,M,"⟶","\\longrightarrow",!0);h(p,b,M,"⇒","\\Rightarrow",!0);h(p,b,M,"⟹","\\Longrightarrow",!0);h(p,b,M,"↔","\\leftrightarrow",!0);h(p,b,M,"⟷","\\longleftrightarrow",!0);h(p,b,M,"⇔","\\Leftrightarrow",!0);h(p,b,M,"⟺","\\Longleftrightarrow",!0);h(p,b,M,"↦","\\mapsto",!0);h(p,b,M,"⟼","\\longmapsto",!0);h(p,b,M,"↗","\\nearrow",!0);h(p,b,M,"↩","\\hookleftarrow",!0);h(p,b,M,"↪","\\hookrightarrow",!0);h(p,b,M,"↘","\\searrow",!0);h(p,b,M,"↼","\\leftharpoonup",!0);h(p,b,M,"⇀","\\rightharpoonup",!0);h(p,b,M,"↙","\\swarrow",!0);h(p,b,M,"↽","\\leftharpoondown",!0);h(p,b,M,"⇁","\\rightharpoondown",!0);h(p,b,M,"↖","\\nwarrow",!0);h(p,b,M,"⇌","\\rightleftharpoons",!0);h(p,E,M,"≮","\\nless",!0);h(p,E,M,"","\\@nleqslant");h(p,E,M,"","\\@nleqq");h(p,E,M,"⪇","\\lneq",!0);h(p,E,M,"≨","\\lneqq",!0);h(p,E,M,"","\\@lvertneqq");h(p,E,M,"⋦","\\lnsim",!0);h(p,E,M,"⪉","\\lnapprox",!0);h(p,E,M,"⊀","\\nprec",!0);h(p,E,M,"⋠","\\npreceq",!0);h(p,E,M,"⋨","\\precnsim",!0);h(p,E,M,"⪹","\\precnapprox",!0);h(p,E,M,"≁","\\nsim",!0);h(p,E,M,"","\\@nshortmid");h(p,E,M,"∤","\\nmid",!0);h(p,E,M,"⊬","\\nvdash",!0);h(p,E,M,"⊭","\\nvDash",!0);h(p,E,M,"⋪","\\ntriangleleft");h(p,E,M,"⋬","\\ntrianglelefteq",!0);h(p,E,M,"⊊","\\subsetneq",!0);h(p,E,M,"","\\@varsubsetneq");h(p,E,M,"⫋","\\subsetneqq",!0);h(p,E,M,"","\\@varsubsetneqq");h(p,E,M,"≯","\\ngtr",!0);h(p,E,M,"","\\@ngeqslant");h(p,E,M,"","\\@ngeqq");h(p,E,M,"⪈","\\gneq",!0);h(p,E,M,"≩","\\gneqq",!0);h(p,E,M,"","\\@gvertneqq");h(p,E,M,"⋧","\\gnsim",!0);h(p,E,M,"⪊","\\gnapprox",!0);h(p,E,M,"⊁","\\nsucc",!0);h(p,E,M,"⋡","\\nsucceq",!0);h(p,E,M,"⋩","\\succnsim",!0);h(p,E,M,"⪺","\\succnapprox",!0);h(p,E,M,"≆","\\ncong",!0);h(p,E,M,"","\\@nshortparallel");h(p,E,M,"∦","\\nparallel",!0);h(p,E,M,"⊯","\\nVDash",!0);h(p,E,M,"⋫","\\ntriangleright");h(p,E,M,"⋭","\\ntrianglerighteq",!0);h(p,E,M,"","\\@nsupseteqq");h(p,E,M,"⊋","\\supsetneq",!0);h(p,E,M,"","\\@varsupsetneq");h(p,E,M,"⫌","\\supsetneqq",!0);h(p,E,M,"","\\@varsupsetneqq");h(p,E,M,"⊮","\\nVdash",!0);h(p,E,M,"⪵","\\precneqq",!0);h(p,E,M,"⪶","\\succneqq",!0);h(p,E,M,"","\\@nsubseteqq");h(p,E,ye,"⊴","\\unlhd");h(p,E,ye,"⊵","\\unrhd");h(p,E,M,"↚","\\nleftarrow",!0);h(p,E,M,"↛","\\nrightarrow",!0);h(p,E,M,"⇍","\\nLeftarrow",!0);h(p,E,M,"⇏","\\nRightarrow",!0);h(p,E,M,"↮","\\nleftrightarrow",!0);h(p,E,M,"⇎","\\nLeftrightarrow",!0);h(p,E,M,"△","\\vartriangle");h(p,E,N,"ℏ","\\hslash");h(p,E,N,"▽","\\triangledown");h(p,E,N,"◊","\\lozenge");h(p,E,N,"Ⓢ","\\circledS");h(p,E,N,"®","\\circledR");h(W,E,N,"®","\\circledR");h(p,E,N,"∡","\\measuredangle",!0);h(p,E,N,"∄","\\nexists");h(p,E,N,"℧","\\mho");h(p,E,N,"Ⅎ","\\Finv",!0);h(p,E,N,"⅁","\\Game",!0);h(p,E,N,"‵","\\backprime");h(p,E,N,"▲","\\blacktriangle");h(p,E,N,"▼","\\blacktriangledown");h(p,E,N,"■","\\blacksquare");h(p,E,N,"⧫","\\blacklozenge");h(p,E,N,"★","\\bigstar");h(p,E,N,"∢","\\sphericalangle",!0);h(p,E,N,"∁","\\complement",!0);h(p,E,N,"ð","\\eth",!0);h(W,b,N,"ð","ð");h(p,E,N,"╱","\\diagup");h(p,E,N,"╲","\\diagdown");h(p,E,N,"□","\\square");h(p,E,N,"□","\\Box");h(p,E,N,"◊","\\Diamond");h(p,E,N,"¥","\\yen",!0);h(W,E,N,"¥","\\yen",!0);h(p,E,N,"✓","\\checkmark",!0);h(W,E,N,"✓","\\checkmark");h(p,E,N,"ℶ","\\beth",!0);h(p,E,N,"ℸ","\\daleth",!0);h(p,E,N,"ℷ","\\gimel",!0);h(p,E,N,"ϝ","\\digamma",!0);h(p,E,N,"ϰ","\\varkappa");h(p,E,ea,"┌","\\@ulcorner",!0);h(p,E,C0,"┐","\\@urcorner",!0);h(p,E,ea,"└","\\@llcorner",!0);h(p,E,C0,"┘","\\@lrcorner",!0);h(p,E,M,"≦","\\leqq",!0);h(p,E,M,"⩽","\\leqslant",!0);h(p,E,M,"⪕","\\eqslantless",!0);h(p,E,M,"≲","\\lesssim",!0);h(p,E,M,"⪅","\\lessapprox",!0);h(p,E,M,"≊","\\approxeq",!0);h(p,E,ye,"⋖","\\lessdot");h(p,E,M,"⋘","\\lll",!0);h(p,E,M,"≶","\\lessgtr",!0);h(p,E,M,"⋚","\\lesseqgtr",!0);h(p,E,M,"⪋","\\lesseqqgtr",!0);h(p,E,M,"≑","\\doteqdot");h(p,E,M,"≓","\\risingdotseq",!0);h(p,E,M,"≒","\\fallingdotseq",!0);h(p,E,M,"∽","\\backsim",!0);h(p,E,M,"⋍","\\backsimeq",!0);h(p,E,M,"⫅","\\subseteqq",!0);h(p,E,M,"⋐","\\Subset",!0);h(p,E,M,"⊏","\\sqsubset",!0);h(p,E,M,"≼","\\preccurlyeq",!0);h(p,E,M,"⋞","\\curlyeqprec",!0);h(p,E,M,"≾","\\precsim",!0);h(p,E,M,"⪷","\\precapprox",!0);h(p,E,M,"⊲","\\vartriangleleft");h(p,E,M,"⊴","\\trianglelefteq");h(p,E,M,"⊨","\\vDash",!0);h(p,E,M,"⊪","\\Vvdash",!0);h(p,E,M,"⌣","\\smallsmile");h(p,E,M,"⌢","\\smallfrown");h(p,E,M,"≏","\\bumpeq",!0);h(p,E,M,"≎","\\Bumpeq",!0);h(p,E,M,"≧","\\geqq",!0);h(p,E,M,"⩾","\\geqslant",!0);h(p,E,M,"⪖","\\eqslantgtr",!0);h(p,E,M,"≳","\\gtrsim",!0);h(p,E,M,"⪆","\\gtrapprox",!0);h(p,E,ye,"⋗","\\gtrdot");h(p,E,M,"⋙","\\ggg",!0);h(p,E,M,"≷","\\gtrless",!0);h(p,E,M,"⋛","\\gtreqless",!0);h(p,E,M,"⪌","\\gtreqqless",!0);h(p,E,M,"≖","\\eqcirc",!0);h(p,E,M,"≗","\\circeq",!0);h(p,E,M,"≜","\\triangleq",!0);h(p,E,M,"∼","\\thicksim");h(p,E,M,"≈","\\thickapprox");h(p,E,M,"⫆","\\supseteqq",!0);h(p,E,M,"⋑","\\Supset",!0);h(p,E,M,"⊐","\\sqsupset",!0);h(p,E,M,"≽","\\succcurlyeq",!0);h(p,E,M,"⋟","\\curlyeqsucc",!0);h(p,E,M,"≿","\\succsim",!0);h(p,E,M,"⪸","\\succapprox",!0);h(p,E,M,"⊳","\\vartriangleright");h(p,E,M,"⊵","\\trianglerighteq");h(p,E,M,"⊩","\\Vdash",!0);h(p,E,M,"∣","\\shortmid");h(p,E,M,"∥","\\shortparallel");h(p,E,M,"≬","\\between",!0);h(p,E,M,"⋔","\\pitchfork",!0);h(p,E,M,"∝","\\varpropto");h(p,E,M,"◀","\\blacktriangleleft");h(p,E,M,"∴","\\therefore",!0);h(p,E,M,"∍","\\backepsilon");h(p,E,M,"▶","\\blacktriangleright");h(p,E,M,"∵","\\because",!0);h(p,E,M,"⋘","\\llless");h(p,E,M,"⋙","\\gggtr");h(p,E,ye,"⊲","\\lhd");h(p,E,ye,"⊳","\\rhd");h(p,E,M,"≂","\\eqsim",!0);h(p,b,M,"⋈","\\Join");h(p,E,M,"≑","\\Doteq",!0);h(p,E,ye,"∔","\\dotplus",!0);h(p,E,ye,"∖","\\smallsetminus");h(p,E,ye,"⋒","\\Cap",!0);h(p,E,ye,"⋓","\\Cup",!0);h(p,E,ye,"⩞","\\doublebarwedge",!0);h(p,E,ye,"⊟","\\boxminus",!0);h(p,E,ye,"⊞","\\boxplus",!0);h(p,E,ye,"⋇","\\divideontimes",!0);h(p,E,ye,"⋉","\\ltimes",!0);h(p,E,ye,"⋊","\\rtimes",!0);h(p,E,ye,"⋋","\\leftthreetimes",!0);h(p,E,ye,"⋌","\\rightthreetimes",!0);h(p,E,ye,"⋏","\\curlywedge",!0);h(p,E,ye,"⋎","\\curlyvee",!0);h(p,E,ye,"⊝","\\circleddash",!0);h(p,E,ye,"⊛","\\circledast",!0);h(p,E,ye,"⋅","\\centerdot");h(p,E,ye,"⊺","\\intercal",!0);h(p,E,ye,"⋒","\\doublecap");h(p,E,ye,"⋓","\\doublecup");h(p,E,ye,"⊠","\\boxtimes",!0);h(p,E,M,"⇢","\\dashrightarrow",!0);h(p,E,M,"⇠","\\dashleftarrow",!0);h(p,E,M,"⇇","\\leftleftarrows",!0);h(p,E,M,"⇆","\\leftrightarrows",!0);h(p,E,M,"⇚","\\Lleftarrow",!0);h(p,E,M,"↞","\\twoheadleftarrow",!0);h(p,E,M,"↢","\\leftarrowtail",!0);h(p,E,M,"↫","\\looparrowleft",!0);h(p,E,M,"⇋","\\leftrightharpoons",!0);h(p,E,M,"↶","\\curvearrowleft",!0);h(p,E,M,"↺","\\circlearrowleft",!0);h(p,E,M,"↰","\\Lsh",!0);h(p,E,M,"⇈","\\upuparrows",!0);h(p,E,M,"↿","\\upharpoonleft",!0);h(p,E,M,"⇃","\\downharpoonleft",!0);h(p,b,M,"⊶","\\origof",!0);h(p,b,M,"⊷","\\imageof",!0);h(p,E,M,"⊸","\\multimap",!0);h(p,E,M,"↭","\\leftrightsquigarrow",!0);h(p,E,M,"⇉","\\rightrightarrows",!0);h(p,E,M,"⇄","\\rightleftarrows",!0);h(p,E,M,"↠","\\twoheadrightarrow",!0);h(p,E,M,"↣","\\rightarrowtail",!0);h(p,E,M,"↬","\\looparrowright",!0);h(p,E,M,"↷","\\curvearrowright",!0);h(p,E,M,"↻","\\circlearrowright",!0);h(p,E,M,"↱","\\Rsh",!0);h(p,E,M,"⇊","\\downdownarrows",!0);h(p,E,M,"↾","\\upharpoonright",!0);h(p,E,M,"⇂","\\downharpoonright",!0);h(p,E,M,"⇝","\\rightsquigarrow",!0);h(p,E,M,"⇝","\\leadsto");h(p,E,M,"⇛","\\Rrightarrow",!0);h(p,E,M,"↾","\\restriction");h(p,b,N,"‘","`");h(p,b,N,"$","\\$");h(W,b,N,"$","\\$");h(W,b,N,"$","\\textdollar");h(p,b,N,"%","\\%");h(W,b,N,"%","\\%");h(p,b,N,"_","\\_");h(W,b,N,"_","\\_");h(W,b,N,"_","\\textunderscore");h(p,b,N,"∠","\\angle",!0);h(p,b,N,"∞","\\infty",!0);h(p,b,N,"′","\\prime");h(p,b,N,"△","\\triangle");h(p,b,N,"Γ","\\Gamma",!0);h(p,b,N,"Δ","\\Delta",!0);h(p,b,N,"Θ","\\Theta",!0);h(p,b,N,"Λ","\\Lambda",!0);h(p,b,N,"Ξ","\\Xi",!0);h(p,b,N,"Π","\\Pi",!0);h(p,b,N,"Σ","\\Sigma",!0);h(p,b,N,"Υ","\\Upsilon",!0);h(p,b,N,"Φ","\\Phi",!0);h(p,b,N,"Ψ","\\Psi",!0);h(p,b,N,"Ω","\\Omega",!0);h(p,b,N,"A","Α");h(p,b,N,"B","Β");h(p,b,N,"E","Ε");h(p,b,N,"Z","Ζ");h(p,b,N,"H","Η");h(p,b,N,"I","Ι");h(p,b,N,"K","Κ");h(p,b,N,"M","Μ");h(p,b,N,"N","Ν");h(p,b,N,"O","Ο");h(p,b,N,"P","Ρ");h(p,b,N,"T","Τ");h(p,b,N,"X","Χ");h(p,b,N,"¬","\\neg",!0);h(p,b,N,"¬","\\lnot");h(p,b,N,"⊤","\\top");h(p,b,N,"⊥","\\bot");h(p,b,N,"∅","\\emptyset");h(p,E,N,"∅","\\varnothing");h(p,b,Ce,"α","\\alpha",!0);h(p,b,Ce,"β","\\beta",!0);h(p,b,Ce,"γ","\\gamma",!0);h(p,b,Ce,"δ","\\delta",!0);h(p,b,Ce,"ϵ","\\epsilon",!0);h(p,b,Ce,"ζ","\\zeta",!0);h(p,b,Ce,"η","\\eta",!0);h(p,b,Ce,"θ","\\theta",!0);h(p,b,Ce,"ι","\\iota",!0);h(p,b,Ce,"κ","\\kappa",!0);h(p,b,Ce,"λ","\\lambda",!0);h(p,b,Ce,"μ","\\mu",!0);h(p,b,Ce,"ν","\\nu",!0);h(p,b,Ce,"ξ","\\xi",!0);h(p,b,Ce,"ο","\\omicron",!0);h(p,b,Ce,"π","\\pi",!0);h(p,b,Ce,"ρ","\\rho",!0);h(p,b,Ce,"σ","\\sigma",!0);h(p,b,Ce,"τ","\\tau",!0);h(p,b,Ce,"υ","\\upsilon",!0);h(p,b,Ce,"ϕ","\\phi",!0);h(p,b,Ce,"χ","\\chi",!0);h(p,b,Ce,"ψ","\\psi",!0);h(p,b,Ce,"ω","\\omega",!0);h(p,b,Ce,"ε","\\varepsilon",!0);h(p,b,Ce,"ϑ","\\vartheta",!0);h(p,b,Ce,"ϖ","\\varpi",!0);h(p,b,Ce,"ϱ","\\varrho",!0);h(p,b,Ce,"ς","\\varsigma",!0);h(p,b,Ce,"φ","\\varphi",!0);h(p,b,ye,"∗","*",!0);h(p,b,ye,"+","+");h(p,b,ye,"−","-",!0);h(p,b,ye,"⋅","\\cdot",!0);h(p,b,ye,"∘","\\circ",!0);h(p,b,ye,"÷","\\div",!0);h(p,b,ye,"±","\\pm",!0);h(p,b,ye,"×","\\times",!0);h(p,b,ye,"∩","\\cap",!0);h(p,b,ye,"∪","\\cup",!0);h(p,b,ye,"∖","\\setminus",!0);h(p,b,ye,"∧","\\land");h(p,b,ye,"∨","\\lor");h(p,b,ye,"∧","\\wedge",!0);h(p,b,ye,"∨","\\vee",!0);h(p,b,N,"√","\\surd");h(p,b,ea,"⟨","\\langle",!0);h(p,b,ea,"∣","\\lvert");h(p,b,ea,"∥","\\lVert");h(p,b,C0,"?","?");h(p,b,C0,"!","!");h(p,b,C0,"⟩","\\rangle",!0);h(p,b,C0,"∣","\\rvert");h(p,b,C0,"∥","\\rVert");h(p,b,M,"=","=");h(p,b,M,":",":");h(p,b,M,"≈","\\approx",!0);h(p,b,M,"≅","\\cong",!0);h(p,b,M,"≥","\\ge");h(p,b,M,"≥","\\geq",!0);h(p,b,M,"←","\\gets");h(p,b,M,">","\\gt",!0);h(p,b,M,"∈","\\in",!0);h(p,b,M,"","\\@not");h(p,b,M,"⊂","\\subset",!0);h(p,b,M,"⊃","\\supset",!0);h(p,b,M,"⊆","\\subseteq",!0);h(p,b,M,"⊇","\\supseteq",!0);h(p,E,M,"⊈","\\nsubseteq",!0);h(p,E,M,"⊉","\\nsupseteq",!0);h(p,b,M,"⊨","\\models");h(p,b,M,"←","\\leftarrow",!0);h(p,b,M,"≤","\\le");h(p,b,M,"≤","\\leq",!0);h(p,b,M,"<","\\lt",!0);h(p,b,M,"→","\\rightarrow",!0);h(p,b,M,"→","\\to");h(p,E,M,"≱","\\ngeq",!0);h(p,E,M,"≰","\\nleq",!0);h(p,b,dn," ","\\ ");h(p,b,dn," ","\\space");h(p,b,dn," ","\\nobreakspace");h(W,b,dn," ","\\ ");h(W,b,dn," "," ");h(W,b,dn," ","\\space");h(W,b,dn," ","\\nobreakspace");h(p,b,dn,"","\\nobreak");h(p,b,dn,"","\\allowbreak");h(p,b,qi,",",",");h(p,b,qi,";",";");h(p,E,ye,"⊼","\\barwedge",!0);h(p,E,ye,"⊻","\\veebar",!0);h(p,b,ye,"⊙","\\odot",!0);h(p,b,ye,"⊕","\\oplus",!0);h(p,b,ye,"⊗","\\otimes",!0);h(p,b,N,"∂","\\partial",!0);h(p,b,ye,"⊘","\\oslash",!0);h(p,E,ye,"⊚","\\circledcirc",!0);h(p,E,ye,"⊡","\\boxdot",!0);h(p,b,ye,"△","\\bigtriangleup");h(p,b,ye,"▽","\\bigtriangledown");h(p,b,ye,"†","\\dagger");h(p,b,ye,"⋄","\\diamond");h(p,b,ye,"⋆","\\star");h(p,b,ye,"◃","\\triangleleft");h(p,b,ye,"▹","\\triangleright");h(p,b,ea,"{","\\{");h(W,b,N,"{","\\{");h(W,b,N,"{","\\textbraceleft");h(p,b,C0,"}","\\}");h(W,b,N,"}","\\}");h(W,b,N,"}","\\textbraceright");h(p,b,ea,"{","\\lbrace");h(p,b,C0,"}","\\rbrace");h(p,b,ea,"[","\\lbrack",!0);h(W,b,N,"[","\\lbrack",!0);h(p,b,C0,"]","\\rbrack",!0);h(W,b,N,"]","\\rbrack",!0);h(p,b,ea,"(","\\lparen",!0);h(p,b,C0,")","\\rparen",!0);h(W,b,N,"<","\\textless",!0);h(W,b,N,">","\\textgreater",!0);h(p,b,ea,"⌊","\\lfloor",!0);h(p,b,C0,"⌋","\\rfloor",!0);h(p,b,ea,"⌈","\\lceil",!0);h(p,b,C0,"⌉","\\rceil",!0);h(p,b,N,"\\","\\backslash");h(p,b,N,"∣","|");h(p,b,N,"∣","\\vert");h(W,b,N,"|","\\textbar",!0);h(p,b,N,"∥","\\|");h(p,b,N,"∥","\\Vert");h(W,b,N,"∥","\\textbardbl");h(W,b,N,"~","\\textasciitilde");h(W,b,N,"\\","\\textbackslash");h(W,b,N,"^","\\textasciicircum");h(p,b,M,"↑","\\uparrow",!0);h(p,b,M,"⇑","\\Uparrow",!0);h(p,b,M,"↓","\\downarrow",!0);h(p,b,M,"⇓","\\Downarrow",!0);h(p,b,M,"↕","\\updownarrow",!0);h(p,b,M,"⇕","\\Updownarrow",!0);h(p,b,Kt,"∐","\\coprod");h(p,b,Kt,"⋁","\\bigvee");h(p,b,Kt,"⋀","\\bigwedge");h(p,b,Kt,"⨄","\\biguplus");h(p,b,Kt,"⋂","\\bigcap");h(p,b,Kt,"⋃","\\bigcup");h(p,b,Kt,"∫","\\int");h(p,b,Kt,"∫","\\intop");h(p,b,Kt,"∬","\\iint");h(p,b,Kt,"∭","\\iiint");h(p,b,Kt,"∏","\\prod");h(p,b,Kt,"∑","\\sum");h(p,b,Kt,"⨂","\\bigotimes");h(p,b,Kt,"⨁","\\bigoplus");h(p,b,Kt,"⨀","\\bigodot");h(p,b,Kt,"∮","\\oint");h(p,b,Kt,"∯","\\oiint");h(p,b,Kt,"∰","\\oiiint");h(p,b,Kt,"⨆","\\bigsqcup");h(p,b,Kt,"∫","\\smallint");h(W,b,Tr,"…","\\textellipsis");h(p,b,Tr,"…","\\mathellipsis");h(W,b,Tr,"…","\\ldots",!0);h(p,b,Tr,"…","\\ldots",!0);h(p,b,Tr,"⋯","\\@cdots",!0);h(p,b,Tr,"⋱","\\ddots",!0);h(p,b,N,"⋮","\\varvdots");h(W,b,N,"⋮","\\varvdots");h(p,b,Ct,"ˊ","\\acute");h(p,b,Ct,"ˋ","\\grave");h(p,b,Ct,"¨","\\ddot");h(p,b,Ct,"~","\\tilde");h(p,b,Ct,"ˉ","\\bar");h(p,b,Ct,"˘","\\breve");h(p,b,Ct,"ˇ","\\check");h(p,b,Ct,"^","\\hat");h(p,b,Ct,"⃗","\\vec");h(p,b,Ct,"˙","\\dot");h(p,b,Ct,"˚","\\mathring");h(p,b,Ce,"","\\@imath");h(p,b,Ce,"","\\@jmath");h(p,b,N,"ı","ı");h(p,b,N,"ȷ","ȷ");h(W,b,N,"ı","\\i",!0);h(W,b,N,"ȷ","\\j",!0);h(W,b,N,"ß","\\ss",!0);h(W,b,N,"æ","\\ae",!0);h(W,b,N,"œ","\\oe",!0);h(W,b,N,"ø","\\o",!0);h(W,b,N,"Æ","\\AE",!0);h(W,b,N,"Œ","\\OE",!0);h(W,b,N,"Ø","\\O",!0);h(W,b,Ct,"ˊ","\\'");h(W,b,Ct,"ˋ","\\`");h(W,b,Ct,"ˆ","\\^");h(W,b,Ct,"˜","\\~");h(W,b,Ct,"ˉ","\\=");h(W,b,Ct,"˘","\\u");h(W,b,Ct,"˙","\\.");h(W,b,Ct,"¸","\\c");h(W,b,Ct,"˚","\\r");h(W,b,Ct,"ˇ","\\v");h(W,b,Ct,"¨",'\\"');h(W,b,Ct,"˝","\\H");h(W,b,Ct,"◯","\\textcircled");var xm={"--":!0,"---":!0,"``":!0,"''":!0};h(W,b,N,"–","--",!0);h(W,b,N,"–","\\textendash");h(W,b,N,"—","---",!0);h(W,b,N,"—","\\textemdash");h(W,b,N,"‘","`",!0);h(W,b,N,"‘","\\textquoteleft");h(W,b,N,"’","'",!0);h(W,b,N,"’","\\textquoteright");h(W,b,N,"“","``",!0);h(W,b,N,"“","\\textquotedblleft");h(W,b,N,"”","''",!0);h(W,b,N,"”","\\textquotedblright");h(p,b,N,"°","\\degree",!0);h(W,b,N,"°","\\degree");h(W,b,N,"°","\\textdegree",!0);h(p,b,N,"£","\\pounds");h(p,b,N,"£","\\mathsterling",!0);h(W,b,N,"£","\\pounds");h(W,b,N,"£","\\textsterling",!0);h(p,E,N,"✠","\\maltese");h(W,E,N,"✠","\\maltese");var ld='0123456789/@."';for(var Yc=0;Yc<ld.length;Yc++){var rd=ld.charAt(Yc);h(p,b,N,rd,rd)}var id='0123456789!@*()-=+";:?/.,';for(var Xc=0;Xc<id.length;Xc++){var ud=id.charAt(Xc);h(W,b,N,ud,ud)}var gs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Zc=0;Zc<gs.length;Zc++){var ts=gs.charAt(Zc);h(p,b,Ce,ts,ts),h(W,b,N,ts,ts)}h(p,E,N,"C","ℂ");h(W,E,N,"C","ℂ");h(p,E,N,"H","ℍ");h(W,E,N,"H","ℍ");h(p,E,N,"N","ℕ");h(W,E,N,"N","ℕ");h(p,E,N,"P","ℙ");h(W,E,N,"P","ℙ");h(p,E,N,"Q","ℚ");h(W,E,N,"Q","ℚ");h(p,E,N,"R","ℝ");h(W,E,N,"R","ℝ");h(p,E,N,"Z","ℤ");h(W,E,N,"Z","ℤ");h(p,b,Ce,"h","ℎ");h(W,b,Ce,"h","ℎ");var Re;for(var T0=0;T0<gs.length;T0++){var Lt=gs.charAt(T0);Re=String.fromCharCode(55349,56320+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re),Re=String.fromCharCode(55349,56372+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re),Re=String.fromCharCode(55349,56424+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re),Re=String.fromCharCode(55349,56580+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re),Re=String.fromCharCode(55349,56684+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re),Re=String.fromCharCode(55349,56736+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re),Re=String.fromCharCode(55349,56788+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re),Re=String.fromCharCode(55349,56840+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re),Re=String.fromCharCode(55349,56944+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re),T0<26&&(Re=String.fromCharCode(55349,56632+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re),Re=String.fromCharCode(55349,56476+T0),h(p,b,Ce,Lt,Re),h(W,b,N,Lt,Re))}Re="𝕜";h(p,b,Ce,"k",Re);h(W,b,N,"k",Re);for(var Al=0;Al<10;Al++){var Kn=Al.toString();Re=String.fromCharCode(55349,57294+Al),h(p,b,Ce,Kn,Re),h(W,b,N,Kn,Re),Re=String.fromCharCode(55349,57314+Al),h(p,b,Ce,Kn,Re),h(W,b,N,Kn,Re),Re=String.fromCharCode(55349,57324+Al),h(p,b,Ce,Kn,Re),h(W,b,N,Kn,Re),Re=String.fromCharCode(55349,57334+Al),h(p,b,Ce,Kn,Re),h(W,b,N,Kn,Re)}var g1="ÐÞþ";for(var Vc=0;Vc<g1.length;Vc++){var as=g1.charAt(Vc);h(p,b,Ce,as,as),h(W,b,N,as,as)}var y1={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},sd={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},od={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},m8={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},kl={mathClass:"",textClass:"",font:""},cd={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},fd={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},hd={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},b1={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},x1={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},dd={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},S1={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},md=[y1,y1,sd,sd,od,od,m8,kl,kl,kl,cd,cd,fd,fd,hd,hd,b1,b1,x1,x1,dd,dd,kl,kl,S1,S1],p8=[y1,kl,b1,x1,S1],v8=r=>{var a=r.charCodeAt(0),l=r.charCodeAt(1),u=(a-55296)*1024+(l-56320)+65536;if(119808<=u&&u<120484){var s=Math.floor((u-119808)/26);return md[s]}else if(120782<=u&&u<=120831){var f=Math.floor((u-120782)/10);return p8[f]}else{if(u===120485||u===120486)return md[0];if(120486<u&&u<120782)return kl;throw new ae("Unsupported character: "+r)}},ws=function(a,l,u){if(Mt[u][a]){var s=Mt[u][a].replace;s&&(a=s)}return{value:a,metrics:F1(a,l,u)}},z0=function(a,l,u,s,f){var d=ws(a,l,u),m=d.metrics;a=d.value;var v;if(m){var g=m.italic;(u==="text"||s&&s.font==="mathit")&&(g=0),v=new P0(a,m.height,m.depth,g,m.skew,m.width,f)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+a+"' in style '"+l+"' and mode '"+u+"'")),v=new P0(a,0,0,0,0,0,f);if(s){v.maxFontSize=s.sizeMultiplier,s.style.isTight()&&v.classes.push("mtight");var x=s.getColor();x&&(v.style.color=x)}return v},I1=function(a,l,u,s){return s===void 0&&(s=[]),u.font==="boldsymbol"&&ws(a,"Main-Bold",l).metrics?z0(a,"Main-Bold",l,u,s.concat(["mathbf"])):a==="\\"||Mt[l][a].font==="main"?z0(a,"Main-Regular",l,u,s):z0(a,"AMS-Regular",l,u,s.concat(["amsrm"]))},g8=function(a,l,u){return u!=="textord"&&ws(a,"Math-BoldItalic",l).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ts=function(a,l){var u=a.type==="mathord"?"mathord":"textord",s=a.mode,f=a.text,d=["mord"],{font:m,fontFamily:v,fontWeight:g,fontShape:x}=l,T=s==="math"||s==="text"&&!!m,A=T?m:v,D="",R="";if(f.charCodeAt(0)===55349){var U=v8(f);D=U.font,R=U[s+"Class"]}if(D)return z0(f,D,s,l,d.concat(R));if(A){var F,I;if(A==="boldsymbol"){var fe=g8(f,s,u);F=fe.fontName,I=[fe.fontClass]}else T?(F=w1[m].fontName,I=[m]):(F=ns(v,g,x),I=[v,g,x]);if(ws(f,F,s).metrics)return z0(f,F,s,l,d.concat(I));if(xm.hasOwnProperty(f)&&F.slice(0,10)==="Typewriter"){for(var oe=[],re=0;re<f.length;re++)oe.push(z0(f[re],F,s,l,d.concat(I)));return mn(oe)}}if(u==="mathord")return z0(f,"Math-Italic",s,l,d.concat(["mathnormal"]));if(u==="textord"){var ie=Mt[s][f]&&Mt[s][f].font;if(ie==="ams"){var le=ns("amsrm",g,x);return z0(f,le,s,l,d.concat("amsrm",g,x))}else if(ie==="main"||!ie){var X=ns("textrm",g,x);return z0(f,X,s,l,d.concat(g,x))}else{var we=ns(ie,g,x);return z0(f,we,s,l,d.concat(we,g,x))}}else throw new Error("unexpected type: "+u+" in makeOrd")},y8=(r,a)=>{if($n(r.classes)!==$n(a.classes)||r.skew!==a.skew||r.maxFontSize!==a.maxFontSize||r.italic!==0&&r.hasClass("mathnormal"))return!1;if(r.classes.length===1){var l=r.classes[0];if(l==="mbin"||l==="mord")return!1}for(var u of Object.keys(r.style))if(r.style[u]!==a.style[u])return!1;for(var s of Object.keys(a.style))if(r.style[s]!==a.style[s])return!1;return!0},Sm=r=>{for(var a=0;a<r.length-1;a++){var l=r[a],u=r[a+1];l instanceof P0&&u instanceof P0&&y8(l,u)&&(l.text+=u.text,l.height=Math.max(l.height,u.height),l.depth=Math.max(l.depth,u.depth),l.italic=u.italic,r.splice(a+1,1),a--)}return r},J1=function(a){for(var l=0,u=0,s=0,f=0;f<a.children.length;f++){var d=a.children[f];d.height>l&&(l=d.height),d.depth>u&&(u=d.depth),d.maxFontSize>s&&(s=d.maxFontSize)}a.height=l,a.depth=u,a.maxFontSize=s},ee=function(a,l,u,s){var f=new wr(a,l,u,s);return J1(f),f},Pn=(r,a,l,u)=>new wr(r,a,l,u),br=function(a,l,u){var s=ee([a],[],l);return s.height=Math.max(u||l.fontMetrics().defaultRuleThickness,l.minRuleThickness),s.style.borderBottomWidth=se(s.height),s.maxFontSize=1,s},b8=function(a,l,u,s){var f=new Ss(a,l,u,s);return J1(f),f},mn=function(a){var l=new Sr(a);return J1(l),l},xr=function(a,l){return a instanceof Sr?ee([],[a],l):a},x8=function(a){if(a.positionType==="individualShift"){for(var l=a.children,u=[l[0]],s=-l[0].shift-l[0].elem.depth,f=s,d=1;d<l.length;d++){var m=-l[d].shift-f-l[d].elem.depth,v=m-(l[d-1].elem.height+l[d-1].elem.depth);f=f+m,u.push({type:"kern",size:v}),u.push(l[d])}return{children:u,depth:s}}var g;if(a.positionType==="top"){for(var x=a.positionData,T=0;T<a.children.length;T++){var A=a.children[T];x-=A.type==="kern"?A.size:A.elem.height+A.elem.depth}g=x}else if(a.positionType==="bottom")g=-a.positionData;else{var D=a.children[0];if(D.type!=="elem")throw new Error('First child must have type "elem".');if(a.positionType==="shift")g=-D.elem.depth-a.positionData;else if(a.positionType==="firstBaseline")g=-D.elem.depth;else throw new Error("Invalid positionType "+a.positionType+".")}return{children:a.children,depth:g}},ut=function(a,l){for(var{children:u,depth:s}=x8(a),f=0,d=0;d<u.length;d++){var m=u[d];if(m.type==="elem"){var v=m.elem;f=Math.max(f,v.maxFontSize,v.height)}}f+=2;var g=ee(["pstrut"],[]);g.style.height=se(f);for(var x=[],T=s,A=s,D=s,R=0;R<u.length;R++){var U=u[R];if(U.type==="kern")D+=U.size;else{var F=U.elem,I=U.wrapperClasses||[],fe=U.wrapperStyle||{},oe=ee(I,[g,F],void 0,fe);oe.style.top=se(-f-D-F.depth),U.marginLeft&&(oe.style.marginLeft=U.marginLeft),U.marginRight&&(oe.style.marginRight=U.marginRight),x.push(oe),D+=F.height+F.depth}T=Math.min(T,D),A=Math.max(A,D)}var re=ee(["vlist"],x);re.style.height=se(A);var ie;if(T<0){var le=ee([],[]),X=ee(["vlist"],[le]);X.style.height=se(-T);var we=ee(["vlist-s"],[new P0("​")]);ie=[ee(["vlist-r"],[re,we]),ee(["vlist-r"],[X])]}else ie=[ee(["vlist-r"],[re])];var Te=ee(["vlist-t"],ie);return ie.length===2&&Te.classes.push("vlist-t2"),Te.height=A,Te.depth=-T,Te},wm=(r,a)=>{var l=ee(["mspace"],[],a),u=Ot(r,a);return l.style.marginRight=se(u),l},ns=(r,a,l)=>{var u,s;switch(r){case"amsrm":u="AMS";break;case"textrm":u="Main";break;case"textsf":u="SansSerif";break;case"texttt":u="Typewriter";break;default:u=r}return a==="textbf"&&l==="textit"?s="BoldItalic":a==="textbf"?s="Bold":l==="textit"?s="Italic":s="Regular",u+"-"+s},w1={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"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-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"}},Tm={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Am=function(a,l){var[u,s,f]=Tm[a],d=new Wn(u),m=new fn([d],{width:se(s),height:se(f),style:"width:"+se(s),viewBox:"0 0 "+1e3*s+" "+1e3*f,preserveAspectRatio:"xMinYMin"}),v=Pn(["overlay"],[m],l);return v.height=f,v.style.height=se(f),v.style.width=se(s),v},Rt={number:3,unit:"mu"},zl={number:4,unit:"mu"},rn={number:5,unit:"mu"},S8={mord:{mop:Rt,mbin:zl,mrel:rn,minner:Rt},mop:{mord:Rt,mop:Rt,mrel:rn,minner:Rt},mbin:{mord:zl,mop:zl,mopen:zl,minner:zl},mrel:{mord:rn,mop:rn,mopen:rn,minner:rn},mopen:{},mclose:{mop:Rt,mbin:zl,mrel:rn,minner:Rt},mpunct:{mord:Rt,mop:Rt,mrel:rn,mopen:Rt,mclose:Rt,mpunct:Rt,minner:Rt},minner:{mord:Rt,mop:Rt,mbin:zl,mrel:rn,mopen:Rt,mpunct:Rt,minner:Rt}},w8={mord:{mop:Rt},mop:{mord:Rt,mop:Rt},mbin:{},mrel:{},mopen:{},mclose:{mop:Rt},mpunct:{},minner:{mop:Rt}},zm={},Oi={},Ni={};function pe(r){for(var{type:a,names:l,htmlBuilder:u,mathmlBuilder:s}=r,f=0;f<l.length;++f)zm[l[f]]=r;a&&(u&&(Oi[a]=u),s&&(Ni[a]=s))}function Dl(r){var{type:a,htmlBuilder:l,mathmlBuilder:u}=r;l&&(Oi[a]=l),u&&(Ni[a]=u)}var ys=function(a){return a.type==="ordgroup"&&a.body.length===1?a.body[0]:a},Zt=function(a){return a.type==="ordgroup"?a.body:[a]},T8=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),A8=new Set(["rightmost","mrel","mclose","mpunct"]),z8={display:Ne.DISPLAY,text:Ne.TEXT,script:Ne.SCRIPT,scriptscript:Ne.SCRIPTSCRIPT},E8={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Pt=function(a,l,u,s){s===void 0&&(s=[null,null]);for(var f=[],d=0;d<a.length;d++){var m=st(a[d],l);if(m instanceof Sr){var v=m.children;f.push(...v)}else f.push(m)}if(Sm(f),!u)return f;var g=l;if(a.length===1){var x=a[0];x.type==="sizing"?g=l.havingSize(x.size):x.type==="styling"&&(g=l.havingStyle(z8[x.style]))}var T=ee([s[0]||"leftmost"],[],l),A=ee([s[1]||"rightmost"],[],l),D=u==="root";return T1(f,(R,U)=>{var F=U.classes[0],I=R.classes[0];F==="mbin"&&A8.has(I)?U.classes[0]="mord":I==="mbin"&&T8.has(F)&&(R.classes[0]="mord")},{node:T},A,D),T1(f,(R,U)=>{var F,I,fe=z1(U),oe=z1(R),re=fe&&oe?R.hasClass("mtight")?(F=w8[fe])==null?void 0:F[oe]:(I=S8[fe])==null?void 0:I[oe]:null;if(re)return wm(re,g)},{node:T},A,D),f},T1=function(a,l,u,s,f){s&&a.push(s);for(var d=0;d<a.length;d++){var m=a[d],v=Em(m);if(v){T1(v.children,l,u,null,f);continue}var g=!m.hasClass("mspace");if(g){var x=l(m,u.node);x&&(u.insertAfter?u.insertAfter(x):(a.unshift(x),d++))}g?u.node=m:f&&m.hasClass("newline")&&(u.node=ee(["leftmost"])),u.insertAfter=(T=>A=>{a.splice(T+1,0,A),d++})(d)}s&&a.pop()},Em=function(a){return a instanceof Sr||a instanceof Ss||a instanceof wr&&a.hasClass("enclosing")?a:null},A1=function(a,l){var u=Em(a);if(u){var s=u.children;if(s.length){if(l==="right")return A1(s[s.length-1],"right");if(l==="left")return A1(s[0],"left")}}return a},z1=function(a,l){if(!a)return null;l&&(a=A1(a,l));var u=a.classes[0];return E8[u]||null},Bi=function(a,l){var u=["nulldelimiter"].concat(a.baseSizingClasses());return ee(l.concat(u))},st=function(a,l,u){if(!a)return ee();if(Oi[a.type]){var s=Oi[a.type](a,l);if(u&&l.size!==u.size){s=ee(l.sizingClasses(u),[s],l);var f=l.sizeMultiplier/u.sizeMultiplier;s.height*=f,s.depth*=f}return s}else throw new ae("Got group of unknown type: '"+a.type+"'")};function ls(r,a){var l=ee(["base"],r,a),u=ee(["strut"]);return u.style.height=se(l.height+l.depth),l.depth&&(u.style.verticalAlign=se(-l.depth)),l.children.unshift(u),l}function E1(r,a){var l=null;r.length===1&&r[0].type==="tag"&&(l=r[0].tag,r=r[0].body);var u=Pt(r,a,"root"),s;u.length===2&&u[1].hasClass("tag")&&(s=u.pop());for(var f=[],d=[],m=0;m<u.length;m++)if(d.push(u[m]),u[m].hasClass("mbin")||u[m].hasClass("mrel")||u[m].hasClass("allowbreak")){for(var v=!1;m<u.length-1&&u[m+1].hasClass("mspace")&&!u[m+1].hasClass("newline");)m++,d.push(u[m]),u[m].hasClass("nobreak")&&(v=!0);v||(f.push(ls(d,a)),d=[])}else u[m].hasClass("newline")&&(d.pop(),d.length>0&&(f.push(ls(d,a)),d=[]),f.push(u[m]));d.length>0&&f.push(ls(d,a));var g;l?(g=ls(Pt(l,a,!0),a),g.classes=["tag"],f.push(g)):s&&f.push(s);var x=ee(["katex-html"],f);if(x.setAttribute("aria-hidden","true"),g){var T=g.children[0];T.style.height=se(x.height+x.depth),x.depth&&(T.style.verticalAlign=se(-x.depth))}return x}function km(r){return new Sr(r)}class ne{constructor(a,l,u){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=a,this.attributes={},this.children=l||[],this.classes=u||[]}setAttribute(a,l){this.attributes[a]=l}getAttribute(a){return this.attributes[a]}toNode(){var a=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var l in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,l)&&a.setAttribute(l,this.attributes[l]);this.classes.length>0&&(a.className=$n(this.classes));for(var u=0;u<this.children.length;u++)if(this.children[u]instanceof Vt&&this.children[u+1]instanceof Vt){for(var s=this.children[u].toText()+this.children[++u].toText();this.children[u+1]instanceof Vt;)s+=this.children[++u].toText();a.appendChild(new Vt(s).toNode())}else a.appendChild(this.children[u].toNode());return a}toMarkup(){var a="<"+this.type;for(var l in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,l)&&(a+=" "+l+'="',a+=v0(this.attributes[l]),a+='"');this.classes.length>0&&(a+=' class ="'+v0($n(this.classes))+'"'),a+=">";for(var u=0;u<this.children.length;u++)a+=this.children[u].toMarkup();return a+="</"+this.type+">",a}toText(){return this.children.map(a=>a.toText()).join("")}}class Vt{constructor(a){this.text=void 0,this.text=a}toNode(){return document.createTextNode(this.text)}toMarkup(){return v0(this.toText())}toText(){return this.text}}class Mm{constructor(a){this.width=void 0,this.character=void 0,this.width=a,a>=.05555&&a<=.05556?this.character=" ":a>=.1666&&a<=.1667?this.character=" ":a>=.2222&&a<=.2223?this.character=" ":a>=.2777&&a<=.2778?this.character="  ":a>=-.05556&&a<=-.05555?this.character=" ⁣":a>=-.1667&&a<=-.1666?this.character=" ⁣":a>=-.2223&&a<=-.2222?this.character=" ⁣":a>=-.2778&&a<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var a=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return a.setAttribute("width",se(this.width)),a}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+se(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var k8=new Set(["\\imath","\\jmath"]),M8=new Set(["mrow","mtable"]),pa=function(a,l,u){return Mt[l][a]&&Mt[l][a].replace&&a.charCodeAt(0)!==55349&&!(xm.hasOwnProperty(a)&&u&&(u.fontFamily&&u.fontFamily.slice(4,6)==="tt"||u.font&&u.font.slice(4,6)==="tt"))&&(a=Mt[l][a].replace),new Vt(a)},$1=function(a){return a.length===1?a[0]:new ne("mrow",a)},C8={mathit:"italic",boldsymbol:r=>r.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},W1=(r,a)=>{if(r.mode==="text"){if(a.fontFamily==="texttt")return"monospace";if(a.fontFamily==="textsf")return a.fontShape==="textit"&&a.fontWeight==="textbf"?"sans-serif-bold-italic":a.fontShape==="textit"?"sans-serif-italic":a.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(a.fontShape==="textit"&&a.fontWeight==="textbf")return"bold-italic";if(a.fontShape==="textit")return"italic";if(a.fontWeight==="textbf")return"bold"}var l=a.font;if(!l||l==="mathnormal")return null;var u=r.mode,s=C8[l];if(s)return typeof s=="function"?s(r):s;var f=r.text;if(k8.has(f))return null;if(Mt[u][f]){var d=Mt[u][f].replace;d&&(f=d)}var m=w1[l].fontName;return F1(f,m,u)?w1[l].variant:null};function Qc(r){if(!r)return!1;if(r.type==="mi"&&r.children.length===1){var a=r.children[0];return a instanceof Vt&&a.text==="."}else if(r.type==="mo"&&r.children.length===1&&r.getAttribute("separator")==="true"&&r.getAttribute("lspace")==="0em"&&r.getAttribute("rspace")==="0em"){var l=r.children[0];return l instanceof Vt&&l.text===","}else return!1}var ta=function(a,l,u){if(a.length===1){var s=xt(a[0],l);return u&&s instanceof ne&&s.type==="mo"&&(s.setAttribute("lspace","0em"),s.setAttribute("rspace","0em")),[s]}for(var f=[],d,m=0;m<a.length;m++){var v=xt(a[m],l);if(v instanceof ne&&d instanceof ne){if(v.type==="mtext"&&d.type==="mtext"&&v.getAttribute("mathvariant")===d.getAttribute("mathvariant")){d.children.push(...v.children);continue}else if(v.type==="mn"&&d.type==="mn"){d.children.push(...v.children);continue}else if(Qc(v)&&d.type==="mn"){d.children.push(...v.children);continue}else if(v.type==="mn"&&Qc(d))v.children=[...d.children,...v.children],f.pop();else if((v.type==="msup"||v.type==="msub")&&v.children.length>=1&&(d.type==="mn"||Qc(d))){var g=v.children[0];g instanceof ne&&g.type==="mn"&&(g.children=[...d.children,...g.children],f.pop())}else if(d.type==="mi"&&d.children.length===1){var x=d.children[0];if(x instanceof Vt&&x.text==="̸"&&(v.type==="mo"||v.type==="mi"||v.type==="mn")){var T=v.children[0];T instanceof Vt&&T.text.length>0&&(T.text=T.text.slice(0,1)+"̸"+T.text.slice(1),f.pop())}}}f.push(v),d=v}return f},el=function(a,l,u){return $1(ta(a,l,u))},xt=function(a,l){if(!a)return new ne("mrow");if(Ni[a.type])return Ni[a.type](a,l);throw new ae("Got group of unknown type: '"+a.type+"'")};function pd(r,a,l,u,s){var f=ta(r,l),d;f.length===1&&f[0]instanceof ne&&M8.has(f[0].type)?d=f[0]:d=new ne("mrow",f);var m=new ne("annotation",[new Vt(a)]);m.setAttribute("encoding","application/x-tex");var v=new ne("semantics",[d,m]),g=new ne("math",[v]);g.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),u&&g.setAttribute("display","block");var x=s?"katex":"katex-mathml";return ee([x],[g])}var D8=[[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]],vd=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],gd=function(a,l){return l.size<2?a:D8[a-1][l.size-1]};class un{constructor(a){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=a.style,this.color=a.color,this.size=a.size||un.BASESIZE,this.textSize=a.textSize||this.size,this.phantom=!!a.phantom,this.font=a.font||"",this.fontFamily=a.fontFamily||"",this.fontWeight=a.fontWeight||"",this.fontShape=a.fontShape||"",this.sizeMultiplier=vd[this.size-1],this.maxSize=a.maxSize,this.minRuleThickness=a.minRuleThickness,this._fontMetrics=void 0}extend(a){var l={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};return Object.assign(l,a),new un(l)}havingStyle(a){return this.style===a?this:this.extend({style:a,size:gd(this.textSize,a)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(a){return this.size===a&&this.textSize===a?this:this.extend({style:this.style.text(),size:a,textSize:a,sizeMultiplier:vd[a-1]})}havingBaseStyle(a){a=a||this.style.text();var l=gd(un.BASESIZE,a);return this.size===l&&this.textSize===un.BASESIZE&&this.style===a?this:this.extend({style:a,size:l})}havingBaseSizing(){var a;switch(this.style.id){case 4:case 5:a=3;break;case 6:case 7:a=1;break;default:a=6}return this.extend({style:this.style.text(),size:a})}withColor(a){return this.extend({color:a})}withPhantom(){return this.extend({phantom:!0})}withFont(a){return this.extend({font:a})}withTextFontFamily(a){return this.extend({fontFamily:a,font:""})}withTextFontWeight(a){return this.extend({fontWeight:a,font:""})}withTextFontShape(a){return this.extend({fontShape:a,font:""})}sizingClasses(a){return a.size!==this.size?["sizing","reset-size"+a.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==un.BASESIZE?["sizing","reset-size"+this.size,"size"+un.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=d8(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}un.BASESIZE=6;var Cm=function(a){return new un({style:a.displayMode?Ne.DISPLAY:Ne.TEXT,maxSize:a.maxSize,minRuleThickness:a.minRuleThickness})},Dm=function(a,l){if(l.displayMode){var u=["katex-display"];l.leqno&&u.push("leqno"),l.fleqn&&u.push("fleqn"),a=ee(u,[a])}return a},_8=function(a,l,u){var s=Cm(u),f;if(u.output==="mathml")return pd(a,l,s,u.displayMode,!0);if(u.output==="html"){var d=E1(a,s);f=ee(["katex"],[d])}else{var m=pd(a,l,s,u.displayMode,!1),v=E1(a,s);f=ee(["katex"],[m,v])}return Dm(f,u)},R8=function(a,l,u){var s=Cm(u),f=E1(a,s),d=ee(["katex"],[f]);return Dm(d,u)},O8={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",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":"="},As=function(a){var l=new ne("mo",[new Vt(O8[a.replace(/^\\/,"")])]);return l.setAttribute("stretchy","true"),l},N8={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],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],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]},B8=new Set(["widehat","widecheck","widetilde","utilde"]),zs=function(a,l){function u(){var m=4e5,v=a.label.slice(1);if(B8.has(v)&&"base"in a){var g=a.base.type==="ordgroup"?a.base.body.length:1,x,T,A;if(g>5)v==="widehat"||v==="widecheck"?(x=420,m=2364,A=.42,T=v+"4"):(x=312,m=2340,A=.34,T="tilde4");else{var D=[1,1,2,2,3,3][g];v==="widehat"||v==="widecheck"?(m=[0,1062,2364,2364,2364][D],x=[0,239,300,360,420][D],A=[0,.24,.3,.3,.36,.42][D],T=v+D):(m=[0,600,1033,2339,2340][D],x=[0,260,286,306,312][D],A=[0,.26,.286,.3,.306,.34][D],T="tilde"+D)}var R=new Wn(T),U=new fn([R],{width:"100%",height:se(A),viewBox:"0 0 "+m+" "+x,preserveAspectRatio:"none"});return{span:Pn([],[U],l),minWidth:0,height:A}}else{var F=[],I=N8[v];if(!I)throw new Error('No SVG data for "'+v+'".');var[fe,oe,re]=I,ie=re/1e3,le=fe.length,X,we;if(le===1){if(I.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+v+'".');X=["hide-tail"],we=[I[3]]}else if(le===2)X=["halfarrow-left","halfarrow-right"],we=["xMinYMin","xMaxYMin"];else if(le===3)X=["brace-left","brace-center","brace-right"],we=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+le+" children.");for(var Te=0;Te<le;Te++){var Ge=new Wn(fe[Te]),ze=new fn([Ge],{width:"400em",height:se(ie),viewBox:"0 0 "+m+" "+re,preserveAspectRatio:we[Te]+" slice"}),ge=Pn([X[Te]],[ze],l);if(le===1)return{span:ge,minWidth:oe,height:ie};ge.style.height=se(ie),F.push(ge)}return{span:ee(["stretchy"],F,l),minWidth:oe,height:ie}}}var{span:s,minWidth:f,height:d}=u();return s.height=d,s.style.height=se(d),f>0&&(s.style.minWidth=se(f)),s},L8=function(a,l,u,s,f){var d,m=a.height+a.depth+u+s;if(/fbox|color|angl/.test(l)){if(d=ee(["stretchy",l],[],f),l==="fbox"){var v=f.color&&f.getColor();v&&(d.style.borderColor=v)}}else{var g=[];/^[bx]cancel$/.test(l)&&g.push(new v1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(l)&&g.push(new v1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var x=new fn(g,{width:"100%",height:se(m)});d=Pn([],[x],f)}return d.height=m,d.style.height=se(m),d},q8={bin:1,close:1,inner:1,open:1,punct:1,rel:1},H8={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function U8(r){return r in q8}function je(r,a){if(!r||r.type!==a)throw new Error("Expected node of type "+a+", but got "+(r?"node of type "+r.type:String(r)));return r}function Es(r){var a=ks(r);if(!a)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return a}function ks(r){return r&&(r.type==="atom"||H8.hasOwnProperty(r.type))?r:null}var _m=r=>{if(r instanceof P0)return r;if(f8(r)&&r.children.length===1)return _m(r.children[0])},Rm=(r,a)=>{var l,u,s;r&&r.type==="supsub"?(u=je(r.base,"accent"),l=u.base,r.base=l,s=c8(st(r,a)),r.base=u):(u=je(r,"accent"),l=u.base);var f=st(l,a.havingCrampedStyle()),d=u.isShifty&&hn(l),m=0;if(d){var v,g;m=(v=(g=_m(f))==null?void 0:g.skew)!=null?v:0}var x=u.label==="\\c",T=x?f.height+f.depth:Math.min(f.height,a.fontMetrics().xHeight),A;if(u.isStretchy)A=zs(u,a),A=ut({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"elem",elem:A,wrapperClasses:["svg-align"],wrapperStyle:m>0?{width:"calc(100% - "+se(2*m)+")",marginLeft:se(2*m)}:void 0}]});else{var D,R;u.label==="\\vec"?(D=Am("vec",a),R=Tm.vec[1]):(D=Ts({type:"textord",mode:u.mode,text:u.label},a),D=o8(D),D.italic=0,R=D.width,x&&(T+=D.depth)),A=ee(["accent-body"],[D]);var U=u.label==="\\textcircled";U&&(A.classes.push("accent-full"),T=f.height);var F=m;U||(F-=R/2),A.style.left=se(F),u.label==="\\textcircled"&&(A.style.top=".2em"),A=ut({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:-T},{type:"elem",elem:A}]})}var I=ee(["mord","accent"],[A],a);return s?(s.children[0]=I,s.height=Math.max(I.height,s.height),s.classes[0]="mord",s):I},j8=(r,a)=>{var l=r.isStretchy?As(r.label):new ne("mo",[pa(r.label,r.mode)]),u=new ne("mover",[xt(r.base,a),l]);return u.setAttribute("accent","true"),u},G8=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));pe({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"],numArgs:1,handler:(r,a)=>{var l=ys(a[0]),u=!G8.test(r.funcName),s=!u||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:u,isShifty:s,base:l}},htmlBuilder:Rm,mathmlBuilder:j8});pe({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(r,a)=>{var l=a[0],u=r.parser.mode;return u==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),u="text"),{type:"accent",mode:u,label:r.funcName,isStretchy:!1,isShifty:!0,base:l}}});pe({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(r,a)=>{var{parser:l,funcName:u}=r,s=a[0];return{type:"accentUnder",mode:l.mode,label:u,base:s}},htmlBuilder:(r,a)=>{var l=st(r.base,a),u=zs(r,a),s=r.label==="\\utilde"?.12:0,f=ut({positionType:"top",positionData:l.height,children:[{type:"elem",elem:u,wrapperClasses:["svg-align"]},{type:"kern",size:s},{type:"elem",elem:l}]});return ee(["mord","accentunder"],[f],a)},mathmlBuilder:(r,a)=>{var l=As(r.label),u=new ne("munder",[xt(r.base,a),l]);return u.setAttribute("accentunder","true"),u}});var rs=r=>{var a=new ne("mpadded",r?[r]:[]);return a.setAttribute("width","+0.6em"),a.setAttribute("lspace","0.3em"),a};pe({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"],numArgs:1,numOptionalArgs:1,handler(r,a,l){var{parser:u,funcName:s}=r;return{type:"xArrow",mode:u.mode,label:s,body:a[0],below:l[0]}},htmlBuilder(r,a){var l=a.style,u=a.havingStyle(l.sup()),s=xr(st(r.body,u,a),a),f=r.label.slice(0,2)==="\\x"?"x":"cd";s.classes.push(f+"-arrow-pad");var d;r.below&&(u=a.havingStyle(l.sub()),d=xr(st(r.below,u,a),a),d.classes.push(f+"-arrow-pad"));var m=zs(r,a),v=-a.fontMetrics().axisHeight+.5*m.height,g=-a.fontMetrics().axisHeight-.5*m.height-.111;(s.depth>.25||r.label==="\\xleftequilibrium")&&(g-=s.depth);var x;if(d){var T=-a.fontMetrics().axisHeight+d.height+.5*m.height+.111;x=ut({positionType:"individualShift",children:[{type:"elem",elem:s,shift:g},{type:"elem",elem:m,shift:v,wrapperClasses:["svg-align"]},{type:"elem",elem:d,shift:T}]})}else x=ut({positionType:"individualShift",children:[{type:"elem",elem:s,shift:g},{type:"elem",elem:m,shift:v,wrapperClasses:["svg-align"]}]});return ee(["mrel","x-arrow"],[x],a)},mathmlBuilder(r,a){var l=As(r.label);l.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var u;if(r.body){var s=rs(xt(r.body,a));if(r.below){var f=rs(xt(r.below,a));u=new ne("munderover",[l,f,s])}else u=new ne("mover",[l,s])}else if(r.below){var d=rs(xt(r.below,a));u=new ne("munder",[l,d])}else u=rs(),u=new ne("mover",[l,u]);return u}});function Y8(r,a){var l=Pt(r.body,a,!0);return ee([r.mclass],l,a)}function X8(r,a){var l,u=ta(r.body,a);return r.mclass==="minner"?l=new ne("mpadded",u):r.mclass==="mord"?r.isCharacterBox?(l=u[0],l.type="mi"):l=new ne("mi",u):(r.isCharacterBox?(l=u[0],l.type="mo"):l=new ne("mo",u),r.mclass==="mbin"?(l.attributes.lspace="0.22em",l.attributes.rspace="0.22em"):r.mclass==="mpunct"?(l.attributes.lspace="0em",l.attributes.rspace="0.17em"):(r.mclass==="mopen"||r.mclass==="mclose")&&(l.attributes.lspace="0em",l.attributes.rspace="0em")),l}pe({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(r,a){var{parser:l,funcName:u}=r,s=a[0];return{type:"mclass",mode:l.mode,mclass:"m"+u.slice(5),body:Zt(s),isCharacterBox:hn(s)}},htmlBuilder:Y8,mathmlBuilder:X8});var Ms=r=>{var a=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return a.type==="atom"&&(a.family==="bin"||a.family==="rel")?"m"+a.family:"mord"};pe({type:"mclass",names:["\\@binrel"],numArgs:2,handler(r,a){var{parser:l}=r;return{type:"mclass",mode:l.mode,mclass:Ms(a[0]),body:Zt(a[1]),isCharacterBox:hn(a[1])}}});pe({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(r,a){var{parser:l,funcName:u}=r,s=a[1],f=a[0],d;u!=="\\stackrel"?d=Ms(s):d="mrel";var m={type:"op",mode:s.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:u!=="\\stackrel",body:Zt(s)},v=u==="\\underset"?{type:"supsub",mode:f.mode,base:m,sub:f}:{type:"supsub",mode:f.mode,base:m,sup:f};return{type:"mclass",mode:l.mode,mclass:d,body:[v],isCharacterBox:hn(v)}}});pe({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(r,a){var{parser:l}=r;return{type:"pmb",mode:l.mode,mclass:Ms(a[0]),body:Zt(a[0])}},htmlBuilder(r,a){var l=Pt(r.body,a,!0),u=ee([r.mclass],l,a);return u.style.textShadow="0.02em 0.01em 0.04px",u},mathmlBuilder(r,a){var l=ta(r.body,a),u=new ne("mstyle",l);return u.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),u}});var Z8={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},yd=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),bd=r=>r.type==="textord"&&r.text==="@",V8=(r,a)=>(r.type==="mathord"||r.type==="atom")&&r.text===a;function Q8(r,a,l){var u=Z8[r];switch(u){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return l.callFunction(u,[a[0]],[a[1]]);case"\\uparrow":case"\\downarrow":{var s=l.callFunction("\\\\cdleft",[a[0]],[]),f={type:"atom",text:u,mode:"math",family:"rel"},d=l.callFunction("\\Big",[f],[]),m=l.callFunction("\\\\cdright",[a[1]],[]),v={type:"ordgroup",mode:"math",body:[s,d,m]};return l.callFunction("\\\\cdparent",[v],[])}case"\\\\cdlongequal":return l.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var g={type:"textord",text:"\\Vert",mode:"math"};return l.callFunction("\\Big",[g],[])}default:return{type:"textord",text:" ",mode:"math"}}}function K8(r){var a=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){a.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var l=r.fetch().text;if(l==="&"||l==="\\\\")r.consume();else if(l==="\\end"){a[a.length-1].length===0&&a.pop();break}else throw new ae("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var u=[],s=[u],f=0;f<a.length;f++){for(var d=a[f],m=yd(),v=0;v<d.length;v++)if(!bd(d[v]))m.body.push(d[v]);else{u.push(m),v+=1;var g=Es(d[v]).text,x=new Array(2);if(x[0]={type:"ordgroup",mode:"math",body:[]},x[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(g))if("<>AV".includes(g))for(var T=0;T<2;T++){for(var A=!0,D=v+1;D<d.length;D++){if(V8(d[D],g)){A=!1,v=D;break}if(bd(d[D]))throw new ae("Missing a "+g+" character to complete a CD arrow.",d[D]);x[T].body.push(d[D])}if(A)throw new ae("Missing a "+g+" character to complete a CD arrow.",d[v])}else throw new ae('Expected one of "<>AV=|." after @',d[v]);var R=Q8(g,x,r),U={type:"styling",body:[R],mode:"math",style:"display",resetFont:!0};u.push(U),m=yd()}f%2===0?u.push(m):u.shift(),u=[],s.push(u)}r.gullet.endGroup(),r.gullet.endGroup();var F=new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:F,colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}pe({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(r,a){var{parser:l,funcName:u}=r;return{type:"cdlabel",mode:l.mode,side:u.slice(4),label:a[0]}},htmlBuilder(r,a){var l=a.havingStyle(a.style.sup()),u=xr(st(r.label,l,a),a);return u.classes.push("cd-label-"+r.side),u.style.bottom=se(.8-u.depth),u.height=0,u.depth=0,u},mathmlBuilder(r,a){var l=new ne("mrow",[xt(r.label,a)]);return l=new ne("mpadded",[l]),l.setAttribute("width","0"),r.side==="left"&&l.setAttribute("lspace","-1width"),l.setAttribute("voffset","0.7em"),l=new ne("mstyle",[l]),l.setAttribute("displaystyle","false"),l.setAttribute("scriptlevel","1"),l}});pe({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(r,a){var{parser:l}=r;return{type:"cdlabelparent",mode:l.mode,fragment:a[0]}},htmlBuilder(r,a){var l=xr(st(r.fragment,a),a);return l.classes.push("cd-vert-arrow"),l},mathmlBuilder(r,a){return new ne("mrow",[xt(r.fragment,a)])}});pe({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(r,a){for(var{parser:l}=r,u=je(a[0],"ordgroup"),s=u.body,f="",d=0;d<s.length;d++){var m=je(s[d],"textord");f+=m.text}var v=parseInt(f),g;if(isNaN(v))throw new ae("\\@char has non-numeric argument "+f);if(v<0||v>=1114111)throw new ae("\\@char with invalid code point "+f);return v<=65535?g=String.fromCharCode(v):(v-=65536,g=String.fromCharCode((v>>10)+55296,(v&1023)+56320)),{type:"textord",mode:l.mode,text:g}}});var F8=(r,a)=>{var l=Pt(r.body,a.withColor(r.color),!1);return mn(l)},I8=(r,a)=>{var l=ta(r.body,a.withColor(r.color)),u=new ne("mstyle",l);return u.setAttribute("mathcolor",r.color),u};pe({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(r,a){var{parser:l}=r,u=je(a[0],"color-token").color,s=a[1];return{type:"color",mode:l.mode,color:u,body:Zt(s)}},htmlBuilder:F8,mathmlBuilder:I8});pe({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(r,a){var{parser:l,breakOnTokenText:u}=r,s=je(a[0],"color-token").color;l.gullet.macros.set("\\current@color",s);var f=l.parseExpression(!0,u);return{type:"color",mode:l.mode,color:s,body:f}}});pe({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(r,a,l){var{parser:u}=r,s=u.gullet.future().text==="["?u.parseSizeGroup(!0):null,f=!u.settings.displayMode||!u.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:u.mode,newLine:f,size:s&&je(s,"size").value}},htmlBuilder(r,a){var l=ee(["mspace"],[],a);return r.newLine&&(l.classes.push("newline"),r.size&&(l.style.marginTop=se(Ot(r.size,a)))),l},mathmlBuilder(r,a){var l=new ne("mspace");return r.newLine&&(l.setAttribute("linebreak","newline"),r.size&&l.setAttribute("height",se(Ot(r.size,a)))),l}});var k1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Om=r=>{var a=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new ae("Expected a control sequence",r);return a},J8=r=>{var a=r.gullet.popToken();return a.text==="="&&(a=r.gullet.popToken(),a.text===" "&&(a=r.gullet.popToken())),a},Nm=(r,a,l,u)=>{var s=r.gullet.macros.get(l.text);s==null&&(l.noexpand=!0,s={tokens:[l],numArgs:0,unexpandable:!r.gullet.isExpandable(l.text)}),r.gullet.macros.set(a,s,u)};pe({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(r){var{parser:a,funcName:l}=r;a.consumeSpaces();var u=a.fetch();if(k1[u.text])return(l==="\\global"||l==="\\\\globallong")&&(u.text=k1[u.text]),je(a.parseFunction(),"internal");throw new ae("Invalid token after macro prefix",u)}});pe({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(r){var{parser:a,funcName:l}=r,u=a.gullet.popToken(),s=u.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(s))throw new ae("Expected a control sequence",u);for(var f=0,d,m=[[]];a.gullet.future().text!=="{";)if(u=a.gullet.popToken(),u.text==="#"){if(a.gullet.future().text==="{"){d=a.gullet.future(),m[f].push("{");break}if(u=a.gullet.popToken(),!/^[1-9]$/.test(u.text))throw new ae('Invalid argument number "'+u.text+'"');if(parseInt(u.text)!==f+1)throw new ae('Argument number "'+u.text+'" out of order');f++,m.push([])}else{if(u.text==="EOF")throw new ae("Expected a macro definition");m[f].push(u.text)}var{tokens:v}=a.gullet.consumeArg();return d&&v.unshift(d),(l==="\\edef"||l==="\\xdef")&&(v=a.gullet.expandTokens(v),v.reverse()),a.gullet.macros.set(s,{tokens:v,numArgs:f,delimiters:m},l===k1[l]),{type:"internal",mode:a.mode}}});pe({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(r){var{parser:a,funcName:l}=r,u=Om(a.gullet.popToken());a.gullet.consumeSpaces();var s=J8(a);return Nm(a,u,s,l==="\\\\globallet"),{type:"internal",mode:a.mode}}});pe({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(r){var{parser:a,funcName:l}=r,u=Om(a.gullet.popToken()),s=a.gullet.popToken(),f=a.gullet.popToken();return Nm(a,u,f,l==="\\\\globalfuture"),a.gullet.pushToken(f),a.gullet.pushToken(s),{type:"internal",mode:a.mode}}});var Mi=function(a,l,u){var s=Mt.math[a]&&Mt.math[a].replace,f=F1(s||a,l,u);if(!f)throw new Error("Unsupported symbol "+a+" and font size "+l+".");return f},P1=function(a,l,u,s){var f=u.havingBaseStyle(l),d=ee(s.concat(f.sizingClasses(u)),[a],u),m=f.sizeMultiplier/u.sizeMultiplier;return d.height*=m,d.depth*=m,d.maxFontSize=f.sizeMultiplier,d},Bm=function(a,l,u){var s=l.havingBaseStyle(u),f=(1-l.sizeMultiplier/s.sizeMultiplier)*l.fontMetrics().axisHeight;a.classes.push("delimcenter"),a.style.top=se(f),a.height-=f,a.depth+=f},$8=function(a,l,u,s,f,d){var m=z0(a,"Main-Regular",f,s),v=P1(m,l,s,d);return Bm(v,s,l),v},W8=function(a,l,u,s){return z0(a,"Size"+l+"-Regular",u,s)},Lm=function(a,l,u,s,f,d){var m=W8(a,l,f,s),v=P1(ee(["delimsizing","size"+l],[m],s),Ne.TEXT,s,d);return u&&Bm(v,s,Ne.TEXT),v},Kc=function(a,l,u){var s;l==="Size1-Regular"?s="delim-size1":s="delim-size4";var f=ee(["delimsizinginner",s],[ee([],[z0(a,l,u)])]);return{type:"elem",elem:f}},Fc=function(a,l,u){var s=qa["Size4-Regular"][a.charCodeAt(0)]?qa["Size4-Regular"][a.charCodeAt(0)][4]:qa["Size1-Regular"][a.charCodeAt(0)][4],f=new Wn("inner",a8(a,Math.round(1e3*l))),d=new fn([f],{width:se(s),height:se(l),style:"width:"+se(s),viewBox:"0 0 "+1e3*s+" "+Math.round(1e3*l),preserveAspectRatio:"xMinYMin"}),m=Pn([],[d],u);return m.height=l,m.style.height=se(l),m.style.width=se(s),{type:"elem",elem:m}},M1=.008,is={type:"kern",size:-1*M1},P8=new Set(["|","\\lvert","\\rvert","\\vert"]),ep=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),qm=function(a,l,u,s,f,d){var m,v,g,x,T="",A=0;m=g=x=a,v=null;var D="Size1-Regular";a==="\\uparrow"?g=x="⏐":a==="\\Uparrow"?g=x="‖":a==="\\downarrow"?m=g="⏐":a==="\\Downarrow"?m=g="‖":a==="\\updownarrow"?(m="\\uparrow",g="⏐",x="\\downarrow"):a==="\\Updownarrow"?(m="\\Uparrow",g="‖",x="\\Downarrow"):P8.has(a)?(g="∣",T="vert",A=333):ep.has(a)?(g="∥",T="doublevert",A=556):a==="["||a==="\\lbrack"?(m="⎡",g="⎢",x="⎣",D="Size4-Regular",T="lbrack",A=667):a==="]"||a==="\\rbrack"?(m="⎤",g="⎥",x="⎦",D="Size4-Regular",T="rbrack",A=667):a==="\\lfloor"||a==="⌊"?(g=m="⎢",x="⎣",D="Size4-Regular",T="lfloor",A=667):a==="\\lceil"||a==="⌈"?(m="⎡",g=x="⎢",D="Size4-Regular",T="lceil",A=667):a==="\\rfloor"||a==="⌋"?(g=m="⎥",x="⎦",D="Size4-Regular",T="rfloor",A=667):a==="\\rceil"||a==="⌉"?(m="⎤",g=x="⎥",D="Size4-Regular",T="rceil",A=667):a==="("||a==="\\lparen"?(m="⎛",g="⎜",x="⎝",D="Size4-Regular",T="lparen",A=875):a===")"||a==="\\rparen"?(m="⎞",g="⎟",x="⎠",D="Size4-Regular",T="rparen",A=875):a==="\\{"||a==="\\lbrace"?(m="⎧",v="⎨",x="⎩",g="⎪",D="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(m="⎫",v="⎬",x="⎭",g="⎪",D="Size4-Regular"):a==="\\lgroup"||a==="⟮"?(m="⎧",x="⎩",g="⎪",D="Size4-Regular"):a==="\\rgroup"||a==="⟯"?(m="⎫",x="⎭",g="⎪",D="Size4-Regular"):a==="\\lmoustache"||a==="⎰"?(m="⎧",x="⎭",g="⎪",D="Size4-Regular"):(a==="\\rmoustache"||a==="⎱")&&(m="⎫",x="⎩",g="⎪",D="Size4-Regular");var R=Mi(m,D,f),U=R.height+R.depth,F=Mi(g,D,f),I=F.height+F.depth,fe=Mi(x,D,f),oe=fe.height+fe.depth,re=0,ie=1;if(v!==null){var le=Mi(v,D,f);re=le.height+le.depth,ie=2}var X=U+oe+re,we=Math.max(0,Math.ceil((l-X)/(ie*I))),Te=X+we*ie*I,Ge=s.fontMetrics().axisHeight;u&&(Ge*=s.sizeMultiplier);var ze=Te/2-Ge,ge=[];if(T.length>0){var Fe=Te-U-oe,mt=Math.round(Te*1e3),He=n8(T,Math.round(Fe*1e3)),G=new Wn(T,He),te=se(A/1e3),ve=se(mt/1e3),de=new fn([G],{width:te,height:ve,viewBox:"0 0 "+A+" "+mt}),ce=Pn([],[de],s);ce.height=mt/1e3,ce.style.width=te,ce.style.height=ve,ge.push({type:"elem",elem:ce})}else{if(ge.push(Kc(x,D,f)),ge.push(is),v===null){var k=Te-U-oe+2*M1;ge.push(Fc(g,k,s))}else{var Z=(Te-U-oe-re)/2+2*M1;ge.push(Fc(g,Z,s)),ge.push(is),ge.push(Kc(v,D,f)),ge.push(is),ge.push(Fc(g,Z,s))}ge.push(is),ge.push(Kc(m,D,f))}var $=s.havingBaseStyle(Ne.TEXT),he=ut({positionType:"bottom",positionData:ze,children:ge});return P1(ee(["delimsizing","mult"],[he],$),Ne.TEXT,s,d)},Ic=80,Jc=.08,$c=function(a,l,u,s,f){var d=t8(a,s,u),m=new Wn(a,d),v=new fn([m],{width:"400em",height:se(l),viewBox:"0 0 400000 "+u,preserveAspectRatio:"xMinYMin slice"});return Pn(["hide-tail"],[v],f)},tp=function(a,l){var u=l.havingBaseSizing(),s=Ym("\\surd",a*u.sizeMultiplier,Gm,u),f=u.sizeMultiplier,d=Math.max(0,l.minRuleThickness-l.fontMetrics().sqrtRuleThickness),m,v,g,x,T;return s.type==="small"?(x=1e3+1e3*d+Ic,a<1?f=1:a<1.4&&(f=.7),v=(1+d+Jc)/f,g=(1+d)/f,m=$c("sqrtMain",v,x,d,l),m.style.minWidth="0.853em",T=.833/f):s.type==="large"?(x=(1e3+Ic)*_i[s.size],g=(_i[s.size]+d)/f,v=(_i[s.size]+d+Jc)/f,m=$c("sqrtSize"+s.size,v,x,d,l),m.style.minWidth="1.02em",T=1/f):(v=a+d+Jc,g=a+d,x=Math.floor(1e3*a+d)+Ic,m=$c("sqrtTall",v,x,d,l),m.style.minWidth="0.742em",T=1.056),m.height=g,m.style.height=se(v),{span:m,advanceWidth:T,ruleWidth:(l.fontMetrics().sqrtRuleThickness+d)*f}},Hm=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),ap=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Um=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),_i=[0,1.2,1.8,2.4,3],jm=function(a,l,u,s,f){if(a==="<"||a==="\\lt"||a==="⟨"?a="\\langle":(a===">"||a==="\\gt"||a==="⟩")&&(a="\\rangle"),Hm.has(a)||Um.has(a))return Lm(a,l,!1,u,s,f);if(ap.has(a))return qm(a,_i[l],!1,u,s,f);throw new ae("Illegal delimiter: '"+a+"'")},np=[{type:"small",style:Ne.SCRIPTSCRIPT},{type:"small",style:Ne.SCRIPT},{type:"small",style:Ne.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],lp=[{type:"small",style:Ne.SCRIPTSCRIPT},{type:"small",style:Ne.SCRIPT},{type:"small",style:Ne.TEXT},{type:"stack"}],Gm=[{type:"small",style:Ne.SCRIPTSCRIPT},{type:"small",style:Ne.SCRIPT},{type:"small",style:Ne.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],rp=function(a){if(a.type==="small")return"Main-Regular";if(a.type==="large")return"Size"+a.size+"-Regular";if(a.type==="stack")return"Size4-Regular";var l=a.type;throw new Error("Add support for delim type '"+l+"' here.")},Ym=function(a,l,u,s){for(var f=Math.min(2,3-s.style.size),d=f;d<u.length;d++){var m=u[d];if(m.type==="stack")break;var v=Mi(a,rp(m),"math"),g=v.height+v.depth;if(m.type==="small"){var x=s.havingBaseStyle(m.style);g*=x.sizeMultiplier}if(g>l)return m}return u[u.length-1]},C1=function(a,l,u,s,f,d){a==="<"||a==="\\lt"||a==="⟨"?a="\\langle":(a===">"||a==="\\gt"||a==="⟩")&&(a="\\rangle");var m;Um.has(a)?m=np:Hm.has(a)?m=Gm:m=lp;var v=Ym(a,l,m,s);return v.type==="small"?$8(a,v.style,u,s,f,d):v.type==="large"?Lm(a,v.size,u,s,f,d):qm(a,l,u,s,f,d)},Wc=function(a,l,u,s,f,d){var m=s.fontMetrics().axisHeight*s.sizeMultiplier,v=901,g=5/s.fontMetrics().ptPerEm,x=Math.max(l-m,u+m),T=Math.max(x/500*v,2*x-g);return C1(a,T,!0,s,f,d)},xd={"\\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}},ip=new Set(["(","\\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 Sd(r){return"isMiddle"in r}function Cs(r,a){var l=ks(r);if(l&&ip.has(l.text))return l;throw l?new ae("Invalid delimiter '"+l.text+"' after '"+a.funcName+"'",r):new ae("Invalid delimiter type '"+r.type+"'",r)}pe({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(r,a)=>{var l=Cs(a[0],r);return{type:"delimsizing",mode:r.parser.mode,size:xd[r.funcName].size,mclass:xd[r.funcName].mclass,delim:l.text}},htmlBuilder:(r,a)=>r.delim==="."?ee([r.mclass]):jm(r.delim,r.size,a,r.mode,[r.mclass]),mathmlBuilder:r=>{var a=[];r.delim!=="."&&a.push(pa(r.delim,r.mode));var l=new ne("mo",a);r.mclass==="mopen"||r.mclass==="mclose"?l.setAttribute("fence","true"):l.setAttribute("fence","false"),l.setAttribute("stretchy","true");var u=se(_i[r.size]);return l.setAttribute("minsize",u),l.setAttribute("maxsize",u),l}});function wd(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}pe({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(r,a)=>{var l=r.parser.gullet.macros.get("\\current@color");if(l&&typeof l!="string")throw new ae("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:Cs(a[0],r).text,color:l}}});pe({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(r,a)=>{var l=Cs(a[0],r),u=r.parser;++u.leftrightDepth;var s=u.parseExpression(!1);--u.leftrightDepth,u.expect("\\right",!1);var f=je(u.parseFunction(),"leftright-right");return{type:"leftright",mode:u.mode,body:s,left:l.text,right:f.delim,rightColor:f.color}},htmlBuilder:(r,a)=>{wd(r);for(var l=Pt(r.body,a,!0,["mopen","mclose"]),u=0,s=0,f=!1,d=0;d<l.length;d++){var m=l[d];Sd(m)?f=!0:(u=Math.max(l[d].height,u),s=Math.max(l[d].depth,s))}u*=a.sizeMultiplier,s*=a.sizeMultiplier;var v;if(r.left==="."?v=Bi(a,["mopen"]):v=Wc(r.left,u,s,a,r.mode,["mopen"]),l.unshift(v),f)for(var g=1;g<l.length;g++){var x=l[g];if(Sd(x)){var T=x.isMiddle;l[g]=Wc(T.delim,u,s,T.options,r.mode,[])}}var A;if(r.right===".")A=Bi(a,["mclose"]);else{var D=r.rightColor?a.withColor(r.rightColor):a;A=Wc(r.right,u,s,D,r.mode,["mclose"])}return l.push(A),ee(["minner"],l,a)},mathmlBuilder:(r,a)=>{wd(r);var l=ta(r.body,a);if(r.left!=="."){var u=new ne("mo",[pa(r.left,r.mode)]);u.setAttribute("fence","true"),l.unshift(u)}if(r.right!=="."){var s=new ne("mo",[pa(r.right,r.mode)]);s.setAttribute("fence","true"),r.rightColor&&s.setAttribute("mathcolor",r.rightColor),l.push(s)}return $1(l)}});pe({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(r,a)=>{var l=Cs(a[0],r);if(!r.parser.leftrightDepth)throw new ae("\\middle without preceding \\left",l);return{type:"middle",mode:r.parser.mode,delim:l.text}},htmlBuilder:(r,a)=>{var l;return r.delim==="."?l=Bi(a,[]):(l=jm(r.delim,1,a,r.mode,[]),l.isMiddle={delim:r.delim,options:a}),l},mathmlBuilder:(r,a)=>{var l=r.delim==="\\vert"||r.delim==="|"?pa("|","text"):pa(r.delim,r.mode),u=new ne("mo",[l]);return u.setAttribute("fence","true"),u.setAttribute("lspace","0.05em"),u.setAttribute("rspace","0.05em"),u}});var up=(r,a)=>{var l=xr(st(r.body,a),a),u=r.label.slice(1),s=a.sizeMultiplier,f,d,m=hn(r.body);if(u==="sout")f=ee(["stretchy","sout"]),f.height=a.fontMetrics().defaultRuleThickness/s,d=-.5*a.fontMetrics().xHeight;else if(u==="phase"){var v=Ot({number:.6,unit:"pt"},a),g=Ot({number:.35,unit:"ex"},a),x=a.havingBaseSizing();s=s/x.sizeMultiplier;var T=l.height+l.depth+v+g;l.style.paddingLeft=se(T/2+v);var A=Math.floor(1e3*T*s),D=P7(A),R=new fn([new Wn("phase",D)],{width:"400em",height:se(A/1e3),viewBox:"0 0 400000 "+A,preserveAspectRatio:"xMinYMin slice"});f=Pn(["hide-tail"],[R],a),f.style.height=se(T),d=l.depth+v+g}else{/cancel/.test(u)?m||l.classes.push("cancel-pad"):u==="angl"?l.classes.push("anglpad"):l.classes.push("boxpad");var U,F,I=0;/box/.test(u)?(I=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness),U=a.fontMetrics().fboxsep+(u==="colorbox"?0:I),F=U):u==="angl"?(I=Math.max(a.fontMetrics().defaultRuleThickness,a.minRuleThickness),U=4*I,F=Math.max(0,.25-l.depth)):(U=m?.2:0,F=U),f=L8(l,u,U,F,a),/fbox|boxed|fcolorbox/.test(u)?(f.style.borderStyle="solid",f.style.borderWidth=se(I)):u==="angl"&&I!==.049&&(f.style.borderTopWidth=se(I),f.style.borderRightWidth=se(I)),d=l.depth+F,r.backgroundColor&&(f.style.backgroundColor=r.backgroundColor,r.borderColor&&(f.style.borderColor=r.borderColor))}var fe;if(r.backgroundColor)fe=ut({positionType:"individualShift",children:[{type:"elem",elem:f,shift:d},{type:"elem",elem:l,shift:0}]});else{var oe=/cancel|phase/.test(u)?["svg-align"]:[];fe=ut({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:d,wrapperClasses:oe}]})}return/cancel/.test(u)&&(fe.height=l.height,fe.depth=l.depth),/cancel/.test(u)&&!m?ee(["mord","cancel-lap"],[fe],a):ee(["mord"],[fe],a)},sp=(r,a)=>{var l,u=new ne(r.label.includes("colorbox")?"mpadded":"menclose",[xt(r.body,a)]);switch(r.label){case"\\cancel":u.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":u.setAttribute("notation","downdiagonalstrike");break;case"\\phase":u.setAttribute("notation","phasorangle");break;case"\\sout":u.setAttribute("notation","horizontalstrike");break;case"\\fbox":u.setAttribute("notation","box");break;case"\\angl":u.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(l=a.fontMetrics().fboxsep*a.fontMetrics().ptPerEm,u.setAttribute("width","+"+2*l+"pt"),u.setAttribute("height","+"+2*l+"pt"),u.setAttribute("lspace",l+"pt"),u.setAttribute("voffset",l+"pt"),r.label==="\\fcolorbox"){var s=Math.max(a.fontMetrics().fboxrule,a.minRuleThickness);u.setAttribute("style","border: "+se(s)+" solid "+r.borderColor)}break;case"\\xcancel":u.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&u.setAttribute("mathbackground",r.backgroundColor),u};pe({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(r,a,l){var{parser:u,funcName:s}=r,f=je(a[0],"color-token").color,d=a[1];return{type:"enclose",mode:u.mode,label:s,backgroundColor:f,body:d}},htmlBuilder:up,mathmlBuilder:sp});pe({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(r,a,l){var{parser:u,funcName:s}=r,f=je(a[0],"color-token").color,d=je(a[1],"color-token").color,m=a[2];return{type:"enclose",mode:u.mode,label:s,backgroundColor:d,borderColor:f,body:m}}});pe({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(r,a){var{parser:l}=r;return{type:"enclose",mode:l.mode,label:"\\fbox",body:a[0]}}});pe({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(r,a){var{parser:l,funcName:u}=r,s=a[0];return{type:"enclose",mode:l.mode,label:u,body:s}}});pe({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(r,a){var{parser:l,funcName:u}=r;l.mode==="math"&&l.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var s=a[0];return{type:"enclose",mode:l.mode,label:u,body:s}}});pe({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(r,a){var{parser:l}=r;return{type:"enclose",mode:l.mode,label:"\\angl",body:a[0]}}});var Xm={};function Ha(r){for(var{type:a,names:l,props:u,handler:s,htmlBuilder:f,mathmlBuilder:d}=r,m={type:a,numArgs:u.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:s},v=0;v<l.length;++v)Xm[l[v]]=m;f&&(Oi[a]=f),d&&(Ni[a]=d)}var Zm={};function w(r,a){Zm[r]=a}class H0{constructor(a,l,u){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=a,this.start=l,this.end=u}static range(a,l){return l?!a||!a.loc||!l.loc||a.loc.lexer!==l.loc.lexer?null:new H0(a.loc.lexer,a.loc.start,l.loc.end):a&&a.loc}}class W0{constructor(a,l){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=a,this.loc=l}range(a,l){return new W0(l,H0.range(this,a))}}function Td(r){var a=[];r.consumeSpaces();var l=r.fetch().text;for(l==="\\relax"&&(r.consume(),r.consumeSpaces(),l=r.fetch().text);l==="\\hline"||l==="\\hdashline";)r.consume(),a.push(l==="\\hdashline"),r.consumeSpaces(),l=r.fetch().text;return a}var Ds=r=>{var a=r.parser.settings;if(!a.displayMode)throw new ae("{"+r.envName+"} can be used only in display mode.")},op=new Set(["gather","gather*"]);function ef(r){if(!r.includes("ed"))return!r.includes("*")}function tl(r,a,l){var{hskipBeforeAndAfter:u,addJot:s,cols:f,arraystretch:d,colSeparationType:m,autoTag:v,singleRow:g,emptySingleRow:x,maxNumCols:T,leqno:A}=a;if(r.gullet.beginGroup(),g||r.gullet.macros.set("\\cr","\\\\\\relax"),!d){var D=r.gullet.expandMacroAsText("\\arraystretch");if(D==null)d=1;else if(d=parseFloat(D),!d||d<0)throw new ae("Invalid \\arraystretch: "+D)}r.gullet.beginGroup();var R=[],U=[R],F=[],I=[],fe=v!=null?[]:void 0;function oe(){v&&r.gullet.macros.set("\\@eqnsw","1",!0)}function re(){fe&&(r.gullet.macros.get("\\df@tag")?(fe.push(r.subparse([new W0("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):fe.push(!!v&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(oe(),I.push(Td(r));;){var ie=r.parseExpression(!1,g?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup();var le={type:"ordgroup",mode:r.mode,body:ie};l&&(le={type:"styling",mode:r.mode,style:l,resetFont:!0,body:[le]}),R.push(le);var X=r.fetch().text;if(X==="&"){if(T&&R.length===T){if(g||m)throw new ae("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(X==="\\end"){re(),R.length===1&&le.type==="styling"&&le.body.length===1&&le.body[0].type==="ordgroup"&&le.body[0].body.length===0&&(U.length>1||!x)&&U.pop(),I.length<U.length+1&&I.push([]);break}else if(X==="\\\\"){r.consume();var we=void 0;r.gullet.future().text!==" "&&(we=r.parseSizeGroup(!0)),F.push(we?we.value:null),re(),I.push(Td(r)),R=[],U.push(R),oe()}else throw new ae("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:s,arraystretch:d,body:U,cols:f,rowGaps:F,hskipBeforeAndAfter:u,hLinesBeforeRow:I,colSeparationType:m,tags:fe,leqno:A}}function tf(r){return r.slice(0,1)==="d"?"display":"text"}var Ua=function(a,l){var u,s,f=a.body.length,d=a.hLinesBeforeRow,m=0,v=new Array(f),g=[],x=Math.max(l.fontMetrics().arrayRuleWidth,l.minRuleThickness),T=1/l.fontMetrics().ptPerEm,A=5*T;if(a.colSeparationType&&a.colSeparationType==="small"){var D=l.havingStyle(Ne.SCRIPT).sizeMultiplier;A=.2778*(D/l.sizeMultiplier)}var R=a.colSeparationType==="CD"?Ot({number:3,unit:"ex"},l):12*T,U=3*T,F=a.arraystretch*R,I=.7*F,fe=.3*F,oe=0;function re(g0){for(var ra=0;ra<g0.length;++ra)ra>0&&(oe+=.25),g.push({pos:oe,isDashed:g0[ra]})}for(re(d[0]),u=0;u<a.body.length;++u){var ie=a.body[u],le=I,X=fe;m<ie.length&&(m=ie.length);var we={cells:new Array(ie.length),height:0,depth:0,pos:0};for(s=0;s<ie.length;++s){var Te=st(ie[s],l);X<Te.depth&&(X=Te.depth),le<Te.height&&(le=Te.height),we.cells[s]=Te}var Ge=a.rowGaps[u],ze=0;Ge&&(ze=Ot(Ge,l),ze>0&&(ze+=fe,X<ze&&(X=ze),ze=0)),a.addJot&&u<a.body.length-1&&(X+=U),we.height=le,we.depth=X,oe+=le,we.pos=oe,oe+=X+ze,v[u]=we,re(d[u+1])}var ge=oe/2+l.fontMetrics().axisHeight,Fe=a.cols||[],mt=[],He,G,te=[];if(a.tags&&a.tags.some(g0=>g0))for(u=0;u<f;++u){var ve=v[u],de=ve.pos-ge,ce=a.tags[u],k=void 0;ce===!0?k=ee(["eqn-num"],[],l):ce===!1?k=ee([],[],l):k=ee([],Pt(ce,l,!0),l),k.depth=ve.depth,k.height=ve.height,te.push({type:"elem",elem:k,shift:de})}for(s=0,G=0;s<m||G<Fe.length;++s,++G){for(var Z,$=Fe[G],he=!0;((ke=$)==null?void 0:ke.type)==="separator";){var ke;if(he||(He=ee(["arraycolsep"],[]),He.style.width=se(l.fontMetrics().doubleRuleSep),mt.push(He)),$.separator==="|"||$.separator===":"){var Oe=$.separator==="|"?"solid":"dashed",Le=ee(["vertical-separator"],[],l);Le.style.height=se(oe),Le.style.borderRightWidth=se(x),Le.style.borderRightStyle=Oe,Le.style.margin="0 "+se(-x/2);var Tt=oe-ge;Tt&&(Le.style.verticalAlign=se(-Tt)),mt.push(Le)}else throw new ae("Invalid separator type: "+$.separator);G++,$=Fe[G],he=!1}if(!(s>=m)){var We=void 0;if(s>0||a.hskipBeforeAndAfter){var U0,Ie;We=(U0=(Ie=$)==null?void 0:Ie.pregap)!=null?U0:A,We!==0&&(He=ee(["arraycolsep"],[]),He.style.width=se(We),mt.push(He))}var Ut=[];for(u=0;u<f;++u){var at=v[u],e0=at.cells[s];if(e0){var rt=at.pos-ge;e0.depth=at.depth,e0.height=at.height,Ut.push({type:"elem",elem:e0,shift:rt})}}var j0=ut({positionType:"individualShift",children:Ut}),pn=ee(["col-align-"+(((Z=$)==null?void 0:Z.align)||"c")],[j0]);if(mt.push(pn),s<m-1||a.hskipBeforeAndAfter){var Ft,aa;We=(Ft=(aa=$)==null?void 0:aa.postgap)!=null?Ft:A,We!==0&&(He=ee(["arraycolsep"],[]),He.style.width=se(We),mt.push(He))}}}var r0=ee(["mtable"],mt);if(g.length>0){for(var va=br("hline",l,x),vn=br("hdashline",l,x),d0=[{type:"elem",elem:r0,shift:0}];g.length>0;){var ct=g.pop(),D0=ct.pos-ge;ct.isDashed?d0.push({type:"elem",elem:vn,shift:D0}):d0.push({type:"elem",elem:va,shift:D0})}r0=ut({positionType:"individualShift",children:d0})}if(te.length===0)return ee(["mord"],[r0],l);var na=ut({positionType:"individualShift",children:te}),la=ee(["tag"],[na],l);return mn([r0,la])},cp={c:"center ",l:"left ",r:"right "},ja=function(a,l){for(var u=[],s=new ne("mtd",[],["mtr-glue"]),f=new ne("mtd",[],["mml-eqn-num"]),d=0;d<a.body.length;d++){for(var m=a.body[d],v=[],g=0;g<m.length;g++)v.push(new ne("mtd",[xt(m[g],l)]));a.tags&&a.tags[d]&&(v.unshift(s),v.push(s),a.leqno?v.unshift(f):v.push(f)),u.push(new ne("mtr",v))}var x=new ne("mtable",u),T=a.arraystretch===.5?.1:.16+a.arraystretch-1+(a.addJot?.09:0);x.setAttribute("rowspacing",se(T));var A="",D="";if(a.cols&&a.cols.length>0){var R=a.cols,U="",F=!1,I=0,fe=R.length;R[0].type==="separator"&&(A+="top ",I=1),R[R.length-1].type==="separator"&&(A+="bottom ",fe-=1);for(var oe=I;oe<fe;oe++){var re=R[oe];re.type==="align"?(D+=cp[re.align],F&&(U+="none "),F=!0):re.type==="separator"&&F&&(U+=re.separator==="|"?"solid ":"dashed ",F=!1)}x.setAttribute("columnalign",D.trim()),/[sd]/.test(U)&&x.setAttribute("columnlines",U.trim())}if(a.colSeparationType==="align"){for(var ie=a.cols||[],le="",X=1;X<ie.length;X++)le+=X%2?"0em ":"1em ";x.setAttribute("columnspacing",le.trim())}else a.colSeparationType==="alignat"||a.colSeparationType==="gather"?x.setAttribute("columnspacing","0em"):a.colSeparationType==="small"?x.setAttribute("columnspacing","0.2778em"):a.colSeparationType==="CD"?x.setAttribute("columnspacing","0.5em"):x.setAttribute("columnspacing","1em");var we="",Te=a.hLinesBeforeRow;A+=Te[0].length>0?"left ":"",A+=Te[Te.length-1].length>0?"right ":"";for(var Ge=1;Ge<Te.length-1;Ge++)we+=Te[Ge].length===0?"none ":Te[Ge][0]?"dashed ":"solid ";return/[sd]/.test(we)&&x.setAttribute("rowlines",we.trim()),A!==""&&(x=new ne("menclose",[x]),x.setAttribute("notation",A.trim())),a.arraystretch&&a.arraystretch<1&&(x=new ne("mstyle",[x]),x.setAttribute("scriptlevel","1")),x},Vm=function(a,l){a.envName.includes("ed")||Ds(a);var u=[],s=a.envName==="split",f=tl(a.parser,{cols:u,addJot:!0,autoTag:s?void 0:ef(a.envName),emptySingleRow:!0,colSeparationType:a.envName.includes("at")?"alignat":"align",maxNumCols:s?2:void 0,leqno:a.parser.settings.leqno},"display"),d=0,m=0,v={type:"ordgroup",mode:a.mode,body:[]};if(l[0]&&l[0].type==="ordgroup"){for(var g="",x=0;x<l[0].body.length;x++){var T=je(l[0].body[x],"textord");g+=T.text}d=Number(g),m=d*2}var A=!m;f.body.forEach(function(F){for(var I=1;I<F.length;I+=2){var fe=je(F[I],"styling"),oe=je(fe.body[0],"ordgroup");oe.body.unshift(v)}if(A)m<F.length&&(m=F.length);else{var re=F.length/2;if(d<re)throw new ae("Too many math in a row: "+("expected "+d+", but got "+re),F[0])}});for(var D=0;D<m;++D){var R="r",U=0;D%2===1?R="l":D>0&&A&&(U=1),u[D]={type:"align",align:R,pregap:U,postgap:0}}return f.colSeparationType=A?"align":"alignat",f};Ha({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,a){var l=ks(a[0]),u=l?[a[0]]:je(a[0],"ordgroup").body,s=u.map(function(d){var m=Es(d),v=m.text;if("lcr".includes(v))return{type:"align",align:v};if(v==="|")return{type:"separator",separator:"|"};if(v===":")return{type:"separator",separator:":"};throw new ae("Unknown column alignment: "+v,d)}),f={cols:s,hskipBeforeAndAfter:!0,maxNumCols:s.length};return tl(r.parser,f,tf(r.envName))},htmlBuilder:Ua,mathmlBuilder:ja});Ha({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var a={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],l="c",u={hskipBeforeAndAfter:!1,cols:[{type:"align",align:l}]};if(r.envName.charAt(r.envName.length-1)==="*"){var s=r.parser;if(s.consumeSpaces(),s.fetch().text==="["){if(s.consume(),s.consumeSpaces(),l=s.fetch().text,!"lcr".includes(l))throw new ae("Expected l or c or r",s.nextToken);s.consume(),s.consumeSpaces(),s.expect("]"),s.consume(),u.cols=[{type:"align",align:l}]}}var f=tl(r.parser,u,tf(r.envName)),d=Math.max(0,...f.body.map(m=>m.length));return f.cols=new Array(d).fill({type:"align",align:l}),a?{type:"leftright",mode:r.mode,body:[f],left:a[0],right:a[1],rightColor:void 0}:f},htmlBuilder:Ua,mathmlBuilder:ja});Ha({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var a={arraystretch:.5},l=tl(r.parser,a,"script");return l.colSeparationType="small",l},htmlBuilder:Ua,mathmlBuilder:ja});Ha({type:"array",names:["subarray"],props:{numArgs:1},handler(r,a){var l=ks(a[0]),u=l?[a[0]]:je(a[0],"ordgroup").body,s=u.map(function(m){var v=Es(m),g=v.text;if("lc".includes(g))return{type:"align",align:g};throw new ae("Unknown column alignment: "+g,m)});if(s.length>1)throw new ae("{subarray} can contain only one column");var f={cols:s,hskipBeforeAndAfter:!1,arraystretch:.5},d=tl(r.parser,f,"script");if(d.body.length>0&&d.body[0].length>1)throw new ae("{subarray} can contain only one column");return d},htmlBuilder:Ua,mathmlBuilder:ja});Ha({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var a={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},l=tl(r.parser,a,tf(r.envName));return{type:"leftright",mode:r.mode,body:[l],left:r.envName.includes("r")?".":"\\{",right:r.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Ua,mathmlBuilder:ja});Ha({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Vm,htmlBuilder:Ua,mathmlBuilder:ja});Ha({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){op.has(r.envName)&&Ds(r);var a={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ef(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return tl(r.parser,a,"display")},htmlBuilder:Ua,mathmlBuilder:ja});Ha({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Vm,htmlBuilder:Ua,mathmlBuilder:ja});Ha({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Ds(r);var a={autoTag:ef(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return tl(r.parser,a,"display")},htmlBuilder:Ua,mathmlBuilder:ja});Ha({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Ds(r),K8(r.parser)},htmlBuilder:Ua,mathmlBuilder:ja});w("\\nonumber","\\gdef\\@eqnsw{0}");w("\\notag","\\nonumber");pe({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(r,a){throw new ae(r.funcName+" valid only within array environment")}});var Ad=Xm;pe({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(r,a){var{parser:l,funcName:u}=r,s=a[0];if(s.type!=="ordgroup")throw new ae("Invalid environment name",s);for(var f="",d=0;d<s.body.length;++d)f+=je(s.body[d],"textord").text;if(u==="\\begin"){if(!Ad.hasOwnProperty(f))throw new ae("No such environment: "+f,s);var m=Ad[f],{args:v,optArgs:g}=l.parseArguments("\\begin{"+f+"}",m),x={mode:l.mode,envName:f,parser:l},T=m.handler(x,v,g);l.expect("\\end",!1);var A=l.nextToken,D=je(l.parseFunction(),"environment");if(D.name!==f)throw new ae("Mismatch: \\begin{"+f+"} matched by \\end{"+D.name+"}",A);return T}return{type:"environment",mode:l.mode,name:f,nameGroup:s}}});var fp=(r,a)=>{var l=r.font,u=a.withFont(l);return st(r.body,u)},hp=(r,a)=>{var l=r.font,u=a.withFont(l);return xt(r.body,u)},zd={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};pe({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(r,a)=>{var{parser:l,funcName:u}=r,s=ys(a[0]),f=u in zd?zd[u]:u;return{type:"font",mode:l.mode,font:f.slice(1),body:s}},htmlBuilder:fp,mathmlBuilder:hp});pe({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(r,a)=>{var{parser:l}=r,u=a[0];return{type:"mclass",mode:l.mode,mclass:Ms(u),body:[{type:"font",mode:l.mode,font:"boldsymbol",body:u}],isCharacterBox:hn(u)}}});pe({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(r,a)=>{var{parser:l,funcName:u,breakOnTokenText:s}=r,{mode:f}=l,d=l.parseExpression(!0,s);return{type:"font",mode:f,font:"math"+u.slice(1),body:{type:"ordgroup",mode:l.mode,body:d}}}});var dp=(r,a)=>{var l=a.style,u=l.fracNum(),s=l.fracDen(),f;f=a.havingStyle(u);var d=st(r.numer,f,a);if(r.continued){var m=8.5/a.fontMetrics().ptPerEm,v=3.5/a.fontMetrics().ptPerEm;d.height=d.height<m?m:d.height,d.depth=d.depth<v?v:d.depth}f=a.havingStyle(s);var g=st(r.denom,f,a),x,T,A;r.hasBarLine?(r.barSize?(T=Ot(r.barSize,a),x=br("frac-line",a,T)):x=br("frac-line",a),T=x.height,A=x.height):(x=null,T=0,A=a.fontMetrics().defaultRuleThickness);var D,R,U;l.size===Ne.DISPLAY.size?(D=a.fontMetrics().num1,T>0?R=3*A:R=7*A,U=a.fontMetrics().denom1):(T>0?(D=a.fontMetrics().num2,R=A):(D=a.fontMetrics().num3,R=3*A),U=a.fontMetrics().denom2);var F;if(x){var fe=a.fontMetrics().axisHeight;D-d.depth-(fe+.5*T)<R&&(D+=R-(D-d.depth-(fe+.5*T))),fe-.5*T-(g.height-U)<R&&(U+=R-(fe-.5*T-(g.height-U)));var oe=-(fe-.5*T);F=ut({positionType:"individualShift",children:[{type:"elem",elem:g,shift:U},{type:"elem",elem:x,shift:oe},{type:"elem",elem:d,shift:-D}]})}else{var I=D-d.depth-(g.height-U);I<R&&(D+=.5*(R-I),U+=.5*(R-I)),F=ut({positionType:"individualShift",children:[{type:"elem",elem:g,shift:U},{type:"elem",elem:d,shift:-D}]})}f=a.havingStyle(l),F.height*=f.sizeMultiplier/a.sizeMultiplier,F.depth*=f.sizeMultiplier/a.sizeMultiplier;var re;l.size===Ne.DISPLAY.size?re=a.fontMetrics().delim1:l.size===Ne.SCRIPTSCRIPT.size?re=a.havingStyle(Ne.SCRIPT).fontMetrics().delim2:re=a.fontMetrics().delim2;var ie,le;return r.leftDelim==null?ie=Bi(a,["mopen"]):ie=C1(r.leftDelim,re,!0,a.havingStyle(l),r.mode,["mopen"]),r.continued?le=ee([]):r.rightDelim==null?le=Bi(a,["mclose"]):le=C1(r.rightDelim,re,!0,a.havingStyle(l),r.mode,["mclose"]),ee(["mord"].concat(f.sizingClasses(a)),[ie,ee(["mfrac"],[F]),le],a)},mp=(r,a)=>{var l=new ne("mfrac",[xt(r.numer,a),xt(r.denom,a)]);if(!r.hasBarLine)l.setAttribute("linethickness","0px");else if(r.barSize){var u=Ot(r.barSize,a);l.setAttribute("linethickness",se(u))}if(r.leftDelim!=null||r.rightDelim!=null){var s=[];if(r.leftDelim!=null){var f=new ne("mo",[new Vt(r.leftDelim.replace("\\",""))]);f.setAttribute("fence","true"),s.push(f)}if(s.push(l),r.rightDelim!=null){var d=new ne("mo",[new Vt(r.rightDelim.replace("\\",""))]);d.setAttribute("fence","true"),s.push(d)}return $1(s)}return l},Qm=(r,a)=>{if(!a)return r;var l={type:"styling",mode:r.mode,style:a,body:[r]};return l};pe({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(r,a)=>{var{parser:l,funcName:u}=r,s=a[0],f=a[1],d,m=null,v=null;switch(u){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":d=!0;break;case"\\\\atopfrac":d=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":d=!1,m="(",v=")";break;case"\\\\bracefrac":d=!1,m="\\{",v="\\}";break;case"\\\\brackfrac":d=!1,m="[",v="]";break;default:throw new Error("Unrecognized genfrac command")}var g=u==="\\cfrac",x=null;return g||u.startsWith("\\d")?x="display":u.startsWith("\\t")&&(x="text"),Qm({type:"genfrac",mode:l.mode,numer:s,denom:f,continued:g,hasBarLine:d,leftDelim:m,rightDelim:v,barSize:null},x)},htmlBuilder:dp,mathmlBuilder:mp});pe({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(r){var{parser:a,funcName:l,token:u}=r,s;switch(l){case"\\over":s="\\frac";break;case"\\choose":s="\\binom";break;case"\\atop":s="\\\\atopfrac";break;case"\\brace":s="\\\\bracefrac";break;case"\\brack":s="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:a.mode,replaceWith:s,token:u}}});var Ed=["display","text","script","scriptscript"],kd=function(a){var l=null;return a.length>0&&(l=a,l=l==="."?null:l),l};pe({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(r,a){var{parser:l}=r,u=a[4],s=a[5],f=ys(a[0]),d=f.type==="atom"&&f.family==="open"?kd(f.text):null,m=ys(a[1]),v=m.type==="atom"&&m.family==="close"?kd(m.text):null,g=je(a[2],"size"),x,T=null;g.isBlank?x=!0:(T=g.value,x=T.number>0);var A=null,D=a[3];if(D.type==="ordgroup"){if(D.body.length>0){var R=je(D.body[0],"textord");A=Ed[Number(R.text)]}}else D=je(D,"textord"),A=Ed[Number(D.text)];return Qm({type:"genfrac",mode:l.mode,numer:u,denom:s,continued:!1,hasBarLine:x,barSize:T,leftDelim:d,rightDelim:v},A)}});pe({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(r,a){var{parser:l,funcName:u,token:s}=r;return{type:"infix",mode:l.mode,replaceWith:"\\\\abovefrac",size:je(a[0],"size").value,token:s}}});pe({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(r,a)=>{var{parser:l,funcName:u}=r,s=a[0],f=je(a[1],"infix").size;if(!f)throw new Error("\\\\abovefrac expected size, but got "+String(f));var d=a[2],m=f.number>0;return{type:"genfrac",mode:l.mode,numer:s,denom:d,continued:!1,hasBarLine:m,barSize:f,leftDelim:null,rightDelim:null}}});var Km=(r,a)=>{var l=a.style,u,s;r.type==="supsub"?(u=r.sup?st(r.sup,a.havingStyle(l.sup()),a):st(r.sub,a.havingStyle(l.sub()),a),s=je(r.base,"horizBrace")):s=je(r,"horizBrace");var f=st(s.base,a.havingBaseStyle(Ne.DISPLAY)),d=zs(s,a),m;if(s.isOver?m=ut({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:.1},{type:"elem",elem:d,wrapperClasses:["svg-align"]}]}):m=ut({positionType:"bottom",positionData:f.depth+.1+d.height,children:[{type:"elem",elem:d,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:f}]}),u){var v=ee(["minner",s.isOver?"mover":"munder"],[m],a);s.isOver?m=ut({positionType:"firstBaseline",children:[{type:"elem",elem:v},{type:"kern",size:.2},{type:"elem",elem:u}]}):m=ut({positionType:"bottom",positionData:v.depth+.2+u.height+u.depth,children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:v}]})}return ee(["minner",s.isOver?"mover":"munder"],[m],a)},pp=(r,a)=>{var l=As(r.label);return new ne(r.isOver?"mover":"munder",[xt(r.base,a),l])};pe({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(r,a){var{parser:l,funcName:u}=r;return{type:"horizBrace",mode:l.mode,label:u,isOver:u.includes("\\over"),base:a[0]}},htmlBuilder:Km,mathmlBuilder:pp});pe({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(r,a)=>{var{parser:l}=r,u=a[1],s=je(a[0],"url").url;return l.settings.isTrusted({command:"\\href",url:s})?{type:"href",mode:l.mode,href:s,body:Zt(u)}:l.formatUnsupportedCmd("\\href")},htmlBuilder:(r,a)=>{var l=Pt(r.body,a,!1);return b8(r.href,[],l,a)},mathmlBuilder:(r,a)=>{var l=el(r.body,a);return l instanceof ne||(l=new ne("mrow",[l])),l.setAttribute("href",r.href),l}});pe({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(r,a)=>{var{parser:l}=r,u=je(a[0],"url").url;if(!l.settings.isTrusted({command:"\\url",url:u}))return l.formatUnsupportedCmd("\\url");for(var s=[],f=0;f<u.length;f++){var d=u[f];d==="~"&&(d="\\textasciitilde"),s.push({type:"textord",mode:"text",text:d})}var m={type:"text",mode:l.mode,font:"\\texttt",body:s};return{type:"href",mode:l.mode,href:u,body:Zt(m)}}});pe({type:"hbox",names:["\\hbox"],numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0,handler(r,a){var{parser:l}=r;return{type:"hbox",mode:l.mode,body:Zt(a[0])}},htmlBuilder(r,a){var l=Pt(r.body,a.withFont(""),!1);return mn(l)},mathmlBuilder(r,a){return new ne("mrow",ta(r.body,a.withFont("")))}});pe({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],numArgs:2,argTypes:["raw","original"],allowedInText:!0,handler:(r,a)=>{var{parser:l,funcName:u,token:s}=r,f=je(a[0],"raw").string,d=a[1];l.settings.strict&&l.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var m,v={};switch(u){case"\\htmlClass":v.class=f,m={command:"\\htmlClass",class:f};break;case"\\htmlId":v.id=f,m={command:"\\htmlId",id:f};break;case"\\htmlStyle":v.style=f,m={command:"\\htmlStyle",style:f};break;case"\\htmlData":{for(var g=f.split(","),x=0;x<g.length;x++){var T=g[x],A=T.indexOf("=");if(A<0)throw new ae("\\htmlData key/value '"+T+"' missing equals sign");var D=T.slice(0,A),R=T.slice(A+1);v["data-"+D.trim()]=R}m={command:"\\htmlData",attributes:v};break}default:throw new Error("Unrecognized html command")}return l.settings.isTrusted(m)?{type:"html",mode:l.mode,attributes:v,body:Zt(d)}:l.formatUnsupportedCmd(u)},htmlBuilder:(r,a)=>{var l=Pt(r.body,a,!1),u=["enclosing"];r.attributes.class&&u.push(...r.attributes.class.trim().split(/\s+/));var s=ee(u,l,a);for(var f in r.attributes)f!=="class"&&r.attributes.hasOwnProperty(f)&&s.setAttribute(f,r.attributes[f]);return s},mathmlBuilder:(r,a)=>el(r.body,a)});pe({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(r,a)=>{var{parser:l}=r;return{type:"htmlmathml",mode:l.mode,html:Zt(a[0]),mathml:Zt(a[1])}},htmlBuilder:(r,a)=>{var l=Pt(r.html,a,!1);return mn(l)},mathmlBuilder:(r,a)=>el(r.mathml,a)});var Pc=function(a){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(a))return{number:+a,unit:"bp"};var l=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(a);if(!l)throw new ae("Invalid size: '"+a+"' in \\includegraphics");var u={number:+(l[1]+l[2]),unit:l[3]};if(!vm(u))throw new ae("Invalid unit: '"+u.unit+"' in \\includegraphics.");return u};pe({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(r,a,l)=>{var{parser:u}=r,s={number:0,unit:"em"},f={number:.9,unit:"em"},d={number:0,unit:"em"},m="";if(l[0])for(var v=je(l[0],"raw").string,g=v.split(","),x=0;x<g.length;x++){var T=g[x].split("=");if(T.length===2){var A=T[1].trim();switch(T[0].trim()){case"alt":m=A;break;case"width":s=Pc(A);break;case"height":f=Pc(A);break;case"totalheight":d=Pc(A);break;default:throw new ae("Invalid key: '"+T[0]+"' in \\includegraphics.")}}}var D=je(a[0],"url").url;return m===""&&(m=D,m=m.replace(/^.*[\\/]/,""),m=m.substring(0,m.lastIndexOf("."))),u.settings.isTrusted({command:"\\includegraphics",url:D})?{type:"includegraphics",mode:u.mode,alt:m,width:s,height:f,totalheight:d,src:D}:u.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,a)=>{var l=Ot(r.height,a),u=0;r.totalheight.number>0&&(u=Ot(r.totalheight,a)-l);var s=0;r.width.number>0&&(s=Ot(r.width,a));var f={height:se(l+u)};s>0&&(f.width=se(s)),u>0&&(f.verticalAlign=se(-u));var d=new u8(r.src,r.alt,f);return d.height=l,d.depth=u,d},mathmlBuilder:(r,a)=>{var l=new ne("mglyph",[]);l.setAttribute("alt",r.alt);var u=Ot(r.height,a),s=0;if(r.totalheight.number>0&&(s=Ot(r.totalheight,a)-u,l.setAttribute("valign",se(-s))),l.setAttribute("height",se(u+s)),r.width.number>0){var f=Ot(r.width,a);l.setAttribute("width",se(f))}return l.setAttribute("src",r.src),l}});pe({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(r,a){var{parser:l,funcName:u}=r,s=je(a[0],"size");if(l.settings.strict){var f=u[1]==="m",d=s.value.unit==="mu";f?(d||l.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+u+" supports only mu units, "+("not "+s.value.unit+" units")),l.mode!=="math"&&l.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+u+" works only in math mode")):d&&l.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+u+" doesn't support mu units")}return{type:"kern",mode:l.mode,dimension:s.value}},htmlBuilder(r,a){return wm(r.dimension,a)},mathmlBuilder(r,a){var l=Ot(r.dimension,a);return new Mm(l)}});pe({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(r,a)=>{var{parser:l,funcName:u}=r,s=a[0];return{type:"lap",mode:l.mode,alignment:u.slice(5),body:s}},htmlBuilder:(r,a)=>{var l;r.alignment==="clap"?(l=ee([],[st(r.body,a)]),l=ee(["inner"],[l],a)):l=ee(["inner"],[st(r.body,a)]);var u=ee(["fix"],[]),s=ee([r.alignment],[l,u],a),f=ee(["strut"]);return f.style.height=se(s.height+s.depth),s.depth&&(f.style.verticalAlign=se(-s.depth)),s.children.unshift(f),s=ee(["thinbox"],[s],a),ee(["mord","vbox"],[s],a)},mathmlBuilder:(r,a)=>{var l=new ne("mpadded",[xt(r.body,a)]);if(r.alignment!=="rlap"){var u=r.alignment==="llap"?"-1":"-0.5";l.setAttribute("lspace",u+"width")}return l.setAttribute("width","0px"),l}});pe({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(r,a){var{funcName:l,parser:u}=r,s=u.mode;u.switchMode("math");var f=l==="\\("?"\\)":"$",d=u.parseExpression(!1,f);return u.expect(f),u.switchMode(s),{type:"styling",mode:u.mode,style:"text",resetFont:!0,body:d}}});pe({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(r,a){throw new ae("Mismatched "+r.funcName)}});var Md=(r,a)=>{switch(a.style.size){case Ne.DISPLAY.size:return r.display;case Ne.TEXT.size:return r.text;case Ne.SCRIPT.size:return r.script;case Ne.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};pe({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(r,a)=>{var{parser:l}=r;return{type:"mathchoice",mode:l.mode,display:Zt(a[0]),text:Zt(a[1]),script:Zt(a[2]),scriptscript:Zt(a[3])}},htmlBuilder:(r,a)=>{var l=Md(r,a),u=Pt(l,a,!1);return mn(u)},mathmlBuilder:(r,a)=>{var l=Md(r,a);return el(l,a)}});var Fm=(r,a,l,u,s,f,d)=>{r=ee([],[r]);var m=l&&hn(l),v,g;if(a){var x=st(a,u.havingStyle(s.sup()),u);g={elem:x,kern:Math.max(u.fontMetrics().bigOpSpacing1,u.fontMetrics().bigOpSpacing3-x.depth)}}if(l){var T=st(l,u.havingStyle(s.sub()),u);v={elem:T,kern:Math.max(u.fontMetrics().bigOpSpacing2,u.fontMetrics().bigOpSpacing4-T.height)}}var A;if(g&&v){var D=u.fontMetrics().bigOpSpacing5+v.elem.height+v.elem.depth+v.kern+r.depth+d;A=ut({positionType:"bottom",positionData:D,children:[{type:"kern",size:u.fontMetrics().bigOpSpacing5},{type:"elem",elem:v.elem,marginLeft:se(-f)},{type:"kern",size:v.kern},{type:"elem",elem:r},{type:"kern",size:g.kern},{type:"elem",elem:g.elem,marginLeft:se(f)},{type:"kern",size:u.fontMetrics().bigOpSpacing5}]})}else if(v){var R=r.height-d;A=ut({positionType:"top",positionData:R,children:[{type:"kern",size:u.fontMetrics().bigOpSpacing5},{type:"elem",elem:v.elem,marginLeft:se(-f)},{type:"kern",size:v.kern},{type:"elem",elem:r}]})}else if(g){var U=r.depth+d;A=ut({positionType:"bottom",positionData:U,children:[{type:"elem",elem:r},{type:"kern",size:g.kern},{type:"elem",elem:g.elem,marginLeft:se(f)},{type:"kern",size:u.fontMetrics().bigOpSpacing5}]})}else return r;var F=[A];if(v&&f!==0&&!m){var I=ee(["mspace"],[],u);I.style.marginRight=se(f),F.unshift(I)}return ee(["mop","op-limits"],F,u)},Im=new Set(["\\smallint"]),Jm=(r,a)=>{var l,u,s=!1,f;r.type==="supsub"?(l=r.sup,u=r.sub,f=je(r.base,"op"),s=!0):f=je(r,"op");var d=a.style,m=!1;d.size===Ne.DISPLAY.size&&f.symbol&&!Im.has(f.name)&&(m=!0);var v,g;if(f.symbol){var x=m?"Size2-Regular":"Size1-Regular",T="";if((f.name==="\\oiint"||f.name==="\\oiiint")&&(T=f.name.slice(1),f.name=T==="oiint"?"\\iint":"\\iiint"),v=z0(f.name,x,"math",a,["mop","op-symbol",m?"large-op":"small-op"]),g=v.italic,T.length>0){var A=Am(T+"Size"+(m?"2":"1"),a);v=ut({positionType:"individualShift",children:[{type:"elem",elem:v,shift:0},{type:"elem",elem:A,shift:m?.08:0}]}),f.name="\\"+T,v.classes.unshift("mop"),v.italic=g}}else if(f.body){var D=Pt(f.body,a,!0);D.length===1&&D[0]instanceof P0?(v=D[0],v.classes[0]="mop"):v=ee(["mop"],D,a)}else{for(var R=[],U=1;U<f.name.length;U++)R.push(I1(f.name[U],f.mode,a));v=ee(["mop"],R,a)}var F=0,I=0;if((v instanceof P0||f.name==="\\oiint"||f.name==="\\oiiint")&&!f.suppressBaseShift){var fe;F=(v.height-v.depth)/2-a.fontMetrics().axisHeight,I=(fe=v.italic)!=null?fe:0}return s?Fm(v,l,u,a,d,I,F):(F&&(v.style.position="relative",v.style.top=se(F)),v)},vp=(r,a)=>{var l;if(r.symbol)l=new ne("mo",[pa(r.name,r.mode)]),Im.has(r.name)&&l.setAttribute("largeop","false");else if(r.body)l=new ne("mo",ta(r.body,a));else{l=new ne("mi",[new Vt(r.name.slice(1))]);var u=new ne("mo",[pa("⁡","text")]);r.parentIsSupSub?l=new ne("mrow",[l,u]):l=km([l,u])}return l},gp={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};pe({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],numArgs:0,handler:(r,a)=>{var{parser:l,funcName:u}=r,s=u;return s.length===1&&(s=gp[s]),{type:"op",mode:l.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:s}},htmlBuilder:Jm,mathmlBuilder:vp});pe({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(r,a)=>{var{parser:l}=r,u=a[0];return{type:"op",mode:l.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Zt(u)}}});var yp={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};pe({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"],numArgs:0,handler(r){var{parser:a,funcName:l}=r;return{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:l}}});pe({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(r){var{parser:a,funcName:l}=r;return{type:"op",mode:a.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:l}}});pe({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],numArgs:0,allowedInArgument:!0,handler(r){var{parser:a,funcName:l}=r,u=l;return u.length===1&&(u=yp[u]),{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:u}}});var $m=(r,a)=>{var l,u,s=!1,f;r.type==="supsub"?(l=r.sup,u=r.sub,f=je(r.base,"operatorname"),s=!0):f=je(r,"operatorname");var d;if(f.body.length>0){for(var m=f.body.map(T=>{var A="text"in T?T.text:void 0;return typeof A=="string"?{type:"textord",mode:T.mode,text:A}:T}),v=Pt(m,a.withFont("mathrm"),!0),g=0;g<v.length;g++){var x=v[g];x instanceof P0&&(x.text=x.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}d=ee(["mop"],v,a)}else d=ee(["mop"],[],a);return s?Fm(d,l,u,a,a.style,0,0):d},bp=(r,a)=>{for(var l=ta(r.body,a.withFont("mathrm")),u=!0,s=0;s<l.length;s++){var f=l[s];if(!(f instanceof Mm))if(f instanceof ne)switch(f.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var d=f.children[0];f.children.length===1&&d instanceof Vt?d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):u=!1;break}default:u=!1}else u=!1}if(u){var m=l.map(x=>x.toText()).join("");l=[new Vt(m)]}var v=new ne("mi",l);v.setAttribute("mathvariant","normal");var g=new ne("mo",[pa("⁡","text")]);return r.parentIsSupSub?new ne("mrow",[v,g]):km([v,g])};pe({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(r,a)=>{var{parser:l,funcName:u}=r,s=a[0];return{type:"operatorname",mode:l.mode,body:Zt(s),alwaysHandleSupSub:u==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:$m,mathmlBuilder:bp});w("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Dl({type:"ordgroup",htmlBuilder(r,a){return r.semisimple?mn(Pt(r.body,a,!1)):ee(["mord"],Pt(r.body,a,!0),a)},mathmlBuilder(r,a){return el(r.body,a,!0)}});pe({type:"overline",names:["\\overline"],numArgs:1,handler(r,a){var{parser:l}=r,u=a[0];return{type:"overline",mode:l.mode,body:u}},htmlBuilder(r,a){var l=st(r.body,a.havingCrampedStyle()),u=br("overline-line",a),s=a.fontMetrics().defaultRuleThickness,f=ut({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:3*s},{type:"elem",elem:u},{type:"kern",size:s}]});return ee(["mord","overline"],[f],a)},mathmlBuilder(r,a){var l=new ne("mo",[new Vt("‾")]);l.setAttribute("stretchy","true");var u=new ne("mover",[xt(r.body,a),l]);return u.setAttribute("accent","true"),u}});pe({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(r,a)=>{var{parser:l}=r,u=a[0];return{type:"phantom",mode:l.mode,body:Zt(u)}},htmlBuilder:(r,a)=>{var l=Pt(r.body,a.withPhantom(),!1);return mn(l)},mathmlBuilder:(r,a)=>{var l=ta(r.body,a);return new ne("mphantom",l)}});w("\\hphantom","\\smash{\\phantom{#1}}");pe({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(r,a)=>{var{parser:l}=r,u=a[0];return{type:"vphantom",mode:l.mode,body:u}},htmlBuilder:(r,a)=>{var l=ee(["inner"],[st(r.body,a.withPhantom())]),u=ee(["fix"],[]);return ee(["mord","rlap"],[l,u],a)},mathmlBuilder:(r,a)=>{var l=ta(Zt(r.body),a),u=new ne("mphantom",l),s=new ne("mpadded",[u]);return s.setAttribute("width","0px"),s}});pe({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(r,a){var{parser:l}=r,u=je(a[0],"size").value,s=a[1];return{type:"raisebox",mode:l.mode,dy:u,body:s}},htmlBuilder(r,a){var l=st(r.body,a),u=Ot(r.dy,a);return ut({positionType:"shift",positionData:-u,children:[{type:"elem",elem:l}]})},mathmlBuilder(r,a){var l=new ne("mpadded",[xt(r.body,a)]),u=r.dy.number+r.dy.unit;return l.setAttribute("voffset",u),l}});pe({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(r){var{parser:a}=r;return{type:"internal",mode:a.mode}}});pe({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(r,a,l){var{parser:u}=r,s=l[0],f=je(a[0],"size"),d=je(a[1],"size");return{type:"rule",mode:u.mode,shift:s&&je(s,"size").value,width:f.value,height:d.value}},htmlBuilder(r,a){var l=ee(["mord","rule"],[],a),u=Ot(r.width,a),s=Ot(r.height,a),f=r.shift?Ot(r.shift,a):0;return l.style.borderRightWidth=se(u),l.style.borderTopWidth=se(s),l.style.bottom=se(f),l.width=u,l.height=s+f,l.depth=-f,l.maxFontSize=s*1.125*a.sizeMultiplier,l},mathmlBuilder(r,a){var l=Ot(r.width,a),u=Ot(r.height,a),s=r.shift?Ot(r.shift,a):0,f=a.color&&a.getColor()||"black",d=new ne("mspace");d.setAttribute("mathbackground",f),d.setAttribute("width",se(l)),d.setAttribute("height",se(u));var m=new ne("mpadded",[d]);return s>=0?m.setAttribute("height",se(s)):(m.setAttribute("height",se(s)),m.setAttribute("depth",se(-s))),m.setAttribute("voffset",se(s)),m}});function Wm(r,a,l){for(var u=Pt(r,a,!1),s=a.sizeMultiplier/l.sizeMultiplier,f=0;f<u.length;f++){var d=u[f].classes.indexOf("sizing");d<0?Array.prototype.push.apply(u[f].classes,a.sizingClasses(l)):u[f].classes[d+1]==="reset-size"+a.size&&(u[f].classes[d+1]="reset-size"+l.size),u[f].height*=s,u[f].depth*=s}return mn(u)}var Cd=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],xp=(r,a)=>{var l=a.havingSize(r.size);return Wm(r.body,l,a)};pe({type:"sizing",names:Cd,numArgs:0,allowedInText:!0,handler:(r,a)=>{var{breakOnTokenText:l,funcName:u,parser:s}=r,f=s.parseExpression(!1,l);return{type:"sizing",mode:s.mode,size:Cd.indexOf(u)+1,body:f}},htmlBuilder:xp,mathmlBuilder:(r,a)=>{var l=a.havingSize(r.size),u=ta(r.body,l),s=new ne("mstyle",u);return s.setAttribute("mathsize",se(l.sizeMultiplier)),s}});pe({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(r,a,l)=>{var{parser:u}=r,s=!1,f=!1,d=l[0]&&je(l[0],"ordgroup");if(d)for(var m,v=0;v<d.body.length;++v){var g=d.body[v];if(m=Es(g).text,m==="t")s=!0;else if(m==="b")f=!0;else{s=!1,f=!1;break}}else s=!0,f=!0;var x=a[0];return{type:"smash",mode:u.mode,body:x,smashHeight:s,smashDepth:f}},htmlBuilder:(r,a)=>{var l=ee([],[st(r.body,a)]);if(!r.smashHeight&&!r.smashDepth)return l;if(r.smashHeight&&(l.height=0),r.smashDepth&&(l.depth=0),r.smashHeight&&r.smashDepth)return ee(["mord","smash"],[l],a);if(l.children)for(var u=0;u<l.children.length;u++)r.smashHeight&&(l.children[u].height=0),r.smashDepth&&(l.children[u].depth=0);var s=ut({positionType:"firstBaseline",children:[{type:"elem",elem:l}]});return ee(["mord"],[s],a)},mathmlBuilder:(r,a)=>{var l=new ne("mpadded",[xt(r.body,a)]);return r.smashHeight&&l.setAttribute("height","0px"),r.smashDepth&&l.setAttribute("depth","0px"),l}});pe({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(r,a,l){var{parser:u}=r,s=l[0],f=a[0];return{type:"sqrt",mode:u.mode,body:f,index:s}},htmlBuilder(r,a){var l=st(r.body,a.havingCrampedStyle());l.height===0&&(l.height=a.fontMetrics().xHeight),l=xr(l,a);var u=a.fontMetrics(),s=u.defaultRuleThickness,f=s;a.style.id<Ne.TEXT.id&&(f=a.fontMetrics().xHeight);var d=s+f/4,m=l.height+l.depth+d+s,{span:v,ruleWidth:g,advanceWidth:x}=tp(m,a),T=v.height-g;T>l.height+l.depth+d&&(d=(d+T-l.height-l.depth)/2);var A=v.height-l.height-d-g;l.style.paddingLeft=se(x);var D=ut({positionType:"firstBaseline",children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:-(l.height+A)},{type:"elem",elem:v},{type:"kern",size:g}]});if(r.index){var R=a.havingStyle(Ne.SCRIPTSCRIPT),U=st(r.index,R,a),F=.6*(D.height-D.depth),I=ut({positionType:"shift",positionData:-F,children:[{type:"elem",elem:U}]}),fe=ee(["root"],[I]);return ee(["mord","sqrt"],[fe,D],a)}else return ee(["mord","sqrt"],[D],a)},mathmlBuilder(r,a){var{body:l,index:u}=r;return u?new ne("mroot",[xt(l,a),xt(u,a)]):new ne("msqrt",[xt(l,a)])}});var D1={display:Ne.DISPLAY,text:Ne.TEXT,script:Ne.SCRIPT,scriptscript:Ne.SCRIPTSCRIPT};function Sp(r){return r in D1}pe({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(r,a){var{breakOnTokenText:l,funcName:u,parser:s}=r,f=s.parseExpression(!0,l),d=u.slice(1,u.length-5);if(!Sp(d))throw new Error("Unknown style: "+d);return{type:"styling",mode:s.mode,style:d,body:f}},htmlBuilder(r,a){var l=D1[r.style],u=a.havingStyle(l);return r.resetFont&&(u=u.withFont("")),Wm(r.body,u,a)},mathmlBuilder(r,a){var l=D1[r.style],u=a.havingStyle(l);r.resetFont&&(u=u.withFont(""));var s=ta(r.body,u),f=new ne("mstyle",s),d={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},m=d[r.style];return f.setAttribute("scriptlevel",m[0]),f.setAttribute("displaystyle",m[1]),f}});var wp=function(a,l){var u=a.base;if(u)if(u.type==="op"){var s=u.limits&&(l.style.size===Ne.DISPLAY.size||u.alwaysHandleSupSub);return s?Jm:null}else if(u.type==="operatorname"){var f=u.alwaysHandleSupSub&&(l.style.size===Ne.DISPLAY.size||u.limits);return f?$m:null}else{if(u.type==="accent")return hn(u.base)?Rm:null;if(u.type==="horizBrace"){var d=!a.sub;return d===u.isOver?Km:null}else return null}else return null};Dl({type:"supsub",htmlBuilder(r,a){var l=wp(r,a);if(l)return l(r,a);var{base:u,sup:s,sub:f}=r,d=st(u,a),m,v,g=a.fontMetrics(),x=0,T=0,A=u&&hn(u);if(s){var D=a.havingStyle(a.style.sup());m=st(s,D,a),A||(x=d.height-D.fontMetrics().supDrop*D.sizeMultiplier/a.sizeMultiplier)}if(f){var R=a.havingStyle(a.style.sub());v=st(f,R,a),A||(T=d.depth+R.fontMetrics().subDrop*R.sizeMultiplier/a.sizeMultiplier)}var U;a.style===Ne.DISPLAY?U=g.sup1:a.style.cramped?U=g.sup3:U=g.sup2;var F=a.sizeMultiplier,I=se(.5/g.ptPerEm/F),fe=null;if(v){var oe=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");if(d instanceof P0||oe){var re;fe=se(-((re=d.italic)!=null?re:0))}}var ie;if(m&&v){x=Math.max(x,U,m.depth+.25*g.xHeight),T=Math.max(T,g.sub2);var le=g.defaultRuleThickness,X=4*le;if(x-m.depth-(v.height-T)<X){T=X-(x-m.depth)+v.height;var we=.8*g.xHeight-(x-m.depth);we>0&&(x+=we,T-=we)}var Te=[{type:"elem",elem:v,shift:T,marginRight:I,marginLeft:fe},{type:"elem",elem:m,shift:-x,marginRight:I}];ie=ut({positionType:"individualShift",children:Te})}else if(v){T=Math.max(T,g.sub1,v.height-.8*g.xHeight);var Ge=[{type:"elem",elem:v,marginLeft:fe,marginRight:I}];ie=ut({positionType:"shift",positionData:T,children:Ge})}else if(m)x=Math.max(x,U,m.depth+.25*g.xHeight),ie=ut({positionType:"shift",positionData:-x,children:[{type:"elem",elem:m,marginRight:I}]});else throw new Error("supsub must have either sup or sub.");var ze=z1(d,"right")||"mord";return ee([ze],[d,ee(["msupsub"],[ie])],a)},mathmlBuilder(r,a){var l=!1,u,s;r.base&&r.base.type==="horizBrace"&&(s=!!r.sup,s===r.base.isOver&&(l=!0,u=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var f=[xt(r.base,a)];r.sub&&f.push(xt(r.sub,a)),r.sup&&f.push(xt(r.sup,a));var d;if(l)d=u?"mover":"munder";else if(r.sub)if(r.sup){var g=r.base;g&&g.type==="op"&&g.limits&&a.style===Ne.DISPLAY||g&&g.type==="operatorname"&&g.alwaysHandleSupSub&&(a.style===Ne.DISPLAY||g.limits)?d="munderover":d="msubsup"}else{var v=r.base;v&&v.type==="op"&&v.limits&&(a.style===Ne.DISPLAY||v.alwaysHandleSupSub)||v&&v.type==="operatorname"&&v.alwaysHandleSupSub&&(v.limits||a.style===Ne.DISPLAY)?d="munder":d="msub"}else{var m=r.base;m&&m.type==="op"&&m.limits&&(a.style===Ne.DISPLAY||m.alwaysHandleSupSub)||m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(m.limits||a.style===Ne.DISPLAY)?d="mover":d="msup"}return new ne(d,f)}});Dl({type:"atom",htmlBuilder(r,a){return I1(r.text,r.mode,a,["m"+r.family])},mathmlBuilder(r,a){var l=new ne("mo",[pa(r.text,r.mode)]);if(r.family==="bin"){var u=W1(r,a);u==="bold-italic"&&l.setAttribute("mathvariant",u)}else r.family==="punct"?l.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&l.setAttribute("stretchy","false");return l}});var Pm={mi:"italic",mn:"normal",mtext:"normal"};Dl({type:"mathord",htmlBuilder(r,a){return Ts(r,a)},mathmlBuilder(r,a){var l=new ne("mi",[pa(r.text,r.mode,a)]),u=W1(r,a)||"italic";return u!==Pm[l.type]&&l.setAttribute("mathvariant",u),l}});Dl({type:"textord",htmlBuilder(r,a){return Ts(r,a)},mathmlBuilder(r,a){var l=pa(r.text,r.mode,a),u=W1(r,a)||"normal",s;return r.mode==="text"?s=new ne("mtext",[l]):/[0-9]/.test(r.text)?s=new ne("mn",[l]):r.text==="\\prime"?s=new ne("mo",[l]):s=new ne("mi",[l]),u!==Pm[s.type]&&s.setAttribute("mathvariant",u),s}});var e1={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},t1={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Dl({type:"spacing",htmlBuilder(r,a){if(t1.hasOwnProperty(r.text)){var l=t1[r.text].className||"";if(r.mode==="text"){var u=Ts(r,a);return u.classes.push(l),u}else return ee(["mspace",l],[I1(r.text,r.mode,a)],a)}else{if(e1.hasOwnProperty(r.text))return ee(["mspace",e1[r.text]],[],a);throw new ae('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,a){var l;if(t1.hasOwnProperty(r.text))l=new ne("mtext",[new Vt(" ")]);else{if(e1.hasOwnProperty(r.text))return new ne("mspace");throw new ae('Unknown type of space "'+r.text+'"')}return l}});var Dd=()=>{var r=new ne("mtd",[]);return r.setAttribute("width","50%"),r};Dl({type:"tag",mathmlBuilder(r,a){var l=new ne("mtable",[new ne("mtr",[Dd(),new ne("mtd",[el(r.body,a)]),Dd(),new ne("mtd",[el(r.tag,a)])])]);return l.setAttribute("width","100%"),l}});var _d={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Rd={"\\textbf":"textbf","\\textmd":"textmd"},Tp={"\\textit":"textit","\\textup":"textup"},Od=(r,a)=>{var l=r.font;if(l){if(_d[l])return a.withTextFontFamily(_d[l]);if(Rd[l])return a.withTextFontWeight(Rd[l]);if(l==="\\emph")return a.fontShape==="textit"?a.withTextFontShape("textup"):a.withTextFontShape("textit")}else return a;return a.withTextFontShape(Tp[l])};pe({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(r,a){var{parser:l,funcName:u}=r,s=a[0];return{type:"text",mode:l.mode,body:Zt(s),font:u}},htmlBuilder(r,a){var l=Od(r,a),u=Pt(r.body,l,!0);return ee(["mord","text"],u,l)},mathmlBuilder(r,a){var l=Od(r,a);return el(r.body,l)}});pe({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(r,a){var{parser:l}=r;return{type:"underline",mode:l.mode,body:a[0]}},htmlBuilder(r,a){var l=st(r.body,a),u=br("underline-line",a),s=a.fontMetrics().defaultRuleThickness,f=ut({positionType:"top",positionData:l.height,children:[{type:"kern",size:s},{type:"elem",elem:u},{type:"kern",size:3*s},{type:"elem",elem:l}]});return ee(["mord","underline"],[f],a)},mathmlBuilder(r,a){var l=new ne("mo",[new Vt("‾")]);l.setAttribute("stretchy","true");var u=new ne("munder",[xt(r.body,a),l]);return u.setAttribute("accentunder","true"),u}});pe({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(r,a){var{parser:l}=r;return{type:"vcenter",mode:l.mode,body:a[0]}},htmlBuilder(r,a){var l=st(r.body,a),u=a.fontMetrics().axisHeight,s=.5*(l.height-u-(l.depth+u));return ut({positionType:"shift",positionData:s,children:[{type:"elem",elem:l}]})},mathmlBuilder(r,a){var l=new ne("mpadded",[xt(r.body,a)],["vcenter"]);return new ne("mrow",[l])}});pe({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(r,a,l){throw new ae("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,a){for(var l=Nd(r),u=[],s=a.havingStyle(a.style.text()),f=0;f<l.length;f++){var d=l[f];d==="~"&&(d="\\textasciitilde"),u.push(z0(d,"Typewriter-Regular",r.mode,s,["mord","texttt"]))}return ee(["mord","text"].concat(s.sizingClasses(a)),Sm(u),s)},mathmlBuilder(r,a){var l=new Vt(Nd(r)),u=new ne("mtext",[l]);return u.setAttribute("mathvariant","monospace"),u}});var Nd=r=>r.body.replace(/ /g,r.star?"␣":" "),Jn=zm,e3=`[ \r
	]`,Ap="\\\\[a-zA-Z@]+",zp="\\\\[^\uD800-\uDFFF]",Ep="("+Ap+")"+e3+"*",kp=`\\\\(
|[ \r	]+
?)[ \r	]*`,_1="[̀-ͯ]",Mp=new RegExp(_1+"+$"),Cp="("+e3+"+)|"+(kp+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(_1+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(_1+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Ep)+("|"+zp+")");class Bd{constructor(a,l){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=a,this.settings=l,this.tokenRegex=new RegExp(Cp,"g"),this.catcodes={"%":14,"~":13}}setCatcode(a,l){this.catcodes[a]=l}lex(){var a=this.input,l=this.tokenRegex.lastIndex;if(l===a.length)return new W0("EOF",new H0(this,l,l));var u=this.tokenRegex.exec(a);if(u===null||u.index!==l)throw new ae("Unexpected character: '"+a[l]+"'",new W0(a[l],new H0(this,l,l+1)));var s=u[6]||u[3]||(u[2]?"\\ ":" ");if(this.catcodes[s]===14){var f=a.indexOf(`
`,this.tokenRegex.lastIndex);return f===-1?(this.tokenRegex.lastIndex=a.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=f+1,this.lex()}return new W0(s,new H0(this,l,this.tokenRegex.lastIndex))}}class Dp{constructor(a,l){a===void 0&&(a={}),l===void 0&&(l={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=l,this.builtins=a,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ae("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var a=this.undefStack.pop();for(var l in a)a.hasOwnProperty(l)&&(a[l]==null?delete this.current[l]:this.current[l]=a[l])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(a){return this.current.hasOwnProperty(a)||this.builtins.hasOwnProperty(a)}get(a){return this.current.hasOwnProperty(a)?this.current[a]:this.builtins[a]}set(a,l,u){if(u===void 0&&(u=!1),u){for(var s=0;s<this.undefStack.length;s++)delete this.undefStack[s][a];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][a]=l)}else{var f=this.undefStack[this.undefStack.length-1];f&&!f.hasOwnProperty(a)&&(f[a]=this.current[a])}l==null?delete this.current[a]:this.current[a]=l}}var _p=Zm;w("\\noexpand",function(r){var a=r.popToken();return r.isExpandable(a.text)&&(a.noexpand=!0,a.treatAsRelax=!0),{tokens:[a],numArgs:0}});w("\\expandafter",function(r){var a=r.popToken();return r.expandOnce(!0),{tokens:[a],numArgs:0}});w("\\@firstoftwo",function(r){var a=r.consumeArgs(2);return{tokens:a[0],numArgs:0}});w("\\@secondoftwo",function(r){var a=r.consumeArgs(2);return{tokens:a[1],numArgs:0}});w("\\@ifnextchar",function(r){var a=r.consumeArgs(3);r.consumeSpaces();var l=r.future();return a[0].length===1&&a[0][0].text===l.text?{tokens:a[1],numArgs:0}:{tokens:a[2],numArgs:0}});w("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");w("\\TextOrMath",function(r){var a=r.consumeArgs(2);return r.mode==="text"?{tokens:a[0],numArgs:0}:{tokens:a[1],numArgs:0}});var Ld={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};w("\\char",function(r){var a=r.popToken(),l,u=0;if(a.text==="'")l=8,a=r.popToken();else if(a.text==='"')l=16,a=r.popToken();else if(a.text==="`")if(a=r.popToken(),a.text[0]==="\\")u=a.text.charCodeAt(1);else{if(a.text==="EOF")throw new ae("\\char` missing argument");u=a.text.charCodeAt(0)}else l=10;if(l){if(u=Ld[a.text],u==null||u>=l)throw new ae("Invalid base-"+l+" digit "+a.text);for(var s;(s=Ld[r.future().text])!=null&&s<l;)u*=l,u+=s,r.popToken()}return"\\@char{"+u+"}"});var af=(r,a,l,u)=>{var s=r.consumeArg().tokens;if(s.length!==1)throw new ae("\\newcommand's first argument must be a macro name");var f=s[0].text,d=r.isDefined(f);if(d&&!a)throw new ae("\\newcommand{"+f+"} attempting to redefine "+(f+"; use \\renewcommand"));if(!d&&!l)throw new ae("\\renewcommand{"+f+"} when command "+f+" does not yet exist; use \\newcommand");var m=0;if(s=r.consumeArg().tokens,s.length===1&&s[0].text==="["){for(var v="",g=r.expandNextToken();g.text!=="]"&&g.text!=="EOF";)v+=g.text,g=r.expandNextToken();if(!v.match(/^\s*[0-9]+\s*$/))throw new ae("Invalid number of arguments: "+v);m=parseInt(v),s=r.consumeArg().tokens}return d&&u||r.macros.set(f,{tokens:s,numArgs:m}),""};w("\\newcommand",r=>af(r,!1,!0,!1));w("\\renewcommand",r=>af(r,!0,!1,!1));w("\\providecommand",r=>af(r,!0,!0,!0));w("\\message",r=>{var a=r.consumeArgs(1)[0];return console.log(a.reverse().map(l=>l.text).join("")),""});w("\\errmessage",r=>{var a=r.consumeArgs(1)[0];return console.error(a.reverse().map(l=>l.text).join("")),""});w("\\show",r=>{var a=r.popToken(),l=a.text;return console.log(a,r.macros.get(l),Jn[l],Mt.math[l],Mt.text[l]),""});w("\\bgroup","{");w("\\egroup","}");w("~","\\nobreakspace");w("\\lq","`");w("\\rq","'");w("\\aa","\\r a");w("\\AA","\\r A");w("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");w("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");w("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");w("ℬ","\\mathscr{B}");w("ℰ","\\mathscr{E}");w("ℱ","\\mathscr{F}");w("ℋ","\\mathscr{H}");w("ℐ","\\mathscr{I}");w("ℒ","\\mathscr{L}");w("ℳ","\\mathscr{M}");w("ℛ","\\mathscr{R}");w("ℭ","\\mathfrak{C}");w("ℌ","\\mathfrak{H}");w("ℨ","\\mathfrak{Z}");w("\\Bbbk","\\Bbb{k}");w("\\llap","\\mathllap{\\textrm{#1}}");w("\\rlap","\\mathrlap{\\textrm{#1}}");w("\\clap","\\mathclap{\\textrm{#1}}");w("\\mathstrut","\\vphantom{(}");w("\\underbar","\\underline{\\text{#1}}");w("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');w("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");w("\\ne","\\neq");w("≠","\\neq");w("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");w("∉","\\notin");w("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");w("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");w("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");w("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");w("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");w("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");w("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");w("⟂","\\perp");w("‼","\\mathclose{!\\mkern-0.8mu!}");w("∌","\\notni");w("⌜","\\ulcorner");w("⌝","\\urcorner");w("⌞","\\llcorner");w("⌟","\\lrcorner");w("©","\\copyright");w("®","\\textregistered");w("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');w("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');w("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');w("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');w("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");w("⋮","\\vdots");w("\\varGamma","\\mathit{\\Gamma}");w("\\varDelta","\\mathit{\\Delta}");w("\\varTheta","\\mathit{\\Theta}");w("\\varLambda","\\mathit{\\Lambda}");w("\\varXi","\\mathit{\\Xi}");w("\\varPi","\\mathit{\\Pi}");w("\\varSigma","\\mathit{\\Sigma}");w("\\varUpsilon","\\mathit{\\Upsilon}");w("\\varPhi","\\mathit{\\Phi}");w("\\varPsi","\\mathit{\\Psi}");w("\\varOmega","\\mathit{\\Omega}");w("\\substack","\\begin{subarray}{c}#1\\end{subarray}");w("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");w("\\boxed","\\fbox{$\\displaystyle{#1}$}");w("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");w("\\implies","\\DOTSB\\;\\Longrightarrow\\;");w("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");w("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");w("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var qd={",":"\\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"},Rp=new Set(["bin","rel"]);w("\\dots",function(r){var a="\\dotso",l=r.expandAfterFuture().text;return l in qd?a=qd[l]:(l.slice(0,4)==="\\not"||l in Mt.math&&Rp.has(Mt.math[l].group))&&(a="\\dotsb"),a});var nf={")":!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};w("\\dotso",function(r){var a=r.future().text;return a in nf?"\\ldots\\,":"\\ldots"});w("\\dotsc",function(r){var a=r.future().text;return a in nf&&a!==","?"\\ldots\\,":"\\ldots"});w("\\cdots",function(r){var a=r.future().text;return a in nf?"\\@cdots\\,":"\\@cdots"});w("\\dotsb","\\cdots");w("\\dotsm","\\cdots");w("\\dotsi","\\!\\cdots");w("\\dotsx","\\ldots\\,");w("\\DOTSI","\\relax");w("\\DOTSB","\\relax");w("\\DOTSX","\\relax");w("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");w("\\,","\\tmspace+{3mu}{.1667em}");w("\\thinspace","\\,");w("\\>","\\mskip{4mu}");w("\\:","\\tmspace+{4mu}{.2222em}");w("\\medspace","\\:");w("\\;","\\tmspace+{5mu}{.2777em}");w("\\thickspace","\\;");w("\\!","\\tmspace-{3mu}{.1667em}");w("\\negthinspace","\\!");w("\\negmedspace","\\tmspace-{4mu}{.2222em}");w("\\negthickspace","\\tmspace-{5mu}{.277em}");w("\\enspace","\\kern.5em ");w("\\enskip","\\hskip.5em\\relax");w("\\quad","\\hskip1em\\relax");w("\\qquad","\\hskip2em\\relax");w("\\tag","\\@ifstar\\tag@literal\\tag@paren");w("\\tag@paren","\\tag@literal{({#1})}");w("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new ae("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});w("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");w("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");w("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");w("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");w("\\newline","\\\\\\relax");w("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var t3=se(qa["Main-Regular"][84][1]-.7*qa["Main-Regular"][65][1]);w("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+t3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");w("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+t3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");w("\\hspace","\\@ifstar\\@hspacer\\@hspace");w("\\@hspace","\\hskip #1\\relax");w("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");w("\\ordinarycolon",":");w("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");w("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');w("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');w("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');w("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');w("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');w("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');w("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');w("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');w("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');w("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');w("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');w("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');w("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');w("∷","\\dblcolon");w("∹","\\eqcolon");w("≔","\\coloneqq");w("≕","\\eqqcolon");w("⩴","\\Coloneqq");w("\\ratio","\\vcentcolon");w("\\coloncolon","\\dblcolon");w("\\colonequals","\\coloneqq");w("\\coloncolonequals","\\Coloneqq");w("\\equalscolon","\\eqqcolon");w("\\equalscoloncolon","\\Eqqcolon");w("\\colonminus","\\coloneq");w("\\coloncolonminus","\\Coloneq");w("\\minuscolon","\\eqcolon");w("\\minuscoloncolon","\\Eqcolon");w("\\coloncolonapprox","\\Colonapprox");w("\\coloncolonsim","\\Colonsim");w("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");w("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");w("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");w("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");w("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");w("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");w("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");w("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");w("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");w("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");w("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");w("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");w("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");w("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");w("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");w("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");w("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");w("\\nleqq","\\html@mathml{\\@nleqq}{≰}");w("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");w("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");w("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");w("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");w("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");w("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");w("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");w("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");w("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");w("\\imath","\\html@mathml{\\@imath}{ı}");w("\\jmath","\\html@mathml{\\@jmath}{ȷ}");w("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");w("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");w("⟦","\\llbracket");w("⟧","\\rrbracket");w("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");w("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");w("⦃","\\lBrace");w("⦄","\\rBrace");w("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");w("⦵","\\minuso");w("\\darr","\\downarrow");w("\\dArr","\\Downarrow");w("\\Darr","\\Downarrow");w("\\lang","\\langle");w("\\rang","\\rangle");w("\\uarr","\\uparrow");w("\\uArr","\\Uparrow");w("\\Uarr","\\Uparrow");w("\\N","\\mathbb{N}");w("\\R","\\mathbb{R}");w("\\Z","\\mathbb{Z}");w("\\alef","\\aleph");w("\\alefsym","\\aleph");w("\\Alpha","\\mathrm{A}");w("\\Beta","\\mathrm{B}");w("\\bull","\\bullet");w("\\Chi","\\mathrm{X}");w("\\clubs","\\clubsuit");w("\\cnums","\\mathbb{C}");w("\\Complex","\\mathbb{C}");w("\\Dagger","\\ddagger");w("\\diamonds","\\diamondsuit");w("\\empty","\\emptyset");w("\\Epsilon","\\mathrm{E}");w("\\Eta","\\mathrm{H}");w("\\exist","\\exists");w("\\harr","\\leftrightarrow");w("\\hArr","\\Leftrightarrow");w("\\Harr","\\Leftrightarrow");w("\\hearts","\\heartsuit");w("\\image","\\Im");w("\\infin","\\infty");w("\\Iota","\\mathrm{I}");w("\\isin","\\in");w("\\Kappa","\\mathrm{K}");w("\\larr","\\leftarrow");w("\\lArr","\\Leftarrow");w("\\Larr","\\Leftarrow");w("\\lrarr","\\leftrightarrow");w("\\lrArr","\\Leftrightarrow");w("\\Lrarr","\\Leftrightarrow");w("\\Mu","\\mathrm{M}");w("\\natnums","\\mathbb{N}");w("\\Nu","\\mathrm{N}");w("\\Omicron","\\mathrm{O}");w("\\plusmn","\\pm");w("\\rarr","\\rightarrow");w("\\rArr","\\Rightarrow");w("\\Rarr","\\Rightarrow");w("\\real","\\Re");w("\\reals","\\mathbb{R}");w("\\Reals","\\mathbb{R}");w("\\Rho","\\mathrm{P}");w("\\sdot","\\cdot");w("\\sect","\\S");w("\\spades","\\spadesuit");w("\\sub","\\subset");w("\\sube","\\subseteq");w("\\supe","\\supseteq");w("\\Tau","\\mathrm{T}");w("\\thetasym","\\vartheta");w("\\weierp","\\wp");w("\\Zeta","\\mathrm{Z}");w("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");w("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");w("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");w("\\bra","\\mathinner{\\langle{#1}|}");w("\\ket","\\mathinner{|{#1}\\rangle}");w("\\braket","\\mathinner{\\langle{#1}\\rangle}");w("\\Bra","\\left\\langle#1\\right|");w("\\Ket","\\left|#1\\right\\rangle");var a3=r=>a=>{var l=a.consumeArg().tokens,u=a.consumeArg().tokens,s=a.consumeArg().tokens,f=a.consumeArg().tokens,d=a.macros.get("|"),m=a.macros.get("\\|");a.macros.beginGroup();var v=T=>A=>{r&&(A.macros.set("|",d),s.length&&A.macros.set("\\|",m));var D=T;if(!T&&s.length){var R=A.future();R.text==="|"&&(A.popToken(),D=!0)}return{tokens:D?s:u,numArgs:0}};a.macros.set("|",v(!1)),s.length&&a.macros.set("\\|",v(!0));var g=a.consumeArg().tokens,x=a.expandTokens([...f,...g,...l]);return a.macros.endGroup(),{tokens:x.reverse(),numArgs:0}};w("\\bra@ket",a3(!1));w("\\bra@set",a3(!0));w("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");w("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");w("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");w("\\angln","{\\angl n}");w("\\blue","\\textcolor{##6495ed}{#1}");w("\\orange","\\textcolor{##ffa500}{#1}");w("\\pink","\\textcolor{##ff00af}{#1}");w("\\red","\\textcolor{##df0030}{#1}");w("\\green","\\textcolor{##28ae7b}{#1}");w("\\gray","\\textcolor{gray}{#1}");w("\\purple","\\textcolor{##9d38bd}{#1}");w("\\blueA","\\textcolor{##ccfaff}{#1}");w("\\blueB","\\textcolor{##80f6ff}{#1}");w("\\blueC","\\textcolor{##63d9ea}{#1}");w("\\blueD","\\textcolor{##11accd}{#1}");w("\\blueE","\\textcolor{##0c7f99}{#1}");w("\\tealA","\\textcolor{##94fff5}{#1}");w("\\tealB","\\textcolor{##26edd5}{#1}");w("\\tealC","\\textcolor{##01d1c1}{#1}");w("\\tealD","\\textcolor{##01a995}{#1}");w("\\tealE","\\textcolor{##208170}{#1}");w("\\greenA","\\textcolor{##b6ffb0}{#1}");w("\\greenB","\\textcolor{##8af281}{#1}");w("\\greenC","\\textcolor{##74cf70}{#1}");w("\\greenD","\\textcolor{##1fab54}{#1}");w("\\greenE","\\textcolor{##0d923f}{#1}");w("\\goldA","\\textcolor{##ffd0a9}{#1}");w("\\goldB","\\textcolor{##ffbb71}{#1}");w("\\goldC","\\textcolor{##ff9c39}{#1}");w("\\goldD","\\textcolor{##e07d10}{#1}");w("\\goldE","\\textcolor{##a75a05}{#1}");w("\\redA","\\textcolor{##fca9a9}{#1}");w("\\redB","\\textcolor{##ff8482}{#1}");w("\\redC","\\textcolor{##f9685d}{#1}");w("\\redD","\\textcolor{##e84d39}{#1}");w("\\redE","\\textcolor{##bc2612}{#1}");w("\\maroonA","\\textcolor{##ffbde0}{#1}");w("\\maroonB","\\textcolor{##ff92c6}{#1}");w("\\maroonC","\\textcolor{##ed5fa6}{#1}");w("\\maroonD","\\textcolor{##ca337c}{#1}");w("\\maroonE","\\textcolor{##9e034e}{#1}");w("\\purpleA","\\textcolor{##ddd7ff}{#1}");w("\\purpleB","\\textcolor{##c6b9fc}{#1}");w("\\purpleC","\\textcolor{##aa87ff}{#1}");w("\\purpleD","\\textcolor{##7854ab}{#1}");w("\\purpleE","\\textcolor{##543b78}{#1}");w("\\mintA","\\textcolor{##f5f9e8}{#1}");w("\\mintB","\\textcolor{##edf2df}{#1}");w("\\mintC","\\textcolor{##e0e5cc}{#1}");w("\\grayA","\\textcolor{##f6f7f7}{#1}");w("\\grayB","\\textcolor{##f0f1f2}{#1}");w("\\grayC","\\textcolor{##e3e5e6}{#1}");w("\\grayD","\\textcolor{##d6d8da}{#1}");w("\\grayE","\\textcolor{##babec2}{#1}");w("\\grayF","\\textcolor{##888d93}{#1}");w("\\grayG","\\textcolor{##626569}{#1}");w("\\grayH","\\textcolor{##3b3e40}{#1}");w("\\grayI","\\textcolor{##21242c}{#1}");w("\\kaBlue","\\textcolor{##314453}{#1}");w("\\kaGreen","\\textcolor{##71B307}{#1}");var n3={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Op{constructor(a,l,u){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=l,this.expansionCount=0,this.feed(a),this.macros=new Dp(_p,l.macros),this.mode=u,this.stack=[]}feed(a){this.lexer=new Bd(a,this.settings)}switchMode(a){this.mode=a}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(a){this.stack.push(a)}pushTokens(a){this.stack.push(...a)}scanArgument(a){var l,u,s;if(a){if(this.consumeSpaces(),this.future().text!=="[")return null;l=this.popToken(),{tokens:s,end:u}=this.consumeArg(["]"])}else({tokens:s,start:l,end:u}=this.consumeArg());return this.pushToken(new W0("EOF",u.loc)),this.pushTokens(s),new W0("",H0.range(l,u))}consumeSpaces(){for(;;){var a=this.future();if(a.text===" ")this.stack.pop();else break}}consumeArg(a){var l=[],u=a&&a.length>0;u||this.consumeSpaces();var s=this.future(),f,d=0,m=0;do{if(f=this.popToken(),l.push(f),f.text==="{")++d;else if(f.text==="}"){if(--d,d===-1)throw new ae("Extra }",f)}else if(f.text==="EOF")throw new ae("Unexpected end of input in a macro argument, expected '"+(a&&u?a[m]:"}")+"'",f);if(a&&u)if((d===0||d===1&&a[m]==="{")&&f.text===a[m]){if(++m,m===a.length){l.splice(-m,m);break}}else m=0}while(d!==0||u);return s.text==="{"&&l[l.length-1].text==="}"&&(l.pop(),l.shift()),l.reverse(),{tokens:l,start:s,end:f}}consumeArgs(a,l){if(l){if(l.length!==a+1)throw new ae("The length of delimiters doesn't match the number of args!");for(var u=l[0],s=0;s<u.length;s++){var f=this.popToken();if(u[s]!==f.text)throw new ae("Use of the macro doesn't match its definition",f)}}for(var d=[],m=0;m<a;m++)d.push(this.consumeArg(l&&l[m+1]).tokens);return d}countExpansion(a){if(this.expansionCount+=a,this.expansionCount>this.settings.maxExpand)throw new ae("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(a){var l=this.popToken(),u=l.text,s=l.noexpand?null:this._getExpansion(u);if(s==null||a&&s.unexpandable){if(a&&s==null&&u[0]==="\\"&&!this.isDefined(u))throw new ae("Undefined control sequence: "+u);return this.pushToken(l),!1}this.countExpansion(1);var f=s.tokens,d=this.consumeArgs(s.numArgs,s.delimiters);if(s.numArgs){f=f.slice();for(var m=f.length-1;m>=0;--m){var v=f[m];if(v.text==="#"){if(m===0)throw new ae("Incomplete placeholder at end of macro body",v);if(v=f[--m],v.text==="#")f.splice(m+1,1);else if(/^[1-9]$/.test(v.text))f.splice(m,2,...d[+v.text-1]);else throw new ae("Not a valid argument number",v)}}}return this.pushTokens(f),f.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var a=this.stack.pop();return a.treatAsRelax&&(a.text="\\relax"),a}}expandMacro(a){return this.macros.has(a)?this.expandTokens([new W0(a)]):void 0}expandTokens(a){var l=[],u=this.stack.length;for(this.pushTokens(a);this.stack.length>u;)if(this.expandOnce(!0)===!1){var s=this.stack.pop();s.treatAsRelax&&(s.noexpand=!1,s.treatAsRelax=!1),l.push(s)}return this.countExpansion(l.length),l}expandMacroAsText(a){var l=this.expandMacro(a);return l&&l.map(u=>u.text).join("")}_getExpansion(a){var l=this.macros.get(a);if(l==null)return l;if(a.length===1){var u=this.lexer.catcodes[a];if(u!=null&&u!==13)return}var s=typeof l=="function"?l(this):l;if(typeof s=="string"){var f=0;if(s.includes("#"))for(var d=s.replace(/##/g,"");d.includes("#"+(f+1));)++f;for(var m=new Bd(s,this.settings),v=[],g=m.lex();g.text!=="EOF";)v.push(g),g=m.lex();v.reverse();var x={tokens:v,numArgs:f};return x}return s}isDefined(a){return this.macros.has(a)||Jn.hasOwnProperty(a)||Mt.math.hasOwnProperty(a)||Mt.text.hasOwnProperty(a)||n3.hasOwnProperty(a)}isExpandable(a){var l=this.macros.get(a);return l!=null?typeof l=="string"||typeof l=="function"||!l.unexpandable:Jn.hasOwnProperty(a)&&!Jn[a].primitive}}var Hd=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,us=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),a1={"́":{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"}},Ud={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class _s{constructor(a,l){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 Op(a,l,this.mode),this.settings=l,this.leftrightDepth=0,this.nextToken=null}expect(a,l){if(l===void 0&&(l=!0),this.fetch().text!==a)throw new ae("Expected '"+a+"', got '"+this.fetch().text+"'",this.fetch());l&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(a){this.mode=a,this.gullet.switchMode(a)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var a=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),a}finally{this.gullet.endGroups()}}subparse(a){var l=this.nextToken;this.consume(),this.gullet.pushToken(new W0("}")),this.gullet.pushTokens(a);var u=this.parseExpression(!1);return this.expect("}"),this.nextToken=l,u}parseExpression(a,l){for(var u=[];;){this.mode==="math"&&this.consumeSpaces();var s=this.fetch();if(_s.endOfExpression.has(s.text)||l&&s.text===l||a&&Jn[s.text]&&Jn[s.text].infix)break;var f=this.parseAtom(l);if(f){if(f.type==="internal")continue}else break;u.push(f)}return this.mode==="text"&&this.formLigatures(u),this.handleInfixNodes(u)}handleInfixNodes(a){for(var l=-1,u,s=0;s<a.length;s++){var f=a[s];if(f.type==="infix"){if(l!==-1)throw new ae("only one infix operator per group",f.token);l=s,u=f.replaceWith}}if(l!==-1&&u){var d,m,v=a.slice(0,l),g=a.slice(l+1);v.length===1&&v[0].type==="ordgroup"?d=v[0]:d={type:"ordgroup",mode:this.mode,body:v},g.length===1&&g[0].type==="ordgroup"?m=g[0]:m={type:"ordgroup",mode:this.mode,body:g};var x;return u==="\\\\abovefrac"?x=this.callFunction(u,[d,a[l],m],[]):x=this.callFunction(u,[d,m],[]),[x]}else return a}handleSupSubscript(a){var l=this.fetch(),u=l.text;this.consume(),this.consumeSpaces();var s;do{var f;s=this.parseGroup(a)}while(((f=s)==null?void 0:f.type)==="internal");if(!s)throw new ae("Expected group after '"+u+"'",l);return s}formatUnsupportedCmd(a){for(var l=[],u=0;u<a.length;u++)l.push({type:"textord",mode:"text",text:a[u]});var s={type:"text",mode:this.mode,body:l},f={type:"color",mode:this.mode,color:this.settings.errorColor,body:[s]};return f}parseAtom(a){var l=this.parseGroup("atom",a);if((l==null?void 0:l.type)==="internal"||this.mode==="text")return l;for(var u,s;;){this.consumeSpaces();var f=this.fetch();if(f.text==="\\limits"||f.text==="\\nolimits"){if(l&&l.type==="op")l.limits=f.text==="\\limits",l.alwaysHandleSupSub=!0;else if(l&&l.type==="operatorname")l.alwaysHandleSupSub&&(l.limits=f.text==="\\limits");else throw new ae("Limit controls must follow a math operator",f);this.consume()}else if(f.text==="^"){if(u)throw new ae("Double superscript",f);u=this.handleSupSubscript("superscript")}else if(f.text==="_"){if(s)throw new ae("Double subscript",f);s=this.handleSupSubscript("subscript")}else if(f.text==="'"){if(u)throw new ae("Double superscript",f);var d={type:"textord",mode:this.mode,text:"\\prime"},m=[d];for(this.consume();this.fetch().text==="'";)m.push(d),this.consume();this.fetch().text==="^"&&m.push(this.handleSupSubscript("superscript")),u={type:"ordgroup",mode:this.mode,body:m}}else if(us[f.text]){var v=Hd.test(f.text),g=[];for(g.push(new W0(us[f.text])),this.consume();;){var x=this.fetch().text;if(!us[x]||Hd.test(x)!==v)break;g.unshift(new W0(us[x])),this.consume()}var T=this.subparse(g);v?s={type:"ordgroup",mode:"math",body:T}:u={type:"ordgroup",mode:"math",body:T}}else break}return u&&s?{type:"supsub",mode:this.mode,base:l,sup:u,sub:s}:u?{type:"supsub",mode:this.mode,base:l,sup:u}:s?{type:"supsub",mode:this.mode,base:l,sub:s}:l}parseFunction(a,l){var u=this.fetch(),s=u.text,f=Jn[s];if(!f)return null;if(this.consume(),l&&l!=="atom"&&!f.allowedInArgument)throw new ae("Got function '"+s+"' with no arguments"+(l?" as "+l:""),u);if(this.mode==="text"&&!f.allowedInText)throw new ae("Can't use function '"+s+"' in text mode",u);if(this.mode==="math"&&f.allowedInMath===!1)throw new ae("Can't use function '"+s+"' in math mode",u);var{args:d,optArgs:m}=this.parseArguments(s,f);return this.callFunction(s,d,m,u,a)}callFunction(a,l,u,s,f){var d={funcName:a,parser:this,token:s,breakOnTokenText:f},m=Jn[a];if(m&&m.handler)return m.handler(d,l,u);throw new ae("No function handler for "+a)}parseArguments(a,l){var u,s=(u=l.numOptionalArgs)!=null?u:0,f=l.numArgs+s;if(f===0)return{args:[],optArgs:[]};for(var d=[],m=[],v=0;v<f;v++){var g,x=(g=l.argTypes)==null?void 0:g[v],T=v<s;("primitive"in l&&l.primitive&&x==null||l.type==="sqrt"&&v===1&&m[0]==null)&&(x="primitive");var A=this.parseGroupOfType("argument to '"+a+"'",x,T);if(T)m.push(A);else if(A!=null)d.push(A);else throw new ae("Null argument, please report this as a bug")}return{args:d,optArgs:m}}parseGroupOfType(a,l,u){switch(l){case"color":return this.parseColorGroup(u);case"size":return this.parseSizeGroup(u);case"url":return this.parseUrlGroup(u);case"math":case"text":return this.parseArgumentGroup(u,l);case"hbox":{var s=this.parseArgumentGroup(u,"text");return s!=null?{type:"styling",mode:s.mode,body:[s],style:"text",resetFont:!0}:null}case"raw":{var f=this.parseStringGroup(u);return f!=null?{type:"raw",mode:"text",string:f.text}:null}case"primitive":{if(u)throw new ae("A primitive argument cannot be optional");var d=this.parseGroup(a);if(d==null)throw new ae("Expected group as "+a,this.fetch());return d}case"original":case void 0:return this.parseArgumentGroup(u);default:throw new ae("Unknown group type as "+a,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(a){var l=this.gullet.scanArgument(a);if(l==null)return null;for(var u="",s;(s=this.fetch()).text!=="EOF";)u+=s.text,this.consume();return this.consume(),l.text=u,l}parseRegexGroup(a,l){for(var u=this.fetch(),s=u,f="",d;(d=this.fetch()).text!=="EOF"&&a.test(f+d.text);)s=d,f+=s.text,this.consume();if(f==="")throw new ae("Invalid "+l+": '"+u.text+"'",u);return u.range(s,f)}parseColorGroup(a){var l=this.parseStringGroup(a);if(l==null)return null;var u=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(l.text);if(!u)throw new ae("Invalid color: '"+l.text+"'",l);var s=u[0];return/^[0-9a-f]{6}$/i.test(s)&&(s="#"+s),{type:"color-token",mode:this.mode,color:s}}parseSizeGroup(a){var l,u=!1;if(this.gullet.consumeSpaces(),!a&&this.gullet.future().text!=="{"?l=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):l=this.parseStringGroup(a),!l)return null;!a&&l.text.length===0&&(l.text="0pt",u=!0);var s=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(l.text);if(!s)throw new ae("Invalid size: '"+l.text+"'",l);var f={number:+(s[1]+s[2]),unit:s[3]};if(!vm(f))throw new ae("Invalid unit: '"+f.unit+"'",l);return{type:"size",mode:this.mode,value:f,isBlank:u}}parseUrlGroup(a){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var l=this.parseStringGroup(a);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),l==null)return null;var u=l.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:u}}parseArgumentGroup(a,l){var u=this.gullet.scanArgument(a);if(u==null)return null;var s=this.mode;l&&this.switchMode(l),this.gullet.beginGroup();var f=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var d={type:"ordgroup",mode:this.mode,loc:u.loc,body:f};return l&&this.switchMode(s),d}parseGroup(a,l){var u=this.fetch(),s=u.text,f;if(s==="{"||s==="\\begingroup"){this.consume();var d=s==="{"?"}":"\\endgroup";this.gullet.beginGroup();var m=this.parseExpression(!1,d),v=this.fetch();this.expect(d),this.gullet.endGroup(),f={type:"ordgroup",mode:this.mode,loc:H0.range(u,v),body:m,semisimple:s==="\\begingroup"||void 0}}else if(f=this.parseFunction(l,a)||this.parseSymbol(),f==null&&s[0]==="\\"&&!n3.hasOwnProperty(s)){if(this.settings.throwOnError)throw new ae("Undefined control sequence: "+s,u);f=this.formatUnsupportedCmd(s),this.consume()}return f}formLigatures(a){for(var l=a.length-1,u=0;u<l;++u){var s=a[u];if(s.type==="textord"){var f=s.text,d=a[u+1];if(!(!d||d.type!=="textord")){if(f==="-"&&d.text==="-"){var m=a[u+2];u+1<l&&m&&m.type==="textord"&&m.text==="-"?(a.splice(u,3,{type:"textord",mode:"text",loc:H0.range(s,m),text:"---"}),l-=2):(a.splice(u,2,{type:"textord",mode:"text",loc:H0.range(s,d),text:"--"}),l-=1)}(f==="'"||f==="`")&&d.text===f&&(a.splice(u,2,{type:"textord",mode:"text",loc:H0.range(s,d),text:f+f}),l-=1)}}}}parseSymbol(){var a=this.fetch(),l=a.text;if(/^\\verb[^a-zA-Z]/.test(l)){this.consume();var u=l.slice(5),s=u.charAt(0)==="*";if(s&&(u=u.slice(1)),u.length<2||u.charAt(0)!==u.slice(-1))throw new ae(`\\verb assertion failed --
                    please report what input caused this bug`);return u=u.slice(1,-1),{type:"verb",mode:"text",body:u,star:s}}Ud.hasOwnProperty(l[0])&&!Mt[this.mode][l[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+l[0]+'" used in math mode',a),l=Ud[l[0]]+l.slice(1));var f=Mp.exec(l);f&&(l=l.substring(0,f.index),l==="i"?l="ı":l==="j"&&(l="ȷ"));var d;if(Mt[this.mode][l]){this.settings.strict&&this.mode==="math"&&g1.includes(l)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+l[0]+'" used in math mode',a);var m=Mt[this.mode][l].group,v=H0.range(a),g;U8(m)?g={type:"atom",mode:this.mode,family:m,loc:v,text:l}:g={type:m,mode:this.mode,loc:v,text:l},d=g}else if(l.charCodeAt(0)>=128)this.settings.strict&&(pm(l.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+l[0]+'" used in math mode',a):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+l[0]+'"'+(" ("+l.charCodeAt(0)+")"),a)),d={type:"textord",mode:"text",loc:H0.range(a),text:l};else return null;if(this.consume(),f)for(var x=0;x<f[0].length;x++){var T=f[0][x];if(!a1[T])throw new ae("Unknown accent ' "+T+"'",a);var A=a1[T][this.mode]||a1[T].text;if(!A)throw new ae("Accent "+T+" unsupported in "+this.mode+" mode",a);d={type:"accent",mode:this.mode,loc:H0.range(a),label:A,isStretchy:!1,isShifty:!0,base:d}}return d}}_s.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var lf=function(a,l){if(!(typeof a=="string"||a instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var u=new _s(a,l);delete u.gullet.macros.current["\\df@tag"];var s=u.parse();if(delete u.gullet.macros.current["\\current@color"],delete u.gullet.macros.current["\\color"],u.gullet.macros.get("\\df@tag")){if(!l.displayMode)throw new ae("\\tag works only in display equations");s=[{type:"tag",mode:"text",body:s,tag:u.subparse([new W0("\\df@tag")])}]}return s},l3=function(a,l,u){l.textContent="";var s=rf(a,u).toNode();l.appendChild(s)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),l3=function(){throw new ae("KaTeX doesn't work in quirks mode.")});var Np=function(a,l){var u=rf(a,l).toMarkup();return u},Bp=function(a,l){var u=new V1(l);return lf(a,u)},r3=function(a,l,u){if(u.throwOnError||!(a instanceof ae))throw a;var s=ee(["katex-error"],[new P0(l)]);return s.setAttribute("title",a.toString()),s.setAttribute("style","color:"+u.errorColor),s},rf=function(a,l){var u=new V1(l);try{var s=lf(a,u);return _8(s,a,u)}catch(f){return r3(f,a,u)}},Lp=function(a,l){var u=new V1(l);try{var s=lf(a,u);return R8(s,a,u)}catch(f){return r3(f,a,u)}},qp="0.17.0",Hp={Span:wr,Anchor:Ss,SymbolNode:P0,SvgNode:fn,PathNode:Wn,LineNode:v1},Up={version:qp,render:l3,renderToString:Np,ParseError:ae,SETTINGS_SCHEMA:d1,__parse:Bp,__renderToDomTree:rf,__renderToHTMLTree:Lp,__setFontMetrics:h8,__defineSymbol:h,__defineFunction:pe,__defineMacro:w,__domTree:Hp};const jp=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,Gp=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1/,Yp=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;function Xp(r={}){return{extensions:[Zp(r,jd(r,!1)),Vp(r,jd(r,!0))]}}function jd(r,a){return l=>Up.renderToString(l.text,{...r,displayMode:l.displayMode})+(a?`
`:"")}function Zp(r,a){const l=r&&r.nonStandard,u=l?Gp:jp;return{name:"inlineKatex",level:"inline",start(s){let f,d=s;for(;d;){if(f=d.indexOf("$"),f===-1)return;if((l?f>-1:f===0||d.charAt(f-1)===" ")&&d.substring(f).match(u))return f;d=d.substring(f+1).replace(/^\$+/,"")}},tokenizer(s,f){const d=s.match(u);if(d)return{type:"inlineKatex",raw:d[0],text:d[2].trim(),displayMode:d[1].length===2}},renderer:a}}function Vp(r,a){return{name:"blockKatex",level:"block",tokenizer(l,u){const s=l.match(Yp);if(s)return{type:"blockKatex",raw:s[0],text:s[2].trim(),displayMode:s[1].length===2}},renderer:a}}/*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */function Gd(r,a){(a==null||a>r.length)&&(a=r.length);for(var l=0,u=Array(a);l<a;l++)u[l]=r[l];return u}function Qp(r){if(Array.isArray(r))return r}function Kp(r,a){var l=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(l!=null){var u,s,f,d,m=[],v=!0,g=!1;try{if(f=(l=l.call(r)).next,a!==0)for(;!(v=(u=f.call(l)).done)&&(m.push(u.value),m.length!==a);v=!0);}catch(x){g=!0,s=x}finally{try{if(!v&&l.return!=null&&(d=l.return(),Object(d)!==d))return}finally{if(g)throw s}}return m}}function Fp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ip(r,a){return Qp(r)||Kp(r,a)||Jp(r,a)||Fp()}function Jp(r,a){if(r){if(typeof r=="string")return Gd(r,a);var l={}.toString.call(r).slice(8,-1);return l==="Object"&&r.constructor&&(l=r.constructor.name),l==="Map"||l==="Set"?Array.from(r):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?Gd(r,a):void 0}}const i3=Object.entries,Yd=Object.setPrototypeOf,$p=Object.isFrozen,Wp=Object.getPrototypeOf,Pp=Object.getOwnPropertyDescriptor;let f0=Object.freeze,h0=Object.seal,vr=Object.create,u3=typeof Reflect<"u"&&Reflect,R1=u3.apply,O1=u3.construct;f0||(f0=function(a){return a});h0||(h0=function(a){return a});R1||(R1=function(a,l){for(var u=arguments.length,s=new Array(u>2?u-2:0),f=2;f<u;f++)s[f-2]=arguments[f];return a.apply(l,s)});O1||(O1=function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),s=1;s<l;s++)u[s-1]=arguments[s];return new a(...u)});const mr=Qt(Array.prototype.forEach),e9=Qt(Array.prototype.lastIndexOf),Xd=Qt(Array.prototype.pop),pr=Qt(Array.prototype.push),t9=Qt(Array.prototype.splice),In=Array.isArray,Ci=Qt(String.prototype.toLowerCase),n1=Qt(String.prototype.toString),Zd=Qt(String.prototype.match),Ei=Qt(String.prototype.replace),Vd=Qt(String.prototype.indexOf),a9=Qt(String.prototype.trim),n9=Qt(Number.prototype.toString),l9=Qt(Boolean.prototype.toString),Qd=typeof BigInt>"u"?null:Qt(BigInt.prototype.toString),Kd=typeof Symbol>"u"?null:Qt(Symbol.prototype.toString),l0=Qt(Object.prototype.hasOwnProperty),ki=Qt(Object.prototype.toString),n0=Qt(RegExp.prototype.test),El=r9(TypeError);function Qt(r){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var l=arguments.length,u=new Array(l>1?l-1:0),s=1;s<l;s++)u[s-1]=arguments[s];return R1(r,a,u)}}function r9(r){return function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return O1(r,l)}}function et(r,a){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ci;if(Yd&&Yd(r,null),!In(a))return r;let u=a.length;for(;u--;){let s=a[u];if(typeof s=="string"){const f=l(s);f!==s&&($p(a)||(a[u]=f),s=f)}r[s]=!0}return r}function i9(r){for(let a=0;a<r.length;a++)l0(r,a)||(r[a]=null);return r}function A0(r){const a=vr(null);for(const u of i3(r)){var l=Ip(u,2);const s=l[0],f=l[1];l0(r,s)&&(In(f)?a[s]=i9(f):f&&typeof f=="object"&&f.constructor===Object?a[s]=A0(f):a[s]=f)}return a}function u9(r){switch(typeof r){case"string":return r;case"number":return n9(r);case"boolean":return l9(r);case"bigint":return Qd?Qd(r):"0";case"symbol":return Kd?Kd(r):"Symbol()";case"undefined":return ki(r);case"function":case"object":{if(r===null)return ki(r);const a=r,l=Ba(a,"toString");if(typeof l=="function"){const u=l(a);return typeof u=="string"?u:ki(u)}return ki(r)}default:return ki(r)}}function Ba(r,a){for(;r!==null;){const u=Pp(r,a);if(u){if(u.get)return Qt(u.get);if(typeof u.value=="function")return Qt(u.value)}r=Wp(r)}function l(){return null}return l}function s9(r){try{return n0(r,""),!0}catch{return!1}}const Fd=f0(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),l1=f0(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),r1=f0(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),o9=f0(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),i1=f0(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),c9=f0(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Id=f0(["#text"]),Jd=f0(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),u1=f0(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$d=f0(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ss=f0(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f9=h0(/{{[\w\W]*|^[\w\W]*}}/g),h9=h0(/<%[\w\W]*|^[\w\W]*%>/g),d9=h0(/\${[\w\W]*/g),m9=h0(/^data-[\-\w.\u00B7-\uFFFF]+$/),p9=h0(/^aria-[\-\w]+$/),Wd=h0(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),v9=h0(/^(?:\w+script|data):/i),g9=h0(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),y9=h0(/^html$/i),b9=h0(/^[a-z][.\w]*(-[.\w]+)+$/i),Pd=h0(/<[/\w!]/g),em=h0(/<[/\w]/g),x9=h0(/<\/no(script|embed|frames)/i),S9=h0(/\/>/i),J0={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},w9=function(){return typeof window>"u"?null:window},T9=function(a,l){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let u=null;const s="data-tt-policy-suffix";l&&l.hasAttribute(s)&&(u=l.getAttribute(s));const f="dompurify"+(u?"#"+u:"");try{return a.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},tm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Fn=function(a,l,u,s){return l0(a,l)&&In(a[l])?et(s.base?A0(s.base):{},a[l],s.transform):u};function s3(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w9();const a=ue=>s3(ue);if(a.version="3.4.12",a.removed=[],!r||!r.document||r.document.nodeType!==J0.document||!r.Element)return a.isSupported=!1,a;let l=r.document;const u=l,s=u.currentScript;r.DocumentFragment;const f=r.HTMLTemplateElement,d=r.Node,m=r.Element,v=r.NodeFilter,g=r.NamedNodeMap;g===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;const x=r.DOMParser,T=r.trustedTypes,A=m.prototype,D=Ba(A,"cloneNode"),R=Ba(A,"remove"),U=Ba(A,"nextSibling"),F=Ba(A,"childNodes"),I=Ba(A,"parentNode"),fe=Ba(A,"shadowRoot"),oe=Ba(A,"attributes"),re=d&&d.prototype?Ba(d.prototype,"nodeType"):null,ie=d&&d.prototype?Ba(d.prototype,"nodeName"):null;if(typeof f=="function"){const ue=l.createElement("template");ue.content&&ue.content.ownerDocument&&(l=ue.content.ownerDocument)}let le,X="",we,Te=!1,Ge=0;const ze=function(){if(Ge>0)throw El('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ge=function(z){ze(),Ge++;try{return le.createHTML(z)}finally{Ge--}},Fe=function(z){ze(),Ge++;try{return le.createScriptURL(z)}finally{Ge--}},mt=function(){return Te||(we=T9(T,s),Te=!0),we},He=l,G=He.implementation,te=He.createNodeIterator,ve=He.createDocumentFragment,de=He.getElementsByTagName,ce=u.importNode;let k=tm();a.isSupported=typeof i3=="function"&&typeof I=="function"&&G&&G.createHTMLDocument!==void 0;const Z=f9,$=h9,he=d9,ke=m9,Oe=p9,Le=v9,Tt=g9,We=b9;let U0=Wd,Ie=null;const Ut=et({},[...Fd,...l1,...r1,...i1,...Id]);let at=null;const e0=et({},[...Jd,...u1,...$d,...ss]);let rt=Object.seal(vr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j0=null,pn=null;const Ft=Object.seal(vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let aa=!0,r0=!0,va=!1,vn=!0,d0=!1,ct=!0,D0=!1,na=!1,la=null,g0=null,ra=!1,ga=!1,be=!1,me=!1,Je=!0,Xe=!1;const Pe="user-content-";let ft=!0,i0=!1,At={},y0=null;const Aa=et({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let al=null;const nl=et({},["audio","video","img","source","image","track"]);let ya=null;const ll=et({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),za="http://www.w3.org/1998/Math/MathML",_l="http://www.w3.org/2000/svg",G0="http://www.w3.org/1999/xhtml";let Ea=G0,Ga=!1,Ar=null;const Hi=et({},[za,_l,G0],n1),zr=f0(["mi","mo","mn","ms","mtext"]);let Rl=et({},zr);const Ol=f0(["annotation-xml"]);let rl=et({},Ol);const Ui=et({},["title","style","font","a","script"]);let gn=null;const ka=["application/xhtml+xml","text/html"],It="text/html";let Ye=null,Y0=null;const Er=l.createElement("form"),ji=function(z){return z instanceof RegExp||z instanceof Function},kr=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Y0&&Y0===z)return;(!z||typeof z!="object")&&(z={}),z=A0(z),gn=ka.indexOf(z.PARSER_MEDIA_TYPE)===-1?It:z.PARSER_MEDIA_TYPE,Ye=gn==="application/xhtml+xml"?n1:Ci,Ie=Fn(z,"ALLOWED_TAGS",Ut,{transform:Ye}),at=Fn(z,"ALLOWED_ATTR",e0,{transform:Ye}),Ar=Fn(z,"ALLOWED_NAMESPACES",Hi,{transform:n1}),ya=Fn(z,"ADD_URI_SAFE_ATTR",ll,{transform:Ye,base:ll}),al=Fn(z,"ADD_DATA_URI_TAGS",nl,{transform:Ye,base:nl}),y0=Fn(z,"FORBID_CONTENTS",Aa,{transform:Ye}),j0=Fn(z,"FORBID_TAGS",A0({}),{transform:Ye}),pn=Fn(z,"FORBID_ATTR",A0({}),{transform:Ye}),At=l0(z,"USE_PROFILES")?z.USE_PROFILES&&typeof z.USE_PROFILES=="object"?A0(z.USE_PROFILES):z.USE_PROFILES:!1,aa=z.ALLOW_ARIA_ATTR!==!1,r0=z.ALLOW_DATA_ATTR!==!1,va=z.ALLOW_UNKNOWN_PROTOCOLS||!1,vn=z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,d0=z.SAFE_FOR_TEMPLATES||!1,ct=z.SAFE_FOR_XML!==!1,D0=z.WHOLE_DOCUMENT||!1,ga=z.RETURN_DOM||!1,be=z.RETURN_DOM_FRAGMENT||!1,me=z.RETURN_TRUSTED_TYPE||!1,ra=z.FORCE_BODY||!1,Je=z.SANITIZE_DOM!==!1,Xe=z.SANITIZE_NAMED_PROPS||!1,ft=z.KEEP_CONTENT!==!1,i0=z.IN_PLACE||!1,U0=s9(z.ALLOWED_URI_REGEXP)?z.ALLOWED_URI_REGEXP:Wd,Ea=typeof z.NAMESPACE=="string"?z.NAMESPACE:G0,Rl=l0(z,"MATHML_TEXT_INTEGRATION_POINTS")&&z.MATHML_TEXT_INTEGRATION_POINTS&&typeof z.MATHML_TEXT_INTEGRATION_POINTS=="object"?A0(z.MATHML_TEXT_INTEGRATION_POINTS):et({},zr),rl=l0(z,"HTML_INTEGRATION_POINTS")&&z.HTML_INTEGRATION_POINTS&&typeof z.HTML_INTEGRATION_POINTS=="object"?A0(z.HTML_INTEGRATION_POINTS):et({},Ol);const L=l0(z,"CUSTOM_ELEMENT_HANDLING")&&z.CUSTOM_ELEMENT_HANDLING&&typeof z.CUSTOM_ELEMENT_HANDLING=="object"?A0(z.CUSTOM_ELEMENT_HANDLING):vr(null);if(rt=vr(null),l0(L,"tagNameCheck")&&ji(L.tagNameCheck)&&(rt.tagNameCheck=L.tagNameCheck),l0(L,"attributeNameCheck")&&ji(L.attributeNameCheck)&&(rt.attributeNameCheck=L.attributeNameCheck),l0(L,"allowCustomizedBuiltInElements")&&typeof L.allowCustomizedBuiltInElements=="boolean"&&(rt.allowCustomizedBuiltInElements=L.allowCustomizedBuiltInElements),h0(rt),d0&&(r0=!1),be&&(ga=!0),At&&(Ie=et({},Id),at=vr(null),At.html===!0&&(et(Ie,Fd),et(at,Jd)),At.svg===!0&&(et(Ie,l1),et(at,u1),et(at,ss)),At.svgFilters===!0&&(et(Ie,r1),et(at,u1),et(at,ss)),At.mathMl===!0&&(et(Ie,i1),et(at,$d),et(at,ss))),Ft.tagCheck=null,Ft.attributeCheck=null,l0(z,"ADD_TAGS")&&(typeof z.ADD_TAGS=="function"?Ft.tagCheck=z.ADD_TAGS:In(z.ADD_TAGS)&&(Ie===Ut&&(Ie=A0(Ie)),et(Ie,z.ADD_TAGS,Ye))),l0(z,"ADD_ATTR")&&(typeof z.ADD_ATTR=="function"?Ft.attributeCheck=z.ADD_ATTR:In(z.ADD_ATTR)&&(at===e0&&(at=A0(at)),et(at,z.ADD_ATTR,Ye))),l0(z,"ADD_URI_SAFE_ATTR")&&In(z.ADD_URI_SAFE_ATTR)&&et(ya,z.ADD_URI_SAFE_ATTR,Ye),l0(z,"FORBID_CONTENTS")&&In(z.FORBID_CONTENTS)&&(y0===Aa&&(y0=A0(y0)),et(y0,z.FORBID_CONTENTS,Ye)),l0(z,"ADD_FORBID_CONTENTS")&&In(z.ADD_FORBID_CONTENTS)&&(y0===Aa&&(y0=A0(y0)),et(y0,z.ADD_FORBID_CONTENTS,Ye)),ft&&(Ie["#text"]=!0),D0&&et(Ie,["html","head","body"]),Ie.table&&(et(Ie,["tbody"]),delete j0.tbody),z.TRUSTED_TYPES_POLICY){if(typeof z.TRUSTED_TYPES_POLICY.createHTML!="function")throw El('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof z.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw El('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const P=le;le=z.TRUSTED_TYPES_POLICY;try{X=ge("")}catch(xe){throw le=P,xe}}else z.TRUSTED_TYPES_POLICY===null?(le=void 0,X=""):(le===void 0&&(le=mt()),le&&typeof X=="string"&&(X=ge("")));f0&&f0(z),Y0=z},Mr=et({},[...l1,...r1,...o9]),yn=et({},[...i1,...c9]),Cr=function(z,L,P){return L.namespaceURI===G0?z==="svg":L.namespaceURI===za?z==="svg"&&(P==="annotation-xml"||Rl[P]):!!Mr[z]},bn=function(z,L,P){return L.namespaceURI===G0?z==="math":L.namespaceURI===_l?z==="math"&&rl[P]:!!yn[z]},xn=function(z,L,P){return L.namespaceURI===_l&&!rl[P]||L.namespaceURI===za&&!Rl[P]?!1:!yn[z]&&(Ui[z]||!Mr[z])},il=function(z){let L=I(z);(!L||!L.tagName)&&(L={namespaceURI:Ea,tagName:"template"});const P=Ci(z.tagName),xe=Ci(L.tagName);return Ar[z.namespaceURI]?z.namespaceURI===_l?Cr(P,L,xe):z.namespaceURI===za?bn(P,L,xe):z.namespaceURI===G0?xn(P,L,xe):!!(gn==="application/xhtml+xml"&&Ar[z.namespaceURI]):!1},b0=function(z){pr(a.removed,{element:z});try{I(z).removeChild(z)}catch{if(R(z),!I(z))throw El("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Dt=function(z){ba(z);const L=F(z);if(L){const xe=[];mr(L,Me=>{pr(xe,Me)}),mr(xe,Me=>{try{R(Me)}catch{}})}const P=oe(z);if(P)for(let xe=P.length-1;xe>=0;--xe){const Me=P[xe],_e=Me&&Me.name;if(typeof _e=="string")try{z.removeAttribute(_e)}catch{}}},Ma=function(z,L){try{pr(a.removed,{attribute:L.getAttributeNode(z),from:L})}catch{pr(a.removed,{attribute:null,from:L})}if(L.removeAttribute(z),z==="is")if(ga||be)try{b0(L)}catch{}else try{L.setAttribute(z,"")}catch{}},Gi=function(z){const L=oe(z);if(L)for(let P=L.length-1;P>=0;--P){const xe=L[P],Me=xe&&xe.name;if(!(typeof Me!="string"||at[Ye(Me)]))try{z.removeAttribute(Me)}catch{}}},ba=function(z){const L=[z];for(;L.length>0;){const P=L.pop();(re?re(P):P.nodeType)===J0.element&&Gi(P);const Me=F(P);if(Me)for(let _e=Me.length-1;_e>=0;--_e)L.push(Me[_e])}},Sn=function(z){if(!ct)return;const L=[z];for(;L.length>0;){const P=L.pop(),xe=re?re(P):P.nodeType;if(xe===J0.processingInstruction||xe===J0.comment&&n0(em,P.data)){try{R(P)}catch{}continue}if(xe===J0.element){const _e=P,zt=Ye(ie?ie(P):P.nodeName);try{_e.hasAttribute&&_e.hasAttribute("patchsrc")&&_e.removeAttribute("patchsrc"),_e.hasAttribute&&_e.hasAttribute("for")&&zt!=="label"&&zt!=="output"&&_e.removeAttribute("for")}catch{}}const Me=F(P);if(Me)for(let _e=Me.length-1;_e>=0;--_e)L.push(Me[_e])}},Yi=function(z){let L=null,P=null;if(ra)z="<remove></remove>"+z;else{const _e=Zd(z,/^[\r\n\t ]+/);P=_e&&_e[0]}gn==="application/xhtml+xml"&&Ea===G0&&(z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+z+"</body></html>");const xe=le?ge(z):z;if(Ea===G0)try{L=new x().parseFromString(xe,gn)}catch{}if(!L||!L.documentElement){L=G.createDocument(Ea,"template",null);try{L.documentElement.innerHTML=Ga?X:xe}catch{}}const Me=L.body||L.documentElement;return z&&P&&Me.insertBefore(l.createTextNode(P),Me.childNodes[0]||null),Ea===G0?de.call(L,D0?"html":"body")[0]:D0?L.documentElement:Me},Dr=function(z){return te.call(z.ownerDocument||z,z,v.SHOW_ELEMENT|v.SHOW_COMMENT|v.SHOW_TEXT|v.SHOW_PROCESSING_INSTRUCTION|v.SHOW_CDATA_SECTION,null)},ul=function(z){return z=Ei(z,Z," "),z=Ei(z,$," "),z=Ei(z,he," "),z},_r=function(z){var L;z.normalize();const P=te.call(z.ownerDocument||z,z,v.SHOW_TEXT|v.SHOW_COMMENT|v.SHOW_CDATA_SECTION|v.SHOW_PROCESSING_INSTRUCTION,null);let xe=P.nextNode();for(;xe;)xe.data=ul(xe.data),xe=P.nextNode();const Me=(L=z.querySelectorAll)===null||L===void 0?void 0:L.call(z,"template");Me&&mr(Me,_e=>{xa(_e.content)&&_r(_e.content)})},Ya=function(z){const L=ie?ie(z):null;return typeof L!="string"||Ye(L)!=="form"?!1:typeof z.nodeName!="string"||typeof z.textContent!="string"||typeof z.removeChild!="function"||z.attributes!==oe(z)||typeof z.removeAttribute!="function"||typeof z.setAttribute!="function"||typeof z.namespaceURI!="string"||typeof z.insertBefore!="function"||typeof z.hasChildNodes!="function"||z.nodeType!==re(z)||z.childNodes!==F(z)},xa=function(z){if(!re||typeof z!="object"||z===null)return!1;try{return re(z)===J0.documentFragment}catch{return!1}},x0=function(z){if(!re||typeof z!="object"||z===null)return!1;try{return typeof re(z)=="number"}catch{return!1}};function _t(ue,z,L){ue.length!==0&&mr(ue,P=>{P.call(a,z,L,Y0)})}const Xi=function(z,L){return!!(ct&&z.hasChildNodes()&&!x0(z.firstElementChild)&&n0(Pd,z.textContent)&&n0(Pd,z.innerHTML)||ct&&z.namespaceURI===G0&&L==="style"&&x0(z.firstElementChild)||z.nodeType===J0.processingInstruction||ct&&z.nodeType===J0.comment&&n0(em,z.data))},Rs=function(z,L){if(!j0[L]&&Zi(L)&&(rt.tagNameCheck instanceof RegExp&&n0(rt.tagNameCheck,L)||rt.tagNameCheck instanceof Function&&rt.tagNameCheck(L)))return!1;if(ft&&!y0[L]){const P=I(z),xe=F(z);if(xe&&P){const Me=xe.length;for(let _e=Me-1;_e>=0;--_e){const zt=i0?xe[_e]:D(xe[_e],!0);P.insertBefore(zt,U(z))}}}return b0(z),!0},Nl=function(z,L){if(_t(k.beforeSanitizeElements,z,null),z!==L&&I(z)===null)return!0;if(Ya(z))return b0(z),!0;const P=Ye(ie?ie(z):z.nodeName);if(_t(k.uponSanitizeElement,z,{tagName:P,allowedTags:Ie}),z!==L&&I(z)===null)return!0;if(Xi(z,P))return b0(z),!0;if(j0[P]||!(Ft.tagCheck instanceof Function&&Ft.tagCheck(P))&&!Ie[P]){const Me=Rs(z,P);return Me===!1&&_t(k.afterSanitizeElements,z,null),Me}if((re?re(z):z.nodeType)===J0.element&&!il(z)||(P==="noscript"||P==="noembed"||P==="noframes")&&n0(x9,z.innerHTML))return b0(z),!0;if(d0&&z.nodeType===J0.text){const Me=ul(z.textContent);z.textContent!==Me&&(pr(a.removed,{element:z.cloneNode()}),z.textContent=Me)}return _t(k.afterSanitizeElements,z,null),!1},Rr=function(z,L,P){if(pn[L]||ct&&L==="patchsrc"||ct&&L==="for"&&z!=="label"&&z!=="output"||Je&&(L==="id"||L==="name")&&(P in l||P in Er))return!1;const xe=at[L]||Ft.attributeCheck instanceof Function&&Ft.attributeCheck(L,z);if(!(r0&&n0(ke,L))){if(!(aa&&n0(Oe,L))){if(xe){if(!ya[L]){if(!n0(U0,Ei(P,Tt,""))){if(!((L==="src"||L==="xlink:href"||L==="href")&&z!=="script"&&Vd(P,"data:")===0&&al[z])){if(!(va&&!n0(Le,Ei(P,Tt,"")))){if(P)return!1}}}}}else if(!(Zi(z)&&(rt.tagNameCheck instanceof RegExp&&n0(rt.tagNameCheck,z)||rt.tagNameCheck instanceof Function&&rt.tagNameCheck(z))&&(rt.attributeNameCheck instanceof RegExp&&n0(rt.attributeNameCheck,L)||rt.attributeNameCheck instanceof Function&&rt.attributeNameCheck(L,z))||L==="is"&&rt.allowCustomizedBuiltInElements&&(rt.tagNameCheck instanceof RegExp&&n0(rt.tagNameCheck,P)||rt.tagNameCheck instanceof Function&&rt.tagNameCheck(P))))return!1}}return!0},Bl=et({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Zi=function(z){return!Bl[Ci(z)]&&n0(We,z)},_0=function(z,L,P,xe){if(le&&typeof T=="object"&&typeof T.getAttributeType=="function"&&!P)switch(T.getAttributeType(z,L)){case"TrustedHTML":return ge(xe);case"TrustedScriptURL":return Fe(xe)}return xe},Or=function(z,L,P,xe){try{P?z.setAttributeNS(P,L,xe):z.setAttribute(L,xe),Ya(z)?b0(z):Xd(a.removed)}catch{Ma(L,z)}},Nr=function(z){_t(k.beforeSanitizeAttributes,z,null);const L=z.attributes;if(!L||Ya(z))return;const P={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:at,forceKeepAttr:void 0};let xe=L.length;const Me=Ye(z.nodeName);for(;xe--;){const _e=L[xe],zt=_e.name,t0=_e.namespaceURI,m0=_e.value,Et=Ye(zt),S0=m0;let Jt=zt==="value"?S0:a9(S0);if(P.attrName=Et,P.attrValue=Jt,P.keepAttr=!0,P.forceKeepAttr=void 0,_t(k.uponSanitizeAttribute,z,P),Jt=P.attrValue,Xe&&(Et==="id"||Et==="name")&&Vd(Jt,Pe)!==0&&(Ma(zt,z),Jt=Pe+Jt),ct&&n0(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Jt)){Ma(zt,z);continue}if(Et==="attributename"&&Zd(Jt,"href")){Ma(zt,z);continue}if(!P.forceKeepAttr){if(!P.keepAttr){Ma(zt,z);continue}if(!vn&&n0(S9,Jt)){Ma(zt,z);continue}if(d0&&(Jt=ul(Jt)),!Rr(Me,Et,Jt)){Ma(zt,z);continue}Jt=_0(Me,Et,t0,Jt),Jt!==S0&&Or(z,zt,t0,Jt)}}_t(k.afterSanitizeAttributes,z,null)},wn=function(z){let L=null;const P=Dr(z);for(_t(k.beforeSanitizeShadowDOM,z,null);L=P.nextNode();)if(_t(k.uponSanitizeShadowNode,L,null),Nl(L,z),Nr(L),xa(L.content)&&wn(L.content),(re?re(L):L.nodeType)===J0.element){const Me=fe(L);xa(Me)&&(Ca(Me),wn(Me))}_t(k.afterSanitizeShadowDOM,z,null)},Ca=function(z){const L=[{node:z,shadow:null}];for(;L.length>0;){const P=L.pop();if(P.shadow){wn(P.shadow);continue}const xe=P.node,_e=(re?re(xe):xe.nodeType)===J0.element,zt=F(xe);if(zt)for(let t0=zt.length-1;t0>=0;--t0)L.push({node:zt[t0],shadow:null});if(_e){const t0=ie?ie(xe):null;if(typeof t0=="string"&&Ye(t0)==="template"){const m0=xe.content;xa(m0)&&L.push({node:m0,shadow:null})}}if(_e){const t0=fe(xe);xa(t0)&&L.push({node:null,shadow:t0},{node:t0,shadow:null})}}};return a.sanitize=function(ue){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=null,P=null,xe=null,Me=null;if(Ga=!ue,Ga&&(ue="<!-->"),typeof ue!="string"&&!x0(ue)&&(ue=u9(ue),typeof ue!="string"))throw El("dirty is not a string, aborting");if(!a.isSupported)return ue;na?(Ie=la,at=g0):kr(z),(k.uponSanitizeElement.length>0||k.uponSanitizeAttribute.length>0)&&(Ie=A0(Ie)),k.uponSanitizeAttribute.length>0&&(at=A0(at)),a.removed=[];const _e=i0&&typeof ue!="string"&&x0(ue);if(_e){Sn(ue);const Et=ie?ie(ue):ue.nodeName;if(typeof Et=="string"){const S0=Ye(Et);if(!Ie[S0]||j0[S0])throw Dt(ue),El("root node is forbidden and cannot be sanitized in-place")}if(Ya(ue))throw Dt(ue),El("root node is clobbered and cannot be sanitized in-place");try{Ca(ue)}catch(S0){throw Dt(ue),S0}}else if(x0(ue))L=Yi("<!---->"),P=L.ownerDocument.importNode(ue,!0),P.nodeType===J0.element&&P.nodeName==="BODY"||P.nodeName==="HTML"?L=P:L.appendChild(P),Ca(P);else{if(!ga&&!d0&&!D0&&ue.indexOf("<")===-1)return le&&me?ge(ue):ue;if(L=Yi(ue),!L)return ga?null:me?X:""}L&&ra&&b0(L.firstChild);const zt=_e?ue:L,t0=Dr(zt);try{for(;xe=t0.nextNode();)Nl(xe,zt),Nr(xe),xa(xe.content)&&wn(xe.content)}catch(Et){throw _e&&(Dt(ue),mr(a.removed,S0=>{S0.element&&ba(S0.element)})),Et}if(_e)return mr(a.removed,Et=>{Et.element&&ba(Et.element)}),d0&&_r(ue),ue;if(ga){if(d0&&_r(L),be)for(Me=ve.call(L.ownerDocument);L.firstChild;)Me.appendChild(L.firstChild);else Me=L;return(at.shadowroot||at.shadowrootmode)&&(Me=ce.call(u,Me,!0)),Me}let m0=D0?L.outerHTML:L.innerHTML;return D0&&Ie["!doctype"]&&L.ownerDocument&&L.ownerDocument.doctype&&L.ownerDocument.doctype.name&&n0(y9,L.ownerDocument.doctype.name)&&(m0="<!DOCTYPE "+L.ownerDocument.doctype.name+`>
`+m0),d0&&(m0=ul(m0)),le&&me?ge(m0):m0},a.setConfig=function(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kr(ue),na=!0,la=Ie,g0=at},a.clearConfig=function(){Y0=null,na=!1,la=null,g0=null,le=we,X=""},a.isValidAttribute=function(ue,z,L){Y0||kr({});const P=Ye(ue),xe=Ye(z);return Rr(P,xe,L)},a.addHook=function(ue,z){typeof z=="function"&&l0(k,ue)&&pr(k[ue],z)},a.removeHook=function(ue,z){if(l0(k,ue)){if(z!==void 0){const L=e9(k[ue],z);return L===-1?void 0:t9(k[ue],L,1)[0]}return Xd(k[ue])}},a.removeHooks=function(ue){l0(k,ue)&&(k[ue]=[])},a.removeAllHooks=function(){k=tm()},a}var o3=s3();function am(r){return!r||typeof r!="string"||r.startsWith("data:")||/^https?:/i.test(r)||r.startsWith("/api/image/")?r:r.startsWith("/uploads/")||r.startsWith("/output/")||r.startsWith("/")?"/api/image/"+r.slice(1):r}async function A9(r,a="file"){const l=r.startsWith("http")||r.startsWith("data:")?r:window.location.origin+r,u=l.split("/").pop()||a;try{const f=await(await fetch(l)).blob(),d=document.createElement("a");d.href=URL.createObjectURL(f),d.download=u,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(d.href)}catch{window.open(l,"_blank")}}function z9(r){return r?/^Searching/.test(r)?"search":/^Generating image/.test(r)?"generate-image":/^Editing image/.test(r)?"edit-image":"thinking":"thinking"}const E9={search:"🔍","generate-image":"🎨","edit-image":"✏️",thinking:"💭"};function k9({message:r}){const a=z9(r);return O.jsx("div",{className:"status-box open","data-state":a,children:O.jsx("div",{className:"status-header",children:O.jsxs("div",{className:"left-group",children:[O.jsx("span",{className:"status-icon",children:E9[a]}),O.jsx("span",{className:"status-text",children:r||"Thinking..."}),O.jsx("div",{className:"spinner"})]})})})}tt.use(Xp({throwOnError:!1,nonStandard:!0}));const M9=r=>{if(!r)return r;const a=/\[(https?:\/\/[^\s\]<>]+)\](?!\s*\()/g;return r.split(/(```[\s\S]*?```)/g).map((l,u)=>u%2===1?l:l.replace(a,"[$1]($1)")).join("")},C9={name:"fileLink",level:"inline",start(r){const a=r.indexOf("[FILE:");return a===-1?void 0:a},tokenizer(r){const a=/^\[FILE:\s*(\S+)\]\(([^)]+)\)/.exec(r);if(a)return{type:"fileLink",raw:a[0],url:a[1],name:a[2]}},renderer(r){const a=r.url.replace(/"/g,"&quot;"),l=r.name.replace(/"/g,"&quot;");return'<a class="file-chip" href="'+a+'" download="'+l+'" title="'+l+'"><svg class="file-chip-icon" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline></svg><span class="file-chip-name">'+l+"</span></a>"}};tt.use({extensions:[C9]});function c3(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function D9(r){try{return new URL(r).hostname}catch{return r||""}}function _9(r){if(r==null)return"";const a=r/1e3;if(a<60)return a.toFixed(1)+"s";const l=Math.floor(a/60),u=Math.round(a%60);return l+"m "+u+"s"}function R9(r){const a=document.createElement("textarea");a.value=r,a.style.position="fixed",a.style.opacity="0",document.body.appendChild(a),a.select();let l=!1;try{l=document.execCommand("copy")}catch{}return document.body.removeChild(a),l}async function uf(r){return navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(r),!0):R9(r)}function O9({sessionId:r,msgIndex:a,forceShow:l}){const[u,s]=J.useState(!1),[f,d]=J.useState(""),[m,v]=J.useState(null);async function g(T){if(T.preventDefault(),T.stopPropagation(),!(u||!r||a==null)){s(!0),d("");try{const A=await Q6(r,a);A&&A.token?v({url:A.url}):d(A&&A.error||"Sharing failed")}catch(A){d(A.message||"Sharing failed")}finally{s(!1)}}}async function x(){if(!m)return;const T=m.url.startsWith("http")?m.url:window.location.origin+m.url;await uf(T)}return O.jsxs(O.Fragment,{children:[O.jsx("button",{className:"share-btn"+(l?" force-show":""),onClick:g,title:"Share this message","aria-label":"Share this message",disabled:u,children:u?"Sharing…":O.jsxs("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[O.jsx("circle",{cx:"18",cy:"5",r:"3"}),O.jsx("circle",{cx:"6",cy:"12",r:"3"}),O.jsx("circle",{cx:"18",cy:"19",r:"3"}),O.jsx("line",{x1:"8.59",y1:"13.51",x2:"15.42",y2:"17.49"}),O.jsx("line",{x1:"15.41",y1:"6.51",x2:"8.59",y2:"10.49"})]})}),m&&O.jsx("div",{className:"share-modal-overlay",onClick:()=>v(null),children:O.jsxs("div",{className:"share-modal",onClick:T=>T.stopPropagation(),children:[O.jsxs("div",{className:"share-modal-header",children:[O.jsx("span",{children:"Message shared"}),O.jsx("button",{type:"button",className:"share-modal-close",onClick:()=>v(null),children:"✕"})]}),O.jsx("p",{className:"share-modal-hint",children:"Anyone on this network with the link can view this message without logging in."}),O.jsx("input",{readOnly:!0,className:"share-modal-url",value:m.url.startsWith("http")?m.url:window.location.origin+m.url,onFocus:T=>T.target.select(),onKeyDown:T=>T.key==="Enter"&&T.target.select()}),O.jsxs("div",{className:"share-modal-actions",children:[O.jsx("button",{type:"button",className:"share-copy-btn",onClick:x,children:"Copy link"}),O.jsx("a",{className:"share-open-link",href:m.url,target:"_blank",rel:"noreferrer",children:"Open"})]})]})}),f&&O.jsx("span",{className:"share-error",role:"alert",children:f})]})}function N9({details:r}){return O.jsxs("div",{className:"search-popup",children:[O.jsxs("div",{style:{marginBottom:6},children:[O.jsx("span",{style:{color:"#888",fontSize:11},children:"Query:"})," ",O.jsx("span",{style:{color:"#e0e0e0"},children:r.map(a=>a.query).join("; ")})]}),r.map((a,l)=>O.jsxs("div",{children:[a.search_url&&O.jsxs("div",{style:{marginBottom:6,fontSize:11,wordBreak:"break-all"},children:[O.jsx("span",{style:{color:"#888"},children:"SearXNG:"})," ",O.jsx("a",{href:a.search_url,target:"_blank",rel:"noreferrer",style:{color:"#60a5fa"},children:a.search_url})]}),a.results&&a.results.map((u,s)=>O.jsx("a",{href:u.url,target:"_blank",rel:"noreferrer",style:{display:"block",color:"#60a5fa",fontSize:12,padding:"2px 0",textDecoration:"none"},title:u.url,children:u.title||u.url},s))]},l))]})}function B9({text:r,genPrompt:a,imageUrl:l,forceShow:u}){const[s,f]=J.useState("Copy");async function d(){f("Copying...");try{await m()}catch{g()}}async function m(){let T=r||"";if(a&&(T="Prompt: "+a+`

`+T),l&&navigator.clipboard&&navigator.clipboard.write){const D=l.startsWith("http")?l:window.location.origin+l;try{const U=await(await fetch(D)).blob(),F=await v(U),I=T.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),fe="<html><body>"+I.replace(/\n/g,"<br>")+'<br><br><img src="'+F+'"></body></html>';await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([fe],{type:"text/html"}),"text/plain":new Blob([I+`

`+D],{type:"text/plain"})}),new ClipboardItem({[U.type]:U})]),f("Copied!"),setTimeout(()=>f("Copy"),2e3);return}catch{}}let A=T;if(l){const D=l.startsWith("http")?l:window.location.origin+l;A=(A?A+`

`:"")+D}if(A&&navigator.clipboard&&navigator.clipboard.writeText){await navigator.clipboard.writeText(A),f("Copied!"),setTimeout(()=>f("Copy"),2e3);return}throw new Error("no clipboard method available")}function v(T){return new Promise((A,D)=>{const R=new FileReader;R.onloadend=()=>A(R.result),R.onerror=D,R.readAsDataURL(T)})}function g(){let T=r||"";if(l){const A=l.startsWith("http")?l:window.location.origin+l;T=(T?T+`

`:"")+A}a&&(T="Prompt: "+a+`

`+T);try{navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(T).then(()=>{f("Copied!"),setTimeout(()=>f("Copy"),2e3)}).catch(()=>x(T)):x(T)}catch{x(T)}}function x(T){const A=document.createElement("textarea");A.value=T,A.style.position="fixed",A.style.opacity="0",document.body.appendChild(A),A.select();try{document.execCommand("copy"),f("Copied!"),setTimeout(()=>f("Copy"),2e3)}catch{f("Failed"),setTimeout(()=>f("Copy"),2e3)}document.body.removeChild(A)}return O.jsx("button",{className:"copy-btn"+(u?" force-show":""),onClick:d,children:s})}let $0=null;function L9({text:r}){const[a,l]=J.useState(!1),u=J.useRef(null);async function s(){const f=u.current={};if($0&&$0._speakId===f){$0.pause(),$0.currentTime=0,$0=null,l(!1);return}$0&&($0.pause(),$0.currentTime=0,$0=null,l(!1)),l(!0);try{const d=await j6(r);if(u.current!==f)return;const m=d.type||"audio/mpeg",v=new Audio("data:"+m+";base64,"+d.audio);v._speakId=f,v.onended=()=>{$0===v&&($0=null,l(!1))},v.onerror=()=>{l(!1),$0=null},$0=v,v.play()}catch(d){console.warn("TTS error:",d),l(!1)}}return O.jsx("button",{className:"speak-btn"+(a?" speaking":""),onClick:s,title:a?"Stop":"Read aloud","aria-label":a?"Stop":"Read aloud",children:a?O.jsxs("svg",{viewBox:"0 0 24 24",width:"12",height:"12",fill:"currentColor","aria-hidden":"true",children:[O.jsx("rect",{x:"6",y:"5",width:"4",height:"14",rx:"1"}),O.jsx("rect",{x:"14",y:"5",width:"4",height:"14",rx:"1"})]}):O.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"currentColor","aria-hidden":"true",children:O.jsx("path",{d:"M8 5v14l11-7z"})})})}function f3({text:r,open:a,onToggle:l}){const u=J.useRef(null),s=J.useRef(0),[f,d]=J.useState(!1);if(J.useEffect(()=>{if(!(!u.current||!r)){if(r.length>s.current){const x=u.current;x.scrollHeight-x.scrollTop-x.clientHeight<40&&(x.scrollTop=x.scrollHeight)}s.current=r.length}},[r]),!r)return null;const m=r;let v;try{v=o3.sanitize(tt.parse(m))}catch{v=c3(m)}function g(x){x.preventDefault(),x.stopPropagation(),uf(r).then(T=>{d(T),setTimeout(()=>d(!1),2e3)})}return O.jsxs("details",{className:"reasoning-block",open:a,onToggle:x=>l(x.target.open),children:[O.jsxs("summary",{children:[O.jsx("span",{className:"reasoning-summary-label",children:"Reasoning"}),a&&O.jsx("button",{type:"button",className:"reasoning-copy-btn",onClick:g,title:"Copy reasoning",children:f?"Copied!":"Copy"})]}),O.jsx("div",{className:"reasoning-text",ref:u,dangerouslySetInnerHTML:{__html:v}})]})}function q9({pending:r,onImageOpen:a,onResolved:l,onLocationNeeded:u,selectingRef:s}){const[f,d]=J.useState(r.message||"Thinking..."),[m,v]=J.useState(r.reasoning||""),[g,x]=J.useState(!0),T=J.useRef(!1),A=J.useRef(!1);return J.useEffect(()=>{const D=setInterval(async()=>{if(T.current)return;let R;try{R=await nm(r.taskId)}catch{return}if(!R||R.status==="done"||R.status==="error"||R.status==="cancelled"||R.status==="unknown"||R.status==="not_found"){if(T.current)return;T.current=!0,clearInterval(D),l(r,R);return}if(R.message==="location_needed"){A.current||(A.current=!0,u(r.taskId));return}A.current=!1,!(s&&s.current)&&(d(R.message||"Working..."),R.reasoning&&v(U=>U===R.reasoning?U:R.reasoning))},1e3);return()=>clearInterval(D)},[r,l,u,s]),O.jsxs(O.Fragment,{children:[r._userMsg&&O.jsx(h3,{msg:r._userMsg,onImageOpen:a,selectingRef:s,onResolved:l,onLocationNeeded:u}),O.jsx("div",{className:"msg bot",children:O.jsxs("div",{className:"msg-content",children:[O.jsx(k9,{message:f}),O.jsx(f3,{text:m,open:g,onToggle:x})]})})]})}function h3({msg:r,pending:a,sessionId:l,msgIndex:u,hideSpeak:s,onImageOpen:f,selectingRef:d,onResolved:m,onLocationNeeded:v}){const g=J.useRef(null);J.useRef(null);const[x,T]=J.useState(null),A=J.useRef(null),[D,R]=J.useState(!!a),[U,F]=J.useState(null),I=J.useRef([]),fe=J.useCallback(de=>{A.current&&clearTimeout(A.current),T(de)},[]),oe=J.useCallback(()=>{A.current=setTimeout(()=>T(null),800)},[]),re=a?"bot":r.role==="user"?"user":"bot";let ie="",le=null,X=null;if(r)if(re==="user"){if(typeof r.content=="string"?ie=r.content:Array.isArray(r.content)&&r.content.forEach(de=>{if(de.type==="text")ie+=de.text;else if(de.type==="image_url"){const ce=de.image_url.url;ce.startsWith("data:")?le=ce.split(",")[1]:(ce.startsWith("/uploads/")||ce.startsWith("/output/")||/^https?:/.test(ce))&&(le=ce)}}),r._timestamp)try{X=new Date(r._timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",timeZoneName:"short"})}catch{}}else ie=typeof r.content=="string"?r.content:"";const we=J.useMemo(()=>{if(!ie)return"";try{const de=[],ce=new tt.Renderer;ce.code=({text:Z,lang:$})=>{const he=de.length;de.push(Z.replace(/\n$/,""));const ke=(Z.replace(/\n$/,"")+`
`).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),Oe=$?` class="language-${$.split(/\s/)[0]}"`:"";return`<div class="code-block"><button type="button" class="copy-code-btn" data-i="${he}" title="Copy code">Copy</button><pre><code${Oe}>${ke}</code></pre></div>
`};const k=o3.sanitize(tt.parse(M9(ie),{renderer:ce}));return I.current=de,k}catch{return c3(ie)}},[ie]);if(a)return O.jsx(q9,{pending:a,onImageOpen:f,selectingRef:d,onResolved:m,onLocationNeeded:v});if(r.role==="system"||r.role==="tool")return null;const Te=r._tools_used||[],Ge=r._search_details||[],ze=Ge.filter(de=>de&&de.tool==="fetch_page"),ge=r._gen_prompt,Fe=am(r._image_url),mt=r._image_model,He=typeof le=="string"&&(le.startsWith("/")||/^https?:/.test(le)),G=le?He?am(le):"data:image/jpeg;base64,"+le:null;if(r.role==="assistant"&&!ie&&!Fe&&!le&&!ge&&r.tool_calls&&r.tool_calls.length>0)return null;if(re==="user"){if(typeof r.content=="string"?ie=r.content:Array.isArray(r.content)&&r.content.forEach(de=>{if(de.type==="text")ie+=de.text;else if(de.type==="image_url"){const ce=de.image_url.url;ce.startsWith("data:")?le=ce.split(",")[1]:(ce.startsWith("/uploads/")||ce.startsWith("/output/")||/^https?:/.test(ce))&&(le=ce)}}),r._timestamp)try{X=new Date(r._timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",timeZoneName:"short"})}catch{}}else ie=typeof r.content=="string"?r.content:"";const te=ie;re==="bot"&&(ie=ie.replace(/^\s*\[(bn|hi|en)\]\s*/,""));async function ve(de){const ce=de.target.closest(".copy-code-btn");if(!ce)return;const k=parseInt(ce.dataset.i,10),Z=I.current[k];if(Z==null)return;const $=ce.textContent,he=await uf(Z);ce.textContent=he?"Copied!":"Failed",setTimeout(()=>{ce.textContent=$},2e3)}return re==="user"&&!ie&&!Fe&&!le&&!ge?null:O.jsxs("div",{className:`msg ${re}`,ref:g,children:[X&&O.jsx("span",{className:"msg-timestamp",children:X}),O.jsxs("div",{className:"msg-header",children:[re==="user"&&r._research&&O.jsx("span",{className:"tool-badge research",title:"This message was sent with the Research toggle on",children:"Research"}),re==="bot"&&r._elapsed_ms!=null&&O.jsxs("span",{className:"msg-elapsed",title:"Time from task start to completion",children:["⏲ ",_9(r._elapsed_ms)]}),re==="bot"&&Te.length>0&&(()=>{let de=0;return Te.map((ce,k)=>{const Z=ce==="fetch_page",$=Z?ze[de++]:null;return O.jsxs("span",{className:`tool-badge ${ce==="web_search"?"search":ce==="generate_image"?"image":ce==="edit_image"?"edit":ce==="fetch_page"?"fetch":""}`,onMouseEnter:()=>ce==="web_search"&&Ge.length>0&&fe(k),onMouseLeave:oe,children:[ce==="web_search"?"Web Search":ce==="generate_image"?`Image Gen${mt?" ("+mt+")":""}`:ce==="edit_image"?"Edit Image":ce==="fetch_page"?$!=null&&$.url?"Fetched Page · "+D9($.url):"Fetched Page":ce,Z&&$&&O.jsx("button",{type:"button",className:"fetch-info-btn",title:"View page details",onClick:he=>{he.stopPropagation(),F($)},children:"ⓘ"}),ce==="web_search"&&Ge.length>0&&x===k&&O.jsx("div",{className:"search-popup",onMouseEnter:()=>fe(k),onMouseLeave:oe,children:O.jsx(N9,{details:Ge})})]},k)})})(),re==="bot"&&ie&&!s&&O.jsx(L9,{text:te}),O.jsx(B9,{text:ie,genPrompt:ge,imageUrl:Fe}),re==="bot"&&l&&u!=null&&O.jsx(O9,{sessionId:l,msgIndex:u})]}),Fe&&O.jsxs("div",{className:"image-wrap",children:[O.jsx("img",{src:Fe,style:{maxWidth:"100%",borderRadius:10,cursor:"pointer"},onClick:()=>f(Fe),alt:"Generated"}),O.jsx("div",{className:"img-actions",children:O.jsx("button",{type:"button",className:"img-download-btn",onClick:()=>A9(Fe,"image.png"),children:"Download"})})]}),G&&O.jsx("img",{src:G,style:{maxWidth:"100%",borderRadius:10,cursor:"pointer"},onClick:()=>f(G),alt:"Uploaded"}),ge&&O.jsxs("div",{style:{whiteSpace:"pre-wrap",fontSize:12,color:"#888",marginBottom:6,fontStyle:"italic"},children:["Prompt: ",ge]}),O.jsx(f3,{text:r._reasoning,open:D,onToggle:R}),ie?O.jsx("div",{className:"msg-content",onClick:ve,dangerouslySetInnerHTML:{__html:we}}):!Fe&&!le?O.jsx("div",{className:"msg-content empty-response",children:O.jsx("em",{children:"(No response text generated)"})}):null,U&&O.jsx("div",{className:"page-modal-overlay",onClick:()=>F(null),children:O.jsxs("div",{className:"page-modal",onClick:de=>de.stopPropagation(),children:[O.jsxs("div",{className:"page-modal-header",children:[O.jsx("span",{children:"Fetched Page"}),O.jsx("button",{type:"button",className:"page-modal-close",onClick:()=>F(null),children:"✕"})]}),U.error?O.jsxs("div",{className:"page-modal-body error",children:[O.jsx("div",{className:"page-modal-url",children:U.url}),O.jsx("p",{className:"page-modal-error-msg",children:U.error})]}):O.jsxs("div",{className:"page-modal-body",children:[U.title&&O.jsx("div",{className:"page-modal-title",children:U.title}),O.jsx("a",{className:"page-modal-url",href:U.url,target:"_blank",rel:"noreferrer",children:U.url}),O.jsxs("div",{className:"page-modal-content",children:[(U.content||"(No readable text content extracted)").slice(0,6e3),U.content&&U.content.length>6e3?`
...[truncated for display]`:""]})]})]})})]})}const N1=J.memo(h3);function H9({messages:r,pendingMessages:a,currentSessionId:l,onImageOpen:u,selectingRef:s,onPendingResolved:f,onLocationNeeded:d}){const m=J.useRef(null),v=J.useRef(null),g=J.useRef(!1),x=a?Object.values(a).filter(T=>T.sessionId===l):[];return[...r,...x.map(T=>({_pending:!0,...T}))],J.useEffect(()=>{const T=v.current;if(!T)return;const A=()=>{g.current=T.scrollHeight-T.scrollTop-T.clientHeight>100};return T.addEventListener("scroll",A,{passive:!0}),()=>T.removeEventListener("scroll",A)},[]),J.useEffect(()=>{const T=v.current;if(!T||!s)return;const A=()=>{s.current=!0},D=()=>{s.current=!1};return T.addEventListener("pointerdown",A),T.addEventListener("pointerup",D),T.addEventListener("pointercancel",D),T.addEventListener("touchend",D),window.addEventListener("mouseup",D),()=>{T.removeEventListener("pointerdown",A),T.removeEventListener("pointerup",D),T.removeEventListener("pointercancel",D),T.removeEventListener("touchend",D),window.removeEventListener("mouseup",D)}},[s]),J.useEffect(()=>{if(!s)return;const T=()=>{let A=!1;try{A=!!document.getSelection()&&!document.getSelection().isCollapsed}catch{}s.current=A};return document.addEventListener("selectionchange",T),()=>document.removeEventListener("selectionchange",T)},[s]),J.useEffect(()=>{m.current&&!g.current&&m.current.scrollIntoView({behavior:"smooth"})},[r.length,x.length]),O.jsxs("div",{id:"chat",ref:v,children:[r.map((T,A)=>O.jsx(N1,{msg:T,sessionId:l,msgIndex:A,onImageOpen:u,selectingRef:s,onResolved:f,onLocationNeeded:d},A)),x.map((T,A)=>O.jsx(N1,{pending:T,onImageOpen:u,selectingRef:s,onResolved:f,onLocationNeeded:d},"p-"+(T.taskId||A))),O.jsx("div",{ref:m})]})}const U9=new Set([".py",".js",".ts",".jsx",".tsx",".java",".cpp",".c",".h",".hpp",".cs",".go",".rs",".rb",".php",".swift",".kt",".scala",".dart",".sh",".bash",".pl",".pm",".lua",".r",".sql",".html",".css",".scss",".sass",".less",".vue",".svelte",".yaml",".yml",".json",".xml",".toml",".ini",".cfg",".md",".tex",".dockerfile",".tf",".zig",".nim",".hs",".ml",".fs",".erl",".elm",".purs",".nix",".ps1",".bat",".cmake",".proto",".gradle",".bib"]),j9=new Set([".png",".jpg",".jpeg",".gif",".webp",".bmp"]),G9=new Set([".pdf",".xls",".xlsx",".doc",".docx"]),Y9=10*1024*1024;function X9(r){return new Promise((a,l)=>{const u=new FileReader;u.onload=()=>a(u.result.split(",")[1]),u.onerror=l,u.readAsDataURL(r)})}function Z9({onSend:r,hasPending:a}){const[l,u]=J.useState(""),[s,f]=J.useState(!1),[d,m]=J.useState(!1),[v,g]=J.useState(null),[x,T]=J.useState(null),[A,D]=J.useState(null),R=J.useRef(null),U=J.useRef(null),F=J.useRef(null),I=J.useRef(!1);function fe(){g(null),T(null),D(null),R.current&&(R.current.value=""),F.current&&(F.current.style.display="none")}const oe=J.useCallback(async ze=>{const ge=await X9(ze),Fe=await G6(ze.name,ge);if(!Fe.url)throw new Error(Fe.error||"Could not process file");T(Fe.name),D(Fe.url)},[]),re=J.useCallback(async ze=>{const ge=ze.target.files[0];if(!ge)return;if(ge.size>Y9){alert("File too large (max 10MB): "+ge.name),ze.target.value="";return}fe();const Fe="."+ge.name.split(".").pop().toLowerCase();if(j9.has(Fe)){const He=new FileReader;He.onload=G=>{const te=new Image;te.onload=async()=>{let ve=te.naturalWidth,de=te.naturalHeight;const ce=1920;(ve>ce||de>ce)&&(ve>de?(de=Math.round(de*ce/ve),ve=ce):(ve=Math.round(ve*ce/de),de=ce));const k=document.createElement("canvas");k.width=ve,k.height=de,k.getContext("2d").drawImage(te,0,0,ve,de);const $=k.toDataURL("image/jpeg",.8),he=$.split(",")[1];try{const ke=await Y6(he,"jpg");g(ke.url||he)}catch{g(he)}F.current&&(F.current.src=$,F.current.style.display="block")},te.src=G.target.result},He.readAsDataURL(ge);return}if(U9.has(Fe)){try{await oe(ge)}catch(He){fe(),alert("Error processing file: "+He.message)}return}if(G9.has(Fe)){try{await oe(ge)}catch(He){fe(),alert("Error processing file: "+He.message)}return}if(confirm("Unknown file type: "+ge.name+". Is this a code/text file?"))try{await oe(ge)}catch(He){fe(),alert("Error processing file: "+He.message)}else fe()},[oe]);async function ie(){if(I.current)return;const ze=l.trim();if(!ze&&!v&&!A)return;I.current=!0;let ge=ze;A&&(ge="[FILE: "+A+"]("+x+`)

`+(ze||"See attached file above."));try{await r(ge,v,s,d)}finally{I.current=!1}u(""),fe(),U.current&&(U.current.style.height="auto")}const le=window.matchMedia("(pointer: coarse)").matches;function X(ze){le||ze.key==="Enter"&&!ze.shiftKey&&!ze.ctrlKey&&(ze.preventDefault(),ie())}function we(){U.current&&(U.current.style.height="auto",U.current.style.height=Math.min(U.current.scrollHeight,120)+"px")}function Te(){T(null),D(null)}function Ge(ze){const ge=ze.target.checked;f(ge),ge||m(!1)}return O.jsxs("div",{id:"input-bar",children:[O.jsx("button",{id:"attach-btn",onClick:()=>{var ze;return(ze=R.current)==null?void 0:ze.click()},children:"+"}),O.jsx("input",{type:"file",id:"file-input",ref:R,onChange:re}),O.jsx("img",{id:"image-preview",ref:F}),x&&O.jsxs("span",{id:"file-badge",style:{display:"inline-flex"},children:[O.jsx("span",{children:x.length>25?x.slice(0,22)+"...":x}),O.jsx("span",{style:{cursor:"pointer",color:"#f87171",fontWeight:"bold",marginLeft:4},onClick:Te,children:"×"})]}),O.jsx("textarea",{id:"msg-input",ref:U,placeholder:"Type a message...",rows:1,value:l,onChange:ze=>u(ze.target.value),onKeyDown:X,onInput:we}),O.jsxs("div",{id:"research-toggles",children:[O.jsxs("label",{id:"research-toggle",title:"Research mode — lets the agent search and read pages for up to 50 tool rounds until your question is fully answered.",children:[O.jsx("input",{type:"checkbox",checked:s,onChange:Ge}),"Research"]}),O.jsxs("label",{id:"cpu-toggle",className:s?"":"disabled",title:s?"Run the research on the CPU-backed server instead of the GPU.":"Only available with Research mode.",children:[O.jsx("input",{type:"checkbox",checked:d,disabled:!s,onChange:ze=>m(ze.target.checked)}),"CPU"]})]}),O.jsxs("button",{id:"send-btn",onClick:ie,children:[O.jsx("span",{className:"send-icon",children:"➤"}),O.jsx("span",{className:"send-text",children:a?"Queue":"Send"})]})]})}function d3({src:r,onClose:a}){const[l,u]=J.useState(1),[s,f]=J.useState(0),[d,m]=J.useState(0),v=J.useRef(!1),g=J.useRef(0),x=J.useRef(0),T=J.useRef(0);function A(){a(),window.history.state&&window.history.state.lightboxOpen&&window.history.back()}J.useEffect(()=>{if(!r)return;const R=()=>a();return window.addEventListener("popstate",R),window.history.state&&window.history.state.lightboxOpen||window.history.pushState({lightboxOpen:!0},""),()=>window.removeEventListener("popstate",R)},[r,a]);const D=J.useCallback(()=>{const R=document.getElementById("fullscreen-img");R&&(R.style.transform=`scale(${l}) translate(${s}px, ${d}px)`);const U=document.getElementById("zoom-label");U&&(U.textContent=Math.round(l*100)+"%")},[l,s,d]);return J.useEffect(()=>{if(!r)return;u(1),f(0),m(0);const R=document.getElementById("fullscreen-img");R&&(R.src=r,R.style.transform="");const U=document.getElementById("zoom-label");U&&(U.textContent="100%")},[r]),J.useEffect(()=>{if(!r)return;const R=document.getElementById("image-overlay");function U(X){X.preventDefault();const we=X.deltaY>0?-.1:.1;u(Te=>Math.max(.25,Math.min(10,Te+we)))}function F(X){const we=document.getElementById("fullscreen-img");X.target===we?(v.current=!0,g.current=X.clientX-s,x.current=X.clientY-d,R.style.cursor="grabbing",X.preventDefault()):A()}function I(X){v.current&&(f(X.clientX-g.current),m(X.clientY-x.current))}function fe(){v.current&&(v.current=!1,R.style.cursor="grab")}function oe(X){if(X.touches.length===2){const we=X.touches[0].clientX-X.touches[1].clientX,Te=X.touches[0].clientY-X.touches[1].clientY;T.current=Math.sqrt(we*we+Te*Te),v.current=!1,X.preventDefault()}else X.touches.length===1&&X.target===document.getElementById("fullscreen-img")&&(v.current=!0,g.current=X.touches[0].clientX-s,x.current=X.touches[0].clientY-d,X.preventDefault())}function re(X){if(X.touches.length===2){const we=X.touches[0].clientX-X.touches[1].clientX,Te=X.touches[0].clientY-X.touches[1].clientY,Ge=Math.sqrt(we*we+Te*Te);T.current>0&&(u(ze=>Math.max(.25,Math.min(10,ze*(Ge/T.current)))),T.current=Ge),X.preventDefault()}else X.touches.length===1&&v.current&&(f(X.touches[0].clientX-g.current),m(X.touches[0].clientY-x.current),X.preventDefault())}function ie(X){v.current&&X.touches.length===0&&(v.current=!1),X.changedTouches.length===1&&X.target!==document.getElementById("fullscreen-img")&&A()}function le(X){X.key==="Escape"&&A()}return R.addEventListener("wheel",U,{passive:!1}),R.addEventListener("mousedown",F),document.addEventListener("mousemove",I),document.addEventListener("mouseup",fe),R.addEventListener("touchstart",oe,{passive:!1}),R.addEventListener("touchmove",re,{passive:!1}),R.addEventListener("touchend",ie),document.addEventListener("keydown",le),()=>{R.removeEventListener("wheel",U),R.removeEventListener("mousedown",F),document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",fe),R.removeEventListener("touchstart",oe),R.removeEventListener("touchmove",re),R.removeEventListener("touchend",ie),document.removeEventListener("keydown",le)}},[r,a,s,d]),J.useEffect(()=>{D()},[l,s,d,D]),r?O.jsxs("div",{id:"image-overlay",className:"open",children:[O.jsx("div",{className:"img-wrap",children:O.jsx("img",{id:"fullscreen-img"})}),O.jsx("div",{className:"zoom-label",id:"zoom-label",children:"100%"})]}):null}function V9({overheated:r,gpuTemp:a,ramEvacuating:l}){if(!r&&!l)return null;const u=a!=null?a+"°C":"",s=l?"Server overloaded (high memory). Your queued messages are paused while RAM is freed and servers restart.":"Server overloaded. Your queued messages will be processed once the GPU cools down.";return O.jsxs("div",{id:"overload-warn",style:{display:"block"},children:[s,u?" (GPU: "+u+")":""]})}function Q9({onClose:r}){const[a,l]=J.useState([]),[u,s]=J.useState(""),[f,d]=J.useState("medium"),[m,v]=J.useState(!1);J.useEffect(()=>{g()},[]);async function g(){const R=await X6();l(R.tasks||[])}async function x(R){R.preventDefault(),u.trim()&&(await Z6({title:u.trim(),priority:f}),s(""),d("medium"),v(!1),g())}async function T(R){R.status==="completed"?await J2(R.id,{status:"pending"}):await J2(R.id,{status:"completed"}),g()}async function A(R){await V6(R),g()}const D={high:"#f87171",medium:"#fbbf24",low:"#4ade80"};return O.jsxs("div",{id:"task-panel",children:[O.jsxs("div",{id:"task-panel-header",children:[O.jsx("span",{children:"Tasks"}),O.jsx("button",{onClick:()=>v(!m),children:m?"x":"+"}),O.jsx("button",{onClick:r,id:"task-panel-close",children:"✕"})]}),m&&O.jsxs("form",{id:"task-form",onSubmit:x,children:[O.jsx("input",{value:u,onChange:R=>s(R.target.value),placeholder:"New task..."}),O.jsxs("select",{value:f,onChange:R=>d(R.target.value),children:[O.jsx("option",{value:"low",children:"Low"}),O.jsx("option",{value:"medium",children:"Medium"}),O.jsx("option",{value:"high",children:"High"})]}),O.jsx("button",{type:"submit",children:"Add"})]}),O.jsx("div",{id:"task-list",children:a.map(R=>O.jsxs("div",{className:`task-item ${R.status==="completed"?"done":""}`,children:[O.jsx("input",{type:"checkbox",checked:R.status==="completed",onChange:()=>T(R)}),O.jsx("span",{className:"task-title",style:{color:D[R.priority]||"#94a3b8"},children:R.title}),O.jsx("span",{className:"task-status",children:R.status}),R.due_date&&O.jsx("span",{className:"task-due",children:new Date(R.due_date).toLocaleDateString()}),O.jsx("button",{className:"task-delete",onClick:()=>A(R.id),children:"🗑"})]},R.id))})]})}function K9({onAllow:r,onDeny:a,error:l}){return O.jsx("div",{id:"location-overlay",onClick:a,children:O.jsxs("div",{id:"location-dialog",onClick:u=>u.stopPropagation(),children:[O.jsx("div",{id:"location-icon",children:"📍"}),O.jsx("div",{id:"location-title",children:"Share your location?"}),O.jsx("div",{id:"location-desc",children:l||"Local AI can use your location to provide location-aware responses and search results. You can change this anytime in your browser settings."}),O.jsxs("div",{id:"location-actions",children:[O.jsx("button",{id:"location-deny-btn",onClick:a,children:"Deny"}),O.jsx("button",{id:"location-allow-btn",onClick:r,disabled:l&&l.includes("blocked"),children:"Allow"})]})]})})}function F9({token:r,onExit:a}){const[l,u]=J.useState({loading:!0,error:"",message:null,sharedBy:""}),[s,f]=J.useState(null);J.useEffect(()=>{let v=!0;return K6(r).then(g=>{v&&(g&&g.message?u({loading:!1,error:"",message:g.message,sharedBy:g.shared_by||""}):u({loading:!1,error:g&&g.error||"This shared message is no longer available.",message:null,sharedBy:""}))}).catch(()=>{v&&u({loading:!1,error:"Could not load the shared message.",message:null,sharedBy:""})}),()=>{v=!1}},[r]);const d=J.useCallback(v=>f(v),[]),m=J.useCallback(()=>f(null),[]);return O.jsxs("div",{id:"public-share-view",children:[O.jsxs("div",{className:"public-share-topbar",children:[O.jsx("span",{className:"public-share-label",children:"Shared message"}),a&&O.jsx("button",{type:"button",className:"public-share-exit",onClick:a,children:"Log in to chat"})]}),l.loading?O.jsx("div",{className:"public-share-status",children:"Loading…"}):l.error?O.jsx("div",{className:"public-share-status error",children:l.error}):O.jsxs("div",{className:"public-share-body",children:[O.jsxs("div",{className:"public-share-meta",children:["Shared by ",O.jsx("strong",{children:l.sharedBy||"someone"})]}),O.jsx(N1,{msg:l.message,onImageOpen:d,hideSpeak:!0})]}),O.jsx(d3,{src:s,onClose:m})]})}function I9(){const r=/^\/s\/([A-Za-z0-9]+)\/?$/.exec(window.location.pathname);return r?r[1]:null}function J9(){const[r,a]=J.useState(!1),[l,u]=J.useState(()=>I9()),[s,f]=J.useState(""),[d,m]=J.useState([]),[v,g]=J.useState(null),[x,T]=J.useState([]),[A,D]=J.useState({}),[R,U]=J.useState(0),[F,I]=J.useState(!1),[fe,oe]=J.useState(0),[re,ie]=J.useState(24576),[le,X]=J.useState("unloaded"),[we,Te]=J.useState(null),[Ge,ze]=J.useState(!1),[ge,Fe]=J.useState(null),[mt,He]=J.useState(!1),[G,te]=J.useState(0),[ve,de]=J.useState(!1),[ce,k]=J.useState(null),[Z,$]=J.useState({}),[he,ke]=J.useState(!1),[Oe,Le]=J.useState(!1),[Tt,We]=J.useState(null),[U0,Ie]=J.useState(null),Ut=J.useRef(null),at=J.useRef(!1),e0=J.useRef({}),rt=J.useRef(new Set);J.useEffect(()=>{C6().then(be=>{be.authenticated?(a(!0),be.username&&f(be.username),Ft().then(me=>{const Je=localStorage.getItem("last_sid");Je&&me.some(Xe=>Xe.session_id===Je)?r0(Je):me.length>0&&r0(me[0].session_id)})):a(!1)}).catch(()=>a(!1))},[]),J.useEffect(()=>{const be=()=>{a(!1),f(""),m([]),Ut.current=null,g(null),T([]),D({}),de(!1)};return window.addEventListener("auth:unauthorized",be),()=>window.removeEventListener("auth:unauthorized",be)},[]);const j0=Object.values(A).some(be=>be.sessionId===v);J.useEffect(()=>{e0.current=A},[A]);async function pn(){console.log("[logout] called"),await M6(),a(!1),f(""),m([]),Ut.current=null,g(null),T([]),D({}),de(!1)}async function Ft(){const be=await D6();return m(be),be}function aa(be){_6(be).then(me=>{Ut.current===be&&(T(me.messages||[]),U(me.token_estimate||0),I(!!me.context_compressed),oe(me.raw_token_estimate||0))}).catch(()=>{Ut.current===be&&(T([]),U(0),I(!1),oe(0))})}async function r0(be){Ut.current=be,g(be),localStorage.setItem("last_sid",be),aa(be),ct()}async function va(){const be=await R6();Ut.current=be.session_id,g(be.session_id),localStorage.setItem("last_sid",be.session_id),T([]),U(0),I(!1),oe(0);const me=await Ft();m(me),ct()}async function vn(be){if(!confirm("Delete this session?"))return;await O6(be),D(Je=>{const Xe={...Je};for(const[Pe,ft]of Object.entries(Je))ft.sessionId===be&&delete Xe[Pe];return Xe}),s1(os().filter(Je=>Je.sid!==be));const me=await Ft();be===v?me.length>0?r0(me[0].session_id):va():v&&aa(v)}async function d0(be){const me=d.find(ft=>ft.session_id===be),Je=prompt("Session name:",me?me.name:"");if(!Je||Je.trim()==="")return;const Xe=v;await N6(be,Je.trim());const Pe=await Ft();Ut.current=Xe,g(Xe),m(Pe)}function ct(){de(!1)}async function D0(be,me,Je,Xe){if(!v)return;const Pe=v;$(i0=>({...i0,[Pe]:(i0[Pe]||0)+1}));const ft={role:"user",content:be||"📄 file",_timestamp:new Date().toISOString()};try{const At=(await L6(v,be||"",me||void 0,void 0,void 0,Je,Xe)).task_id;D(Aa=>({...Aa,[At]:{sessionId:Pe,status:"working",message:"Thinking...",taskId:At,reasoning:"",_userMsg:ft}}));const y0=os();y0.push({task_id:At,sid:Pe}),s1(y0)}catch(i0){T(At=>[...At,ft,{role:"assistant",content:"Error: "+i0.message}])}$(i0=>{const At={...i0};return At[Pe]=(At[Pe]||1)-1,At[Pe]||delete At[Pe],At})}const na=J.useCallback((be,me)=>{const Je=be.taskId;if(rt.current.has(Je))return;if(rt.current.add(Je),D(Pe=>{const ft={...Pe};return delete ft[Je],ft}),me.status==="done"){const Pe=be._userMsg,ft={role:"assistant",content:me.response||"",_elapsed_ms:me._elapsed_ms!=null?me._elapsed_ms:null,_reasoning:me.reasoning||"",_image_url:me.image||me._image_url,_gen_prompt:me.gen_prompt,_tools_used:me.tools_used||[],_image_model:me._image_model,_search_details:me._search_details||[]};be.sessionId===Ut.current&&T(i0=>[...i0,...Pe?[Pe]:[],ft]),me.token_estimate!=null&&U(me.token_estimate),I(!!me.context_compressed),me.raw_token_estimate!=null&&oe(me.raw_token_estimate),me.predicted_per_second!=null&&Te(me.predicted_per_second),me.session_name!=null&&me.session_id&&m(i0=>i0.map(At=>At.session_id===me.session_id?{...At,name:me.session_name}:At))}else be.sessionId===Ut.current&&T(Pe=>[...Pe,...be._userMsg?[be._userMsg]:[],{role:"assistant",content:"Error: "+(me.error||"Task was lost — please retry.")}]);const Xe=os().filter(Pe=>Pe.task_id!==Je);s1(Xe)},[]),la=J.useCallback(be=>{Le(!0),We(be),Ie(null)},[]),g0=J.useCallback(()=>k(null),[]);J.useEffect(()=>{if(!r)return;const be=setInterval(async()=>{for(const[me,Je]of Object.entries(e0.current))if(Je.sessionId!==Ut.current)try{const Xe=await nm(me);Xe&&(Xe.status==="done"||Xe.status==="error"||Xe.status==="cancelled"||Xe.status==="unknown"||Xe.status==="not_found")?na(Je,Xe):Xe.message==="location_needed"&&la(me)}catch{}},2e3);return()=>clearInterval(be)},[r,na,la]),J.useEffect(()=>{if(!r)return;const be=setInterval(async()=>{try{const me=await q6();X(me.model),ze(me.overheated),Fe(me.gpu_temp),me.ram_evacuating!=null&&He(me.ram_evacuating),me.predicted_per_second!=null&&Te(me.predicted_per_second),me.max_context!=null&&ie(me.max_context),me.reminder_count!=null&&te(me.reminder_count)}catch{}},2e3);return()=>clearInterval(be)},[r]),J.useEffect(()=>{if(!r)return;const be=os();if(be.length>0){const me={};be.forEach(Je=>{me[Je.task_id]={sessionId:Je.sid,status:"working",message:"Thinking...",taskId:Je.task_id,reasoning:""}}),D(me)}},[r]);function ra(){const be=Tt;navigator.geolocation.getCurrentPosition(me=>{Le(!1),We(null),H6(me.coords.latitude,me.coords.longitude,be)},me=>{me.code===1?Ie("Location access is blocked in your browser. Please enable it in browser settings and try again."):Ie("Could not get location: "+me.message+". Try again or click Deny.")},{timeout:1e4,enableHighAccuracy:!1})}function ga(){Le(!1);const be=Tt;We(null),Ie(null),U6(be)}return l?O.jsx(F9,{token:l,onExit:()=>{window.history.replaceState({},"","/"),u(null)}}):O.jsxs(O.Fragment,{children:[Oe&&O.jsx(K9,{onAllow:ra,onDeny:ga,error:U0}),O.jsxs("div",{style:{display:r?"":"none"},children:[O.jsx(F6,{modelStatus:le,modelTps:we,tokenEstimate:R,contextCompressed:F,rawTokenEstimate:fe,maxContext:re,onToggleSidebar:()=>de(be=>!be),username:s,onLogout:pn,reminderCount:G,onToggleTasks:()=>ke(be=>!be)}),O.jsxs("div",{id:"app-container",children:[O.jsx(I6,{sessions:d,currentSessionId:v,onSwitchSession:r0,onNewChat:va,onRenameSession:d0,onDeleteSession:vn,onClose:ct,open:ve}),O.jsx(V9,{overheated:Ge,gpuTemp:ge,ramEvacuating:mt}),O.jsx(H9,{messages:x,pendingMessages:A,currentSessionId:v,onImageOpen:k,selectingRef:at,onPendingResolved:na,onLocationNeeded:la}),O.jsx(Z9,{onSend:D0,hasPending:j0})]}),O.jsx(d3,{src:ce,onClose:g0}),he&&O.jsx(Q9,{onClose:()=>ke(!1)})]})]})}function os(){try{return JSON.parse(sessionStorage.getItem("opencode_pending"))||[]}catch{return[]}}function s1(r){try{sessionStorage.setItem("opencode_pending",JSON.stringify(r))}catch{}}k6.createRoot(document.getElementById("root")).render(O.jsx(J9,{}));