drawboard-microservice 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,307 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const h of o)if(h.type==="childList")for(const d of h.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function a(o){const h={};return o.integrity&&(h.integrity=o.integrity),o.referrerPolicy&&(h.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?h.credentials="include":o.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function i(o){if(o.ep)return;o.ep=!0;const h=a(o);fetch(o.href,h)}})();function Qd(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var X4={exports:{}},lh={};var l3;function X7(){if(l3)return lh;l3=1;var s=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(i,o,h){var d=null;if(h!==void 0&&(d=""+h),o.key!==void 0&&(d=""+o.key),"key"in o){h={};for(var g in o)g!=="key"&&(h[g]=o[g])}else h=o;return o=h.ref,{$$typeof:s,type:i,key:d,ref:o!==void 0?o:null,props:h}}return lh.Fragment=t,lh.jsx=a,lh.jsxs=a,lh}var i3;function j7(){return i3||(i3=1,X4.exports=X7()),X4.exports}var _t=j7(),j4={exports:{}},xe={};var r3;function V7(){if(r3)return xe;r3=1;var s=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),A=Symbol.iterator;function D(B){return B===null||typeof B!="object"?null:(B=A&&B[A]||B["@@iterator"],typeof B=="function"?B:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,U={};function Y(B,et,dt){this.props=B,this.context=et,this.refs=U,this.updater=dt||C}Y.prototype.isReactComponent={},Y.prototype.setState=function(B,et){if(typeof B!="object"&&typeof B!="function"&&B!=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,B,et,"setState")},Y.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function G(){}G.prototype=Y.prototype;function Z(B,et,dt){this.props=B,this.context=et,this.refs=U,this.updater=dt||C}var q=Z.prototype=new G;q.constructor=Z,H(q,Y.prototype),q.isPureReactComponent=!0;var P=Array.isArray;function ut(){}var rt={H:null,A:null,T:null,S:null},ot=Object.prototype.hasOwnProperty;function Et(B,et,dt){var wt=dt.ref;return{$$typeof:s,type:B,key:et,ref:wt!==void 0?wt:null,props:dt}}function kt(B,et){return Et(B.type,et,B.props)}function Vt(B){return typeof B=="object"&&B!==null&&B.$$typeof===s}function St(B){var et={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(dt){return et[dt]})}var te=/\/+/g;function jt(B,et){return typeof B=="object"&&B!==null&&B.key!=null?St(""+B.key):et.toString(36)}function Nt(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(ut,ut):(B.status="pending",B.then(function(et){B.status==="pending"&&(B.status="fulfilled",B.value=et)},function(et){B.status==="pending"&&(B.status="rejected",B.reason=et)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function Q(B,et,dt,wt,Kt){var Bt=typeof B;(Bt==="undefined"||Bt==="boolean")&&(B=null);var Ct=!1;if(B===null)Ct=!0;else switch(Bt){case"bigint":case"string":case"number":Ct=!0;break;case"object":switch(B.$$typeof){case s:case t:Ct=!0;break;case E:return Ct=B._init,Q(Ct(B._payload),et,dt,wt,Kt)}}if(Ct)return Kt=Kt(B),Ct=wt===""?"."+jt(B,0):wt,P(Kt)?(dt="",Ct!=null&&(dt=Ct.replace(te,"$&/")+"/"),Q(Kt,et,dt,"",function(Ae){return Ae})):Kt!=null&&(Vt(Kt)&&(Kt=kt(Kt,dt+(Kt.key==null||B&&B.key===Kt.key?"":(""+Kt.key).replace(te,"$&/")+"/")+Ct)),et.push(Kt)),1;Ct=0;var Wt=wt===""?".":wt+":";if(P(B))for(var Zt=0;Zt<B.length;Zt++)wt=B[Zt],Bt=Wt+jt(wt,Zt),Ct+=Q(wt,et,dt,Bt,Kt);else if(Zt=D(B),typeof Zt=="function")for(B=Zt.call(B),Zt=0;!(wt=B.next()).done;)wt=wt.value,Bt=Wt+jt(wt,Zt++),Ct+=Q(wt,et,dt,Bt,Kt);else if(Bt==="object"){if(typeof B.then=="function")return Q(Nt(B),et,dt,wt,Kt);throw et=String(B),Error("Objects are not valid as a React child (found: "+(et==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":et)+"). If you meant to render a collection of children, use an array instead.")}return Ct}function pt(B,et,dt){if(B==null)return B;var wt=[],Kt=0;return Q(B,wt,"","",function(Bt){return et.call(dt,Bt,Kt++)}),wt}function bt(B){if(B._status===-1){var et=B._result;et=et(),et.then(function(dt){(B._status===0||B._status===-1)&&(B._status=1,B._result=dt)},function(dt){(B._status===0||B._status===-1)&&(B._status=2,B._result=dt)}),B._status===-1&&(B._status=0,B._result=et)}if(B._status===1)return B._result.default;throw B._result}var Ot=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var et=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(et))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)},Xt={map:pt,forEach:function(B,et,dt){pt(B,function(){et.apply(this,arguments)},dt)},count:function(B){var et=0;return pt(B,function(){et++}),et},toArray:function(B){return pt(B,function(et){return et})||[]},only:function(B){if(!Vt(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return xe.Activity=_,xe.Children=Xt,xe.Component=Y,xe.Fragment=a,xe.Profiler=o,xe.PureComponent=Z,xe.StrictMode=i,xe.Suspense=p,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=rt,xe.__COMPILER_RUNTIME={__proto__:null,c:function(B){return rt.H.useMemoCache(B)}},xe.cache=function(B){return function(){return B.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(B,et,dt){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var wt=H({},B.props),Kt=B.key;if(et!=null)for(Bt in et.key!==void 0&&(Kt=""+et.key),et)!ot.call(et,Bt)||Bt==="key"||Bt==="__self"||Bt==="__source"||Bt==="ref"&&et.ref===void 0||(wt[Bt]=et[Bt]);var Bt=arguments.length-2;if(Bt===1)wt.children=dt;else if(1<Bt){for(var Ct=Array(Bt),Wt=0;Wt<Bt;Wt++)Ct[Wt]=arguments[Wt+2];wt.children=Ct}return Et(B.type,Kt,wt)},xe.createContext=function(B){return B={$$typeof:d,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:h,_context:B},B},xe.createElement=function(B,et,dt){var wt,Kt={},Bt=null;if(et!=null)for(wt in et.key!==void 0&&(Bt=""+et.key),et)ot.call(et,wt)&&wt!=="key"&&wt!=="__self"&&wt!=="__source"&&(Kt[wt]=et[wt]);var Ct=arguments.length-2;if(Ct===1)Kt.children=dt;else if(1<Ct){for(var Wt=Array(Ct),Zt=0;Zt<Ct;Zt++)Wt[Zt]=arguments[Zt+2];Kt.children=Wt}if(B&&B.defaultProps)for(wt in Ct=B.defaultProps,Ct)Kt[wt]===void 0&&(Kt[wt]=Ct[wt]);return Et(B,Bt,Kt)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(B){return{$$typeof:g,render:B}},xe.isValidElement=Vt,xe.lazy=function(B){return{$$typeof:E,_payload:{_status:-1,_result:B},_init:bt}},xe.memo=function(B,et){return{$$typeof:b,type:B,compare:et===void 0?null:et}},xe.startTransition=function(B){var et=rt.T,dt={};rt.T=dt;try{var wt=B(),Kt=rt.S;Kt!==null&&Kt(dt,wt),typeof wt=="object"&&wt!==null&&typeof wt.then=="function"&&wt.then(ut,Ot)}catch(Bt){Ot(Bt)}finally{et!==null&&dt.types!==null&&(et.types=dt.types),rt.T=et}},xe.unstable_useCacheRefresh=function(){return rt.H.useCacheRefresh()},xe.use=function(B){return rt.H.use(B)},xe.useActionState=function(B,et,dt){return rt.H.useActionState(B,et,dt)},xe.useCallback=function(B,et){return rt.H.useCallback(B,et)},xe.useContext=function(B){return rt.H.useContext(B)},xe.useDebugValue=function(){},xe.useDeferredValue=function(B,et){return rt.H.useDeferredValue(B,et)},xe.useEffect=function(B,et){return rt.H.useEffect(B,et)},xe.useEffectEvent=function(B){return rt.H.useEffectEvent(B)},xe.useId=function(){return rt.H.useId()},xe.useImperativeHandle=function(B,et,dt){return rt.H.useImperativeHandle(B,et,dt)},xe.useInsertionEffect=function(B,et){return rt.H.useInsertionEffect(B,et)},xe.useLayoutEffect=function(B,et){return rt.H.useLayoutEffect(B,et)},xe.useMemo=function(B,et){return rt.H.useMemo(B,et)},xe.useOptimistic=function(B,et){return rt.H.useOptimistic(B,et)},xe.useReducer=function(B,et,dt){return rt.H.useReducer(B,et,dt)},xe.useRef=function(B){return rt.H.useRef(B)},xe.useState=function(B){return rt.H.useState(B)},xe.useSyncExternalStore=function(B,et,dt){return rt.H.useSyncExternalStore(B,et,dt)},xe.useTransition=function(){return rt.H.useTransition()},xe.version="19.2.0",xe}var s3;function F2(){return s3||(s3=1,j4.exports=V7()),j4.exports}var yt=F2();const z0=Qd(yt);var V4={exports:{}},ih={},Q4={exports:{}},K4={};var u3;function Q7(){return u3||(u3=1,(function(s){function t(Q,pt){var bt=Q.length;Q.push(pt);t:for(;0<bt;){var Ot=bt-1>>>1,Xt=Q[Ot];if(0<o(Xt,pt))Q[Ot]=pt,Q[bt]=Xt,bt=Ot;else break t}}function a(Q){return Q.length===0?null:Q[0]}function i(Q){if(Q.length===0)return null;var pt=Q[0],bt=Q.pop();if(bt!==pt){Q[0]=bt;t:for(var Ot=0,Xt=Q.length,B=Xt>>>1;Ot<B;){var et=2*(Ot+1)-1,dt=Q[et],wt=et+1,Kt=Q[wt];if(0>o(dt,bt))wt<Xt&&0>o(Kt,dt)?(Q[Ot]=Kt,Q[wt]=bt,Ot=wt):(Q[Ot]=dt,Q[et]=bt,Ot=et);else if(wt<Xt&&0>o(Kt,bt))Q[Ot]=Kt,Q[wt]=bt,Ot=wt;else break t}}return pt}function o(Q,pt){var bt=Q.sortIndex-pt.sortIndex;return bt!==0?bt:Q.id-pt.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var d=Date,g=d.now();s.unstable_now=function(){return d.now()-g}}var p=[],b=[],E=1,_=null,A=3,D=!1,C=!1,H=!1,U=!1,Y=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function q(Q){for(var pt=a(b);pt!==null;){if(pt.callback===null)i(b);else if(pt.startTime<=Q)i(b),pt.sortIndex=pt.expirationTime,t(p,pt);else break;pt=a(b)}}function P(Q){if(H=!1,q(Q),!C)if(a(p)!==null)C=!0,ut||(ut=!0,St());else{var pt=a(b);pt!==null&&Nt(P,pt.startTime-Q)}}var ut=!1,rt=-1,ot=5,Et=-1;function kt(){return U?!0:!(s.unstable_now()-Et<ot)}function Vt(){if(U=!1,ut){var Q=s.unstable_now();Et=Q;var pt=!0;try{t:{C=!1,H&&(H=!1,G(rt),rt=-1),D=!0;var bt=A;try{e:{for(q(Q),_=a(p);_!==null&&!(_.expirationTime>Q&&kt());){var Ot=_.callback;if(typeof Ot=="function"){_.callback=null,A=_.priorityLevel;var Xt=Ot(_.expirationTime<=Q);if(Q=s.unstable_now(),typeof Xt=="function"){_.callback=Xt,q(Q),pt=!0;break e}_===a(p)&&i(p),q(Q)}else i(p);_=a(p)}if(_!==null)pt=!0;else{var B=a(b);B!==null&&Nt(P,B.startTime-Q),pt=!1}}break t}finally{_=null,A=bt,D=!1}pt=void 0}}finally{pt?St():ut=!1}}}var St;if(typeof Z=="function")St=function(){Z(Vt)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,jt=te.port2;te.port1.onmessage=Vt,St=function(){jt.postMessage(null)}}else St=function(){Y(Vt,0)};function Nt(Q,pt){rt=Y(function(){Q(s.unstable_now())},pt)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(Q){Q.callback=null},s.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ot=0<Q?Math.floor(1e3/Q):5},s.unstable_getCurrentPriorityLevel=function(){return A},s.unstable_next=function(Q){switch(A){case 1:case 2:case 3:var pt=3;break;default:pt=A}var bt=A;A=pt;try{return Q()}finally{A=bt}},s.unstable_requestPaint=function(){U=!0},s.unstable_runWithPriority=function(Q,pt){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var bt=A;A=Q;try{return pt()}finally{A=bt}},s.unstable_scheduleCallback=function(Q,pt,bt){var Ot=s.unstable_now();switch(typeof bt=="object"&&bt!==null?(bt=bt.delay,bt=typeof bt=="number"&&0<bt?Ot+bt:Ot):bt=Ot,Q){case 1:var Xt=-1;break;case 2:Xt=250;break;case 5:Xt=1073741823;break;case 4:Xt=1e4;break;default:Xt=5e3}return Xt=bt+Xt,Q={id:E++,callback:pt,priorityLevel:Q,startTime:bt,expirationTime:Xt,sortIndex:-1},bt>Ot?(Q.sortIndex=bt,t(b,Q),a(p)===null&&Q===a(b)&&(H?(G(rt),rt=-1):H=!0,Nt(P,bt-Ot))):(Q.sortIndex=Xt,t(p,Q),C||D||(C=!0,ut||(ut=!0,St()))),Q},s.unstable_shouldYield=kt,s.unstable_wrapCallback=function(Q){var pt=A;return function(){var bt=A;A=pt;try{return Q.apply(this,arguments)}finally{A=bt}}}})(K4)),K4}var o3;function Kd(){return o3||(o3=1,Q4.exports=Q7()),Q4.exports}var Z4={exports:{}},mn={};var c3;function K7(){if(c3)return mn;c3=1;var s=F2();function t(p){var b="https://react.dev/errors/"+p;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)b+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+p+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function h(p,b,E){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:_==null?null:""+_,children:p,containerInfo:b,implementation:E}}var d=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,b){if(p==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,mn.createPortal=function(p,b){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(t(299));return h(p,b,null,E)},mn.flushSync=function(p){var b=d.T,E=i.p;try{if(d.T=null,i.p=2,p)return p()}finally{d.T=b,i.p=E,i.d.f()}},mn.preconnect=function(p,b){typeof p=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,i.d.C(p,b))},mn.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},mn.preinit=function(p,b){if(typeof p=="string"&&b&&typeof b.as=="string"){var E=b.as,_=g(E,b.crossOrigin),A=typeof b.integrity=="string"?b.integrity:void 0,D=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;E==="style"?i.d.S(p,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:_,integrity:A,fetchPriority:D}):E==="script"&&i.d.X(p,{crossOrigin:_,integrity:A,fetchPriority:D,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},mn.preinitModule=function(p,b){if(typeof p=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var E=g(b.as,b.crossOrigin);i.d.M(p,{crossOrigin:E,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&i.d.M(p)},mn.preload=function(p,b){if(typeof p=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var E=b.as,_=g(E,b.crossOrigin);i.d.L(p,E,{crossOrigin:_,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},mn.preloadModule=function(p,b){if(typeof p=="string")if(b){var E=g(b.as,b.crossOrigin);i.d.m(p,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:E,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else i.d.m(p)},mn.requestFormReset=function(p){i.d.r(p)},mn.unstable_batchedUpdates=function(p,b){return p(b)},mn.useFormState=function(p,b,E){return d.H.useFormState(p,b,E)},mn.useFormStatus=function(){return d.H.useHostTransitionStatus()},mn.version="19.2.0",mn}var h3;function Z7(){if(h3)return Z4.exports;h3=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(t){console.error(t)}}return s(),Z4.exports=K7(),Z4.exports}var f3;function J7(){if(f3)return ih;f3=1;var s=Kd(),t=F2(),a=Z7();function i(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)n+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var n=e,u=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(u=n.return),e=n.return;while(e)}return n.tag===3?u:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(i(188))}function b(e){var n=e.alternate;if(!n){if(n=h(e),n===null)throw Error(i(188));return n!==e?null:e}for(var u=e,c=n;;){var v=u.return;if(v===null)break;var y=v.alternate;if(y===null){if(c=v.return,c!==null){u=c;continue}break}if(v.child===y.child){for(y=v.child;y;){if(y===u)return p(v),e;if(y===c)return p(v),n;y=y.sibling}throw Error(i(188))}if(u.return!==c.return)u=v,c=y;else{for(var z=!1,R=v.child;R;){if(R===u){z=!0,u=v,c=y;break}if(R===c){z=!0,c=v,u=y;break}R=R.sibling}if(!z){for(R=y.child;R;){if(R===u){z=!0,u=y,c=v;break}if(R===c){z=!0,c=y,u=v;break}R=R.sibling}if(!z)throw Error(i(189))}}if(u.alternate!==c)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?e:n}function E(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=E(e),n!==null)return n;e=e.sibling}return null}var _=Object.assign,A=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),ut=Symbol.for("react.suspense_list"),rt=Symbol.for("react.memo"),ot=Symbol.for("react.lazy"),Et=Symbol.for("react.activity"),kt=Symbol.for("react.memo_cache_sentinel"),Vt=Symbol.iterator;function St(e){return e===null||typeof e!="object"?null:(e=Vt&&e[Vt]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function jt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case Y:return"Profiler";case U:return"StrictMode";case P:return"Suspense";case ut:return"SuspenseList";case Et:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case Z:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case q:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rt:return n=e.displayName||null,n!==null?n:jt(e.type)||"Memo";case ot:n=e._payload,e=e._init;try{return jt(e(n))}catch{}}return null}var Nt=Array.isArray,Q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pt=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bt={pending:!1,data:null,method:null,action:null},Ot=[],Xt=-1;function B(e){return{current:e}}function et(e){0>Xt||(e.current=Ot[Xt],Ot[Xt]=null,Xt--)}function dt(e,n){Xt++,Ot[Xt]=e.current,e.current=n}var wt=B(null),Kt=B(null),Bt=B(null),Ct=B(null);function Wt(e,n){switch(dt(Bt,n),dt(Kt,e),dt(wt,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?z5(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=z5(n),e=C5(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}et(wt),dt(wt,e)}function Zt(){et(wt),et(Kt),et(Bt)}function Ae(e){e.memoizedState!==null&&dt(Ct,e);var n=wt.current,u=C5(n,e.type);n!==u&&(dt(Kt,e),dt(wt,u))}function Ue(e){Kt.current===e&&(et(wt),et(Kt)),Ct.current===e&&(et(Ct),th._currentValue=bt)}var ae,pe;function Xe(e){if(ae===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);ae=n&&n[1]||"",pe=-1<u.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+ae+e+pe}var qe=!1;function Je(e,n){if(!e||qe)return"";qe=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(n){var vt=function(){throw Error()};if(Object.defineProperty(vt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(vt,[])}catch(ft){var st=ft}Reflect.construct(e,[],vt)}else{try{vt.call()}catch(ft){st=ft}e.call(vt.prototype)}}else{try{throw Error()}catch(ft){st=ft}(vt=e())&&typeof vt.catch=="function"&&vt.catch(function(){})}}catch(ft){if(ft&&st&&typeof ft.stack=="string")return[ft.stack,st.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),z=y[0],R=y[1];if(z&&R){var j=z.split(`
4
+ `),lt=R.split(`
5
+ `);for(v=c=0;c<j.length&&!j[c].includes("DetermineComponentFrameRoot");)c++;for(;v<lt.length&&!lt[v].includes("DetermineComponentFrameRoot");)v++;if(c===j.length||v===lt.length)for(c=j.length-1,v=lt.length-1;1<=c&&0<=v&&j[c]!==lt[v];)v--;for(;1<=c&&0<=v;c--,v--)if(j[c]!==lt[v]){if(c!==1||v!==1)do if(c--,v--,0>v||j[c]!==lt[v]){var mt=`
6
+ `+j[c].replace(" at new "," at ");return e.displayName&&mt.includes("<anonymous>")&&(mt=mt.replace("<anonymous>",e.displayName)),mt}while(1<=c&&0<=v);break}}}finally{qe=!1,Error.prepareStackTrace=u}return(u=e?e.displayName||e.name:"")?Xe(u):""}function ia(e,n){switch(e.tag){case 26:case 27:case 5:return Xe(e.type);case 16:return Xe("Lazy");case 13:return e.child!==n&&n!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return Je(e.type,!1);case 11:return Je(e.type.render,!1);case 1:return Je(e.type,!0);case 31:return Xe("Activity");default:return""}}function Ne(e){try{var n="",u=null;do n+=ia(e,u),u=e,e=e.return;while(e);return n}catch(c){return`
7
+ Error generating stack: `+c.message+`
8
+ `+c.stack}}var Fe=Object.prototype.hasOwnProperty,w0=s.unstable_scheduleCallback,D0=s.unstable_cancelCallback,p0=s.unstable_shouldYield,ga=s.unstable_requestPaint,Le=s.unstable_now,V0=s.unstable_getCurrentPriorityLevel,L0=s.unstable_ImmediatePriority,xa=s.unstable_UserBlockingPriority,pa=s.unstable_NormalPriority,Za=s.unstable_LowPriority,u0=s.unstable_IdlePriority,N0=s.log,Pl=s.unstable_setDisableYieldValue,gl=null,v0=null;function In(e){if(typeof N0=="function"&&Pl(e),v0&&typeof v0.setStrictMode=="function")try{v0.setStrictMode(gl,e)}catch{}}var Q0=Math.clz32?Math.clz32:hu,nn=Math.log,Nc=Math.LN2;function hu(e){return e>>>=0,e===0?32:31-(nn(e)/Nc|0)|0}var ns=256,Mi=262144,$l=4194304;function pl(e){var n=e&42;if(n!==0)return n;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 ti(e,n,u){var c=e.pendingLanes;if(c===0)return 0;var v=0,y=e.suspendedLanes,z=e.pingedLanes;e=e.warmLanes;var R=c&134217727;return R!==0?(c=R&~y,c!==0?v=pl(c):(z&=R,z!==0?v=pl(z):u||(u=R&~e,u!==0&&(v=pl(u))))):(R=c&~y,R!==0?v=pl(R):z!==0?v=pl(z):u||(u=c&~e,u!==0&&(v=pl(u)))),v===0?0:n!==0&&n!==v&&(n&y)===0&&(y=v&-v,u=n&-n,y>=u||y===32&&(u&4194048)!==0)?n:v}function Ai(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function uo(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 vl(){var e=$l;return $l<<=1,($l&62914560)===0&&($l=4194304),e}function yl(e){for(var n=[],u=0;31>u;u++)n.push(e);return n}function Pn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zi(e,n,u,c,v,y){var z=e.pendingLanes;e.pendingLanes=u,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=u,e.entangledLanes&=u,e.errorRecoveryDisabledLanes&=u,e.shellSuspendCounter=0;var R=e.entanglements,j=e.expirationTimes,lt=e.hiddenUpdates;for(u=z&~u;0<u;){var mt=31-Q0(u),vt=1<<mt;R[mt]=0,j[mt]=-1;var st=lt[mt];if(st!==null)for(lt[mt]=null,mt=0;mt<st.length;mt++){var ft=st[mt];ft!==null&&(ft.lane&=-536870913)}u&=~vt}c!==0&&ei(e,c,0),y!==0&&v===0&&e.tag!==0&&(e.suspendedLanes|=y&~(z&~n))}function ei(e,n,u){e.pendingLanes|=n,e.suspendedLanes&=~n;var c=31-Q0(n);e.entangledLanes|=n,e.entanglements[c]=e.entanglements[c]|1073741824|u&261930}function fr(e,n){var u=e.entangledLanes|=n;for(e=e.entanglements;u;){var c=31-Q0(u),v=1<<c;v&n|e[c]&n&&(e[c]|=n),u&=~v}}function fu(e,n){var u=n&-n;return u=(u&42)!==0?1:$n(u),(u&(e.suspendedLanes|n))!==0?0:u}function $n(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 tl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ci(){var e=pt.p;return e!==0?e:(e=window.event,e===void 0?32:I5(e.type))}function el(e,n){var u=pt.p;try{return pt.p=e,n()}finally{pt.p=u}}var al=Math.random().toString(36).slice(2),Ya="__reactFiber$"+al,o0="__reactProps$"+al,bl="__reactContainer$"+al,Cn="__reactEvents$"+al,Sl="__reactListeners$"+al,dr="__reactHandles$"+al,ls="__reactResources$"+al,y0="__reactMarker$"+al;function xl(e){delete e[Ya],delete e[o0],delete e[Cn],delete e[Sl],delete e[dr]}function Tl(e){var n=e[Ya];if(n)return n;for(var u=e.parentNode;u;){if(n=u[bl]||u[Ya]){if(u=n.alternate,n.child!==null||u!==null&&u.child!==null)for(e=H5(e);e!==null;){if(u=e[Ya])return u;e=H5(e)}return n}e=u,u=e.parentNode}return null}function El(e){if(e=e[Ya]||e[bl]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function ai(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function W(e){var n=e[ls];return n||(n=e[ls]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function K(e){e[y0]=!0}var Yt=new Set,ee={};function ne(e,n){ce(e,n),ce(e+"Capture",n)}function ce(e,n){for(ee[e]=n,e=0;e<n.length;e++)Yt.add(n[e])}var de=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]*$"),ta={},ve={};function Ta(e){return Fe.call(ve,e)?!0:Fe.call(ta,e)?!1:de.test(e)?ve[e]=!0:(ta[e]=!0,!1)}function Ea(e,n,u){if(Ta(n))if(u===null)e.removeAttribute(n);else{switch(typeof u){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var c=n.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+u)}}function ra(e,n,u){if(u===null)e.removeAttribute(n);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+u)}}function _a(e,n,u,c){if(c===null)e.removeAttribute(u);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(u);return}e.setAttributeNS(n,u,""+c)}}function Ja(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function va(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function nl(e,n,u){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var v=c.get,y=c.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return v.call(this)},set:function(z){u=""+z,y.call(this,z)}}),Object.defineProperty(e,n,{enumerable:c.enumerable}),{getValue:function(){return u},setValue:function(z){u=""+z},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function wn(e){if(!e._valueTracker){var n=va(e)?"checked":"value";e._valueTracker=nl(e,n,""+e[n])}}function Ma(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var u=n.getValue(),c="";return e&&(c=va(e)?e.checked?"true":"false":e.value),e=c,e!==u?(n.setValue(e),!0):!1}function sa(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 is=/[\n"\\]/g;function b0(e){return e.replace(is,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function wi(e,n,u,c,v,y,z,R){e.name="",z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?e.type=z:e.removeAttribute("type"),n!=null?z==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Ja(n)):e.value!==""+Ja(n)&&(e.value=""+Ja(n)):z!=="submit"&&z!=="reset"||e.removeAttribute("value"),n!=null?ll(e,z,Ja(n)):u!=null?ll(e,z,Ja(u)):c!=null&&e.removeAttribute("value"),v==null&&y!=null&&(e.defaultChecked=!!y),v!=null&&(e.checked=v&&typeof v!="function"&&typeof v!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?e.name=""+Ja(R):e.removeAttribute("name")}function rs(e,n,u,c,v,y,z,R){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.type=y),n!=null||u!=null){if(!(y!=="submit"&&y!=="reset"||n!=null)){wn(e);return}u=u!=null?""+Ja(u):"",n=n!=null?""+Ja(n):u,R||n===e.value||(e.value=n),e.defaultValue=n}c=c??v,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=R?e.checked:!!c,e.defaultChecked=!!c,z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(e.name=z),wn(e)}function ll(e,n,u){n==="number"&&sa(e.ownerDocument)===e||e.defaultValue===""+u||(e.defaultValue=""+u)}function ni(e,n,u,c){if(e=e.options,n){n={};for(var v=0;v<u.length;v++)n["$"+u[v]]=!0;for(u=0;u<e.length;u++)v=n.hasOwnProperty("$"+e[u].value),e[u].selected!==v&&(e[u].selected=v),v&&c&&(e[u].defaultSelected=!0)}else{for(u=""+Ja(u),n=null,v=0;v<e.length;v++){if(e[v].value===u){e[v].selected=!0,c&&(e[v].defaultSelected=!0);return}n!==null||e[v].disabled||(n=e[v])}n!==null&&(n.selected=!0)}}function oo(e,n,u){if(n!=null&&(n=""+Ja(n),n!==e.value&&(e.value=n),u==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=u!=null?""+Ja(u):""}function co(e,n,u,c){if(n==null){if(c!=null){if(u!=null)throw Error(i(92));if(Nt(c)){if(1<c.length)throw Error(i(93));c=c[0]}u=c}u==null&&(u=""),n=u}u=Ja(n),e.defaultValue=u,c=e.textContent,c===u&&c!==""&&c!==null&&(e.value=c),wn(e)}function mr(e,n){if(n){var u=e.firstChild;if(u&&u===e.lastChild&&u.nodeType===3){u.nodeValue=n;return}}e.textContent=n}var Dh=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 Rc(e,n,u){var c=n.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?c?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":c?e.setProperty(n,u):typeof u!="number"||u===0||Dh.has(n)?n==="float"?e.cssFloat=u:e[n]=(""+u).trim():e[n]=u+"px"}function Oc(e,n,u){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,u!=null){for(var c in u)!u.hasOwnProperty(c)||n!=null&&n.hasOwnProperty(c)||(c.indexOf("--")===0?e.setProperty(c,""):c==="float"?e.cssFloat="":e[c]="");for(var v in n)c=n[v],n.hasOwnProperty(v)&&u[v]!==c&&Rc(e,v,c)}else for(var y in n)n.hasOwnProperty(y)&&Rc(e,y,n[y])}function ho(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 Nh=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"]]),Bc=/^[\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 du(e){return Bc.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function li(){}var fo=null;function mo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gr=null,Di=null;function Hc(e){var n=El(e);if(n&&(e=n.stateNode)){var u=e[o0]||null;t:switch(e=n.stateNode,n.type){case"input":if(wi(e,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),n=u.name,u.type==="radio"&&n!=null){for(u=e;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+b0(""+n)+'"][type="radio"]'),n=0;n<u.length;n++){var c=u[n];if(c!==e&&c.form===e.form){var v=c[o0]||null;if(!v)throw Error(i(90));wi(c,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(n=0;n<u.length;n++)c=u[n],c.form===e.form&&Ma(c)}break t;case"textarea":oo(e,u.value,u.defaultValue);break t;case"select":n=u.value,n!=null&&ni(e,!!u.multiple,n,!1)}}}var go=!1;function Gc(e,n,u){if(go)return e(n,u);go=!0;try{var c=e(n);return c}finally{if(go=!1,(gr!==null||Di!==null)&&(ol(),gr&&(n=gr,e=Di,Di=gr=null,Hc(n),e)))for(n=0;n<e.length;n++)Hc(e[n])}}function ss(e,n){var u=e.stateNode;if(u===null)return null;var c=u[o0]||null;if(c===null)return null;u=c[n];t:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break t;default:e=!1}if(e)return null;if(u&&typeof u!="function")throw Error(i(231,n,typeof u));return u}var _l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uc=!1;if(_l)try{var us={};Object.defineProperty(us,"passive",{get:function(){Uc=!0}}),window.addEventListener("test",us,us),window.removeEventListener("test",us,us)}catch{Uc=!1}var gn=null,po=null,pr=null;function mu(){if(pr)return pr;var e,n=po,u=n.length,c,v="value"in gn?gn.value:gn.textContent,y=v.length;for(e=0;e<u&&n[e]===v[e];e++);var z=u-e;for(c=1;c<=z&&n[u-c]===v[y-c];c++);return pr=v.slice(e,1<c?1-c:void 0)}function gu(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function os(){return!0}function Rh(){return!1}function K0(e){function n(u,c,v,y,z){this._reactName=u,this._targetInst=v,this.type=c,this.nativeEvent=y,this.target=z,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(u=e[R],this[R]=u?u(y):y[R]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?os:Rh,this.isPropagationStopped=Rh,this}return _(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=os)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=os)},persist:function(){},isPersistent:os}),n}var Ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pu=K0(Ni),cs=_({},Ni,{view:0,detail:0}),Oh=K0(cs),vu,vo,hs,fs=_({},cs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xo,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!==hs&&(hs&&e.type==="mousemove"?(vu=e.screenX-hs.screenX,vo=e.screenY-hs.screenY):vo=vu=0,hs=e),vu)},movementY:function(e){return"movementY"in e?e.movementY:vo}}),qc=K0(fs),Bh=_({},fs,{dataTransfer:0}),Hh=K0(Bh),Lc=_({},cs,{relatedTarget:0}),yo=K0(Lc),Gh=_({},Ni,{animationName:0,elapsedTime:0,pseudoElement:0}),u4=K0(Gh),o4=_({},Ni,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uh=K0(o4),yu=_({},Ni,{data:0}),bo=K0(yu),So={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qh={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"},Lh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kc(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Lh[e])?!!n[e]:!1}function xo(){return kc}var kh=_({},cs,{key:function(e){if(e.key){var n=So[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=gu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xo,charCode:function(e){return e.type==="keypress"?gu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vr=K0(kh),To=_({},fs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yc=K0(To),Xc=_({},cs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xo}),Yh=K0(Xc),Xh=_({},Ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),c4=K0(Xh),R0=_({},fs,{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}),jh=K0(R0),Vh=_({},Ni,{newState:0,oldState:0}),Qh=K0(Vh),Kh=[9,13,27,32],yr=_l&&"CompositionEvent"in window,ds=null;_l&&"documentMode"in document&&(ds=document.documentMode);var Eo=_l&&"TextEvent"in window&&!ds,jc=_l&&(!yr||ds&&8<ds&&11>=ds),Zh=" ",bu=!1;function _o(e,n){switch(e){case"keyup":return Kh.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var br=!1;function Jh(e,n){switch(e){case"compositionend":return Vc(n);case"keypress":return n.which!==32?null:(bu=!0,Zh);case"textInput":return e=n.data,e===Zh&&bu?null:e;default:return null}}function Qc(e,n){if(br)return e==="compositionend"||!yr&&_o(e,n)?(e=mu(),pr=po=gn=null,br=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return jc&&n.locale!=="ko"?null:n.data;default:return null}}var Kc={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 Zc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Kc[e.type]:n==="textarea"}function Mo(e,n,u,c){gr?Di?Di.push(c):Di=[c]:gr=c,n=t2(n,"onChange"),0<n.length&&(u=new pu("onChange","change",null,u,c),e.push({event:u,listeners:n}))}var Ri=null,Sr=null;function Fh(e){x5(e,0)}function ms(e){var n=ai(e);if(Ma(n))return e}function Jc(e,n){if(e==="change")return n}var Ml=!1;if(_l){var Su;if(_l){var Fc="oninput"in document;if(!Fc){var Wc=document.createElement("div");Wc.setAttribute("oninput","return;"),Fc=typeof Wc.oninput=="function"}Su=Fc}else Su=!1;Ml=Su&&(!document.documentMode||9<document.documentMode)}function Dn(){Ri&&(Ri.detachEvent("onpropertychange",xu),Sr=Ri=null)}function xu(e){if(e.propertyName==="value"&&ms(Sr)){var n=[];Mo(n,Sr,e,mo(e)),Gc(Fh,n)}}function Wh(e,n,u){e==="focusin"?(Dn(),Ri=n,Sr=u,Ri.attachEvent("onpropertychange",xu)):e==="focusout"&&Dn()}function Ic(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ms(Sr)}function Ih(e,n){if(e==="click")return ms(n)}function Ph(e,n){if(e==="input"||e==="change")return ms(n)}function Pc(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Z0=typeof Object.is=="function"?Object.is:Pc;function gs(e,n){if(Z0(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var u=Object.keys(e),c=Object.keys(n);if(u.length!==c.length)return!1;for(c=0;c<u.length;c++){var v=u[c];if(!Fe.call(n,v)||!Z0(e[v],n[v]))return!1}return!0}function Tu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ps(e,n){var u=Tu(e);e=0;for(var c;u;){if(u.nodeType===3){if(c=e+u.textContent.length,e<=n&&c>=n)return{node:u,offset:n-e};e=c}t:{for(;u;){if(u.nextSibling){u=u.nextSibling;break t}u=u.parentNode}u=void 0}u=Tu(u)}}function ca(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ca(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function $h(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=sa(e.document);n instanceof e.HTMLIFrameElement;){try{var u=typeof n.contentWindow.location.href=="string"}catch{u=!1}if(u)e=n.contentWindow;else break;n=sa(e.document)}return n}function $c(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var tf=_l&&"documentMode"in document&&11>=document.documentMode,Al=null,zl=null,vs=null,Ao=!1;function ys(e,n,u){var c=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Ao||Al==null||Al!==sa(c)||(c=Al,"selectionStart"in c&&$c(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),vs&&gs(vs,c)||(vs=c,c=t2(zl,"onSelect"),0<c.length&&(n=new pu("onSelect","select",null,n,u),e.push({event:n,listeners:c}),n.target=Al)))}function k0(e,n){var u={};return u[e.toLowerCase()]=n.toLowerCase(),u["Webkit"+e]="webkit"+n,u["Moz"+e]="moz"+n,u}var xr={animationend:k0("Animation","AnimationEnd"),animationiteration:k0("Animation","AnimationIteration"),animationstart:k0("Animation","AnimationStart"),transitionrun:k0("Transition","TransitionRun"),transitionstart:k0("Transition","TransitionStart"),transitioncancel:k0("Transition","TransitionCancel"),transitionend:k0("Transition","TransitionEnd")},Eu={},t1={};_l&&(t1=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);function ii(e){if(Eu[e])return Eu[e];if(!xr[e])return e;var n=xr[e],u;for(u in n)if(n.hasOwnProperty(u)&&u in t1)return Eu[e]=n[u];return e}var zo=ii("animationend"),_u=ii("animationiteration"),e1=ii("animationstart"),ef=ii("transitionrun"),h4=ii("transitionstart"),af=ii("transitioncancel"),a1=ii("transitionend"),Nn=new Map,Mu="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(" ");Mu.push("scrollEnd");function Rn(e,n){Nn.set(e,n),ne(n,[e])}var Au=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},On=[],ri=0,S0=0;function zu(){for(var e=ri,n=S0=ri=0;n<e;){var u=On[n];On[n++]=null;var c=On[n];On[n++]=null;var v=On[n];On[n++]=null;var y=On[n];if(On[n++]=null,c!==null&&v!==null){var z=c.pending;z===null?v.next=v:(v.next=z.next,z.next=v),c.pending=v}y!==0&&Oi(u,v,y)}}function x0(e,n,u,c){On[ri++]=e,On[ri++]=n,On[ri++]=u,On[ri++]=c,S0|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function Co(e,n,u,c){return x0(e,n,u,c),Bn(e)}function J0(e,n){return x0(e,null,null,n),Bn(e)}function Oi(e,n,u){e.lanes|=u;var c=e.alternate;c!==null&&(c.lanes|=u);for(var v=!1,y=e.return;y!==null;)y.childLanes|=u,c=y.alternate,c!==null&&(c.childLanes|=u),y.tag===22&&(e=y.stateNode,e===null||e._visibility&1||(v=!0)),e=y,y=y.return;return e.tag===3?(y=e.stateNode,v&&n!==null&&(v=31-Q0(u),e=y.hiddenUpdates,c=e[v],c===null?e[v]=[n]:c.push(n),n.lane=u|536870912),y):null}function Bn(e){if(50<Pi)throw Pi=0,kr=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Bi={};function n1(e,n,u,c){this.tag=e,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oa(e,n,u,c){return new n1(e,n,u,c)}function wo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ln(e,n){var u=e.alternate;return u===null?(u=Oa(e.tag,n,e.key,e.mode),u.elementType=e.elementType,u.type=e.type,u.stateNode=e.stateNode,u.alternate=e,e.alternate=u):(u.pendingProps=n,u.type=e.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=e.flags&65011712,u.childLanes=e.childLanes,u.lanes=e.lanes,u.child=e.child,u.memoizedProps=e.memoizedProps,u.memoizedState=e.memoizedState,u.updateQueue=e.updateQueue,n=e.dependencies,u.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},u.sibling=e.sibling,u.index=e.index,u.ref=e.ref,u.refCleanup=e.refCleanup,u}function bs(e,n){e.flags&=65011714;var u=e.alternate;return u===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=u.childLanes,e.lanes=u.lanes,e.child=u.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=u.memoizedProps,e.memoizedState=u.memoizedState,e.updateQueue=u.updateQueue,e.type=u.type,n=u.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Cl(e,n,u,c,v,y){var z=0;if(c=e,typeof e=="function")wo(e)&&(z=1);else if(typeof e=="string")z=D7(e,u,wt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case Et:return e=Oa(31,u,n,v),e.elementType=Et,e.lanes=y,e;case H:return Hi(u.children,v,y,n);case U:z=8,v|=24;break;case Y:return e=Oa(12,u,n,v|2),e.elementType=Y,e.lanes=y,e;case P:return e=Oa(13,u,n,v),e.elementType=P,e.lanes=y,e;case ut:return e=Oa(19,u,n,v),e.elementType=ut,e.lanes=y,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:z=10;break t;case G:z=9;break t;case q:z=11;break t;case rt:z=14;break t;case ot:z=16,c=null;break t}z=29,u=Error(i(130,e===null?"null":typeof e,"")),c=null}return n=Oa(z,u,n,v),n.elementType=e,n.type=c,n.lanes=y,n}function Hi(e,n,u,c){return e=Oa(7,e,c,n),e.lanes=u,e}function Do(e,n,u){return e=Oa(6,e,null,n),e.lanes=u,e}function Ss(e){var n=Oa(18,null,null,0);return n.stateNode=e,n}function No(e,n,u){return n=Oa(4,e.children!==null?e.children:[],e.key,n),n.lanes=u,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Cu=new WeakMap;function pn(e,n){if(typeof e=="object"&&e!==null){var u=Cu.get(e);return u!==void 0?u:(n={value:e,source:n,stack:Ne(n)},Cu.set(e,n),n)}return{value:e,source:n,stack:Ne(n)}}var Gi=[],Ui=0,xs=null,Ts=0,rn=[],Aa=0,si=null,Ba=1,il="";function wl(e,n){Gi[Ui++]=Ts,Gi[Ui++]=xs,xs=e,Ts=n}function nf(e,n,u){rn[Aa++]=Ba,rn[Aa++]=il,rn[Aa++]=si,si=e;var c=Ba;e=il;var v=32-Q0(c)-1;c&=~(1<<v),u+=1;var y=32-Q0(n)+v;if(30<y){var z=v-v%5;y=(c&(1<<z)-1).toString(32),c>>=z,v-=z,Ba=1<<32-Q0(n)+v|u<<v|c,il=y+e}else Ba=1<<y|u<<v|c,il=e}function Dl(e){e.return!==null&&(wl(e,1),nf(e,1,0))}function Ro(e){for(;e===xs;)xs=Gi[--Ui],Gi[Ui]=null,Ts=Gi[--Ui],Gi[Ui]=null;for(;e===si;)si=rn[--Aa],rn[Aa]=null,il=rn[--Aa],rn[Aa]=null,Ba=rn[--Aa],rn[Aa]=null}function Oo(e,n){rn[Aa++]=Ba,rn[Aa++]=il,rn[Aa++]=si,Ba=n.id,il=n.overflow,si=e}var Xa=null,ha=null,He=!1,ui=null,vn=!1,Es=Error(i(519));function Nl(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rl(pn(n,e)),Es}function lf(e){var n=e.stateNode,u=e.type,c=e.memoizedProps;switch(n[Ya]=e,n[o0]=c,u){case"dialog":Ye("cancel",n),Ye("close",n);break;case"iframe":case"object":case"embed":Ye("load",n);break;case"video":case"audio":for(u=0;u<Zn.length;u++)Ye(Zn[u],n);break;case"source":Ye("error",n);break;case"img":case"image":case"link":Ye("error",n),Ye("load",n);break;case"details":Ye("toggle",n);break;case"input":Ye("invalid",n),rs(n,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Ye("invalid",n);break;case"textarea":Ye("invalid",n),co(n,c.value,c.defaultValue,c.children)}u=c.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||n.textContent===""+u||c.suppressHydrationWarning===!0||M5(n.textContent,u)?(c.popover!=null&&(Ye("beforetoggle",n),Ye("toggle",n)),c.onScroll!=null&&Ye("scroll",n),c.onScrollEnd!=null&&Ye("scrollend",n),c.onClick!=null&&(n.onclick=li),n=!0):n=!1,n||Nl(e,!0)}function rf(e){for(Xa=e.return;Xa;)switch(Xa.tag){case 5:case 31:case 13:vn=!1;return;case 27:case 3:vn=!0;return;default:Xa=Xa.return}}function _s(e){if(e!==Xa)return!1;if(!He)return rf(e),He=!0,!1;var n=e.tag,u;if((u=n!==3&&n!==27)&&((u=n===5)&&(u=e.type,u=!(u!=="form"&&u!=="button")||z4(e.type,e.memoizedProps)),u=!u),u&&ha&&Nl(e),rf(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));ha=B5(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));ha=B5(e)}else n===27?(n=ha,Vs(e.type)?(e=R4,R4=null,ha=e):ha=n):ha=Xa?Kl(e.stateNode.nextSibling):null;return!0}function qi(){ha=Xa=null,He=!1}function Bo(){var e=ui;return e!==null&&(Va===null?Va=e:Va.push.apply(Va,e),ui=null),e}function Rl(e){ui===null?ui=[e]:ui.push(e)}var Ms=B(null),Li=null,Ol=null;function oi(e,n,u){dt(Ms,n._currentValue),n._currentValue=u}function Bl(e){e._currentValue=Ms.current,et(Ms)}function Ho(e,n,u){for(;e!==null;){var c=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,c!==null&&(c.childLanes|=n)):c!==null&&(c.childLanes&n)!==n&&(c.childLanes|=n),e===u)break;e=e.return}}function Go(e,n,u,c){var v=e.child;for(v!==null&&(v.return=e);v!==null;){var y=v.dependencies;if(y!==null){var z=v.child;y=y.firstContext;t:for(;y!==null;){var R=y;y=v;for(var j=0;j<n.length;j++)if(R.context===n[j]){y.lanes|=u,R=y.alternate,R!==null&&(R.lanes|=u),Ho(y.return,u,e),c||(z=null);break t}y=R.next}}else if(v.tag===18){if(z=v.return,z===null)throw Error(i(341));z.lanes|=u,y=z.alternate,y!==null&&(y.lanes|=u),Ho(z,u,e),z=null}else z=v.child;if(z!==null)z.return=v;else for(z=v;z!==null;){if(z===e){z=null;break}if(v=z.sibling,v!==null){v.return=z.return,z=v;break}z=z.return}v=z}}function Hl(e,n,u,c){e=null;for(var v=n,y=!1;v!==null;){if(!y){if((v.flags&524288)!==0)y=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var z=v.alternate;if(z===null)throw Error(i(387));if(z=z.memoizedProps,z!==null){var R=v.type;Z0(v.pendingProps.value,z.value)||(e!==null?e.push(R):e=[R])}}else if(v===Ct.current){if(z=v.alternate,z===null)throw Error(i(387));z.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(e!==null?e.push(th):e=[th])}v=v.return}e!==null&&Go(n,e,u,c),n.flags|=262144}function wu(e){for(e=e.firstContext;e!==null;){if(!Z0(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ki(e){Li=e,Ol=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function fe(e){return sf(Li,e)}function As(e,n){return Li===null&&ki(e),sf(e,n)}function sf(e,n){var u=n._currentValue;if(n={context:n,memoizedValue:u,next:null},Ol===null){if(e===null)throw Error(i(308));Ol=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Ol=Ol.next=n;return u}var uf=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(u,c){e.push(c)}};this.abort=function(){n.aborted=!0,e.forEach(function(u){return u()})}},f4=s.unstable_scheduleCallback,d4=s.unstable_NormalPriority,n0={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function l1(){return{controller:new uf,data:new Map,refCount:0}}function Tr(e){e.refCount--,e.refCount===0&&f4(d4,function(){e.controller.abort()})}var yn=null,Uo=0,ci=0,Hn=null;function i1(e,n){if(yn===null){var u=yn=[];Uo=0,ci=ct(),Hn={status:"pending",value:void 0,then:function(c){u.push(c)}}}return Uo++,n.then(r1,r1),n}function r1(){if(--Uo===0&&yn!==null){Hn!==null&&(Hn.status="fulfilled");var e=yn;yn=null,ci=0,Hn=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function s1(e,n){var u=[],c={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return e.then(function(){c.status="fulfilled",c.value=n;for(var v=0;v<u.length;v++)(0,u[v])(n)},function(v){for(c.status="rejected",c.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),c}var of=Q.S;Q.S=function(e,n){J1=Le(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&i1(e,n),of!==null&&of(e,n)};var Yi=B(null);function qo(){var e=Yi.current;return e!==null?e:me.pooledCache}function Du(e,n){n===null?dt(Yi,Yi.current):dt(Yi,n.pool)}function u1(){var e=qo();return e===null?null:{parent:n0._currentValue,pool:e}}var Er=Error(i(460)),Nu=Error(i(474)),Ee=Error(i(542)),Lo={then:function(){}};function sn(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ko(e,n,u){switch(u=e[u],u===void 0?e.push(n):u!==n&&(n.then(li,li),n=u),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ar(e),e;default:if(typeof n.status=="string")n.then(li,li);else{if(e=me,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(c){if(n.status==="pending"){var v=n;v.status="fulfilled",v.value=c}},function(c){if(n.status==="pending"){var v=n;v.status="rejected",v.reason=c}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ar(e),e}throw Gl=n,Er}}function _r(e){try{var n=e._init;return n(e._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Gl=u,Er):u}}var Gl=null;function Mr(){if(Gl===null)throw Error(i(459));var e=Gl;return Gl=null,e}function Ar(e){if(e===Er||e===Ee)throw Error(i(483))}var zr=null,Cr=0;function Ru(e){var n=Cr;return Cr+=1,zr===null&&(zr=[]),ko(zr,e,n)}function Gn(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function zs(e,n){throw n.$$typeof===A?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Yo(e){function n(I,J){if(e){var at=I.deletions;at===null?(I.deletions=[J],I.flags|=16):at.push(J)}}function u(I,J){if(!e)return null;for(;J!==null;)n(I,J),J=J.sibling;return null}function c(I){for(var J=new Map;I!==null;)I.key!==null?J.set(I.key,I):J.set(I.index,I),I=I.sibling;return J}function v(I,J){return I=ln(I,J),I.index=0,I.sibling=null,I}function y(I,J,at){return I.index=at,e?(at=I.alternate,at!==null?(at=at.index,at<J?(I.flags|=67108866,J):at):(I.flags|=67108866,J)):(I.flags|=1048576,J)}function z(I){return e&&I.alternate===null&&(I.flags|=67108866),I}function R(I,J,at,gt){return J===null||J.tag!==6?(J=Do(at,I.mode,gt),J.return=I,J):(J=v(J,at),J.return=I,J)}function j(I,J,at,gt){var ie=at.type;return ie===H?mt(I,J,at.props.children,gt,at.key):J!==null&&(J.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ot&&_r(ie)===J.type)?(J=v(J,at.props),Gn(J,at),J.return=I,J):(J=Cl(at.type,at.key,at.props,null,I.mode,gt),Gn(J,at),J.return=I,J)}function lt(I,J,at,gt){return J===null||J.tag!==4||J.stateNode.containerInfo!==at.containerInfo||J.stateNode.implementation!==at.implementation?(J=No(at,I.mode,gt),J.return=I,J):(J=v(J,at.children||[]),J.return=I,J)}function mt(I,J,at,gt,ie){return J===null||J.tag!==7?(J=Hi(at,I.mode,gt,ie),J.return=I,J):(J=v(J,at),J.return=I,J)}function vt(I,J,at){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=Do(""+J,I.mode,at),J.return=I,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case D:return at=Cl(J.type,J.key,J.props,null,I.mode,at),Gn(at,J),at.return=I,at;case C:return J=No(J,I.mode,at),J.return=I,J;case ot:return J=_r(J),vt(I,J,at)}if(Nt(J)||St(J))return J=Hi(J,I.mode,at,null),J.return=I,J;if(typeof J.then=="function")return vt(I,Ru(J),at);if(J.$$typeof===Z)return vt(I,As(I,J),at);zs(I,J)}return null}function st(I,J,at,gt){var ie=J!==null?J.key:null;if(typeof at=="string"&&at!==""||typeof at=="number"||typeof at=="bigint")return ie!==null?null:R(I,J,""+at,gt);if(typeof at=="object"&&at!==null){switch(at.$$typeof){case D:return at.key===ie?j(I,J,at,gt):null;case C:return at.key===ie?lt(I,J,at,gt):null;case ot:return at=_r(at),st(I,J,at,gt)}if(Nt(at)||St(at))return ie!==null?null:mt(I,J,at,gt,null);if(typeof at.then=="function")return st(I,J,Ru(at),gt);if(at.$$typeof===Z)return st(I,J,As(I,at),gt);zs(I,at)}return null}function ft(I,J,at,gt,ie){if(typeof gt=="string"&&gt!==""||typeof gt=="number"||typeof gt=="bigint")return I=I.get(at)||null,R(J,I,""+gt,ie);if(typeof gt=="object"&&gt!==null){switch(gt.$$typeof){case D:return I=I.get(gt.key===null?at:gt.key)||null,j(J,I,gt,ie);case C:return I=I.get(gt.key===null?at:gt.key)||null,lt(J,I,gt,ie);case ot:return gt=_r(gt),ft(I,J,at,gt,ie)}if(Nt(gt)||St(gt))return I=I.get(at)||null,mt(J,I,gt,ie,null);if(typeof gt.then=="function")return ft(I,J,at,Ru(gt),ie);if(gt.$$typeof===Z)return ft(I,J,at,As(J,gt),ie);zs(J,gt)}return null}function It(I,J,at,gt){for(var ie=null,Ie=null,Pt=J,ze=J=0,Ve=null;Pt!==null&&ze<at.length;ze++){Pt.index>ze?(Ve=Pt,Pt=null):Ve=Pt.sibling;var Pe=st(I,Pt,at[ze],gt);if(Pe===null){Pt===null&&(Pt=Ve);break}e&&Pt&&Pe.alternate===null&&n(I,Pt),J=y(Pe,J,ze),Ie===null?ie=Pe:Ie.sibling=Pe,Ie=Pe,Pt=Ve}if(ze===at.length)return u(I,Pt),He&&wl(I,ze),ie;if(Pt===null){for(;ze<at.length;ze++)Pt=vt(I,at[ze],gt),Pt!==null&&(J=y(Pt,J,ze),Ie===null?ie=Pt:Ie.sibling=Pt,Ie=Pt);return He&&wl(I,ze),ie}for(Pt=c(Pt);ze<at.length;ze++)Ve=ft(Pt,I,ze,at[ze],gt),Ve!==null&&(e&&Ve.alternate!==null&&Pt.delete(Ve.key===null?ze:Ve.key),J=y(Ve,J,ze),Ie===null?ie=Ve:Ie.sibling=Ve,Ie=Ve);return e&&Pt.forEach(function(Fs){return n(I,Fs)}),He&&wl(I,ze),ie}function he(I,J,at,gt){if(at==null)throw Error(i(151));for(var ie=null,Ie=null,Pt=J,ze=J=0,Ve=null,Pe=at.next();Pt!==null&&!Pe.done;ze++,Pe=at.next()){Pt.index>ze?(Ve=Pt,Pt=null):Ve=Pt.sibling;var Fs=st(I,Pt,Pe.value,gt);if(Fs===null){Pt===null&&(Pt=Ve);break}e&&Pt&&Fs.alternate===null&&n(I,Pt),J=y(Fs,J,ze),Ie===null?ie=Fs:Ie.sibling=Fs,Ie=Fs,Pt=Ve}if(Pe.done)return u(I,Pt),He&&wl(I,ze),ie;if(Pt===null){for(;!Pe.done;ze++,Pe=at.next())Pe=vt(I,Pe.value,gt),Pe!==null&&(J=y(Pe,J,ze),Ie===null?ie=Pe:Ie.sibling=Pe,Ie=Pe);return He&&wl(I,ze),ie}for(Pt=c(Pt);!Pe.done;ze++,Pe=at.next())Pe=ft(Pt,I,ze,Pe.value,gt),Pe!==null&&(e&&Pe.alternate!==null&&Pt.delete(Pe.key===null?ze:Pe.key),J=y(Pe,J,ze),Ie===null?ie=Pe:Ie.sibling=Pe,Ie=Pe);return e&&Pt.forEach(function(Y7){return n(I,Y7)}),He&&wl(I,ze),ie}function ma(I,J,at,gt){if(typeof at=="object"&&at!==null&&at.type===H&&at.key===null&&(at=at.props.children),typeof at=="object"&&at!==null){switch(at.$$typeof){case D:t:{for(var ie=at.key;J!==null;){if(J.key===ie){if(ie=at.type,ie===H){if(J.tag===7){u(I,J.sibling),gt=v(J,at.props.children),gt.return=I,I=gt;break t}}else if(J.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ot&&_r(ie)===J.type){u(I,J.sibling),gt=v(J,at.props),Gn(gt,at),gt.return=I,I=gt;break t}u(I,J);break}else n(I,J);J=J.sibling}at.type===H?(gt=Hi(at.props.children,I.mode,gt,at.key),gt.return=I,I=gt):(gt=Cl(at.type,at.key,at.props,null,I.mode,gt),Gn(gt,at),gt.return=I,I=gt)}return z(I);case C:t:{for(ie=at.key;J!==null;){if(J.key===ie)if(J.tag===4&&J.stateNode.containerInfo===at.containerInfo&&J.stateNode.implementation===at.implementation){u(I,J.sibling),gt=v(J,at.children||[]),gt.return=I,I=gt;break t}else{u(I,J);break}else n(I,J);J=J.sibling}gt=No(at,I.mode,gt),gt.return=I,I=gt}return z(I);case ot:return at=_r(at),ma(I,J,at,gt)}if(Nt(at))return It(I,J,at,gt);if(St(at)){if(ie=St(at),typeof ie!="function")throw Error(i(150));return at=ie.call(at),he(I,J,at,gt)}if(typeof at.then=="function")return ma(I,J,Ru(at),gt);if(at.$$typeof===Z)return ma(I,J,As(I,at),gt);zs(I,at)}return typeof at=="string"&&at!==""||typeof at=="number"||typeof at=="bigint"?(at=""+at,J!==null&&J.tag===6?(u(I,J.sibling),gt=v(J,at),gt.return=I,I=gt):(u(I,J),gt=Do(at,I.mode,gt),gt.return=I,I=gt),z(I)):u(I,J)}return function(I,J,at,gt){try{Cr=0;var ie=ma(I,J,at,gt);return zr=null,ie}catch(Pt){if(Pt===Er||Pt===Ee)throw Pt;var Ie=Oa(29,Pt,null,I.mode);return Ie.lanes=gt,Ie.return=I,Ie}finally{}}}var hi=Yo(!0),Xo=Yo(!1),F0=!1;function Ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function o1(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xi(e,n,u){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,($t&2)!==0){var v=c.pending;return v===null?n.next=n:(n.next=v.next,v.next=n),c.pending=n,n=Bn(e),Oi(e,null,u),n}return x0(e,c,n,u),Bn(e)}function ji(e,n,u){if(n=n.updateQueue,n!==null&&(n=n.shared,(u&4194048)!==0)){var c=n.lanes;c&=e.pendingLanes,u|=c,n.lanes=u,fr(e,u)}}function le(e,n){var u=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,u===c)){var v=null,y=null;if(u=u.firstBaseUpdate,u!==null){do{var z={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};y===null?v=y=z:y=y.next=z,u=u.next}while(u!==null);y===null?v=y=n:y=y.next=n}else v=y=n;u={baseState:c.baseState,firstBaseUpdate:v,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},e.updateQueue=u;return}e=u.lastBaseUpdate,e===null?u.firstBaseUpdate=n:e.next=n,u.lastBaseUpdate=n}var c1=!1;function Bu(){if(c1){var e=Hn;if(e!==null)throw e}}function Cs(e,n,u,c){c1=!1;var v=e.updateQueue;F0=!1;var y=v.firstBaseUpdate,z=v.lastBaseUpdate,R=v.shared.pending;if(R!==null){v.shared.pending=null;var j=R,lt=j.next;j.next=null,z===null?y=lt:z.next=lt,z=j;var mt=e.alternate;mt!==null&&(mt=mt.updateQueue,R=mt.lastBaseUpdate,R!==z&&(R===null?mt.firstBaseUpdate=lt:R.next=lt,mt.lastBaseUpdate=j))}if(y!==null){var vt=v.baseState;z=0,mt=lt=j=null,R=y;do{var st=R.lane&-536870913,ft=st!==R.lane;if(ft?(Te&st)===st:(c&st)===st){st!==0&&st===ci&&(c1=!0),mt!==null&&(mt=mt.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});t:{var It=e,he=R;st=n;var ma=u;switch(he.tag){case 1:if(It=he.payload,typeof It=="function"){vt=It.call(ma,vt,st);break t}vt=It;break t;case 3:It.flags=It.flags&-65537|128;case 0:if(It=he.payload,st=typeof It=="function"?It.call(ma,vt,st):It,st==null)break t;vt=_({},vt,st);break t;case 2:F0=!0}}st=R.callback,st!==null&&(e.flags|=64,ft&&(e.flags|=8192),ft=v.callbacks,ft===null?v.callbacks=[st]:ft.push(st))}else ft={lane:st,tag:R.tag,payload:R.payload,callback:R.callback,next:null},mt===null?(lt=mt=ft,j=vt):mt=mt.next=ft,z|=st;if(R=R.next,R===null){if(R=v.shared.pending,R===null)break;ft=R,R=ft.next,ft.next=null,v.lastBaseUpdate=ft,v.shared.pending=null}}while(!0);mt===null&&(j=vt),v.baseState=j,v.firstBaseUpdate=lt,v.lastBaseUpdate=mt,y===null&&(v.shared.lanes=0),jl|=z,e.lanes=z,e.memoizedState=vt}}function ws(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function cf(e,n){var u=e.callbacks;if(u!==null)for(e.callbacks=null,e=0;e<u.length;e++)ws(u[e],n)}var Ds=B(null),jo=B(0);function hf(e,n){e=Tn,dt(jo,e),dt(Ds,n),Tn=e|n.baseLanes}function h1(){dt(jo,Tn),dt(Ds,Ds.current)}function Hu(){Tn=jo.current,et(Ds),et(jo)}var un=B(null),W0=null;function di(e){var n=e.alternate;dt(Ge,Ge.current&1),dt(un,e),W0===null&&(n===null||Ds.current!==null||n.memoizedState!==null)&&(W0=e)}function f1(e){dt(Ge,Ge.current),dt(un,e),W0===null&&(W0=e)}function ff(e){e.tag===22?(dt(Ge,Ge.current),dt(un,e),W0===null&&(W0=e)):on()}function on(){dt(Ge,Ge.current),dt(un,un.current)}function Fa(e){et(un),W0===e&&(W0=null),et(Ge)}var Ge=B(0);function bn(e){for(var n=e;n!==null;){if(n.tag===13){var u=n.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||D4(u)||N4(u)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var za=0,be=null,ua=null,Re=null,Un=!1,Ns=!1,wr=!1,Vo=0,Gu=0,Rs=null,d1=0;function Ha(){throw Error(i(321))}function m1(e,n){if(n===null)return!1;for(var u=0;u<n.length&&u<e.length;u++)if(!Z0(e[u],n[u]))return!1;return!0}function Qo(e,n,u,c,v,y){return za=y,be=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Q.H=e===null||e.memoizedState===null?Vf:B1,wr=!1,y=u(c,v),wr=!1,Ns&&(y=Dr(n,u,c,v)),df(e),y}function df(e){Q.H=Os;var n=ua!==null&&ua.next!==null;if(za=0,Re=ua=be=null,Un=!1,Gu=0,Rs=null,n)throw Error(i(300));e===null||l0||(e=e.dependencies,e!==null&&wu(e)&&(l0=!0))}function Dr(e,n,u,c){be=e;var v=0;do{if(Ns&&(Rs=null),Gu=0,Ns=!1,25<=v)throw Error(i(301));if(v+=1,Re=ua=null,e.updateQueue!=null){var y=e.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}Q.H=qn,y=n(u,c)}while(Ns);return y}function Nr(){var e=Q.H,n=e.useState()[0];return n=typeof n.then=="function"?Uu(n):n,e=e.useState()[0],(ua!==null?ua.memoizedState:null)!==e&&(be.flags|=1024),n}function g1(){var e=Vo!==0;return Vo=0,e}function p1(e,n,u){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~u}function v1(e){if(Un){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Un=!1}za=0,Re=ua=be=null,Ns=!1,Gu=Vo=0,Rs=null}function c0(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?be.memoizedState=Re=e:Re=Re.next=e,Re}function Wa(){if(ua===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=ua.next;var n=Re===null?be.memoizedState:Re.next;if(n!==null)Re=n,ua=e;else{if(e===null)throw be.alternate===null?Error(i(467)):Error(i(310));ua=e,e={memoizedState:ua.memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},Re===null?be.memoizedState=Re=e:Re=Re.next=e}return Re}function Ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Uu(e){var n=Gu;return Gu+=1,Rs===null&&(Rs=[]),e=ko(Rs,e,n),n=be,(Re===null?n.memoizedState:Re.next)===null&&(n=n.alternate,Q.H=n===null||n.memoizedState===null?Vf:B1),e}function Vi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Uu(e);if(e.$$typeof===Z)return fe(e)}throw Error(i(438,String(e)))}function y1(e){var n=null,u=be.updateQueue;if(u!==null&&(n=u.memoCache),n==null){var c=be.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(n={data:c.data.map(function(v){return v.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),u===null&&(u=Ko(),be.updateQueue=u),u.memoCache=n,u=n.data[n.index],u===void 0)for(u=n.data[n.index]=Array(e),c=0;c<e;c++)u[c]=kt;return n.index++,u}function mi(e,n){return typeof n=="function"?n(e):n}function Zo(e){var n=Wa();return b1(n,ua,e)}function b1(e,n,u){var c=e.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=u;var v=e.baseQueue,y=c.pending;if(y!==null){if(v!==null){var z=v.next;v.next=y.next,y.next=z}n.baseQueue=v=y,c.pending=null}if(y=e.baseState,v===null)e.memoizedState=y;else{n=v.next;var R=z=null,j=null,lt=n,mt=!1;do{var vt=lt.lane&-536870913;if(vt!==lt.lane?(Te&vt)===vt:(za&vt)===vt){var st=lt.revertLane;if(st===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null}),vt===ci&&(mt=!0);else if((za&st)===st){lt=lt.next,st===ci&&(mt=!0);continue}else vt={lane:0,revertLane:lt.revertLane,gesture:null,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null},j===null?(R=j=vt,z=y):j=j.next=vt,be.lanes|=st,jl|=st;vt=lt.action,wr&&u(y,vt),y=lt.hasEagerState?lt.eagerState:u(y,vt)}else st={lane:vt,revertLane:lt.revertLane,gesture:lt.gesture,action:lt.action,hasEagerState:lt.hasEagerState,eagerState:lt.eagerState,next:null},j===null?(R=j=st,z=y):j=j.next=st,be.lanes|=vt,jl|=vt;lt=lt.next}while(lt!==null&&lt!==n);if(j===null?z=y:j.next=R,!Z0(y,e.memoizedState)&&(l0=!0,mt&&(u=Hn,u!==null)))throw u;e.memoizedState=y,e.baseState=z,e.baseQueue=j,c.lastRenderedState=y}return v===null&&(c.lanes=0),[e.memoizedState,c.dispatch]}function S1(e){var n=Wa(),u=n.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=e;var c=u.dispatch,v=u.pending,y=n.memoizedState;if(v!==null){u.pending=null;var z=v=v.next;do y=e(y,z.action),z=z.next;while(z!==v);Z0(y,n.memoizedState)||(l0=!0),n.memoizedState=y,n.baseQueue===null&&(n.baseState=y),u.lastRenderedState=y}return[y,c]}function mf(e,n,u){var c=be,v=Wa(),y=He;if(y){if(u===void 0)throw Error(i(407));u=u()}else u=n();var z=!Z0((ua||v).memoizedState,u);if(z&&(v.memoizedState=u,l0=!0),v=v.queue,C1(vf.bind(null,c,v,e),[e]),v.getSnapshot!==n||z||Re!==null&&Re.memoizedState.tag&1){if(c.flags|=2048,Qi(9,{destroy:void 0},pf.bind(null,c,v,u,n),null),me===null)throw Error(i(349));y||(za&127)!==0||gf(c,n,u)}return u}function gf(e,n,u){e.flags|=16384,e={getSnapshot:n,value:u},n=be.updateQueue,n===null?(n=Ko(),be.updateQueue=n,n.stores=[e]):(u=n.stores,u===null?n.stores=[e]:u.push(e))}function pf(e,n,u,c){n.value=u,n.getSnapshot=c,yf(n)&&bf(e)}function vf(e,n,u){return u(function(){yf(n)&&bf(e)})}function yf(e){var n=e.getSnapshot;e=e.value;try{var u=n();return!Z0(e,u)}catch{return!0}}function bf(e){var n=J0(e,2);n!==null&&Me(n,e,2)}function x1(e){var n=c0();if(typeof e=="function"){var u=e;if(e=u(),wr){In(!0);try{u()}finally{In(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mi,lastRenderedState:e},n}function T1(e,n,u,c){return e.baseState=u,b1(e,ua,typeof c=="function"?c:mi)}function m4(e,n,u,c,v){if(Io(e))throw Error(i(485));if(e=n.action,e!==null){var y={payload:v,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){y.listeners.push(z)}};Q.T!==null?u(!0):y.isTransition=!1,c(y),u=n.pending,u===null?(y.next=n.pending=y,Sf(n,y)):(y.next=u.next,n.pending=u.next=y)}}function Sf(e,n){var u=n.action,c=n.payload,v=e.state;if(n.isTransition){var y=Q.T,z={};Q.T=z;try{var R=u(v,c),j=Q.S;j!==null&&j(z,R),xf(e,n,R)}catch(lt){E1(e,n,lt)}finally{y!==null&&z.types!==null&&(y.types=z.types),Q.T=y}}else try{y=u(v,c),xf(e,n,y)}catch(lt){E1(e,n,lt)}}function xf(e,n,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(c){Tf(e,n,c)},function(c){return E1(e,n,c)}):Tf(e,n,u)}function Tf(e,n,u){n.status="fulfilled",n.value=u,Ef(n),e.state=u,n=e.pending,n!==null&&(u=n.next,u===n?e.pending=null:(u=u.next,n.next=u,Sf(e,u)))}function E1(e,n,u){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do n.status="rejected",n.reason=u,Ef(n),n=n.next;while(n!==c)}e.action=null}function Ef(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function _1(e,n){return n}function M1(e,n){if(He){var u=me.formState;if(u!==null){t:{var c=be;if(He){if(ha){e:{for(var v=ha,y=vn;v.nodeType!==8;){if(!y){v=null;break e}if(v=Kl(v.nextSibling),v===null){v=null;break e}}y=v.data,v=y==="F!"||y==="F"?v:null}if(v){ha=Kl(v.nextSibling),c=v.data==="F!";break t}}Nl(c)}c=!1}c&&(n=u[0])}}return u=c0(),u.memoizedState=u.baseState=n,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_1,lastRenderedState:n},u.queue=c,u=Yf.bind(null,be,c),c.dispatch=u,c=x1(!1),y=O1.bind(null,be,!1,c.queue),c=c0(),v={state:n,dispatch:null,action:e,pending:null},c.queue=v,u=m4.bind(null,be,v,y,u),v.dispatch=u,c.memoizedState=e,[n,u,!1]}function _f(e){var n=Wa();return A1(n,ua,e)}function A1(e,n,u){if(n=b1(e,n,_1)[0],e=Zo(mi)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var c=Uu(n)}catch(z){throw z===Er?Ee:z}else c=n;n=Wa();var v=n.queue,y=v.dispatch;return u!==n.memoizedState&&(be.flags|=2048,Qi(9,{destroy:void 0},Mf.bind(null,v,u),null)),[c,y,e]}function Mf(e,n){e.action=n}function z1(e){var n=Wa(),u=ua;if(u!==null)return A1(n,u,e);Wa(),n=n.memoizedState,u=Wa();var c=u.queue.dispatch;return u.memoizedState=e,[n,c,!1]}function Qi(e,n,u,c){return e={tag:e,create:u,deps:c,inst:n,next:null},n=be.updateQueue,n===null&&(n=Ko(),be.updateQueue=n),u=n.lastEffect,u===null?n.lastEffect=e.next=e:(c=u.next,u.next=e,e.next=c,n.lastEffect=e),e}function Jo(){return Wa().memoizedState}function Fo(e,n,u,c){var v=c0();be.flags|=e,v.memoizedState=Qi(1|n,{destroy:void 0},u,c===void 0?null:c)}function Wo(e,n,u,c){var v=Wa();c=c===void 0?null:c;var y=v.memoizedState.inst;ua!==null&&c!==null&&m1(c,ua.memoizedState.deps)?v.memoizedState=Qi(n,y,u,c):(be.flags|=e,v.memoizedState=Qi(1|n,y,u,c))}function Af(e,n){Fo(8390656,8,e,n)}function C1(e,n){Wo(2048,8,e,n)}function zf(e){be.flags|=4;var n=be.updateQueue;if(n===null)n=Ko(),be.updateQueue=n,n.events=[e];else{var u=n.events;u===null?n.events=[e]:u.push(e)}}function Cf(e){var n=Wa().memoizedState;return zf({ref:n,nextImpl:e}),function(){if(($t&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function wf(e,n){return Wo(4,2,e,n)}function Df(e,n){return Wo(4,4,e,n)}function Nf(e,n){if(typeof n=="function"){e=e();var u=n(e);return function(){typeof u=="function"?u():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Rf(e,n,u){u=u!=null?u.concat([e]):null,Wo(4,4,Nf.bind(null,n,e),u)}function w1(){}function Of(e,n){var u=Wa();n=n===void 0?null:n;var c=u.memoizedState;return n!==null&&m1(n,c[1])?c[0]:(u.memoizedState=[e,n],e)}function Bf(e,n){var u=Wa();n=n===void 0?null:n;var c=u.memoizedState;if(n!==null&&m1(n,c[1]))return c[0];if(c=e(),wr){In(!0);try{e()}finally{In(!1)}}return u.memoizedState=[c,n],c}function D1(e,n,u){return u===void 0||(za&1073741824)!==0&&(Te&261930)===0?e.memoizedState=n:(e.memoizedState=u,e=we(),be.lanes|=e,jl|=e,u)}function Hf(e,n,u,c){return Z0(u,n)?u:Ds.current!==null?(e=D1(e,u,c),Z0(e,n)||(l0=!0),e):(za&42)===0||(za&1073741824)!==0&&(Te&261930)===0?(l0=!0,e.memoizedState=u):(e=we(),be.lanes|=e,jl|=e,n)}function Gf(e,n,u,c,v){var y=pt.p;pt.p=y!==0&&8>y?y:8;var z=Q.T,R={};Q.T=R,O1(e,!1,n,u);try{var j=v(),lt=Q.S;if(lt!==null&&lt(R,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var mt=s1(j,c);qu(e,n,mt,_n(e))}else qu(e,n,c,_n(e))}catch(vt){qu(e,n,{then:function(){},status:"rejected",reason:vt},_n())}finally{pt.p=y,z!==null&&R.types!==null&&(z.types=R.types),Q.T=z}}function g4(){}function N1(e,n,u,c){if(e.tag!==5)throw Error(i(476));var v=Uf(e).queue;Gf(e,v,n,bt,u===null?g4:function(){return qf(e),u(c)})}function Uf(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:bt,baseState:bt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mi,lastRenderedState:bt},next:null};var u={};return n.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mi,lastRenderedState:u},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function qf(e){var n=Uf(e);n.next===null&&(n=e.alternate.memoizedState),qu(e,n.next.queue,{},_n())}function R1(){return fe(th)}function Lf(){return Wa().memoizedState}function kf(){return Wa().memoizedState}function p4(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var u=_n();e=fi(u);var c=Xi(n,e,u);c!==null&&(Me(c,n,u),ji(c,n,u)),n={cache:l1()},e.payload=n;return}n=n.return}}function v4(e,n,u){var c=_n();u={lane:c,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Io(e)?Xf(n,u):(u=Co(e,n,u,c),u!==null&&(Me(u,e,c),jf(u,n,c)))}function Yf(e,n,u){var c=_n();qu(e,n,u,c)}function qu(e,n,u,c){var v={lane:c,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Io(e))Xf(n,v);else{var y=e.alternate;if(e.lanes===0&&(y===null||y.lanes===0)&&(y=n.lastRenderedReducer,y!==null))try{var z=n.lastRenderedState,R=y(z,u);if(v.hasEagerState=!0,v.eagerState=R,Z0(R,z))return x0(e,n,v,0),me===null&&zu(),!1}catch{}finally{}if(u=Co(e,n,v,c),u!==null)return Me(u,e,c),jf(u,n,c),!0}return!1}function O1(e,n,u,c){if(c={lane:2,revertLane:ct(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Io(e)){if(n)throw Error(i(479))}else n=Co(e,u,c,2),n!==null&&Me(n,e,2)}function Io(e){var n=e.alternate;return e===be||n!==null&&n===be}function Xf(e,n){Ns=Un=!0;var u=e.pending;u===null?n.next=n:(n.next=u.next,u.next=n),e.pending=n}function jf(e,n,u){if((u&4194048)!==0){var c=n.lanes;c&=e.pendingLanes,u|=c,n.lanes=u,fr(e,u)}}var Os={readContext:fe,use:Vi,useCallback:Ha,useContext:Ha,useEffect:Ha,useImperativeHandle:Ha,useLayoutEffect:Ha,useInsertionEffect:Ha,useMemo:Ha,useReducer:Ha,useRef:Ha,useState:Ha,useDebugValue:Ha,useDeferredValue:Ha,useTransition:Ha,useSyncExternalStore:Ha,useId:Ha,useHostTransitionStatus:Ha,useFormState:Ha,useActionState:Ha,useOptimistic:Ha,useMemoCache:Ha,useCacheRefresh:Ha};Os.useEffectEvent=Ha;var Vf={readContext:fe,use:Vi,useCallback:function(e,n){return c0().memoizedState=[e,n===void 0?null:n],e},useContext:fe,useEffect:Af,useImperativeHandle:function(e,n,u){u=u!=null?u.concat([e]):null,Fo(4194308,4,Nf.bind(null,n,e),u)},useLayoutEffect:function(e,n){return Fo(4194308,4,e,n)},useInsertionEffect:function(e,n){Fo(4,2,e,n)},useMemo:function(e,n){var u=c0();n=n===void 0?null:n;var c=e();if(wr){In(!0);try{e()}finally{In(!1)}}return u.memoizedState=[c,n],c},useReducer:function(e,n,u){var c=c0();if(u!==void 0){var v=u(n);if(wr){In(!0);try{u(n)}finally{In(!1)}}}else v=n;return c.memoizedState=c.baseState=v,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:v},c.queue=e,e=e.dispatch=v4.bind(null,be,e),[c.memoizedState,e]},useRef:function(e){var n=c0();return e={current:e},n.memoizedState=e},useState:function(e){e=x1(e);var n=e.queue,u=Yf.bind(null,be,n);return n.dispatch=u,[e.memoizedState,u]},useDebugValue:w1,useDeferredValue:function(e,n){var u=c0();return D1(u,e,n)},useTransition:function(){var e=x1(!1);return e=Gf.bind(null,be,e.queue,!0,!1),c0().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,u){var c=be,v=c0();if(He){if(u===void 0)throw Error(i(407));u=u()}else{if(u=n(),me===null)throw Error(i(349));(Te&127)!==0||gf(c,n,u)}v.memoizedState=u;var y={value:u,getSnapshot:n};return v.queue=y,Af(vf.bind(null,c,y,e),[e]),c.flags|=2048,Qi(9,{destroy:void 0},pf.bind(null,c,y,u,n),null),u},useId:function(){var e=c0(),n=me.identifierPrefix;if(He){var u=il,c=Ba;u=(c&~(1<<32-Q0(c)-1)).toString(32)+u,n="_"+n+"R_"+u,u=Vo++,0<u&&(n+="H"+u.toString(32)),n+="_"}else u=d1++,n="_"+n+"r_"+u.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:R1,useFormState:M1,useActionState:M1,useOptimistic:function(e){var n=c0();n.memoizedState=n.baseState=e;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=u,n=O1.bind(null,be,!0,u),u.dispatch=n,[e,n]},useMemoCache:y1,useCacheRefresh:function(){return c0().memoizedState=p4.bind(null,be)},useEffectEvent:function(e){var n=c0(),u={impl:e};return n.memoizedState=u,function(){if(($t&2)!==0)throw Error(i(440));return u.impl.apply(void 0,arguments)}}},B1={readContext:fe,use:Vi,useCallback:Of,useContext:fe,useEffect:C1,useImperativeHandle:Rf,useInsertionEffect:wf,useLayoutEffect:Df,useMemo:Bf,useReducer:Zo,useRef:Jo,useState:function(){return Zo(mi)},useDebugValue:w1,useDeferredValue:function(e,n){var u=Wa();return Hf(u,ua.memoizedState,e,n)},useTransition:function(){var e=Zo(mi)[0],n=Wa().memoizedState;return[typeof e=="boolean"?e:Uu(e),n]},useSyncExternalStore:mf,useId:Lf,useHostTransitionStatus:R1,useFormState:_f,useActionState:_f,useOptimistic:function(e,n){var u=Wa();return T1(u,ua,e,n)},useMemoCache:y1,useCacheRefresh:kf};B1.useEffectEvent=Cf;var qn={readContext:fe,use:Vi,useCallback:Of,useContext:fe,useEffect:C1,useImperativeHandle:Rf,useInsertionEffect:wf,useLayoutEffect:Df,useMemo:Bf,useReducer:S1,useRef:Jo,useState:function(){return S1(mi)},useDebugValue:w1,useDeferredValue:function(e,n){var u=Wa();return ua===null?D1(u,e,n):Hf(u,ua.memoizedState,e,n)},useTransition:function(){var e=S1(mi)[0],n=Wa().memoizedState;return[typeof e=="boolean"?e:Uu(e),n]},useSyncExternalStore:mf,useId:Lf,useHostTransitionStatus:R1,useFormState:z1,useActionState:z1,useOptimistic:function(e,n){var u=Wa();return ua!==null?T1(u,ua,e,n):(u.baseState=e,[e,u.queue.dispatch])},useMemoCache:y1,useCacheRefresh:kf};qn.useEffectEvent=Cf;function Po(e,n,u,c){n=e.memoizedState,u=u(c,n),u=u==null?n:_({},n,u),e.memoizedState=u,e.lanes===0&&(e.updateQueue.baseState=u)}var Lu={enqueueSetState:function(e,n,u){e=e._reactInternals;var c=_n(),v=fi(c);v.payload=n,u!=null&&(v.callback=u),n=Xi(e,v,c),n!==null&&(Me(n,e,c),ji(n,e,c))},enqueueReplaceState:function(e,n,u){e=e._reactInternals;var c=_n(),v=fi(c);v.tag=1,v.payload=n,u!=null&&(v.callback=u),n=Xi(e,v,c),n!==null&&(Me(n,e,c),ji(n,e,c))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var u=_n(),c=fi(u);c.tag=2,n!=null&&(c.callback=n),n=Xi(e,c,u),n!==null&&(Me(n,e,u),ji(n,e,u))}};function H1(e,n,u,c,v,y,z){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,y,z):n.prototype&&n.prototype.isPureReactComponent?!gs(u,c)||!gs(v,y):!0}function G1(e,n,u,c){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(u,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(u,c),n.state!==e&&Lu.enqueueReplaceState(n,n.state,null)}function Ki(e,n){var u=n;if("ref"in n){u={};for(var c in n)c!=="ref"&&(u[c]=n[c])}if(e=e.defaultProps){u===n&&(u=_({},u));for(var v in e)u[v]===void 0&&(u[v]=e[v])}return u}function Qf(e){Au(e)}function U1(e){console.error(e)}function q1(e){Au(e)}function $o(e,n){try{var u=e.onUncaughtError;u(n.value,{componentStack:n.stack})}catch(c){setTimeout(function(){throw c})}}function Kf(e,n,u){try{var c=e.onCaughtError;c(u.value,{componentStack:u.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function L1(e,n,u){return u=fi(u),u.tag=3,u.payload={element:null},u.callback=function(){$o(e,n)},u}function k1(e){return e=fi(e),e.tag=3,e}function Zf(e,n,u,c){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var y=c.value;e.payload=function(){return v(y)},e.callback=function(){Kf(n,u,c)}}var z=u.stateNode;z!==null&&typeof z.componentDidCatch=="function"&&(e.callback=function(){Kf(n,u,c),typeof v!="function"&&($a===null?$a=new Set([this]):$a.add(this));var R=c.stack;this.componentDidCatch(c.value,{componentStack:R!==null?R:""})})}function h0(e,n,u,c,v){if(u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(n=u.alternate,n!==null&&Hl(n,u,v,!0),u=un.current,u!==null){switch(u.tag){case 31:case 13:return W0===null?ks():u.alternate===null&&Ga===0&&(Ga=3),u.flags&=-257,u.flags|=65536,u.lanes=v,c===Lo?u.flags|=16384:(n=u.updateQueue,n===null?u.updateQueue=new Set([c]):n.add(c),Iu(e,c,v)),!1;case 22:return u.flags|=65536,c===Lo?u.flags|=16384:(n=u.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([c])},u.updateQueue=n):(u=n.retryQueue,u===null?n.retryQueue=new Set([c]):u.add(c)),Iu(e,c,v)),!1}throw Error(i(435,u.tag))}return Iu(e,c,v),ks(),!1}if(He)return n=un.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=v,c!==Es&&(e=Error(i(422),{cause:c}),Rl(pn(e,u)))):(c!==Es&&(n=Error(i(423),{cause:c}),Rl(pn(n,u))),e=e.current.alternate,e.flags|=65536,v&=-v,e.lanes|=v,c=pn(c,u),v=L1(e.stateNode,c,v),le(e,v),Ga!==4&&(Ga=2)),!1;var y=Error(i(520),{cause:c});if(y=pn(y,u),Lr===null?Lr=[y]:Lr.push(y),Ga!==4&&(Ga=2),n===null)return!0;c=pn(c,u),u=n;do{switch(u.tag){case 3:return u.flags|=65536,e=v&-v,u.lanes|=e,e=L1(u.stateNode,c,e),le(u,e),!1;case 1:if(n=u.type,y=u.stateNode,(u.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&($a===null||!$a.has(y))))return u.flags|=65536,v&=-v,u.lanes|=v,v=k1(v),Zf(v,e,u,c),le(u,v),!1}u=u.return}while(u!==null);return!1}var tc=Error(i(461)),l0=!1;function T0(e,n,u,c){n.child=e===null?Xo(n,null,u,c):hi(n,e.child,u,c)}function Y1(e,n,u,c,v){u=u.render;var y=n.ref;if("ref"in c){var z={};for(var R in c)R!=="ref"&&(z[R]=c[R])}else z=c;return ki(n),c=Qo(e,n,u,z,y,v),R=g1(),e!==null&&!l0?(p1(e,n,v),Ia(e,n,v)):(He&&R&&Dl(n),n.flags|=1,T0(e,n,c,v),n.child)}function Rr(e,n,u,c,v){if(e===null){var y=u.type;return typeof y=="function"&&!wo(y)&&y.defaultProps===void 0&&u.compare===null?(n.tag=15,n.type=y,ec(e,n,y,c,v)):(e=Cl(u.type,null,c,n,n.mode,v),e.ref=n.ref,e.return=n,n.child=e)}if(y=e.child,!sc(e,v)){var z=y.memoizedProps;if(u=u.compare,u=u!==null?u:gs,u(z,c)&&e.ref===n.ref)return Ia(e,n,v)}return n.flags|=1,e=ln(y,c),e.ref=n.ref,e.return=n,n.child=e}function ec(e,n,u,c,v){if(e!==null){var y=e.memoizedProps;if(gs(y,c)&&e.ref===n.ref)if(l0=!1,n.pendingProps=c=y,sc(e,v))(e.flags&131072)!==0&&(l0=!0);else return n.lanes=e.lanes,Ia(e,n,v)}return Bs(e,n,u,c,v)}function Or(e,n,u,c){var v=c.children,y=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((n.flags&128)!==0){if(y=y!==null?y.baseLanes|u:u,e!==null){for(c=n.child=e.child,v=0;c!==null;)v=v|c.lanes|c.childLanes,c=c.sibling;c=v&~y}else c=0,n.child=null;return cn(e,n,y,u,c)}if((u&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Du(n,y!==null?y.cachePool:null),y!==null?hf(n,y):h1(),ff(n);else return c=n.lanes=536870912,cn(e,n,y!==null?y.baseLanes|u:u,u,c)}else y!==null?(Du(n,y.cachePool),hf(n,y),on(),n.memoizedState=null):(e!==null&&Du(n,null),h1(),on());return T0(e,n,v,u),n.child}function Ul(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function cn(e,n,u,c,v){var y=qo();return y=y===null?null:{parent:n0._currentValue,pool:y},n.memoizedState={baseLanes:u,cachePool:y},e!==null&&Du(n,null),h1(),ff(n),e!==null&&Hl(e,n,c,!0),n.childLanes=v,null}function ac(e,n){return n=rc({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Jf(e,n,u){return hi(n,e.child,null,u),e=ac(n,n.pendingProps),e.flags|=2,Fa(n),n.memoizedState=null,e}function nc(e,n,u){var c=n.pendingProps,v=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(He){if(c.mode==="hidden")return e=ac(n,c),n.lanes=536870912,Ul(null,e);if(f1(n),(e=ha)?(e=O5(e,vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:si!==null?{id:Ba,overflow:il}:null,retryLane:536870912,hydrationErrors:null},u=Ss(e),u.return=n,n.child=u,Xa=n,ha=null)):e=null,e===null)throw Nl(n);return n.lanes=536870912,null}return ac(n,c)}var y=e.memoizedState;if(y!==null){var z=y.dehydrated;if(f1(n),v)if(n.flags&256)n.flags&=-257,n=Jf(e,n,u);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(l0||Hl(e,n,u,!1),v=(u&e.childLanes)!==0,l0||v){if(c=me,c!==null&&(z=fu(c,u),z!==0&&z!==y.retryLane))throw y.retryLane=z,J0(e,z),Me(c,e,z),tc;ks(),n=Jf(e,n,u)}else e=y.treeContext,ha=Kl(z.nextSibling),Xa=n,He=!0,ui=null,vn=!1,e!==null&&Oo(n,e),n=ac(n,c),n.flags|=4096;return n}return e=ln(e.child,{mode:c.mode,children:c.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Br(e,n){var u=n.ref;if(u===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(e===null||e.ref!==u)&&(n.flags|=4194816)}}function Bs(e,n,u,c,v){return ki(n),u=Qo(e,n,u,c,void 0,v),c=g1(),e!==null&&!l0?(p1(e,n,v),Ia(e,n,v)):(He&&c&&Dl(n),n.flags|=1,T0(e,n,u,v),n.child)}function ku(e,n,u,c,v,y){return ki(n),n.updateQueue=null,u=Dr(n,c,u,v),df(e),c=g1(),e!==null&&!l0?(p1(e,n,y),Ia(e,n,y)):(He&&c&&Dl(n),n.flags|=1,T0(e,n,u,y),n.child)}function lc(e,n,u,c,v){if(ki(n),n.stateNode===null){var y=Bi,z=u.contextType;typeof z=="object"&&z!==null&&(y=fe(z)),y=new u(c,y),n.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Lu,n.stateNode=y,y._reactInternals=n,y=n.stateNode,y.props=c,y.state=n.memoizedState,y.refs={},Ou(n),z=u.contextType,y.context=typeof z=="object"&&z!==null?fe(z):Bi,y.state=n.memoizedState,z=u.getDerivedStateFromProps,typeof z=="function"&&(Po(n,u,z,c),y.state=n.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(z=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),z!==y.state&&Lu.enqueueReplaceState(y,y.state,null),Cs(n,c,y,v),Bu(),y.state=n.memoizedState),typeof y.componentDidMount=="function"&&(n.flags|=4194308),c=!0}else if(e===null){y=n.stateNode;var R=n.memoizedProps,j=Ki(u,R);y.props=j;var lt=y.context,mt=u.contextType;z=Bi,typeof mt=="object"&&mt!==null&&(z=fe(mt));var vt=u.getDerivedStateFromProps;mt=typeof vt=="function"||typeof y.getSnapshotBeforeUpdate=="function",R=n.pendingProps!==R,mt||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(R||lt!==z)&&G1(n,y,c,z),F0=!1;var st=n.memoizedState;y.state=st,Cs(n,c,y,v),Bu(),lt=n.memoizedState,R||st!==lt||F0?(typeof vt=="function"&&(Po(n,u,vt,c),lt=n.memoizedState),(j=F0||H1(n,u,j,c,st,lt,z))?(mt||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(n.flags|=4194308)):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=c,n.memoizedState=lt),y.props=c,y.state=lt,y.context=z,c=j):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),c=!1)}else{y=n.stateNode,o1(e,n),z=n.memoizedProps,mt=Ki(u,z),y.props=mt,vt=n.pendingProps,st=y.context,lt=u.contextType,j=Bi,typeof lt=="object"&&lt!==null&&(j=fe(lt)),R=u.getDerivedStateFromProps,(lt=typeof R=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(z!==vt||st!==j)&&G1(n,y,c,j),F0=!1,st=n.memoizedState,y.state=st,Cs(n,c,y,v),Bu();var ft=n.memoizedState;z!==vt||st!==ft||F0||e!==null&&e.dependencies!==null&&wu(e.dependencies)?(typeof R=="function"&&(Po(n,u,R,c),ft=n.memoizedState),(mt=F0||H1(n,u,mt,c,st,ft,j)||e!==null&&e.dependencies!==null&&wu(e.dependencies))?(lt||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,ft,j),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,ft,j)),typeof y.componentDidUpdate=="function"&&(n.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof y.componentDidUpdate!="function"||z===e.memoizedProps&&st===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||z===e.memoizedProps&&st===e.memoizedState||(n.flags|=1024),n.memoizedProps=c,n.memoizedState=ft),y.props=c,y.state=ft,y.context=j,c=mt):(typeof y.componentDidUpdate!="function"||z===e.memoizedProps&&st===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||z===e.memoizedProps&&st===e.memoizedState||(n.flags|=1024),c=!1)}return y=c,Br(e,n),c=(n.flags&128)!==0,y||c?(y=n.stateNode,u=c&&typeof u.getDerivedStateFromError!="function"?null:y.render(),n.flags|=1,e!==null&&c?(n.child=hi(n,e.child,null,v),n.child=hi(n,null,u,v)):T0(e,n,u,v),n.memoizedState=y.state,e=n.child):e=Ia(e,n,v),e}function Ff(e,n,u,c){return qi(),n.flags|=256,T0(e,n,u,c),n.child}var X1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Y0(e){return{baseLanes:e,cachePool:u1()}}function ic(e,n,u){return e=e!==null?e.childLanes&~u:0,n&&(e|=tn),e}function Wf(e,n,u){var c=n.pendingProps,v=!1,y=(n.flags&128)!==0,z;if((z=y)||(z=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),z&&(v=!0,n.flags&=-129),z=(n.flags&32)!==0,n.flags&=-33,e===null){if(He){if(v?di(n):on(),(e=ha)?(e=O5(e,vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:si!==null?{id:Ba,overflow:il}:null,retryLane:536870912,hydrationErrors:null},u=Ss(e),u.return=n,n.child=u,Xa=n,ha=null)):e=null,e===null)throw Nl(n);return N4(e)?n.lanes=32:n.lanes=536870912,null}var R=c.children;return c=c.fallback,v?(on(),v=n.mode,R=rc({mode:"hidden",children:R},v),c=Hi(c,v,u,null),R.return=n,c.return=n,R.sibling=c,n.child=R,c=n.child,c.memoizedState=Y0(u),c.childLanes=ic(e,z,u),n.memoizedState=X1,Ul(null,c)):(di(n),Yu(n,R))}var j=e.memoizedState;if(j!==null&&(R=j.dehydrated,R!==null)){if(y)n.flags&256?(di(n),n.flags&=-257,n=j1(e,n,u)):n.memoizedState!==null?(on(),n.child=e.child,n.flags|=128,n=null):(on(),R=c.fallback,v=n.mode,c=rc({mode:"visible",children:c.children},v),R=Hi(R,v,u,null),R.flags|=2,c.return=n,R.return=n,c.sibling=R,n.child=c,hi(n,e.child,null,u),c=n.child,c.memoizedState=Y0(u),c.childLanes=ic(e,z,u),n.memoizedState=X1,n=Ul(null,c));else if(di(n),N4(R)){if(z=R.nextSibling&&R.nextSibling.dataset,z)var lt=z.dgst;z=lt,c=Error(i(419)),c.stack="",c.digest=z,Rl({value:c,source:null,stack:null}),n=j1(e,n,u)}else if(l0||Hl(e,n,u,!1),z=(u&e.childLanes)!==0,l0||z){if(z=me,z!==null&&(c=fu(z,u),c!==0&&c!==j.retryLane))throw j.retryLane=c,J0(e,c),Me(z,e,c),tc;D4(R)||ks(),n=j1(e,n,u)}else D4(R)?(n.flags|=192,n.child=e.child,n=null):(e=j.treeContext,ha=Kl(R.nextSibling),Xa=n,He=!0,ui=null,vn=!1,e!==null&&Oo(n,e),n=Yu(n,c.children),n.flags|=4096);return n}return v?(on(),R=c.fallback,v=n.mode,j=e.child,lt=j.sibling,c=ln(j,{mode:"hidden",children:c.children}),c.subtreeFlags=j.subtreeFlags&65011712,lt!==null?R=ln(lt,R):(R=Hi(R,v,u,null),R.flags|=2),R.return=n,c.return=n,c.sibling=R,n.child=c,Ul(null,c),c=n.child,R=e.child.memoizedState,R===null?R=Y0(u):(v=R.cachePool,v!==null?(j=n0._currentValue,v=v.parent!==j?{parent:j,pool:j}:v):v=u1(),R={baseLanes:R.baseLanes|u,cachePool:v}),c.memoizedState=R,c.childLanes=ic(e,z,u),n.memoizedState=X1,Ul(e.child,c)):(di(n),u=e.child,e=u.sibling,u=ln(u,{mode:"visible",children:c.children}),u.return=n,u.sibling=null,e!==null&&(z=n.deletions,z===null?(n.deletions=[e],n.flags|=16):z.push(e)),n.child=u,n.memoizedState=null,u)}function Yu(e,n){return n=rc({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function rc(e,n){return e=Oa(22,e,null,n),e.lanes=0,e}function j1(e,n,u){return hi(n,e.child,null,u),e=Yu(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function If(e,n,u){e.lanes|=n;var c=e.alternate;c!==null&&(c.lanes|=n),Ho(e.return,n,u)}function Hr(e,n,u,c,v,y){var z=e.memoizedState;z===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:u,tailMode:v,treeForkCount:y}:(z.isBackwards=n,z.rendering=null,z.renderingStartTime=0,z.last=c,z.tail=u,z.tailMode=v,z.treeForkCount=y)}function hn(e,n,u){var c=n.pendingProps,v=c.revealOrder,y=c.tail;c=c.children;var z=Ge.current,R=(z&2)!==0;if(R?(z=z&1|2,n.flags|=128):z&=1,dt(Ge,z),T0(e,n,c,u),c=He?Ts:0,!R&&e!==null&&(e.flags&128)!==0)t:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&If(e,u,n);else if(e.tag===19)If(e,u,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break t;for(;e.sibling===null;){if(e.return===null||e.return===n)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(v){case"forwards":for(u=n.child,v=null;u!==null;)e=u.alternate,e!==null&&bn(e)===null&&(v=u),u=u.sibling;u=v,u===null?(v=n.child,n.child=null):(v=u.sibling,u.sibling=null),Hr(n,!1,v,u,y,c);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=n.child,n.child=null;v!==null;){if(e=v.alternate,e!==null&&bn(e)===null){n.child=v;break}e=v.sibling,v.sibling=u,u=v,v=e}Hr(n,!0,u,null,y,c);break;case"together":Hr(n,!1,null,null,void 0,c);break;default:n.memoizedState=null}return n.child}function Ia(e,n,u){if(e!==null&&(n.dependencies=e.dependencies),jl|=n.lanes,(u&n.childLanes)===0)if(e!==null){if(Hl(e,n,u,!1),(u&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,u=ln(e,e.pendingProps),n.child=u,u.return=n;e.sibling!==null;)e=e.sibling,u=u.sibling=ln(e,e.pendingProps),u.return=n;u.sibling=null}return n.child}function sc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&wu(e)))}function y4(e,n,u){switch(n.tag){case 3:Wt(n,n.stateNode.containerInfo),oi(n,n0,e.memoizedState.cache),qi();break;case 27:case 5:Ae(n);break;case 4:Wt(n,n.stateNode.containerInfo);break;case 10:oi(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,f1(n),null;break;case 13:var c=n.memoizedState;if(c!==null)return c.dehydrated!==null?(di(n),n.flags|=128,null):(u&n.child.childLanes)!==0?Wf(e,n,u):(di(n),e=Ia(e,n,u),e!==null?e.sibling:null);di(n);break;case 19:var v=(e.flags&128)!==0;if(c=(u&n.childLanes)!==0,c||(Hl(e,n,u,!1),c=(u&n.childLanes)!==0),v){if(c)return hn(e,n,u);n.flags|=128}if(v=n.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),dt(Ge,Ge.current),c)break;return null;case 22:return n.lanes=0,Or(e,n,u,n.pendingProps);case 24:oi(n,n0,e.memoizedState.cache)}return Ia(e,n,u)}function uc(e,n,u){if(e!==null)if(e.memoizedProps!==n.pendingProps)l0=!0;else{if(!sc(e,u)&&(n.flags&128)===0)return l0=!1,y4(e,n,u);l0=(e.flags&131072)!==0}else l0=!1,He&&(n.flags&1048576)!==0&&nf(n,Ts,n.index);switch(n.lanes=0,n.tag){case 16:t:{var c=n.pendingProps;if(e=_r(n.elementType),n.type=e,typeof e=="function")wo(e)?(c=Ki(e,c),n.tag=1,n=lc(null,n,e,c,u)):(n.tag=0,n=Bs(null,n,e,c,u));else{if(e!=null){var v=e.$$typeof;if(v===q){n.tag=11,n=Y1(null,n,e,c,u);break t}else if(v===rt){n.tag=14,n=Rr(null,n,e,c,u);break t}}throw n=jt(e)||e,Error(i(306,n,""))}}return n;case 0:return Bs(e,n,n.type,n.pendingProps,u);case 1:return c=n.type,v=Ki(c,n.pendingProps),lc(e,n,c,v,u);case 3:t:{if(Wt(n,n.stateNode.containerInfo),e===null)throw Error(i(387));c=n.pendingProps;var y=n.memoizedState;v=y.element,o1(e,n),Cs(n,c,null,u);var z=n.memoizedState;if(c=z.cache,oi(n,n0,c),c!==y.cache&&Go(n,[n0],u,!0),Bu(),c=z.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:z.cache},n.updateQueue.baseState=y,n.memoizedState=y,n.flags&256){n=Ff(e,n,c,u);break t}else if(c!==v){v=pn(Error(i(424)),n),Rl(v),n=Ff(e,n,c,u);break t}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ha=Kl(e.firstChild),Xa=n,He=!0,ui=null,vn=!0,u=Xo(n,null,c,u),n.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(qi(),c===v){n=Ia(e,n,u);break t}T0(e,n,c,u)}n=n.child}return n;case 26:return Br(e,n),e===null?(u=L5(n.type,null,n.pendingProps,null))?n.memoizedState=u:He||(u=n.type,e=n.pendingProps,c=e2(Bt.current).createElement(u),c[Ya]=n,c[o0]=e,an(c,u,e),K(c),n.stateNode=c):n.memoizedState=L5(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ae(n),e===null&&He&&(c=n.stateNode=G5(n.type,n.pendingProps,Bt.current),Xa=n,vn=!0,v=ha,Vs(n.type)?(R4=v,ha=Kl(c.firstChild)):ha=v),T0(e,n,n.pendingProps.children,u),Br(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&He&&((v=c=ha)&&(c=v7(c,n.type,n.pendingProps,vn),c!==null?(n.stateNode=c,Xa=n,ha=Kl(c.firstChild),vn=!1,v=!0):v=!1),v||Nl(n)),Ae(n),v=n.type,y=n.pendingProps,z=e!==null?e.memoizedProps:null,c=y.children,z4(v,y)?c=null:z!==null&&z4(v,z)&&(n.flags|=32),n.memoizedState!==null&&(v=Qo(e,n,Nr,null,null,u),th._currentValue=v),Br(e,n),T0(e,n,c,u),n.child;case 6:return e===null&&He&&((e=u=ha)&&(u=y7(u,n.pendingProps,vn),u!==null?(n.stateNode=u,Xa=n,ha=null,e=!0):e=!1),e||Nl(n)),null;case 13:return Wf(e,n,u);case 4:return Wt(n,n.stateNode.containerInfo),c=n.pendingProps,e===null?n.child=hi(n,null,c,u):T0(e,n,c,u),n.child;case 11:return Y1(e,n,n.type,n.pendingProps,u);case 7:return T0(e,n,n.pendingProps,u),n.child;case 8:return T0(e,n,n.pendingProps.children,u),n.child;case 12:return T0(e,n,n.pendingProps.children,u),n.child;case 10:return c=n.pendingProps,oi(n,n.type,c.value),T0(e,n,c.children,u),n.child;case 9:return v=n.type._context,c=n.pendingProps.children,ki(n),v=fe(v),c=c(v),n.flags|=1,T0(e,n,c,u),n.child;case 14:return Rr(e,n,n.type,n.pendingProps,u);case 15:return ec(e,n,n.type,n.pendingProps,u);case 19:return hn(e,n,u);case 31:return nc(e,n,u);case 22:return Or(e,n,u,n.pendingProps);case 24:return ki(n),c=fe(n0),e===null?(v=qo(),v===null&&(v=me,y=l1(),v.pooledCache=y,y.refCount++,y!==null&&(v.pooledCacheLanes|=u),v=y),n.memoizedState={parent:c,cache:v},Ou(n),oi(n,n0,v)):((e.lanes&u)!==0&&(o1(e,n),Cs(n,null,null,u),Bu()),v=e.memoizedState,y=n.memoizedState,v.parent!==c?(v={parent:c,cache:c},n.memoizedState=v,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=v),oi(n,n0,c)):(c=y.cache,oi(n,n0,c),c!==v.cache&&Go(n,[n0],u,!0))),T0(e,n,n.pendingProps.children,u),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function ql(e){e.flags|=4}function Xu(e,n,u,c,v){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(v&335544128)===v)if(e.stateNode.complete)e.flags|=8192;else if(qa())e.flags|=8192;else throw Gl=Lo,Nu}else e.flags&=-16777217}function V1(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!V5(n))if(qa())e.flags|=8192;else throw Gl=Lo,Nu}function gi(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?vl():536870912,e.lanes|=n,ya|=n)}function Ll(e,n){if(!He)switch(e.tailMode){case"hidden":n=e.tail;for(var u=null;n!==null;)n.alternate!==null&&(u=n),n=n.sibling;u===null?e.tail=null:u.sibling=null;break;case"collapsed":u=e.tail;for(var c=null;u!==null;)u.alternate!==null&&(c=u),u=u.sibling;c===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function oa(e){var n=e.alternate!==null&&e.alternate.child===e.child,u=0,c=0;if(n)for(var v=e.child;v!==null;)u|=v.lanes|v.childLanes,c|=v.subtreeFlags&65011712,c|=v.flags&65011712,v.return=e,v=v.sibling;else for(v=e.child;v!==null;)u|=v.lanes|v.childLanes,c|=v.subtreeFlags,c|=v.flags,v.return=e,v=v.sibling;return e.subtreeFlags|=c,e.childLanes=u,n}function ju(e,n,u){var c=n.pendingProps;switch(Ro(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oa(n),null;case 1:return oa(n),null;case 3:return u=n.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),n.memoizedState.cache!==c&&(n.flags|=2048),Bl(n0),Zt(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(_s(n)?ql(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Bo())),oa(n),null;case 26:var v=n.type,y=n.memoizedState;return e===null?(ql(n),y!==null?(oa(n),V1(n,y)):(oa(n),Xu(n,v,null,c,u))):y?y!==e.memoizedState?(ql(n),oa(n),V1(n,y)):(oa(n),n.flags&=-16777217):(e=e.memoizedProps,e!==c&&ql(n),oa(n),Xu(n,v,e,c,u)),null;case 27:if(Ue(n),u=Bt.current,v=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==c&&ql(n);else{if(!c){if(n.stateNode===null)throw Error(i(166));return oa(n),null}e=wt.current,_s(n)?lf(n):(e=G5(v,c,u),n.stateNode=e,ql(n))}return oa(n),null;case 5:if(Ue(n),v=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==c&&ql(n);else{if(!c){if(n.stateNode===null)throw Error(i(166));return oa(n),null}if(y=wt.current,_s(n))lf(n);else{var z=e2(Bt.current);switch(y){case 1:y=z.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:y=z.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":y=z.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":y=z.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":y=z.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof c.is=="string"?z.createElement("select",{is:c.is}):z.createElement("select"),c.multiple?y.multiple=!0:c.size&&(y.size=c.size);break;default:y=typeof c.is=="string"?z.createElement(v,{is:c.is}):z.createElement(v)}}y[Ya]=n,y[o0]=c;t:for(z=n.child;z!==null;){if(z.tag===5||z.tag===6)y.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===n)break t;for(;z.sibling===null;){if(z.return===null||z.return===n)break t;z=z.return}z.sibling.return=z.return,z=z.sibling}n.stateNode=y;t:switch(an(y,v,c),v){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break t;case"img":c=!0;break t;default:c=!1}c&&ql(n)}}return oa(n),Xu(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,u),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==c&&ql(n);else{if(typeof c!="string"&&n.stateNode===null)throw Error(i(166));if(e=Bt.current,_s(n)){if(e=n.stateNode,u=n.memoizedProps,c=null,v=Xa,v!==null)switch(v.tag){case 27:case 5:c=v.memoizedProps}e[Ya]=n,e=!!(e.nodeValue===u||c!==null&&c.suppressHydrationWarning===!0||M5(e.nodeValue,u)),e||Nl(n,!0)}else e=e2(e).createTextNode(c),e[Ya]=n,n.stateNode=e}return oa(n),null;case 31:if(u=n.memoizedState,e===null||e.memoizedState!==null){if(c=_s(n),u!==null){if(e===null){if(!c)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[Ya]=n}else qi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;oa(n),e=!1}else u=Bo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),e=!0;if(!e)return n.flags&256?(Fa(n),n):(Fa(n),null);if((n.flags&128)!==0)throw Error(i(558))}return oa(n),null;case 13:if(c=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(v=_s(n),c!==null&&c.dehydrated!==null){if(e===null){if(!v)throw Error(i(318));if(v=n.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(i(317));v[Ya]=n}else qi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;oa(n),v=!1}else v=Bo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=v),v=!0;if(!v)return n.flags&256?(Fa(n),n):(Fa(n),null)}return Fa(n),(n.flags&128)!==0?(n.lanes=u,n):(u=c!==null,e=e!==null&&e.memoizedState!==null,u&&(c=n.child,v=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(v=c.alternate.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==v&&(c.flags|=2048)),u!==e&&u&&(n.child.flags|=8192),gi(n,n.updateQueue),oa(n),null);case 4:return Zt(),e===null&&T4(n.stateNode.containerInfo),oa(n),null;case 10:return Bl(n.type),oa(n),null;case 19:if(et(Ge),c=n.memoizedState,c===null)return oa(n),null;if(v=(n.flags&128)!==0,y=c.rendering,y===null)if(v)Ll(c,!1);else{if(Ga!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(y=bn(e),y!==null){for(n.flags|=128,Ll(c,!1),e=y.updateQueue,n.updateQueue=e,gi(n,e),n.subtreeFlags=0,e=u,u=n.child;u!==null;)bs(u,e),u=u.sibling;return dt(Ge,Ge.current&1|2),He&&wl(n,c.treeForkCount),n.child}e=e.sibling}c.tail!==null&&Le()>Pa&&(n.flags|=128,v=!0,Ll(c,!1),n.lanes=4194304)}else{if(!v)if(e=bn(y),e!==null){if(n.flags|=128,v=!0,e=e.updateQueue,n.updateQueue=e,gi(n,e),Ll(c,!0),c.tail===null&&c.tailMode==="hidden"&&!y.alternate&&!He)return oa(n),null}else 2*Le()-c.renderingStartTime>Pa&&u!==536870912&&(n.flags|=128,v=!0,Ll(c,!1),n.lanes=4194304);c.isBackwards?(y.sibling=n.child,n.child=y):(e=c.last,e!==null?e.sibling=y:n.child=y,c.last=y)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=Le(),e.sibling=null,u=Ge.current,dt(Ge,v?u&1|2:u&1),He&&wl(n,c.treeForkCount),e):(oa(n),null);case 22:case 23:return Fa(n),Hu(),c=n.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(n.flags|=8192):c&&(n.flags|=8192),c?(u&536870912)!==0&&(n.flags&128)===0&&(oa(n),n.subtreeFlags&6&&(n.flags|=8192)):oa(n),u=n.updateQueue,u!==null&&gi(n,u.retryQueue),u=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==u&&(n.flags|=2048),e!==null&&et(Yi),null;case 24:return u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),Bl(n0),oa(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function Ln(e,n){switch(Ro(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Bl(n0),Zt(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ue(n),null;case 31:if(n.memoizedState!==null){if(Fa(n),n.alternate===null)throw Error(i(340));qi()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Fa(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));qi()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return et(Ge),null;case 4:return Zt(),null;case 10:return Bl(n.type),null;case 22:case 23:return Fa(n),Hu(),e!==null&&et(Yi),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Bl(n0),null;case 25:return null;default:return null}}function Sn(e,n){switch(Ro(n),n.tag){case 3:Bl(n0),Zt();break;case 26:case 27:case 5:Ue(n);break;case 4:Zt();break;case 31:n.memoizedState!==null&&Fa(n);break;case 13:Fa(n);break;case 19:et(Ge);break;case 10:Bl(n.type);break;case 22:case 23:Fa(n),Hu(),e!==null&&et(Yi);break;case 24:Bl(n0)}}function kn(e,n){try{var u=n.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var v=c.next;u=v;do{if((u.tag&e)===e){c=void 0;var y=u.create,z=u.inst;c=y(),z.destroy=c}u=u.next}while(u!==v)}}catch(R){Qe(n,n.return,R)}}function O0(e,n,u){try{var c=n.updateQueue,v=c!==null?c.lastEffect:null;if(v!==null){var y=v.next;c=y;do{if((c.tag&e)===e){var z=c.inst,R=z.destroy;if(R!==void 0){z.destroy=void 0,v=n;var j=u,lt=R;try{lt()}catch(mt){Qe(v,j,mt)}}}c=c.next}while(c!==y)}}catch(mt){Qe(n,n.return,mt)}}function rl(e){var n=e.updateQueue;if(n!==null){var u=e.stateNode;try{cf(n,u)}catch(c){Qe(e,e.return,c)}}}function E0(e,n,u){u.props=Ki(e.type,e.memoizedProps),u.state=e.memoizedState;try{u.componentWillUnmount()}catch(c){Qe(e,n,c)}}function pi(e,n){try{var u=e.ref;if(u!==null){switch(e.tag){case 26:case 27:case 5:var c=e.stateNode;break;case 30:c=e.stateNode;break;default:c=e.stateNode}typeof u=="function"?e.refCleanup=u(c):u.current=c}}catch(v){Qe(e,n,v)}}function B0(e,n){var u=e.ref,c=e.refCleanup;if(u!==null)if(typeof c=="function")try{c()}catch(v){Qe(e,n,v)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){Qe(e,n,v)}else u.current=null}function Vu(e){var n=e.type,u=e.memoizedProps,c=e.stateNode;try{t:switch(n){case"button":case"input":case"select":case"textarea":u.autoFocus&&c.focus();break t;case"img":u.src?c.src=u.src:u.srcSet&&(c.srcset=u.srcSet)}}catch(v){Qe(e,e.return,v)}}function f0(e,n,u){try{var c=e.stateNode;h7(c,e.type,u,n),c[o0]=n}catch(v){Qe(e,e.return,v)}}function Ca(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vs(e.type)||e.tag===4}function Oe(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||Ca(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&&Vs(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kl(e,n,u){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(e,n):(n=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,n.appendChild(e),u=u._reactRootContainer,u!=null||n.onclick!==null||(n.onclick=li));else if(c!==4&&(c===27&&Vs(e.type)&&(u=e.stateNode,n=null),e=e.child,e!==null))for(kl(e,n,u),e=e.sibling;e!==null;)kl(e,n,u),e=e.sibling}function I0(e,n,u){var c=e.tag;if(c===5||c===6)e=e.stateNode,n?u.insertBefore(e,n):u.appendChild(e);else if(c!==4&&(c===27&&Vs(e.type)&&(u=e.stateNode),e=e.child,e!==null))for(I0(e,n,u),e=e.sibling;e!==null;)I0(e,n,u),e=e.sibling}function oc(e){var n=e.stateNode,u=e.memoizedProps;try{for(var c=e.type,v=n.attributes;v.length;)n.removeAttributeNode(v[0]);an(n,c,u),n[Ya]=e,n[o0]=u}catch(y){Qe(e,e.return,y)}}var Yn=!1,fa=!1,sl=!1,Pf=typeof WeakSet=="function"?WeakSet:Set,_0=null;function b4(e,n){if(e=e.containerInfo,M4=u2,e=$h(e),$c(e)){if("selectionStart"in e)var u={start:e.selectionStart,end:e.selectionEnd};else t:{u=(u=e.ownerDocument)&&u.defaultView||window;var c=u.getSelection&&u.getSelection();if(c&&c.rangeCount!==0){u=c.anchorNode;var v=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{u.nodeType,y.nodeType}catch{u=null;break t}var z=0,R=-1,j=-1,lt=0,mt=0,vt=e,st=null;e:for(;;){for(var ft;vt!==u||v!==0&&vt.nodeType!==3||(R=z+v),vt!==y||c!==0&&vt.nodeType!==3||(j=z+c),vt.nodeType===3&&(z+=vt.nodeValue.length),(ft=vt.firstChild)!==null;)st=vt,vt=ft;for(;;){if(vt===e)break e;if(st===u&&++lt===v&&(R=z),st===y&&++mt===c&&(j=z),(ft=vt.nextSibling)!==null)break;vt=st,st=vt.parentNode}vt=ft}u=R===-1||j===-1?null:{start:R,end:j}}else u=null}u=u||{start:0,end:0}}else u=null;for(A4={focusedElem:e,selectionRange:u},u2=!1,_0=n;_0!==null;)if(n=_0,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,_0=e;else for(;_0!==null;){switch(n=_0,y=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(u=0;u<e.length;u++)v=e[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&y!==null){e=void 0,u=n,v=y.memoizedProps,y=y.memoizedState,c=u.stateNode;try{var It=Ki(u.type,v);e=c.getSnapshotBeforeUpdate(It,y),c.__reactInternalSnapshotBeforeUpdate=e}catch(he){Qe(u,u.return,he)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,u=e.nodeType,u===9)w4(e);else if(u===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":w4(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(i(163))}if(e=n.sibling,e!==null){e.return=n.return,_0=e;break}_0=n.return}}function wa(e,n,u){var c=u.flags;switch(u.tag){case 0:case 11:case 15:Vn(e,u),c&4&&kn(5,u);break;case 1:if(Vn(e,u),c&4)if(e=u.stateNode,n===null)try{e.componentDidMount()}catch(z){Qe(u,u.return,z)}else{var v=Ki(u.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(v,n,e.__reactInternalSnapshotBeforeUpdate)}catch(z){Qe(u,u.return,z)}}c&64&&rl(u),c&512&&pi(u,u.return);break;case 3:if(Vn(e,u),c&64&&(e=u.updateQueue,e!==null)){if(n=null,u.child!==null)switch(u.child.tag){case 27:case 5:n=u.child.stateNode;break;case 1:n=u.child.stateNode}try{cf(e,n)}catch(z){Qe(u,u.return,z)}}break;case 27:n===null&&c&4&&oc(u);case 26:case 5:Vn(e,u),n===null&&c&4&&Vu(u),c&512&&pi(u,u.return);break;case 12:Vn(e,u);break;case 31:Vn(e,u),c&4&&Zi(e,u);break;case 13:Vn(e,u),c&4&&Hs(e,u),c&64&&(e=u.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(u=f.bind(null,u),b7(e,u))));break;case 22:if(c=u.memoizedState!==null||Yn,!c){n=n!==null&&n.memoizedState!==null||fa,v=Yn;var y=fa;Yn=c,(fa=n)&&!y?P0(e,u,(u.subtreeFlags&8772)!==0):Vn(e,u),Yn=v,fa=y}break;case 30:break;default:Vn(e,u)}}function Qu(e){var n=e.alternate;n!==null&&(e.alternate=null,Qu(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&xl(n)),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 ea=null,X0=!1;function Xn(e,n,u){for(u=u.child;u!==null;)cc(e,n,u),u=u.sibling}function cc(e,n,u){if(v0&&typeof v0.onCommitFiberUnmount=="function")try{v0.onCommitFiberUnmount(gl,u)}catch{}switch(u.tag){case 26:fa||B0(u,n),Xn(e,n,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:fa||B0(u,n);var c=ea,v=X0;Vs(u.type)&&(ea=u.stateNode,X0=!1),Xn(e,n,u),I1(u.stateNode),ea=c,X0=v;break;case 5:fa||B0(u,n);case 6:if(c=ea,v=X0,ea=null,Xn(e,n,u),ea=c,X0=v,ea!==null)if(X0)try{(ea.nodeType===9?ea.body:ea.nodeName==="HTML"?ea.ownerDocument.body:ea).removeChild(u.stateNode)}catch(y){Qe(u,n,y)}else try{ea.removeChild(u.stateNode)}catch(y){Qe(u,n,y)}break;case 18:ea!==null&&(X0?(e=ea,N5(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,u.stateNode),yc(e)):N5(ea,u.stateNode));break;case 4:c=ea,v=X0,ea=u.stateNode.containerInfo,X0=!0,Xn(e,n,u),ea=c,X0=v;break;case 0:case 11:case 14:case 15:O0(2,u,n),fa||O0(4,u,n),Xn(e,n,u);break;case 1:fa||(B0(u,n),c=u.stateNode,typeof c.componentWillUnmount=="function"&&E0(u,n,c)),Xn(e,n,u);break;case 21:Xn(e,n,u);break;case 22:fa=(c=fa)||u.memoizedState!==null,Xn(e,n,u),fa=c;break;default:Xn(e,n,u)}}function Zi(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{yc(e)}catch(u){Qe(n,n.return,u)}}}function Hs(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{yc(e)}catch(u){Qe(n,n.return,u)}}function Q1(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Pf),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Pf),n;default:throw Error(i(435,e.tag))}}function vi(e,n){var u=Q1(e);n.forEach(function(c){if(!u.has(c)){u.add(c);var v=m.bind(null,e,c);c.then(v,v)}})}function d0(e,n){var u=n.deletions;if(u!==null)for(var c=0;c<u.length;c++){var v=u[c],y=e,z=n,R=z;t:for(;R!==null;){switch(R.tag){case 27:if(Vs(R.type)){ea=R.stateNode,X0=!1;break t}break;case 5:ea=R.stateNode,X0=!1;break t;case 3:case 4:ea=R.stateNode.containerInfo,X0=!0;break t}R=R.return}if(ea===null)throw Error(i(160));cc(y,z,v),ea=null,X0=!1,y=v.alternate,y!==null&&(y.return=null),v.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Ji(n,e),n=n.sibling}var jn=null;function Ji(e,n){var u=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:d0(n,e),m0(e),c&4&&(O0(3,e,e.return),kn(3,e),O0(5,e,e.return));break;case 1:d0(n,e),m0(e),c&512&&(fa||u===null||B0(u,u.return)),c&64&&Yn&&(e=e.updateQueue,e!==null&&(c=e.callbacks,c!==null&&(u=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=u===null?c:u.concat(c))));break;case 26:var v=jn;if(d0(n,e),m0(e),c&512&&(fa||u===null||B0(u,u.return)),c&4){var y=u!==null?u.memoizedState:null;if(c=e.memoizedState,u===null)if(c===null)if(e.stateNode===null){t:{c=e.type,u=e.memoizedProps,v=v.ownerDocument||v;e:switch(c){case"title":y=v.getElementsByTagName("title")[0],(!y||y[y0]||y[Ya]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=v.createElement(c),v.head.insertBefore(y,v.querySelector("head > title"))),an(y,c,u),y[Ya]=e,K(y),c=y;break t;case"link":var z=X5("link","href",v).get(c+(u.href||""));if(z){for(var R=0;R<z.length;R++)if(y=z[R],y.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&y.getAttribute("rel")===(u.rel==null?null:u.rel)&&y.getAttribute("title")===(u.title==null?null:u.title)&&y.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){z.splice(R,1);break e}}y=v.createElement(c),an(y,c,u),v.head.appendChild(y);break;case"meta":if(z=X5("meta","content",v).get(c+(u.content||""))){for(R=0;R<z.length;R++)if(y=z[R],y.getAttribute("content")===(u.content==null?null:""+u.content)&&y.getAttribute("name")===(u.name==null?null:u.name)&&y.getAttribute("property")===(u.property==null?null:u.property)&&y.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&y.getAttribute("charset")===(u.charSet==null?null:u.charSet)){z.splice(R,1);break e}}y=v.createElement(c),an(y,c,u),v.head.appendChild(y);break;default:throw Error(i(468,c))}y[Ya]=e,K(y),c=y}e.stateNode=c}else j5(v,e.type,e.stateNode);else e.stateNode=Y5(v,c,e.memoizedProps);else y!==c?(y===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):y.count--,c===null?j5(v,e.type,e.stateNode):Y5(v,c,e.memoizedProps)):c===null&&e.stateNode!==null&&f0(e,e.memoizedProps,u.memoizedProps)}break;case 27:d0(n,e),m0(e),c&512&&(fa||u===null||B0(u,u.return)),u!==null&&c&4&&f0(e,e.memoizedProps,u.memoizedProps);break;case 5:if(d0(n,e),m0(e),c&512&&(fa||u===null||B0(u,u.return)),e.flags&32){v=e.stateNode;try{mr(v,"")}catch(It){Qe(e,e.return,It)}}c&4&&e.stateNode!=null&&(v=e.memoizedProps,f0(e,v,u!==null?u.memoizedProps:v)),c&1024&&(sl=!0);break;case 6:if(d0(n,e),m0(e),c&4){if(e.stateNode===null)throw Error(i(162));c=e.memoizedProps,u=e.stateNode;try{u.nodeValue=c}catch(It){Qe(e,e.return,It)}}break;case 3:if(l2=null,v=jn,jn=a2(n.containerInfo),d0(n,e),jn=v,m0(e),c&4&&u!==null&&u.memoizedState.isDehydrated)try{yc(n.containerInfo)}catch(It){Qe(e,e.return,It)}sl&&(sl=!1,hc(e));break;case 4:c=jn,jn=a2(e.stateNode.containerInfo),d0(n,e),m0(e),jn=c;break;case 12:d0(n,e),m0(e);break;case 31:d0(n,e),m0(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,vi(e,c)));break;case 13:d0(n,e),m0(e),e.child.flags&8192&&e.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Gs=Le()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,vi(e,c)));break;case 22:v=e.memoizedState!==null;var j=u!==null&&u.memoizedState!==null,lt=Yn,mt=fa;if(Yn=lt||v,fa=mt||j,d0(n,e),fa=mt,Yn=lt,m0(e),c&8192)t:for(n=e.stateNode,n._visibility=v?n._visibility&-2:n._visibility|1,v&&(u===null||j||Yn||fa||Yl(e)),u=null,n=e;;){if(n.tag===5||n.tag===26){if(u===null){j=u=n;try{if(y=j.stateNode,v)z=y.style,typeof z.setProperty=="function"?z.setProperty("display","none","important"):z.display="none";else{R=j.stateNode;var vt=j.memoizedProps.style,st=vt!=null&&vt.hasOwnProperty("display")?vt.display:null;R.style.display=st==null||typeof st=="boolean"?"":(""+st).trim()}}catch(It){Qe(j,j.return,It)}}}else if(n.tag===6){if(u===null){j=n;try{j.stateNode.nodeValue=v?"":j.memoizedProps}catch(It){Qe(j,j.return,It)}}}else if(n.tag===18){if(u===null){j=n;try{var ft=j.stateNode;v?R5(ft,!0):R5(j.stateNode,!1)}catch(It){Qe(j,j.return,It)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break t;for(;n.sibling===null;){if(n.return===null||n.return===e)break t;u===n&&(u=null),n=n.return}u===n&&(u=null),n.sibling.return=n.return,n=n.sibling}c&4&&(c=e.updateQueue,c!==null&&(u=c.retryQueue,u!==null&&(c.retryQueue=null,vi(e,u))));break;case 19:d0(n,e),m0(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,vi(e,c)));break;case 30:break;case 21:break;default:d0(n,e),m0(e)}}function m0(e){var n=e.flags;if(n&2){try{for(var u,c=e.return;c!==null;){if(Ca(c)){u=c;break}c=c.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var v=u.stateNode,y=Oe(e);I0(e,y,v);break;case 5:var z=u.stateNode;u.flags&32&&(mr(z,""),u.flags&=-33);var R=Oe(e);I0(e,R,z);break;case 3:case 4:var j=u.stateNode.containerInfo,lt=Oe(e);kl(e,lt,j);break;default:throw Error(i(161))}}catch(mt){Qe(e,e.return,mt)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function hc(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;hc(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Vn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)wa(e,n.alternate,n),n=n.sibling}function Yl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:O0(4,n,n.return),Yl(n);break;case 1:B0(n,n.return);var u=n.stateNode;typeof u.componentWillUnmount=="function"&&E0(n,n.return,u),Yl(n);break;case 27:I1(n.stateNode);case 26:case 5:B0(n,n.return),Yl(n);break;case 22:n.memoizedState===null&&Yl(n);break;case 30:Yl(n);break;default:Yl(n)}e=e.sibling}}function P0(e,n,u){for(u=u&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var c=n.alternate,v=e,y=n,z=y.flags;switch(y.tag){case 0:case 11:case 15:P0(v,y,u),kn(4,y);break;case 1:if(P0(v,y,u),c=y,v=c.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(lt){Qe(c,c.return,lt)}if(c=y,v=c.updateQueue,v!==null){var R=c.stateNode;try{var j=v.shared.hiddenCallbacks;if(j!==null)for(v.shared.hiddenCallbacks=null,v=0;v<j.length;v++)ws(j[v],R)}catch(lt){Qe(c,c.return,lt)}}u&&z&64&&rl(y),pi(y,y.return);break;case 27:oc(y);case 26:case 5:P0(v,y,u),u&&c===null&&z&4&&Vu(y),pi(y,y.return);break;case 12:P0(v,y,u);break;case 31:P0(v,y,u),u&&z&4&&Zi(v,y);break;case 13:P0(v,y,u),u&&z&4&&Hs(v,y);break;case 22:y.memoizedState===null&&P0(v,y,u),pi(y,y.return);break;case 30:break;default:P0(v,y,u)}n=n.sibling}}function Fi(e,n){var u=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==u&&(e!=null&&e.refCount++,u!=null&&Tr(u))}function Gr(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Tr(e))}function H0(e,n,u,c){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)K1(e,n,u,c),n=n.sibling}function K1(e,n,u,c){var v=n.flags;switch(n.tag){case 0:case 11:case 15:H0(e,n,u,c),v&2048&&kn(9,n);break;case 1:H0(e,n,u,c);break;case 3:H0(e,n,u,c),v&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Tr(e)));break;case 12:if(v&2048){H0(e,n,u,c),e=n.stateNode;try{var y=n.memoizedProps,z=y.id,R=y.onPostCommit;typeof R=="function"&&R(z,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Qe(n,n.return,j)}}else H0(e,n,u,c);break;case 31:H0(e,n,u,c);break;case 13:H0(e,n,u,c);break;case 23:break;case 22:y=n.stateNode,z=n.alternate,n.memoizedState!==null?y._visibility&2?H0(e,n,u,c):Xl(e,n):y._visibility&2?H0(e,n,u,c):(y._visibility|=2,G0(e,n,u,c,(n.subtreeFlags&10256)!==0||!1)),v&2048&&Fi(z,n);break;case 24:H0(e,n,u,c),v&2048&&Gr(n.alternate,n);break;default:H0(e,n,u,c)}}function G0(e,n,u,c,v){for(v=v&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var y=e,z=n,R=u,j=c,lt=z.flags;switch(z.tag){case 0:case 11:case 15:G0(y,z,R,j,v),kn(8,z);break;case 23:break;case 22:var mt=z.stateNode;z.memoizedState!==null?mt._visibility&2?G0(y,z,R,j,v):Xl(y,z):(mt._visibility|=2,G0(y,z,R,j,v)),v&&lt&2048&&Fi(z.alternate,z);break;case 24:G0(y,z,R,j,v),v&&lt&2048&&Gr(z.alternate,z);break;default:G0(y,z,R,j,v)}n=n.sibling}}function Xl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var u=e,c=n,v=c.flags;switch(c.tag){case 22:Xl(u,c),v&2048&&Fi(c.alternate,c);break;case 24:Xl(u,c),v&2048&&Gr(c.alternate,c);break;default:Xl(u,c)}n=n.sibling}}var Ur=8192;function xn(e,n,u){if(e.subtreeFlags&Ur)for(e=e.child;e!==null;)fc(e,n,u),e=e.sibling}function fc(e,n,u){switch(e.tag){case 26:xn(e,n,u),e.flags&Ur&&e.memoizedState!==null&&N7(u,jn,e.memoizedState,e.memoizedProps);break;case 5:xn(e,n,u);break;case 3:case 4:var c=jn;jn=a2(e.stateNode.containerInfo),xn(e,n,u),jn=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=Ur,Ur=16777216,xn(e,n,u),Ur=c):xn(e,n,u));break;default:xn(e,n,u)}}function qr(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Wi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var u=0;u<n.length;u++){var c=n[u];_0=c,ja(c,e)}qr(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fn(e),e=e.sibling}function fn(e){switch(e.tag){case 0:case 11:case 15:Wi(e),e.flags&2048&&O0(9,e,e.return);break;case 3:Wi(e);break;case 12:Wi(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,$0(e)):Wi(e);break;default:Wi(e)}}function $0(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var u=0;u<n.length;u++){var c=n[u];_0=c,ja(c,e)}qr(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:O0(8,n,n.return),$0(n);break;case 22:u=n.stateNode,u._visibility&2&&(u._visibility&=-3,$0(n));break;default:$0(n)}e=e.sibling}}function ja(e,n){for(;_0!==null;){var u=_0;switch(u.tag){case 0:case 11:case 15:O0(8,u,n);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var c=u.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Tr(u.memoizedState.cache)}if(c=u.child,c!==null)c.return=u,_0=c;else t:for(u=e;_0!==null;){c=_0;var v=c.sibling,y=c.return;if(Qu(c),c===u){_0=null;break t}if(v!==null){v.return=y,_0=v;break t}_0=y}}}var yi={getCacheForType:function(e){var n=fe(n0),u=n.data.get(e);return u===void 0&&(u=e(),n.data.set(e,u)),u},cacheSignal:function(){return fe(n0).controller.signal}},Se=typeof WeakMap=="function"?WeakMap:Map,$t=0,me=null,_e=null,Te=0,ke=0,j0=null,Qn=!1,ul=!1,Z1=!1,Tn=0,Ga=0,jl=0,Ii=0,Ku=0,tn=0,ya=0,Lr=null,Va=null,Qa=!1,Gs=0,J1=0,Pa=1/0,Ua=null,$a=null,aa=0,En=null,Us=null,Kn=0,qs=0,Ls=null,Zu=null,Pi=0,kr=null;function _n(){return($t&2)!==0&&Te!==0?Te&-Te:Q.T!==null?ct():Ci()}function we(){if(tn===0)if((Te&536870912)===0||He){var e=Mi;Mi<<=1,(Mi&3932160)===0&&(Mi=262144),tn=e}else tn=536870912;return e=un.current,e!==null&&(e.flags|=32),tn}function Me(e,n,u){(e===me&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(tr(e,0),i0(e,Te,tn,!1)),Pn(e,u),(($t&2)===0||e!==me)&&(e===me&&(($t&2)===0&&(Ii|=u),Ga===4&&i0(e,Te,tn,!1)),Mt(e))}function De(e,n,u){if(($t&6)!==0)throw Error(i(327));var c=!u&&(n&127)===0&&(n&e.expiredLanes)===0||Ai(e,n),v=c?Ju(e,n):en(e,n,!0),y=c;do{if(v===0){ul&&!c&&i0(e,n,0,!1);break}else{if(u=e.current.alternate,y&&!na(u)){v=en(e,n,!1),y=!1;continue}if(v===2){if(y=n,e.errorRecoveryDisabledLanes&y)var z=0;else z=e.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){n=z;t:{var R=e;v=Lr;var j=R.current.memoizedState.isDehydrated;if(j&&(tr(R,z).flags|=256),z=en(R,z,!1),z!==2){if(Z1&&!j){R.errorRecoveryDisabledLanes|=y,Ii|=y,v=4;break t}y=Va,Va=v,y!==null&&(Va===null?Va=y:Va.push.apply(Va,y))}v=z}if(y=!1,v!==2)continue}}if(v===1){tr(e,0),i0(e,n,0,!0);break}t:{switch(c=e,y=v,y){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:i0(c,n,tn,!Qn);break t;case 2:Va=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(v=Gs+300-Le(),10<v)){if(i0(c,n,tn,!Qn),ti(c,0,!0)!==0)break t;Kn=n,c.timeoutHandle=w5(Be.bind(null,c,u,Va,Ua,Qa,n,tn,Ii,ya,Qn,y,"Throttled",-0,0),v);break t}Be(c,u,Va,Ua,Qa,n,tn,Ii,ya,Qn,y,null,-0,0)}}break}while(!0);Mt(e)}function Be(e,n,u,c,v,y,z,R,j,lt,mt,vt,st,ft){if(e.timeoutHandle=-1,vt=n.subtreeFlags,vt&8192||(vt&16785408)===16785408){vt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:li},fc(n,y,vt);var It=(y&62914560)===y?Gs-Le():(y&4194048)===y?J1-Le():0;if(It=R7(vt,It),It!==null){Kn=y,e.cancelPendingCommit=It(Si.bind(null,e,n,y,u,c,v,z,R,j,mt,vt,null,st,ft)),i0(e,y,z,!lt);return}}Si(e,n,y,u,c,v,z,R,j)}function na(e){for(var n=e;;){var u=n.tag;if((u===0||u===11||u===15)&&n.flags&16384&&(u=n.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var c=0;c<u.length;c++){var v=u[c],y=v.getSnapshot;v=v.value;try{if(!Z0(y(),v))return!1}catch{return!1}}if(u=n.child,n.subtreeFlags&16384&&u!==null)u.return=n,n=u;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function i0(e,n,u,c){n&=~Ku,n&=~Ii,e.suspendedLanes|=n,e.pingedLanes&=~n,c&&(e.warmLanes|=n),c=e.expirationTimes;for(var v=n;0<v;){var y=31-Q0(v),z=1<<y;c[y]=-1,v&=~z}u!==0&&ei(e,u,n)}function ol(){return($t&6)===0?(Qt(0),!1):!0}function $i(){if(_e!==null){if(ke===0)var e=_e.return;else e=_e,Ol=Li=null,v1(e),zr=null,Cr=0,e=_e;for(;e!==null;)Sn(e.alternate,e),e=e.return;_e=null}}function tr(e,n){var u=e.timeoutHandle;u!==-1&&(e.timeoutHandle=-1,m7(u)),u=e.cancelPendingCommit,u!==null&&(e.cancelPendingCommit=null,u()),Kn=0,$i(),me=e,_e=u=ln(e.current,null),Te=n,ke=0,j0=null,Qn=!1,ul=Ai(e,n),Z1=!1,ya=tn=Ku=Ii=jl=Ga=0,Va=Lr=null,Qa=!1,(n&8)!==0&&(n|=n&32);var c=e.entangledLanes;if(c!==0)for(e=e.entanglements,c&=n;0<c;){var v=31-Q0(c),y=1<<v;n|=e[v],c&=~y}return Tn=n,zu(),u}function Vl(e,n){be=null,Q.H=Os,n===Er||n===Ee?(n=Mr(),ke=3):n===Nu?(n=Mr(),ke=4):ke=n===tc?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,j0=n,_e===null&&(Ga=1,$o(e,pn(n,e.current)))}function qa(){var e=un.current;return e===null?!0:(Te&4194048)===Te?W0===null:(Te&62914560)===Te||(Te&536870912)!==0?e===W0:!1}function bi(){var e=Q.H;return Q.H=Os,e===null?Os:e}function er(){var e=Q.A;return Q.A=yi,e}function ks(){Ga=4,Qn||(Te&4194048)!==Te&&un.current!==null||(ul=!0),(jl&134217727)===0&&(Ii&134217727)===0||me===null||i0(me,Te,tn,!1)}function en(e,n,u){var c=$t;$t|=2;var v=bi(),y=er();(me!==e||Te!==n)&&(Ua=null,tr(e,n)),n=!1;var z=Ga;t:do try{if(ke!==0&&_e!==null){var R=_e,j=j0;switch(ke){case 8:$i(),z=6;break t;case 3:case 2:case 9:case 6:un.current===null&&(n=!0);var lt=ke;if(ke=0,j0=null,Yr(e,R,j,lt),u&&ul){z=0;break t}break;default:lt=ke,ke=0,j0=null,Yr(e,R,j,lt)}}Ys(),z=Ga;break}catch(mt){Vl(e,mt)}while(!0);return n&&e.shellSuspendCounter++,Ol=Li=null,$t=c,Q.H=v,Q.A=y,_e===null&&(me=null,Te=0,zu()),z}function Ys(){for(;_e!==null;)dc(_e)}function Ju(e,n){var u=$t;$t|=2;var c=bi(),v=er();me!==e||Te!==n?(Ua=null,Pa=Le()+500,tr(e,n)):ul=Ai(e,n);t:do try{if(ke!==0&&_e!==null){n=_e;var y=j0;e:switch(ke){case 1:ke=0,j0=null,Yr(e,n,y,1);break;case 2:case 9:if(sn(y)){ke=0,j0=null,Fu(n);break}n=function(){ke!==2&&ke!==9||me!==e||(ke=7),Mt(e)},y.then(n,n);break t;case 3:ke=7;break t;case 4:ke=5;break t;case 7:sn(y)?(ke=0,j0=null,Fu(n)):(ke=0,j0=null,Yr(e,n,y,7));break;case 5:var z=null;switch(_e.tag){case 26:z=_e.memoizedState;case 5:case 27:var R=_e;if(z?V5(z):R.stateNode.complete){ke=0,j0=null;var j=R.sibling;if(j!==null)_e=j;else{var lt=R.return;lt!==null?(_e=lt,ar(lt)):_e=null}break e}}ke=0,j0=null,Yr(e,n,y,5);break;case 6:ke=0,j0=null,Yr(e,n,y,6);break;case 8:$i(),Ga=6;break t;default:throw Error(i(462))}}dn();break}catch(mt){Vl(e,mt)}while(!0);return Ol=Li=null,Q.H=c,Q.A=v,$t=u,_e!==null?0:(me=null,Te=0,zu(),Ga)}function dn(){for(;_e!==null&&!p0();)dc(_e)}function dc(e){var n=uc(e.alternate,e,Tn);e.memoizedProps=e.pendingProps,n===null?ar(e):_e=n}function Fu(e){var n=e,u=n.alternate;switch(n.tag){case 15:case 0:n=ku(u,n,n.pendingProps,n.type,void 0,Te);break;case 11:n=ku(u,n,n.pendingProps,n.type.render,n.ref,Te);break;case 5:v1(n);default:Sn(u,n),n=_e=bs(n,Tn),n=uc(u,n,Tn)}e.memoizedProps=e.pendingProps,n===null?ar(e):_e=n}function Yr(e,n,u,c){Ol=Li=null,v1(n),zr=null,Cr=0;var v=n.return;try{if(h0(e,v,n,u,Te)){Ga=1,$o(e,pn(u,e.current)),_e=null;return}}catch(y){if(v!==null)throw _e=v,y;Ga=1,$o(e,pn(u,e.current)),_e=null;return}n.flags&32768?(He||c===1?e=!0:ul||(Te&536870912)!==0?e=!1:(Qn=e=!0,(c===2||c===9||c===3||c===6)&&(c=un.current,c!==null&&c.tag===13&&(c.flags|=16384))),Wu(n,e)):ar(n)}function ar(e){var n=e;do{if((n.flags&32768)!==0){Wu(n,Qn);return}e=n.return;var u=ju(n.alternate,n,Tn);if(u!==null){_e=u;return}if(n=n.sibling,n!==null){_e=n;return}_e=n=e}while(n!==null);Ga===0&&(Ga=5)}function Wu(e,n){do{var u=Ln(e.alternate,e);if(u!==null){u.flags&=32767,_e=u;return}if(u=e.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!n&&(e=e.sibling,e!==null)){_e=e;return}_e=e=u}while(e!==null);Ga=6,_e=null}function Si(e,n,u,c,v,y,z,R,j){e.cancelPendingCommit=null;do Xs();while(aa!==0);if(($t&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(y=n.lanes|n.childLanes,y|=S0,zi(e,u,y,z,R,j),e===me&&(_e=me=null,Te=0),Us=n,En=e,Kn=u,qs=y,Ls=v,Zu=c,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,S(pa,function(){return mc(),null})):(e.callbackNode=null,e.callbackPriority=0),c=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||c){c=Q.T,Q.T=null,v=pt.p,pt.p=2,z=$t,$t|=4;try{b4(e,n,u)}finally{$t=z,pt.p=v,Q.T=c}}aa=1,r0(),xi(),Xr()}}function r0(){if(aa===1){aa=0;var e=En,n=Us,u=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||u){u=Q.T,Q.T=null;var c=pt.p;pt.p=2;var v=$t;$t|=4;try{Ji(n,e);var y=A4,z=$h(e.containerInfo),R=y.focusedElem,j=y.selectionRange;if(z!==R&&R&&R.ownerDocument&&ca(R.ownerDocument.documentElement,R)){if(j!==null&&$c(R)){var lt=j.start,mt=j.end;if(mt===void 0&&(mt=lt),"selectionStart"in R)R.selectionStart=lt,R.selectionEnd=Math.min(mt,R.value.length);else{var vt=R.ownerDocument||document,st=vt&&vt.defaultView||window;if(st.getSelection){var ft=st.getSelection(),It=R.textContent.length,he=Math.min(j.start,It),ma=j.end===void 0?he:Math.min(j.end,It);!ft.extend&&he>ma&&(z=ma,ma=he,he=z);var I=ps(R,he),J=ps(R,ma);if(I&&J&&(ft.rangeCount!==1||ft.anchorNode!==I.node||ft.anchorOffset!==I.offset||ft.focusNode!==J.node||ft.focusOffset!==J.offset)){var at=vt.createRange();at.setStart(I.node,I.offset),ft.removeAllRanges(),he>ma?(ft.addRange(at),ft.extend(J.node,J.offset)):(at.setEnd(J.node,J.offset),ft.addRange(at))}}}}for(vt=[],ft=R;ft=ft.parentNode;)ft.nodeType===1&&vt.push({element:ft,left:ft.scrollLeft,top:ft.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<vt.length;R++){var gt=vt[R];gt.element.scrollLeft=gt.left,gt.element.scrollTop=gt.top}}u2=!!M4,A4=M4=null}finally{$t=v,pt.p=c,Q.T=u}}e.current=n,aa=2}}function xi(){if(aa===2){aa=0;var e=En,n=Us,u=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||u){u=Q.T,Q.T=null;var c=pt.p;pt.p=2;var v=$t;$t|=4;try{wa(e,n.alternate,n)}finally{$t=v,pt.p=c,Q.T=u}}aa=3}}function Xr(){if(aa===4||aa===3){aa=0,ga();var e=En,n=Us,u=Kn,c=Zu;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?aa=5:(aa=0,Us=En=null,Ql(e,e.pendingLanes));var v=e.pendingLanes;if(v===0&&($a=null),tl(u),n=n.stateNode,v0&&typeof v0.onCommitFiberRoot=="function")try{v0.onCommitFiberRoot(gl,n,void 0,(n.current.flags&128)===128)}catch{}if(c!==null){n=Q.T,v=pt.p,pt.p=2,Q.T=null;try{for(var y=e.onRecoverableError,z=0;z<c.length;z++){var R=c[z];y(R.value,{componentStack:R.stack})}}finally{Q.T=n,pt.p=v}}(Kn&3)!==0&&Xs(),Mt(e),v=e.pendingLanes,(u&261930)!==0&&(v&42)!==0?e===kr?Pi++:(Pi=0,kr=e):Pi=0,Qt(0)}}function Ql(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Tr(n)))}function Xs(){return r0(),xi(),Xr(),mc()}function mc(){if(aa!==5)return!1;var e=En,n=qs;qs=0;var u=tl(Kn),c=Q.T,v=pt.p;try{pt.p=32>u?32:u,Q.T=null,u=Ls,Ls=null;var y=En,z=Kn;if(aa=0,Us=En=null,Kn=0,($t&6)!==0)throw Error(i(331));var R=$t;if($t|=4,fn(y.current),K1(y,y.current,z,u),$t=R,Qt(0,!1),v0&&typeof v0.onPostCommitFiberRoot=="function")try{v0.onPostCommitFiberRoot(gl,y)}catch{}return!0}finally{pt.p=v,Q.T=c,Ql(e,n)}}function F1(e,n,u){n=pn(u,n),n=L1(e.stateNode,n,2),e=Xi(e,n,2),e!==null&&(Pn(e,2),Mt(e))}function Qe(e,n,u){if(e.tag===3)F1(e,e,u);else for(;n!==null;){if(n.tag===3){F1(n,e,u);break}else if(n.tag===1){var c=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&($a===null||!$a.has(c))){e=pn(u,e),u=k1(2),c=Xi(n,u,2),c!==null&&(Zf(u,c,n,e),Pn(c,2),Mt(c));break}}n=n.return}}function Iu(e,n,u){var c=e.pingCache;if(c===null){c=e.pingCache=new Se;var v=new Set;c.set(n,v)}else v=c.get(n),v===void 0&&(v=new Set,c.set(n,v));v.has(u)||(Z1=!0,v.add(u),e=l.bind(null,e,n,u),n.then(e,e))}function l(e,n,u){var c=e.pingCache;c!==null&&c.delete(n),e.pingedLanes|=e.suspendedLanes&u,e.warmLanes&=~u,me===e&&(Te&u)===u&&(Ga===4||Ga===3&&(Te&62914560)===Te&&300>Le()-Gs?($t&2)===0&&tr(e,0):Ku|=u,ya===Te&&(ya=0)),Mt(e)}function r(e,n){n===0&&(n=vl()),e=J0(e,n),e!==null&&(Pn(e,n),Mt(e))}function f(e){var n=e.memoizedState,u=0;n!==null&&(u=n.retryLane),r(e,u)}function m(e,n){var u=0;switch(e.tag){case 31:case 13:var c=e.stateNode,v=e.memoizedState;v!==null&&(u=v.retryLane);break;case 19:c=e.stateNode;break;case 22:c=e.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(n),r(e,u)}function S(e,n){return w0(e,n)}var T=null,N=null,V=!1,ht=!1,xt=!1,Ht=0;function Mt(e){e!==N&&e.next===null&&(N===null?T=N=e:N=N.next=e),ht=!0,V||(V=!0,$())}function Qt(e,n){if(!xt&&ht){xt=!0;do for(var u=!1,c=T;c!==null;){if(e!==0){var v=c.pendingLanes;if(v===0)var y=0;else{var z=c.suspendedLanes,R=c.pingedLanes;y=(1<<31-Q0(42|e)+1)-1,y&=v&~(z&~R),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(u=!0,it(c,y))}else y=Te,y=ti(c,c===me?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(y&3)===0||Ai(c,y)||(u=!0,it(c,y));c=c.next}while(u);xt=!1}}function ye(){M0()}function M0(){ht=V=!1;var e=0;Ht!==0&&d7()&&(e=Ht);for(var n=Le(),u=null,c=T;c!==null;){var v=c.next,y=js(c,n);y===0?(c.next=null,u===null?T=v:u.next=v,v===null&&(N=u)):(u=c,(e!==0||(y&3)!==0)&&(ht=!0)),c=v}aa!==0&&aa!==5||Qt(e),Ht!==0&&(Ht=0)}function js(e,n){for(var u=e.suspendedLanes,c=e.pingedLanes,v=e.expirationTimes,y=e.pendingLanes&-62914561;0<y;){var z=31-Q0(y),R=1<<z,j=v[z];j===-1?((R&u)===0||(R&c)!==0)&&(v[z]=uo(R,n)):j<=n&&(e.expiredLanes|=R),y&=~R}if(n=me,u=Te,u=ti(e,e===n?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c=e.callbackNode,u===0||e===n&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return c!==null&&c!==null&&D0(c),e.callbackNode=null,e.callbackPriority=0;if((u&3)===0||Ai(e,u)){if(n=u&-u,n===e.callbackPriority)return n;switch(c!==null&&D0(c),tl(u)){case 2:case 8:u=xa;break;case 32:u=pa;break;case 268435456:u=u0;break;default:u=pa}return c=nr.bind(null,e),u=w0(u,c),e.callbackPriority=n,e.callbackNode=u,n}return c!==null&&c!==null&&D0(c),e.callbackPriority=2,e.callbackNode=null,2}function nr(e,n){if(aa!==0&&aa!==5)return e.callbackNode=null,e.callbackPriority=0,null;var u=e.callbackNode;if(Xs()&&e.callbackNode!==u)return null;var c=Te;return c=ti(e,e===me?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c===0?null:(De(e,c,n),js(e,Le()),e.callbackNode!=null&&e.callbackNode===u?nr.bind(null,e):null)}function it(e,n){if(Xs())return null;De(e,n,!0)}function $(){g7(function(){($t&6)!==0?w0(L0,ye):M0()})}function ct(){if(Ht===0){var e=ci;e===0&&(e=ns,ns<<=1,(ns&261888)===0&&(ns=256)),Ht=e}return Ht}function Rt(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:du(""+e)}function re(e,n){var u=n.ownerDocument.createElement("input");return u.name=n.name,u.value=n.value,e.id&&u.setAttribute("form",e.id),n.parentNode.insertBefore(u,n),e=new FormData(e),u.parentNode.removeChild(u),e}function La(e,n,u,c,v){if(n==="submit"&&u&&u.stateNode===v){var y=Rt((v[o0]||null).action),z=c.submitter;z&&(n=(n=z[o0]||null)?Rt(n.formAction):z.getAttribute("formAction"),n!==null&&(y=n,z=null));var R=new pu("action","action",null,c,v);e.push({event:R,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ht!==0){var j=z?re(v,z):new FormData(v);N1(u,{pending:!0,data:j,method:v.method,action:y},null,j)}}else typeof y=="function"&&(R.preventDefault(),j=z?re(v,z):new FormData(v),N1(u,{pending:!0,data:j,method:v.method,action:y},y,j))},currentTarget:v}]})}}for(var se=0;se<Mu.length;se++){var je=Mu[se],A0=je.toLowerCase(),Ze=je[0].toUpperCase()+je.slice(1);Rn(A0,"on"+Ze)}Rn(zo,"onAnimationEnd"),Rn(_u,"onAnimationIteration"),Rn(e1,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(ef,"onTransitionRun"),Rn(h4,"onTransitionStart"),Rn(af,"onTransitionCancel"),Rn(a1,"onTransitionEnd"),ce("onMouseEnter",["mouseout","mouseover"]),ce("onMouseLeave",["mouseout","mouseover"]),ce("onPointerEnter",["pointerout","pointerover"]),ce("onPointerLeave",["pointerout","pointerover"]),ne("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ne("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ne("onBeforeInput",["compositionend","keypress","textInput","paste"]),ne("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ne("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ne("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zn="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(" "),S4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zn));function x5(e,n){n=(n&4)!==0;for(var u=0;u<e.length;u++){var c=e[u],v=c.event;c=c.listeners;t:{var y=void 0;if(n)for(var z=c.length-1;0<=z;z--){var R=c[z],j=R.instance,lt=R.currentTarget;if(R=R.listener,j!==y&&v.isPropagationStopped())break t;y=R,v.currentTarget=lt;try{y(v)}catch(mt){Au(mt)}v.currentTarget=null,y=j}else for(z=0;z<c.length;z++){if(R=c[z],j=R.instance,lt=R.currentTarget,R=R.listener,j!==y&&v.isPropagationStopped())break t;y=R,v.currentTarget=lt;try{y(v)}catch(mt){Au(mt)}v.currentTarget=null,y=j}}}}function Ye(e,n){var u=n[Cn];u===void 0&&(u=n[Cn]=new Set);var c=e+"__bubble";u.has(c)||(T5(n,e,2,!1),u.add(c))}function x4(e,n,u){var c=0;n&&(c|=4),T5(u,e,c,n)}var $f="_reactListening"+Math.random().toString(36).slice(2);function T4(e){if(!e[$f]){e[$f]=!0,Yt.forEach(function(u){u!=="selectionchange"&&(S4.has(u)||x4(u,!1,e),x4(u,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[$f]||(n[$f]=!0,x4("selectionchange",!1,n))}}function T5(e,n,u,c){switch(I5(n)){case 2:var v=H7;break;case 8:v=G7;break;default:v=U4}u=v.bind(null,n,u,e),v=void 0,!Uc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(v=!0),c?v!==void 0?e.addEventListener(n,u,{capture:!0,passive:v}):e.addEventListener(n,u,!0):v!==void 0?e.addEventListener(n,u,{passive:v}):e.addEventListener(n,u,!1)}function E4(e,n,u,c,v){var y=c;if((n&1)===0&&(n&2)===0&&c!==null)t:for(;;){if(c===null)return;var z=c.tag;if(z===3||z===4){var R=c.stateNode.containerInfo;if(R===v)break;if(z===4)for(z=c.return;z!==null;){var j=z.tag;if((j===3||j===4)&&z.stateNode.containerInfo===v)return;z=z.return}for(;R!==null;){if(z=Tl(R),z===null)return;if(j=z.tag,j===5||j===6||j===26||j===27){c=y=z;continue t}R=R.parentNode}}c=c.return}Gc(function(){var lt=y,mt=mo(u),vt=[];t:{var st=Nn.get(e);if(st!==void 0){var ft=pu,It=e;switch(e){case"keypress":if(gu(u)===0)break t;case"keydown":case"keyup":ft=vr;break;case"focusin":It="focus",ft=yo;break;case"focusout":It="blur",ft=yo;break;case"beforeblur":case"afterblur":ft=yo;break;case"click":if(u.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ft=qc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ft=Hh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ft=Yh;break;case zo:case _u:case e1:ft=u4;break;case a1:ft=c4;break;case"scroll":case"scrollend":ft=Oh;break;case"wheel":ft=jh;break;case"copy":case"cut":case"paste":ft=Uh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ft=Yc;break;case"toggle":case"beforetoggle":ft=Qh}var he=(n&4)!==0,ma=!he&&(e==="scroll"||e==="scrollend"),I=he?st!==null?st+"Capture":null:st;he=[];for(var J=lt,at;J!==null;){var gt=J;if(at=gt.stateNode,gt=gt.tag,gt!==5&&gt!==26&&gt!==27||at===null||I===null||(gt=ss(J,I),gt!=null&&he.push(W1(J,gt,at))),ma)break;J=J.return}0<he.length&&(st=new ft(st,It,null,u,mt),vt.push({event:st,listeners:he}))}}if((n&7)===0){t:{if(st=e==="mouseover"||e==="pointerover",ft=e==="mouseout"||e==="pointerout",st&&u!==fo&&(It=u.relatedTarget||u.fromElement)&&(Tl(It)||It[bl]))break t;if((ft||st)&&(st=mt.window===mt?mt:(st=mt.ownerDocument)?st.defaultView||st.parentWindow:window,ft?(It=u.relatedTarget||u.toElement,ft=lt,It=It?Tl(It):null,It!==null&&(ma=h(It),he=It.tag,It!==ma||he!==5&&he!==27&&he!==6)&&(It=null)):(ft=null,It=lt),ft!==It)){if(he=qc,gt="onMouseLeave",I="onMouseEnter",J="mouse",(e==="pointerout"||e==="pointerover")&&(he=Yc,gt="onPointerLeave",I="onPointerEnter",J="pointer"),ma=ft==null?st:ai(ft),at=It==null?st:ai(It),st=new he(gt,J+"leave",ft,u,mt),st.target=ma,st.relatedTarget=at,gt=null,Tl(mt)===lt&&(he=new he(I,J+"enter",It,u,mt),he.target=at,he.relatedTarget=ma,gt=he),ma=gt,ft&&It)e:{for(he=u7,I=ft,J=It,at=0,gt=I;gt;gt=he(gt))at++;gt=0;for(var ie=J;ie;ie=he(ie))gt++;for(;0<at-gt;)I=he(I),at--;for(;0<gt-at;)J=he(J),gt--;for(;at--;){if(I===J||J!==null&&I===J.alternate){he=I;break e}I=he(I),J=he(J)}he=null}else he=null;ft!==null&&E5(vt,st,ft,he,!1),It!==null&&ma!==null&&E5(vt,ma,It,he,!0)}}t:{if(st=lt?ai(lt):window,ft=st.nodeName&&st.nodeName.toLowerCase(),ft==="select"||ft==="input"&&st.type==="file")var Ie=Jc;else if(Zc(st))if(Ml)Ie=Ph;else{Ie=Ic;var Pt=Wh}else ft=st.nodeName,!ft||ft.toLowerCase()!=="input"||st.type!=="checkbox"&&st.type!=="radio"?lt&&ho(lt.elementType)&&(Ie=Jc):Ie=Ih;if(Ie&&(Ie=Ie(e,lt))){Mo(vt,Ie,u,mt);break t}Pt&&Pt(e,st,lt),e==="focusout"&&lt&&st.type==="number"&&lt.memoizedProps.value!=null&&ll(st,"number",st.value)}switch(Pt=lt?ai(lt):window,e){case"focusin":(Zc(Pt)||Pt.contentEditable==="true")&&(Al=Pt,zl=lt,vs=null);break;case"focusout":vs=zl=Al=null;break;case"mousedown":Ao=!0;break;case"contextmenu":case"mouseup":case"dragend":Ao=!1,ys(vt,u,mt);break;case"selectionchange":if(tf)break;case"keydown":case"keyup":ys(vt,u,mt)}var ze;if(yr)t:{switch(e){case"compositionstart":var Ve="onCompositionStart";break t;case"compositionend":Ve="onCompositionEnd";break t;case"compositionupdate":Ve="onCompositionUpdate";break t}Ve=void 0}else br?_o(e,u)&&(Ve="onCompositionEnd"):e==="keydown"&&u.keyCode===229&&(Ve="onCompositionStart");Ve&&(jc&&u.locale!=="ko"&&(br||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&br&&(ze=mu()):(gn=mt,po="value"in gn?gn.value:gn.textContent,br=!0)),Pt=t2(lt,Ve),0<Pt.length&&(Ve=new bo(Ve,e,null,u,mt),vt.push({event:Ve,listeners:Pt}),ze?Ve.data=ze:(ze=Vc(u),ze!==null&&(Ve.data=ze)))),(ze=Eo?Jh(e,u):Qc(e,u))&&(Ve=t2(lt,"onBeforeInput"),0<Ve.length&&(Pt=new bo("onBeforeInput","beforeinput",null,u,mt),vt.push({event:Pt,listeners:Ve}),Pt.data=ze)),La(vt,e,lt,u,mt)}x5(vt,n)})}function W1(e,n,u){return{instance:e,listener:n,currentTarget:u}}function t2(e,n){for(var u=n+"Capture",c=[];e!==null;){var v=e,y=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||y===null||(v=ss(e,u),v!=null&&c.unshift(W1(e,v,y)),v=ss(e,n),v!=null&&c.push(W1(e,v,y))),e.tag===3)return c;e=e.return}return[]}function u7(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function E5(e,n,u,c,v){for(var y=n._reactName,z=[];u!==null&&u!==c;){var R=u,j=R.alternate,lt=R.stateNode;if(R=R.tag,j!==null&&j===c)break;R!==5&&R!==26&&R!==27||lt===null||(j=lt,v?(lt=ss(u,y),lt!=null&&z.unshift(W1(u,lt,j))):v||(lt=ss(u,y),lt!=null&&z.push(W1(u,lt,j)))),u=u.return}z.length!==0&&e.push({event:n,listeners:z})}var o7=/\r\n?/g,c7=/\u0000|\uFFFD/g;function _5(e){return(typeof e=="string"?e:""+e).replace(o7,`
9
+ `).replace(c7,"")}function M5(e,n){return n=_5(n),_5(e)===n}function da(e,n,u,c,v,y){switch(u){case"children":typeof c=="string"?n==="body"||n==="textarea"&&c===""||mr(e,c):(typeof c=="number"||typeof c=="bigint")&&n!=="body"&&mr(e,""+c);break;case"className":ra(e,"class",c);break;case"tabIndex":ra(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":ra(e,u,c);break;case"style":Oc(e,c,y);break;case"data":if(n!=="object"){ra(e,"data",c);break}case"src":case"href":if(c===""&&(n!=="a"||u!=="href")){e.removeAttribute(u);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(u);break}c=du(""+c),e.setAttribute(u,c);break;case"action":case"formAction":if(typeof c=="function"){e.setAttribute(u,"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 y=="function"&&(u==="formAction"?(n!=="input"&&da(e,n,"name",v.name,v,null),da(e,n,"formEncType",v.formEncType,v,null),da(e,n,"formMethod",v.formMethod,v,null),da(e,n,"formTarget",v.formTarget,v,null)):(da(e,n,"encType",v.encType,v,null),da(e,n,"method",v.method,v,null),da(e,n,"target",v.target,v,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(u);break}c=du(""+c),e.setAttribute(u,c);break;case"onClick":c!=null&&(e.onclick=li);break;case"onScroll":c!=null&&Ye("scroll",e);break;case"onScrollEnd":c!=null&&Ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(u=c.__html,u!=null){if(v.children!=null)throw Error(i(60));e.innerHTML=u}}break;case"multiple":e.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":e.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){e.removeAttribute("xlink:href");break}u=du(""+c),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(u,""+c):e.removeAttribute(u);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":c&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(u,""):e.removeAttribute(u);break;case"capture":case"download":c===!0?e.setAttribute(u,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(u,c):e.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?e.setAttribute(u,c):e.removeAttribute(u);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?e.removeAttribute(u):e.setAttribute(u,c);break;case"popover":Ye("beforetoggle",e),Ye("toggle",e),Ea(e,"popover",c);break;case"xlinkActuate":_a(e,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":_a(e,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":_a(e,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":_a(e,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":_a(e,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":_a(e,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":_a(e,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":_a(e,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":_a(e,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Ea(e,"is",c);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Nh.get(u)||u,Ea(e,u,c))}}function _4(e,n,u,c,v,y){switch(u){case"style":Oc(e,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(u=c.__html,u!=null){if(v.children!=null)throw Error(i(60));e.innerHTML=u}}break;case"children":typeof c=="string"?mr(e,c):(typeof c=="number"||typeof c=="bigint")&&mr(e,""+c);break;case"onScroll":c!=null&&Ye("scroll",e);break;case"onScrollEnd":c!=null&&Ye("scrollend",e);break;case"onClick":c!=null&&(e.onclick=li);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ee.hasOwnProperty(u))t:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),n=u.slice(2,v?u.length-7:void 0),y=e[o0]||null,y=y!=null?y[u]:null,typeof y=="function"&&e.removeEventListener(n,y,v),typeof c=="function")){typeof y!="function"&&y!==null&&(u in e?e[u]=null:e.hasAttribute(u)&&e.removeAttribute(u)),e.addEventListener(n,c,v);break t}u in e?e[u]=c:c===!0?e.setAttribute(u,""):Ea(e,u,c)}}}function an(e,n,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",e),Ye("load",e);var c=!1,v=!1,y;for(y in u)if(u.hasOwnProperty(y)){var z=u[y];if(z!=null)switch(y){case"src":c=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:da(e,n,y,z,u,null)}}v&&da(e,n,"srcSet",u.srcSet,u,null),c&&da(e,n,"src",u.src,u,null);return;case"input":Ye("invalid",e);var R=y=z=v=null,j=null,lt=null;for(c in u)if(u.hasOwnProperty(c)){var mt=u[c];if(mt!=null)switch(c){case"name":v=mt;break;case"type":z=mt;break;case"checked":j=mt;break;case"defaultChecked":lt=mt;break;case"value":y=mt;break;case"defaultValue":R=mt;break;case"children":case"dangerouslySetInnerHTML":if(mt!=null)throw Error(i(137,n));break;default:da(e,n,c,mt,u,null)}}rs(e,y,R,j,lt,z,v,!1);return;case"select":Ye("invalid",e),c=z=y=null;for(v in u)if(u.hasOwnProperty(v)&&(R=u[v],R!=null))switch(v){case"value":y=R;break;case"defaultValue":z=R;break;case"multiple":c=R;default:da(e,n,v,R,u,null)}n=y,u=z,e.multiple=!!c,n!=null?ni(e,!!c,n,!1):u!=null&&ni(e,!!c,u,!0);return;case"textarea":Ye("invalid",e),y=v=c=null;for(z in u)if(u.hasOwnProperty(z)&&(R=u[z],R!=null))switch(z){case"value":c=R;break;case"defaultValue":v=R;break;case"children":y=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:da(e,n,z,R,u,null)}co(e,c,v,y);return;case"option":for(j in u)if(u.hasOwnProperty(j)&&(c=u[j],c!=null))switch(j){case"selected":e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:da(e,n,j,c,u,null)}return;case"dialog":Ye("beforetoggle",e),Ye("toggle",e),Ye("cancel",e),Ye("close",e);break;case"iframe":case"object":Ye("load",e);break;case"video":case"audio":for(c=0;c<Zn.length;c++)Ye(Zn[c],e);break;case"image":Ye("error",e),Ye("load",e);break;case"details":Ye("toggle",e);break;case"embed":case"source":case"link":Ye("error",e),Ye("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(lt in u)if(u.hasOwnProperty(lt)&&(c=u[lt],c!=null))switch(lt){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:da(e,n,lt,c,u,null)}return;default:if(ho(n)){for(mt in u)u.hasOwnProperty(mt)&&(c=u[mt],c!==void 0&&_4(e,n,mt,c,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(c=u[R],c!=null&&da(e,n,R,c,u,null))}function h7(e,n,u,c){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,y=null,z=null,R=null,j=null,lt=null,mt=null;for(ft in u){var vt=u[ft];if(u.hasOwnProperty(ft)&&vt!=null)switch(ft){case"checked":break;case"value":break;case"defaultValue":j=vt;default:c.hasOwnProperty(ft)||da(e,n,ft,null,c,vt)}}for(var st in c){var ft=c[st];if(vt=u[st],c.hasOwnProperty(st)&&(ft!=null||vt!=null))switch(st){case"type":y=ft;break;case"name":v=ft;break;case"checked":lt=ft;break;case"defaultChecked":mt=ft;break;case"value":z=ft;break;case"defaultValue":R=ft;break;case"children":case"dangerouslySetInnerHTML":if(ft!=null)throw Error(i(137,n));break;default:ft!==vt&&da(e,n,st,ft,c,vt)}}wi(e,z,R,j,lt,mt,y,v);return;case"select":ft=z=R=st=null;for(y in u)if(j=u[y],u.hasOwnProperty(y)&&j!=null)switch(y){case"value":break;case"multiple":ft=j;default:c.hasOwnProperty(y)||da(e,n,y,null,c,j)}for(v in c)if(y=c[v],j=u[v],c.hasOwnProperty(v)&&(y!=null||j!=null))switch(v){case"value":st=y;break;case"defaultValue":R=y;break;case"multiple":z=y;default:y!==j&&da(e,n,v,y,c,j)}n=R,u=z,c=ft,st!=null?ni(e,!!u,st,!1):!!c!=!!u&&(n!=null?ni(e,!!u,n,!0):ni(e,!!u,u?[]:"",!1));return;case"textarea":ft=st=null;for(R in u)if(v=u[R],u.hasOwnProperty(R)&&v!=null&&!c.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:da(e,n,R,null,c,v)}for(z in c)if(v=c[z],y=u[z],c.hasOwnProperty(z)&&(v!=null||y!=null))switch(z){case"value":st=v;break;case"defaultValue":ft=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(i(91));break;default:v!==y&&da(e,n,z,v,c,y)}oo(e,st,ft);return;case"option":for(var It in u)if(st=u[It],u.hasOwnProperty(It)&&st!=null&&!c.hasOwnProperty(It))switch(It){case"selected":e.selected=!1;break;default:da(e,n,It,null,c,st)}for(j in c)if(st=c[j],ft=u[j],c.hasOwnProperty(j)&&st!==ft&&(st!=null||ft!=null))switch(j){case"selected":e.selected=st&&typeof st!="function"&&typeof st!="symbol";break;default:da(e,n,j,st,c,ft)}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 he in u)st=u[he],u.hasOwnProperty(he)&&st!=null&&!c.hasOwnProperty(he)&&da(e,n,he,null,c,st);for(lt in c)if(st=c[lt],ft=u[lt],c.hasOwnProperty(lt)&&st!==ft&&(st!=null||ft!=null))switch(lt){case"children":case"dangerouslySetInnerHTML":if(st!=null)throw Error(i(137,n));break;default:da(e,n,lt,st,c,ft)}return;default:if(ho(n)){for(var ma in u)st=u[ma],u.hasOwnProperty(ma)&&st!==void 0&&!c.hasOwnProperty(ma)&&_4(e,n,ma,void 0,c,st);for(mt in c)st=c[mt],ft=u[mt],!c.hasOwnProperty(mt)||st===ft||st===void 0&&ft===void 0||_4(e,n,mt,st,c,ft);return}}for(var I in u)st=u[I],u.hasOwnProperty(I)&&st!=null&&!c.hasOwnProperty(I)&&da(e,n,I,null,c,st);for(vt in c)st=c[vt],ft=u[vt],!c.hasOwnProperty(vt)||st===ft||st==null&&ft==null||da(e,n,vt,st,c,ft)}function A5(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function f7(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,u=performance.getEntriesByType("resource"),c=0;c<u.length;c++){var v=u[c],y=v.transferSize,z=v.initiatorType,R=v.duration;if(y&&R&&A5(z)){for(z=0,R=v.responseEnd,c+=1;c<u.length;c++){var j=u[c],lt=j.startTime;if(lt>R)break;var mt=j.transferSize,vt=j.initiatorType;mt&&A5(vt)&&(j=j.responseEnd,z+=mt*(j<R?1:(R-lt)/(j-lt)))}if(--c,n+=8*(y+z)/(v.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var M4=null,A4=null;function e2(e){return e.nodeType===9?e:e.ownerDocument}function z5(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 C5(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function z4(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var C4=null;function d7(){var e=window.event;return e&&e.type==="popstate"?e===C4?!1:(C4=e,!0):(C4=null,!1)}var w5=typeof setTimeout=="function"?setTimeout:void 0,m7=typeof clearTimeout=="function"?clearTimeout:void 0,D5=typeof Promise=="function"?Promise:void 0,g7=typeof queueMicrotask=="function"?queueMicrotask:typeof D5<"u"?function(e){return D5.resolve(null).then(e).catch(p7)}:w5;function p7(e){setTimeout(function(){throw e})}function Vs(e){return e==="head"}function N5(e,n){var u=n,c=0;do{var v=u.nextSibling;if(e.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(c===0){e.removeChild(v),yc(n);return}c--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")c++;else if(u==="html")I1(e.ownerDocument.documentElement);else if(u==="head"){u=e.ownerDocument.head,I1(u);for(var y=u.firstChild;y;){var z=y.nextSibling,R=y.nodeName;y[y0]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&y.rel.toLowerCase()==="stylesheet"||u.removeChild(y),y=z}}else u==="body"&&I1(e.ownerDocument.body);u=v}while(u);yc(n)}function R5(e,n){var u=e;e=0;do{var c=u.nextSibling;if(u.nodeType===1?n?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(n?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),c&&c.nodeType===8)if(u=c.data,u==="/$"){if(e===0)break;e--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||e++;u=c}while(u)}function w4(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var u=n;switch(n=n.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":w4(u),xl(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}e.removeChild(u)}}function v7(e,n,u,c){for(;e.nodeType===1;){var v=u;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[y0])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(y=e.getAttribute("rel"),y==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(y!==v.rel||e.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||e.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||e.getAttribute("title")!==(v.title==null?null:v.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(y=e.getAttribute("src"),(y!==(v.src==null?null:v.src)||e.getAttribute("type")!==(v.type==null?null:v.type)||e.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&y&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var y=v.name==null?null:""+v.name;if(v.type==="hidden"&&e.getAttribute("name")===y)return e}else return e;if(e=Kl(e.nextSibling),e===null)break}return null}function y7(e,n,u){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!u||(e=Kl(e.nextSibling),e===null))return null;return e}function O5(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Kl(e.nextSibling),e===null))return null;return e}function D4(e){return e.data==="$?"||e.data==="$~"}function N4(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function b7(e,n){var u=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||u.readyState!=="loading")n();else{var c=function(){n(),u.removeEventListener("DOMContentLoaded",c)};u.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function Kl(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var R4=null;function B5(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var u=e.data;if(u==="/$"||u==="/&"){if(n===0)return Kl(e.nextSibling);n--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||n++}e=e.nextSibling}return null}function H5(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var u=e.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(n===0)return e;n--}else u!=="/$"&&u!=="/&"||n++}e=e.previousSibling}return null}function G5(e,n,u){switch(n=e2(u),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function I1(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);xl(e)}var Zl=new Map,U5=new Set;function a2(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jr=pt.d;pt.d={f:S7,r:x7,D:T7,C:E7,L:_7,m:M7,X:z7,S:A7,M:C7};function S7(){var e=jr.f(),n=ol();return e||n}function x7(e){var n=El(e);n!==null&&n.tag===5&&n.type==="form"?qf(n):jr.r(e)}var gc=typeof document>"u"?null:document;function q5(e,n,u){var c=gc;if(c&&typeof n=="string"&&n){var v=b0(n);v='link[rel="'+e+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),U5.has(v)||(U5.add(v),e={rel:e,crossOrigin:u,href:n},c.querySelector(v)===null&&(n=c.createElement("link"),an(n,"link",e),K(n),c.head.appendChild(n)))}}function T7(e){jr.D(e),q5("dns-prefetch",e,null)}function E7(e,n){jr.C(e,n),q5("preconnect",e,n)}function _7(e,n,u){jr.L(e,n,u);var c=gc;if(c&&e&&n){var v='link[rel="preload"][as="'+b0(n)+'"]';n==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+b0(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+b0(u.imageSizes)+'"]')):v+='[href="'+b0(e)+'"]';var y=v;switch(n){case"style":y=pc(e);break;case"script":y=vc(e)}Zl.has(y)||(e=_({rel:"preload",href:n==="image"&&u&&u.imageSrcSet?void 0:e,as:n},u),Zl.set(y,e),c.querySelector(v)!==null||n==="style"&&c.querySelector(P1(y))||n==="script"&&c.querySelector($1(y))||(n=c.createElement("link"),an(n,"link",e),K(n),c.head.appendChild(n)))}}function M7(e,n){jr.m(e,n);var u=gc;if(u&&e){var c=n&&typeof n.as=="string"?n.as:"script",v='link[rel="modulepreload"][as="'+b0(c)+'"][href="'+b0(e)+'"]',y=v;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=vc(e)}if(!Zl.has(y)&&(e=_({rel:"modulepreload",href:e},n),Zl.set(y,e),u.querySelector(v)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector($1(y)))return}c=u.createElement("link"),an(c,"link",e),K(c),u.head.appendChild(c)}}}function A7(e,n,u){jr.S(e,n,u);var c=gc;if(c&&e){var v=W(c).hoistableStyles,y=pc(e);n=n||"default";var z=v.get(y);if(!z){var R={loading:0,preload:null};if(z=c.querySelector(P1(y)))R.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":n},u),(u=Zl.get(y))&&O4(e,u);var j=z=c.createElement("link");K(j),an(j,"link",e),j._p=new Promise(function(lt,mt){j.onload=lt,j.onerror=mt}),j.addEventListener("load",function(){R.loading|=1}),j.addEventListener("error",function(){R.loading|=2}),R.loading|=4,n2(z,n,c)}z={type:"stylesheet",instance:z,count:1,state:R},v.set(y,z)}}}function z7(e,n){jr.X(e,n);var u=gc;if(u&&e){var c=W(u).hoistableScripts,v=vc(e),y=c.get(v);y||(y=u.querySelector($1(v)),y||(e=_({src:e,async:!0},n),(n=Zl.get(v))&&B4(e,n),y=u.createElement("script"),K(y),an(y,"link",e),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(v,y))}}function C7(e,n){jr.M(e,n);var u=gc;if(u&&e){var c=W(u).hoistableScripts,v=vc(e),y=c.get(v);y||(y=u.querySelector($1(v)),y||(e=_({src:e,async:!0,type:"module"},n),(n=Zl.get(v))&&B4(e,n),y=u.createElement("script"),K(y),an(y,"link",e),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(v,y))}}function L5(e,n,u,c){var v=(v=Bt.current)?a2(v):null;if(!v)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(n=pc(u.href),u=W(v).hoistableStyles,c=u.get(n),c||(c={type:"style",instance:null,count:0,state:null},u.set(n,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){e=pc(u.href);var y=W(v).hoistableStyles,z=y.get(e);if(z||(v=v.ownerDocument||v,z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(e,z),(y=v.querySelector(P1(e)))&&!y._p&&(z.instance=y,z.state.loading=5),Zl.has(e)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Zl.set(e,u),y||w7(v,e,u,z.state))),n&&c===null)throw Error(i(528,""));return z}if(n&&c!==null)throw Error(i(529,""));return null;case"script":return n=u.async,u=u.src,typeof u=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=vc(u),u=W(v).hoistableScripts,c=u.get(n),c||(c={type:"script",instance:null,count:0,state:null},u.set(n,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function pc(e){return'href="'+b0(e)+'"'}function P1(e){return'link[rel="stylesheet"]['+e+"]"}function k5(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function w7(e,n,u,c){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?c.loading=1:(n=e.createElement("link"),c.preload=n,n.addEventListener("load",function(){return c.loading|=1}),n.addEventListener("error",function(){return c.loading|=2}),an(n,"link",u),K(n),e.head.appendChild(n))}function vc(e){return'[src="'+b0(e)+'"]'}function $1(e){return"script[async]"+e}function Y5(e,n,u){if(n.count++,n.instance===null)switch(n.type){case"style":var c=e.querySelector('style[data-href~="'+b0(u.href)+'"]');if(c)return n.instance=c,K(c),c;var v=_({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return c=(e.ownerDocument||e).createElement("style"),K(c),an(c,"style",v),n2(c,u.precedence,e),n.instance=c;case"stylesheet":v=pc(u.href);var y=e.querySelector(P1(v));if(y)return n.state.loading|=4,n.instance=y,K(y),y;c=k5(u),(v=Zl.get(v))&&O4(c,v),y=(e.ownerDocument||e).createElement("link"),K(y);var z=y;return z._p=new Promise(function(R,j){z.onload=R,z.onerror=j}),an(y,"link",c),n.state.loading|=4,n2(y,u.precedence,e),n.instance=y;case"script":return y=vc(u.src),(v=e.querySelector($1(y)))?(n.instance=v,K(v),v):(c=u,(v=Zl.get(y))&&(c=_({},u),B4(c,v)),e=e.ownerDocument||e,v=e.createElement("script"),K(v),an(v,"link",c),e.head.appendChild(v),n.instance=v);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(c=n.instance,n.state.loading|=4,n2(c,u.precedence,e));return n.instance}function n2(e,n,u){for(var c=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=c.length?c[c.length-1]:null,y=v,z=0;z<c.length;z++){var R=c[z];if(R.dataset.precedence===n)y=R;else if(y!==v)break}y?y.parentNode.insertBefore(e,y.nextSibling):(n=u.nodeType===9?u.head:u,n.insertBefore(e,n.firstChild))}function O4(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function B4(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var l2=null;function X5(e,n,u){if(l2===null){var c=new Map,v=l2=new Map;v.set(u,c)}else v=l2,c=v.get(u),c||(c=new Map,v.set(u,c));if(c.has(e))return c;for(c.set(e,null),u=u.getElementsByTagName(e),v=0;v<u.length;v++){var y=u[v];if(!(y[y0]||y[Ya]||e==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var z=y.getAttribute(n)||"";z=e+z;var R=c.get(z);R?R.push(y):c.set(z,[y])}}return c}function j5(e,n,u){e=e.ownerDocument||e,e.head.insertBefore(u,n==="title"?e.querySelector("head > title"):null)}function D7(e,n,u){if(u===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function V5(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function N7(e,n,u,c){if(u.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=pc(c.href),y=n.querySelector(P1(v));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=i2.bind(e),n.then(e,e)),u.state.loading|=4,u.instance=y,K(y);return}y=n.ownerDocument||n,c=k5(c),(v=Zl.get(v))&&O4(c,v),y=y.createElement("link"),K(y);var z=y;z._p=new Promise(function(R,j){z.onload=R,z.onerror=j}),an(y,"link",c),u.instance=y}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(u,n),(n=u.state.preload)&&(u.state.loading&3)===0&&(e.count++,u=i2.bind(e),n.addEventListener("load",u),n.addEventListener("error",u))}}var H4=0;function R7(e,n){return e.stylesheets&&e.count===0&&s2(e,e.stylesheets),0<e.count||0<e.imgCount?function(u){var c=setTimeout(function(){if(e.stylesheets&&s2(e,e.stylesheets),e.unsuspend){var y=e.unsuspend;e.unsuspend=null,y()}},6e4+n);0<e.imgBytes&&H4===0&&(H4=62500*f7());var v=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&s2(e,e.stylesheets),e.unsuspend)){var y=e.unsuspend;e.unsuspend=null,y()}},(e.imgBytes>H4?50:800)+n);return e.unsuspend=u,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(v)}}:null}function i2(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)s2(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var r2=null;function s2(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,r2=new Map,n.forEach(O7,e),r2=null,i2.call(e))}function O7(e,n){if(!(n.state.loading&4)){var u=r2.get(e);if(u)var c=u.get(null);else{u=new Map,r2.set(e,u);for(var v=e.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<v.length;y++){var z=v[y];(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")&&(u.set(z.dataset.precedence,z),c=z)}c&&u.set(null,c)}v=n.instance,z=v.getAttribute("data-precedence"),y=u.get(z)||c,y===c&&u.set(null,v),u.set(z,v),this.count++,c=i2.bind(this),v.addEventListener("load",c),v.addEventListener("error",c),y?y.parentNode.insertBefore(v,y.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(v,e.firstChild)),n.state.loading|=4}}var th={$$typeof:Z,Provider:null,Consumer:null,_currentValue:bt,_currentValue2:bt,_threadCount:0};function B7(e,n,u,c,v,y,z,R,j){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=yl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yl(0),this.hiddenUpdates=yl(null),this.identifierPrefix=c,this.onUncaughtError=v,this.onCaughtError=y,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Q5(e,n,u,c,v,y,z,R,j,lt,mt,vt){return e=new B7(e,n,u,z,j,lt,mt,vt,R),n=1,y===!0&&(n|=24),y=Oa(3,null,null,n),e.current=y,y.stateNode=e,n=l1(),n.refCount++,e.pooledCache=n,n.refCount++,y.memoizedState={element:c,isDehydrated:u,cache:n},Ou(y),e}function K5(e){return e?(e=Bi,e):Bi}function Z5(e,n,u,c,v,y){v=K5(v),c.context===null?c.context=v:c.pendingContext=v,c=fi(n),c.payload={element:u},y=y===void 0?null:y,y!==null&&(c.callback=y),u=Xi(e,c,n),u!==null&&(Me(u,e,n),ji(u,e,n))}function J5(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var u=e.retryLane;e.retryLane=u!==0&&u<n?u:n}}function G4(e,n){J5(e,n),(e=e.alternate)&&J5(e,n)}function F5(e){if(e.tag===13||e.tag===31){var n=J0(e,67108864);n!==null&&Me(n,e,67108864),G4(e,67108864)}}function W5(e){if(e.tag===13||e.tag===31){var n=_n();n=$n(n);var u=J0(e,n);u!==null&&Me(u,e,n),G4(e,n)}}var u2=!0;function H7(e,n,u,c){var v=Q.T;Q.T=null;var y=pt.p;try{pt.p=2,U4(e,n,u,c)}finally{pt.p=y,Q.T=v}}function G7(e,n,u,c){var v=Q.T;Q.T=null;var y=pt.p;try{pt.p=8,U4(e,n,u,c)}finally{pt.p=y,Q.T=v}}function U4(e,n,u,c){if(u2){var v=q4(c);if(v===null)E4(e,n,c,o2,u),P5(e,c);else if(q7(v,e,n,u,c))c.stopPropagation();else if(P5(e,c),n&4&&-1<U7.indexOf(e)){for(;v!==null;){var y=El(v);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var z=pl(y.pendingLanes);if(z!==0){var R=y;for(R.pendingLanes|=2,R.entangledLanes|=2;z;){var j=1<<31-Q0(z);R.entanglements[1]|=j,z&=~j}Mt(y),($t&6)===0&&(Pa=Le()+500,Qt(0))}}break;case 31:case 13:R=J0(y,2),R!==null&&Me(R,y,2),ol(),G4(y,2)}if(y=q4(c),y===null&&E4(e,n,c,o2,u),y===v)break;v=y}v!==null&&c.stopPropagation()}else E4(e,n,c,null,u)}}function q4(e){return e=mo(e),L4(e)}var o2=null;function L4(e){if(o2=null,e=Tl(e),e!==null){var n=h(e);if(n===null)e=null;else{var u=n.tag;if(u===13){if(e=d(n),e!==null)return e;e=null}else if(u===31){if(e=g(n),e!==null)return e;e=null}else if(u===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return o2=e,null}function I5(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(V0()){case L0:return 2;case xa:return 8;case pa:case Za:return 32;case u0:return 268435456;default:return 32}default:return 32}}var k4=!1,Qs=null,Ks=null,Zs=null,eh=new Map,ah=new Map,Js=[],U7="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 P5(e,n){switch(e){case"focusin":case"focusout":Qs=null;break;case"dragenter":case"dragleave":Ks=null;break;case"mouseover":case"mouseout":Zs=null;break;case"pointerover":case"pointerout":eh.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ah.delete(n.pointerId)}}function nh(e,n,u,c,v,y){return e===null||e.nativeEvent!==y?(e={blockedOn:n,domEventName:u,eventSystemFlags:c,nativeEvent:y,targetContainers:[v]},n!==null&&(n=El(n),n!==null&&F5(n)),e):(e.eventSystemFlags|=c,n=e.targetContainers,v!==null&&n.indexOf(v)===-1&&n.push(v),e)}function q7(e,n,u,c,v){switch(n){case"focusin":return Qs=nh(Qs,e,n,u,c,v),!0;case"dragenter":return Ks=nh(Ks,e,n,u,c,v),!0;case"mouseover":return Zs=nh(Zs,e,n,u,c,v),!0;case"pointerover":var y=v.pointerId;return eh.set(y,nh(eh.get(y)||null,e,n,u,c,v)),!0;case"gotpointercapture":return y=v.pointerId,ah.set(y,nh(ah.get(y)||null,e,n,u,c,v)),!0}return!1}function $5(e){var n=Tl(e.target);if(n!==null){var u=h(n);if(u!==null){if(n=u.tag,n===13){if(n=d(u),n!==null){e.blockedOn=n,el(e.priority,function(){W5(u)});return}}else if(n===31){if(n=g(u),n!==null){e.blockedOn=n,el(e.priority,function(){W5(u)});return}}else if(n===3&&u.stateNode.current.memoizedState.isDehydrated){e.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}e.blockedOn=null}function c2(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var u=q4(e.nativeEvent);if(u===null){u=e.nativeEvent;var c=new u.constructor(u.type,u);fo=c,u.target.dispatchEvent(c),fo=null}else return n=El(u),n!==null&&F5(n),e.blockedOn=u,!1;n.shift()}return!0}function t3(e,n,u){c2(e)&&u.delete(n)}function L7(){k4=!1,Qs!==null&&c2(Qs)&&(Qs=null),Ks!==null&&c2(Ks)&&(Ks=null),Zs!==null&&c2(Zs)&&(Zs=null),eh.forEach(t3),ah.forEach(t3)}function h2(e,n){e.blockedOn===n&&(e.blockedOn=null,k4||(k4=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,L7)))}var f2=null;function e3(e){f2!==e&&(f2=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){f2===e&&(f2=null);for(var n=0;n<e.length;n+=3){var u=e[n],c=e[n+1],v=e[n+2];if(typeof c!="function"){if(L4(c||u)===null)continue;break}var y=El(u);y!==null&&(e.splice(n,3),n-=3,N1(y,{pending:!0,data:v,method:u.method,action:c},c,v))}}))}function yc(e){function n(j){return h2(j,e)}Qs!==null&&h2(Qs,e),Ks!==null&&h2(Ks,e),Zs!==null&&h2(Zs,e),eh.forEach(n),ah.forEach(n);for(var u=0;u<Js.length;u++){var c=Js[u];c.blockedOn===e&&(c.blockedOn=null)}for(;0<Js.length&&(u=Js[0],u.blockedOn===null);)$5(u),u.blockedOn===null&&Js.shift();if(u=(e.ownerDocument||e).$$reactFormReplay,u!=null)for(c=0;c<u.length;c+=3){var v=u[c],y=u[c+1],z=v[o0]||null;if(typeof y=="function")z||e3(u);else if(z){var R=null;if(y&&y.hasAttribute("formAction")){if(v=y,z=y[o0]||null)R=z.formAction;else if(L4(v)!==null)continue}else R=z.action;typeof R=="function"?u[c+1]=R:(u.splice(c,3),c-=3),e3(u)}}}function a3(){function e(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(z){return v=z})},focusReset:"manual",scroll:"manual"})}function n(){v!==null&&(v(),v=null),c||setTimeout(u,20)}function u(){if(!c&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,v=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(u,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),v!==null&&(v(),v=null)}}}function Y4(e){this._internalRoot=e}d2.prototype.render=Y4.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var u=n.current,c=_n();Z5(u,c,e,n,null,null)},d2.prototype.unmount=Y4.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Z5(e.current,2,null,e,null,null),ol(),n[bl]=null}};function d2(e){this._internalRoot=e}d2.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ci();e={blockedOn:null,target:e,priority:n};for(var u=0;u<Js.length&&n!==0&&n<Js[u].priority;u++);Js.splice(u,0,e),u===0&&$5(e)}};var n3=t.version;if(n3!=="19.2.0")throw Error(i(527,n3,"19.2.0"));pt.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=b(n),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var k7={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var m2=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!m2.isDisabled&&m2.supportsFiber)try{gl=m2.inject(k7),v0=m2}catch{}}return ih.createRoot=function(e,n){if(!o(e))throw Error(i(299));var u=!1,c="",v=Qf,y=U1,z=q1;return n!=null&&(n.unstable_strictMode===!0&&(u=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(v=n.onUncaughtError),n.onCaughtError!==void 0&&(y=n.onCaughtError),n.onRecoverableError!==void 0&&(z=n.onRecoverableError)),n=Q5(e,1,!1,null,null,u,c,null,v,y,z,a3),e[bl]=n.current,T4(e),new Y4(n)},ih.hydrateRoot=function(e,n,u){if(!o(e))throw Error(i(299));var c=!1,v="",y=Qf,z=U1,R=q1,j=null;return u!=null&&(u.unstable_strictMode===!0&&(c=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(y=u.onUncaughtError),u.onCaughtError!==void 0&&(z=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.formState!==void 0&&(j=u.formState)),n=Q5(e,1,!0,n,u??null,c,v,j,y,z,R,a3),n.context=K5(null),u=n.current,c=_n(),c=$n(c),v=fi(c),v.callback=null,Xi(u,v,c),u=c,n.current.lanes=u,Pn(n,u),Mt(n),e[bl]=n.current,T4(e),new d2(n)},ih.version="19.2.0",ih}var d3;function F7(){if(d3)return V4.exports;d3=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(t){console.error(t)}}return s(),V4.exports=J7(),V4.exports}var W7=F7();const I7=Qd(W7);let Ed=null,U2=[];const P7=s=>{if(!s?.board?.id||typeof s.board.id!="number")throw new Error("Invalid board.id");if(typeof s.widgetId!="number")throw new Error("Invalid widgetId");return Ed=s,console.log("[Widget] Initialized with:",s),U2.forEach(t=>t(s)),{widgetId:s.widgetId,boardId:String(s.board.id),userId:s.userId,role:s.role,config:s.config}},$7=s=>(U2.push(s),Ed&&s(Ed),()=>{const t=U2.indexOf(s);t>-1&&U2.splice(t,1)}),t8=Math.PI/180;function e8(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const eo=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},qt={_global:eo,version:"10.0.12",isBrowser:e8(),isUnminified:/param/.test((function(s){}).toString()),dblClickWindow:400,getAngle(s){return qt.angleDeg?s*t8:s},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_renderBackend:"web",legacyTextRendering:!1,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return qt.DD.isDragging},isTransforming(){var s,t;return(t=(s=qt.Transformer)===null||s===void 0?void 0:s.isTransforming())!==null&&t!==void 0?t:!1},isDragReady(){return!!qt.DD.node},releaseCanvasOnDestroy:!0,document:eo.document,_injectGlobal(s){typeof eo.Konva<"u"&&console.error("Several Konva instances detected. It is not recommended to use multiple Konva instances in the same environment."),eo.Konva=s}},a0=s=>{qt[s.prototype.getClassName()]=s};qt._injectGlobal(qt);const a8=`Konva.js unsupported environment.
10
+
11
+ Looks like you are trying to use Konva.js in Node.js environment. because "document" object is undefined.
12
+
13
+ To use Konva.js in Node.js environment, you need to use the "canvas-backend" or "skia-backend" module.
14
+
15
+ bash: npm install canvas
16
+ js: import "konva/canvas-backend";
17
+
18
+ or
19
+
20
+ bash: npm install skia-canvas
21
+ js: import "konva/skia-backend";
22
+ `,m3=()=>{if(typeof document>"u")throw new Error(a8)};class cl{constructor(t=[1,0,0,1,0,0]){this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new cl(this.m)}copyInto(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]}point(t){const a=this.m;return{x:a[0]*t.x+a[2]*t.y+a[4],y:a[1]*t.x+a[3]*t.y+a[5]}}translate(t,a){return this.m[4]+=this.m[0]*t+this.m[2]*a,this.m[5]+=this.m[1]*t+this.m[3]*a,this}scale(t,a){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=a,this.m[3]*=a,this}rotate(t){const a=Math.cos(t),i=Math.sin(t),o=this.m[0]*a+this.m[2]*i,h=this.m[1]*a+this.m[3]*i,d=this.m[0]*-i+this.m[2]*a,g=this.m[1]*-i+this.m[3]*a;return this.m[0]=o,this.m[1]=h,this.m[2]=d,this.m[3]=g,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(t,a){const i=this.m[0]+this.m[2]*a,o=this.m[1]+this.m[3]*a,h=this.m[2]+this.m[0]*t,d=this.m[3]+this.m[1]*t;return this.m[0]=i,this.m[1]=o,this.m[2]=h,this.m[3]=d,this}multiply(t){const a=this.m[0]*t.m[0]+this.m[2]*t.m[1],i=this.m[1]*t.m[0]+this.m[3]*t.m[1],o=this.m[0]*t.m[2]+this.m[2]*t.m[3],h=this.m[1]*t.m[2]+this.m[3]*t.m[3],d=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],g=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=a,this.m[1]=i,this.m[2]=o,this.m[3]=h,this.m[4]=d,this.m[5]=g,this}invert(){const t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),a=this.m[3]*t,i=-this.m[1]*t,o=-this.m[2]*t,h=this.m[0]*t,d=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),g=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=a,this.m[1]=i,this.m[2]=o,this.m[3]=h,this.m[4]=d,this.m[5]=g,this}getMatrix(){return this.m}decompose(){const t=this.m[0],a=this.m[1],i=this.m[2],o=this.m[3],h=this.m[4],d=this.m[5],g=t*o-a*i,p={x:h,y:d,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(t!=0||a!=0){const b=Math.sqrt(t*t+a*a);p.rotation=a>0?Math.acos(t/b):-Math.acos(t/b),p.scaleX=b,p.scaleY=g/b,p.skewX=(t*i+a*o)/g,p.skewY=0}else if(i!=0||o!=0){const b=Math.sqrt(i*i+o*o);p.rotation=Math.PI/2-(o>0?Math.acos(-i/b):-Math.acos(i/b)),p.scaleX=g/b,p.scaleY=b,p.skewX=0,p.skewY=(t*i+a*o)/g}return p.rotation=tt._getRotation(p.rotation),p}}const n8="[object Array]",l8="[object Number]",i8="[object String]",r8="[object Boolean]",s8=Math.PI/180,u8=180/Math.PI,rh="#",o8="",c8="0",h8="Konva warning: ",g3="Konva error: ",f8="rgb(",J4={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},d8=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let g2=[],sh=null;const m8=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(s){setTimeout(s,60)},tt={_isElement(s){return!!(s&&s.nodeType==1)},_isFunction(s){return!!(s&&s.constructor&&s.call&&s.apply)},_isPlainObject(s){return!!s&&s.constructor===Object},_isArray(s){return Object.prototype.toString.call(s)===n8},_isNumber(s){return Object.prototype.toString.call(s)===l8&&!isNaN(s)&&isFinite(s)},_isString(s){return Object.prototype.toString.call(s)===i8},_isBoolean(s){return Object.prototype.toString.call(s)===r8},isObject(s){return s instanceof Object},isValidSelector(s){if(typeof s!="string")return!1;const t=s[0];return t==="#"||t==="."||t===t.toUpperCase()},_sign(s){return s===0||s>0?1:-1},requestAnimFrame(s){g2.push(s),g2.length===1&&m8(function(){const t=g2;g2=[],t.forEach(function(a){a()})})},createCanvasElement(){m3();const s=document.createElement("canvas");try{s.style=s.style||{}}catch{}return s},createImageElement(){return m3(),document.createElement("img")},_isInDocument(s){for(;s=s.parentNode;)if(s==document)return!0;return!1},_urlToImage(s,t){const a=tt.createImageElement();a.onload=function(){t(a)},a.src=s},_rgbToHex(s,t,a){return((1<<24)+(s<<16)+(t<<8)+a).toString(16).slice(1)},_hexToRgb(s){s=s.replace(rh,o8);const t=parseInt(s,16);return{r:t>>16&255,g:t>>8&255,b:t&255}},getRandomColor(){let s=(Math.random()*16777215<<0).toString(16);for(;s.length<6;)s=c8+s;return rh+s},isCanvasFarblingActive(){if(sh!==null)return sh;if(typeof document>"u")return sh=!1,!1;const s=this.createCanvasElement();s.width=10,s.height=10;const t=s.getContext("2d",{willReadFrequently:!0});t.clearRect(0,0,10,10),t.fillStyle="#282828",t.fillRect(0,0,10,10);const a=t.getImageData(0,0,10,10).data;let i=!1;for(let o=0;o<100;o++)if(a[o*4]!==40||a[o*4+1]!==40||a[o*4+2]!==40||a[o*4+3]!==255){i=!0;break}return sh=i,this.releaseCanvas(s),sh},getHitColor(){const s=this.getRandomColor();return this.isCanvasFarblingActive()?this.getSnappedHexColor(s):s},getHitColorKey(s,t,a){return this.isCanvasFarblingActive()&&(s=Math.round(s/5)*5,t=Math.round(t/5)*5,a=Math.round(a/5)*5),rh+this._rgbToHex(s,t,a)},getSnappedHexColor(s){const t=this._hexToRgb(s);return rh+this._rgbToHex(Math.round(t.r/5)*5,Math.round(t.g/5)*5,Math.round(t.b/5)*5)},getRGB(s){let t;return s in J4?(t=J4[s],{r:t[0],g:t[1],b:t[2]}):s[0]===rh?this._hexToRgb(s.substring(1)):s.substr(0,4)===f8?(t=d8.exec(s.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA(s){return s=s||"black",tt._namedColorToRBA(s)||tt._hex3ColorToRGBA(s)||tt._hex4ColorToRGBA(s)||tt._hex6ColorToRGBA(s)||tt._hex8ColorToRGBA(s)||tt._rgbColorToRGBA(s)||tt._rgbaColorToRGBA(s)||tt._hslColorToRGBA(s)},_namedColorToRBA(s){const t=J4[s.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(s){if(s.indexOf("rgb(")===0){s=s.match(/rgb\(([^)]+)\)/)[1];const t=s.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(s){if(s.indexOf("rgba(")===0){s=s.match(/rgba\(([^)]+)\)/)[1];const t=s.split(/ *, */).map((a,i)=>a.slice(-1)==="%"?i===3?parseInt(a)/100:parseInt(a)/100*255:Number(a));return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex8ColorToRGBA(s){if(s[0]==="#"&&s.length===9)return{r:parseInt(s.slice(1,3),16),g:parseInt(s.slice(3,5),16),b:parseInt(s.slice(5,7),16),a:parseInt(s.slice(7,9),16)/255}},_hex6ColorToRGBA(s){if(s[0]==="#"&&s.length===7)return{r:parseInt(s.slice(1,3),16),g:parseInt(s.slice(3,5),16),b:parseInt(s.slice(5,7),16),a:1}},_hex4ColorToRGBA(s){if(s[0]==="#"&&s.length===5)return{r:parseInt(s[1]+s[1],16),g:parseInt(s[2]+s[2],16),b:parseInt(s[3]+s[3],16),a:parseInt(s[4]+s[4],16)/255}},_hex3ColorToRGBA(s){if(s[0]==="#"&&s.length===4)return{r:parseInt(s[1]+s[1],16),g:parseInt(s[2]+s[2],16),b:parseInt(s[3]+s[3],16),a:1}},_hslColorToRGBA(s){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(s)){const[t,...a]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(s),i=Number(a[0])/360,o=Number(a[1])/100,h=Number(a[2])/100;let d,g,p;if(o===0)return p=h*255,{r:Math.round(p),g:Math.round(p),b:Math.round(p),a:1};h<.5?d=h*(1+o):d=h+o-h*o;const b=2*h-d,E=[0,0,0];for(let _=0;_<3;_++)g=i+1/3*-(_-1),g<0&&g++,g>1&&g--,6*g<1?p=b+(d-b)*6*g:2*g<1?p=d:3*g<2?p=b+(d-b)*(2/3-g)*6:p=b,E[_]=p*255;return{r:Math.round(E[0]),g:Math.round(E[1]),b:Math.round(E[2]),a:1}}},haveIntersection(s,t){return!(t.x>s.x+s.width||t.x+t.width<s.x||t.y>s.y+s.height||t.y+t.height<s.y)},cloneObject(s){const t={};for(const a in s)this._isPlainObject(s[a])?t[a]=this.cloneObject(s[a]):this._isArray(s[a])?t[a]=this.cloneArray(s[a]):t[a]=s[a];return t},cloneArray(s){return s.slice(0)},degToRad(s){return s*s8},radToDeg(s){return s*u8},_degToRad(s){return tt.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),tt.degToRad(s)},_radToDeg(s){return tt.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),tt.radToDeg(s)},_getRotation(s){return qt.angleDeg?tt.radToDeg(s):s},_capitalize(s){return s.charAt(0).toUpperCase()+s.slice(1)},throw(s){throw new Error(g3+s)},error(s){console.error(g3+s)},warn(s){qt.showWarnings&&console.warn(h8+s)},each(s,t){for(const a in s)t(a,s[a])},_inRange(s,t,a){return t<=s&&s<a},_getProjectionToSegment(s,t,a,i,o,h){let d,g,p;const b=(s-a)*(s-a)+(t-i)*(t-i);if(b==0)d=s,g=t,p=(o-a)*(o-a)+(h-i)*(h-i);else{const E=((o-s)*(a-s)+(h-t)*(i-t))/b;E<0?(d=s,g=t,p=(s-o)*(s-o)+(t-h)*(t-h)):E>1?(d=a,g=i,p=(a-o)*(a-o)+(i-h)*(i-h)):(d=s+E*(a-s),g=t+E*(i-t),p=(d-o)*(d-o)+(g-h)*(g-h))}return[d,g,p]},_getProjectionToLine(s,t,a){const i=tt.cloneObject(s);let o=Number.MAX_VALUE;return t.forEach(function(h,d){if(!a&&d===t.length-1)return;const g=t[(d+1)%t.length],p=tt._getProjectionToSegment(h.x,h.y,g.x,g.y,s.x,s.y),b=p[0],E=p[1],_=p[2];_<o&&(i.x=b,i.y=E,o=_)}),i},_prepareArrayForTween(s,t,a){const i=[],o=[];if(s.length>t.length){const d=t;t=s,s=d}for(let d=0;d<s.length;d+=2)i.push({x:s[d],y:s[d+1]});for(let d=0;d<t.length;d+=2)o.push({x:t[d],y:t[d+1]});const h=[];return o.forEach(function(d){const g=tt._getProjectionToLine(d,i,a);h.push(g.x),h.push(g.y)}),h},_prepareToStringify(s){let t;s.visitedByCircularReferenceRemoval=!0;for(const a in s)if(s.hasOwnProperty(a)&&s[a]&&typeof s[a]=="object"){if(t=Object.getOwnPropertyDescriptor(s,a),s[a].visitedByCircularReferenceRemoval||tt._isElement(s[a]))if(t.configurable)delete s[a];else return null;else if(tt._prepareToStringify(s[a])===null)if(t.configurable)delete s[a];else return null}return delete s.visitedByCircularReferenceRemoval,s},_assign(s,t){for(const a in t)s[a]=t[a];return s},_getFirstPointerId(s){return s.touches?s.changedTouches[0].identifier:s.pointerId||999},releaseCanvas(...s){qt.releaseCanvasOnDestroy&&s.forEach(t=>{t.width=0,t.height=0})},drawRoundedRectPath(s,t,a,i){let o=t<0?t:0,h=a<0?a:0;t=Math.abs(t),a=Math.abs(a);let d=0,g=0,p=0,b=0;typeof i=="number"?d=g=p=b=Math.min(i,t/2,a/2):(d=Math.min(i[0]||0,t/2,a/2),g=Math.min(i[1]||0,t/2,a/2),b=Math.min(i[2]||0,t/2,a/2),p=Math.min(i[3]||0,t/2,a/2)),s.moveTo(o+d,h),s.lineTo(o+t-g,h),s.arc(o+t-g,h+g,g,Math.PI*3/2,0,!1),s.lineTo(o+t,h+a-b),s.arc(o+t-b,h+a-b,b,0,Math.PI/2,!1),s.lineTo(o+p,h+a),s.arc(o+p,h+a-p,p,Math.PI/2,Math.PI,!1),s.lineTo(o,h+d),s.arc(o+d,h+d,d,Math.PI,Math.PI*3/2,!1)},drawRoundedPolygonPath(s,t,a,i,o){i=Math.abs(i);for(let h=0;h<a;h++){const d=t[(h-1+a)%a],g=t[h],p=t[(h+1)%a],b={x:g.x-d.x,y:g.y-d.y},E={x:p.x-g.x,y:p.y-g.y},_=Math.hypot(b.x,b.y),A=Math.hypot(E.x,E.y);let D;typeof o=="number"?D=o:D=h<o.length?o[h]:0,D=i*Math.cos(Math.PI/a)*Math.min(1,D/i*2);const H={x:b.x/_,y:b.y/_},U={x:E.x/A,y:E.y/A},Y={x:g.x-H.x*D,y:g.y-H.y*D},G={x:g.x+U.x*D,y:g.y+U.y*D};h===0?s.moveTo(Y.x,Y.y):s.lineTo(Y.x,Y.y),s.arcTo(g.x,g.y,G.x,G.y,D)}}};function g8(s){const t=[],a=s.length,i=tt;for(let o=0;o<a;o++){let h=s[o];i._isNumber(h)?h=Math.round(h*1e3)/1e3:i._isString(h)||(h=h+""),t.push(h)}return t}const p3=",",p8="(",v8=")",y8="([",b8="])",S8=";",x8="()",T8="=",v3=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],E8=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled","filter"],_8=100;let p2=null;function y3(){if(p2!==null)return p2;try{const t=tt.createCanvasElement().getContext("2d");return t?!!t&&"filter"in t:(p2=!1,!1)}catch{return p2=!1,!1}}class W2{constructor(t){this.canvas=t,qt.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,a){let i=this.traceArr,o=i.length,h="",d,g,p,b;for(d=0;d<o;d++)g=i[d],p=g.method,p?(b=g.args,h+=p,t?h+=x8:tt._isArray(b[0])?h+=y8+b.join(p3)+b8:(a&&(b=b.map(E=>typeof E=="number"?Math.floor(E):E)),h+=p8+b.join(p3)+v8)):(h+=g.property,t||(h+=T8+g.val)),h+=S8;return h}clearTrace(){this.traceArr=[]}_trace(t){let a=this.traceArr,i;a.push(t),i=a.length,i>=_8&&a.shift()}reset(){const t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){const a=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,a.getWidth()/a.pixelRatio,a.getHeight()/a.pixelRatio)}_applyLineCap(t){const a=t.attrs.lineCap;a&&this.setAttr("lineCap",a)}_applyOpacity(t){const a=t.getAbsoluteOpacity();a!==1&&this.setAttr("globalAlpha",a)}_applyLineJoin(t){const a=t.attrs.lineJoin;a&&this.setAttr("lineJoin",a)}_applyMiterLimit(t){const a=t.attrs.miterLimit;a!=null&&this.setAttr("miterLimit",a)}setAttr(t,a){this._context[t]=a}arc(t,a,i,o,h,d){this._context.arc(t,a,i,o,h,d)}arcTo(t,a,i,o,h){this._context.arcTo(t,a,i,o,h)}beginPath(){this._context.beginPath()}bezierCurveTo(t,a,i,o,h,d){this._context.bezierCurveTo(t,a,i,o,h,d)}clearRect(t,a,i,o){this._context.clearRect(t,a,i,o)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,a){const i=arguments;if(i.length===2)return this._context.createImageData(t,a);if(i.length===1)return this._context.createImageData(t)}createLinearGradient(t,a,i,o){return this._context.createLinearGradient(t,a,i,o)}createPattern(t,a){return this._context.createPattern(t,a)}createRadialGradient(t,a,i,o,h,d){return this._context.createRadialGradient(t,a,i,o,h,d)}drawImage(t,a,i,o,h,d,g,p,b){const E=arguments,_=this._context;E.length===3?_.drawImage(t,a,i):E.length===5?_.drawImage(t,a,i,o,h):E.length===9&&_.drawImage(t,a,i,o,h,d,g,p,b)}ellipse(t,a,i,o,h,d,g,p){this._context.ellipse(t,a,i,o,h,d,g,p)}isPointInPath(t,a,i,o){return i?this._context.isPointInPath(i,t,a,o):this._context.isPointInPath(t,a,o)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,a,i,o){this._context.fillRect(t,a,i,o)}strokeRect(t,a,i,o){this._context.strokeRect(t,a,i,o)}fillText(t,a,i,o){o?this._context.fillText(t,a,i,o):this._context.fillText(t,a,i)}measureText(t){return this._context.measureText(t)}getImageData(t,a,i,o){return this._context.getImageData(t,a,i,o)}lineTo(t,a){this._context.lineTo(t,a)}moveTo(t,a){this._context.moveTo(t,a)}rect(t,a,i,o){this._context.rect(t,a,i,o)}roundRect(t,a,i,o,h){this._context.roundRect(t,a,i,o,h)}putImageData(t,a,i){this._context.putImageData(t,a,i)}quadraticCurveTo(t,a,i,o){this._context.quadraticCurveTo(t,a,i,o)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,a){this._context.scale(t,a)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,a,i,o,h,d){this._context.setTransform(t,a,i,o,h,d)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,a,i,o){this._context.strokeText(t,a,i,o)}transform(t,a,i,o,h,d){this._context.transform(t,a,i,o,h,d)}translate(t,a){this._context.translate(t,a)}_enableTrace(){let t=this,a=v3.length,i=this.setAttr,o,h;const d=function(g){let p=t[g],b;t[g]=function(){return h=g8(Array.prototype.slice.call(arguments,0)),b=p.apply(t,arguments),t._trace({method:g,args:h}),b}};for(o=0;o<a;o++)d(v3[o]);t.setAttr=function(){i.apply(t,arguments);const g=arguments[0];let p=arguments[1];(g==="shadowOffsetX"||g==="shadowOffsetY"||g==="shadowBlur")&&(p=p/this.canvas.getPixelRatio()),t._trace({property:g,val:p})}}_applyGlobalCompositeOperation(t){const a=t.attrs.globalCompositeOperation;!a||a==="source-over"||this.setAttr("globalCompositeOperation",a)}}E8.forEach(function(s){Object.defineProperty(W2.prototype,s,{get(){return this._context[s]},set(t){this._context[s]=t}})});class M8 extends W2{constructor(t,{willReadFrequently:a=!1}={}){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:a})}_fillColor(t){const a=t.fill();this.setAttr("fillStyle",a),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){const a=t._getLinearGradient();a&&(this.setAttr("fillStyle",a),t._fillFunc(this))}_fillRadialGradient(t){const a=t._getRadialGradient();a&&(this.setAttr("fillStyle",a),t._fillFunc(this))}_fill(t){const a=t.fill(),i=t.getFillPriority();if(a&&i==="color"){this._fillColor(t);return}const o=t.getFillPatternImage();if(o&&i==="pattern"){this._fillPattern(t);return}const h=t.getFillLinearGradientColorStops();if(h&&i==="linear-gradient"){this._fillLinearGradient(t);return}const d=t.getFillRadialGradientColorStops();if(d&&i==="radial-gradient"){this._fillRadialGradient(t);return}a?this._fillColor(t):o?this._fillPattern(t):h?this._fillLinearGradient(t):d&&this._fillRadialGradient(t)}_strokeLinearGradient(t){const a=t.getStrokeLinearGradientStartPoint(),i=t.getStrokeLinearGradientEndPoint(),o=t.getStrokeLinearGradientColorStops(),h=this.createLinearGradient(a.x,a.y,i.x,i.y);if(o){for(let d=0;d<o.length;d+=2)h.addColorStop(o[d],o[d+1]);this.setAttr("strokeStyle",h)}}_stroke(t){const a=t.dash(),i=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!i){this.save();const h=this.getCanvas().getPixelRatio();this.setTransform(h,0,0,h,0,0)}this._applyLineCap(t),a&&t.dashEnabled()&&(this.setLineDash(a),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),t.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),i||this.restore()}}_applyShadow(t){var a,i,o;const h=(a=t.getShadowRGBA())!==null&&a!==void 0?a:"black",d=(i=t.getShadowBlur())!==null&&i!==void 0?i:5,g=(o=t.getShadowOffset())!==null&&o!==void 0?o:{x:0,y:0},p=t.getAbsoluteScale(),b=this.canvas.getPixelRatio(),E=p.x*b,_=p.y*b;this.setAttr("shadowColor",h),this.setAttr("shadowBlur",d*Math.min(Math.abs(E),Math.abs(_))),this.setAttr("shadowOffsetX",g.x*E),this.setAttr("shadowOffsetY",g.y*_)}}class A8 extends W2{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){const a=t.getStrokeScaleEnabled();if(!a){this.save();const h=this.getCanvas().getPixelRatio();this.setTransform(h,0,0,h,0,0)}this._applyLineCap(t);const i=t.hitStrokeWidth(),o=i==="auto"?t.strokeWidth():i;this.setAttr("lineWidth",o),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),a||this.restore()}}}let v2;function z8(){if(v2)return v2;const s=tt.createCanvasElement(),t=s.getContext("2d");return v2=(function(){const a=qt._global.devicePixelRatio||1,i=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return a/i})(),tt.releaseCanvas(s),v2}class Zd{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;const i=(t||{}).pixelRatio||qt.pixelRatio||z8();this.pixelRatio=i,this._canvas=tt.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){const a=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/a,this.getHeight()/a)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";const a=this.pixelRatio;this.getContext()._context.scale(a,a)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";const a=this.pixelRatio;this.getContext()._context.scale(a,a)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,a){this.setWidth(t||0),this.setHeight(a||0)}toDataURL(t,a){try{return this._canvas.toDataURL(t,a)}catch{try{return this._canvas.toDataURL()}catch(o){return tt.error("Unable to get data URL. "+o.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}class tu extends Zd{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new M8(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}class Jd extends Zd{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new A8(this),this.setSize(t.width,t.height)}}const la={get isDragging(){let s=!1;return la._dragElements.forEach(t=>{t.dragStatus==="dragging"&&(s=!0)}),s},justDragged:!1,get node(){let s;return la._dragElements.forEach(t=>{s=t.node}),s},_dragElements:new Map,_drag(s){const t=[];la._dragElements.forEach((a,i)=>{const{node:o}=a,h=o.getStage();h.setPointersPositions(s),a.pointerId===void 0&&(a.pointerId=tt._getFirstPointerId(s));const d=h._changedPointerPositions.find(g=>g.id===a.pointerId);if(d){if(a.dragStatus!=="dragging"){const g=o.dragDistance();if(Math.max(Math.abs(d.x-a.startPointerPos.x),Math.abs(d.y-a.startPointerPos.y))<g||(o.startDrag({evt:s}),!o.isDragging()))return}o._setDragPosition(s,a),t.push(o)}}),t.forEach(a=>{a.fire("dragmove",{type:"dragmove",target:a,evt:s},!0)})},_endDragBefore(s){const t=[];la._dragElements.forEach(a=>{const{node:i}=a,o=i.getStage();if(s&&o.setPointersPositions(s),!o._changedPointerPositions.find(g=>g.id===a.pointerId))return;(a.dragStatus==="dragging"||a.dragStatus==="stopped")&&(la.justDragged=!0,qt._mouseListenClick=!1,qt._touchListenClick=!1,qt._pointerListenClick=!1,a.dragStatus="stopped");const d=a.node.getLayer()||a.node instanceof qt.Stage&&a.node;d&&t.indexOf(d)===-1&&t.push(d)}),t.forEach(a=>{a.draw()})},_endDragAfter(s){la._dragElements.forEach((t,a)=>{t.dragStatus==="stopped"&&t.node.fire("dragend",{type:"dragend",target:t.node,evt:s},!0),t.dragStatus!=="dragging"&&la._dragElements.delete(a)})}};qt.isBrowser&&(window.addEventListener("mouseup",la._endDragBefore,!0),window.addEventListener("touchend",la._endDragBefore,!0),window.addEventListener("touchcancel",la._endDragBefore,!0),window.addEventListener("mousemove",la._drag),window.addEventListener("touchmove",la._drag),window.addEventListener("mouseup",la._endDragAfter,!1),window.addEventListener("touchend",la._endDragAfter,!1),window.addEventListener("touchcancel",la._endDragAfter,!1));function iu(s){return tt._isString(s)?'"'+s+'"':Object.prototype.toString.call(s)==="[object Number]"||tt._isBoolean(s)?s:Object.prototype.toString.call(s)}function C6(s){return s>255?255:s<0?0:Math.round(s)}function Ut(){if(qt.isUnminified)return function(s,t){return tt._isNumber(s)||tt.warn(iu(s)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),s}}function I2(s){if(qt.isUnminified)return function(t,a){let i=tt._isNumber(t),o=tt._isArray(t)&&t.length==s;return!i&&!o&&tt.warn(iu(t)+' is a not valid value for "'+a+'" attribute. The value should be a number or Array<number>('+s+")"),t}}function Fd(){if(qt.isUnminified)return function(s,t){return tt._isNumber(s)||s==="auto"||tt.warn(iu(s)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),s}}function ao(){if(qt.isUnminified)return function(s,t){return tt._isString(s)||tt.warn(iu(s)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),s}}function w6(){if(qt.isUnminified)return function(s,t){const a=tt._isString(s),i=Object.prototype.toString.call(s)==="[object CanvasGradient]"||s&&s.addColorStop;return a||i||tt.warn(iu(s)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),s}}function C8(){if(qt.isUnminified)return function(s,t){const a=Int8Array?Object.getPrototypeOf(Int8Array):null;return a&&s instanceof a||(tt._isArray(s)?s.forEach(function(i){tt._isNumber(i)||tt.warn('"'+t+'" attribute has non numeric element '+i+". Make sure that all elements are numbers.")}):tt.warn(iu(s)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),s}}function Ei(){if(qt.isUnminified)return function(s,t){return s===!0||s===!1||tt.warn(iu(s)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),s}}function w8(s){if(qt.isUnminified)return function(t,a){return t==null||tt.isObject(t)||tt.warn(iu(t)+' is a not valid value for "'+a+'" attribute. The value should be an object with properties '+s),t}}const uh="get",oh="set",k={addGetterSetter(s,t,a,i,o){k.addGetter(s,t,a),k.addSetter(s,t,i,o),k.addOverloadedGetterSetter(s,t)},addGetter(s,t,a){const i=uh+tt._capitalize(t);s.prototype[i]=s.prototype[i]||function(){const o=this.attrs[t];return o===void 0?a:o}},addSetter(s,t,a,i){const o=oh+tt._capitalize(t);s.prototype[o]||k.overWriteSetter(s,t,a,i)},overWriteSetter(s,t,a,i){const o=oh+tt._capitalize(t);s.prototype[o]=function(h){return a&&h!==void 0&&h!==null&&(h=a.call(this,h,t)),this._setAttr(t,h),i&&i.call(this),this}},addComponentsGetterSetter(s,t,a,i,o){const h=a.length,d=tt._capitalize,g=uh+d(t),p=oh+d(t);s.prototype[g]=function(){const E={};for(let _=0;_<h;_++){const A=a[_];E[A]=this.getAttr(t+d(A))}return E};const b=w8(a);s.prototype[p]=function(E){const _=this.attrs[t];i&&(E=i.call(this,E,t)),b&&b.call(this,E,t);for(const A in E)E.hasOwnProperty(A)&&this._setAttr(t+d(A),E[A]);return E||a.forEach(A=>{this._setAttr(t+d(A),void 0)}),this._fireChangeEvent(t,_,E),o&&o.call(this),this},k.addOverloadedGetterSetter(s,t)},addOverloadedGetterSetter(s,t){const a=tt._capitalize(t),i=oh+a,o=uh+a;s.prototype[t]=function(){return arguments.length?(this[i](arguments[0]),this):this[o]()}},addDeprecatedGetterSetter(s,t,a,i){tt.error("Adding deprecated "+t);const o=uh+tt._capitalize(t),h=t+" property is deprecated and will be removed soon. Look at Konva change log for more information.";s.prototype[o]=function(){tt.error(h);const d=this.attrs[t];return d===void 0?a:d},k.addSetter(s,t,i,function(){tt.error(h)}),k.addOverloadedGetterSetter(s,t)},backCompat(s,t){tt.each(t,function(a,i){const o=s.prototype[i],h=uh+tt._capitalize(a),d=oh+tt._capitalize(a);function g(){o.apply(this,arguments),tt.error('"'+a+'" method is deprecated and will be removed soon. Use ""'+i+'" instead.')}s.prototype[a]=g,s.prototype[h]=g,s.prototype[d]=g})},afterSetFilter(){this._filterUpToDate=!1}};function D8(s){const t=/(\w+)\(([^)]+)\)/g;let a;for(;(a=t.exec(s))!==null;){const[,i,o]=a;switch(i){case"blur":{const h=parseFloat(o.replace("px",""));return function(d){this.blurRadius(h*.5);const g=qt.Filters;g&&g.Blur&&g.Blur.call(this,d)}}case"brightness":{const h=o.includes("%")?parseFloat(o)/100:parseFloat(o);return function(d){this.brightness(h);const g=qt.Filters;g&&g.Brightness&&g.Brightness.call(this,d)}}case"contrast":{const h=parseFloat(o);return function(d){const g=100*(Math.sqrt(h)-1);this.contrast(g);const p=qt.Filters;p&&p.Contrast&&p.Contrast.call(this,d)}}case"grayscale":return function(h){const d=qt.Filters;d&&d.Grayscale&&d.Grayscale.call(this,h)};case"sepia":return function(h){const d=qt.Filters;d&&d.Sepia&&d.Sepia.call(this,h)};case"invert":return function(h){const d=qt.Filters;d&&d.Invert&&d.Invert.call(this,h)};default:tt.warn(`CSS filter "${i}" is not supported in fallback mode. Consider using function filters for better compatibility.`);break}}return()=>{}}const q2="absoluteOpacity",y2="allEventListeners",Kr="absoluteTransform",b3="absoluteScale",Pu="canvas",N8="Change",R8="children",O8="konva",_d="listening",B8="mouseenter",H8="mouseleave",G8="pointerenter",U8="pointerleave",q8="touchenter",L8="touchleave",S3="set",x3="Shape",L2=" ",T3="stage",Ps="transform",k8="Stage",Md="visible",Y8=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(L2);let X8=1;class Gt{constructor(t){this._id=X8++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Ps||t===Kr)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,a){let i=this._cache.get(t);return(i===void 0||(t===Ps||t===Kr)&&i.dirty===!0)&&(i=a.call(this),this._cache.set(t,i)),i}_calculate(t,a,i){if(!this._attachedDepsListeners.get(t)){const o=a.map(h=>h+"Change.konva").join(L2);this.on(o,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,i)}_getCanvasCache(){return this._cache.get(Pu)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===Kr&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Pu)){const{scene:t,filter:a,hit:i,buffer:o}=this._cache.get(Pu);tt.releaseCanvas(t,a,i,o),this._cache.delete(Pu)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const a=t||{};let i={};(a.x===void 0||a.y===void 0||a.width===void 0||a.height===void 0)&&(i=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let o=Math.ceil(a.width||i.width),h=Math.ceil(a.height||i.height),d=a.pixelRatio,g=a.x===void 0?Math.floor(i.x):a.x,p=a.y===void 0?Math.floor(i.y):a.y,b=a.offset||0,E=a.drawBorder||!1,_=a.hitCanvasPixelRatio||1;if(!o||!h){tt.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const A=Math.abs(Math.round(i.x)-g)>.5?1:0,D=Math.abs(Math.round(i.y)-p)>.5?1:0;o+=b*2+A,h+=b*2+D,g-=b,p-=b;const C=new tu({pixelRatio:d,width:o,height:h}),H=new tu({pixelRatio:d,width:0,height:0,willReadFrequently:!0}),U=new Jd({pixelRatio:_,width:o,height:h}),Y=C.getContext(),G=U.getContext(),Z=new tu({width:C.width/C.pixelRatio+Math.abs(g),height:C.height/C.pixelRatio+Math.abs(p),pixelRatio:C.pixelRatio}),q=Z.getContext();return U.isCache=!0,C.isCache=!0,this._cache.delete(Pu),this._filterUpToDate=!1,a.imageSmoothingEnabled===!1&&(C.getContext()._context.imageSmoothingEnabled=!1,H.getContext()._context.imageSmoothingEnabled=!1),Y.save(),G.save(),q.save(),Y.translate(-g,-p),G.translate(-g,-p),q.translate(-g,-p),Z.x=g,Z.y=p,this._isUnderCache=!0,this._clearSelfAndDescendantCache(q2),this._clearSelfAndDescendantCache(b3),this.drawScene(C,this,Z),this.drawHit(U,this),this._isUnderCache=!1,Y.restore(),G.restore(),E&&(Y.save(),Y.beginPath(),Y.rect(0,0,o,h),Y.closePath(),Y.setAttr("strokeStyle","red"),Y.setAttr("lineWidth",5),Y.stroke(),Y.restore()),this._cache.set(Pu,{scene:C,filter:H,hit:U,buffer:Z,x:g,y:p}),this._requestDraw(),this}isCached(){return this._cache.has(Pu)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,a){const i=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let o=1/0,h=1/0,d=-1/0,g=-1/0;const p=this.getAbsoluteTransform(a);return i.forEach(function(b){const E=p.point(b);o===void 0&&(o=d=E.x,h=g=E.y),o=Math.min(o,E.x),h=Math.min(h,E.y),d=Math.max(d,E.x),g=Math.max(g,E.y)}),{x:o,y:h,width:d-o,height:g-h}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const a=this._getCanvasCache();t.translate(a.x,a.y);const i=this._getCachedSceneCanvas(),o=i.pixelRatio;t.drawImage(i._canvas,0,0,i.width/o,i.height/o),t.restore()}_drawCachedHitCanvas(t){const a=this._getCanvasCache(),i=a.hit;t.save(),t.translate(a.x,a.y),t.drawImage(i._canvas,0,0,i.width/i.pixelRatio,i.height/i.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),a=this._getCanvasCache(),i=a.scene,o=a.filter,h=o.getContext(),d,g,p,b;if(!t||t.length===0)return i;if(this._filterUpToDate)return o;let E=!0;for(let A=0;A<t.length;A++)if(typeof t[A]=="string"&&y3(),typeof t[A]!="string"||!y3()){E=!1;break}const _=i.pixelRatio;if(o.setSize(i.width/i.pixelRatio,i.height/i.pixelRatio),E){const A=t.join(" ");return h.save(),h.setAttr("filter",A),h.drawImage(i._canvas,0,0,i.getWidth()/_,i.getHeight()/_),h.restore(),this._filterUpToDate=!0,o}try{for(d=t.length,h.clear(),h.drawImage(i._canvas,0,0,i.getWidth()/_,i.getHeight()/_),g=h.getImageData(0,0,o.getWidth(),o.getHeight()),p=0;p<d;p++)b=t[p],typeof b=="string"&&(b=D8(b)),b.call(this,g),h.putImageData(g,0,0)}catch(A){tt.error("Unable to apply filter. "+A.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}return this._filterUpToDate=!0,o}on(t,a){if(this._cache&&this._cache.delete(y2),arguments.length===3)return this._delegate.apply(this,arguments);const i=t.split(L2);for(let o=0;o<i.length;o++){const d=i[o].split("."),g=d[0],p=d[1]||"";this.eventListeners[g]||(this.eventListeners[g]=[]),this.eventListeners[g].push({name:p,handler:a})}return this}off(t,a){let i=(t||"").split(L2),o=i.length,h,d,g,p,b,E;if(this._cache&&this._cache.delete(y2),!t)for(d in this.eventListeners)this._off(d);for(h=0;h<o;h++)if(g=i[h],p=g.split("."),b=p[0],E=p[1],b)this.eventListeners[b]&&this._off(b,E,a);else for(d in this.eventListeners)this._off(d,E,a);return this}dispatchEvent(t){const a={target:this,type:t.type,evt:t};return this.fire(t.type,a),this}addEventListener(t,a){return this.on(t,function(i){a.call(this,i.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,a,i){const o=this;this.on(t,function(h){const d=h.target.findAncestors(a,!0,o);for(let g=0;g<d.length;g++)h=tt.cloneObject(h),h.currentTarget=d[g],i.call(d[g],h)})}remove(){return this.isDragging()&&this.stopDrag(),la._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Kr),this._clearSelfAndDescendantCache(q2),this._clearSelfAndDescendantCache(b3),this._clearSelfAndDescendantCache(T3),this._clearSelfAndDescendantCache(Md),this._clearSelfAndDescendantCache(_d)}_remove(){this._clearCaches();const t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){const a="get"+tt._capitalize(t);return tt._isFunction(this[a])?this[a]():this.attrs[t]}getAncestors(){let t=this.getParent(),a=[];for(;t;)a.push(t),t=t.getParent();return a}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{let a,i;if(!t)return this;for(a in t)a!==R8&&(i=S3+tt._capitalize(a),tt._isFunction(this[i])?this[i](t[a]):this._setAttr(a,t[a]))}),this}isListening(){return this._getCache(_d,this._isListening)}_isListening(t){if(!this.listening())return!1;const i=this.getParent();return i&&i!==t&&this!==t?i._isListening(t):!0}isVisible(){return this._getCache(Md,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const i=this.getParent();return i&&i!==t&&this!==t?i._isVisible(t):!0}shouldDrawHit(t,a=!1){if(t)return this._isVisible(t)&&this._isListening(t);const i=this.getLayer();let o=!1;la._dragElements.forEach(d=>{d.dragStatus==="dragging"&&(d.node.nodeType==="Stage"||d.node.getLayer()===i)&&(o=!0)});const h=!a&&!qt.hitOnDragEnabled&&(o||qt.isTransforming());return this.isListening()&&this.isVisible()&&!h}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),a=this,i=0,o,h,d,g;function p(E){for(o=[],h=E.length,d=0;d<h;d++)g=E[d],i++,g.nodeType!==x3&&(o=o.concat(g.getChildren().slice())),g._id===a._id&&(d=h);o.length>0&&o[0].getDepth()<=t&&p(o)}const b=this.getStage();return a.nodeType!==k8&&b&&p(b.getChildren()),i}getDepth(){let t=0,a=this.parent;for(;a;)t++,a=a.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Ps),this._clearSelfAndDescendantCache(Kr)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const a=t.getPointerPosition();if(!a)return null;const i=this.getAbsoluteTransform().copy();return i.invert(),i.point(a)}getAbsolutePosition(t){let a=!1,i=this.parent;for(;i;){if(i.isCached()){a=!0;break}i=i.parent}a&&!t&&(t=!0);const o=this.getAbsoluteTransform(t).getMatrix(),h=new cl,d=this.offset();return h.m=o.slice(),h.translate(d.x,d.y),h.getTranslation()}setAbsolutePosition(t){const{x:a,y:i,...o}=this._clearTransform();this.attrs.x=a,this.attrs.y=i,this._clearCache(Ps);const h=this._getAbsoluteTransform().copy();return h.invert(),h.translate(t.x,t.y),t={x:this.attrs.x+h.getTranslation().x,y:this.attrs.y+h.getTranslation().y},this._setTransform(o),this.setPosition({x:t.x,y:t.y}),this._clearCache(Ps),this._clearSelfAndDescendantCache(Kr),this}_setTransform(t){let a;for(a in t)this.attrs[a]=t[a]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let a=t.x,i=t.y,o=this.x(),h=this.y();return a!==void 0&&(o+=a),i!==void 0&&(h+=i),this.setPosition({x:o,y:h}),this}_eachAncestorReverse(t,a){let i=[],o=this.getParent(),h,d;if(!(a&&a._id===this._id)){for(i.unshift(this);o&&(!a||o._id!==a._id);)i.unshift(o),o=o.parent;for(h=i.length,d=0;d<h;d++)t(i[d])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return tt.warn("Node has no parent. moveToTop function is ignored."),!1;const t=this.index,a=this.parent.getChildren().length;return t<a-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return tt.warn("Node has no parent. moveUp function is ignored."),!1;const t=this.index,a=this.parent.getChildren().length;return t<a-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return tt.warn("Node has no parent. moveDown function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return tt.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return tt.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&tt.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const a=this.index;return this.parent.children.splice(a,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(q2,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const a=this.getParent();return a&&!a._isUnderCache&&(t*=a.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),a,i,o,h,d;const g={attrs:{},className:this.getClassName()};for(a in t)i=t[a],d=tt.isObject(i)&&!tt._isPlainObject(i)&&!tt._isArray(i),!d&&(o=typeof this[a]=="function"&&this[a],delete t[a],h=o?o.call(this):null,t[a]=i,h!==i&&(g.attrs[a]=i));return tt._prepareToStringify(g)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,a,i){const o=[];a&&this._isMatch(t)&&o.push(this);let h=this.parent;for(;h;){if(h===i)return o;h._isMatch(t)&&o.push(h),h=h.parent}return o}isAncestorOf(t){return!1}findAncestor(t,a,i){return this.findAncestors(t,a,i)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let a=t.replace(/ /g,"").split(","),i=a.length,o,h;for(o=0;o<i;o++)if(h=a[o],tt.isValidSelector(h)||(tt.warn('Selector "'+h+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),tt.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),tt.warn("Konva is awesome, right?")),h.charAt(0)==="#"){if(this.id()===h.slice(1))return!0}else if(h.charAt(0)==="."){if(this.hasName(h.slice(1)))return!0}else if(this.className===h||this.nodeType===h)return!0;return!1}getLayer(){const t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(T3,this._getStage)}_getStage(){const t=this.getParent();return t?t.getStage():null}fire(t,a={},i){return a.target=a.target||this,i?this._fireAndBubble(t,a):this._fire(t,a),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(Kr,this._getAbsoluteTransform)}_getAbsoluteTransform(t){let a;if(t)return a=new cl,this._eachAncestorReverse(function(i){const o=i.transformsEnabled();o==="all"?a.multiply(i.getTransform()):o==="position"&&a.translate(i.x()-i.offsetX(),i.y()-i.offsetY())},t),a;{a=this._cache.get(Kr)||new cl,this.parent?this.parent.getAbsoluteTransform().copyInto(a):a.reset();const i=this.transformsEnabled();if(i==="all")a.multiply(this.getTransform());else if(i==="position"){const o=this.attrs.x||0,h=this.attrs.y||0,d=this.attrs.offsetX||0,g=this.attrs.offsetY||0;a.translate(o-d,h-g)}return a.dirty=!1,a}}getAbsoluteScale(t){let a=this;for(;a;)a._isUnderCache&&(t=a),a=a.getParent();const o=this.getAbsoluteTransform(t).decompose();return{x:o.scaleX,y:o.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(Ps,this._getTransform)}_getTransform(){var t,a;const i=this._cache.get(Ps)||new cl;i.reset();const o=this.x(),h=this.y(),d=qt.getAngle(this.rotation()),g=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,p=(a=this.attrs.scaleY)!==null&&a!==void 0?a:1,b=this.attrs.skewX||0,E=this.attrs.skewY||0,_=this.attrs.offsetX||0,A=this.attrs.offsetY||0;return(o!==0||h!==0)&&i.translate(o,h),d!==0&&i.rotate(d),(b!==0||E!==0)&&i.skew(b,E),(g!==1||p!==1)&&i.scale(g,p),(_!==0||A!==0)&&i.translate(-1*_,-1*A),i.dirty=!1,i}clone(t){let a=tt.cloneObject(this.attrs),i,o,h,d,g;for(i in t)a[i]=t[i];const p=new this.constructor(a);for(i in this.eventListeners)for(o=this.eventListeners[i],h=o.length,d=0;d<h;d++)g=o[d],g.name.indexOf(O8)<0&&(p.eventListeners[i]||(p.eventListeners[i]=[]),p.eventListeners[i].push(g));return p}_toKonvaCanvas(t){t=t||{};const a=this.getClientRect(),i=this.getStage(),o=t.x!==void 0?t.x:Math.floor(a.x),h=t.y!==void 0?t.y:Math.floor(a.y),d=t.pixelRatio||1,g=new tu({width:t.width||Math.ceil(a.width)||(i?i.width():0),height:t.height||Math.ceil(a.height)||(i?i.height():0),pixelRatio:d}),p=g.getContext(),b=new tu({width:g.width/g.pixelRatio+Math.abs(o),height:g.height/g.pixelRatio+Math.abs(h),pixelRatio:g.pixelRatio});return t.imageSmoothingEnabled===!1&&(p._context.imageSmoothingEnabled=!1),p.save(),(o||h)&&p.translate(-1*o,-1*h),this.drawScene(g,void 0,b),p.restore(),g}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};const a=t.mimeType||null,i=t.quality||null,o=this._toKonvaCanvas(t).toDataURL(a,i);return t.callback&&t.callback(o),o}toImage(t){return new Promise((a,i)=>{try{const o=t?.callback;o&&delete t.callback,tt._urlToImage(this.toDataURL(t),function(h){a(h),o?.(h)})}catch(o){i(o)}})}toBlob(t){return new Promise((a,i)=>{try{const o=t?.callback;o&&delete t.callback,this.toCanvas(t).toBlob(h=>{a(h),o?.(h)},t?.mimeType,t?.quality)}catch(o){i(o)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():qt.dragDistance}_off(t,a,i){let o=this.eventListeners[t],h,d,g;for(h=0;h<o.length;h++)if(d=o[h].name,g=o[h].handler,(d!=="konva"||a==="konva")&&(!a||d===a)&&(!i||i===g)){if(o.splice(h,1),o.length===0){delete this.eventListeners[t];break}h--}}_fireChangeEvent(t,a,i){this._fire(t+N8,{oldVal:a,newVal:i})}addName(t){if(!this.hasName(t)){const a=this.name(),i=a?a+" "+t:t;this.name(i)}return this}hasName(t){if(!t)return!1;const a=this.name();return a?(a||"").split(/\s/g).indexOf(t)!==-1:!1}removeName(t){const a=(this.name()||"").split(/\s/g),i=a.indexOf(t);return i!==-1&&(a.splice(i,1),this.name(a.join(" "))),this}setAttr(t,a){const i=this[S3+tt._capitalize(t)];return tt._isFunction(i)?i.call(this,a):this._setAttr(t,a),this}_requestDraw(){if(qt.autoDrawEnabled){const t=this.getLayer()||this.getStage();t?.batchDraw()}}_setAttr(t,a){const i=this.attrs[t];i===a&&!tt.isObject(a)||(a==null?delete this.attrs[t]:this.attrs[t]=a,this._shouldFireChangeEvents&&this._fireChangeEvent(t,i,a),this._requestDraw())}_setComponentAttr(t,a,i){let o;i!==void 0&&(o=this.attrs[t],o||(this.attrs[t]=this.getAttr(t)),this.attrs[t][a]=i,this._fireChangeEvent(t,o,i))}_fireAndBubble(t,a,i){a&&this.nodeType===x3&&(a.target=this);const o=[B8,H8,G8,U8,q8,L8];if(!(o.indexOf(t)!==-1&&(i&&(this===i||this.isAncestorOf&&this.isAncestorOf(i))||this.nodeType==="Stage"&&!i))){this._fire(t,a);const d=o.indexOf(t)!==-1&&i&&i.isAncestorOf&&i.isAncestorOf(this)&&!i.isAncestorOf(this.parent);(a&&!a.cancelBubble||!a)&&this.parent&&this.parent.isListening()&&!d&&(i&&i.parent?this._fireAndBubble.call(this.parent,t,a,i):this._fireAndBubble.call(this.parent,t,a))}}_getProtoListeners(t){var a,i,o;const h=(a=this._cache.get(y2))!==null&&a!==void 0?a:{};let d=h?.[t];if(d===void 0){d=[];let g=Object.getPrototypeOf(this);for(;g;){const p=(o=(i=g.eventListeners)===null||i===void 0?void 0:i[t])!==null&&o!==void 0?o:[];d.push(...p),g=Object.getPrototypeOf(g)}h[t]=d,this._cache.set(y2,h)}return d}_fire(t,a){a=a||{},a.currentTarget=this,a.type=t;const i=this._getProtoListeners(t);if(i)for(let h=0;h<i.length;h++)i[h].handler.call(this,a);const o=this.eventListeners[t];if(o)for(let h=0;h<o.length;h++)o[h].handler.call(this,a)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){const a=t?t.pointerId:void 0,i=this.getStage(),o=this.getAbsolutePosition();if(!i)return;const h=i._getPointerById(a)||i._changedPointerPositions[0]||o;la._dragElements.set(this._id,{node:this,startPointerPos:h,offset:{x:h.x-o.x,y:h.y-o.y},dragStatus:"ready",pointerId:a})}startDrag(t,a=!0){la._dragElements.has(this._id)||this._createDragElement(t);const i=la._dragElements.get(this._id);i.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},a)}_setDragPosition(t,a){const i=this.getStage()._getPointerById(a.pointerId);if(!i)return;let o={x:i.x-a.offset.x,y:i.y-a.offset.y};const h=this.dragBoundFunc();if(h!==void 0){const d=h.call(this,o,t);d?o=d:tt.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==o.x||this._lastPos.y!==o.y)&&(this.setAbsolutePosition(o),this._requestDraw()),this._lastPos=o}stopDrag(t){const a=la._dragElements.get(this._id);a&&(a.dragStatus="stopped"),la._endDragBefore(t),la._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=la._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){if(!(!(t.evt.button!==void 0)||qt.dragButtons.indexOf(t.evt.button)>=0)||this.isDragging())return;let o=!1;la._dragElements.forEach(h=>{this.isAncestorOf(h.node)&&(o=!0)}),o||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const a=la._dragElements.get(this._id),i=a&&a.dragStatus==="dragging",o=a&&a.dragStatus==="ready";i?this.stopDrag():o&&la._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const a=this.getStage();if(!a)return!1;const i={x:-t.x,y:-t.y,width:a.width()+2*t.x,height:a.height()+2*t.y};return tt.haveIntersection(i,this.getClientRect())}static create(t,a){return tt._isString(t)&&(t=JSON.parse(t)),this._createNode(t,a)}static _createNode(t,a){let i=Gt.prototype.getClassName.call(t),o=t.children,h,d,g;a&&(t.attrs.container=a),qt[i]||(tt.warn('Can not find a node with class name "'+i+'". Fallback to "Shape".'),i="Shape");const p=qt[i];if(h=new p(t.attrs),o)for(d=o.length,g=0;g<d;g++)h.add(Gt._createNode(o[g]));return h}}Gt.prototype.nodeType="Node";Gt.prototype._attrsAffectingSize=[];Gt.prototype.eventListeners={};Gt.prototype.on.call(Gt.prototype,Y8,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Ps),this._clearSelfAndDescendantCache(Kr)});Gt.prototype.on.call(Gt.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(Md)});Gt.prototype.on.call(Gt.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(_d)});Gt.prototype.on.call(Gt.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(q2)});const Sa=k.addGetterSetter;Sa(Gt,"zIndex");Sa(Gt,"absolutePosition");Sa(Gt,"position");Sa(Gt,"x",0,Ut());Sa(Gt,"y",0,Ut());Sa(Gt,"globalCompositeOperation","source-over",ao());Sa(Gt,"opacity",1,Ut());Sa(Gt,"name","",ao());Sa(Gt,"id","",ao());Sa(Gt,"rotation",0,Ut());k.addComponentsGetterSetter(Gt,"scale",["x","y"]);Sa(Gt,"scaleX",1,Ut());Sa(Gt,"scaleY",1,Ut());k.addComponentsGetterSetter(Gt,"skew",["x","y"]);Sa(Gt,"skewX",0,Ut());Sa(Gt,"skewY",0,Ut());k.addComponentsGetterSetter(Gt,"offset",["x","y"]);Sa(Gt,"offsetX",0,Ut());Sa(Gt,"offsetY",0,Ut());Sa(Gt,"dragDistance",void 0,Ut());Sa(Gt,"width",0,Ut());Sa(Gt,"height",0,Ut());Sa(Gt,"listening",!0,Ei());Sa(Gt,"preventDefault",!0,Ei());Sa(Gt,"filters",void 0,function(s){return this._filterUpToDate=!1,s});Sa(Gt,"visible",!0,Ei());Sa(Gt,"transformsEnabled","all",ao());Sa(Gt,"size");Sa(Gt,"dragBoundFunc");Sa(Gt,"draggable",!1,Ei());k.backCompat(Gt,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});class fl extends Gt{constructor(){super(...arguments),this.children=[]}getChildren(t){const a=this.children||[];return t?a.filter(t):a}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(let i=0;i<t.length;i++)this.add(t[i]);return this}const a=t[0];return a.getParent()?(a.moveTo(this),this):(this._validateAdd(a),a.index=this.getChildren().length,a.parent=this,a._clearCaches(),this.getChildren().push(a),this._fire("add",{child:a}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){const a=this._generalFind(t,!0);return a.length>0?a[0]:void 0}_generalFind(t,a){const i=[];return this._descendants(o=>{const h=o._isMatch(t);return h&&i.push(o),!!(h&&a)}),i}_descendants(t){let a=!1;const i=this.getChildren();for(const o of i){if(a=t(o),a)return!0;if(o.hasChildren()&&(a=o._descendants(t),a))return!0}return!1}toObject(){const t=Gt.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(a=>{t.children.push(a.toObject())}),t}isAncestorOf(t){let a=t.getParent();for(;a;){if(a._id===this._id)return!0;a=a.getParent()}return!1}clone(t){const a=Gt.prototype.clone.call(this,t);return this.getChildren().forEach(function(i){a.add(i.clone())}),a}getAllIntersections(t){const a=[];return this.find("Shape").forEach(i=>{i.isVisible()&&i.intersects(t)&&a.push(i)}),a}_clearSelfAndDescendantCache(t){var a;super._clearSelfAndDescendantCache(t),!this.isCached()&&((a=this.children)===null||a===void 0||a.forEach(function(i){i._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(a,i){a.index=i}),this._requestDraw()}drawScene(t,a,i){const o=this.getLayer(),h=t||o&&o.getCanvas(),d=h&&h.getContext(),g=this._getCanvasCache(),p=g&&g.scene,b=h&&h.isCache;if(!this.isVisible()&&!b)return this;if(p){d.save();const E=this.getAbsoluteTransform(a).getMatrix();d.transform(E[0],E[1],E[2],E[3],E[4],E[5]),this._drawCachedSceneCanvas(d),d.restore()}else this._drawChildren("drawScene",h,a,i);return this}drawHit(t,a){if(!this.shouldDrawHit(a))return this;const i=this.getLayer(),o=t||i&&i.hitCanvas,h=o&&o.getContext(),d=this._getCanvasCache();if(d&&d.hit){h.save();const p=this.getAbsoluteTransform(a).getMatrix();h.transform(p[0],p[1],p[2],p[3],p[4],p[5]),this._drawCachedHitCanvas(h),h.restore()}else this._drawChildren("drawHit",o,a);return this}_drawChildren(t,a,i,o){var h;const d=a&&a.getContext(),g=this.clipWidth(),p=this.clipHeight(),b=this.clipFunc(),E=typeof g=="number"&&typeof p=="number"||b,_=i===this;if(E){d.save();const D=this.getAbsoluteTransform(i);let C=D.getMatrix();d.transform(C[0],C[1],C[2],C[3],C[4],C[5]),d.beginPath();let H;if(b)H=b.call(this,d,this);else{const U=this.clipX(),Y=this.clipY();d.rect(U||0,Y||0,g,p)}d.clip.apply(d,H),C=D.copy().invert().getMatrix(),d.transform(C[0],C[1],C[2],C[3],C[4],C[5])}const A=!_&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";A&&(d.save(),d._applyGlobalCompositeOperation(this)),(h=this.children)===null||h===void 0||h.forEach(function(D){D[t](a,i,o)}),A&&d.restore(),E&&d.restore()}getClientRect(t={}){var a;const i=t.skipTransform,o=t.relativeTo;let h,d,g,p,b={x:1/0,y:1/0,width:0,height:0};const E=this;(a=this.children)===null||a===void 0||a.forEach(function(D){if(!D.visible())return;const C=D.getClientRect({relativeTo:E,skipShadow:t.skipShadow,skipStroke:t.skipStroke});C.width===0&&C.height===0||(h===void 0?(h=C.x,d=C.y,g=C.x+C.width,p=C.y+C.height):(h=Math.min(h,C.x),d=Math.min(d,C.y),g=Math.max(g,C.x+C.width),p=Math.max(p,C.y+C.height)))});const _=this.find("Shape");let A=!1;for(let D=0;D<_.length;D++)if(_[D]._isVisible(this)){A=!0;break}return A&&h!==void 0?b={x:h,y:d,width:g-h,height:p-d}:b={x:0,y:0,width:0,height:0},i?b:this._transformedRect(b,o)}}k.addComponentsGetterSetter(fl,"clip",["x","y","width","height"]);k.addGetterSetter(fl,"clipX",void 0,Ut());k.addGetterSetter(fl,"clipY",void 0,Ut());k.addGetterSetter(fl,"clipWidth",void 0,Ut());k.addGetterSetter(fl,"clipHeight",void 0,Ut());k.addGetterSetter(fl,"clipFunc");const Eh=new Map,D6=qt._global.PointerEvent!==void 0;function F4(s){return Eh.get(s)}function Wd(s){return{evt:s,pointerId:s.pointerId}}function N6(s,t){return Eh.get(s)===t}function R6(s,t){yh(s),t.getStage()&&(Eh.set(s,t),D6&&t._fire("gotpointercapture",Wd(new PointerEvent("gotpointercapture"))))}function yh(s,t){const a=Eh.get(s);if(!a)return;const i=a.getStage();i&&i.content,Eh.delete(s),D6&&a._fire("lostpointercapture",Wd(new PointerEvent("lostpointercapture")))}const j8="Stage",V8="string",E3="px",Q8="mouseout",O6="mouseleave",B6="mouseover",H6="mouseenter",G6="mousemove",U6="mousedown",q6="mouseup",fh="pointermove",dh="pointerdown",Tc="pointerup",mh="pointercancel",K8="lostpointercapture",b2="pointerout",gh="pointerleave",S2="pointerover",x2="pointerenter",Ad="contextmenu",L6="touchstart",k6="touchend",Y6="touchmove",X6="touchcancel",zd="wheel",Z8=5,J8=[[H6,"_pointerenter"],[U6,"_pointerdown"],[G6,"_pointermove"],[q6,"_pointerup"],[O6,"_pointerleave"],[L6,"_pointerdown"],[Y6,"_pointermove"],[k6,"_pointerup"],[X6,"_pointercancel"],[B6,"_pointerover"],[zd,"_wheel"],[Ad,"_contextmenu"],[dh,"_pointerdown"],[fh,"_pointermove"],[Tc,"_pointerup"],[mh,"_pointercancel"],[gh,"_pointerleave"],[K8,"_lostpointercapture"]],W4={mouse:{[b2]:Q8,[gh]:O6,[S2]:B6,[x2]:H6,[fh]:G6,[dh]:U6,[Tc]:q6,[mh]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[b2]:"touchout",[gh]:"touchleave",[S2]:"touchover",[x2]:"touchenter",[fh]:Y6,[dh]:L6,[Tc]:k6,[mh]:X6,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[b2]:b2,[gh]:gh,[S2]:S2,[x2]:x2,[fh]:fh,[dh]:dh,[Tc]:Tc,[mh]:mh,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},ph=s=>s.indexOf("pointer")>=0?"pointer":s.indexOf("touch")>=0?"touch":"mouse",bc=s=>{const t=ph(s);if(t==="pointer")return qt.pointerEventsEnabled&&W4.pointer;if(t==="touch")return W4.touch;if(t==="mouse")return W4.mouse};function _3(s={}){return(s.clipFunc||s.clipWidth||s.clipHeight)&&tt.warn("Stage does not support clipping. Please use clip for Layers or Groups."),s}const F8="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",bh=[];let P2=class extends fl{constructor(t){super(_3(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),bh.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{_3(this.attrs)}),this._checkVisibility()}_validateAdd(t){const a=t.getType()==="Layer",i=t.getType()==="FastLayer";a||i||tt.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if(typeof t===V8){let a;if(t.charAt(0)==="."){const i=t.slice(1);t=document.getElementsByClassName(i)[0]}else t.charAt(0)!=="#"?a=t:a=t.slice(1),t=document.getElementById(a);if(!t)throw"Can not find container in document with id "+a}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const t=this.children,a=t.length;for(let i=0;i<a;i++)t[i].clear();return this}clone(t){return t||(t={}),t.container=typeof document<"u"&&document.createElement("div"),fl.prototype.clone.call(this,t)}destroy(){super.destroy();const t=this.content;t&&tt._isInDocument(t)&&this.container().removeChild(t);const a=bh.indexOf(this);return a>-1&&bh.splice(a,1),tt.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(tt.warn(F8),null)}_getPointerById(t){return this._pointerPositions.find(a=>a.id===t)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){t={...t},t.x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();const a=new tu({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),i=a.getContext()._context,o=this.children;return(t.x||t.y)&&i.translate(-1*t.x,-1*t.y),o.forEach(function(h){if(!h.isVisible())return;const d=h._toKonvaCanvas(t);i.drawImage(d._canvas,t.x,t.y,d.getWidth()/d.getPixelRatio(),d.getHeight()/d.getPixelRatio())}),a}getIntersection(t){if(!t)return null;const a=this.children,i=a.length,o=i-1;for(let h=o;h>=0;h--){const d=a[h].getIntersection(t);if(d)return d}return null}_resizeDOM(){const t=this.width(),a=this.height();this.content&&(this.content.style.width=t+E3,this.content.style.height=a+E3),this.bufferCanvas.setSize(t,a),this.bufferHitCanvas.setSize(t,a),this.children.forEach(i=>{i.setSize({width:t,height:a}),i.draw()})}add(t,...a){if(arguments.length>1){for(let o=0;o<arguments.length;o++)this.add(arguments[o]);return this}super.add(t);const i=this.children.length;return i>Z8&&tt.warn("The stage has "+i+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),t.setSize({width:this.width(),height:this.height()}),t.draw(),qt.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return N6(t,this)}setPointerCapture(t){R6(t,this)}releaseCapture(t){yh(t)}getLayers(){return this.children}_bindContentEvents(){qt.isBrowser&&J8.forEach(([t,a])=>{this.content.addEventListener(t,i=>{this[a](i)},{passive:!1})})}_pointerenter(t){this.setPointersPositions(t);const a=bc(t.type);a&&this._fire(a.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);const a=bc(t.type);a&&this._fire(a.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let a=this[t+"targetShape"];return a&&!a.getStage()&&(a=null),a}_pointerleave(t){const a=bc(t.type),i=ph(t.type);if(!a)return;this.setPointersPositions(t);const o=this._getTargetShape(i),h=!(qt.isDragging()||qt.isTransforming())||qt.hitOnDragEnabled;o&&h?(o._fireAndBubble(a.pointerout,{evt:t}),o._fireAndBubble(a.pointerleave,{evt:t}),this._fire(a.pointerleave,{evt:t,target:this,currentTarget:this}),this[i+"targetShape"]=null):h&&(this._fire(a.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(a.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(t){const a=bc(t.type),i=ph(t.type);if(!a)return;this.setPointersPositions(t);let o=!1;this._changedPointerPositions.forEach(h=>{const d=this.getIntersection(h);if(la.justDragged=!1,qt["_"+i+"ListenClick"]=!0,!d||!d.isListening()){this[i+"ClickStartShape"]=void 0;return}qt.capturePointerEventsEnabled&&d.setPointerCapture(h.id),this[i+"ClickStartShape"]=d,d._fireAndBubble(a.pointerdown,{evt:t,pointerId:h.id}),o=!0;const g=t.type.indexOf("touch")>=0;d.preventDefault()&&t.cancelable&&g&&t.preventDefault()}),o||this._fire(a.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(t){const a=bc(t.type),i=ph(t.type);if(!a)return;const o=t.type.indexOf("touch")>=0||t.pointerType==="touch";if(qt.isDragging()&&la.node.preventDefault()&&t.cancelable&&o&&t.preventDefault(),this.setPointersPositions(t),!(!(qt.isDragging()||qt.isTransforming())||qt.hitOnDragEnabled))return;const d={};let g=!1;const p=this._getTargetShape(i);this._changedPointerPositions.forEach(b=>{const E=F4(b.id)||this.getIntersection(b),_=b.id,A={evt:t,pointerId:_},D=p!==E;if(D&&p&&(p._fireAndBubble(a.pointerout,{...A},E),p._fireAndBubble(a.pointerleave,{...A},E)),E){if(d[E._id])return;d[E._id]=!0}E&&E.isListening()?(g=!0,D&&(E._fireAndBubble(a.pointerover,{...A},p),E._fireAndBubble(a.pointerenter,{...A},p),this[i+"targetShape"]=E),E._fireAndBubble(a.pointermove,{...A})):p&&(this._fire(a.pointerover,{evt:t,target:this,currentTarget:this,pointerId:_}),this[i+"targetShape"]=null)}),g||this._fire(a.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){const a=bc(t.type),i=ph(t.type);if(!a)return;this.setPointersPositions(t);const o=this[i+"ClickStartShape"],h=this[i+"ClickEndShape"],d={};let g=!1;this._changedPointerPositions.forEach(p=>{const b=F4(p.id)||this.getIntersection(p);if(b){if(b.releaseCapture(p.id),d[b._id])return;d[b._id]=!0}const E=p.id,_={evt:t,pointerId:E};let A=!1;qt["_"+i+"InDblClickWindow"]?(A=!0,clearTimeout(this[i+"DblTimeout"])):la.justDragged||(qt["_"+i+"InDblClickWindow"]=!0,clearTimeout(this[i+"DblTimeout"])),this[i+"DblTimeout"]=setTimeout(function(){qt["_"+i+"InDblClickWindow"]=!1},qt.dblClickWindow),b&&b.isListening()?(g=!0,this[i+"ClickEndShape"]=b,b._fireAndBubble(a.pointerup,{..._}),qt["_"+i+"ListenClick"]&&o&&o===b&&(b._fireAndBubble(a.pointerclick,{..._}),A&&h&&h===b&&b._fireAndBubble(a.pointerdblclick,{..._}))):(this[i+"ClickEndShape"]=null,g||(this._fire(a.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),g=!0),qt["_"+i+"ListenClick"]&&this._fire(a.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:E}),A&&this._fire(a.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:E}))}),g||this._fire(a.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),qt["_"+i+"ListenClick"]=!1,t.cancelable&&i!=="touch"&&i!=="pointer"&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);const a=this.getIntersection(this.getPointerPosition());a&&a.isListening()?a._fireAndBubble(Ad,{evt:t}):this._fire(Ad,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);const a=this.getIntersection(this.getPointerPosition());a&&a.isListening()?a._fireAndBubble(zd,{evt:t}):this._fire(zd,{evt:t,target:this,currentTarget:this})}_pointercancel(t){this.setPointersPositions(t);const a=F4(t.pointerId)||this.getIntersection(this.getPointerPosition());a&&a._fireAndBubble(Tc,Wd(t)),yh(t.pointerId)}_lostpointercapture(t){yh(t.pointerId)}setPointersPositions(t){const a=this._getContentPosition();let i=null,o=null;t=t||window.event,t.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,h=>{this._pointerPositions.push({id:h.identifier,x:(h.clientX-a.left)/a.scaleX,y:(h.clientY-a.top)/a.scaleY})}),Array.prototype.forEach.call(t.changedTouches||t.touches,h=>{this._changedPointerPositions.push({id:h.identifier,x:(h.clientX-a.left)/a.scaleX,y:(h.clientY-a.top)/a.scaleY})})):(i=(t.clientX-a.left)/a.scaleX,o=(t.clientY-a.top)/a.scaleY,this.pointerPos={x:i,y:o},this._pointerPositions=[{x:i,y:o,id:tt._getFirstPointerId(t)}],this._changedPointerPositions=[{x:i,y:o,id:tt._getFirstPointerId(t)}])}_setPointerPosition(t){tt.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new tu({width:this.width(),height:this.height()}),this.bufferHitCanvas=new Jd({pixelRatio:1,width:this.width(),height:this.height()}),!qt.isBrowser)return;const t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}cache(){return tt.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(t){t.batchDraw()}),this}};P2.prototype.nodeType=j8;a0(P2);k.addGetterSetter(P2,"container");qt.isBrowser&&document.addEventListener("visibilitychange",()=>{bh.forEach(s=>{s.batchDraw()})});const j6="hasShadow",V6="shadowRGBA",Q6="patternImage",K6="linearGradient",Z6="radialGradient";let T2;function I4(){return T2||(T2=tt.createCanvasElement().getContext("2d"),T2)}const Sh={};function W8(s){const t=this.attrs.fillRule;t?s.fill(t):s.fill()}function I8(s){s.stroke()}function P8(s){const t=this.attrs.fillRule;t?s.fill(t):s.fill()}function $8(s){s.stroke()}function t9(){this._clearCache(j6)}function e9(){this._clearCache(V6)}function a9(){this._clearCache(Q6)}function n9(){this._clearCache(K6)}function l9(){this._clearCache(Z6)}class At extends Gt{constructor(t){super(t);let a,i=0;for(;a=tt.getHitColor(),!(a&&!(a in Sh));)if(i++,i>=1e4){tt.warn("Failed to find a unique color key for a shape. Konva may work incorrectly. Most likely your browser is using canvas farbling. Consider disabling it."),a=tt.getRandomColor();break}this.colorKey=a,Sh[a]=this}getContext(){return tt.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return tt.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(j6,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(Q6,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const a=I4().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(a&&a.setTransform){const i=new cl;i.translate(this.fillPatternX(),this.fillPatternY()),i.rotate(qt.getAngle(this.fillPatternRotation())),i.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),i.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const o=i.getMatrix(),h=typeof DOMMatrix>"u"?{a:o[0],b:o[1],c:o[2],d:o[3],e:o[4],f:o[5]}:new DOMMatrix(o);a.setTransform(h)}return a}}_getLinearGradient(){return this._getCache(K6,this.__getLinearGradient)}__getLinearGradient(){const t=this.fillLinearGradientColorStops();if(t){const a=I4(),i=this.fillLinearGradientStartPoint(),o=this.fillLinearGradientEndPoint(),h=a.createLinearGradient(i.x,i.y,o.x,o.y);for(let d=0;d<t.length;d+=2)h.addColorStop(t[d],t[d+1]);return h}}_getRadialGradient(){return this._getCache(Z6,this.__getRadialGradient)}__getRadialGradient(){const t=this.fillRadialGradientColorStops();if(t){const a=I4(),i=this.fillRadialGradientStartPoint(),o=this.fillRadialGradientEndPoint(),h=a.createRadialGradient(i.x,i.y,this.fillRadialGradientStartRadius(),o.x,o.y,this.fillRadialGradientEndRadius());for(let d=0;d<t.length;d+=2)h.addColorStop(t[d],t[d+1]);return h}}getShadowRGBA(){return this._getCache(V6,this._getShadowRGBA)}_getShadowRGBA(){if(!this.hasShadow())return;const t=tt.colorToRGBA(this.shadowColor());if(t)return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")"}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const t=this.hitStrokeWidth();return t==="auto"?this.hasStroke():this.strokeEnabled()&&!!t}intersects(t){const a=this.getStage();if(!a)return!1;const i=a.bufferHitCanvas;return i.getContext().clear(),this.drawHit(i,void 0,!0),i.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data[3]>0}destroy(){return Gt.prototype.destroy.call(this),delete Sh[this.colorKey],delete this.colorKey,this}_useBufferCanvas(t){var a;if(!((a=this.attrs.perfectDrawEnabled)!==null&&a!==void 0?a:!0))return!1;const o=t||this.hasFill(),h=this.hasStroke(),d=this.getAbsoluteOpacity()!==1;if(o&&h&&d)return!0;const g=this.hasShadow(),p=this.shadowForStrokeEnabled();return!!(o&&h&&g&&p)}setStrokeHitEnabled(t){tt.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}}getClientRect(t={}){let a=!1,i=this.getParent();for(;i;){if(i.isCached()){a=!0;break}i=i.getParent()}const o=t.skipTransform,h=t.relativeTo||a&&this.getStage()||void 0,d=this.getSelfRect(),p=!t.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,b=d.width+p,E=d.height+p,_=!t.skipShadow&&this.hasShadow(),A=_?this.shadowOffsetX():0,D=_?this.shadowOffsetY():0,C=b+Math.abs(A),H=E+Math.abs(D),U=_&&this.shadowBlur()||0,Y=C+U*2,G=H+U*2,Z={width:Y,height:G,x:-(p/2+U)+Math.min(A,0)+d.x,y:-(p/2+U)+Math.min(D,0)+d.y};return o?Z:this._transformedRect(Z,h)}drawScene(t,a,i){const o=this.getLayer(),h=t||o.getCanvas(),d=h.getContext(),g=this._getCanvasCache(),p=this.getSceneFunc(),b=this.hasShadow();let E;const _=a===this;if(!this.isVisible()&&!_)return this;if(g){d.save();const A=this.getAbsoluteTransform(a).getMatrix();return d.transform(A[0],A[1],A[2],A[3],A[4],A[5]),this._drawCachedSceneCanvas(d),d.restore(),this}if(!p)return this;if(d.save(),this._useBufferCanvas()){E=this.getStage();const A=i||E.bufferCanvas,D=A.getContext();D.clear(),D.save(),D._applyLineJoin(this),D._applyMiterLimit(this);const C=this.getAbsoluteTransform(a).getMatrix();D.transform(C[0],C[1],C[2],C[3],C[4],C[5]),p.call(this,D,this),D.restore();const H=A.pixelRatio;b&&d._applyShadow(this),_||(d._applyOpacity(this),d._applyGlobalCompositeOperation(this)),d.drawImage(A._canvas,A.x||0,A.y||0,A.width/H,A.height/H)}else{if(d._applyLineJoin(this),d._applyMiterLimit(this),!_){const A=this.getAbsoluteTransform(a).getMatrix();d.transform(A[0],A[1],A[2],A[3],A[4],A[5]),d._applyOpacity(this),d._applyGlobalCompositeOperation(this)}b&&d._applyShadow(this),p.call(this,d,this)}return d.restore(),this}drawHit(t,a,i=!1){if(!this.shouldDrawHit(a,i))return this;const o=this.getLayer(),h=t||o.hitCanvas,d=h&&h.getContext(),g=this.hitFunc()||this.sceneFunc(),p=this._getCanvasCache(),b=p&&p.hit;if(this.colorKey||tt.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),b){d.save();const _=this.getAbsoluteTransform(a).getMatrix();return d.transform(_[0],_[1],_[2],_[3],_[4],_[5]),this._drawCachedHitCanvas(d),d.restore(),this}if(!g)return this;if(d.save(),d._applyLineJoin(this),d._applyMiterLimit(this),!(this===a)){const _=this.getAbsoluteTransform(a).getMatrix();d.transform(_[0],_[1],_[2],_[3],_[4],_[5])}return g.call(this,d,this),d.restore(),this}drawHitFromCache(t=0){const a=this._getCanvasCache(),i=this._getCachedSceneCanvas(),o=a.hit,h=o.getContext(),d=o.getWidth(),g=o.getHeight();h.clear(),h.drawImage(i._canvas,0,0,d,g);try{const p=h.getImageData(0,0,d,g),b=p.data,E=b.length,_=tt._hexToRgb(this.colorKey);for(let A=0;A<E;A+=4)b[A+3]>t?(b[A]=_.r,b[A+1]=_.g,b[A+2]=_.b,b[A+3]=255):b[A+3]=0;h.putImageData(p,0,0)}catch(p){tt.error("Unable to draw hit graph from cached scene canvas. "+p.message)}return this}hasPointerCapture(t){return N6(t,this)}setPointerCapture(t){R6(t,this)}releaseCapture(t){yh(t)}}At.prototype._fillFunc=W8;At.prototype._strokeFunc=I8;At.prototype._fillFuncHit=P8;At.prototype._strokeFuncHit=$8;At.prototype._centroid=!1;At.prototype.nodeType="Shape";a0(At);At.prototype.eventListeners={};At.prototype.on.call(At.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",t9);At.prototype.on.call(At.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",e9);At.prototype.on.call(At.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",a9);At.prototype.on.call(At.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",n9);At.prototype.on.call(At.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",l9);k.addGetterSetter(At,"stroke",void 0,w6());k.addGetterSetter(At,"strokeWidth",2,Ut());k.addGetterSetter(At,"fillAfterStrokeEnabled",!1);k.addGetterSetter(At,"hitStrokeWidth","auto",Fd());k.addGetterSetter(At,"strokeHitEnabled",!0,Ei());k.addGetterSetter(At,"perfectDrawEnabled",!0,Ei());k.addGetterSetter(At,"shadowForStrokeEnabled",!0,Ei());k.addGetterSetter(At,"lineJoin");k.addGetterSetter(At,"lineCap");k.addGetterSetter(At,"miterLimit");k.addGetterSetter(At,"sceneFunc");k.addGetterSetter(At,"hitFunc");k.addGetterSetter(At,"dash");k.addGetterSetter(At,"dashOffset",0,Ut());k.addGetterSetter(At,"shadowColor",void 0,ao());k.addGetterSetter(At,"shadowBlur",0,Ut());k.addGetterSetter(At,"shadowOpacity",1,Ut());k.addComponentsGetterSetter(At,"shadowOffset",["x","y"]);k.addGetterSetter(At,"shadowOffsetX",0,Ut());k.addGetterSetter(At,"shadowOffsetY",0,Ut());k.addGetterSetter(At,"fillPatternImage");k.addGetterSetter(At,"fill",void 0,w6());k.addGetterSetter(At,"fillPatternX",0,Ut());k.addGetterSetter(At,"fillPatternY",0,Ut());k.addGetterSetter(At,"fillLinearGradientColorStops");k.addGetterSetter(At,"strokeLinearGradientColorStops");k.addGetterSetter(At,"fillRadialGradientStartRadius",0);k.addGetterSetter(At,"fillRadialGradientEndRadius",0);k.addGetterSetter(At,"fillRadialGradientColorStops");k.addGetterSetter(At,"fillPatternRepeat","repeat");k.addGetterSetter(At,"fillEnabled",!0);k.addGetterSetter(At,"strokeEnabled",!0);k.addGetterSetter(At,"shadowEnabled",!0);k.addGetterSetter(At,"dashEnabled",!0);k.addGetterSetter(At,"strokeScaleEnabled",!0);k.addGetterSetter(At,"fillPriority","color");k.addComponentsGetterSetter(At,"fillPatternOffset",["x","y"]);k.addGetterSetter(At,"fillPatternOffsetX",0,Ut());k.addGetterSetter(At,"fillPatternOffsetY",0,Ut());k.addComponentsGetterSetter(At,"fillPatternScale",["x","y"]);k.addGetterSetter(At,"fillPatternScaleX",1,Ut());k.addGetterSetter(At,"fillPatternScaleY",1,Ut());k.addComponentsGetterSetter(At,"fillLinearGradientStartPoint",["x","y"]);k.addComponentsGetterSetter(At,"strokeLinearGradientStartPoint",["x","y"]);k.addGetterSetter(At,"fillLinearGradientStartPointX",0);k.addGetterSetter(At,"strokeLinearGradientStartPointX",0);k.addGetterSetter(At,"fillLinearGradientStartPointY",0);k.addGetterSetter(At,"strokeLinearGradientStartPointY",0);k.addComponentsGetterSetter(At,"fillLinearGradientEndPoint",["x","y"]);k.addComponentsGetterSetter(At,"strokeLinearGradientEndPoint",["x","y"]);k.addGetterSetter(At,"fillLinearGradientEndPointX",0);k.addGetterSetter(At,"strokeLinearGradientEndPointX",0);k.addGetterSetter(At,"fillLinearGradientEndPointY",0);k.addGetterSetter(At,"strokeLinearGradientEndPointY",0);k.addComponentsGetterSetter(At,"fillRadialGradientStartPoint",["x","y"]);k.addGetterSetter(At,"fillRadialGradientStartPointX",0);k.addGetterSetter(At,"fillRadialGradientStartPointY",0);k.addComponentsGetterSetter(At,"fillRadialGradientEndPoint",["x","y"]);k.addGetterSetter(At,"fillRadialGradientEndPointX",0);k.addGetterSetter(At,"fillRadialGradientEndPointY",0);k.addGetterSetter(At,"fillPatternRotation",0);k.addGetterSetter(At,"fillRule",void 0,ao());k.backCompat(At,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});const i9="beforeDraw",r9="draw",J6=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],s9=J6.length;let no=class extends fl{constructor(t){super(t),this.canvas=new tu,this.hitCanvas=new Jd({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);const a=this.getStage();return a&&a.content&&(a.content.removeChild(this.getNativeCanvasElement()),t<a.children.length-1?a.content.insertBefore(this.getNativeCanvasElement(),a.children[t+1].getCanvas()._canvas):a.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Gt.prototype.moveToTop.call(this);const t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){if(!Gt.prototype.moveUp.call(this))return!1;const a=this.getStage();return!a||!a.content?!1:(a.content.removeChild(this.getNativeCanvasElement()),this.index<a.children.length-1?a.content.insertBefore(this.getNativeCanvasElement(),a.children[this.index+1].getCanvas()._canvas):a.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Gt.prototype.moveDown.call(this)){const t=this.getStage();if(t){const a=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),a[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Gt.prototype.moveToBottom.call(this)){const t=this.getStage();if(t){const a=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),a[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){const t=this.getNativeCanvasElement();return Gt.prototype.remove.call(this),t&&t.parentNode&&tt._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:a}){return this.canvas.setSize(t,a),this.hitCanvas.setSize(t,a),this._setSmoothEnabled(),this}_validateAdd(t){const a=t.getType();a!=="Group"&&a!=="Shape"&&tt.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t={...t},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),Gt.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){tt.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){tt.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,tt.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;let a=1,i=!1;for(;;){for(let o=0;o<s9;o++){const h=J6[o],d=this._getIntersection({x:t.x+h.x*a,y:t.y+h.y*a}),g=d.shape;if(g)return g;if(i=!!d.antialiased,!d.antialiased)break}if(i)a+=1;else return null}}_getIntersection(t){const a=this.hitCanvas.pixelRatio,i=this.hitCanvas.context.getImageData(Math.round(t.x*a),Math.round(t.y*a),1,1).data,o=i[3];if(o===255){const h=tt.getHitColorKey(i[0],i[1],i[2]),d=Sh[h];return d?{shape:d}:{antialiased:!0}}else if(o>0)return{antialiased:!0};return{}}drawScene(t,a,i){const o=this.getLayer(),h=t||o&&o.getCanvas();return this._fire(i9,{node:this}),this.clearBeforeDraw()&&h.getContext().clear(),fl.prototype.drawScene.call(this,h,a,i),this._fire(r9,{node:this}),this}drawHit(t,a){const i=this.getLayer(),o=t||i&&i.hitCanvas;return i&&i.clearBeforeDraw()&&i.getHitCanvas().getContext().clear(),fl.prototype.drawHit.call(this,o,a),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){tt.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return tt.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}destroy(){return tt.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};no.prototype.nodeType="Layer";a0(no);k.addGetterSetter(no,"imageSmoothingEnabled",!0);k.addGetterSetter(no,"clearBeforeDraw",!0);k.addGetterSetter(no,"hitGraphEnabled",!0,Ei());class Id extends no{constructor(t){super(t),this.listening(!1),tt.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}Id.prototype.nodeType="FastLayer";a0(Id);class _c extends fl{_validateAdd(t){const a=t.getType();a!=="Group"&&a!=="Shape"&&tt.throw("You may only add groups and shapes to groups.")}}_c.prototype.nodeType="Group";a0(_c);const P4=(function(){return eo.performance&&eo.performance.now?function(){return eo.performance.now()}:function(){return new Date().getTime()}})();class Jl{constructor(t,a){this.id=Jl.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:P4(),frameRate:0},this.func=t,this.setLayers(a)}setLayers(t){let a=[];return t&&(a=Array.isArray(t)?t:[t]),this.layers=a,this}getLayers(){return this.layers}addLayer(t){const a=this.layers,i=a.length;for(let o=0;o<i;o++)if(a[o]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){const a=Jl.animations,i=a.length;for(let o=0;o<i;o++)if(a[o].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=P4(),Jl._addAnimation(this),this}stop(){return Jl._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){const a=t.id,i=this.animations,o=i.length;for(let h=0;h<o;h++)if(i[h].id===a){this.animations.splice(h,1);break}}static _runFrames(){const t={},a=this.animations;for(let i=0;i<a.length;i++){const o=a[i],h=o.layers,d=o.func;o._updateFrameObject(P4());const g=h.length;let p;if(d?p=d.call(o,o.frame)!==!1:p=!0,!!p)for(let b=0;b<g;b++){const E=h[b];E._id!==void 0&&(t[E._id]=E)}}for(const i in t)t.hasOwnProperty(i)&&t[i].batchDraw()}static _animationLoop(){const t=Jl;t.animations.length?(t._runFrames(),tt.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,tt.requestAnimFrame(this._animationLoop))}}Jl.animations=[];Jl.animIdCounter=0;Jl.animRunning=!1;const u9={node:1,duration:1,easing:1,onFinish:1,yoyo:1},o9=1,M3=2,A3=3,z3=["fill","stroke","shadowColor"];let c9=0;class h9{constructor(t,a,i,o,h,d,g){this.prop=t,this.propFunc=a,this.begin=o,this._pos=o,this.duration=d,this._change=0,this.prevPos=0,this.yoyo=g,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=i,this._change=h-this.begin,this.pause()}fire(t){const a=this[t];a&&a()}setTime(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return t===void 0&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=M3,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=A3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const t=this.getTimer()-this._startTime;this.state===M3?this.setTime(t):this.state===A3&&this.setTime(this.duration-t)}pause(){this.state=o9,this.fire("onPause")}getTimer(){return new Date().getTime()}}class Da{constructor(t){const a=this,i=t.node,o=i._id,h=t.easing||xh.Linear,d=!!t.yoyo;let g,p;typeof t.duration>"u"?g=.3:t.duration===0?g=.001:g=t.duration,this.node=i,this._id=c9++;const b=i.getLayer()||(i instanceof qt.Stage?i.getLayers():null);b||tt.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Jl(function(){a.tween.onEnterFrame()},b),this.tween=new h9(p,function(E){a._tweenFunc(E)},h,0,1,g*1e3,d),this._addListeners(),Da.attrs[o]||(Da.attrs[o]={}),Da.attrs[o][this._id]||(Da.attrs[o][this._id]={}),Da.tweens[o]||(Da.tweens[o]={});for(p in t)u9[p]===void 0&&this._addAttr(p,t[p]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,a){const i=this.node,o=i._id;let h,d,g,p,b;const E=Da.tweens[o][t];E&&delete Da.attrs[o][E][t];let _=i.getAttr(t);if(tt._isArray(a))if(h=[],d=Math.max(a.length,_.length),t==="points"&&a.length!==_.length&&(a.length>_.length?(p=_,_=tt._prepareArrayForTween(_,a,i.closed())):(g=a,a=tt._prepareArrayForTween(a,_,i.closed()))),t.indexOf("fill")===0)for(let A=0;A<d;A++)if(A%2===0)h.push(a[A]-_[A]);else{const D=tt.colorToRGBA(_[A]);b=tt.colorToRGBA(a[A]),_[A]=D,h.push({r:b.r-D.r,g:b.g-D.g,b:b.b-D.b,a:b.a-D.a})}else for(let A=0;A<d;A++)h.push(a[A]-_[A]);else z3.indexOf(t)!==-1?(_=tt.colorToRGBA(_),b=tt.colorToRGBA(a),h={r:b.r-_.r,g:b.g-_.g,b:b.b-_.b,a:b.a-_.a}):h=a-_;Da.attrs[o][this._id][t]={start:_,diff:h,end:a,trueEnd:g,trueStart:p},Da.tweens[o][t]=this._id}_tweenFunc(t){const a=this.node,i=Da.attrs[a._id][this._id];let o,h,d,g,p,b,E,_;for(o in i){if(h=i[o],d=h.start,g=h.diff,_=h.end,tt._isArray(d))if(p=[],E=Math.max(d.length,_.length),o.indexOf("fill")===0)for(b=0;b<E;b++)b%2===0?p.push((d[b]||0)+g[b]*t):p.push("rgba("+Math.round(d[b].r+g[b].r*t)+","+Math.round(d[b].g+g[b].g*t)+","+Math.round(d[b].b+g[b].b*t)+","+(d[b].a+g[b].a*t)+")");else for(b=0;b<E;b++)p.push((d[b]||0)+g[b]*t);else z3.indexOf(o)!==-1?p="rgba("+Math.round(d.r+g.r*t)+","+Math.round(d.g+g.g*t)+","+Math.round(d.b+g.b*t)+","+(d.a+g.a*t)+")":p=d+g*t;a.setAttr(o,p)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const t=this.node,a=Da.attrs[t._id][this._id];a.points&&a.points.trueEnd&&t.setAttr("points",a.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const t=this.node,a=Da.attrs[t._id][this._id];a.points&&a.points.trueStart&&t.points(a.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(t*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const t=this.node._id,a=this._id,i=Da.tweens[t];this.pause(),this.anim&&this.anim.stop();for(const o in i)delete Da.tweens[t][o];delete Da.attrs[t][a],Da.tweens[t]&&(Object.keys(Da.tweens[t]).length===0&&delete Da.tweens[t],Object.keys(Da.attrs[t]).length===0&&delete Da.attrs[t])}}Da.attrs={};Da.tweens={};Gt.prototype.to=function(s){const t=s.onFinish;s.node=this,s.onFinish=function(){this.destroy(),t&&t()},new Da(s).play()};const xh={BackEaseIn(s,t,a,i){return a*(s/=i)*s*((1.70158+1)*s-1.70158)+t},BackEaseOut(s,t,a,i){return a*((s=s/i-1)*s*((1.70158+1)*s+1.70158)+1)+t},BackEaseInOut(s,t,a,i){let o=1.70158;return(s/=i/2)<1?a/2*(s*s*(((o*=1.525)+1)*s-o))+t:a/2*((s-=2)*s*(((o*=1.525)+1)*s+o)+2)+t},ElasticEaseIn(s,t,a,i,o,h){let d=0;return s===0?t:(s/=i)===1?t+a:(h||(h=i*.3),!o||o<Math.abs(a)?(o=a,d=h/4):d=h/(2*Math.PI)*Math.asin(a/o),-(o*Math.pow(2,10*(s-=1))*Math.sin((s*i-d)*(2*Math.PI)/h))+t)},ElasticEaseOut(s,t,a,i,o,h){let d=0;return s===0?t:(s/=i)===1?t+a:(h||(h=i*.3),!o||o<Math.abs(a)?(o=a,d=h/4):d=h/(2*Math.PI)*Math.asin(a/o),o*Math.pow(2,-10*s)*Math.sin((s*i-d)*(2*Math.PI)/h)+a+t)},ElasticEaseInOut(s,t,a,i,o,h){let d=0;return s===0?t:(s/=i/2)===2?t+a:(h||(h=i*(.3*1.5)),!o||o<Math.abs(a)?(o=a,d=h/4):d=h/(2*Math.PI)*Math.asin(a/o),s<1?-.5*(o*Math.pow(2,10*(s-=1))*Math.sin((s*i-d)*(2*Math.PI)/h))+t:o*Math.pow(2,-10*(s-=1))*Math.sin((s*i-d)*(2*Math.PI)/h)*.5+a+t)},BounceEaseOut(s,t,a,i){return(s/=i)<1/2.75?a*(7.5625*s*s)+t:s<2/2.75?a*(7.5625*(s-=1.5/2.75)*s+.75)+t:s<2.5/2.75?a*(7.5625*(s-=2.25/2.75)*s+.9375)+t:a*(7.5625*(s-=2.625/2.75)*s+.984375)+t},BounceEaseIn(s,t,a,i){return a-xh.BounceEaseOut(i-s,0,a,i)+t},BounceEaseInOut(s,t,a,i){return s<i/2?xh.BounceEaseIn(s*2,0,a,i)*.5+t:xh.BounceEaseOut(s*2-i,0,a,i)*.5+a*.5+t},EaseIn(s,t,a,i){return a*(s/=i)*s+t},EaseOut(s,t,a,i){return-a*(s/=i)*(s-2)+t},EaseInOut(s,t,a,i){return(s/=i/2)<1?a/2*s*s+t:-a/2*(--s*(s-2)-1)+t},StrongEaseIn(s,t,a,i){return a*(s/=i)*s*s*s*s+t},StrongEaseOut(s,t,a,i){return a*((s=s/i-1)*s*s*s*s+1)+t},StrongEaseInOut(s,t,a,i){return(s/=i/2)<1?a/2*s*s*s*s*s+t:a/2*((s-=2)*s*s*s*s+2)+t},Linear(s,t,a,i){return a*s/i+t}},Mc=tt._assign(qt,{Util:tt,Transform:cl,Node:Gt,Container:fl,Stage:P2,stages:bh,Layer:no,FastLayer:Id,Group:_c,DD:la,Shape:At,shapes:Sh,Animation:Jl,Tween:Da,Easings:xh,Context:W2,Canvas:Zd});class $r extends At{_sceneFunc(t){const a=qt.getAngle(this.angle()),i=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,a,i),t.arc(0,0,this.innerRadius(),a,0,!i),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){const t=this.innerRadius(),a=this.outerRadius(),i=this.clockwise(),o=qt.getAngle(i?360-this.angle():this.angle()),h=Math.cos(Math.min(o,Math.PI)),d=1,g=Math.sin(Math.min(Math.max(Math.PI,o),3*Math.PI/2)),p=Math.sin(Math.min(o,Math.PI/2)),b=h*(h>0?t:a),E=d*a,_=g*(g>0?t:a),A=p*(p>0?a:t);return{x:b,y:i?-1*A:_,width:E-b,height:A-_}}}$r.prototype._centroid=!0;$r.prototype.className="Arc";$r.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"];a0($r);k.addGetterSetter($r,"innerRadius",0,Ut());k.addGetterSetter($r,"outerRadius",0,Ut());k.addGetterSetter($r,"angle",0,Ut());k.addGetterSetter($r,"clockwise",!1,Ei());function Cd(s,t,a,i,o,h,d){const g=Math.sqrt(Math.pow(a-s,2)+Math.pow(i-t,2)),p=Math.sqrt(Math.pow(o-a,2)+Math.pow(h-i,2)),b=d*g/(g+p),E=d*p/(g+p),_=a-b*(o-s),A=i-b*(h-t),D=a+E*(o-s),C=i+E*(h-t);return[_,A,D,C]}function C3(s,t){const a=s.length,i=[];for(let o=2;o<a-2;o+=2){const h=Cd(s[o-2],s[o-1],s[o],s[o+1],s[o+2],s[o+3],t);isNaN(h[0])||(i.push(h[0]),i.push(h[1]),i.push(s[o]),i.push(s[o+1]),i.push(h[2]),i.push(h[3]))}return i}let ts=class extends At{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){const a=this.points(),i=a.length,o=this.tension(),h=this.closed(),d=this.bezier();if(!i)return;let g=0;if(t.beginPath(),t.moveTo(a[0],a[1]),o!==0&&i>4){const p=this.getTensionPoints(),b=p.length;for(g=h?0:4,h||t.quadraticCurveTo(p[0],p[1],p[2],p[3]);g<b-2;)t.bezierCurveTo(p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]);h||t.quadraticCurveTo(p[b-2],p[b-1],a[i-2],a[i-1])}else if(d)for(g=2;g<i;)t.bezierCurveTo(a[g++],a[g++],a[g++],a[g++],a[g++],a[g++]);else for(g=2;g<i;g+=2)t.lineTo(a[g],a[g+1]);h?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():C3(this.points(),this.tension())}_getTensionPointsClosed(){const t=this.points(),a=t.length,i=this.tension(),o=Cd(t[a-2],t[a-1],t[0],t[1],t[2],t[3],i),h=Cd(t[a-4],t[a-3],t[a-2],t[a-1],t[0],t[1],i),d=C3(t,i);return[o[2],o[3]].concat(d).concat([h[0],h[1],t[a-2],t[a-1],h[2],h[3],o[0],o[1],t[0],t[1]])}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){let t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};this.tension()!==0?t=[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:t=this.points();let a=t[0],i=t[0],o=t[1],h=t[1],d,g;for(let p=0;p<t.length/2;p++)d=t[p*2],g=t[p*2+1],a=Math.min(a,d),i=Math.max(i,d),o=Math.min(o,g),h=Math.max(h,g);return{x:a,y:o,width:i-a,height:h-o}}};ts.prototype.className="Line";ts.prototype._attrsAffectingSize=["points","bezier","tension"];a0(ts);k.addGetterSetter(ts,"closed",!1);k.addGetterSetter(ts,"bezier",!1);k.addGetterSetter(ts,"tension",0,Ut());k.addGetterSetter(ts,"points",[],C8());const f9=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],d9=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],m9=[[1],[1,1],[1,2,1],[1,3,3,1]],w3=(s,t,a)=>{let i,o;const d=a/2;i=0;for(let g=0;g<20;g++)o=d*f9[20][g]+d,i+=d9[20][g]*g9(s,t,o);return d*i},D3=(s,t,a)=>{a===void 0&&(a=1);const i=s[0]-2*s[1]+s[2],o=t[0]-2*t[1]+t[2],h=2*s[1]-2*s[0],d=2*t[1]-2*t[0],g=4*(i*i+o*o),p=4*(i*h+o*d),b=h*h+d*d;if(g===0)return a*Math.sqrt(Math.pow(s[2]-s[0],2)+Math.pow(t[2]-t[0],2));const E=p/(2*g),_=b/g,A=a+E,D=_-E*E,C=A*A+D>0?Math.sqrt(A*A+D):0,H=E*E+D>0?Math.sqrt(E*E+D):0,U=E+Math.sqrt(E*E+D)!==0?D*Math.log(Math.abs((A+C)/(E+H))):0;return Math.sqrt(g)/2*(A*C-E*H+U)};function g9(s,t,a){const i=wd(1,a,s),o=wd(1,a,t),h=i*i+o*o;return Math.sqrt(h)}const wd=(s,t,a)=>{const i=a.length-1;let o,h;if(i===0)return 0;if(s===0){h=0;for(let d=0;d<=i;d++)h+=m9[i][d]*Math.pow(1-t,i-d)*Math.pow(t,d)*a[d];return h}else{o=new Array(i);for(let d=0;d<i;d++)o[d]=i*(a[d+1]-a[d]);return wd(s-1,t,o)}},N3=(s,t,a)=>{let i=1,o=s/t,h=(s-a(o))/t,d=0;for(;i>.001;){const g=a(o+h),p=Math.abs(s-g)/t;if(p<i)i=p,o+=h;else{const b=a(o-h),E=Math.abs(s-b)/t;E<i?(i=E,o-=h):h/=2}if(d++,d>500)break}return o};class Na extends At{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=Na.parsePathData(this.data()),this.pathLength=Na.getPathLength(this.dataArray)}_sceneFunc(t){const a=this.dataArray;t.beginPath();let i=!1;for(let o=0;o<a.length;o++){const h=a[o].command,d=a[o].points;switch(h){case"L":t.lineTo(d[0],d[1]);break;case"M":t.moveTo(d[0],d[1]);break;case"C":t.bezierCurveTo(d[0],d[1],d[2],d[3],d[4],d[5]);break;case"Q":t.quadraticCurveTo(d[0],d[1],d[2],d[3]);break;case"A":const g=d[0],p=d[1],b=d[2],E=d[3],_=d[4],A=d[5],D=d[6],C=d[7],H=b>E?b:E,U=b>E?1:b/E,Y=b>E?E/b:1;t.translate(g,p),t.rotate(D),t.scale(U,Y),t.arc(0,0,H,_,_+A,1-C),t.scale(1/U,1/Y),t.rotate(-D),t.translate(-g,-p);break;case"z":i=!0,t.closePath();break}}!i&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(p){if(p.command==="A"){const b=p.points[4],E=p.points[5],_=p.points[4]+E;let A=Math.PI/180;if(Math.abs(b-_)<A&&(A=Math.abs(b-_)),E<0)for(let D=b-A;D>_;D-=A){const C=Na.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],D,0);t.push(C.x,C.y)}else for(let D=b+A;D<_;D+=A){const C=Na.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],D,0);t.push(C.x,C.y)}}else if(p.command==="C")for(let b=0;b<=1;b+=.01){const E=Na.getPointOnCubicBezier(b,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);t.push(E.x,E.y)}else t=t.concat(p.points)});let a=t[0],i=t[0],o=t[1],h=t[1],d,g;for(let p=0;p<t.length/2;p++)d=t[p*2],g=t[p*2+1],isNaN(d)||(a=Math.min(a,d),i=Math.max(i,d)),isNaN(g)||(o=Math.min(o,g),h=Math.max(h,g));return{x:a,y:o,width:i-a,height:h-o}}getLength(){return this.pathLength}getPointAtLength(t){return Na.getPointAtLengthOfDataArray(t,this.dataArray)}static getLineLength(t,a,i,o){return Math.sqrt((i-t)*(i-t)+(o-a)*(o-a))}static getPathLength(t){let a=0;for(let i=0;i<t.length;++i)a+=t[i].pathLength;return a}static getPointAtLengthOfDataArray(t,a){let i,o=0,h=a.length;if(!h)return null;for(;o<h&&t>a[o].pathLength;)t-=a[o].pathLength,++o;if(o===h)return i=a[o-1].points.slice(-2),{x:i[0],y:i[1]};if(t<.01)return a[o].command==="M"?(i=a[o].points.slice(0,2),{x:i[0],y:i[1]}):{x:a[o].start.x,y:a[o].start.y};const d=a[o],g=d.points;switch(d.command){case"L":return Na.getPointOnLine(t,d.start.x,d.start.y,g[0],g[1]);case"C":return Na.getPointOnCubicBezier(N3(t,Na.getPathLength(a),H=>w3([d.start.x,g[0],g[2],g[4]],[d.start.y,g[1],g[3],g[5]],H)),d.start.x,d.start.y,g[0],g[1],g[2],g[3],g[4],g[5]);case"Q":return Na.getPointOnQuadraticBezier(N3(t,Na.getPathLength(a),H=>D3([d.start.x,g[0],g[2]],[d.start.y,g[1],g[3]],H)),d.start.x,d.start.y,g[0],g[1],g[2],g[3]);case"A":const p=g[0],b=g[1],E=g[2],_=g[3],A=g[5],D=g[6];let C=g[4];return C+=A*t/d.pathLength,Na.getPointOnEllipticalArc(p,b,E,_,C,D)}return null}static getPointOnLine(t,a,i,o,h,d,g){d=d??a,g=g??i;const p=this.getLineLength(a,i,o,h);if(p<1e-10)return{x:a,y:i};if(o===a)return{x:d,y:g+(h>i?t:-t)};const b=(h-i)/(o-a),E=Math.sqrt(t*t/(1+b*b))*(o<a?-1:1),_=b*E;if(Math.abs(g-i-b*(d-a))<1e-10)return{x:d+E,y:g+_};const A=((d-a)*(o-a)+(g-i)*(h-i))/(p*p),D=a+A*(o-a),C=i+A*(h-i),H=this.getLineLength(d,g,D,C),U=Math.sqrt(t*t-H*H),Y=Math.sqrt(U*U/(1+b*b))*(o<a?-1:1),G=b*Y;return{x:D+Y,y:C+G}}static getPointOnCubicBezier(t,a,i,o,h,d,g,p,b){function E(U){return U*U*U}function _(U){return 3*U*U*(1-U)}function A(U){return 3*U*(1-U)*(1-U)}function D(U){return(1-U)*(1-U)*(1-U)}const C=p*E(t)+d*_(t)+o*A(t)+a*D(t),H=b*E(t)+g*_(t)+h*A(t)+i*D(t);return{x:C,y:H}}static getPointOnQuadraticBezier(t,a,i,o,h,d,g){function p(D){return D*D}function b(D){return 2*D*(1-D)}function E(D){return(1-D)*(1-D)}const _=d*p(t)+o*b(t)+a*E(t),A=g*p(t)+h*b(t)+i*E(t);return{x:_,y:A}}static getPointOnEllipticalArc(t,a,i,o,h,d){const g=Math.cos(d),p=Math.sin(d),b={x:i*Math.cos(h),y:o*Math.sin(h)};return{x:t+(b.x*g-b.y*p),y:a+(b.x*p+b.y*g)}}static parsePathData(t){if(!t)return[];let a=t;const i=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];a=a.replace(new RegExp(" ","g"),",");for(let _=0;_<i.length;_++)a=a.replace(new RegExp(i[_],"g"),"|"+i[_]);const o=a.split("|"),h=[],d=[];let g=0,p=0;const b=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;let E;for(let _=1;_<o.length;_++){let A=o[_],D=A.charAt(0);for(A=A.slice(1),d.length=0;E=b.exec(A);)d.push(E[0]);let C=[],H=D==="A"||D==="a"?0:-1;for(let U=0,Y=d.length;U<Y;U++){const G=d[U];if(G==="00"){C.push(0,0),H>=0&&(H+=2,H>=7&&(H-=7));continue}if(H>=0){if(H===3){if(/^[01]{2}\d+(?:\.\d+)?$/.test(G)){C.push(parseInt(G[0],10)),C.push(parseInt(G[1],10)),C.push(parseFloat(G.slice(2))),H+=3,H>=7&&(H-=7);continue}if(G==="11"||G==="10"||G==="01"){C.push(parseInt(G[0],10)),C.push(parseInt(G[1],10)),H+=2,H>=7&&(H-=7);continue}if(G==="0"||G==="1"){C.push(parseInt(G,10)),H+=1,H>=7&&(H-=7);continue}}else if(H===4){if(/^[01]\d+(?:\.\d+)?$/.test(G)){C.push(parseInt(G[0],10)),C.push(parseFloat(G.slice(1))),H+=2,H>=7&&(H-=7);continue}if(G==="0"||G==="1"){C.push(parseInt(G,10)),H+=1,H>=7&&(H-=7);continue}}const Z=parseFloat(G);isNaN(Z)?C.push(0):C.push(Z),H+=1,H>=7&&(H-=7)}else{const Z=parseFloat(G);isNaN(Z)?C.push(0):C.push(Z)}}for(;C.length>0&&!isNaN(C[0]);){let U="",Y=[];const G=g,Z=p;let q,P,ut,rt,ot,Et,kt,Vt,St,te;switch(D){case"l":g+=C.shift(),p+=C.shift(),U="L",Y.push(g,p);break;case"L":g=C.shift(),p=C.shift(),Y.push(g,p);break;case"m":const jt=C.shift(),Nt=C.shift();if(g+=jt,p+=Nt,U="M",h.length>2&&h[h.length-1].command==="z"){for(let Q=h.length-2;Q>=0;Q--)if(h[Q].command==="M"){g=h[Q].points[0]+jt,p=h[Q].points[1]+Nt;break}}Y.push(g,p),D="l";break;case"M":g=C.shift(),p=C.shift(),U="M",Y.push(g,p),D="L";break;case"h":g+=C.shift(),U="L",Y.push(g,p);break;case"H":g=C.shift(),U="L",Y.push(g,p);break;case"v":p+=C.shift(),U="L",Y.push(g,p);break;case"V":p=C.shift(),U="L",Y.push(g,p);break;case"C":Y.push(C.shift(),C.shift(),C.shift(),C.shift()),g=C.shift(),p=C.shift(),Y.push(g,p);break;case"c":Y.push(g+C.shift(),p+C.shift(),g+C.shift(),p+C.shift()),g+=C.shift(),p+=C.shift(),U="C",Y.push(g,p);break;case"S":P=g,ut=p,q=h[h.length-1],q.command==="C"&&(P=g+(g-q.points[2]),ut=p+(p-q.points[3])),Y.push(P,ut,C.shift(),C.shift()),g=C.shift(),p=C.shift(),U="C",Y.push(g,p);break;case"s":P=g,ut=p,q=h[h.length-1],q.command==="C"&&(P=g+(g-q.points[2]),ut=p+(p-q.points[3])),Y.push(P,ut,g+C.shift(),p+C.shift()),g+=C.shift(),p+=C.shift(),U="C",Y.push(g,p);break;case"Q":Y.push(C.shift(),C.shift()),g=C.shift(),p=C.shift(),Y.push(g,p);break;case"q":Y.push(g+C.shift(),p+C.shift()),g+=C.shift(),p+=C.shift(),U="Q",Y.push(g,p);break;case"T":P=g,ut=p,q=h[h.length-1],q.command==="Q"&&(P=g+(g-q.points[0]),ut=p+(p-q.points[1])),g=C.shift(),p=C.shift(),U="Q",Y.push(P,ut,g,p);break;case"t":P=g,ut=p,q=h[h.length-1],q.command==="Q"&&(P=g+(g-q.points[0]),ut=p+(p-q.points[1])),g+=C.shift(),p+=C.shift(),U="Q",Y.push(P,ut,g,p);break;case"A":rt=C.shift(),ot=C.shift(),Et=C.shift(),kt=C.shift(),Vt=C.shift(),St=g,te=p,g=C.shift(),p=C.shift(),U="A",Y=this.convertEndpointToCenterParameterization(St,te,g,p,kt,Vt,rt,ot,Et);break;case"a":rt=C.shift(),ot=C.shift(),Et=C.shift(),kt=C.shift(),Vt=C.shift(),St=g,te=p,g+=C.shift(),p+=C.shift(),U="A",Y=this.convertEndpointToCenterParameterization(St,te,g,p,kt,Vt,rt,ot,Et);break}h.push({command:U||D,points:Y,start:{x:G,y:Z},pathLength:this.calcLength(G,Z,U||D,Y)})}(D==="z"||D==="Z")&&h.push({command:"z",points:[],start:void 0,pathLength:0})}return h}static calcLength(t,a,i,o){let h,d,g,p;const b=Na;switch(i){case"L":return b.getLineLength(t,a,o[0],o[1]);case"C":return w3([t,o[0],o[2],o[4]],[a,o[1],o[3],o[5]],1);case"Q":return D3([t,o[0],o[2]],[a,o[1],o[3]],1);case"A":h=0;const E=o[4],_=o[5],A=o[4]+_;let D=Math.PI/180;if(Math.abs(E-A)<D&&(D=Math.abs(E-A)),d=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],E,0),_<0)for(p=E-D;p>A;p-=D)g=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),h+=b.getLineLength(d.x,d.y,g.x,g.y),d=g;else for(p=E+D;p<A;p+=D)g=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),h+=b.getLineLength(d.x,d.y,g.x,g.y),d=g;return g=b.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],A,0),h+=b.getLineLength(d.x,d.y,g.x,g.y),h}return 0}static convertEndpointToCenterParameterization(t,a,i,o,h,d,g,p,b){const E=b*(Math.PI/180),_=Math.cos(E)*(t-i)/2+Math.sin(E)*(a-o)/2,A=-1*Math.sin(E)*(t-i)/2+Math.cos(E)*(a-o)/2,D=_*_/(g*g)+A*A/(p*p);D>1&&(g*=Math.sqrt(D),p*=Math.sqrt(D));let C=Math.sqrt((g*g*(p*p)-g*g*(A*A)-p*p*(_*_))/(g*g*(A*A)+p*p*(_*_)));h===d&&(C*=-1),isNaN(C)&&(C=0);const H=C*g*A/p,U=C*-p*_/g,Y=(t+i)/2+Math.cos(E)*H-Math.sin(E)*U,G=(a+o)/2+Math.sin(E)*H+Math.cos(E)*U,Z=function(kt){return Math.sqrt(kt[0]*kt[0]+kt[1]*kt[1])},q=function(kt,Vt){return(kt[0]*Vt[0]+kt[1]*Vt[1])/(Z(kt)*Z(Vt))},P=function(kt,Vt){return(kt[0]*Vt[1]<kt[1]*Vt[0]?-1:1)*Math.acos(q(kt,Vt))},ut=P([1,0],[(_-H)/g,(A-U)/p]),rt=[(_-H)/g,(A-U)/p],ot=[(-1*_-H)/g,(-1*A-U)/p];let Et=P(rt,ot);return q(rt,ot)<=-1&&(Et=Math.PI),q(rt,ot)>=1&&(Et=0),d===0&&Et>0&&(Et=Et-2*Math.PI),d===1&&Et<0&&(Et=Et+2*Math.PI),[Y,G,g,p,ut,Et,E,d]}}Na.prototype.className="Path";Na.prototype._attrsAffectingSize=["data"];a0(Na);k.addGetterSetter(Na,"data");class lo extends ts{_sceneFunc(t){super._sceneFunc(t);const a=Math.PI*2,i=this.points();let o=i;const h=this.tension()!==0&&i.length>4;h&&(o=this.getTensionPoints());const d=this.pointerLength(),g=i.length;let p,b;if(h){const A=[o[o.length-4],o[o.length-3],o[o.length-2],o[o.length-1],i[g-2],i[g-1]],D=Na.calcLength(o[o.length-4],o[o.length-3],"C",A),C=Na.getPointOnQuadraticBezier(Math.min(1,1-d/D),A[0],A[1],A[2],A[3],A[4],A[5]);p=i[g-2]-C.x,b=i[g-1]-C.y}else p=i[g-2]-i[g-4],b=i[g-1]-i[g-3];const E=(Math.atan2(b,p)+a)%a,_=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(i[g-2],i[g-1]),t.rotate(E),t.moveTo(0,0),t.lineTo(-d,_/2),t.lineTo(-d,-_/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(i[0],i[1]),h?(p=(o[0]+o[2])/2-i[0],b=(o[1]+o[3])/2-i[1]):(p=i[2]-i[0],b=i[3]-i[1]),t.rotate((Math.atan2(-b,-p)+a)%a),t.moveTo(0,0),t.lineTo(-d,_/2),t.lineTo(-d,-_/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){const a=this.dashEnabled();a&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),a&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),a=this.pointerWidth()/2;return{x:t.x,y:t.y-a,width:t.width,height:t.height+a*2}}}lo.prototype.className="Arrow";a0(lo);k.addGetterSetter(lo,"pointerLength",10,Ut());k.addGetterSetter(lo,"pointerWidth",10,Ut());k.addGetterSetter(lo,"pointerAtBeginning",!1);k.addGetterSetter(lo,"pointerAtEnding",!0);class Cc extends At{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}Cc.prototype._centroid=!0;Cc.prototype.className="Circle";Cc.prototype._attrsAffectingSize=["radius"];a0(Cc);k.addGetterSetter(Cc,"radius",0,Ut());let ru=class extends At{_sceneFunc(t){const a=this.radiusX(),i=this.radiusY();t.beginPath(),t.save(),a!==i&&t.scale(1,i/a),t.arc(0,0,a,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}};ru.prototype.className="Ellipse";ru.prototype._centroid=!0;ru.prototype._attrsAffectingSize=["radiusX","radiusY"];a0(ru);k.addComponentsGetterSetter(ru,"radius",["x","y"]);k.addGetterSetter(ru,"radiusX",0,Ut());k.addGetterSetter(ru,"radiusY",0,Ut());let _i=class F6 extends At{constructor(t){super(t),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",a=>{this._removeImageLoad(a.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",this._loadListener)}_removeImageLoad(t){t&&t.removeEventListener&&t.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){const t=!!this.cornerRadius(),a=this.hasShadow();return t&&a?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const a=this.getWidth(),i=this.getHeight(),o=this.cornerRadius(),h=this.attrs.image;let d;if(h){const g=this.attrs.cropWidth,p=this.attrs.cropHeight;g&&p?d=[h,this.cropX(),this.cropY(),g,p,0,0,a,i]:d=[h,0,0,a,i]}(this.hasFill()||this.hasStroke()||o)&&(t.beginPath(),o?tt.drawRoundedRectPath(t,a,i,o):t.rect(0,0,a,i),t.closePath(),t.fillStrokeShape(this)),h&&(o&&t.clip(),t.drawImage.apply(t,d))}_hitFunc(t){const a=this.width(),i=this.height(),o=this.cornerRadius();t.beginPath(),o?tt.drawRoundedRectPath(t,a,i,o):t.rect(0,0,a,i),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,a,i;return(i=(t=this.attrs.width)!==null&&t!==void 0?t:(a=this.image())===null||a===void 0?void 0:a.width)!==null&&i!==void 0?i:0}getHeight(){var t,a,i;return(i=(t=this.attrs.height)!==null&&t!==void 0?t:(a=this.image())===null||a===void 0?void 0:a.height)!==null&&i!==void 0?i:0}static fromURL(t,a,i=null){const o=tt.createImageElement();o.onload=function(){const h=new F6({image:o});a(h)},o.onerror=i,o.crossOrigin="Anonymous",o.src=t}};_i.prototype.className="Image";_i.prototype._attrsAffectingSize=["image"];a0(_i);k.addGetterSetter(_i,"cornerRadius",0,I2(4));k.addGetterSetter(_i,"image");k.addComponentsGetterSetter(_i,"crop",["x","y","width","height"]);k.addGetterSetter(_i,"cropX",0,Ut());k.addGetterSetter(_i,"cropY",0,Ut());k.addGetterSetter(_i,"cropWidth",0,Ut());k.addGetterSetter(_i,"cropHeight",0,Ut());const W6=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],p9="Change.konva",v9="none",Dd="up",Nd="right",Rd="down",Od="left",y9=W6.length;class Pd extends _c{constructor(t){super(t),this.on("add.konva",function(a){this._addListeners(a.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){let a=this,i;const o=function(){a._sync()};for(i=0;i<y9;i++)t.on(W6[i]+p9,o)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){let t=this.getText(),a=this.getTag(),i,o,h,d,g,p,b;if(t&&a){switch(i=t.width(),o=t.height(),h=a.pointerDirection(),d=a.pointerWidth(),b=a.pointerHeight(),g=0,p=0,h){case Dd:g=i/2,p=-1*b;break;case Nd:g=i+d,p=o/2;break;case Rd:g=i/2,p=o+b;break;case Od:g=-1*d,p=o/2;break}a.setAttrs({x:-1*g,y:-1*p,width:i,height:o}),t.setAttrs({x:-1*g,y:-1*p})}}}Pd.prototype.className="Label";a0(Pd);class io extends At{_sceneFunc(t){const a=this.width(),i=this.height(),o=this.pointerDirection(),h=this.pointerWidth(),d=this.pointerHeight(),g=this.cornerRadius();let p=0,b=0,E=0,_=0;typeof g=="number"?p=b=E=_=Math.min(g,a/2,i/2):(p=Math.min(g[0]||0,a/2,i/2),b=Math.min(g[1]||0,a/2,i/2),_=Math.min(g[2]||0,a/2,i/2),E=Math.min(g[3]||0,a/2,i/2)),t.beginPath(),t.moveTo(p,0),o===Dd&&(t.lineTo((a-h)/2,0),t.lineTo(a/2,-1*d),t.lineTo((a+h)/2,0)),t.lineTo(a-b,0),t.arc(a-b,b,b,Math.PI*3/2,0,!1),o===Nd&&(t.lineTo(a,(i-d)/2),t.lineTo(a+h,i/2),t.lineTo(a,(i+d)/2)),t.lineTo(a,i-_),t.arc(a-_,i-_,_,0,Math.PI/2,!1),o===Rd&&(t.lineTo((a+h)/2,i),t.lineTo(a/2,i+d),t.lineTo((a-h)/2,i)),t.lineTo(E,i),t.arc(E,i-E,E,Math.PI/2,Math.PI,!1),o===Od&&(t.lineTo(0,(i+d)/2),t.lineTo(-1*h,i/2),t.lineTo(0,(i-d)/2)),t.lineTo(0,p),t.arc(p,p,p,Math.PI,Math.PI*3/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){let t=0,a=0,i=this.pointerWidth(),o=this.pointerHeight(),h=this.pointerDirection(),d=this.width(),g=this.height();return h===Dd?(a-=o,g+=o):h===Rd?g+=o:h===Od?(t-=i*1.5,d+=i):h===Nd&&(d+=i*1.5),{x:t,y:a,width:d,height:g}}}io.prototype.className="Tag";a0(io);k.addGetterSetter(io,"pointerDirection",v9);k.addGetterSetter(io,"pointerWidth",0,Ut());k.addGetterSetter(io,"pointerHeight",0,Ut());k.addGetterSetter(io,"cornerRadius",0,I2(4));let Ah=class extends At{_sceneFunc(t){const a=this.cornerRadius(),i=this.width(),o=this.height();t.beginPath(),a?tt.drawRoundedRectPath(t,i,o,a):t.rect(0,0,i,o),t.closePath(),t.fillStrokeShape(this)}};Ah.prototype.className="Rect";a0(Ah);k.addGetterSetter(Ah,"cornerRadius",0,I2(4));class su extends At{_sceneFunc(t){const a=this._getPoints(),i=this.radius(),o=this.sides(),h=this.cornerRadius();if(t.beginPath(),h)tt.drawRoundedPolygonPath(t,a,o,i,h);else{t.moveTo(a[0].x,a[0].y);for(let d=1;d<a.length;d++)t.lineTo(a[d].x,a[d].y)}t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,a=this.attrs.radius||0,i=[];for(let o=0;o<t;o++)i.push({x:a*Math.sin(o*2*Math.PI/t),y:-1*a*Math.cos(o*2*Math.PI/t)});return i}getSelfRect(){const t=this._getPoints();let a=t[0].x,i=t[0].x,o=t[0].y,h=t[0].y;return t.forEach(d=>{a=Math.min(a,d.x),i=Math.max(i,d.x),o=Math.min(o,d.y),h=Math.max(h,d.y)}),{x:a,y:o,width:i-a,height:h-o}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}su.prototype.className="RegularPolygon";su.prototype._centroid=!0;su.prototype._attrsAffectingSize=["radius"];a0(su);k.addGetterSetter(su,"radius",0,Ut());k.addGetterSetter(su,"sides",0,Ut());k.addGetterSetter(su,"cornerRadius",0,I2(4));const R3=Math.PI*2;class ro extends At{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,R3,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),R3,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}ro.prototype.className="Ring";ro.prototype._centroid=!0;ro.prototype._attrsAffectingSize=["innerRadius","outerRadius"];a0(ro);k.addGetterSetter(ro,"innerRadius",0,Ut());k.addGetterSetter(ro,"outerRadius",0,Ut());class ur extends At{constructor(t){super(t),this._updated=!0,this.anim=new Jl(()=>{const a=this._updated;return this._updated=!1,a}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){const a=this.animation(),i=this.frameIndex(),o=i*4,h=this.animations()[a],d=this.frameOffsets(),g=h[o+0],p=h[o+1],b=h[o+2],E=h[o+3],_=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,b,E),t.closePath(),t.fillStrokeShape(this)),_)if(d){const A=d[a],D=i*2;t.drawImage(_,g,p,b,E,A[D+0],A[D+1],b,E)}else t.drawImage(_,g,p,b,E,0,0,b,E)}_hitFunc(t){const a=this.animation(),i=this.frameIndex(),o=i*4,h=this.animations()[a],d=this.frameOffsets(),g=h[o+2],p=h[o+3];if(t.beginPath(),d){const b=d[a],E=i*2;t.rect(b[E+0],b[E+1],g,p)}else t.rect(0,0,g,p);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const t=this.frameIndex(),a=this.animation(),i=this.animations(),o=i[a],h=o.length/4;t<h-1?this.frameIndex(t+1):this.frameIndex(0)}}ur.prototype.className="Sprite";a0(ur);k.addGetterSetter(ur,"animation");k.addGetterSetter(ur,"animations");k.addGetterSetter(ur,"frameOffsets");k.addGetterSetter(ur,"image");k.addGetterSetter(ur,"frameIndex",0,Ut());k.addGetterSetter(ur,"frameRate",17,Ut());k.backCompat(ur,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class uu extends At{_sceneFunc(t){const a=this.innerRadius(),i=this.outerRadius(),o=this.numPoints();t.beginPath(),t.moveTo(0,0-i);for(let h=1;h<o*2;h++){const d=h%2===0?i:a,g=d*Math.sin(h*Math.PI/o),p=-1*d*Math.cos(h*Math.PI/o);t.lineTo(g,p)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}uu.prototype.className="Star";uu.prototype._centroid=!0;uu.prototype._attrsAffectingSize=["innerRadius","outerRadius"];a0(uu);k.addGetterSetter(uu,"numPoints",5,Ut());k.addGetterSetter(uu,"innerRadius",0,Ut());k.addGetterSetter(uu,"outerRadius",0,Ut());function $s(s){return[...s].reduce((t,a,i,o)=>{if(new RegExp("\\p{Emoji}","u").test(a)){const h=o[i+1];h&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(h)?(t.push(a+h),o[i+1]=""):t.push(a)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(a+(o[i+1]||""))?t.push(a+o[i+1]):i>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(a)?t[t.length-1]+=a:a&&t.push(a);return t},[])}const Sc="auto",b9="center",I6="inherit",ch="justify",S9="Change.konva",x9="2d",O3="-",P6="left",T9="text",E9="Text",_9="top",M9="bottom",B3="middle",$6="normal",A9="px ",E2=" ",z9="right",H3="rtl",C9="word",w9="char",G3="none",$4="…",tm=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],D9=tm.length;function N9(s){return s.split(",").map(t=>{t=t.trim();const a=t.indexOf(" ")>=0,i=t.indexOf('"')>=0||t.indexOf("'")>=0;return a&&!i&&(t=`"${t}"`),t}).join(", ")}let _2;function td(){return _2||(_2=tt.createCanvasElement().getContext(x9),_2)}function R9(s){s.fillText(this._partialText,this._partialTextX,this._partialTextY)}function O9(s){s.setAttr("miterLimit",2),s.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function B9(s){return s=s||{},!s.fillLinearGradientColorStops&&!s.fillRadialGradientColorStops&&!s.fillPatternImage&&(s.fill=s.fill||"black"),s}let ka=class extends At{constructor(t){super(B9(t)),this._partialTextX=0,this._partialTextY=0;for(let a=0;a<D9;a++)this.on(tm[a]+S9,this._setTextData);this._setTextData()}_sceneFunc(t){var a,i;const o=this.textArr,h=o.length;if(!this.text())return;let d=this.padding(),g=this.fontSize(),p=this.lineHeight()*g,b=this.verticalAlign(),E=this.direction(),_=0,A=this.align(),D=this.getWidth(),C=this.letterSpacing(),H=this.charRenderFunc(),U=this.fill(),Y=this.textDecoration(),G=Y.indexOf("underline")!==-1,Z=Y.indexOf("line-through")!==-1,q;E=E===I6?t.direction:E;let P=p/2,ut=B3;if(!qt.legacyTextRendering){const rt=this.measureSize("M");ut="alphabetic";const ot=(a=rt.fontBoundingBoxAscent)!==null&&a!==void 0?a:rt.actualBoundingBoxAscent,Et=(i=rt.fontBoundingBoxDescent)!==null&&i!==void 0?i:rt.actualBoundingBoxDescent;P=(ot-Et)/2+p/2}for(E===H3&&t.setAttr("direction",E),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",ut),t.setAttr("textAlign",P6),b===B3?_=(this.getHeight()-h*p-d*2)/2:b===M9&&(_=this.getHeight()-h*p-d*2),t.translate(d,_+d),q=0;q<h;q++){let rt=0,ot=0;const Et=o[q],kt=Et.text,Vt=Et.width,St=Et.lastInParagraph;if(t.save(),A===z9?rt+=D-Vt-d*2:A===b9&&(rt+=(D-Vt-d*2)/2),G){t.save(),t.beginPath();const jt=qt.legacyTextRendering?Math.round(g/2):Math.round(g/4),Nt=rt,Q=P+ot+jt;t.moveTo(Nt,Q);const pt=A===ch&&!St?D-d*2:Vt;t.lineTo(Nt+Math.round(pt),Q),t.lineWidth=g/15;const bt=this._getLinearGradient();t.strokeStyle=bt||U,t.stroke(),t.restore()}const te=rt;if(E!==H3&&(C!==0||A===ch||H)){const jt=kt.split(" ").length-1,Nt=$s(kt);for(let Q=0;Q<Nt.length;Q++){const pt=Nt[Q];if(pt===" "&&!St&&A===ch&&(rt+=(D-d*2-Vt)/jt),this._partialTextX=rt,this._partialTextY=P+ot,this._partialText=pt,H){t.save();const Ot=o.slice(0,q).reduce((B,et)=>B+$s(et.text).length,0),Xt=Q+Ot;H({char:pt,index:Xt,x:rt,y:P+ot,lineIndex:q,column:Q,isLastInLine:St,width:this.measureSize(pt).width,context:t})}t.fillStrokeShape(this),H&&t.restore(),rt+=this.measureSize(pt).width+C}}else C!==0&&t.setAttr("letterSpacing",`${C}px`),this._partialTextX=rt,this._partialTextY=P+ot,this._partialText=kt,t.fillStrokeShape(this);if(Z){t.save(),t.beginPath();const jt=qt.legacyTextRendering?0:-Math.round(g/4),Nt=te;t.moveTo(Nt,P+ot+jt);const Q=A===ch&&!St?D-d*2:Vt;t.lineTo(Nt+Math.round(Q),P+ot+jt),t.lineWidth=g/15;const pt=this._getLinearGradient();t.strokeStyle=pt||U,t.stroke(),t.restore()}t.restore(),h>1&&(P+=p)}}_hitFunc(t){const a=this.getWidth(),i=this.getHeight();t.beginPath(),t.rect(0,0,a,i),t.closePath(),t.fillStrokeShape(this)}setText(t){const a=tt._isString(t)?t:t==null?"":t+"";return this._setAttr(T9,a),this}getWidth(){return this.attrs.width===Sc||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Sc||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return tt.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var a,i,o,h,d,g,p,b,E,_,A;let D=td(),C=this.fontSize(),H;D.save(),D.font=this._getContextFont(),H=D.measureText(t),D.restore();const U=C/100;return{actualBoundingBoxAscent:(a=H.actualBoundingBoxAscent)!==null&&a!==void 0?a:71.58203125*U,actualBoundingBoxDescent:(i=H.actualBoundingBoxDescent)!==null&&i!==void 0?i:0,actualBoundingBoxLeft:(o=H.actualBoundingBoxLeft)!==null&&o!==void 0?o:-7.421875*U,actualBoundingBoxRight:(h=H.actualBoundingBoxRight)!==null&&h!==void 0?h:75.732421875*U,alphabeticBaseline:(d=H.alphabeticBaseline)!==null&&d!==void 0?d:0,emHeightAscent:(g=H.emHeightAscent)!==null&&g!==void 0?g:100*U,emHeightDescent:(p=H.emHeightDescent)!==null&&p!==void 0?p:-20*U,fontBoundingBoxAscent:(b=H.fontBoundingBoxAscent)!==null&&b!==void 0?b:91*U,fontBoundingBoxDescent:(E=H.fontBoundingBoxDescent)!==null&&E!==void 0?E:21*U,hangingBaseline:(_=H.hangingBaseline)!==null&&_!==void 0?_:72.80000305175781*U,ideographicBaseline:(A=H.ideographicBaseline)!==null&&A!==void 0?A:-21*U,width:H.width,height:C}}_getContextFont(){return this.fontStyle()+E2+this.fontVariant()+E2+(this.fontSize()+A9)+N9(this.fontFamily())}_addTextLine(t){this.align()===ch&&(t=t.trim());const i=this._getTextWidth(t);return this.textArr.push({text:t,width:i,lastInParagraph:!1})}_getTextWidth(t){const a=this.letterSpacing(),i=t.length;return td().measureText(t).width+a*i}_setTextData(){let t=this.text().split(`
23
+ `),a=+this.fontSize(),i=0,o=this.lineHeight()*a,h=this.attrs.width,d=this.attrs.height,g=h!==Sc&&h!==void 0,p=d!==Sc&&d!==void 0,b=this.padding(),E=h-b*2,_=d-b*2,A=0,D=this.wrap(),C=D!==G3,H=D!==w9&&C,U=this.ellipsis();this.textArr=[],td().font=this._getContextFont();const Y=U?this._getTextWidth($4):0;for(let G=0,Z=t.length;G<Z;++G){let q=t[G],P=this._getTextWidth(q);if(g&&P>E)for(;q.length>0;){let ut=0,rt=$s(q).length,ot="",Et=0;for(;ut<rt;){const kt=ut+rt>>>1,Vt=$s(q),St=Vt.slice(0,kt+1).join(""),te=this._getTextWidth(St);(U&&p&&A+o>_?te+Y:te)<=E?(ut=kt+1,ot=St,Et=te):rt=kt}if(ot){if(H){const St=$s(q),te=$s(ot),jt=St[te.length],Nt=jt===E2||jt===O3;let Q;if(Nt&&Et<=E)Q=te.length;else{const pt=te.lastIndexOf(E2),bt=te.lastIndexOf(O3);Q=Math.max(pt,bt)+1}Q>0&&(ut=Q,ot=St.slice(0,ut).join(""),Et=this._getTextWidth(ot))}if(ot=ot.trimRight(),this._addTextLine(ot),i=Math.max(i,Et),A+=o,this._shouldHandleEllipsis(A)){this._tryToAddEllipsisToLastLine();break}if(q=$s(q).slice(ut).join("").trimLeft(),q.length>0&&(P=this._getTextWidth(q),P<=E)){this._addTextLine(q),A+=o,i=Math.max(i,P);break}}else break}else this._addTextLine(q),A+=o,i=Math.max(i,P),this._shouldHandleEllipsis(A)&&G<Z-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),p&&A+o>_)break}this.textHeight=a,this.textWidth=i}_shouldHandleEllipsis(t){const a=+this.fontSize(),i=this.lineHeight()*a,o=this.attrs.height,h=o!==Sc&&o!==void 0,d=this.padding(),g=o-d*2;return!(this.wrap()!==G3)||h&&t+i>g}_tryToAddEllipsisToLastLine(){const t=this.attrs.width,a=t!==Sc&&t!==void 0,i=this.padding(),o=t-i*2,h=this.ellipsis(),d=this.textArr[this.textArr.length-1];!d||!h||(a&&(this._getTextWidth(d.text+$4)<o||(d.text=d.text.slice(0,d.text.length-3))),this.textArr.splice(this.textArr.length-1,1),this._addTextLine(d.text+$4))}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const t=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,a=this.hasShadow();return t&&a?!0:super._useBufferCanvas()}};ka.prototype._fillFunc=R9;ka.prototype._strokeFunc=O9;ka.prototype.className=E9;ka.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"];a0(ka);k.overWriteSetter(ka,"width",Fd());k.overWriteSetter(ka,"height",Fd());k.addGetterSetter(ka,"direction",I6);k.addGetterSetter(ka,"fontFamily","Arial");k.addGetterSetter(ka,"fontSize",12,Ut());k.addGetterSetter(ka,"fontStyle",$6);k.addGetterSetter(ka,"fontVariant",$6);k.addGetterSetter(ka,"padding",0,Ut());k.addGetterSetter(ka,"align",P6);k.addGetterSetter(ka,"verticalAlign",_9);k.addGetterSetter(ka,"lineHeight",1,Ut());k.addGetterSetter(ka,"wrap",C9);k.addGetterSetter(ka,"ellipsis",!1,Ei());k.addGetterSetter(ka,"letterSpacing",0,Ut());k.addGetterSetter(ka,"text","",ao());k.addGetterSetter(ka,"textDecoration","");k.addGetterSetter(ka,"charRenderFunc",void 0);const H9="",em="normal";function am(s){s.fillText(this.partialText,0,0)}function nm(s){s.strokeText(this.partialText,0,0)}class q0 extends At{constructor(t){super(t),this.dummyCanvas=tt.createCanvasElement(),this.dataArray=[],this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute(),this._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva fontSizeChange.konva fontFamilyChange.konva",this._setTextData),this._setTextData()}_getTextPathLength(){return Na.getPathLength(this.dataArray)}_getPointAtLength(t){if(!this.attrs.data)return null;const a=this.pathLength;return t>a?null:Na.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=Na.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();const a=this.textDecoration(),i=this.fill(),o=this.fontSize(),h=this.glyphInfo,d=a.indexOf("underline")!==-1,g=a.indexOf("line-through")!==-1;d&&t.beginPath();for(let p=0;p<h.length;p++){t.save();const b=h[p].p0;t.translate(b.x,b.y),t.rotate(h[p].rotation),this.partialText=h[p].text,t.fillStrokeShape(this),d&&(p===0&&t.moveTo(0,o/2+1),t.lineTo(h[p].width,o/2+1)),t.restore()}if(d&&(t.strokeStyle=i,t.lineWidth=o/20,t.stroke()),g){t.beginPath();for(let p=0;p<h.length;p++){t.save();const b=h[p].p0;t.translate(b.x,b.y),t.rotate(h[p].rotation),p===0&&t.moveTo(0,0),t.lineTo(h[p].width,0),t.restore()}t.strokeStyle=i,t.lineWidth=o/20,t.stroke()}t.restore()}_hitFunc(t){t.beginPath();const a=this.glyphInfo;if(a.length>=1){const i=a[0].p0;t.moveTo(i.x,i.y)}for(let i=0;i<a.length;i++){const o=a[i].p1;t.lineTo(o.x,o.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return tt.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return ka.prototype.setText.call(this,t)}_getContextFont(){return ka.prototype._getContextFont.call(this)}_getTextSize(t){const i=this.dummyCanvas.getContext("2d");i.save(),i.font=this._getContextFont();const o=i.measureText(t);return i.restore(),{width:o.width,height:parseInt(`${this.fontSize()}`,10)}}_setTextData(){const t=$s(this.text()),a=[];let i=0;for(let _=0;_<t.length;_++)a.push({char:t[_],width:this._getTextSize(t[_]).width}),i+=a[_].width;const{height:o}=this._getTextSize(this.attrs.text);if(this.textWidth=i,this.textHeight=o,this.glyphInfo=[],!this.attrs.data)return null;const h=this.letterSpacing(),d=this.align(),g=this.kerningFunc(),p=Math.max(this.textWidth+((this.attrs.text||"").length-1)*h,0);let b=0;d==="center"&&(b=Math.max(0,this.pathLength/2-p/2)),d==="right"&&(b=Math.max(0,this.pathLength-p));let E=b;for(let _=0;_<a.length;_++){const A=this._getPointAtLength(E);if(!A)return;const D=a[_].char;let C=a[_].width+h;if(D===" "&&d==="justify"){const q=this.text().split(" ").length-1;C+=(this.pathLength-p)/q}const H=this._getPointAtLength(E+C);if(!H)return;const U=Na.getLineLength(A.x,A.y,H.x,H.y);let Y=0;if(g)try{Y=g(a[_-1].char,D)*this.fontSize()}catch{Y=0}A.x+=Y,H.x+=Y,this.textWidth+=Y;const G=Na.getPointOnLine(Y+U/2,A.x,A.y,H.x,H.y),Z=Math.atan2(H.y-A.y,H.x-A.x);this.glyphInfo.push({transposeX:G.x,transposeY:G.y,text:t[_],rotation:Z,p0:A,p1:H,width:U}),E+=C}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};const t=[];this.glyphInfo.forEach(function(b){t.push(b.p0.x),t.push(b.p0.y),t.push(b.p1.x),t.push(b.p1.y)});let a=t[0]||0,i=t[0]||0,o=t[1]||0,h=t[1]||0,d,g;for(let b=0;b<t.length/2;b++)d=t[b*2],g=t[b*2+1],a=Math.min(a,d),i=Math.max(i,d),o=Math.min(o,g),h=Math.max(h,g);const p=this.fontSize();return{x:a-p/2,y:o-p/2,width:i-a+p,height:h-o+p}}destroy(){return tt.releaseCanvas(this.dummyCanvas),super.destroy()}}q0.prototype._fillFunc=am;q0.prototype._strokeFunc=nm;q0.prototype._fillFuncHit=am;q0.prototype._strokeFuncHit=nm;q0.prototype.className="TextPath";q0.prototype._attrsAffectingSize=["text","fontSize","data"];a0(q0);k.addGetterSetter(q0,"data");k.addGetterSetter(q0,"fontFamily","Arial");k.addGetterSetter(q0,"fontSize",12,Ut());k.addGetterSetter(q0,"fontStyle",em);k.addGetterSetter(q0,"align","left");k.addGetterSetter(q0,"letterSpacing",0,Ut());k.addGetterSetter(q0,"textBaseline","middle");k.addGetterSetter(q0,"fontVariant",em);k.addGetterSetter(q0,"text",H9);k.addGetterSetter(q0,"textDecoration","");k.addGetterSetter(q0,"kerningFunc",void 0);const lm="tr-konva",G9=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange","anchorStyleFuncChange"].map(s=>s+`.${lm}`).join(" "),U3="nodesRect",U9=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange","draggableChange"],q9={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},L9="ontouchstart"in qt._global;function k9(s,t,a){if(s==="rotater")return a;t+=tt.degToRad(q9[s]||0);const i=(tt.radToDeg(t)%360+360)%360;return tt._inRange(i,315+22.5,360)||tt._inRange(i,0,22.5)?"ns-resize":tt._inRange(i,45-22.5,45+22.5)?"nesw-resize":tt._inRange(i,90-22.5,90+22.5)?"ew-resize":tt._inRange(i,135-22.5,135+22.5)?"nwse-resize":tt._inRange(i,180-22.5,180+22.5)?"ns-resize":tt._inRange(i,225-22.5,225+22.5)?"nesw-resize":tt._inRange(i,270-22.5,270+22.5)?"ew-resize":tt._inRange(i,315-22.5,315+22.5)?"nwse-resize":(tt.error("Transformer has unknown angle for cursor detection: "+i),"pointer")}const X2=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function Y9(s){return{x:s.x+s.width/2*Math.cos(s.rotation)+s.height/2*Math.sin(-s.rotation),y:s.y+s.height/2*Math.cos(s.rotation)+s.width/2*Math.sin(s.rotation)}}function im(s,t,a){const i=a.x+(s.x-a.x)*Math.cos(t)-(s.y-a.y)*Math.sin(t),o=a.y+(s.x-a.x)*Math.sin(t)+(s.y-a.y)*Math.cos(t);return{...s,rotation:s.rotation+t,x:i,y:o}}function X9(s,t){const a=Y9(s);return im(s,t,a)}function j9(s,t,a){let i=t;for(let o=0;o<s.length;o++){const h=qt.getAngle(s[o]),d=Math.abs(h-t)%(Math.PI*2);Math.min(d,Math.PI*2-d)<a&&(i=h)}return i}let Bd=0;class Ke extends _c{constructor(t){super(t),this._movingAnchorName=null,this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(G9,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return tt.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return lm+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach();const a=t.filter(o=>o.isAncestorOf(this)?(tt.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=t=a,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(o=>{const h=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()};if(o._attrsAffectingSize.length){const d=o._attrsAffectingSize.map(g=>g+"Change."+this._getEventNamespace()).join(" ");o.on(d,h)}o.on(U9.map(d=>d+`.${this._getEventNamespace()}`).join(" "),h),o.on(`absoluteTransformChange.${this._getEventNamespace()}`,h),this._proxyDrag(o)}),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this}_proxyDrag(t){let a;t.on(`dragstart.${this._getEventNamespace()}`,i=>{a=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(i,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,i=>{if(!a)return;const o=t.getAbsolutePosition(),h=o.x-a.x,d=o.y-a.y;this.nodes().forEach(g=>{if(g===t||g.isDragging())return;const p=g.getAbsolutePosition();g.setAbsolutePosition({x:p.x+h,y:p.y+d}),g.startDrag(i)}),a=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(U3),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(U3,this.__getNodeRect)}__getNodeShape(t,a=this.rotation(),i){const o=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),h=t.getAbsoluteScale(i),d=t.getAbsolutePosition(i),g=o.x*h.x-t.offsetX()*h.x,p=o.y*h.y-t.offsetY()*h.y,b=(qt.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),E={x:d.x+g*Math.cos(b)+p*Math.sin(-b),y:d.y+p*Math.cos(b)+g*Math.sin(b),width:o.width*h.x,height:o.height*h.y,rotation:b};return im(E,-qt.getAngle(a),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const a=[];this.nodes().map(b=>{const E=b.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),_=[{x:E.x,y:E.y},{x:E.x+E.width,y:E.y},{x:E.x+E.width,y:E.y+E.height},{x:E.x,y:E.y+E.height}],A=b.getAbsoluteTransform();_.forEach(function(D){const C=A.point(D);a.push(C)})});const i=new cl;i.rotate(-qt.getAngle(this.rotation()));let o=1/0,h=1/0,d=-1/0,g=-1/0;a.forEach(function(b){const E=i.point(b);o===void 0&&(o=d=E.x,h=g=E.y),o=Math.min(o,E.x),h=Math.min(h,E.y),d=Math.max(d,E.x),g=Math.max(g,E.y)}),i.invert();const p=i.point({x:o,y:h});return{x:p.x,y:p.y,width:d-o,height:g-h,rotation:qt.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),X2.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){const a=new Ah({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:L9?10:"auto"}),i=this;a.on("mousedown touchstart",function(o){i._handleMouseDown(o)}),a.on("dragstart",o=>{a.stopDrag(),o.cancelBubble=!0}),a.on("dragend",o=>{o.cancelBubble=!0}),a.on("mouseenter",()=>{const o=qt.getAngle(this.rotation()),h=this.rotateAnchorCursor(),d=k9(t,o,h);a.getStage().content&&(a.getStage().content.style.cursor=d),this._cursorChange=!0}),a.on("mouseout",()=>{a.getStage().content&&(a.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(a)}_createBack(){const t=new At({name:"back",width:0,height:0,sceneFunc(a,i){const o=i.getParent(),h=o.padding();a.beginPath(),a.rect(-h,-h,i.width()+h*2,i.height()+h*2),a.moveTo(i.width()/2,-h),o.rotateEnabled()&&o.rotateLineVisible()&&a.lineTo(i.width()/2,-o.rotateAnchorOffset()*tt._sign(i.height())-h),a.fillStrokeShape(i)},hitFunc:(a,i)=>{if(!this.shouldOverdrawWholeArea())return;const o=this.padding();a.beginPath(),a.rect(-o,-o,i.width()+o*2,i.height()+o*2),a.fillStrokeShape(i)}});this.add(t),this._proxyDrag(t),t.on("dragstart",a=>{a.cancelBubble=!0}),t.on("dragmove",a=>{a.cancelBubble=!0}),t.on("dragend",a=>{a.cancelBubble=!0}),this.on("dragmove",a=>{this.update()})}_handleMouseDown(t){if(this._transforming)return;this._movingAnchorName=t.target.name().split(" ")[0];const a=this._getNodeRect(),i=a.width,o=a.height,h=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));this.sin=Math.abs(o/h),this.cos=Math.abs(i/h),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const d=t.target.getAbsolutePosition(),g=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:g.x-d.x,y:g.y-d.y},Bd++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(p=>{p._fire("transformstart",{evt:t.evt,target:p})})}_handleMouseMove(t){let a,i,o;const h=this.findOne("."+this._movingAnchorName),d=h.getStage();d.setPointersPositions(t);const g=d.getPointerPosition();let p={x:g.x-this._anchorDragOffset.x,y:g.y-this._anchorDragOffset.y};const b=h.getAbsolutePosition();this.anchorDragBoundFunc()&&(p=this.anchorDragBoundFunc()(b,p,t)),h.setAbsolutePosition(p);const E=h.getAbsolutePosition();if(b.x===E.x&&b.y===E.y)return;if(this._movingAnchorName==="rotater"){const G=this._getNodeRect();a=h.x()-G.width/2,i=-h.y()+G.height/2;let Z=Math.atan2(-i,a)+Math.PI/2;G.height<0&&(Z-=Math.PI);const P=qt.getAngle(this.rotation())+Z,ut=qt.getAngle(this.rotationSnapTolerance()),ot=j9(this.rotationSnaps(),P,ut)-G.rotation,Et=X9(G,ot);this._fitNodesInto(Et,t);return}const _=this.shiftBehavior();let A;_==="inverted"?A=this.keepRatio()&&!t.shiftKey:_==="none"?A=this.keepRatio():A=this.keepRatio()||t.shiftKey;let D=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(A){const G=D?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};o=Math.sqrt(Math.pow(G.x-h.x(),2)+Math.pow(G.y-h.y(),2));const Z=this.findOne(".top-left").x()>G.x?-1:1,q=this.findOne(".top-left").y()>G.y?-1:1;a=o*this.cos*Z,i=o*this.sin*q,this.findOne(".top-left").x(G.x-a),this.findOne(".top-left").y(G.y-i)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(h.y());else if(this._movingAnchorName==="top-right"){if(A){const G=D?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};o=Math.sqrt(Math.pow(h.x()-G.x,2)+Math.pow(G.y-h.y(),2));const Z=this.findOne(".top-right").x()<G.x?-1:1,q=this.findOne(".top-right").y()>G.y?-1:1;a=o*this.cos*Z,i=o*this.sin*q,this.findOne(".top-right").x(G.x+a),this.findOne(".top-right").y(G.y-i)}var C=h.position();this.findOne(".top-left").y(C.y),this.findOne(".bottom-right").x(C.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(h.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(h.x());else if(this._movingAnchorName==="bottom-left"){if(A){const G=D?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};o=Math.sqrt(Math.pow(G.x-h.x(),2)+Math.pow(h.y()-G.y,2));const Z=G.x<h.x()?-1:1,q=h.y()<G.y?-1:1;a=o*this.cos*Z,i=o*this.sin*q,h.x(G.x-a),h.y(G.y+i)}C=h.position(),this.findOne(".top-left").x(C.x),this.findOne(".bottom-right").y(C.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(h.y());else if(this._movingAnchorName==="bottom-right"){if(A){const G=D?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};o=Math.sqrt(Math.pow(h.x()-G.x,2)+Math.pow(h.y()-G.y,2));const Z=this.findOne(".bottom-right").x()<G.x?-1:1,q=this.findOne(".bottom-right").y()<G.y?-1:1;a=o*this.cos*Z,i=o*this.sin*q,this.findOne(".bottom-right").x(G.x+a),this.findOne(".bottom-right").y(G.y+i)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(D=this.centeredScaling()||t.altKey,D){const G=this.findOne(".top-left"),Z=this.findOne(".bottom-right"),q=G.x(),P=G.y(),ut=this.getWidth()-Z.x(),rt=this.getHeight()-Z.y();Z.move({x:-q,y:-P}),G.move({x:ut,y:rt})}const H=this.findOne(".top-left").getAbsolutePosition();a=H.x,i=H.y;const U=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),Y=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:a,y:i,width:U,height:Y,rotation:qt.getAngle(this.rotation())},t)}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){var a;if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));const i=this.getNode();Bd--,this._fire("transformend",{evt:t,target:i}),(a=this.getLayer())===null||a===void 0||a.batchDraw(),i&&this._nodes.forEach(o=>{var h;o._fire("transformend",{evt:t,target:o}),(h=o.getLayer())===null||h===void 0||h.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,a){const i=this._getNodeRect(),o=1;if(tt._inRange(t.width,-this.padding()*2-o,o)){this.update();return}if(tt._inRange(t.height,-this.padding()*2-o,o)){this.update();return}const h=new cl;if(h.rotate(qt.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const A=h.point({x:-this.padding()*2,y:0});t.x+=A.x,t.y+=A.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=A.x,this._anchorDragOffset.y-=A.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const A=h.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=A.x,this._anchorDragOffset.y-=A.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const A=h.point({x:0,y:-this.padding()*2});t.x+=A.x,t.y+=A.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=A.x,this._anchorDragOffset.y-=A.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const A=h.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=A.x,this._anchorDragOffset.y-=A.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const A=this.boundBoxFunc()(i,t);A?t=A:tt.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const d=1e7,g=new cl;g.translate(i.x,i.y),g.rotate(i.rotation),g.scale(i.width/d,i.height/d);const p=new cl,b=t.width/d,E=t.height/d;this.flipEnabled()===!1?(p.translate(t.x,t.y),p.rotate(t.rotation),p.translate(t.width<0?t.width:0,t.height<0?t.height:0),p.scale(Math.abs(b),Math.abs(E))):(p.translate(t.x,t.y),p.rotate(t.rotation),p.scale(b,E));const _=p.multiply(g.invert());this._nodes.forEach(A=>{var D;if(!A.getStage())return;const C=A.getParent().getAbsoluteTransform(),H=A.getTransform().copy();H.translate(A.offsetX(),A.offsetY());const U=new cl;U.multiply(C.copy().invert()).multiply(_).multiply(C).multiply(H);const Y=U.decompose();A.setAttrs(Y),(D=A.getLayer())===null||D===void 0||D.batchDraw()}),this.rotation(tt._getRotation(t.rotation)),this._nodes.forEach(A=>{this._fire("transform",{evt:a,target:A}),A._fire("transform",{evt:a,target:A})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,a){this.findOne(t).setAttrs(a)}update(){var t;const a=this._getNodeRect();this.rotation(tt._getRotation(a.rotation));const i=a.width,o=a.height,h=this.enabledAnchors(),d=this.resizeEnabled(),g=this.padding(),p=this.anchorSize(),b=this.find("._anchor");b.forEach(_=>{_.setAttrs({width:p,height:p,offsetX:p/2,offsetY:p/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:p/2+g,offsetY:p/2+g,visible:d&&h.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:i/2,y:0,offsetY:p/2+g,visible:d&&h.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:i,y:0,offsetX:p/2-g,offsetY:p/2+g,visible:d&&h.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:o/2,offsetX:p/2+g,visible:d&&h.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:i,y:o/2,offsetX:p/2-g,visible:d&&h.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:o,offsetX:p/2+g,offsetY:p/2-g,visible:d&&h.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:i/2,y:o,offsetY:p/2-g,visible:d&&h.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:i,y:o,offsetX:p/2-g,offsetY:p/2-g,visible:d&&h.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:i/2,y:-this.rotateAnchorOffset()*tt._sign(o)-g,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:i,height:o,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),draggable:this.nodes().some(_=>_.draggable()),x:0,y:0});const E=this.anchorStyleFunc();E&&b.forEach(_=>{E(_)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),_c.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Gt.prototype.toObject.call(this)}clone(t){return Gt.prototype.clone.call(this,t)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}Ke.isTransforming=()=>Bd>0;function V9(s){return s instanceof Array||tt.warn("enabledAnchors value should be an array"),s instanceof Array&&s.forEach(function(t){X2.indexOf(t)===-1&&tt.warn("Unknown anchor name: "+t+". Available names are: "+X2.join(", "))}),s||[]}Ke.prototype.className="Transformer";a0(Ke);k.addGetterSetter(Ke,"enabledAnchors",X2,V9);k.addGetterSetter(Ke,"flipEnabled",!0,Ei());k.addGetterSetter(Ke,"resizeEnabled",!0);k.addGetterSetter(Ke,"anchorSize",10,Ut());k.addGetterSetter(Ke,"rotateEnabled",!0);k.addGetterSetter(Ke,"rotateLineVisible",!0);k.addGetterSetter(Ke,"rotationSnaps",[]);k.addGetterSetter(Ke,"rotateAnchorOffset",50,Ut());k.addGetterSetter(Ke,"rotateAnchorCursor","crosshair");k.addGetterSetter(Ke,"rotationSnapTolerance",5,Ut());k.addGetterSetter(Ke,"borderEnabled",!0);k.addGetterSetter(Ke,"anchorStroke","rgb(0, 161, 255)");k.addGetterSetter(Ke,"anchorStrokeWidth",1,Ut());k.addGetterSetter(Ke,"anchorFill","white");k.addGetterSetter(Ke,"anchorCornerRadius",0,Ut());k.addGetterSetter(Ke,"borderStroke","rgb(0, 161, 255)");k.addGetterSetter(Ke,"borderStrokeWidth",1,Ut());k.addGetterSetter(Ke,"borderDash");k.addGetterSetter(Ke,"keepRatio",!0);k.addGetterSetter(Ke,"shiftBehavior","default");k.addGetterSetter(Ke,"centeredScaling",!1);k.addGetterSetter(Ke,"ignoreStroke",!1);k.addGetterSetter(Ke,"padding",0,Ut());k.addGetterSetter(Ke,"nodes");k.addGetterSetter(Ke,"node");k.addGetterSetter(Ke,"boundBoxFunc");k.addGetterSetter(Ke,"anchorDragBoundFunc");k.addGetterSetter(Ke,"anchorStyleFunc");k.addGetterSetter(Ke,"shouldOverdrawWholeArea",!1);k.addGetterSetter(Ke,"useSingleNodeRotation",!0);k.backCompat(Ke,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class es extends At{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,qt.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}es.prototype.className="Wedge";es.prototype._centroid=!0;es.prototype._attrsAffectingSize=["radius"];a0(es);k.addGetterSetter(es,"radius",0,Ut());k.addGetterSetter(es,"angle",0,Ut());k.addGetterSetter(es,"clockwise",!1);k.backCompat(es,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});function q3(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const Q9=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],K9=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Z9(s,t){const a=s.data,i=s.width,o=s.height;let h,d,g,p,b,E,_,A,D,C,H,U,Y,G,Z,q,P,ut,rt,ot;const Et=t+t+1,kt=i-1,Vt=o-1,St=t+1,te=St*(St+1)/2,jt=new q3,Nt=Q9[t],Q=K9[t];let pt=null,bt=jt,Ot=null,Xt=null;for(let B=1;B<Et;B++)bt=bt.next=new q3,B===St&&(pt=bt);bt.next=jt,g=d=0;for(let B=0;B<o;B++){U=Y=G=Z=p=b=E=_=0,A=St*(q=a[d]),D=St*(P=a[d+1]),C=St*(ut=a[d+2]),H=St*(rt=a[d+3]),p+=te*q,b+=te*P,E+=te*ut,_+=te*rt,bt=jt;for(let et=0;et<St;et++)bt.r=q,bt.g=P,bt.b=ut,bt.a=rt,bt=bt.next;for(let et=1;et<St;et++)h=d+((kt<et?kt:et)<<2),p+=(bt.r=q=a[h])*(ot=St-et),b+=(bt.g=P=a[h+1])*ot,E+=(bt.b=ut=a[h+2])*ot,_+=(bt.a=rt=a[h+3])*ot,U+=q,Y+=P,G+=ut,Z+=rt,bt=bt.next;Ot=jt,Xt=pt;for(let et=0;et<i;et++)a[d+3]=rt=_*Nt>>Q,rt!==0?(rt=255/rt,a[d]=(p*Nt>>Q)*rt,a[d+1]=(b*Nt>>Q)*rt,a[d+2]=(E*Nt>>Q)*rt):a[d]=a[d+1]=a[d+2]=0,p-=A,b-=D,E-=C,_-=H,A-=Ot.r,D-=Ot.g,C-=Ot.b,H-=Ot.a,h=g+((h=et+t+1)<kt?h:kt)<<2,U+=Ot.r=a[h],Y+=Ot.g=a[h+1],G+=Ot.b=a[h+2],Z+=Ot.a=a[h+3],p+=U,b+=Y,E+=G,_+=Z,Ot=Ot.next,A+=q=Xt.r,D+=P=Xt.g,C+=ut=Xt.b,H+=rt=Xt.a,U-=q,Y-=P,G-=ut,Z-=rt,Xt=Xt.next,d+=4;g+=i}for(let B=0;B<i;B++){Y=G=Z=U=b=E=_=p=0,d=B<<2,A=St*(q=a[d]),D=St*(P=a[d+1]),C=St*(ut=a[d+2]),H=St*(rt=a[d+3]),p+=te*q,b+=te*P,E+=te*ut,_+=te*rt,bt=jt;for(let dt=0;dt<St;dt++)bt.r=q,bt.g=P,bt.b=ut,bt.a=rt,bt=bt.next;let et=i;for(let dt=1;dt<=t;dt++)d=et+B<<2,p+=(bt.r=q=a[d])*(ot=St-dt),b+=(bt.g=P=a[d+1])*ot,E+=(bt.b=ut=a[d+2])*ot,_+=(bt.a=rt=a[d+3])*ot,U+=q,Y+=P,G+=ut,Z+=rt,bt=bt.next,dt<Vt&&(et+=i);d=B,Ot=jt,Xt=pt;for(let dt=0;dt<o;dt++)h=d<<2,a[h+3]=rt=_*Nt>>Q,rt>0?(rt=255/rt,a[h]=(p*Nt>>Q)*rt,a[h+1]=(b*Nt>>Q)*rt,a[h+2]=(E*Nt>>Q)*rt):a[h]=a[h+1]=a[h+2]=0,p-=A,b-=D,E-=C,_-=H,A-=Ot.r,D-=Ot.g,C-=Ot.b,H-=Ot.a,h=B+((h=dt+St)<Vt?h:Vt)*i<<2,p+=U+=Ot.r=a[h],b+=Y+=Ot.g=a[h+1],E+=G+=Ot.b=a[h+2],_+=Z+=Ot.a=a[h+3],Ot=Ot.next,A+=q=Xt.r,D+=P=Xt.g,C+=ut=Xt.b,H+=rt=Xt.a,U-=q,Y-=P,G-=ut,Z-=rt,Xt=Xt.next,d+=i}}const J9=function(t){const a=Math.round(this.blurRadius());a>0&&Z9(t,a)};k.addGetterSetter(Gt,"blurRadius",0,Ut(),k.afterSetFilter);const F9=function(s){const t=this.brightness()*255,a=s.data,i=a.length;for(let o=0;o<i;o+=4)a[o]+=t,a[o+1]+=t,a[o+2]+=t};k.addGetterSetter(Gt,"brightness",0,Ut(),k.afterSetFilter);const W9=function(s){const t=this.brightness(),a=s.data,i=a.length;for(let o=0;o<i;o+=4)a[o]=Math.min(255,a[o]*t),a[o+1]=Math.min(255,a[o+1]*t),a[o+2]=Math.min(255,a[o+2]*t)},I9=function(s){const t=Math.pow((this.contrast()+100)/100,2),a=s.data,i=a.length;let o=150,h=150,d=150;for(let g=0;g<i;g+=4)o=a[g],h=a[g+1],d=a[g+2],o/=255,o-=.5,o*=t,o+=.5,o*=255,h/=255,h-=.5,h*=t,h+=.5,h*=255,d/=255,d-=.5,d*=t,d+=.5,d*=255,o=o<0?0:o>255?255:o,h=h<0?0:h>255?255:h,d=d<0?0:d>255?255:d,a[g]=o,a[g+1]=h,a[g+2]=d};k.addGetterSetter(Gt,"contrast",0,Ut(),k.afterSetFilter);const P9=function(s){var t,a,i,o,h,d,g,p,b;const E=s.data,_=s.width,A=s.height,D=Math.min(1,Math.max(0,(a=(t=this.embossStrength)===null||t===void 0?void 0:t.call(this))!==null&&a!==void 0?a:.5)),C=Math.min(1,Math.max(0,(o=(i=this.embossWhiteLevel)===null||i===void 0?void 0:i.call(this))!==null&&o!==void 0?o:.5)),U=(g={"top-left":315,top:270,"top-right":225,right:180,"bottom-right":135,bottom:90,"bottom-left":45,left:0}[(d=(h=this.embossDirection)===null||h===void 0?void 0:h.call(this))!==null&&d!==void 0?d:"top-left"])!==null&&g!==void 0?g:315,Y=!!((b=(p=this.embossBlend)===null||p===void 0?void 0:p.call(this))!==null&&b!==void 0&&b),G=D*10,Z=C*255,q=U*Math.PI/180,P=Math.cos(q),ut=Math.sin(q),rt=128/1020*G,ot=new Uint8ClampedArray(E),Et=new Float32Array(_*A);for(let jt=0,Nt=0;Nt<E.length;Nt+=4,jt++)Et[jt]=.2126*ot[Nt]+.7152*ot[Nt+1]+.0722*ot[Nt+2];const kt=[-1,0,1,-2,0,2,-1,0,1],Vt=[-1,-2,-1,0,0,0,1,2,1],St=[-_-1,-_,-_+1,-1,0,1,_-1,_,_+1],te=jt=>jt<0?0:jt>255?255:jt;for(let jt=1;jt<A-1;jt++)for(let Nt=1;Nt<_-1;Nt++){const Q=jt*_+Nt;let pt=0,bt=0;pt+=Et[Q+St[0]]*kt[0],bt+=Et[Q+St[0]]*Vt[0],pt+=Et[Q+St[1]]*kt[1],bt+=Et[Q+St[1]]*Vt[1],pt+=Et[Q+St[2]]*kt[2],bt+=Et[Q+St[2]]*Vt[2],pt+=Et[Q+St[3]]*kt[3],bt+=Et[Q+St[3]]*Vt[3],pt+=Et[Q+St[5]]*kt[5],bt+=Et[Q+St[5]]*Vt[5],pt+=Et[Q+St[6]]*kt[6],bt+=Et[Q+St[6]]*Vt[6],pt+=Et[Q+St[7]]*kt[7],bt+=Et[Q+St[7]]*Vt[7],pt+=Et[Q+St[8]]*kt[8],bt+=Et[Q+St[8]]*Vt[8];const Ot=P*pt+ut*bt,Xt=te(Z+Ot*rt),B=Q*4;if(Y){const et=Xt-Z;E[B]=te(ot[B]+et),E[B+1]=te(ot[B+1]+et),E[B+2]=te(ot[B+2]+et),E[B+3]=ot[B+3]}else E[B]=E[B+1]=E[B+2]=Xt,E[B+3]=ot[B+3]}for(let jt=0;jt<_;jt++){let Nt=jt*4,Q=((A-1)*_+jt)*4;E[Nt]=ot[Nt],E[Nt+1]=ot[Nt+1],E[Nt+2]=ot[Nt+2],E[Nt+3]=ot[Nt+3],E[Q]=ot[Q],E[Q+1]=ot[Q+1],E[Q+2]=ot[Q+2],E[Q+3]=ot[Q+3]}for(let jt=1;jt<A-1;jt++){let Nt=jt*_*4,Q=(jt*_+(_-1))*4;E[Nt]=ot[Nt],E[Nt+1]=ot[Nt+1],E[Nt+2]=ot[Nt+2],E[Nt+3]=ot[Nt+3],E[Q]=ot[Q],E[Q+1]=ot[Q+1],E[Q+2]=ot[Q+2],E[Q+3]=ot[Q+3]}return s};k.addGetterSetter(Gt,"embossStrength",.5,Ut(),k.afterSetFilter);k.addGetterSetter(Gt,"embossWhiteLevel",.5,Ut(),k.afterSetFilter);k.addGetterSetter(Gt,"embossDirection","top-left",void 0,k.afterSetFilter);k.addGetterSetter(Gt,"embossBlend",!1,void 0,k.afterSetFilter);function ed(s,t,a,i,o){const h=a-t,d=o-i;if(h===0)return i+d/2;if(d===0)return i;let g=(s-t)/h;return g=d*g+i,g}const $9=function(s){const t=s.data,a=t.length;let i=t[0],o=i,h,d=t[1],g=d,p,b=t[2],E=b,_;const A=this.enhance();if(A===0)return;for(let Z=0;Z<a;Z+=4)h=t[Z+0],h<i?i=h:h>o&&(o=h),p=t[Z+1],p<d?d=p:p>g&&(g=p),_=t[Z+2],_<b?b=_:_>E&&(E=_);o===i&&(o=255,i=0),g===d&&(g=255,d=0),E===b&&(E=255,b=0);let D,C,H,U,Y,G;if(A>0)D=o+A*(255-o),C=i-A*(i-0),H=g+A*(255-g),U=d-A*(d-0),Y=E+A*(255-E),G=b-A*(b-0);else{const Z=(o+i)*.5;D=o+A*(o-Z),C=i+A*(i-Z);const q=(g+d)*.5;H=g+A*(g-q),U=d+A*(d-q);const P=(E+b)*.5;Y=E+A*(E-P),G=b+A*(b-P)}for(let Z=0;Z<a;Z+=4)t[Z+0]=ed(t[Z+0],i,o,C,D),t[Z+1]=ed(t[Z+1],d,g,U,H),t[Z+2]=ed(t[Z+2],b,E,G,Y)};k.addGetterSetter(Gt,"enhance",0,Ut(),k.afterSetFilter);const tg=function(s){const t=s.data,a=t.length;for(let i=0;i<a;i+=4){const o=.34*t[i]+.5*t[i+1]+.16*t[i+2];t[i]=o,t[i+1]=o,t[i+2]=o}};k.addGetterSetter(Gt,"hue",0,Ut(),k.afterSetFilter);k.addGetterSetter(Gt,"saturation",0,Ut(),k.afterSetFilter);k.addGetterSetter(Gt,"luminance",0,Ut(),k.afterSetFilter);const eg=function(s){const t=s.data,a=t.length,i=1,o=Math.pow(2,this.saturation()),h=Math.abs(this.hue()+360)%360,d=this.luminance()*127,g=i*o*Math.cos(h*Math.PI/180),p=i*o*Math.sin(h*Math.PI/180),b=.299*i+.701*g+.167*p,E=.587*i-.587*g+.33*p,_=.114*i-.114*g-.497*p,A=.299*i-.299*g-.328*p,D=.587*i+.413*g+.035*p,C=.114*i-.114*g+.293*p,H=.299*i-.3*g+1.25*p,U=.587*i-.586*g-1.05*p,Y=.114*i+.886*g-.2*p;let G,Z,q,P;for(let ut=0;ut<a;ut+=4)G=t[ut+0],Z=t[ut+1],q=t[ut+2],P=t[ut+3],t[ut+0]=b*G+E*Z+_*q+d,t[ut+1]=A*G+D*Z+C*q+d,t[ut+2]=H*G+U*Z+Y*q+d,t[ut+3]=P},ag=function(s){const t=s.data,a=t.length,i=Math.pow(2,this.value()),o=Math.pow(2,this.saturation()),h=Math.abs(this.hue()+360)%360,d=i*o*Math.cos(h*Math.PI/180),g=i*o*Math.sin(h*Math.PI/180),p=.299*i+.701*d+.167*g,b=.587*i-.587*d+.33*g,E=.114*i-.114*d-.497*g,_=.299*i-.299*d-.328*g,A=.587*i+.413*d+.035*g,D=.114*i-.114*d+.293*g,C=.299*i-.3*d+1.25*g,H=.587*i-.586*d-1.05*g,U=.114*i+.886*d-.2*g;for(let Y=0;Y<a;Y+=4){const G=t[Y+0],Z=t[Y+1],q=t[Y+2],P=t[Y+3];t[Y+0]=p*G+b*Z+E*q,t[Y+1]=_*G+A*Z+D*q,t[Y+2]=C*G+H*Z+U*q,t[Y+3]=P}};k.addGetterSetter(Gt,"hue",0,Ut(),k.afterSetFilter);k.addGetterSetter(Gt,"saturation",0,Ut(),k.afterSetFilter);k.addGetterSetter(Gt,"value",0,Ut(),k.afterSetFilter);const ng=function(s){const t=s.data,a=t.length;for(let i=0;i<a;i+=4)t[i]=255-t[i],t[i+1]=255-t[i+1],t[i+2]=255-t[i+2]},lg=function(s,t,a){const i=s.data,o=t.data,h=s.width,d=s.height,g=a.polarCenterX||h/2,p=a.polarCenterY||d/2;let b=Math.sqrt(g*g+p*p),E=h-g,_=d-p;const A=Math.sqrt(E*E+_*_);b=A>b?A:b;const D=d,C=h,H=360/C*Math.PI/180;for(let U=0;U<C;U+=1){const Y=Math.sin(U*H),G=Math.cos(U*H);for(let Z=0;Z<D;Z+=1){E=Math.floor(g+b*Z/D*G),_=Math.floor(p+b*Z/D*Y);let q=(_*h+E)*4;const P=i[q+0],ut=i[q+1],rt=i[q+2],ot=i[q+3];q=(U+Z*h)*4,o[q+0]=P,o[q+1]=ut,o[q+2]=rt,o[q+3]=ot}}},ig=function(s,t,a){const i=s.data,o=t.data,h=s.width,d=s.height,g=a.polarCenterX||h/2,p=a.polarCenterY||d/2;let b=Math.sqrt(g*g+p*p),E=h-g,_=d-p;const A=Math.sqrt(E*E+_*_);b=A>b?A:b;const D=d,C=h,H=0;let U,Y;for(E=0;E<h;E+=1)for(_=0;_<d;_+=1){const G=E-g,Z=_-p,q=Math.sqrt(G*G+Z*Z)*D/b;let P=(Math.atan2(Z,G)*180/Math.PI+360+H)%360;P=P*C/360,U=Math.floor(P),Y=Math.floor(q);let ut=(Y*h+U)*4;const rt=i[ut+0],ot=i[ut+1],Et=i[ut+2],kt=i[ut+3];ut=(_*h+E)*4,o[ut+0]=rt,o[ut+1]=ot,o[ut+2]=Et,o[ut+3]=kt}},rg=function(s){const t=s.width,a=s.height;let i,o,h,d,g,p,b,E,_,A,D=Math.round(this.kaleidoscopePower());const C=Math.round(this.kaleidoscopeAngle()),H=Math.floor(t*(C%360)/360);if(D<1)return;const U=tt.createCanvasElement();U.width=t,U.height=a;const Y=U.getContext("2d").getImageData(0,0,t,a);tt.releaseCanvas(U),lg(s,Y,{polarCenterX:t/2,polarCenterY:a/2});let G=t/Math.pow(2,D);for(;G<=8;)G=G*2,D-=1;G=Math.ceil(G);let Z=G,q=0,P=Z,ut=1;for(H+G>t&&(q=Z,P=0,ut=-1),o=0;o<a;o+=1)for(i=q;i!==P;i+=ut)h=Math.round(i+H)%t,_=(t*o+h)*4,g=Y.data[_+0],p=Y.data[_+1],b=Y.data[_+2],E=Y.data[_+3],A=(t*o+i)*4,Y.data[A+0]=g,Y.data[A+1]=p,Y.data[A+2]=b,Y.data[A+3]=E;for(o=0;o<a;o+=1)for(Z=Math.floor(G),d=0;d<D;d+=1){for(i=0;i<Z+1;i+=1)_=(t*o+i)*4,g=Y.data[_+0],p=Y.data[_+1],b=Y.data[_+2],E=Y.data[_+3],A=(t*o+Z*2-i-1)*4,Y.data[A+0]=g,Y.data[A+1]=p,Y.data[A+2]=b,Y.data[A+3]=E;Z*=2}ig(Y,s,{})};k.addGetterSetter(Gt,"kaleidoscopePower",2,Ut(),k.afterSetFilter);k.addGetterSetter(Gt,"kaleidoscopeAngle",0,Ut(),k.afterSetFilter);function M2(s,t,a){let i=(a*s.width+t)*4;const o=[];return o.push(s.data[i++],s.data[i++],s.data[i++],s.data[i++]),o}function hh(s,t){return Math.sqrt(Math.pow(s[0]-t[0],2)+Math.pow(s[1]-t[1],2)+Math.pow(s[2]-t[2],2))}function sg(s){const t=[0,0,0];for(let a=0;a<s.length;a++)t[0]+=s[a][0],t[1]+=s[a][1],t[2]+=s[a][2];return t[0]/=s.length,t[1]/=s.length,t[2]/=s.length,t}function ug(s,t){const a=M2(s,0,0),i=M2(s,s.width-1,0),o=M2(s,0,s.height-1),h=M2(s,s.width-1,s.height-1),d=t||10;if(hh(a,i)<d&&hh(i,h)<d&&hh(h,o)<d&&hh(o,a)<d){const g=sg([i,a,h,o]),p=[];for(let b=0;b<s.width*s.height;b++){const E=hh(g,[s.data[b*4],s.data[b*4+1],s.data[b*4+2]]);p[b]=E<d?0:255}return p}}function og(s,t){for(let a=0;a<s.width*s.height;a++)s.data[4*a+3]=t[a]}function cg(s,t,a){const i=[1,1,1,1,0,1,1,1,1],o=Math.round(Math.sqrt(i.length)),h=Math.floor(o/2),d=[];for(let g=0;g<a;g++)for(let p=0;p<t;p++){const b=g*t+p;let E=0;for(let _=0;_<o;_++)for(let A=0;A<o;A++){const D=g+_-h,C=p+A-h;if(D>=0&&D<a&&C>=0&&C<t){const H=D*t+C,U=i[_*o+A];E+=s[H]*U}}d[b]=E===2040?255:0}return d}function hg(s,t,a){const i=[1,1,1,1,1,1,1,1,1],o=Math.round(Math.sqrt(i.length)),h=Math.floor(o/2),d=[];for(let g=0;g<a;g++)for(let p=0;p<t;p++){const b=g*t+p;let E=0;for(let _=0;_<o;_++)for(let A=0;A<o;A++){const D=g+_-h,C=p+A-h;if(D>=0&&D<a&&C>=0&&C<t){const H=D*t+C,U=i[_*o+A];E+=s[H]*U}}d[b]=E>=1020?255:0}return d}function fg(s,t,a){const i=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],o=Math.round(Math.sqrt(i.length)),h=Math.floor(o/2),d=[];for(let g=0;g<a;g++)for(let p=0;p<t;p++){const b=g*t+p;let E=0;for(let _=0;_<o;_++)for(let A=0;A<o;A++){const D=g+_-h,C=p+A-h;if(D>=0&&D<a&&C>=0&&C<t){const H=D*t+C,U=i[_*o+A];E+=s[H]*U}}d[b]=E}return d}const dg=function(s){const t=this.threshold();let a=ug(s,t);return a&&(a=cg(a,s.width,s.height),a=hg(a,s.width,s.height),a=fg(a,s.width,s.height),og(s,a)),s};k.addGetterSetter(Gt,"threshold",0,Ut(),k.afterSetFilter);const mg=function(s){const t=this.noise()*255,a=s.data,i=a.length,o=t/2;for(let h=0;h<i;h+=4)a[h+0]+=o-2*o*Math.random(),a[h+1]+=o-2*o*Math.random(),a[h+2]+=o-2*o*Math.random()};k.addGetterSetter(Gt,"noise",.2,Ut(),k.afterSetFilter);const gg=function(s){let t=Math.ceil(this.pixelSize()),a=s.width,i=s.height,o=Math.ceil(a/t),h=Math.ceil(i/t),d=s.data;if(t<=0){tt.error("pixelSize value can not be <= 0");return}for(let g=0;g<o;g+=1)for(let p=0;p<h;p+=1){let b=0,E=0,_=0,A=0;const D=g*t,C=D+t,H=p*t,U=H+t;let Y=0;for(let G=D;G<C;G+=1)if(!(G>=a))for(let Z=H;Z<U;Z+=1){if(Z>=i)continue;const q=(a*Z+G)*4;b+=d[q+0],E+=d[q+1],_+=d[q+2],A+=d[q+3],Y+=1}b=b/Y,E=E/Y,_=_/Y,A=A/Y;for(let G=D;G<C;G+=1)if(!(G>=a))for(let Z=H;Z<U;Z+=1){if(Z>=i)continue;const q=(a*Z+G)*4;d[q+0]=b,d[q+1]=E,d[q+2]=_,d[q+3]=A}}};k.addGetterSetter(Gt,"pixelSize",8,Ut(),k.afterSetFilter);const pg=function(s){const t=Math.round(this.levels()*254)+1,a=s.data,i=a.length,o=255/t;for(let h=0;h<i;h+=1)a[h]=Math.floor(a[h]/o)*o};k.addGetterSetter(Gt,"levels",.5,Ut(),k.afterSetFilter);const vg=function(s){const t=s.data,a=t.length,i=this.red(),o=this.green(),h=this.blue();for(let d=0;d<a;d+=4){const g=(.34*t[d]+.5*t[d+1]+.16*t[d+2])/255;t[d]=g*i,t[d+1]=g*o,t[d+2]=g*h,t[d+3]=t[d+3]}};k.addGetterSetter(Gt,"red",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)});k.addGetterSetter(Gt,"green",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)});k.addGetterSetter(Gt,"blue",0,C6,k.afterSetFilter);const yg=function(s){const t=s.data,a=t.length,i=this.red(),o=this.green(),h=this.blue(),d=this.alpha();for(let g=0;g<a;g+=4){const p=1-d;t[g]=i*d+t[g]*p,t[g+1]=o*d+t[g+1]*p,t[g+2]=h*d+t[g+2]*p}};k.addGetterSetter(Gt,"red",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)});k.addGetterSetter(Gt,"green",0,function(s){return this._filterUpToDate=!1,s>255?255:s<0?0:Math.round(s)});k.addGetterSetter(Gt,"blue",0,C6,k.afterSetFilter);k.addGetterSetter(Gt,"alpha",1,function(s){return this._filterUpToDate=!1,s>1?1:s<0?0:s});const bg=function(s){const t=s.data,a=t.length;for(let i=0;i<a;i+=4){const o=t[i+0],h=t[i+1],d=t[i+2];t[i+0]=Math.min(255,o*.393+h*.769+d*.189),t[i+1]=Math.min(255,o*.349+h*.686+d*.168),t[i+2]=Math.min(255,o*.272+h*.534+d*.131)}},Sg=function(s){const a=s.data;for(let i=0;i<a.length;i+=4){const o=a[i],h=a[i+1],d=a[i+2];.2126*o+.7152*h+.0722*d>=128&&(a[i]=255-o,a[i+1]=255-h,a[i+2]=255-d)}return s},xg=function(s){const t=this.threshold()*255,a=s.data,i=a.length;for(let o=0;o<i;o+=1)a[o]=a[o]<t?0:255};k.addGetterSetter(Gt,"threshold",.5,Ut(),k.afterSetFilter);Mc.Util._assign(Mc,{Arc:$r,Arrow:lo,Circle:Cc,Ellipse:ru,Image:_i,Label:Pd,Tag:io,Line:ts,Path:Na,Rect:Ah,RegularPolygon:su,Ring:ro,Sprite:ur,Star:uu,Text:ka,TextPath:q0,Transformer:Ke,Wedge:es,Filters:{Blur:J9,Brightness:W9,Brighten:F9,Contrast:I9,Emboss:P9,Enhance:$9,Grayscale:tg,HSL:eg,HSV:ag,Invert:ng,Kaleidoscope:rg,Mask:dg,Noise:mg,Pixelate:gg,Posterize:pg,RGB:vg,RGBA:yg,Sepia:bg,Solarize:Sg,Threshold:xg}});var ad={exports:{}},nd={exports:{}};var L3;function Tg(){return L3||(L3=1,(function(s){s.exports=function(t){function a(l,r,f,m){return new l1(l,r,f,m)}function i(){}function o(l){var r="https://react.dev/errors/"+l;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)r+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+l+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(l){var r=l,f=l;if(l.alternate)for(;r.return;)r=r.return;else{l=r;do r=l,(r.flags&4098)!==0&&(f=r.return),l=r.return;while(l)}return r.tag===3?f:null}function d(l){if(h(l)!==l)throw Error(o(188))}function g(l){var r=l.alternate;if(!r){if(r=h(l),r===null)throw Error(o(188));return r!==l?null:l}for(var f=l,m=r;;){var S=f.return;if(S===null)break;var T=S.alternate;if(T===null){if(m=S.return,m!==null){f=m;continue}break}if(S.child===T.child){for(T=S.child;T;){if(T===f)return d(S),l;if(T===m)return d(S),r;T=T.sibling}throw Error(o(188))}if(f.return!==m.return)f=S,m=T;else{for(var N=!1,V=S.child;V;){if(V===f){N=!0,f=S,m=T;break}if(V===m){N=!0,m=S,f=T;break}V=V.sibling}if(!N){for(V=T.child;V;){if(V===f){N=!0,f=T,m=S;break}if(V===m){N=!0,m=T,f=S;break}V=V.sibling}if(!N)throw Error(o(189))}}if(f.alternate!==m)throw Error(o(190))}if(f.tag!==3)throw Error(o(188));return f.stateNode.current===f?l:r}function p(l){var r=l.tag;if(r===5||r===26||r===27||r===6)return l;for(l=l.child;l!==null;){if(r=p(l),r!==null)return r;l=l.sibling}return null}function b(l){var r=l.tag;if(r===5||r===26||r===27||r===6)return l;for(l=l.child;l!==null;){if(l.tag!==4&&(r=b(l),r!==null))return r;l=l.sibling}return null}function E(l){return l===null||typeof l!="object"?null:(l=fi&&l[fi]||l["@@iterator"],typeof l=="function"?l:null)}function _(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Xi?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Ar:return"Fragment";case Cr:return"Profiler";case zr:return"StrictMode";case Yo:return"Suspense";case hi:return"SuspenseList";case Ou:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case Mr:return"Portal";case Gn:return l.displayName||"Context";case Ru:return(l._context.displayName||"Context")+".Consumer";case zs:var r=l.render;return l=l.displayName,l||(l=r.displayName||r.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case Xo:return r=l.displayName||null,r!==null?r:_(l.type)||"Memo";case F0:r=l._payload,l=l._init;try{return _(l(r))}catch{}}return null}function A(l){return{current:l}}function D(l){0>Or||(l.current=ec[Or],ec[Or]=null,Or--)}function C(l,r){Or++,ec[Or]=l.current,l.current=r}function H(l){return l>>>=0,l===0?32:31-(ac(l)/Jf|0)|0}function U(l){var r=l&42;if(r!==0)return r;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Y(l,r,f){var m=l.pendingLanes;if(m===0)return 0;var S=0,T=l.suspendedLanes,N=l.pingedLanes;l=l.warmLanes;var V=m&134217727;return V!==0?(m=V&~T,m!==0?S=U(m):(N&=V,N!==0?S=U(N):f||(f=V&~l,f!==0&&(S=U(f))))):(V=m&~T,V!==0?S=U(V):N!==0?S=U(N):f||(f=m&~l,f!==0&&(S=U(f)))),S===0?0:r!==0&&r!==S&&(r&T)===0&&(T=S&-S,f=r&-r,T>=f||T===32&&(f&4194048)!==0)?r:S}function G(l,r){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&r)===0}function Z(l,r){switch(l){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 q(){var l=Bs;return Bs<<=1,(Bs&62914560)===0&&(Bs=4194304),l}function P(l){for(var r=[],f=0;31>f;f++)r.push(l);return r}function ut(l,r){l.pendingLanes|=r,r!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function rt(l,r,f,m,S,T){var N=l.pendingLanes;l.pendingLanes=f,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=f,l.entangledLanes&=f,l.errorRecoveryDisabledLanes&=f,l.shellSuspendCounter=0;var V=l.entanglements,ht=l.expirationTimes,xt=l.hiddenUpdates;for(f=N&~f;0<f;){var Ht=31-cn(f),Mt=1<<Ht;V[Ht]=0,ht[Ht]=-1;var Qt=xt[Ht];if(Qt!==null)for(xt[Ht]=null,Ht=0;Ht<Qt.length;Ht++){var ye=Qt[Ht];ye!==null&&(ye.lane&=-536870913)}f&=~Mt}m!==0&&ot(l,m,0),T!==0&&S===0&&l.tag!==0&&(l.suspendedLanes|=T&~(N&~r))}function ot(l,r,f){l.pendingLanes|=r,l.suspendedLanes&=~r;var m=31-cn(r);l.entangledLanes|=r,l.entanglements[m]=l.entanglements[m]|1073741824|f&261930}function Et(l,r){var f=l.entangledLanes|=r;for(l=l.entanglements;f;){var m=31-cn(f),S=1<<m;S&r|l[m]&r&&(l[m]|=r),f&=~S}}function kt(l,r){var f=r&-r;return f=(f&42)!==0?1:Vt(f),(f&(l.suspendedLanes|r))!==0?0:f}function Vt(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function St(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function te(l){if(typeof j1=="function"&&If(l),hn&&typeof hn.setStrictMode=="function")try{hn.setStrictMode(Hr,l)}catch{}}function jt(l,r){return l===r&&(l!==0||1/l===1/r)||l!==l&&r!==r}function Nt(l){if(uc===void 0)try{throw Error()}catch(f){var r=f.stack.trim().match(/\n( *(at )?)/);uc=r&&r[1]||"",ql=-1<f.stack.indexOf(`
24
+ at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
25
+ `+uc+l+ql}function Q(l,r){if(!l||Xu)return"";Xu=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(r){var Mt=function(){throw Error()};if(Object.defineProperty(Mt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Mt,[])}catch(ye){var Qt=ye}Reflect.construct(l,[],Mt)}else{try{Mt.call()}catch(ye){Qt=ye}l.call(Mt.prototype)}}else{try{throw Error()}catch(ye){Qt=ye}(Mt=l())&&typeof Mt.catch=="function"&&Mt.catch(function(){})}}catch(ye){if(ye&&Qt&&typeof ye.stack=="string")return[ye.stack,Qt.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var T=m.DetermineComponentFrameRoot(),N=T[0],V=T[1];if(N&&V){var ht=N.split(`
26
+ `),xt=V.split(`
27
+ `);for(S=m=0;m<ht.length&&!ht[m].includes("DetermineComponentFrameRoot");)m++;for(;S<xt.length&&!xt[S].includes("DetermineComponentFrameRoot");)S++;if(m===ht.length||S===xt.length)for(m=ht.length-1,S=xt.length-1;1<=m&&0<=S&&ht[m]!==xt[S];)S--;for(;1<=m&&0<=S;m--,S--)if(ht[m]!==xt[S]){if(m!==1||S!==1)do if(m--,S--,0>S||ht[m]!==xt[S]){var Ht=`
28
+ `+ht[m].replace(" at new "," at ");return l.displayName&&Ht.includes("<anonymous>")&&(Ht=Ht.replace("<anonymous>",l.displayName)),Ht}while(1<=m&&0<=S);break}}}finally{Xu=!1,Error.prepareStackTrace=f}return(f=l?l.displayName||l.name:"")?Nt(f):""}function pt(l,r){switch(l.tag){case 26:case 27:case 5:return Nt(l.type);case 16:return Nt("Lazy");case 13:return l.child!==r&&r!==null?Nt("Suspense Fallback"):Nt("Suspense");case 19:return Nt("SuspenseList");case 0:case 15:return Q(l.type,!1);case 11:return Q(l.type.render,!1);case 1:return Q(l.type,!0);case 31:return Nt("Activity");default:return""}}function bt(l){try{var r="",f=null;do r+=pt(l,f),f=l,l=l.return;while(l);return r}catch(m){return`
29
+ Error generating stack: `+m.message+`
30
+ `+m.stack}}function Ot(l,r){if(typeof l=="object"&&l!==null){var f=V1.get(l);return f!==void 0?f:(r={value:l,source:r,stack:bt(r)},V1.set(l,r),r)}return{value:l,source:r,stack:bt(r)}}function Xt(l,r){gi[Ll++]=ju,gi[Ll++]=oa,oa=l,ju=r}function B(l,r,f){Ln[Sn++]=O0,Ln[Sn++]=rl,Ln[Sn++]=kn,kn=l;var m=O0;l=rl;var S=32-cn(m)-1;m&=~(1<<S),f+=1;var T=32-cn(r)+S;if(30<T){var N=S-S%5;T=(m&(1<<N)-1).toString(32),m>>=N,S-=N,O0=1<<32-cn(r)+S|f<<S|m,rl=T+l}else O0=1<<T|f<<S|m,rl=l}function et(l){l.return!==null&&(Xt(l,1),B(l,1,0))}function dt(l){for(;l===oa;)oa=gi[--Ll],gi[Ll]=null,ju=gi[--Ll],gi[Ll]=null;for(;l===kn;)kn=Ln[--Sn],Ln[Sn]=null,rl=Ln[--Sn],Ln[Sn]=null,O0=Ln[--Sn],Ln[Sn]=null}function wt(l,r){Ln[Sn++]=O0,Ln[Sn++]=rl,Ln[Sn++]=kn,O0=r.id,rl=r.overflow,kn=l}function Kt(l,r){C(B0,r),C(pi,l),C(E0,null),l=cf(r),D(E0),C(E0,l)}function Bt(){D(E0),D(pi),D(B0)}function Ct(l){l.memoizedState!==null&&C(Vu,l);var r=E0.current,f=Ds(r,l.type);r!==f&&(C(pi,l),C(E0,f))}function Wt(l){pi.current===l&&(D(E0),D(pi)),Vu.current===l&&(D(Vu),Fa?Nr._currentValue=Dr:Nr._currentValue2=Dr)}function Zt(l){var r=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qe(Ot(r,l)),oc}function Ae(l,r){if(!za)throw Error(o(175));Gf(l.stateNode,l.type,l.memoizedProps,r,l)||Zt(l,!0)}function Ue(l){for(f0=l.return;f0;)switch(f0.tag){case 5:case 31:case 13:I0=!1;return;case 27:case 3:I0=!0;return;default:f0=f0.return}}function ae(l){if(!za||l!==f0)return!1;if(!Oe)return Ue(l),Oe=!0,!1;var r=l.tag;if(h0?r!==3&&r!==27&&(r!==5||Os(l.type)&&!W0(l.type,l.memoizedProps))&&Ca&&Zt(l):r!==3&&(r!==5||Os(l.type)&&!W0(l.type,l.memoizedProps))&&Ca&&Zt(l),Ue(l),r===13){if(!za)throw Error(o(316));if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));Ca=R1(l)}else if(r===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(317));Ca=qf(l)}else Ca=h0&&r===27?Cf(l.type,Ca):f0?zf(l.stateNode):null;return!0}function pe(){za&&(Ca=f0=null,Oe=!1)}function Xe(){var l=kl;return l!==null&&(dn===null?dn=l:dn.push.apply(dn,l),kl=null),l}function qe(l){kl===null?kl=[l]:kl.push(l)}function Je(l,r,f){Fa?(C(Yn,r._currentValue),r._currentValue=f):(C(Yn,r._currentValue2),r._currentValue2=f)}function ia(l){var r=Yn.current;Fa?l._currentValue=r:l._currentValue2=r,D(Yn)}function Ne(l,r,f){for(;l!==null;){var m=l.alternate;if((l.childLanes&r)!==r?(l.childLanes|=r,m!==null&&(m.childLanes|=r)):m!==null&&(m.childLanes&r)!==r&&(m.childLanes|=r),l===f)break;l=l.return}}function Fe(l,r,f,m){var S=l.child;for(S!==null&&(S.return=l);S!==null;){var T=S.dependencies;if(T!==null){var N=S.child;T=T.firstContext;t:for(;T!==null;){var V=T;T=S;for(var ht=0;ht<r.length;ht++)if(V.context===r[ht]){T.lanes|=f,V=T.alternate,V!==null&&(V.lanes|=f),Ne(T.return,f,l),m||(N=null);break t}T=V.next}}else if(S.tag===18){if(N=S.return,N===null)throw Error(o(341));N.lanes|=f,T=N.alternate,T!==null&&(T.lanes|=f),Ne(N,f,l),N=null}else N=S.child;if(N!==null)N.return=S;else for(N=S;N!==null;){if(N===l){N=null;break}if(S=N.sibling,S!==null){S.return=N.return,N=S;break}N=N.return}S=N}}function w0(l,r,f,m){l=null;for(var S=r,T=!1;S!==null;){if(!T){if((S.flags&524288)!==0)T=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var N=S.alternate;if(N===null)throw Error(o(387));if(N=N.memoizedProps,N!==null){var V=S.type;Ia(S.pendingProps.value,N.value)||(l!==null?l.push(V):l=[V])}}else if(S===Vu.current){if(N=S.alternate,N===null)throw Error(o(387));N.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(l!==null?l.push(Nr):l=[Nr])}S=S.return}l!==null&&Fe(r,l,f,m),r.flags|=262144}function D0(l){for(l=l.firstContext;l!==null;){var r=l.context;if(!Ia(Fa?r._currentValue:r._currentValue2,l.memoizedValue))return!0;l=l.next}return!1}function p0(l){fa=l,sl=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function ga(l){return V0(fa,l)}function Le(l,r){return fa===null&&p0(l),V0(l,r)}function V0(l,r){var f=Fa?r._currentValue:r._currentValue2;if(r={context:r,memoizedValue:f,next:null},sl===null){if(l===null)throw Error(o(308));sl=r,l.dependencies={lanes:0,firstContext:r},l.flags|=524288}else sl=sl.next=r;return f}function L0(){return{controller:new Pf,data:new Map,refCount:0}}function xa(l){l.refCount--,l.refCount===0&&_0(b4,function(){l.controller.abort()})}function pa(){}function Za(l){l!==ea&&l.next===null&&(ea===null?Qu=ea=l:ea=ea.next=l),Xn=!0,X0||(X0=!0,Q0())}function u0(l,r){if(!cc&&Xn){cc=!0;do for(var f=!1,m=Qu;m!==null;){if(l!==0){var S=m.pendingLanes;if(S===0)var T=0;else{var N=m.suspendedLanes,V=m.pingedLanes;T=(1<<31-cn(42|l)+1)-1,T&=S&~(N&~V),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(f=!0,In(m,T))}else T=Be,T=Y(m,m===Me?T:0,m.cancelPendingCommit!==null||m.timeoutHandle!==on),(T&3)===0||G(m,T)||(f=!0,In(m,T));m=m.next}while(f);cc=!1}}function N0(){Pl()}function Pl(){Xn=X0=!1;var l=0;Zi!==0&&wr()&&(l=Zi);for(var r=Y0(),f=null,m=Qu;m!==null;){var S=m.next,T=gl(m,r);T===0?(m.next=null,f===null?Qu=S:f.next=S,S===null&&(ea=f)):(f=m,(l!==0||(T&3)!==0)&&(Xn=!0)),m=S}r0!==0&&r0!==5||u0(l),Zi!==0&&(Zi=0)}function gl(l,r){for(var f=l.suspendedLanes,m=l.pingedLanes,S=l.expirationTimes,T=l.pendingLanes&-62914561;0<T;){var N=31-cn(T),V=1<<N,ht=S[N];ht===-1?((V&f)===0||(V&m)!==0)&&(S[N]=Z(V,r)):ht<=r&&(l.expiredLanes|=V),T&=~V}if(r=Me,f=Be,f=Y(l,l===r?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==on),m=l.callbackNode,f===0||l===r&&(na===2||na===9)||l.cancelPendingCommit!==null)return m!==null&&m!==null&&lc(m),l.callbackNode=null,l.callbackPriority=0;if((f&3)===0||G(l,f)){if(r=f&-f,r===l.callbackPriority)return r;switch(m!==null&&lc(m),St(f)){case 2:case 8:f=Wf;break;case 32:f=Yu;break;case 268435456:f=rc;break;default:f=Yu}return m=v0.bind(null,l),f=ku(f,m),l.callbackPriority=r,l.callbackNode=f,r}return m!==null&&m!==null&&lc(m),l.callbackPriority=2,l.callbackNode=null,2}function v0(l,r){if(r0!==0&&r0!==5)return l.callbackNode=null,l.callbackPriority=0,null;var f=l.callbackNode;if(Hl()&&l.callbackNode!==f)return null;var m=Be;return m=Y(l,l===Me?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==on),m===0?null:(il(l,m,r),gl(l,Y0()),l.callbackNode!=null&&l.callbackNode===f?v0.bind(null,l):null)}function In(l,r){if(Hl())return null;il(l,r,!0)}function Q0(){p1?v1(function(){(we&6)!==0?ku(ic,N0):Pl()}):ku(ic,N0)}function nn(){if(Zi===0){var l=vi;l===0&&(l=nc,nc<<=1,(nc&261888)===0&&(nc=256)),Zi=l}return Zi}function Nc(l,r){if(Hs===null){var f=Hs=[];Q1=0,vi=nn(),d0={status:"pending",value:void 0,then:function(m){f.push(m)}}}return Q1++,r.then(hu,hu),r}function hu(){if(--Q1===0&&Hs!==null){d0!==null&&(d0.status="fulfilled");var l=Hs;Hs=null,vi=0,d0=null;for(var r=0;r<l.length;r++)(0,l[r])()}}function ns(l,r){var f=[],m={status:"pending",value:null,reason:null,then:function(S){f.push(S)}};return l.then(function(){m.status="fulfilled",m.value=r;for(var S=0;S<f.length;S++)(0,f[S])(r)},function(S){for(m.status="rejected",m.reason=S,S=0;S<f.length;S++)(0,f[S])(void 0)}),m}function Mi(){var l=Ji.current;return l!==null?l:Me.pooledCache}function $l(l,r){r===null?C(Ji,Ji.current):C(Ji,r.pool)}function pl(){var l=Mi();return l===null?null:{parent:Fa?wa._currentValue:wa._currentValue2,pool:l}}function ti(l,r){if(Ia(l,r))return!0;if(typeof l!="object"||l===null||typeof r!="object"||r===null)return!1;var f=Object.keys(l),m=Object.keys(r);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var S=f[m];if(!y4.call(r,S)||!Ia(l[S],r[S]))return!1}return!0}function Ai(l){return l=l.status,l==="fulfilled"||l==="rejected"}function uo(l,r,f){switch(f=l[f],f===void 0?l.push(r):f!==r&&(r.then(pa,pa),r=f),r.status){case"fulfilled":return r.value;case"rejected":throw l=r.reason,Pn(l),l;default:if(typeof r.status=="string")r.then(pa,pa);else{if(l=Me,l!==null&&100<l.shellSuspendCounter)throw Error(o(482));l=r,l.status="pending",l.then(function(m){if(r.status==="pending"){var S=r;S.status="fulfilled",S.value=m}},function(m){if(r.status==="pending"){var S=r;S.status="rejected",S.reason=m}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw l=r.reason,Pn(l),l}throw P0=r,m0}}function vl(l){try{var r=l._init;return r(l._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(P0=f,m0):f}}function yl(){if(P0===null)throw Error(o(459));var l=P0;return P0=null,l}function Pn(l){if(l===m0||l===Vn)throw Error(o(483))}function zi(l){var r=Gr;return Gr+=1,Fi===null&&(Fi=[]),uo(Fi,l,r)}function ei(l,r){r=r.props.ref,l.ref=r!==void 0?r:null}function fr(l,r){throw r.$$typeof===_r?Error(o(525)):(l=Object.prototype.toString.call(r),Error(o(31,l==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":l)))}function fu(l){function r(it,$){if(l){var ct=it.deletions;ct===null?(it.deletions=[$],it.flags|=16):ct.push($)}}function f(it,$){if(!l)return null;for(;$!==null;)r(it,$),$=$.sibling;return null}function m(it){for(var $=new Map;it!==null;)it.key!==null?$.set(it.key,it):$.set(it.index,it),it=it.sibling;return $}function S(it,$){return it=yn(it,$),it.index=0,it.sibling=null,it}function T(it,$,ct){return it.index=ct,l?(ct=it.alternate,ct!==null?(ct=ct.index,ct<$?(it.flags|=67108866,$):ct):(it.flags|=67108866,$)):(it.flags|=1048576,$)}function N(it){return l&&it.alternate===null&&(it.flags|=67108866),it}function V(it,$,ct,Rt){return $===null||$.tag!==6?($=i1(ct,it.mode,Rt),$.return=it,$):($=S($,ct),$.return=it,$)}function ht(it,$,ct,Rt){var re=ct.type;return re===Ar?Ht(it,$,ct.props.children,Rt,ct.key):$!==null&&($.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===F0&&vl(re)===$.type)?($=S($,ct.props),ei($,ct),$.return=it,$):($=ci(ct.type,ct.key,ct.props,null,it.mode,Rt),ei($,ct),$.return=it,$)}function xt(it,$,ct,Rt){return $===null||$.tag!==4||$.stateNode.containerInfo!==ct.containerInfo||$.stateNode.implementation!==ct.implementation?($=s1(ct,it.mode,Rt),$.return=it,$):($=S($,ct.children||[]),$.return=it,$)}function Ht(it,$,ct,Rt,re){return $===null||$.tag!==7?($=Hn(ct,it.mode,Rt,re),$.return=it,$):($=S($,ct),$.return=it,$)}function Mt(it,$,ct){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return $=i1(""+$,it.mode,ct),$.return=it,$;if(typeof $=="object"&&$!==null){switch($.$$typeof){case Gl:return ct=ci($.type,$.key,$.props,null,it.mode,ct),ei(ct,$),ct.return=it,ct;case Mr:return $=s1($,it.mode,ct),$.return=it,$;case F0:return $=vl($),Mt(it,$,ct)}if(ji($)||E($))return $=Hn($,it.mode,ct,null),$.return=it,$;if(typeof $.then=="function")return Mt(it,zi($),ct);if($.$$typeof===Gn)return Mt(it,Le(it,$),ct);fr(it,$)}return null}function Qt(it,$,ct,Rt){var re=$!==null?$.key:null;if(typeof ct=="string"&&ct!==""||typeof ct=="number"||typeof ct=="bigint")return re!==null?null:V(it,$,""+ct,Rt);if(typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case Gl:return ct.key===re?ht(it,$,ct,Rt):null;case Mr:return ct.key===re?xt(it,$,ct,Rt):null;case F0:return ct=vl(ct),Qt(it,$,ct,Rt)}if(ji(ct)||E(ct))return re!==null?null:Ht(it,$,ct,Rt,null);if(typeof ct.then=="function")return Qt(it,$,zi(ct),Rt);if(ct.$$typeof===Gn)return Qt(it,$,Le(it,ct),Rt);fr(it,ct)}return null}function ye(it,$,ct,Rt,re){if(typeof Rt=="string"&&Rt!==""||typeof Rt=="number"||typeof Rt=="bigint")return it=it.get(ct)||null,V($,it,""+Rt,re);if(typeof Rt=="object"&&Rt!==null){switch(Rt.$$typeof){case Gl:return it=it.get(Rt.key===null?ct:Rt.key)||null,ht($,it,Rt,re);case Mr:return it=it.get(Rt.key===null?ct:Rt.key)||null,xt($,it,Rt,re);case F0:return Rt=vl(Rt),ye(it,$,ct,Rt,re)}if(ji(Rt)||E(Rt))return it=it.get(ct)||null,Ht($,it,Rt,re,null);if(typeof Rt.then=="function")return ye(it,$,ct,zi(Rt),re);if(Rt.$$typeof===Gn)return ye(it,$,ct,Le($,Rt),re);fr($,Rt)}return null}function M0(it,$,ct,Rt){for(var re=null,La=null,se=$,je=$=0,A0=null;se!==null&&je<ct.length;je++){se.index>je?(A0=se,se=null):A0=se.sibling;var Ze=Qt(it,se,ct[je],Rt);if(Ze===null){se===null&&(se=A0);break}l&&se&&Ze.alternate===null&&r(it,se),$=T(Ze,$,je),La===null?re=Ze:La.sibling=Ze,La=Ze,se=A0}if(je===ct.length)return f(it,se),Oe&&Xt(it,je),re;if(se===null){for(;je<ct.length;je++)se=Mt(it,ct[je],Rt),se!==null&&($=T(se,$,je),La===null?re=se:La.sibling=se,La=se);return Oe&&Xt(it,je),re}for(se=m(se);je<ct.length;je++)A0=ye(se,it,je,ct[je],Rt),A0!==null&&(l&&A0.alternate!==null&&se.delete(A0.key===null?je:A0.key),$=T(A0,$,je),La===null?re=A0:La.sibling=A0,La=A0);return l&&se.forEach(function(Zn){return r(it,Zn)}),Oe&&Xt(it,je),re}function js(it,$,ct,Rt){if(ct==null)throw Error(o(151));for(var re=null,La=null,se=$,je=$=0,A0=null,Ze=ct.next();se!==null&&!Ze.done;je++,Ze=ct.next()){se.index>je?(A0=se,se=null):A0=se.sibling;var Zn=Qt(it,se,Ze.value,Rt);if(Zn===null){se===null&&(se=A0);break}l&&se&&Zn.alternate===null&&r(it,se),$=T(Zn,$,je),La===null?re=Zn:La.sibling=Zn,La=Zn,se=A0}if(Ze.done)return f(it,se),Oe&&Xt(it,je),re;if(se===null){for(;!Ze.done;je++,Ze=ct.next())Ze=Mt(it,Ze.value,Rt),Ze!==null&&($=T(Ze,$,je),La===null?re=Ze:La.sibling=Ze,La=Ze);return Oe&&Xt(it,je),re}for(se=m(se);!Ze.done;je++,Ze=ct.next())Ze=ye(se,it,je,Ze.value,Rt),Ze!==null&&(l&&Ze.alternate!==null&&se.delete(Ze.key===null?je:Ze.key),$=T(Ze,$,je),La===null?re=Ze:La.sibling=Ze,La=Ze);return l&&se.forEach(function(S4){return r(it,S4)}),Oe&&Xt(it,je),re}function nr(it,$,ct,Rt){if(typeof ct=="object"&&ct!==null&&ct.type===Ar&&ct.key===null&&(ct=ct.props.children),typeof ct=="object"&&ct!==null){switch(ct.$$typeof){case Gl:t:{for(var re=ct.key;$!==null;){if($.key===re){if(re=ct.type,re===Ar){if($.tag===7){f(it,$.sibling),Rt=S($,ct.props.children),Rt.return=it,it=Rt;break t}}else if($.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===F0&&vl(re)===$.type){f(it,$.sibling),Rt=S($,ct.props),ei(Rt,ct),Rt.return=it,it=Rt;break t}f(it,$);break}else r(it,$);$=$.sibling}ct.type===Ar?(Rt=Hn(ct.props.children,it.mode,Rt,ct.key),Rt.return=it,it=Rt):(Rt=ci(ct.type,ct.key,ct.props,null,it.mode,Rt),ei(Rt,ct),Rt.return=it,it=Rt)}return N(it);case Mr:t:{for(re=ct.key;$!==null;){if($.key===re)if($.tag===4&&$.stateNode.containerInfo===ct.containerInfo&&$.stateNode.implementation===ct.implementation){f(it,$.sibling),Rt=S($,ct.children||[]),Rt.return=it,it=Rt;break t}else{f(it,$);break}else r(it,$);$=$.sibling}Rt=s1(ct,it.mode,Rt),Rt.return=it,it=Rt}return N(it);case F0:return ct=vl(ct),nr(it,$,ct,Rt)}if(ji(ct))return M0(it,$,ct,Rt);if(E(ct)){if(re=E(ct),typeof re!="function")throw Error(o(150));return ct=re.call(ct),js(it,$,ct,Rt)}if(typeof ct.then=="function")return nr(it,$,zi(ct),Rt);if(ct.$$typeof===Gn)return nr(it,$,Le(it,ct),Rt);fr(it,ct)}return typeof ct=="string"&&ct!==""||typeof ct=="number"||typeof ct=="bigint"?(ct=""+ct,$!==null&&$.tag===6?(f(it,$.sibling),Rt=S($,ct),Rt.return=it,it=Rt):(f(it,$),Rt=i1(ct,it.mode,Rt),Rt.return=it,it=Rt),N(it)):f(it,$)}return function(it,$,ct,Rt){try{Gr=0;var re=nr(it,$,ct,Rt);return Fi=null,re}catch(se){if(se===m0||se===Vn)throw se;var La=a(29,se,null,it.mode);return La.lanes=Rt,La.return=it,La}finally{}}}function $n(){for(var l=Xl,r=Ur=Xl=0;r<l;){var f=G0[r];G0[r++]=null;var m=G0[r];G0[r++]=null;var S=G0[r];G0[r++]=null;var T=G0[r];if(G0[r++]=null,m!==null&&S!==null){var N=m.pending;N===null?S.next=S:(S.next=N.next,N.next=S),m.pending=S}T!==0&&al(f,S,T)}}function tl(l,r,f,m){G0[Xl++]=l,G0[Xl++]=r,G0[Xl++]=f,G0[Xl++]=m,Ur|=m,l.lanes|=m,l=l.alternate,l!==null&&(l.lanes|=m)}function Ci(l,r,f,m){return tl(l,r,f,m),Ya(l)}function el(l,r){return tl(l,null,null,r),Ya(l)}function al(l,r,f){l.lanes|=f;var m=l.alternate;m!==null&&(m.lanes|=f);for(var S=!1,T=l.return;T!==null;)T.childLanes|=f,m=T.alternate,m!==null&&(m.childLanes|=f),T.tag===22&&(l=T.stateNode,l===null||l._visibility&1||(S=!0)),l=T,T=T.return;return l.tag===3?(T=l.stateNode,S&&r!==null&&(S=31-cn(f),l=T.hiddenUpdates,m=l[S],m===null?l[S]=[r]:m.push(r),r.lane=f|536870912),T):null}function Ya(l){if(50<Qe)throw Qe=0,Iu=null,Error(o(185));for(var r=l.return;r!==null;)l=r,r=l.return;return l.tag===3?l.stateNode:null}function o0(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bl(l,r){l=l.updateQueue,r.updateQueue===l&&(r.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Cn(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Sl(l,r,f){var m=l.updateQueue;if(m===null)return null;if(m=m.shared,(we&2)!==0){var S=m.pending;return S===null?r.next=r:(r.next=S.next,S.next=r),m.pending=r,r=Ya(l),al(l,null,f),r}return tl(l,m,r,f),Ya(l)}function dr(l,r,f){if(r=r.updateQueue,r!==null&&(r=r.shared,(f&4194048)!==0)){var m=r.lanes;m&=l.pendingLanes,f|=m,r.lanes=f,Et(l,f)}}function ls(l,r){var f=l.updateQueue,m=l.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var S=null,T=null;if(f=f.firstBaseUpdate,f!==null){do{var N={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};T===null?S=T=N:T=T.next=N,f=f.next}while(f!==null);T===null?S=T=r:T=T.next=r}else S=T=r;f={baseState:m.baseState,firstBaseUpdate:S,lastBaseUpdate:T,shared:m.shared,callbacks:m.callbacks},l.updateQueue=f;return}l=f.lastBaseUpdate,l===null?f.firstBaseUpdate=r:l.next=r,f.lastBaseUpdate=r}function y0(){if(fc){var l=d0;if(l!==null)throw l}}function xl(l,r,f,m){fc=!1;var S=l.updateQueue;xn=!1;var T=S.firstBaseUpdate,N=S.lastBaseUpdate,V=S.shared.pending;if(V!==null){S.shared.pending=null;var ht=V,xt=ht.next;ht.next=null,N===null?T=xt:N.next=xt,N=ht;var Ht=l.alternate;Ht!==null&&(Ht=Ht.updateQueue,V=Ht.lastBaseUpdate,V!==N&&(V===null?Ht.firstBaseUpdate=xt:V.next=xt,Ht.lastBaseUpdate=ht))}if(T!==null){var Mt=S.baseState;N=0,Ht=xt=ht=null,V=T;do{var Qt=V.lane&-536870913,ye=Qt!==V.lane;if(ye?(Be&Qt)===Qt:(m&Qt)===Qt){Qt!==0&&Qt===vi&&(fc=!0),Ht!==null&&(Ht=Ht.next={lane:0,tag:V.tag,payload:V.payload,callback:null,next:null});t:{var M0=l,js=V;Qt=r;var nr=f;switch(js.tag){case 1:if(M0=js.payload,typeof M0=="function"){Mt=M0.call(nr,Mt,Qt);break t}Mt=M0;break t;case 3:M0.flags=M0.flags&-65537|128;case 0:if(M0=js.payload,Qt=typeof M0=="function"?M0.call(nr,Mt,Qt):M0,Qt==null)break t;Mt=ko({},Mt,Qt);break t;case 2:xn=!0}}Qt=V.callback,Qt!==null&&(l.flags|=64,ye&&(l.flags|=8192),ye=S.callbacks,ye===null?S.callbacks=[Qt]:ye.push(Qt))}else ye={lane:Qt,tag:V.tag,payload:V.payload,callback:V.callback,next:null},Ht===null?(xt=Ht=ye,ht=Mt):Ht=Ht.next=ye,N|=Qt;if(V=V.next,V===null){if(V=S.shared.pending,V===null)break;ye=V,V=ye.next,ye.next=null,S.lastBaseUpdate=ye,S.shared.pending=null}}while(!0);Ht===null&&(ht=Mt),S.baseState=ht,S.firstBaseUpdate=xt,S.lastBaseUpdate=Ht,T===null&&(S.shared.lanes=0),bi|=N,l.lanes=N,l.memoizedState=Mt}}function Tl(l,r){if(typeof l!="function")throw Error(o(191,l));l.call(r)}function El(l,r){var f=l.callbacks;if(f!==null)for(l.callbacks=null,l=0;l<f.length;l++)Tl(f[l],r)}function ai(l,r){l=Vl,C(Wi,l),C(qr,r),Vl=l|r.baseLanes}function W(){C(Wi,Vl),C(qr,qr.current)}function K(){Vl=Wi.current,D(qr),D(Wi)}function Yt(l){var r=l.alternate;C(ja,ja.current&1),C(fn,l),$0===null&&(r===null||qr.current!==null||r.memoizedState!==null)&&($0=l)}function ee(l){C(ja,ja.current),C(fn,l),$0===null&&($0=l)}function ne(l){l.tag===22?(C(ja,ja.current),C(fn,l),$0===null&&($0=l)):ce()}function ce(){C(ja,ja.current),C(fn,fn.current)}function de(l){D(fn),$0===l&&($0=null),D(ja)}function ta(l){for(var r=l;r!==null;){if(r.tag===13){var f=r.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||Qi(f)||Jo(f)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===l)break;for(;r.sibling===null;){if(r.return===null||r.return===l)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function ve(){throw Error(o(321))}function Ta(l,r){if(r===null)return!1;for(var f=0;f<r.length&&f<l.length;f++)if(!Ia(l[f],r[f]))return!1;return!0}function Ea(l,r,f,m,S,T){return yi=T,Se=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,le.H=l===null||l.memoizedState===null?Ga:jl,ke=!1,T=f(m,S),ke=!1,Te&&(T=_a(r,f,m,S)),ra(l),T}function ra(l){le.H=Tn;var r=$t!==null&&$t.next!==null;if(yi=0,me=$t=Se=null,_e=!1,Qn=0,ul=null,r)throw Error(o(300));l===null||ya||(l=l.dependencies,l!==null&&D0(l)&&(ya=!0))}function _a(l,r,f,m){Se=l;var S=0;do{if(Te&&(ul=null),Qn=0,Te=!1,25<=S)throw Error(o(301));if(S+=1,me=$t=null,l.updateQueue!=null){var T=l.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}le.H=Ii,T=r(f,m)}while(Te);return T}function Ja(){var l=le.H,r=l.useState()[0];return r=typeof r.then=="function"?b0(r):r,l=l.useState()[0],($t!==null?$t.memoizedState:null)!==l&&(Se.flags|=1024),r}function va(){var l=j0!==0;return j0=0,l}function nl(l,r,f){r.updateQueue=l.updateQueue,r.flags&=-2053,l.lanes&=~f}function wn(l){if(_e){for(l=l.memoizedState;l!==null;){var r=l.queue;r!==null&&(r.pending=null),l=l.next}_e=!1}yi=0,me=$t=Se=null,Te=!1,Qn=j0=0,ul=null}function Ma(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return me===null?Se.memoizedState=me=l:me=me.next=l,me}function sa(){if($t===null){var l=Se.alternate;l=l!==null?l.memoizedState:null}else l=$t.next;var r=me===null?Se.memoizedState:me.next;if(r!==null)me=r,$t=l;else{if(l===null)throw Se.alternate===null?Error(o(467)):Error(o(310));$t=l,l={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},me===null?Se.memoizedState=me=l:me=me.next=l}return me}function is(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function b0(l){var r=Qn;return Qn+=1,ul===null&&(ul=[]),l=uo(ul,l,r),r=Se,(me===null?r.memoizedState:me.next)===null&&(r=r.alternate,le.H=r===null||r.memoizedState===null?Ga:jl),l}function wi(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return b0(l);if(l.$$typeof===Gn)return ga(l)}throw Error(o(438,String(l)))}function rs(l){var r=null,f=Se.updateQueue;if(f!==null&&(r=f.memoCache),r==null){var m=Se.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(r={data:m.data.map(function(S){return S.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),f===null&&(f=is(),Se.updateQueue=f),f.memoCache=r,f=r.data[r.index],f===void 0)for(f=r.data[r.index]=Array(l),m=0;m<l;m++)f[m]=o1;return r.index++,f}function ll(l,r){return typeof r=="function"?r(l):r}function ni(l){var r=sa();return oo(r,$t,l)}function oo(l,r,f){var m=l.queue;if(m===null)throw Error(o(311));m.lastRenderedReducer=f;var S=l.baseQueue,T=m.pending;if(T!==null){if(S!==null){var N=S.next;S.next=T.next,T.next=N}r.baseQueue=S=T,m.pending=null}if(T=l.baseState,S===null)l.memoizedState=T;else{r=S.next;var V=N=null,ht=null,xt=r,Ht=!1;do{var Mt=xt.lane&-536870913;if(Mt!==xt.lane?(Be&Mt)===Mt:(yi&Mt)===Mt){var Qt=xt.revertLane;if(Qt===0)ht!==null&&(ht=ht.next={lane:0,revertLane:0,gesture:null,action:xt.action,hasEagerState:xt.hasEagerState,eagerState:xt.eagerState,next:null}),Mt===vi&&(Ht=!0);else if((yi&Qt)===Qt){xt=xt.next,Qt===vi&&(Ht=!0);continue}else Mt={lane:0,revertLane:xt.revertLane,gesture:null,action:xt.action,hasEagerState:xt.hasEagerState,eagerState:xt.eagerState,next:null},ht===null?(V=ht=Mt,N=T):ht=ht.next=Mt,Se.lanes|=Qt,bi|=Qt;Mt=xt.action,ke&&f(T,Mt),T=xt.hasEagerState?xt.eagerState:f(T,Mt)}else Qt={lane:Mt,revertLane:xt.revertLane,gesture:xt.gesture,action:xt.action,hasEagerState:xt.hasEagerState,eagerState:xt.eagerState,next:null},ht===null?(V=ht=Qt,N=T):ht=ht.next=Qt,Se.lanes|=Mt,bi|=Mt;xt=xt.next}while(xt!==null&&xt!==r);if(ht===null?N=T:ht.next=V,!Ia(T,l.memoizedState)&&(ya=!0,Ht&&(f=d0,f!==null)))throw f;l.memoizedState=T,l.baseState=N,l.baseQueue=ht,m.lastRenderedState=T}return S===null&&(m.lanes=0),[l.memoizedState,m.dispatch]}function co(l){var r=sa(),f=r.queue;if(f===null)throw Error(o(311));f.lastRenderedReducer=l;var m=f.dispatch,S=f.pending,T=r.memoizedState;if(S!==null){f.pending=null;var N=S=S.next;do T=l(T,N.action),N=N.next;while(N!==S);Ia(T,r.memoizedState)||(ya=!0),r.memoizedState=T,r.baseQueue===null&&(r.baseState=T),f.lastRenderedState=T}return[T,m]}function mr(l,r,f){var m=Se,S=sa(),T=Oe;if(T){if(f===void 0)throw Error(o(407));f=f()}else f=r();var N=!Ia(($t||S).memoizedState,f);if(N&&(S.memoizedState=f,ya=!0),S=S.queue,os(Oc.bind(null,m,S,l),[l]),S.getSnapshot!==r||N||me!==null&&me.memoizedState.tag&1){if(m.flags|=2048,gn(9,{destroy:void 0},Rc.bind(null,m,S,f,r),null),Me===null)throw Error(o(349));T||(yi&127)!==0||Dh(m,r,f)}return f}function Dh(l,r,f){l.flags|=16384,l={getSnapshot:r,value:f},r=Se.updateQueue,r===null?(r=is(),Se.updateQueue=r,r.stores=[l]):(f=r.stores,f===null?r.stores=[l]:f.push(l))}function Rc(l,r,f,m){r.value=f,r.getSnapshot=m,ho(r)&&Nh(l)}function Oc(l,r,f){return f(function(){ho(r)&&Nh(l)})}function ho(l){var r=l.getSnapshot;l=l.value;try{var f=r();return!Ia(l,f)}catch{return!0}}function Nh(l){var r=el(l,2);r!==null&&Ba(r,l,2)}function Bc(l){var r=Ma();if(typeof l=="function"){var f=l;if(l=f(),ke){te(!0);try{f()}finally{te(!1)}}}return r.memoizedState=r.baseState=l,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:l},r}function du(l,r,f,m){return l.baseState=f,oo(l,$t,typeof m=="function"?m:ll)}function li(l,r,f,m,S){if(So(l))throw Error(o(485));if(l=r.action,l!==null){var T={payload:S,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){T.listeners.push(N)}};le.T!==null?f(!0):T.isTransition=!1,m(T),f=r.pending,f===null?(T.next=r.pending=T,fo(r,T)):(T.next=f.next,r.pending=f.next=T)}}function fo(l,r){var f=r.action,m=r.payload,S=l.state;if(r.isTransition){var T=le.T,N={};le.T=N;try{var V=f(S,m),ht=le.S;ht!==null&&ht(N,V),mo(l,r,V)}catch(xt){Di(l,r,xt)}finally{T!==null&&N.types!==null&&(T.types=N.types),le.T=T}}else try{T=f(S,m),mo(l,r,T)}catch(xt){Di(l,r,xt)}}function mo(l,r,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){gr(l,r,m)},function(m){return Di(l,r,m)}):gr(l,r,f)}function gr(l,r,f){r.status="fulfilled",r.value=f,Hc(r),l.state=f,r=l.pending,r!==null&&(f=r.next,f===r?l.pending=null:(f=f.next,r.next=f,fo(l,f)))}function Di(l,r,f){var m=l.pending;if(l.pending=null,m!==null){m=m.next;do r.status="rejected",r.reason=f,Hc(r),r=r.next;while(r!==m)}l.action=null}function Hc(l){l=l.listeners;for(var r=0;r<l.length;r++)(0,l[r])()}function go(l,r){return r}function Gc(l,r){if(Oe){var f=Me.formState;if(f!==null){t:{var m=Se;if(Oe){if(Ca){var S=Af(Ca,I0);if(S){Ca=zf(S),m=C1(S);break t}}Zt(m)}m=!1}m&&(r=f[0])}}f=Ma(),f.memoizedState=f.baseState=r,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:go,lastRenderedState:r},f.queue=m,f=Uh.bind(null,Se,m),m.dispatch=f,m=Bc(!1);var T=bo.bind(null,Se,!1,m.queue);return m=Ma(),S={state:r,dispatch:null,action:l,pending:null},m.queue=S,f=li.bind(null,Se,S,T,f),S.dispatch=f,m.memoizedState=l,[r,f,!1]}function ss(l){var r=sa();return _l(r,$t,l)}function _l(l,r,f){if(r=oo(l,r,go)[0],l=ni(ll)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var m=b0(r)}catch(N){throw N===m0?Vn:N}else m=r;r=sa();var S=r.queue,T=S.dispatch;return f!==r.memoizedState&&(Se.flags|=2048,gn(9,{destroy:void 0},Uc.bind(null,S,f),null)),[m,T,l]}function Uc(l,r){l.action=r}function us(l){var r=sa(),f=$t;if(f!==null)return _l(r,f,l);sa(),r=r.memoizedState,f=sa();var m=f.queue.dispatch;return f.memoizedState=l,[r,m,!1]}function gn(l,r,f,m){return l={tag:l,create:f,deps:m,inst:r,next:null},r=Se.updateQueue,r===null&&(r=is(),Se.updateQueue=r),f=r.lastEffect,f===null?r.lastEffect=l.next=l:(m=f.next,f.next=l,l.next=m,r.lastEffect=l),l}function po(){return sa().memoizedState}function pr(l,r,f,m){var S=Ma();Se.flags|=l,S.memoizedState=gn(1|r,{destroy:void 0},f,m===void 0?null:m)}function mu(l,r,f,m){var S=sa();m=m===void 0?null:m;var T=S.memoizedState.inst;$t!==null&&m!==null&&Ta(m,$t.memoizedState.deps)?S.memoizedState=gn(r,T,f,m):(Se.flags|=l,S.memoizedState=gn(1|r,T,f,m))}function gu(l,r){pr(8390656,8,l,r)}function os(l,r){mu(2048,8,l,r)}function Rh(l){Se.flags|=4;var r=Se.updateQueue;if(r===null)r=is(),Se.updateQueue=r,r.events=[l];else{var f=r.events;f===null?r.events=[l]:f.push(l)}}function K0(l){var r=sa().memoizedState;return Rh({ref:r,nextImpl:l}),function(){if((we&2)!==0)throw Error(o(440));return r.impl.apply(void 0,arguments)}}function Ni(l,r){return mu(4,2,l,r)}function pu(l,r){return mu(4,4,l,r)}function cs(l,r){if(typeof r=="function"){l=l();var f=r(l);return function(){typeof f=="function"?f():r(null)}}if(r!=null)return l=l(),r.current=l,function(){r.current=null}}function Oh(l,r,f){f=f!=null?f.concat([l]):null,mu(4,4,cs.bind(null,r,l),f)}function vu(){}function vo(l,r){var f=sa();r=r===void 0?null:r;var m=f.memoizedState;return r!==null&&Ta(r,m[1])?m[0]:(f.memoizedState=[l,r],l)}function hs(l,r){var f=sa();r=r===void 0?null:r;var m=f.memoizedState;if(r!==null&&Ta(r,m[1]))return m[0];if(m=l(),ke){te(!0);try{l()}finally{te(!1)}}return f.memoizedState=[m,r],m}function fs(l,r,f){return f===void 0||(yi&1073741824)!==0&&(Be&261930)===0?l.memoizedState=r:(l.memoizedState=f,l=si(),Se.lanes|=l,bi|=l,f)}function qc(l,r,f,m){return Ia(f,r)?f:qr.current!==null?(l=fs(l,f,m),Ia(l,r)||(ya=!0),l):(yi&42)===0||(yi&1073741824)!==0&&(Be&261930)===0?(ya=!0,l.memoizedState=f):(l=si(),Se.lanes|=l,bi|=l,r)}function Bh(l,r,f,m,S){var T=Un();Re(T!==0&&8>T?T:8);var N=le.T,V={};le.T=V,bo(l,!1,r,f);try{var ht=S(),xt=le.S;if(xt!==null&&xt(V,ht),ht!==null&&typeof ht=="object"&&typeof ht.then=="function"){var Ht=ns(ht,m);yu(l,r,Ht,Aa(l))}else yu(l,r,m,Aa(l))}catch(Mt){yu(l,r,{then:function(){},status:"rejected",reason:Mt},Aa())}finally{Re(T),N!==null&&V.types!==null&&(N.types=V.types),le.T=N}}function Hh(l){var r=l.memoizedState;if(r!==null)return r;r={memoizedState:Dr,baseState:Dr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:Dr},next:null};var f={};return r.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:f},next:null},l.memoizedState=r,l=l.alternate,l!==null&&(l.memoizedState=r),r}function Lc(){return ga(Nr)}function yo(){return sa().memoizedState}function Gh(){return sa().memoizedState}function u4(l){for(var r=l.return;r!==null;){switch(r.tag){case 24:case 3:var f=Aa();l=Cn(f);var m=Sl(r,l,f);m!==null&&(Ba(m,r,f),dr(m,r,f)),r={cache:L0()},l.payload=r;return}r=r.return}}function o4(l,r,f){var m=Aa();f={lane:m,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},So(l)?qh(r,f):(f=Ci(l,r,f,m),f!==null&&(Ba(f,l,m),Lh(f,r,m)))}function Uh(l,r,f){var m=Aa();yu(l,r,f,m)}function yu(l,r,f,m){var S={lane:m,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(So(l))qh(r,S);else{var T=l.alternate;if(l.lanes===0&&(T===null||T.lanes===0)&&(T=r.lastRenderedReducer,T!==null))try{var N=r.lastRenderedState,V=T(N,f);if(S.hasEagerState=!0,S.eagerState=V,Ia(V,N))return tl(l,r,S,0),Me===null&&$n(),!1}catch{}finally{}if(f=Ci(l,r,S,m),f!==null)return Ba(f,l,m),Lh(f,r,m),!0}return!1}function bo(l,r,f,m){if(m={lane:2,revertLane:nn(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},So(l)){if(r)throw Error(o(479))}else r=Ci(l,f,m,2),r!==null&&Ba(r,l,2)}function So(l){var r=l.alternate;return l===Se||r!==null&&r===Se}function qh(l,r){Te=_e=!0;var f=l.pending;f===null?r.next=r:(r.next=f.next,f.next=r),l.pending=r}function Lh(l,r,f){if((f&4194048)!==0){var m=r.lanes;m&=l.pendingLanes,f|=m,r.lanes=f,Et(l,f)}}function kc(l,r,f,m){r=l.memoizedState,f=f(m,r),f=f==null?r:ko({},r,f),l.memoizedState=f,l.lanes===0&&(l.updateQueue.baseState=f)}function xo(l,r,f,m,S,T,N){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(m,T,N):r.prototype&&r.prototype.isPureReactComponent?!ti(f,m)||!ti(S,T):!0}function kh(l,r,f,m){l=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(f,m),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(f,m),r.state!==l&&Ku.enqueueReplaceState(r,r.state,null)}function vr(l,r){var f=r;if("ref"in r){f={};for(var m in r)m!=="ref"&&(f[m]=r[m])}if(l=l.defaultProps){f===r&&(f=ko({},f));for(var S in l)f[S]===void 0&&(f[S]=l[S])}return f}function To(l,r){try{var f=l.onUncaughtError;f(r.value,{componentStack:r.stack})}catch(m){setTimeout(function(){throw m})}}function Yc(l,r,f){try{var m=l.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function Xc(l,r,f){return f=Cn(f),f.tag=3,f.payload={element:null},f.callback=function(){To(l,r)},f}function Yh(l){return l=Cn(l),l.tag=3,l}function Xh(l,r,f,m){var S=f.type.getDerivedStateFromError;if(typeof S=="function"){var T=m.value;l.payload=function(){return S(T)},l.callback=function(){Yc(r,f,m)}}var N=f.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(l.callback=function(){Yc(r,f,m),typeof S!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var V=m.stack;this.componentDidCatch(m.value,{componentStack:V!==null?V:""})})}function c4(l,r,f,m,S){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(r=f.alternate,r!==null&&w0(r,f,S,!0),f=fn.current,f!==null){switch(f.tag){case 31:case 13:return $0===null?Es():f.alternate===null&&qa===0&&(qa=3),f.flags&=-257,f.flags|=65536,f.lanes=S,m===Yl?f.flags|=16384:(r=f.updateQueue,r===null?f.updateQueue=new Set([m]):r.add(m),As(l,m,S)),!1;case 22:return f.flags|=65536,m===Yl?f.flags|=16384:(r=f.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=r):(f=r.retryQueue,f===null?r.retryQueue=new Set([m]):f.add(m)),As(l,m,S)),!1}throw Error(o(435,f.tag))}return As(l,m,S),Es(),!1}if(Oe)return r=fn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=S,m!==oc&&(l=Error(o(422),{cause:m}),qe(Ot(l,f)))):(m!==oc&&(r=Error(o(423),{cause:m}),qe(Ot(r,f))),l=l.current.alternate,l.flags|=65536,S&=-S,l.lanes|=S,m=Ot(m,f),S=Xc(l.stateNode,m,S),ls(l,S),qa!==4&&(qa=2)),!1;var T=Error(o(520),{cause:m});if(T=Ot(T,f),Ju===null?Ju=[T]:Ju.push(T),qa!==4&&(qa=2),r===null)return!0;m=Ot(m,f),f=r;do{switch(f.tag){case 3:return f.flags|=65536,l=S&-S,f.lanes|=l,l=Xc(f.stateNode,m,l),ls(f,l),!1;case 1:if(r=f.type,T=f.stateNode,(f.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(Si===null||!Si.has(T))))return f.flags|=65536,S&=-S,f.lanes|=S,S=Yh(S),Xh(S,l,f,m),ls(f,S),!1}f=f.return}while(f!==null);return!1}function R0(l,r,f,m){r.child=l===null?K1(r,null,f,m):H0(r,l.child,f,m)}function jh(l,r,f,m,S){f=f.render;var T=r.ref;if("ref"in m){var N={};for(var V in m)V!=="ref"&&(N[V]=m[V])}else N=m;return p0(r),m=Ea(l,r,f,N,T,S),V=va(),l!==null&&!ya?(nl(l,r,S),Ml(l,r,S)):(Oe&&V&&et(r),r.flags|=1,R0(l,r,m,S),r.child)}function Vh(l,r,f,m,S){if(l===null){var T=f.type;return typeof T=="function"&&!Tr(T)&&T.defaultProps===void 0&&f.compare===null?(r.tag=15,r.type=T,Qh(l,r,T,m,S)):(l=ci(f.type,null,m,r,r.mode,S),l.ref=r.ref,l.return=r,r.child=l)}if(T=l.child,!Su(l,S)){var N=T.memoizedProps;if(f=f.compare,f=f!==null?f:ti,f(N,m)&&l.ref===r.ref)return Ml(l,r,S)}return r.flags|=1,l=yn(T,m),l.ref=r.ref,l.return=r,r.child=l}function Qh(l,r,f,m,S){if(l!==null){var T=l.memoizedProps;if(ti(T,m)&&l.ref===r.ref)if(ya=!1,r.pendingProps=m=T,Su(l,S))(l.flags&131072)!==0&&(ya=!0);else return r.lanes=l.lanes,Ml(l,r,S)}return _o(l,r,f,m,S)}function Kh(l,r,f,m){var S=m.children,T=l!==null?l.memoizedState:null;if(l===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((r.flags&128)!==0){if(T=T!==null?T.baseLanes|f:f,l!==null){for(m=r.child=l.child,S=0;m!==null;)S=S|m.lanes|m.childLanes,m=m.sibling;m=S&~T}else m=0,r.child=null;return ds(l,r,T,f,m)}if((f&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},l!==null&&$l(r,T!==null?T.cachePool:null),T!==null?ai(r,T):W(),ne(r);else return m=r.lanes=536870912,ds(l,r,T!==null?T.baseLanes|f:f,f,m)}else T!==null?($l(r,T.cachePool),ai(r,T),ce(),r.memoizedState=null):(l!==null&&$l(r,null),W(),ce());return R0(l,r,S,f),r.child}function yr(l,r){return l!==null&&l.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function ds(l,r,f,m,S){var T=Mi();return T=T===null?null:{parent:Fa?wa._currentValue:wa._currentValue2,pool:T},r.memoizedState={baseLanes:f,cachePool:T},l!==null&&$l(r,null),W(),ne(r),l!==null&&w0(l,r,m,!0),r.childLanes=S,null}function Eo(l,r){return r=Ri({mode:r.mode,children:r.children},l.mode),r.ref=l.ref,l.child=r,r.return=l,r}function jc(l,r,f){return H0(r,l.child,null,f),l=Eo(r,r.pendingProps),l.flags|=2,de(r),r.memoizedState=null,l}function Zh(l,r,f){var m=r.pendingProps,S=(r.flags&128)!==0;if(r.flags&=-129,l===null){if(Oe){if(m.mode==="hidden")return l=Eo(r,m),r.lanes=536870912,yr(null,l);if(ee(r),(l=Ca)?(l=D1(l,I0),l!==null&&(r.memoizedState={dehydrated:l,treeContext:kn!==null?{id:O0,overflow:rl}:null,retryLane:536870912,hydrationErrors:null},f=r1(l),f.return=r,r.child=f,f0=r,Ca=null)):l=null,l===null)throw Zt(r);return r.lanes=536870912,null}return Eo(r,m)}var T=l.memoizedState;if(T!==null){var N=T.dehydrated;if(ee(r),S)if(r.flags&256)r.flags&=-257,r=jc(l,r,f);else if(r.memoizedState!==null)r.child=l.child,r.flags|=128,r=null;else throw Error(o(558));else if(ya||w0(l,r,f,!1),S=(f&l.childLanes)!==0,ya||S){if(m=Me,m!==null&&(N=kt(m,f),N!==0&&N!==T.retryLane))throw T.retryLane=N,el(l,N),Ba(m,l,N),tn;Es(),r=jc(l,r,f)}else l=T.treeContext,za&&(Ca=Nf(N),f0=r,Oe=!0,kl=null,I0=!1,l!==null&&wt(r,l)),r=Eo(r,m),r.flags|=4096;return r}return l=yn(l.child,{mode:m.mode,children:m.children}),l.ref=r.ref,r.child=l,l.return=r,l}function bu(l,r){var f=r.ref;if(f===null)l!==null&&l.ref!==null&&(r.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(o(284));(l===null||l.ref!==f)&&(r.flags|=4194816)}}function _o(l,r,f,m,S){return p0(r),f=Ea(l,r,f,m,void 0,S),m=va(),l!==null&&!ya?(nl(l,r,S),Ml(l,r,S)):(Oe&&m&&et(r),r.flags|=1,R0(l,r,f,S),r.child)}function Vc(l,r,f,m,S,T){return p0(r),r.updateQueue=null,f=_a(r,m,f,S),ra(l),m=va(),l!==null&&!ya?(nl(l,r,T),Ml(l,r,T)):(Oe&&m&&et(r),r.flags|=1,R0(l,r,f,T),r.child)}function br(l,r,f,m,S){if(p0(r),r.stateNode===null){var T=Ul,N=f.contextType;typeof N=="object"&&N!==null&&(T=ga(N)),T=new f(m,T),r.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=Ku,r.stateNode=T,T._reactInternals=r,T=r.stateNode,T.props=m,T.state=r.memoizedState,T.refs={},o0(r),N=f.contextType,T.context=typeof N=="object"&&N!==null?ga(N):Ul,T.state=r.memoizedState,N=f.getDerivedStateFromProps,typeof N=="function"&&(kc(r,f,N,m),T.state=r.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(N=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),N!==T.state&&Ku.enqueueReplaceState(T,T.state,null),xl(r,m,T,S),y0(),T.state=r.memoizedState),typeof T.componentDidMount=="function"&&(r.flags|=4194308),m=!0}else if(l===null){T=r.stateNode;var V=r.memoizedProps,ht=vr(f,V);T.props=ht;var xt=T.context,Ht=f.contextType;N=Ul,typeof Ht=="object"&&Ht!==null&&(N=ga(Ht));var Mt=f.getDerivedStateFromProps;Ht=typeof Mt=="function"||typeof T.getSnapshotBeforeUpdate=="function",V=r.pendingProps!==V,Ht||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(V||xt!==N)&&kh(r,T,m,N),xn=!1;var Qt=r.memoizedState;T.state=Qt,xl(r,m,T,S),y0(),xt=r.memoizedState,V||Qt!==xt||xn?(typeof Mt=="function"&&(kc(r,f,Mt,m),xt=r.memoizedState),(ht=xn||xo(r,f,ht,m,Qt,xt,N))?(Ht||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(r.flags|=4194308)):(typeof T.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=m,r.memoizedState=xt),T.props=m,T.state=xt,T.context=N,m=ht):(typeof T.componentDidMount=="function"&&(r.flags|=4194308),m=!1)}else{T=r.stateNode,bl(l,r),N=r.memoizedProps,Ht=vr(f,N),T.props=Ht,Mt=r.pendingProps,Qt=T.context,xt=f.contextType,ht=Ul,typeof xt=="object"&&xt!==null&&(ht=ga(xt)),V=f.getDerivedStateFromProps,(xt=typeof V=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(N!==Mt||Qt!==ht)&&kh(r,T,m,ht),xn=!1,Qt=r.memoizedState,T.state=Qt,xl(r,m,T,S),y0();var ye=r.memoizedState;N!==Mt||Qt!==ye||xn||l!==null&&l.dependencies!==null&&D0(l.dependencies)?(typeof V=="function"&&(kc(r,f,V,m),ye=r.memoizedState),(Ht=xn||xo(r,f,Ht,m,Qt,ye,ht)||l!==null&&l.dependencies!==null&&D0(l.dependencies))?(xt||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(m,ye,ht),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(m,ye,ht)),typeof T.componentDidUpdate=="function"&&(r.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof T.componentDidUpdate!="function"||N===l.memoizedProps&&Qt===l.memoizedState||(r.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||N===l.memoizedProps&&Qt===l.memoizedState||(r.flags|=1024),r.memoizedProps=m,r.memoizedState=ye),T.props=m,T.state=ye,T.context=ht,m=Ht):(typeof T.componentDidUpdate!="function"||N===l.memoizedProps&&Qt===l.memoizedState||(r.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||N===l.memoizedProps&&Qt===l.memoizedState||(r.flags|=1024),m=!1)}return T=m,bu(l,r),m=(r.flags&128)!==0,T||m?(T=r.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:T.render(),r.flags|=1,l!==null&&m?(r.child=H0(r,l.child,null,S),r.child=H0(r,null,f,S)):R0(l,r,f,S),r.memoizedState=T.state,l=r.child):l=Ml(l,r,S),l}function Jh(l,r,f,m){return pe(),r.flags|=256,R0(l,r,f,m),r.child}function Qc(l){return{baseLanes:l,cachePool:pl()}}function Kc(l,r,f){return l=l!==null?l.childLanes&~f:0,r&&(l|=en),l}function Zc(l,r,f){var m=r.pendingProps,S=!1,T=(r.flags&128)!==0,N;if((N=T)||(N=l!==null&&l.memoizedState===null?!1:(ja.current&2)!==0),N&&(S=!0,r.flags&=-129),N=(r.flags&32)!==0,r.flags&=-33,l===null){if(Oe){if(S?Yt(r):ce(),(l=Ca)?(l=Hf(l,I0),l!==null&&(r.memoizedState={dehydrated:l,treeContext:kn!==null?{id:O0,overflow:rl}:null,retryLane:536870912,hydrationErrors:null},f=r1(l),f.return=r,r.child=f,f0=r,Ca=null)):l=null,l===null)throw Zt(r);return Jo(l)?r.lanes=32:r.lanes=536870912,null}var V=m.children;return m=m.fallback,S?(ce(),S=r.mode,V=Ri({mode:"hidden",children:V},S),m=Hn(m,S,f,null),V.return=r,m.return=r,V.sibling=m,r.child=V,m=r.child,m.memoizedState=Qc(f),m.childLanes=Kc(l,N,f),r.memoizedState=Lr,yr(null,m)):(Yt(r),Mo(r,V))}var ht=l.memoizedState;if(ht!==null&&(V=ht.dehydrated,V!==null)){if(T)r.flags&256?(Yt(r),r.flags&=-257,r=Sr(l,r,f)):r.memoizedState!==null?(ce(),r.child=l.child,r.flags|=128,r=null):(ce(),V=m.fallback,S=r.mode,m=Ri({mode:"visible",children:m.children},S),V=Hn(V,S,f,null),V.flags|=2,m.return=r,V.return=r,m.sibling=V,r.child=m,H0(r,l.child,null,f),m=r.child,m.memoizedState=Qc(f),m.childLanes=Kc(l,N,f),r.memoizedState=Lr,r=yr(null,m));else if(Yt(r),Jo(V))N=Fo(V).digest,m=Error(o(419)),m.stack="",m.digest=N,qe({value:m,source:null,stack:null}),r=Sr(l,r,f);else if(ya||w0(l,r,f,!1),N=(f&l.childLanes)!==0,ya||N){if(N=Me,N!==null&&(m=kt(N,f),m!==0&&m!==ht.retryLane))throw ht.retryLane=m,el(l,m),Ba(N,l,m),tn;Qi(V)||Es(),r=Sr(l,r,f)}else Qi(V)?(r.flags|=192,r.child=l.child,r=null):(l=ht.treeContext,za&&(Ca=Rf(V),f0=r,Oe=!0,kl=null,I0=!1,l!==null&&wt(r,l)),r=Mo(r,m.children),r.flags|=4096);return r}return S?(ce(),V=m.fallback,S=r.mode,ht=l.child,T=ht.sibling,m=yn(ht,{mode:"hidden",children:m.children}),m.subtreeFlags=ht.subtreeFlags&65011712,T!==null?V=yn(T,V):(V=Hn(V,S,f,null),V.flags|=2),V.return=r,m.return=r,m.sibling=V,r.child=m,yr(null,m),m=r.child,V=l.child.memoizedState,V===null?V=Qc(f):(S=V.cachePool,S!==null?(ht=Fa?wa._currentValue:wa._currentValue2,S=S.parent!==ht?{parent:ht,pool:ht}:S):S=pl(),V={baseLanes:V.baseLanes|f,cachePool:S}),m.memoizedState=V,m.childLanes=Kc(l,N,f),r.memoizedState=Lr,yr(l.child,m)):(Yt(r),f=l.child,l=f.sibling,f=yn(f,{mode:"visible",children:m.children}),f.return=r,f.sibling=null,l!==null&&(N=r.deletions,N===null?(r.deletions=[l],r.flags|=16):N.push(l)),r.child=f,r.memoizedState=null,f)}function Mo(l,r){return r=Ri({mode:"visible",children:r},l.mode),r.return=l,l.child=r}function Ri(l,r){return l=a(22,l,null,r),l.lanes=0,l}function Sr(l,r,f){return H0(r,l.child,null,f),l=Mo(r,r.pendingProps.children),l.flags|=2,r.memoizedState=null,l}function Fh(l,r,f){l.lanes|=r;var m=l.alternate;m!==null&&(m.lanes|=r),Ne(l.return,r,f)}function ms(l,r,f,m,S,T){var N=l.memoizedState;N===null?l.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:S,treeForkCount:T}:(N.isBackwards=r,N.rendering=null,N.renderingStartTime=0,N.last=m,N.tail=f,N.tailMode=S,N.treeForkCount=T)}function Jc(l,r,f){var m=r.pendingProps,S=m.revealOrder,T=m.tail;m=m.children;var N=ja.current,V=(N&2)!==0;if(V?(N=N&1|2,r.flags|=128):N&=1,C(ja,N),R0(l,r,m,f),m=Oe?ju:0,!V&&l!==null&&(l.flags&128)!==0)t:for(l=r.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&Fh(l,f,r);else if(l.tag===19)Fh(l,f,r);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break t;for(;l.sibling===null;){if(l.return===null||l.return===r)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(S){case"forwards":for(f=r.child,S=null;f!==null;)l=f.alternate,l!==null&&ta(l)===null&&(S=f),f=f.sibling;f=S,f===null?(S=r.child,r.child=null):(S=f.sibling,f.sibling=null),ms(r,!1,S,f,T,m);break;case"backwards":case"unstable_legacy-backwards":for(f=null,S=r.child,r.child=null;S!==null;){if(l=S.alternate,l!==null&&ta(l)===null){r.child=S;break}l=S.sibling,S.sibling=f,f=S,S=l}ms(r,!0,f,null,T,m);break;case"together":ms(r,!1,null,null,void 0,m);break;default:r.memoizedState=null}return r.child}function Ml(l,r,f){if(l!==null&&(r.dependencies=l.dependencies),bi|=r.lanes,(f&r.childLanes)===0)if(l!==null){if(w0(l,r,f,!1),(f&r.childLanes)===0)return null}else return null;if(l!==null&&r.child!==l.child)throw Error(o(153));if(r.child!==null){for(l=r.child,f=yn(l,l.pendingProps),r.child=f,f.return=r;l.sibling!==null;)l=l.sibling,f=f.sibling=yn(l,l.pendingProps),f.return=r;f.sibling=null}return r.child}function Su(l,r){return(l.lanes&r)!==0?!0:(l=l.dependencies,!!(l!==null&&D0(l)))}function Fc(l,r,f){switch(r.tag){case 3:Kt(r,r.stateNode.containerInfo),Je(r,wa,l.memoizedState.cache),pe();break;case 27:case 5:Ct(r);break;case 4:Kt(r,r.stateNode.containerInfo);break;case 10:Je(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,ee(r),null;break;case 13:var m=r.memoizedState;if(m!==null)return m.dehydrated!==null?(Yt(r),r.flags|=128,null):(f&r.child.childLanes)!==0?Zc(l,r,f):(Yt(r),l=Ml(l,r,f),l!==null?l.sibling:null);Yt(r);break;case 19:var S=(l.flags&128)!==0;if(m=(f&r.childLanes)!==0,m||(w0(l,r,f,!1),m=(f&r.childLanes)!==0),S){if(m)return Jc(l,r,f);r.flags|=128}if(S=r.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),C(ja,ja.current),m)break;return null;case 22:return r.lanes=0,Kh(l,r,f,r.pendingProps);case 24:Je(r,wa,l.memoizedState.cache)}return Ml(l,r,f)}function Wc(l,r,f){if(l!==null)if(l.memoizedProps!==r.pendingProps)ya=!0;else{if(!Su(l,f)&&(r.flags&128)===0)return ya=!1,Fc(l,r,f);ya=(l.flags&131072)!==0}else ya=!1,Oe&&(r.flags&1048576)!==0&&B(r,ju,r.index);switch(r.lanes=0,r.tag){case 16:t:{var m=r.pendingProps;if(l=vl(r.elementType),r.type=l,typeof l=="function")Tr(l)?(m=vr(l,m),r.tag=1,r=br(null,r,l,m,f)):(r.tag=0,r=_o(null,r,l,m,f));else{if(l!=null){var S=l.$$typeof;if(S===zs){r.tag=11,r=jh(null,r,l,m,f);break t}else if(S===Xo){r.tag=14,r=Vh(null,r,l,m,f);break t}}throw r=_(l)||l,Error(o(306,r,""))}}return r;case 0:return _o(l,r,r.type,r.pendingProps,f);case 1:return m=r.type,S=vr(m,r.pendingProps),br(l,r,m,S,f);case 3:t:{if(Kt(r,r.stateNode.containerInfo),l===null)throw Error(o(387));var T=r.pendingProps;S=r.memoizedState,m=S.element,bl(l,r),xl(r,T,null,f);var N=r.memoizedState;if(T=N.cache,Je(r,wa,T),T!==S.cache&&Fe(r,[wa],f,!0),y0(),T=N.element,za&&S.isDehydrated)if(S={element:T,isDehydrated:!1,cache:N.cache},r.updateQueue.baseState=S,r.memoizedState=S,r.flags&256){r=Jh(l,r,T,f);break t}else if(T!==m){m=Ot(Error(o(424)),r),qe(m),r=Jh(l,r,T,f);break t}else for(za&&(Ca=Df(r.stateNode.containerInfo),f0=r,Oe=!0,kl=null,I0=!0),f=K1(r,null,T,f),r.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(pe(),T===m){r=Ml(l,r,f);break t}R0(l,r,T,f)}r=r.child}return r;case 26:if(qn)return bu(l,r),l===null?(f=H1(r.type,null,r.pendingProps,null))?r.memoizedState=f:Oe||(r.stateNode=$o(r.type,r.pendingProps,B0.current,r)):r.memoizedState=H1(r.type,l.memoizedProps,r.pendingProps,l.memoizedState),null;case 27:if(h0)return Ct(r),l===null&&h0&&Oe&&(m=r.stateNode=tc(r.type,r.pendingProps,B0.current,E0.current,!1),f0=r,I0=!0,Ca=w1(r.type,m,Ca)),R0(l,r,r.pendingProps.children,f),bu(l,r),l===null&&(r.flags|=4194304),r.child;case 5:return l===null&&Oe&&(Vf(r.type,r.pendingProps,E0.current),(S=m=Ca)&&(m=Of(m,r.type,r.pendingProps,I0),m!==null?(r.stateNode=m,f0=r,Ca=wf(m),I0=!1,S=!0):S=!1),S||Zt(r)),Ct(r),S=r.type,T=r.pendingProps,N=l!==null?l.memoizedProps:null,m=T.children,W0(S,T)?m=null:N!==null&&W0(S,N)&&(r.flags|=32),r.memoizedState!==null&&(S=Ea(l,r,Ja,null,null,f),Fa?Nr._currentValue=S:Nr._currentValue2=S),bu(l,r),R0(l,r,m,f),r.child;case 6:return l===null&&Oe&&(B1(r.pendingProps,E0.current),(l=f=Ca)&&(f=Bf(f,r.pendingProps,I0),f!==null?(r.stateNode=f,f0=r,Ca=null,l=!0):l=!1),l||Zt(r)),null;case 13:return Zc(l,r,f);case 4:return Kt(r,r.stateNode.containerInfo),m=r.pendingProps,l===null?r.child=H0(r,null,m,f):R0(l,r,m,f),r.child;case 11:return jh(l,r,r.type,r.pendingProps,f);case 7:return R0(l,r,r.pendingProps,f),r.child;case 8:return R0(l,r,r.pendingProps.children,f),r.child;case 12:return R0(l,r,r.pendingProps.children,f),r.child;case 10:return m=r.pendingProps,Je(r,r.type,m.value),R0(l,r,m.children,f),r.child;case 9:return S=r.type._context,m=r.pendingProps.children,p0(r),S=ga(S),m=m(S),r.flags|=1,R0(l,r,m,f),r.child;case 14:return Vh(l,r,r.type,r.pendingProps,f);case 15:return Qh(l,r,r.type,r.pendingProps,f);case 19:return Jc(l,r,f);case 31:return Zh(l,r,f);case 22:return Kh(l,r,f,r.pendingProps);case 24:return p0(r),m=ga(wa),l===null?(S=Mi(),S===null&&(S=Me,T=L0(),S.pooledCache=T,T.refCount++,T!==null&&(S.pooledCacheLanes|=f),S=T),r.memoizedState={parent:m,cache:S},o0(r),Je(r,wa,S)):((l.lanes&f)!==0&&(bl(l,r),xl(r,null,null,f),y0()),S=l.memoizedState,T=r.memoizedState,S.parent!==m?(S={parent:m,cache:m},r.memoizedState=S,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=S),Je(r,wa,m)):(m=T.cache,Je(r,wa,m),m!==S.cache&&Fe(r,[wa],f,!0))),R0(l,r,r.pendingProps.children,f),r.child;case 29:throw r.pendingProps}throw Error(o(156,r.tag))}function Dn(l){l.flags|=4}function xu(l){bn&&(l.flags|=8)}function Wh(l,r){if(l!==null&&l.child===r.child)return!1;if((r.flags&16)!==0)return!0;for(l=r.child;l!==null;){if((l.flags&8218)!==0||(l.subtreeFlags&8218)!==0)return!0;l=l.sibling}return!1}function Ic(l,r,f,m){if(Ge)for(f=r.child;f!==null;){if(f.tag===5||f.tag===6)Hu(l,f.stateNode);else if(!(f.tag===4||h0&&f.tag===27)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===r)break;for(;f.sibling===null;){if(f.return===null||f.return===r)return;f=f.return}f.sibling.return=f.return,f=f.sibling}else if(bn)for(var S=r.child;S!==null;){if(S.tag===5){var T=S.stateNode;f&&m&&(T=Mf(T,S.type,S.memoizedProps)),Hu(l,T)}else if(S.tag===6)T=S.stateNode,f&&m&&(T=z1(T,S.memoizedProps)),Hu(l,T);else if(S.tag!==4){if(S.tag===22&&S.memoizedState!==null)T=S.child,T!==null&&(T.return=S),Ic(l,S,!0,!0);else if(S.child!==null){S.child.return=S,S=S.child;continue}}if(S===r)break;for(;S.sibling===null;){if(S.return===null||S.return===r)return;S=S.return}S.sibling.return=S.return,S=S.sibling}}function Ih(l,r,f,m){var S=!1;if(bn)for(var T=r.child;T!==null;){if(T.tag===5){var N=T.stateNode;f&&m&&(N=Mf(N,T.type,T.memoizedProps)),M1(l,N)}else if(T.tag===6)N=T.stateNode,f&&m&&(N=z1(N,T.memoizedProps)),M1(l,N);else if(T.tag!==4){if(T.tag===22&&T.memoizedState!==null)S=T.child,S!==null&&(S.return=T),Ih(l,T,!0,!0),S=!0;else if(T.child!==null){T.child.return=T,T=T.child;continue}}if(T===r)break;for(;T.sibling===null;){if(T.return===null||T.return===r)return S;T=T.return}T.sibling.return=T.return,T=T.sibling}return S}function Ph(l,r){if(bn&&Wh(l,r)){l=r.stateNode;var f=l.containerInfo,m=_1();Ih(m,r,!1,!1),l.pendingChildren=m,Dn(r),_f(f,m)}}function Pc(l,r,f,m){if(Ge)l.memoizedProps!==m&&Dn(r);else if(bn){var S=l.stateNode,T=l.memoizedProps;if((l=Wh(l,r))||T!==m){var N=E0.current;T=Ef(S,f,T,m,!l,null),T===S?r.stateNode=S:(xu(r),un(T,f,m,N)&&Dn(r),r.stateNode=T,l&&Ic(T,r,!1,!1))}else r.stateNode=S}}function Z0(l,r,f,m,S){if((l.mode&32)!==0&&(f===null?Gu(r,m):Rs(r,f,m))){if(l.flags|=16777216,(S&335544128)===S||d1(r,m))if(Ha(l.stateNode,r,m))l.flags|=8192;else if(He())l.flags|=8192;else throw P0=Yl,hc}else l.flags&=-16777217}function gs(l,r){if(L1(r)){if(l.flags|=16777216,!k1(r))if(He())l.flags|=8192;else throw P0=Yl,hc}else l.flags&=-16777217}function Tu(l,r){r!==null&&(l.flags|=4),l.flags&16384&&(r=l.tag!==22?q():536870912,l.lanes|=r,Ys|=r)}function ps(l,r){if(!Oe)switch(l.tailMode){case"hidden":r=l.tail;for(var f=null;r!==null;)r.alternate!==null&&(f=r),r=r.sibling;f===null?l.tail=null:f.sibling=null;break;case"collapsed":f=l.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?r||l.tail===null?l.tail=null:l.tail.sibling=null:m.sibling=null}}function ca(l){var r=l.alternate!==null&&l.alternate.child===l.child,f=0,m=0;if(r)for(var S=l.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags&65011712,m|=S.flags&65011712,S.return=l,S=S.sibling;else for(S=l.child;S!==null;)f|=S.lanes|S.childLanes,m|=S.subtreeFlags,m|=S.flags,S.return=l,S=S.sibling;return l.subtreeFlags|=m,l.childLanes=f,r}function $h(l,r,f){var m=r.pendingProps;switch(dt(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ca(r),null;case 1:return ca(r),null;case 3:return f=r.stateNode,m=null,l!==null&&(m=l.memoizedState.cache),r.memoizedState.cache!==m&&(r.flags|=2048),ia(wa),Bt(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(l===null||l.child===null)&&(ae(r)?Dn(r):l===null||l.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Xe())),Ph(l,r),ca(r),null;case 26:if(qn){var S=r.type,T=r.memoizedState;return l===null?(Dn(r),T!==null?(ca(r),gs(r,T)):(ca(r),Z0(r,S,null,m,f))):T?T!==l.memoizedState?(Dn(r),ca(r),gs(r,T)):(ca(r),r.flags&=-16777217):(T=l.memoizedProps,Ge?T!==m&&Dn(r):Pc(l,r,S,m),ca(r),Z0(r,S,T,m,f)),null}case 27:if(h0){if(Wt(r),f=B0.current,S=r.type,l!==null&&r.stateNode!=null)Ge?l.memoizedProps!==m&&Dn(r):Pc(l,r,S,m);else{if(!m){if(r.stateNode===null)throw Error(o(166));return ca(r),null}l=E0.current,ae(r)?Ae(r,l):(l=tc(S,m,f,l,!0),r.stateNode=l,Dn(r))}return ca(r),null}case 5:if(Wt(r),S=r.type,l!==null&&r.stateNode!=null)Pc(l,r,S,m);else{if(!m){if(r.stateNode===null)throw Error(o(166));return ca(r),null}if(T=E0.current,ae(r))Ae(r,T),Yf(r.stateNode,S,m,T)&&(r.flags|=64);else{var N=h1(S,m,B0.current,T,r);xu(r),Ic(N,r,!1,!1),r.stateNode=N,un(N,S,m,T)&&Dn(r)}}return ca(r),Z0(r,r.type,l===null?null:l.memoizedProps,r.pendingProps,f),null;case 6:if(l&&r.stateNode!=null)f=l.memoizedProps,Ge?f!==m&&Dn(r):bn&&(f!==m?(l=B0.current,f=E0.current,xu(r),r.stateNode=di(m,l,f,r)):r.stateNode=l.stateNode);else{if(typeof m!="string"&&r.stateNode===null)throw Error(o(166));if(l=B0.current,f=E0.current,ae(r)){if(!za)throw Error(o(176));if(l=r.stateNode,f=r.memoizedProps,m=null,S=f0,S!==null)switch(S.tag){case 27:case 5:m=S.memoizedProps}g4(l,f,r,m)||Zt(r,!0)}else xu(r),r.stateNode=di(m,l,f,r)}return ca(r),null;case 31:if(f=r.memoizedState,l===null||l.memoizedState!==null){if(m=ae(r),f!==null){if(l===null){if(!m)throw Error(o(318));if(!za)throw Error(o(556));if(l=r.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(557));N1(l,r)}else pe(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ca(r),l=!1}else f=Xe(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=f),l=!0;if(!l)return r.flags&256?(de(r),r):(de(r),null);if((r.flags&128)!==0)throw Error(o(558))}return ca(r),null;case 13:if(m=r.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(S=ae(r),m!==null&&m.dehydrated!==null){if(l===null){if(!S)throw Error(o(318));if(!za)throw Error(o(344));if(S=r.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(o(317));Uf(S,r)}else pe(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ca(r),S=!1}else S=Xe(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=S),S=!0;if(!S)return r.flags&256?(de(r),r):(de(r),null)}return de(r),(r.flags&128)!==0?(r.lanes=f,r):(f=m!==null,l=l!==null&&l.memoizedState!==null,f&&(m=r.child,S=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(S=m.alternate.memoizedState.cachePool.pool),T=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(T=m.memoizedState.cachePool.pool),T!==S&&(m.flags|=2048)),f!==l&&f&&(r.child.flags|=8192),Tu(r,r.updateQueue),ca(r),null);case 4:return Bt(),Ph(l,r),l===null&&ua(r.stateNode.containerInfo),ca(r),null;case 10:return ia(r.type),ca(r),null;case 19:if(D(ja),m=r.memoizedState,m===null)return ca(r),null;if(S=(r.flags&128)!==0,T=m.rendering,T===null)if(S)ps(m,!1);else{if(qa!==0||l!==null&&(l.flags&128)!==0)for(l=r.child;l!==null;){if(T=ta(l),T!==null){for(r.flags|=128,ps(m,!1),l=T.updateQueue,r.updateQueue=l,Tu(r,l),r.subtreeFlags=0,l=f,f=r.child;f!==null;)Uo(f,l),f=f.sibling;return C(ja,ja.current&1|2),Oe&&Xt(r,m.treeForkCount),r.child}l=l.sibling}m.tail!==null&&Y0()>ar&&(r.flags|=128,S=!0,ps(m,!1),r.lanes=4194304)}else{if(!S)if(l=ta(T),l!==null){if(r.flags|=128,S=!0,l=l.updateQueue,r.updateQueue=l,Tu(r,l),ps(m,!0),m.tail===null&&m.tailMode==="hidden"&&!T.alternate&&!Oe)return ca(r),null}else 2*Y0()-m.renderingStartTime>ar&&f!==536870912&&(r.flags|=128,S=!0,ps(m,!1),r.lanes=4194304);m.isBackwards?(T.sibling=r.child,r.child=T):(l=m.last,l!==null?l.sibling=T:r.child=T,m.last=T)}return m.tail!==null?(l=m.tail,m.rendering=l,m.tail=l.sibling,m.renderingStartTime=Y0(),l.sibling=null,f=ja.current,C(ja,S?f&1|2:f&1),Oe&&Xt(r,m.treeForkCount),l):(ca(r),null);case 22:case 23:return de(r),K(),m=r.memoizedState!==null,l!==null?l.memoizedState!==null!==m&&(r.flags|=8192):m&&(r.flags|=8192),m?(f&536870912)!==0&&(r.flags&128)===0&&(ca(r),r.subtreeFlags&6&&(r.flags|=8192)):ca(r),f=r.updateQueue,f!==null&&Tu(r,f.retryQueue),f=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),m=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(m=r.memoizedState.cachePool.pool),m!==f&&(r.flags|=2048),l!==null&&D(Ji),null;case 24:return f=null,l!==null&&(f=l.memoizedState.cache),r.memoizedState.cache!==f&&(r.flags|=2048),ia(wa),ca(r),null;case 25:return null;case 30:return null}throw Error(o(156,r.tag))}function $c(l,r){switch(dt(r),r.tag){case 1:return l=r.flags,l&65536?(r.flags=l&-65537|128,r):null;case 3:return ia(wa),Bt(),l=r.flags,(l&65536)!==0&&(l&128)===0?(r.flags=l&-65537|128,r):null;case 26:case 27:case 5:return Wt(r),null;case 31:if(r.memoizedState!==null){if(de(r),r.alternate===null)throw Error(o(340));pe()}return l=r.flags,l&65536?(r.flags=l&-65537|128,r):null;case 13:if(de(r),l=r.memoizedState,l!==null&&l.dehydrated!==null){if(r.alternate===null)throw Error(o(340));pe()}return l=r.flags,l&65536?(r.flags=l&-65537|128,r):null;case 19:return D(ja),null;case 4:return Bt(),null;case 10:return ia(r.type),null;case 22:case 23:return de(r),K(),l!==null&&D(Ji),l=r.flags,l&65536?(r.flags=l&-65537|128,r):null;case 24:return ia(wa),null;case 25:return null;default:return null}}function tf(l,r){switch(dt(r),r.tag){case 3:ia(wa),Bt();break;case 26:case 27:case 5:Wt(r);break;case 4:Bt();break;case 31:r.memoizedState!==null&&de(r);break;case 13:de(r);break;case 19:D(ja);break;case 10:ia(r.type);break;case 22:case 23:de(r),K(),l!==null&&D(Ji);break;case 24:ia(wa)}}function Al(l,r){try{var f=r.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var S=m.next;f=S;do{if((f.tag&l)===l){m=void 0;var T=f.create,N=f.inst;m=T(),N.destroy=m}f=f.next}while(f!==S)}}catch(V){fe(r,r.return,V)}}function zl(l,r,f){try{var m=r.updateQueue,S=m!==null?m.lastEffect:null;if(S!==null){var T=S.next;m=T;do{if((m.tag&l)===l){var N=m.inst,V=N.destroy;if(V!==void 0){N.destroy=void 0,S=r;var ht=f,xt=V;try{xt()}catch(Ht){fe(S,ht,Ht)}}}m=m.next}while(m!==T)}}catch(Ht){fe(r,r.return,Ht)}}function vs(l){var r=l.updateQueue;if(r!==null){var f=l.stateNode;try{El(r,f)}catch(m){fe(l,l.return,m)}}}function Ao(l,r,f){f.props=vr(l.type,l.memoizedProps),f.state=l.memoizedState;try{f.componentWillUnmount()}catch(m){fe(l,r,m)}}function ys(l,r){try{var f=l.ref;if(f!==null){switch(l.tag){case 26:case 27:case 5:var m=ws(l.stateNode);break;case 30:m=l.stateNode;break;default:m=l.stateNode}typeof f=="function"?l.refCleanup=f(m):f.current=m}}catch(S){fe(l,r,S)}}function k0(l,r){var f=l.ref,m=l.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(S){fe(l,r,S)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(S){fe(l,r,S)}else f.current=null}function xr(l){var r=l.type,f=l.memoizedProps,m=l.stateNode;try{gf(m,r,f,l)}catch(S){fe(l,l.return,S)}}function Eu(l,r,f){try{pf(l.stateNode,l.type,f,r,l)}catch(m){fe(l,l.return,m)}}function t1(l){return l.tag===5||l.tag===3||(qn?l.tag===26:!1)||(h0?l.tag===27&&Rr(l.type):!1)||l.tag===4}function ii(l){t:for(;;){for(;l.sibling===null;){if(l.return===null||t1(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(h0&&l.tag===27&&Rr(l.type)||l.flags&2||l.child===null||l.tag===4)continue t;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function zo(l,r,f){var m=l.tag;if(m===5||m===6)l=l.stateNode,r?yf(f,l,r):S1(f,l);else if(m!==4&&(h0&&m===27&&Rr(l.type)&&(f=l.stateNode,r=null),l=l.child,l!==null))for(zo(l,r,f),l=l.sibling;l!==null;)zo(l,r,f),l=l.sibling}function _u(l,r,f){var m=l.tag;if(m===5||m===6)l=l.stateNode,r?vf(f,l,r):b1(f,l);else if(m!==4&&(h0&&m===27&&Rr(l.type)&&(f=l.stateNode),l=l.child,l!==null))for(_u(l,r,f),l=l.sibling;l!==null;)_u(l,r,f),l=l.sibling}function e1(l,r,f){l=l.containerInfo;try{A1(l,f)}catch(m){fe(r,r.return,m)}}function ef(l){var r=l.stateNode,f=l.memoizedProps;try{l0(l.type,f,r,l)}catch(m){fe(l,l.return,m)}}function h4(l,r){for(jo(l.containerInfo),Pa=r;Pa!==null;)if(l=Pa,r=l.child,(l.subtreeFlags&1028)!==0&&r!==null)r.return=l,Pa=r;else for(;Pa!==null;){l=Pa;var f=l.alternate;switch(r=l.flags,l.tag){case 0:if((r&4)!==0&&(r=l.updateQueue,r=r!==null?r.events:null,r!==null))for(var m=0;m<r.length;m++){var S=r[m];S.ref.impl=S.nextImpl}break;case 11:case 15:break;case 1:if((r&1024)!==0&&f!==null){r=void 0,m=l,S=f.memoizedProps,f=f.memoizedState;var T=m.stateNode;try{var N=vr(m.type,S);r=T.getSnapshotBeforeUpdate(N,f),T.__reactInternalSnapshotBeforeUpdate=r}catch(V){fe(m,m.return,V)}}break;case 3:(r&1024)!==0&&Ge&&E1(l.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(o(163))}if(r=l.sibling,r!==null){r.return=l.return,Pa=r;break}Pa=l.return}}function af(l,r,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:J0(l,f),m&4&&Al(5,f);break;case 1:if(J0(l,f),m&4)if(l=f.stateNode,r===null)try{l.componentDidMount()}catch(N){fe(f,f.return,N)}else{var S=vr(f.type,r.memoizedProps);r=r.memoizedState;try{l.componentDidUpdate(S,r,l.__reactInternalSnapshotBeforeUpdate)}catch(N){fe(f,f.return,N)}}m&64&&vs(f),m&512&&ys(f,f.return);break;case 3:if(J0(l,f),m&64&&(m=f.updateQueue,m!==null)){if(l=null,f.child!==null)switch(f.child.tag){case 27:case 5:l=ws(f.child.stateNode);break;case 1:l=f.child.stateNode}try{El(m,l)}catch(N){fe(f,f.return,N)}}break;case 27:h0&&r===null&&m&4&&ef(f);case 26:case 5:if(J0(l,f),r===null){if(m&4)xr(f);else if(m&64){l=f.type,r=f.memoizedProps,S=f.stateNode;try{Lf(S,l,r,f)}catch(N){fe(f,f.return,N)}}}m&512&&ys(f,f.return);break;case 12:J0(l,f);break;case 31:J0(l,f),m&4&&Rn(l,f);break;case 13:J0(l,f),m&4&&Au(l,f),m&64&&(m=f.memoizedState,m!==null&&(m=m.dehydrated,m!==null&&(f=f4.bind(null,f),Wo(m,f))));break;case 22:if(m=f.memoizedState!==null||Va,!m){r=r!==null&&r.memoizedState!==null||Qa,S=Va;var T=Qa;Va=m,(Qa=r)&&!T?Bn(l,f,(f.subtreeFlags&8772)!==0):J0(l,f),Va=S,Qa=T}break;case 30:break;default:J0(l,f)}}function a1(l){var r=l.alternate;r!==null&&(l.alternate=null,a1(r)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(r=l.stateNode,r!==null&&Vo(r)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function Nn(l,r,f){for(f=f.child;f!==null;)Mu(l,r,f),f=f.sibling}function Mu(l,r,f){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Hr,f)}catch{}switch(f.tag){case 26:if(qn){Qa||k0(f,r),Nn(l,r,f),f.memoizedState?Ki(f.memoizedState):f.stateNode&&q1(f.stateNode);break}case 27:if(h0){Qa||k0(f,r);var m=Ua,S=$a;Rr(f.type)&&(Ua=f.stateNode,$a=!1),Nn(l,r,f),T0(f.stateNode),Ua=m,$a=S;break}case 5:Qa||k0(f,r);case 6:if(Ge){if(m=Ua,S=$a,Ua=null,Nn(l,r,f),Ua=m,$a=S,Ua!==null)if($a)try{x1(Ua,f.stateNode)}catch(T){fe(f,r,T)}else try{bf(Ua,f.stateNode)}catch(T){fe(f,r,T)}}else Nn(l,r,f);break;case 18:Ge&&Ua!==null&&($a?Io(Ua,f.stateNode):O1(Ua,f.stateNode));break;case 4:Ge?(m=Ua,S=$a,Ua=f.stateNode.containerInfo,$a=!0,Nn(l,r,f),Ua=m,$a=S):(bn&&e1(f.stateNode,f,_1()),Nn(l,r,f));break;case 0:case 11:case 14:case 15:zl(2,f,r),Qa||zl(4,f,r),Nn(l,r,f);break;case 1:Qa||(k0(f,r),m=f.stateNode,typeof m.componentWillUnmount=="function"&&Ao(f,r,m)),Nn(l,r,f);break;case 21:Nn(l,r,f);break;case 22:Qa=(m=Qa)||f.memoizedState!==null,Nn(l,r,f),Qa=m;break;default:Nn(l,r,f)}}function Rn(l,r){if(za&&r.memoizedState===null&&(l=r.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{p4(l)}catch(f){fe(r,r.return,f)}}}function Au(l,r){if(za&&r.memoizedState===null&&(l=r.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{v4(l)}catch(f){fe(r,r.return,f)}}function On(l){switch(l.tag){case 31:case 13:case 19:var r=l.stateNode;return r===null&&(r=l.stateNode=new J1),r;case 22:return l=l.stateNode,r=l._retryCache,r===null&&(r=l._retryCache=new J1),r;default:throw Error(o(435,l.tag))}}function ri(l,r){var f=On(l);r.forEach(function(m){if(!f.has(m)){f.add(m);var S=d4.bind(null,l,m);m.then(S,S)}})}function S0(l,r){var f=r.deletions;if(f!==null)for(var m=0;m<f.length;m++){var S=f[m],T=l,N=r;if(Ge){var V=N;t:for(;V!==null;){switch(V.tag){case 27:if(h0){if(Rr(V.type)){Ua=V.stateNode,$a=!1;break t}break}case 5:Ua=V.stateNode,$a=!1;break t;case 3:case 4:Ua=V.stateNode.containerInfo,$a=!0;break t}V=V.return}if(Ua===null)throw Error(o(160));Mu(T,N,S),Ua=null,$a=!1}else Mu(T,N,S);T=S.alternate,T!==null&&(T.return=null),S.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)zu(r,l),r=r.sibling}function zu(l,r){var f=l.alternate,m=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:S0(r,l),x0(l),m&4&&(zl(3,l,l.return),Al(3,l),zl(5,l,l.return));break;case 1:S0(r,l),x0(l),m&512&&(Qa||f===null||k0(f,f.return)),m&64&&Va&&(l=l.updateQueue,l!==null&&(m=l.callbacks,m!==null&&(f=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=f===null?m:f.concat(m))));break;case 26:if(qn){var S=aa;if(S0(r,l),x0(l),m&512&&(Qa||f===null||k0(f,f.return)),m&4){m=f!==null?f.memoizedState:null;var T=l.memoizedState;f===null?T===null?l.stateNode===null?l.stateNode=Qf(S,l.type,l.memoizedProps,l):U1(S,l.type,l.stateNode):l.stateNode=G1(S,T,l.memoizedProps):m!==T?(m===null?f.stateNode!==null&&q1(f.stateNode):Ki(m),T===null?U1(S,l.type,l.stateNode):G1(S,T,l.memoizedProps)):T===null&&l.stateNode!==null&&Eu(l,l.memoizedProps,f.memoizedProps)}break}case 27:if(h0){S0(r,l),x0(l),m&512&&(Qa||f===null||k0(f,f.return)),f!==null&&m&4&&Eu(l,l.memoizedProps,f.memoizedProps);break}case 5:if(S0(r,l),x0(l),m&512&&(Qa||f===null||k0(f,f.return)),Ge){if(l.flags&32){S=l.stateNode;try{T1(S)}catch(Mt){fe(l,l.return,Mt)}}m&4&&l.stateNode!=null&&(S=l.memoizedProps,Eu(l,S,f!==null?f.memoizedProps:S)),m&1024&&(Gs=!0)}else bn&&l.alternate!==null&&(l.alternate.stateNode=l.stateNode);break;case 6:if(S0(r,l),x0(l),m&4&&Ge){if(l.stateNode===null)throw Error(o(162));m=l.memoizedProps,f=f!==null?f.memoizedProps:m,S=l.stateNode;try{mf(S,f,m)}catch(Mt){fe(l,l.return,Mt)}}break;case 3:if(qn?(Kf(),S=aa,aa=Lu(r.containerInfo),S0(r,l),aa=S):S0(r,l),x0(l),m&4){if(Ge&&za&&f!==null&&f.memoizedState.isDehydrated)try{kf(r.containerInfo)}catch(Mt){fe(l,l.return,Mt)}if(bn){m=r.containerInfo,f=r.pendingChildren;try{A1(m,f)}catch(Mt){fe(l,l.return,Mt)}}}Gs&&(Gs=!1,Co(l));break;case 4:qn?(f=aa,aa=Lu(l.stateNode.containerInfo),S0(r,l),x0(l),aa=f):(S0(r,l),x0(l)),m&4&&bn&&e1(l.stateNode,l,l.stateNode.pendingChildren);break;case 12:S0(r,l),x0(l);break;case 31:S0(r,l),x0(l),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,ri(l,m)));break;case 13:S0(r,l),x0(l),l.child.flags&8192&&l.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(Fu=Y0()),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,ri(l,m)));break;case 22:S=l.memoizedState!==null;var N=f!==null&&f.memoizedState!==null,V=Va,ht=Qa;if(Va=V||S,Qa=ht||N,S0(r,l),Qa=ht,Va=V,x0(l),m&8192&&(r=l.stateNode,r._visibility=S?r._visibility&-2:r._visibility|1,S&&(f===null||N||Va||Qa||Oi(l)),Ge)){t:if(f=null,Ge)for(r=l;;){if(r.tag===5||qn&&r.tag===26){if(f===null){N=f=r;try{T=N.stateNode,S?m4(T):xf(N.stateNode,N.memoizedProps)}catch(Mt){fe(N,N.return,Mt)}}}else if(r.tag===6){if(f===null){N=r;try{var xt=N.stateNode;S?Sf(xt):Tf(xt,N.memoizedProps)}catch(Mt){fe(N,N.return,Mt)}}}else if(r.tag===18){if(f===null){N=r;try{var Ht=N.stateNode;S?Xf(Ht):jf(N.stateNode)}catch(Mt){fe(N,N.return,Mt)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===l)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===l)break t;for(;r.sibling===null;){if(r.return===null||r.return===l)break t;f===r&&(f=null),r=r.return}f===r&&(f=null),r.sibling.return=r.return,r=r.sibling}}m&4&&(m=l.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,ri(l,f))));break;case 19:S0(r,l),x0(l),m&4&&(m=l.updateQueue,m!==null&&(l.updateQueue=null,ri(l,m)));break;case 30:break;case 21:break;default:S0(r,l),x0(l)}}function x0(l){var r=l.flags;if(r&2){try{for(var f,m=l.return;m!==null;){if(t1(m)){f=m;break}m=m.return}if(Ge){if(f==null)throw Error(o(160));switch(f.tag){case 27:if(h0){var S=f.stateNode,T=ii(l);_u(l,T,S);break}case 5:var N=f.stateNode;f.flags&32&&(T1(N),f.flags&=-33);var V=ii(l);_u(l,V,N);break;case 3:case 4:var ht=f.stateNode.containerInfo,xt=ii(l);zo(l,xt,ht);break;default:throw Error(o(161))}}}catch(Ht){fe(l,l.return,Ht)}l.flags&=-3}r&4096&&(l.flags&=-4097)}function Co(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var r=l;Co(r),r.tag===5&&r.flags&1024&&g1(r.stateNode),l=l.sibling}}function J0(l,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)af(l,r.alternate,r),r=r.sibling}function Oi(l){for(l=l.child;l!==null;){var r=l;switch(r.tag){case 0:case 11:case 14:case 15:zl(4,r,r.return),Oi(r);break;case 1:k0(r,r.return);var f=r.stateNode;typeof f.componentWillUnmount=="function"&&Ao(r,r.return,f),Oi(r);break;case 27:h0&&T0(r.stateNode);case 26:case 5:k0(r,r.return),Oi(r);break;case 22:r.memoizedState===null&&Oi(r);break;case 30:Oi(r);break;default:Oi(r)}l=l.sibling}}function Bn(l,r,f){for(f=f&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var m=r.alternate,S=l,T=r,N=T.flags;switch(T.tag){case 0:case 11:case 15:Bn(S,T,f),Al(4,T);break;case 1:if(Bn(S,T,f),m=T,S=m.stateNode,typeof S.componentDidMount=="function")try{S.componentDidMount()}catch(xt){fe(m,m.return,xt)}if(m=T,S=m.updateQueue,S!==null){var V=m.stateNode;try{var ht=S.shared.hiddenCallbacks;if(ht!==null)for(S.shared.hiddenCallbacks=null,S=0;S<ht.length;S++)Tl(ht[S],V)}catch(xt){fe(m,m.return,xt)}}f&&N&64&&vs(T),ys(T,T.return);break;case 27:h0&&ef(T);case 26:case 5:Bn(S,T,f),f&&m===null&&N&4&&xr(T),ys(T,T.return);break;case 12:Bn(S,T,f);break;case 31:Bn(S,T,f),f&&N&4&&Rn(S,T);break;case 13:Bn(S,T,f),f&&N&4&&Au(S,T);break;case 22:T.memoizedState===null&&Bn(S,T,f),ys(T,T.return);break;case 30:break;default:Bn(S,T,f)}r=r.sibling}}function Bi(l,r){var f=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==f&&(l!=null&&l.refCount++,f!=null&&xa(f))}function n1(l,r){l=null,r.alternate!==null&&(l=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==l&&(r.refCount++,l!=null&&xa(l))}function Oa(l,r,f,m){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)wo(l,r,f,m),r=r.sibling}function wo(l,r,f,m){var S=r.flags;switch(r.tag){case 0:case 11:case 15:Oa(l,r,f,m),S&2048&&Al(9,r);break;case 1:Oa(l,r,f,m);break;case 3:Oa(l,r,f,m),S&2048&&(l=null,r.alternate!==null&&(l=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==l&&(r.refCount++,l!=null&&xa(l)));break;case 12:if(S&2048){Oa(l,r,f,m),l=r.stateNode;try{var T=r.memoizedProps,N=T.id,V=T.onPostCommit;typeof V=="function"&&V(N,r.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(ht){fe(r,r.return,ht)}}else Oa(l,r,f,m);break;case 31:Oa(l,r,f,m);break;case 13:Oa(l,r,f,m);break;case 23:break;case 22:T=r.stateNode,N=r.alternate,r.memoizedState!==null?T._visibility&2?Oa(l,r,f,m):bs(l,r):T._visibility&2?Oa(l,r,f,m):(T._visibility|=2,ln(l,r,f,m,(r.subtreeFlags&10256)!==0||!1)),S&2048&&Bi(N,r);break;case 24:Oa(l,r,f,m),S&2048&&n1(r.alternate,r);break;default:Oa(l,r,f,m)}}function ln(l,r,f,m,S){for(S=S&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var T=l,N=r,V=f,ht=m,xt=N.flags;switch(N.tag){case 0:case 11:case 15:ln(T,N,V,ht,S),Al(8,N);break;case 23:break;case 22:var Ht=N.stateNode;N.memoizedState!==null?Ht._visibility&2?ln(T,N,V,ht,S):bs(T,N):(Ht._visibility|=2,ln(T,N,V,ht,S)),S&&xt&2048&&Bi(N.alternate,N);break;case 24:ln(T,N,V,ht,S),S&&xt&2048&&n1(N.alternate,N);break;default:ln(T,N,V,ht,S)}r=r.sibling}}function bs(l,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var f=l,m=r,S=m.flags;switch(m.tag){case 22:bs(f,m),S&2048&&Bi(m.alternate,m);break;case 24:bs(f,m),S&2048&&n1(m.alternate,m);break;default:bs(f,m)}r=r.sibling}}function Cl(l,r,f){if(l.subtreeFlags&En)for(l=l.child;l!==null;)Hi(l,r,f),l=l.sibling}function Hi(l,r,f){switch(l.tag){case 26:if(Cl(l,r,f),l.flags&En)if(l.memoizedState!==null)Zf(f,aa,l.memoizedState,l.memoizedProps);else{var m=l.stateNode,S=l.type;l=l.memoizedProps,((r&335544128)===r||d1(S,l))&&Qo(f,m,S,l)}break;case 5:Cl(l,r,f),l.flags&En&&(m=l.stateNode,S=l.type,l=l.memoizedProps,((r&335544128)===r||d1(S,l))&&Qo(f,m,S,l));break;case 3:case 4:qn?(m=aa,aa=Lu(l.stateNode.containerInfo),Cl(l,r,f),aa=m):Cl(l,r,f);break;case 22:l.memoizedState===null&&(m=l.alternate,m!==null&&m.memoizedState!==null?(m=En,En=16777216,Cl(l,r,f),En=m):Cl(l,r,f));break;default:Cl(l,r,f)}}function Do(l){var r=l.alternate;if(r!==null&&(l=r.child,l!==null)){r.child=null;do r=l.sibling,l.sibling=null,l=r;while(l!==null)}}function Ss(l){var r=l.deletions;if((l.flags&16)!==0){if(r!==null)for(var f=0;f<r.length;f++){var m=r[f];Pa=m,pn(m,l)}Do(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)No(l),l=l.sibling}function No(l){switch(l.tag){case 0:case 11:case 15:Ss(l),l.flags&2048&&zl(9,l,l.return);break;case 3:Ss(l);break;case 12:Ss(l);break;case 22:var r=l.stateNode;l.memoizedState!==null&&r._visibility&2&&(l.return===null||l.return.tag!==13)?(r._visibility&=-3,Cu(l)):Ss(l);break;default:Ss(l)}}function Cu(l){var r=l.deletions;if((l.flags&16)!==0){if(r!==null)for(var f=0;f<r.length;f++){var m=r[f];Pa=m,pn(m,l)}Do(l)}for(l=l.child;l!==null;){switch(r=l,r.tag){case 0:case 11:case 15:zl(8,r,r.return),Cu(r);break;case 22:f=r.stateNode,f._visibility&2&&(f._visibility&=-3,Cu(r));break;default:Cu(r)}l=l.sibling}}function pn(l,r){for(;Pa!==null;){var f=Pa;switch(f.tag){case 0:case 11:case 15:zl(8,f,r);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var m=f.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:xa(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,Pa=m;else t:for(f=l;Pa!==null;){m=Pa;var S=m.sibling,T=m.return;if(a1(m),m===f){Pa=null;break t}if(S!==null){S.return=T,Pa=S;break t}Pa=T}}}function Gi(l){var r=be(l);if(r!=null){if(typeof r.memoizedProps["data-testname"]!="string")throw Error(o(364));return r}if(l=Wa(l),l===null)throw Error(o(362));return l.stateNode.current}function Ui(l,r){var f=l.tag;switch(r.$$typeof){case Kn:if(l.type===r.value)return!0;break;case qs:t:{for(r=r.value,l=[l,0],f=0;f<l.length;){var m=l[f++],S=m.tag,T=l[f++],N=r[T];if(S!==5&&S!==26&&S!==27||!Vi(m)){for(;N!=null&&Ui(m,N);)T++,N=r[T];if(T===r.length){r=!0;break t}else for(m=m.child;m!==null;)l.push(m,T),m=m.sibling}}r=!1}return r;case Ls:if((f===5||f===26||f===27)&&y1(l.stateNode,r.value))return!0;break;case Pi:if((f===5||f===6||f===26||f===27)&&(l=Uu(l),l!==null&&0<=l.indexOf(r.value)))return!0;break;case Zu:if((f===5||f===26||f===27)&&(l=l.memoizedProps["data-testname"],typeof l=="string"&&l.toLowerCase()===r.value.toLowerCase()))return!0;break;default:throw Error(o(365))}return!1}function xs(l){switch(l.$$typeof){case Kn:return"<"+(_(l.value)||"Unknown")+">";case qs:return":has("+(xs(l)||"")+")";case Ls:return'[role="'+l.value+'"]';case Pi:return'"'+l.value+'"';case Zu:return'[data-testname="'+l.value+'"]';default:throw Error(o(365))}}function Ts(l,r){var f=[];l=[l,0];for(var m=0;m<l.length;){var S=l[m++],T=S.tag,N=l[m++],V=r[N];if(T!==5&&T!==26&&T!==27||!Vi(S)){for(;V!=null&&Ui(S,V);)N++,V=r[N];if(N===r.length)f.push(S);else for(S=S.child;S!==null;)l.push(S,N),S=S.sibling}}return f}function rn(l,r){if(!c0)throw Error(o(363));l=Gi(l),l=Ts(l,r),r=[],l=Array.from(l);for(var f=0;f<l.length;){var m=l[f++],S=m.tag;if(S===5||S===26||S===27)Vi(m)||r.push(m.stateNode);else for(m=m.child;m!==null;)l.push(m),m=m.sibling}return r}function Aa(){return(we&2)!==0&&Be!==0?Be&-Be:le.T!==null?nn():Ns()}function si(){if(en===0)if((Be&536870912)===0||Oe){var l=Br;Br<<=1,(Br&3932160)===0&&(Br=262144),en=l}else en=536870912;return l=fn.current,l!==null&&(l.flags|=32),en}function Ba(l,r,f){(l===Me&&(na===2||na===9)||l.cancelPendingCommit!==null)&&(Xa(l,0),Dl(l,Be,en,!1)),ut(l,f),((we&2)===0||l!==Me)&&(l===Me&&((we&2)===0&&(er|=f),qa===4&&Dl(l,Be,en,!1)),Za(l))}function il(l,r,f){if((we&6)!==0)throw Error(o(327));var m=!f&&(r&127)===0&&(r&l.expiredLanes)===0||G(l,r),S=m?rf(l,r):Nl(l,r,!0),T=m;do{if(S===0){$i&&!m&&Dl(l,r,0,!1);break}else{if(f=l.current.alternate,T&&!nf(f)){S=Nl(l,r,!1),T=!1;continue}if(S===2){if(T=r,l.errorRecoveryDisabledLanes&T)var N=0;else N=l.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){r=N;t:{var V=l;S=Ju;var ht=za&&V.current.memoizedState.isDehydrated;if(ht&&(Xa(V,N).flags|=256),N=Nl(V,N,!1),N!==2){if(tr&&!ht){V.errorRecoveryDisabledLanes|=T,er|=T,S=4;break t}T=dn,dn=S,T!==null&&(dn===null?dn=T:dn.push.apply(dn,T))}S=N}if(T=!1,S!==2)continue}}if(S===1){Xa(l,0),Dl(l,r,0,!0);break}t:{switch(m=l,T=S,T){case 0:case 1:throw Error(o(345));case 4:if((r&4194048)!==r)break;case 6:Dl(m,r,en,!ol);break t;case 2:dn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((r&62914560)===r&&(S=Fu+300-Y0(),10<S)){if(Dl(m,r,en,!ol),Y(m,0,!0)!==0)break t;Ql=r,m.timeoutHandle=f1(wl.bind(null,m,f,dn,Wu,dc,r,en,er,Ys,ol,T,"Throttled",-0,0),S);break t}wl(m,f,dn,Wu,dc,r,en,er,Ys,ol,T,null,-0,0)}}break}while(!0);Za(l)}function wl(l,r,f,m,S,T,N,V,ht,xt,Ht,Mt,Qt,ye){if(l.timeoutHandle=on,Mt=r.subtreeFlags,Mt&8192||(Mt&16785408)===16785408){Mt=m1(),Hi(r,T,Mt);var M0=(T&62914560)===T?Fu-Y0():(T&4194048)===T?Yr-Y0():0;if(M0=df(Mt,M0),M0!==null){Ql=T,l.cancelPendingCommit=M0(Ol.bind(null,l,r,T,f,m,S,N,V,ht,Ht,Mt,null,Qt,ye)),Dl(l,T,N,!xt);return}}Ol(l,r,T,f,m,S,N,V,ht)}function nf(l){for(var r=l;;){var f=r.tag;if((f===0||f===11||f===15)&&r.flags&16384&&(f=r.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var S=f[m],T=S.getSnapshot;S=S.value;try{if(!Ia(T(),S))return!1}catch{return!1}}if(f=r.child,r.subtreeFlags&16384&&f!==null)f.return=r,r=f;else{if(r===l)break;for(;r.sibling===null;){if(r.return===null||r.return===l)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Dl(l,r,f,m){r&=~ks,r&=~er,l.suspendedLanes|=r,l.pingedLanes&=~r,m&&(l.warmLanes|=r),m=l.expirationTimes;for(var S=r;0<S;){var T=31-cn(S),N=1<<T;m[T]=-1,S&=~N}f!==0&&ot(l,f,r)}function Ro(){return(we&6)===0?(u0(0),!1):!0}function Oo(){if(De!==null){if(na===0)var l=De.return;else l=De,sl=fa=null,wn(l),Fi=null,Gr=0,l=De;for(;l!==null;)tf(l.alternate,l),l=l.return;De=null}}function Xa(l,r){var f=l.timeoutHandle;f!==on&&(l.timeoutHandle=on,ff(f)),f=l.cancelPendingCommit,f!==null&&(l.cancelPendingCommit=null,f()),Ql=0,Oo(),Me=l,De=f=yn(l.current,null),Be=r,na=0,i0=null,ol=!1,$i=G(l,r),tr=!1,Ys=en=ks=er=bi=qa=0,dn=Ju=null,dc=!1,(r&8)!==0&&(r|=r&32);var m=l.entangledLanes;if(m!==0)for(l=l.entanglements,m&=r;0<m;){var S=31-cn(m),T=1<<S;r|=l[S],m&=~T}return Vl=r,$n(),f}function ha(l,r){Se=null,le.H=Tn,r===m0||r===Vn?(r=yl(),na=3):r===hc?(r=yl(),na=4):na=r===tn?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,i0=r,De===null&&(qa=1,To(l,Ot(r,l.current)))}function He(){var l=fn.current;return l===null?!0:(Be&4194048)===Be?$0===null:(Be&62914560)===Be||(Be&536870912)!==0?l===$0:!1}function ui(){var l=le.H;return le.H=Tn,l===null?Tn:l}function vn(){var l=le.A;return le.A=Us,l}function Es(){qa=4,ol||(Be&4194048)!==Be&&fn.current!==null||($i=!0),(bi&134217727)===0&&(er&134217727)===0||Me===null||Dl(Me,Be,en,!1)}function Nl(l,r,f){var m=we;we|=2;var S=ui(),T=vn();(Me!==l||Be!==r)&&(Wu=null,Xa(l,r)),r=!1;var N=qa;t:do try{if(na!==0&&De!==null){var V=De,ht=i0;switch(na){case 8:Oo(),N=6;break t;case 3:case 2:case 9:case 6:fn.current===null&&(r=!0);var xt=na;if(na=0,i0=null,Rl(l,V,ht,xt),f&&$i){N=0;break t}break;default:xt=na,na=0,i0=null,Rl(l,V,ht,xt)}}lf(),N=qa;break}catch(Ht){ha(l,Ht)}while(!0);return r&&l.shellSuspendCounter++,sl=fa=null,we=m,le.H=S,le.A=T,De===null&&(Me=null,Be=0,$n()),N}function lf(){for(;De!==null;)qi(De)}function rf(l,r){var f=we;we|=2;var m=ui(),S=vn();Me!==l||Be!==r?(Wu=null,ar=Y0()+500,Xa(l,r)):$i=G(l,r);t:do try{if(na!==0&&De!==null){r=De;var T=i0;e:switch(na){case 1:na=0,i0=null,Rl(l,r,T,1);break;case 2:case 9:if(Ai(T)){na=0,i0=null,Bo(r);break}r=function(){na!==2&&na!==9||Me!==l||(na=7),Za(l)},T.then(r,r);break t;case 3:na=7;break t;case 4:na=5;break t;case 7:Ai(T)?(na=0,i0=null,Bo(r)):(na=0,i0=null,Rl(l,r,T,7));break;case 5:var N=null;switch(De.tag){case 26:N=De.memoizedState;case 5:case 27:var V=De,ht=V.type,xt=V.pendingProps;if(N?k1(N):Ha(V.stateNode,ht,xt)){na=0,i0=null;var Ht=V.sibling;if(Ht!==null)De=Ht;else{var Mt=V.return;Mt!==null?(De=Mt,Ms(Mt)):De=null}break e}}na=0,i0=null,Rl(l,r,T,5);break;case 6:na=0,i0=null,Rl(l,r,T,6);break;case 8:Oo(),qa=6;break t;default:throw Error(o(462))}}_s();break}catch(Qt){ha(l,Qt)}while(!0);return sl=fa=null,le.H=m,le.A=S,we=f,De!==null?0:(Me=null,Be=0,$n(),qa)}function _s(){for(;De!==null&&!Ff();)qi(De)}function qi(l){var r=Wc(l.alternate,l,Vl);l.memoizedProps=l.pendingProps,r===null?Ms(l):De=r}function Bo(l){var r=l,f=r.alternate;switch(r.tag){case 15:case 0:r=Vc(f,r,r.pendingProps,r.type,void 0,Be);break;case 11:r=Vc(f,r,r.pendingProps,r.type.render,r.ref,Be);break;case 5:wn(r);default:tf(f,r),r=De=Uo(r,Vl),r=Wc(f,r,Vl)}l.memoizedProps=l.pendingProps,r===null?Ms(l):De=r}function Rl(l,r,f,m){sl=fa=null,wn(r),Fi=null,Gr=0;var S=r.return;try{if(c4(l,S,r,f,Be)){qa=1,To(l,Ot(f,l.current)),De=null;return}}catch(T){if(S!==null)throw De=S,T;qa=1,To(l,Ot(f,l.current)),De=null;return}r.flags&32768?(Oe||m===1?l=!0:$i||(Be&536870912)!==0?l=!1:(ol=l=!0,(m===2||m===9||m===3||m===6)&&(m=fn.current,m!==null&&m.tag===13&&(m.flags|=16384))),Li(r,l)):Ms(r)}function Ms(l){var r=l;do{if((r.flags&32768)!==0){Li(r,ol);return}l=r.return;var f=$h(r.alternate,r,Vl);if(f!==null){De=f;return}if(r=r.sibling,r!==null){De=r;return}De=r=l}while(r!==null);qa===0&&(qa=5)}function Li(l,r){do{var f=$c(l.alternate,l);if(f!==null){f.flags&=32767,De=f;return}if(f=l.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!r&&(l=l.sibling,l!==null)){De=l;return}De=l=f}while(l!==null);qa=6,De=null}function Ol(l,r,f,m,S,T,N,V,ht){l.cancelPendingCommit=null;do Hl();while(r0!==0);if((we&6)!==0)throw Error(o(327));if(r!==null){if(r===l.current)throw Error(o(177));if(T=r.lanes|r.childLanes,T|=Ur,rt(l,f,T,N,V,ht),l===Me&&(De=Me=null,Be=0),Xr=r,xi=l,Ql=f,Xs=T,mc=S,F1=m,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,n0(Yu,function(){return wu(),null})):(l.callbackNode=null,l.callbackPriority=0),m=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||m){m=le.T,le.T=null,S=Un(),Re(2),N=we,we|=4;try{h4(l,r,f)}finally{we=N,Re(S),le.T=m}}r0=1,oi(),Bl(),Ho()}}function oi(){if(r0===1){r0=0;var l=xi,r=Xr,f=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||f){f=le.T,le.T=null;var m=Un();Re(2);var S=we;we|=4;try{zu(r,l),hf(l.containerInfo)}finally{we=S,Re(m),le.T=f}}l.current=r,r0=2}}function Bl(){if(r0===2){r0=0;var l=xi,r=Xr,f=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||f){f=le.T,le.T=null;var m=Un();Re(2);var S=we;we|=4;try{af(l,r.alternate,r)}finally{we=S,Re(m),le.T=f}}r0=3}}function Ho(){if(r0===4||r0===3){r0=0,X1();var l=xi,r=Xr,f=Ql,m=F1;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?r0=5:(r0=0,Xr=xi=null,Go(l,l.pendingLanes));var S=l.pendingLanes;if(S===0&&(Si=null),St(f),r=r.stateNode,hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(Hr,r,void 0,(r.current.flags&128)===128)}catch{}if(m!==null){r=le.T,S=Un(),Re(2),le.T=null;try{for(var T=l.onRecoverableError,N=0;N<m.length;N++){var V=m[N];T(V.value,{componentStack:V.stack})}}finally{le.T=r,Re(S)}}(Ql&3)!==0&&Hl(),Za(l),S=l.pendingLanes,(f&261930)!==0&&(S&42)!==0?l===Iu?Qe++:(Qe=0,Iu=l):Qe=0,za&&qu(),u0(0)}}function Go(l,r){(l.pooledCacheLanes&=r)===0&&(r=l.pooledCache,r!=null&&(l.pooledCache=null,xa(r)))}function Hl(){return oi(),Bl(),Ho(),wu()}function wu(){if(r0!==5)return!1;var l=xi,r=Xs;Xs=0;var f=St(Ql),m=32>f?32:f;f=le.T;var S=Un();try{Re(m),le.T=null,m=mc,mc=null;var T=xi,N=Ql;if(r0=0,Xr=xi=null,Ql=0,(we&6)!==0)throw Error(o(331));var V=we;if(we|=4,No(T.current),wo(T,T.current,N,m),we=V,u0(0,!1),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(Hr,T)}catch{}return!0}finally{Re(S),le.T=f,Go(l,r)}}function ki(l,r,f){r=Ot(f,r),r=Xc(l.stateNode,r,2),l=Sl(l,r,2),l!==null&&(ut(l,2),Za(l))}function fe(l,r,f){if(l.tag===3)ki(l,l,f);else for(;r!==null;){if(r.tag===3){ki(r,l,f);break}else if(r.tag===1){var m=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Si===null||!Si.has(m))){l=Ot(f,l),f=Yh(2),m=Sl(r,f,2),m!==null&&(Xh(f,m,r,l),ut(m,2),Za(m));break}}r=r.return}}function As(l,r,f){var m=l.pingCache;if(m===null){m=l.pingCache=new _n;var S=new Set;m.set(r,S)}else S=m.get(r),S===void 0&&(S=new Set,m.set(r,S));S.has(f)||(tr=!0,S.add(f),l=sf.bind(null,l,r,f),r.then(l,l))}function sf(l,r,f){var m=l.pingCache;m!==null&&m.delete(r),l.pingedLanes|=l.suspendedLanes&f,l.warmLanes&=~f,Me===l&&(Be&f)===f&&(qa===4||qa===3&&(Be&62914560)===Be&&300>Y0()-Fu?(we&2)===0&&Xa(l,0):ks|=f,Ys===Be&&(Ys=0)),Za(l)}function uf(l,r){r===0&&(r=q()),l=el(l,r),l!==null&&(ut(l,r),Za(l))}function f4(l){var r=l.memoizedState,f=0;r!==null&&(f=r.retryLane),uf(l,f)}function d4(l,r){var f=0;switch(l.tag){case 31:case 13:var m=l.stateNode,S=l.memoizedState;S!==null&&(f=S.retryLane);break;case 19:m=l.stateNode;break;case 22:m=l.stateNode._retryCache;break;default:throw Error(o(314))}m!==null&&m.delete(r),uf(l,f)}function n0(l,r){return ku(l,r)}function l1(l,r,f,m){this.tag=l,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tr(l){return l=l.prototype,!(!l||!l.isReactComponent)}function yn(l,r){var f=l.alternate;return f===null?(f=a(l.tag,r,l.key,l.mode),f.elementType=l.elementType,f.type=l.type,f.stateNode=l.stateNode,f.alternate=l,l.alternate=f):(f.pendingProps=r,f.type=l.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=l.flags&65011712,f.childLanes=l.childLanes,f.lanes=l.lanes,f.child=l.child,f.memoizedProps=l.memoizedProps,f.memoizedState=l.memoizedState,f.updateQueue=l.updateQueue,r=l.dependencies,f.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},f.sibling=l.sibling,f.index=l.index,f.ref=l.ref,f.refCleanup=l.refCleanup,f}function Uo(l,r){l.flags&=65011714;var f=l.alternate;return f===null?(l.childLanes=0,l.lanes=r,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=f.childLanes,l.lanes=f.lanes,l.child=f.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=f.memoizedProps,l.memoizedState=f.memoizedState,l.updateQueue=f.updateQueue,l.type=f.type,r=f.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),l}function ci(l,r,f,m,S,T){var N=0;if(m=l,typeof l=="function")Tr(l)&&(N=1);else if(typeof l=="string")N=qn&&h0?Po(l,f,E0.current)?26:Y1(l)?27:5:qn?Po(l,f,E0.current)?26:5:h0&&Y1(l)?27:5;else t:switch(l){case Ou:return l=a(31,f,r,S),l.elementType=Ou,l.lanes=T,l;case Ar:return Hn(f.children,S,T,r);case zr:N=8,S|=24;break;case Cr:return l=a(12,f,r,S|2),l.elementType=Cr,l.lanes=T,l;case Yo:return l=a(13,f,r,S),l.elementType=Yo,l.lanes=T,l;case hi:return l=a(19,f,r,S),l.elementType=hi,l.lanes=T,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Gn:N=10;break t;case Ru:N=9;break t;case zs:N=11;break t;case Xo:N=14;break t;case F0:N=16,m=null;break t}N=29,f=Error(o(130,l===null?"null":typeof l,"")),m=null}return r=a(N,f,r,S),r.elementType=l,r.type=m,r.lanes=T,r}function Hn(l,r,f,m){return l=a(7,l,m,r),l.lanes=f,l}function i1(l,r,f){return l=a(6,l,null,r),l.lanes=f,l}function r1(l){var r=a(18,null,null,0);return r.stateNode=l,r}function s1(l,r,f){return r=a(4,l.children!==null?l.children:[],l.key,r),r.lanes=f,r.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},r}function of(l,r,f,m,S,T,N,V,ht){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=on,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=P(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=P(0),this.hiddenUpdates=P(null),this.identifierPrefix=m,this.onUncaughtError=S,this.onCaughtError=T,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ht,this.incompleteTransitions=new Map}function Yi(l,r,f,m,S,T,N,V,ht,xt,Ht,Mt){return l=new of(l,r,f,N,ht,xt,Ht,Mt,V),r=1,T===!0&&(r|=24),T=a(3,null,null,r),l.current=T,T.stateNode=l,r=L0(),r.refCount++,l.pooledCache=r,r.refCount++,T.memoizedState={element:m,isDehydrated:f,cache:r},o0(T),l}function qo(l){return l?(l=Ul,l):Ul}function Du(l){var r=l._reactInternals;if(r===void 0)throw typeof l.render=="function"?Error(o(188)):(l=Object.keys(l).join(","),Error(o(268,l)));return l=g(r),l=l!==null?p(l):null,l===null?null:ws(l.stateNode)}function u1(l,r,f,m,S,T){S=qo(S),m.context===null?m.context=S:m.pendingContext=S,m=Cn(r),m.payload={element:f},T=T===void 0?null:T,T!==null&&(m.callback=T),f=Sl(l,m,r),f!==null&&(Ba(f,l,r),dr(f,l,r))}function Er(l,r){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var f=l.retryLane;l.retryLane=f!==0&&f<r?f:r}}function Nu(l,r){Er(l,r),(l=l.alternate)&&Er(l,r)}var Ee={},Lo=F2(),sn=Kd(),ko=Object.assign,_r=Symbol.for("react.element"),Gl=Symbol.for("react.transitional.element"),Mr=Symbol.for("react.portal"),Ar=Symbol.for("react.fragment"),zr=Symbol.for("react.strict_mode"),Cr=Symbol.for("react.profiler"),Ru=Symbol.for("react.consumer"),Gn=Symbol.for("react.context"),zs=Symbol.for("react.forward_ref"),Yo=Symbol.for("react.suspense"),hi=Symbol.for("react.suspense_list"),Xo=Symbol.for("react.memo"),F0=Symbol.for("react.lazy"),Ou=Symbol.for("react.activity"),o1=Symbol.for("react.memo_cache_sentinel"),fi=Symbol.iterator,Xi=Symbol.for("react.client.reference"),ji=Array.isArray,le=Lo.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,c1=t.rendererVersion,Bu=t.rendererPackageName,Cs=t.extraDevToolsConfig,ws=t.getPublicInstance,cf=t.getRootHostContext,Ds=t.getChildHostContext,jo=t.prepareForCommit,hf=t.resetAfterCommit,h1=t.createInstance;t.cloneMutableInstance;var Hu=t.appendInitialChild,un=t.finalizeInitialChildren,W0=t.shouldSetTextContent,di=t.createTextInstance;t.cloneMutableTextInstance;var f1=t.scheduleTimeout,ff=t.cancelTimeout,on=t.noTimeout,Fa=t.isPrimaryRenderer;t.warnsIfNotActing;var Ge=t.supportsMutation,bn=t.supportsPersistence,za=t.supportsHydration,be=t.getInstanceFromNode;t.beforeActiveInstanceBlur;var ua=t.preparePortalMount;t.prepareScopeUpdate,t.getInstanceFromScope;var Re=t.setCurrentUpdatePriority,Un=t.getCurrentUpdatePriority,Ns=t.resolveUpdatePriority;t.trackSchedulerEvent,t.resolveEventType,t.resolveEventTimeStamp;var wr=t.shouldAttemptEagerTransition,Vo=t.detachDeletedInstance;t.requestPostPaintCallback;var Gu=t.maySuspendCommit,Rs=t.maySuspendCommitOnUpdate,d1=t.maySuspendCommitInSyncRender,Ha=t.preloadInstance,m1=t.startSuspendingCommit,Qo=t.suspendInstance;t.suspendOnActiveViewTransition;var df=t.waitForCommitToBeReady;t.getSuspendedCommitReason;var Dr=t.NotPendingTransition,Nr=t.HostTransitionContext,g1=t.resetFormInstance;t.bindToConsole;var p1=t.supportsMicrotasks,v1=t.scheduleMicrotask,c0=t.supportsTestSelectors,Wa=t.findFiberRoot,Ko=t.getBoundingRect,Uu=t.getTextContent,Vi=t.isHiddenSubtree,y1=t.matchAccessibilityRole,mi=t.setFocusIfFocusable,Zo=t.setupIntersectionObserver,b1=t.appendChild,S1=t.appendChildToContainer,mf=t.commitTextUpdate,gf=t.commitMount,pf=t.commitUpdate,vf=t.insertBefore,yf=t.insertInContainerBefore,bf=t.removeChild,x1=t.removeChildFromContainer,T1=t.resetTextContent,m4=t.hideInstance,Sf=t.hideTextInstance,xf=t.unhideInstance,Tf=t.unhideTextInstance;t.cancelViewTransitionName,t.cancelRootViewTransitionName,t.restoreRootViewTransitionName,t.cloneRootViewTransitionContainer,t.removeRootViewTransitionClone,t.measureClonedInstance,t.hasInstanceChanged,t.hasInstanceAffectedParent,t.startViewTransition,t.startGestureTransition,t.stopViewTransition,t.getCurrentGestureOffset,t.createViewTransitionInstance;var E1=t.clearContainer;t.createFragmentInstance,t.updateFragmentInstanceFiber,t.commitNewChildToFragmentInstance,t.deleteChildFromFragmentInstance;var Ef=t.cloneInstance,_1=t.createContainerChildSet,M1=t.appendChildToContainerChildSet,_f=t.finalizeContainerChildren,A1=t.replaceContainerChildren,Mf=t.cloneHiddenInstance,z1=t.cloneHiddenTextInstance,Qi=t.isSuspenseInstancePending,Jo=t.isSuspenseInstanceFallback,Fo=t.getSuspenseInstanceFallbackErrorDetails,Wo=t.registerSuspenseInstanceRetry,Af=t.canHydrateFormStateMarker,C1=t.isFormStateMarkerMatching,zf=t.getNextHydratableSibling,Cf=t.getNextHydratableSiblingAfterSingleton,wf=t.getFirstHydratableChild,Df=t.getFirstHydratableChildWithinContainer,Nf=t.getFirstHydratableChildWithinActivityInstance,Rf=t.getFirstHydratableChildWithinSuspenseInstance,w1=t.getFirstHydratableChildWithinSingleton,Of=t.canHydrateInstance,Bf=t.canHydrateTextInstance,D1=t.canHydrateActivityInstance,Hf=t.canHydrateSuspenseInstance,Gf=t.hydrateInstance,g4=t.hydrateTextInstance,N1=t.hydrateActivityInstance,Uf=t.hydrateSuspenseInstance,qf=t.getNextHydratableInstanceAfterActivityInstance,R1=t.getNextHydratableInstanceAfterSuspenseInstance,Lf=t.commitHydratedInstance,kf=t.commitHydratedContainer,p4=t.commitHydratedActivityInstance,v4=t.commitHydratedSuspenseInstance,Yf=t.finalizeHydratedChildren,qu=t.flushHydrationEvents;t.clearActivityBoundary;var O1=t.clearSuspenseBoundary;t.clearActivityBoundaryFromContainer;var Io=t.clearSuspenseBoundaryFromContainer,Xf=t.hideDehydratedBoundary,jf=t.unhideDehydratedBoundary,Os=t.shouldDeleteUnhydratedTailInstances;t.diffHydratedPropsForDevWarnings,t.diffHydratedTextForDevWarnings,t.describeHydratableInstanceForDevWarnings;var Vf=t.validateHydratableInstance,B1=t.validateHydratableTextInstance,qn=t.supportsResources,Po=t.isHostHoistableType,Lu=t.getHoistableRoot,H1=t.getResource,G1=t.acquireResource,Ki=t.releaseResource,Qf=t.hydrateHoistable,U1=t.mountHoistable,q1=t.unmountHoistable,$o=t.createHoistableInstance,Kf=t.prepareToCommitHoistables,L1=t.mayResourceSuspendCommit,k1=t.preloadResource,Zf=t.suspendResource,h0=t.supportsSingletons,tc=t.resolveSingletonInstance,l0=t.acquireSingletonInstance,T0=t.releaseSingletonInstance,Y1=t.isHostSingletonType,Rr=t.isSingletonScope,ec=[],Or=-1,Ul={},cn=Math.clz32?Math.clz32:H,ac=Math.log,Jf=Math.LN2,nc=256,Br=262144,Bs=4194304,ku=sn.unstable_scheduleCallback,lc=sn.unstable_cancelCallback,Ff=sn.unstable_shouldYield,X1=sn.unstable_requestPaint,Y0=sn.unstable_now,ic=sn.unstable_ImmediatePriority,Wf=sn.unstable_UserBlockingPriority,Yu=sn.unstable_NormalPriority,rc=sn.unstable_IdlePriority,j1=sn.log,If=sn.unstable_setDisableYieldValue,Hr=null,hn=null,Ia=typeof Object.is=="function"?Object.is:jt,sc=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},y4=Object.prototype.hasOwnProperty,uc,ql,Xu=!1,V1=new WeakMap,gi=[],Ll=0,oa=null,ju=0,Ln=[],Sn=0,kn=null,O0=1,rl="",E0=A(null),pi=A(null),B0=A(null),Vu=A(null),f0=null,Ca=null,Oe=!1,kl=null,I0=!1,oc=Error(o(519)),Yn=A(null),fa=null,sl=null,Pf=typeof AbortController<"u"?AbortController:function(){var l=[],r=this.signal={aborted:!1,addEventListener:function(f,m){l.push(m)}};this.abort=function(){r.aborted=!0,l.forEach(function(f){return f()})}},_0=sn.unstable_scheduleCallback,b4=sn.unstable_NormalPriority,wa={$$typeof:Gn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},Qu=null,ea=null,X0=!1,Xn=!1,cc=!1,Zi=0,Hs=null,Q1=0,vi=0,d0=null,jn=le.S;le.S=function(l,r){Yr=Y0(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&Nc(l,r),jn!==null&&jn(l,r)};var Ji=A(null),m0=Error(o(460)),hc=Error(o(474)),Vn=Error(o(542)),Yl={then:function(){}},P0=null,Fi=null,Gr=0,H0=fu(!0),K1=fu(!1),G0=[],Xl=0,Ur=0,xn=!1,fc=!1,qr=A(null),Wi=A(0),fn=A(null),$0=null,ja=A(0),yi=0,Se=null,$t=null,me=null,_e=!1,Te=!1,ke=!1,j0=0,Qn=0,ul=null,Z1=0,Tn={readContext:ga,use:wi,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useLayoutEffect:ve,useInsertionEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useSyncExternalStore:ve,useId:ve,useHostTransitionStatus:ve,useFormState:ve,useActionState:ve,useOptimistic:ve,useMemoCache:ve,useCacheRefresh:ve};Tn.useEffectEvent=ve;var Ga={readContext:ga,use:wi,useCallback:function(l,r){return Ma().memoizedState=[l,r===void 0?null:r],l},useContext:ga,useEffect:gu,useImperativeHandle:function(l,r,f){f=f!=null?f.concat([l]):null,pr(4194308,4,cs.bind(null,r,l),f)},useLayoutEffect:function(l,r){return pr(4194308,4,l,r)},useInsertionEffect:function(l,r){pr(4,2,l,r)},useMemo:function(l,r){var f=Ma();r=r===void 0?null:r;var m=l();if(ke){te(!0);try{l()}finally{te(!1)}}return f.memoizedState=[m,r],m},useReducer:function(l,r,f){var m=Ma();if(f!==void 0){var S=f(r);if(ke){te(!0);try{f(r)}finally{te(!1)}}}else S=r;return m.memoizedState=m.baseState=S,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:S},m.queue=l,l=l.dispatch=o4.bind(null,Se,l),[m.memoizedState,l]},useRef:function(l){var r=Ma();return l={current:l},r.memoizedState=l},useState:function(l){l=Bc(l);var r=l.queue,f=Uh.bind(null,Se,r);return r.dispatch=f,[l.memoizedState,f]},useDebugValue:vu,useDeferredValue:function(l,r){var f=Ma();return fs(f,l,r)},useTransition:function(){var l=Bc(!1);return l=Bh.bind(null,Se,l.queue,!0,!1),Ma().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,r,f){var m=Se,S=Ma();if(Oe){if(f===void 0)throw Error(o(407));f=f()}else{if(f=r(),Me===null)throw Error(o(349));(Be&127)!==0||Dh(m,r,f)}S.memoizedState=f;var T={value:f,getSnapshot:r};return S.queue=T,gu(Oc.bind(null,m,T,l),[l]),m.flags|=2048,gn(9,{destroy:void 0},Rc.bind(null,m,T,f,r),null),f},useId:function(){var l=Ma(),r=Me.identifierPrefix;if(Oe){var f=rl,m=O0;f=(m&~(1<<32-cn(m)-1)).toString(32)+f,r="_"+r+"R_"+f,f=j0++,0<f&&(r+="H"+f.toString(32)),r+="_"}else f=Z1++,r="_"+r+"r_"+f.toString(32)+"_";return l.memoizedState=r},useHostTransitionStatus:Lc,useFormState:Gc,useActionState:Gc,useOptimistic:function(l){var r=Ma();r.memoizedState=r.baseState=l;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=f,r=bo.bind(null,Se,!0,f),f.dispatch=r,[l,r]},useMemoCache:rs,useCacheRefresh:function(){return Ma().memoizedState=u4.bind(null,Se)},useEffectEvent:function(l){var r=Ma(),f={impl:l};return r.memoizedState=f,function(){if((we&2)!==0)throw Error(o(440));return f.impl.apply(void 0,arguments)}}},jl={readContext:ga,use:wi,useCallback:vo,useContext:ga,useEffect:os,useImperativeHandle:Oh,useInsertionEffect:Ni,useLayoutEffect:pu,useMemo:hs,useReducer:ni,useRef:po,useState:function(){return ni(ll)},useDebugValue:vu,useDeferredValue:function(l,r){var f=sa();return qc(f,$t.memoizedState,l,r)},useTransition:function(){var l=ni(ll)[0],r=sa().memoizedState;return[typeof l=="boolean"?l:b0(l),r]},useSyncExternalStore:mr,useId:yo,useHostTransitionStatus:Lc,useFormState:ss,useActionState:ss,useOptimistic:function(l,r){var f=sa();return du(f,$t,l,r)},useMemoCache:rs,useCacheRefresh:Gh};jl.useEffectEvent=K0;var Ii={readContext:ga,use:wi,useCallback:vo,useContext:ga,useEffect:os,useImperativeHandle:Oh,useInsertionEffect:Ni,useLayoutEffect:pu,useMemo:hs,useReducer:co,useRef:po,useState:function(){return co(ll)},useDebugValue:vu,useDeferredValue:function(l,r){var f=sa();return $t===null?fs(f,l,r):qc(f,$t.memoizedState,l,r)},useTransition:function(){var l=co(ll)[0],r=sa().memoizedState;return[typeof l=="boolean"?l:b0(l),r]},useSyncExternalStore:mr,useId:yo,useHostTransitionStatus:Lc,useFormState:us,useActionState:us,useOptimistic:function(l,r){var f=sa();return $t!==null?du(f,$t,l,r):(f.baseState=l,[l,f.queue.dispatch])},useMemoCache:rs,useCacheRefresh:Gh};Ii.useEffectEvent=K0;var Ku={enqueueSetState:function(l,r,f){l=l._reactInternals;var m=Aa(),S=Cn(m);S.payload=r,f!=null&&(S.callback=f),r=Sl(l,S,m),r!==null&&(Ba(r,l,m),dr(r,l,m))},enqueueReplaceState:function(l,r,f){l=l._reactInternals;var m=Aa(),S=Cn(m);S.tag=1,S.payload=r,f!=null&&(S.callback=f),r=Sl(l,S,m),r!==null&&(Ba(r,l,m),dr(r,l,m))},enqueueForceUpdate:function(l,r){l=l._reactInternals;var f=Aa(),m=Cn(f);m.tag=2,r!=null&&(m.callback=r),r=Sl(l,m,f),r!==null&&(Ba(r,l,f),dr(r,l,f))}},tn=Error(o(461)),ya=!1,Lr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Va=!1,Qa=!1,Gs=!1,J1=typeof WeakSet=="function"?WeakSet:Set,Pa=null,Ua=null,$a=!1,aa=null,En=8192,Us={getCacheForType:function(l){var r=ga(wa),f=r.data.get(l);return f===void 0&&(f=l(),r.data.set(l,f)),f},cacheSignal:function(){return ga(wa).controller.signal}},Kn=0,qs=1,Ls=2,Zu=3,Pi=4;if(typeof Symbol=="function"&&Symbol.for){var kr=Symbol.for;Kn=kr("selector.component"),qs=kr("selector.has_pseudo_class"),Ls=kr("selector.role"),Zu=kr("selector.test_id"),Pi=kr("selector.text")}var _n=typeof WeakMap=="function"?WeakMap:Map,we=0,Me=null,De=null,Be=0,na=0,i0=null,ol=!1,$i=!1,tr=!1,Vl=0,qa=0,bi=0,er=0,ks=0,en=0,Ys=0,Ju=null,dn=null,dc=!1,Fu=0,Yr=0,ar=1/0,Wu=null,Si=null,r0=0,xi=null,Xr=null,Ql=0,Xs=0,mc=null,F1=null,Qe=0,Iu=null;return Ee.attemptContinuousHydration=function(l){if(l.tag===13||l.tag===31){var r=el(l,67108864);r!==null&&Ba(r,l,67108864),Nu(l,67108864)}},Ee.attemptHydrationAtCurrentPriority=function(l){if(l.tag===13||l.tag===31){var r=Aa();r=Vt(r);var f=el(l,r);f!==null&&Ba(f,l,r),Nu(l,r)}},Ee.attemptSynchronousHydration=function(l){switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var r=U(l.pendingLanes);if(r!==0){for(l.pendingLanes|=2,l.entangledLanes|=2;r;){var f=1<<31-cn(r);l.entanglements[1]|=f,r&=~f}Za(l),(we&6)===0&&(ar=Y0()+500,u0(0))}}break;case 31:case 13:r=el(l,2),r!==null&&Ba(r,l,2),Ro(),Nu(l,2)}},Ee.batchedUpdates=function(l,r){return l(r)},Ee.createComponentSelector=function(l){return{$$typeof:Kn,value:l}},Ee.createContainer=function(l,r,f,m,S,T,N,V,ht,xt){return Yi(l,r,!1,null,f,m,T,null,N,V,ht,xt)},Ee.createHasPseudoClassSelector=function(l){return{$$typeof:qs,value:l}},Ee.createHydrationContainer=function(l,r,f,m,S,T,N,V,ht,xt,Ht,Mt,Qt,ye){return l=Yi(f,m,!0,l,S,T,V,ye,ht,xt,Ht,Mt),l.context=qo(null),f=l.current,m=Aa(),m=Vt(m),S=Cn(m),S.callback=r??null,Sl(f,S,m),r=m,l.current.lanes=r,ut(l,r),Za(l),l},Ee.createPortal=function(l,r,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Mr,key:m==null?null:""+m,children:l,containerInfo:r,implementation:f}},Ee.createRoleSelector=function(l){return{$$typeof:Ls,value:l}},Ee.createTestNameSelector=function(l){return{$$typeof:Zu,value:l}},Ee.createTextSelector=function(l){return{$$typeof:Pi,value:l}},Ee.defaultOnCaughtError=function(l){console.error(l)},Ee.defaultOnRecoverableError=function(l){sc(l)},Ee.defaultOnUncaughtError=function(l){sc(l)},Ee.deferredUpdates=function(l){var r=le.T,f=Un();try{return Re(32),le.T=null,l()}finally{Re(f),le.T=r}},Ee.discreteUpdates=function(l,r,f,m,S){var T=le.T,N=Un();try{return Re(2),le.T=null,l(r,f,m,S)}finally{Re(N),le.T=T,we===0&&(ar=Y0()+500)}},Ee.findAllNodes=rn,Ee.findBoundingRects=function(l,r){if(!c0)throw Error(o(363));r=rn(l,r),l=[];for(var f=0;f<r.length;f++)l.push(Ko(r[f]));for(r=l.length-1;0<r;r--){f=l[r];for(var m=f.x,S=m+f.width,T=f.y,N=T+f.height,V=r-1;0<=V;V--)if(r!==V){var ht=l[V],xt=ht.x,Ht=xt+ht.width,Mt=ht.y,Qt=Mt+ht.height;if(m>=xt&&T>=Mt&&S<=Ht&&N<=Qt){l.splice(r,1);break}else if(m!==xt||f.width!==ht.width||Qt<T||Mt>N){if(!(T!==Mt||f.height!==ht.height||Ht<m||xt>S)){xt>m&&(ht.width+=xt-m,ht.x=m),Ht<S&&(ht.width=S-xt),l.splice(r,1);break}}else{Mt>T&&(ht.height+=Mt-T,ht.y=T),Qt<N&&(ht.height=N-Mt),l.splice(r,1);break}}}return l},Ee.findHostInstance=Du,Ee.findHostInstanceWithNoPortals=function(l){return l=g(l),l=l!==null?b(l):null,l===null?null:ws(l.stateNode)},Ee.findHostInstanceWithWarning=function(l){return Du(l)},Ee.flushPassiveEffects=Hl,Ee.flushSyncFromReconciler=function(l){var r=we;we|=1;var f=le.T,m=Un();try{if(Re(2),le.T=null,l)return l()}finally{Re(m),le.T=f,we=r,(we&6)===0&&u0(0)}},Ee.flushSyncWork=Ro,Ee.focusWithin=function(l,r){if(!c0)throw Error(o(363));for(l=Gi(l),r=Ts(l,r),r=Array.from(r),l=0;l<r.length;){var f=r[l++],m=f.tag;if(!Vi(f)){if((m===5||m===26||m===27)&&mi(f.stateNode))return!0;for(f=f.child;f!==null;)r.push(f),f=f.sibling}}return!1},Ee.getFindAllNodesFailureDescription=function(l,r){if(!c0)throw Error(o(363));var f=0,m=[];l=[Gi(l),0];for(var S=0;S<l.length;){var T=l[S++],N=T.tag,V=l[S++],ht=r[V];if((N!==5&&N!==26&&N!==27||!Vi(T))&&(Ui(T,ht)&&(m.push(xs(ht)),V++,V>f&&(f=V)),V<r.length))for(T=T.child;T!==null;)l.push(T,V),T=T.sibling}if(f<r.length){for(l=[];f<r.length;f++)l.push(xs(r[f]));return`findAllNodes was able to match part of the selector:
31
+ `+(m.join(" > ")+`
32
+
33
+ No matching component was found for:
34
+ `)+l.join(" > ")}return null},Ee.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 27:case 5:return ws(l.child.stateNode);default:return l.child.stateNode}},Ee.injectIntoDevTools=function(){var l={bundleType:0,version:c1,rendererPackageName:Bu,currentDispatcherRef:le,reconcilerVersion:"19.2.0"};if(Cs!==null&&(l.rendererConfig=Cs),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(r.isDisabled||!r.supportsFiber)l=!0;else{try{Hr=r.inject(l),hn=r}catch{}l=!!r.checkDCE}}return l},Ee.isAlreadyRendering=function(){return(we&6)!==0},Ee.observeVisibleRects=function(l,r,f,m){if(!c0)throw Error(o(363));l=rn(l,r);var S=Zo(l,f,m).disconnect;return{disconnect:function(){S()}}},Ee.shouldError=function(){return null},Ee.shouldSuspend=function(){return!1},Ee.startHostTransition=function(l,r,f,m){if(l.tag!==5)throw Error(o(476));var S=Hh(l).queue;Bh(l,S,r,Dr,f===null?i:function(){var T=Hh(l);return T.next===null&&(T=l.alternate.memoizedState),yu(l,T.next.queue,{},Aa()),f(m)})},Ee.updateContainer=function(l,r,f,m){var S=r.current,T=Aa();return u1(S,T,l,r,f,m),T},Ee.updateContainerSync=function(l,r,f,m){return u1(r.current,2,l,r,f,m),2},Ee},s.exports.default=s.exports,Object.defineProperty(s.exports,"__esModule",{value:!0})})(nd)),nd.exports}var k3;function Eg(){return k3||(k3=1,ad.exports=Tg()),ad.exports}var _g=Eg();const Mg=Qd(_g);var ld={exports:{}},Vr={};var Y3;function Ag(){return Y3||(Y3=1,Vr.ConcurrentRoot=1,Vr.ContinuousEventPriority=8,Vr.DefaultEventPriority=32,Vr.DiscreteEventPriority=2,Vr.IdleEventPriority=268435456,Vr.LegacyRoot=0,Vr.NoEventPriority=0),Vr}var X3;function zg(){return X3||(X3=1,ld.exports=Ag()),ld.exports}var $2=zg();const j3={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let V3=!1,Q3=!1;const j2=".react-konva-event",Cg=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.
35
+ Position of a node will be changed during drag&drop, so you should update state of the react app as well.
36
+ Consider to add onDragMove or onDragEnd events.
37
+ For more info see: https://github.com/konvajs/react-konva/issues/256
38
+ `,wg=`ReactKonva: You are using "zIndex" attribute for a Konva node.
39
+ react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
40
+ For more info see: https://github.com/konvajs/react-konva/issues/194
41
+ `,Dg={};function t4(s,t,a=Dg){if(!V3&&"zIndex"in t&&(console.warn(wg),V3=!0),!Q3&&t.draggable){var i=t.x!==void 0||t.y!==void 0,o=t.onDragEnd||t.onDragMove;i&&!o&&(console.warn(Cg),Q3=!0)}for(var h in a)if(!j3[h]){var d=h.slice(0,2)==="on",g=a[h]!==t[h];if(d&&g){var p=h.substr(2).toLowerCase();p.substr(0,7)==="content"&&(p="content"+p.substr(7,1).toUpperCase()+p.substr(8)),s.off(p,a[h])}var b=!t.hasOwnProperty(h);b&&s.setAttr(h,void 0)}var E=t._useStrictMode,_={},A=!1;const D={};for(var h in t)if(!j3[h]){var d=h.slice(0,2)==="on",C=a[h]!==t[h];if(d&&C){var p=h.substr(2).toLowerCase();p.substr(0,7)==="content"&&(p="content"+p.substr(7,1).toUpperCase()+p.substr(8)),t[h]&&(D[p]=t[h])}!d&&(t[h]!==a[h]||E&&t[h]!==s.getAttr(h))&&(A=!0,_[h]=t[h])}A&&(s.setAttrs(_),ou(s));for(var p in D)s.off(p+j2),s.on(p+j2,D[p])}function ou(s){if(!qt.autoDrawEnabled){var t=s.getLayer()||s.getStage();t&&t.batchDraw()}}var id=Kd();const rm={},Ng={};Mc.Node.prototype._applyProps=t4;let sm=$2.DefaultEventPriority;function Rg(s,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}s.add(t),ou(s)}function Og(s,t,a){let i=Mc[s];i||(console.error(`Konva has no node with the type ${s}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${s}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),i=Mc.Group);const o={},h={};for(var d in t)if(d!=="ref"){var g=d.slice(0,2)==="on";g?h[d]=t[d]:o[d]=t[d]}const p=new i(o);return t4(p,h),p}function Bg(s,t,a){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${s}"`)}function Hg(s,t,a){return!1}function Gg(s){return s}function Ug(){return null}function qg(){return null}function Lg(s,t,a,i){return Ng}function kg(){}function Yg(s){}function Xg(s,t){return!1}function jg(){return rm}function Vg(){return rm}const Qg=setTimeout,Kg=clearTimeout,Zg=!0,Jg=s=>{s()},Fg=-1;function Wg(s,t){return!1}const Ig=!1,Pg=!1,$g=!0,tp=!1,ep=!1;function ap(s,t){t.parent===s?t.moveToTop():s.add(t),ou(s)}function np(s,t){t.parent===s?t.moveToTop():s.add(t),ou(s)}function um(s,t,a){t._remove(),s.add(t),t.setZIndex(a.getZIndex()),ou(s)}function lp(s,t,a){um(s,t,a)}function ip(s,t){t.destroy(),t.off(j2),ou(s)}function rp(s,t){t.destroy(),t.off(j2),ou(s)}function sp(s,t,a){console.error(`Text components are not yet supported in ReactKonva. You text is: "${a}"`)}function up(s,t,a){}function op(s,t,a,i){t4(s,i,a)}function cp(s){s.hide(),ou(s)}function hp(s){}function fp(s,t){(t.visible==null||t.visible)&&s.show()}function dp(s,t){}function mp(s){}function gp(){}function pp(){return null}function vp(){}function yp(){}function bp(){return $2.DefaultEventPriority}function Sp(){}function xp(){return null}function Tp(s){sm=s}function Ep(){return sm}function _p(){return $2.DiscreteEventPriority}function Mp(){return!1}function Ap(){}function zp(){return null}function Cp(){return-1.1}function wp(){}function Dp(){return!1}function Np(){return!0}function Rp(){}function Op(){}function Bp(){return null}const Hp=null,Gp=z0.createContext(null);function Up(){}const qp=Object.freeze(Object.defineProperty({__proto__:null,HostTransitionContext:Gp,NotPendingTransition:Hp,afterActiveInstanceBlur:yp,appendChild:ap,appendChildToContainer:np,appendInitialChild:Rg,beforeActiveInstanceBlur:vp,cancelTimeout:Kg,clearContainer:mp,commitMount:up,commitTextUpdate:sp,commitUpdate:op,createInstance:Og,createTextInstance:Bg,detachDeletedInstance:gp,finalizeInitialChildren:Hg,getChildHostContext:Vg,getCurrentEventPriority:bp,getCurrentUpdatePriority:Ep,getInstanceFromNode:pp,getInstanceFromScope:xp,getPublicInstance:Gg,getRootHostContext:jg,hideInstance:cp,hideTextInstance:hp,idlePriority:id.unstable_IdlePriority,insertBefore:um,insertInContainerBefore:lp,isPrimaryRenderer:Ig,maySuspendCommit:Dp,noTimeout:Fg,now:id.unstable_now,preloadInstance:Np,prepareForCommit:Ug,preparePortalMount:qg,prepareScopeUpdate:Sp,prepareUpdate:Lg,removeChild:ip,removeChildFromContainer:rp,requestPostPaintCallback:wp,resetAfterCommit:kg,resetFormInstance:Up,resetTextContent:Yg,resolveEventTimeStamp:Cp,resolveEventType:zp,resolveUpdatePriority:_p,run:id.unstable_runWithPriority,scheduleMicrotask:Jg,scheduleTimeout:Qg,setCurrentUpdatePriority:Tp,shouldAttemptEagerTransition:Mp,shouldDeprioritizeSubtree:Xg,shouldSetTextContent:Wg,startSuspendingCommit:Rp,supportsHydration:ep,supportsMicrotasks:Zg,supportsMutation:$g,supportsPersistence:tp,suspendInstance:Op,trackSchedulerEvent:Ap,unhideInstance:fp,unhideTextInstance:dp,waitForCommitToBeReady:Bp,warnsIfNotActing:Pg},Symbol.toStringTag,{value:"Module"}));function om(s,t,a){if(!s)return;if(a(s)===!0)return s;let i=s.child;for(;i;){const o=om(i,t,a);if(o)return o;i=i.sibling}}function cm(s){try{return Object.defineProperties(s,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return s}}const $d=cm(yt.createContext(null));class hm extends yt.Component{render(){return yt.createElement($d.Provider,{value:this._reactInternals},this.props.children)}}function Lp(){const s=yt.useContext($d);if(s===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const t=yt.useId();return yt.useMemo(()=>{for(const a of[s,s?.alternate]){if(!a)continue;const i=om(a,!1,o=>{let h=o.memoizedState;for(;h;){if(h.memoizedState===t)return!0;h=h.next}});if(i)return i}},[s,t])}const kp=Symbol.for("react.context"),Yp=s=>s!==null&&typeof s=="object"&&"$$typeof"in s&&s.$$typeof===kp;function Xp(){const s=Lp(),[t]=yt.useState(()=>new Map);t.clear();let a=s;for(;a;){const i=a.type;Yp(i)&&i!==$d&&!t.has(i)&&t.set(i,yt.use(cm(i))),a=a.return}return t}function jp(){const s=Xp();return yt.useMemo(()=>Array.from(s.keys()).reduce((t,a)=>i=>yt.createElement(t,null,yt.createElement(a.Provider,{...i,value:s.get(a)})),t=>yt.createElement(hm,{...t})),[s])}if(z0.version.indexOf("19")===-1)throw new Error("react-konva version 19 is only compatible with React 19. Make sure to have the last version of react-konva and react or downgrade react-konva to version 18.");function Vp(s){const t=z0.useRef({});return z0.useLayoutEffect(()=>{t.current=s}),z0.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const Qp=()=>{const s=z0.useRef(0);return z0.useMemo(()=>{s.current++},[]),s.current>1},Kp=s=>{const t=z0.useRef(null),a=z0.useRef(null),i=z0.useRef(null),o=Vp(s),h=jp(),d=z0.useRef(null),g=E=>{const{forwardedRef:_}=s;_&&(typeof _=="function"?_(E):_.current=E)},p=Qp(),b=()=>{g(null),z2.updateContainer(null,i.current,null),a.current?.destroy(),a.current=null};return z0.useLayoutEffect(()=>(d.current&&(clearTimeout(d.current),d.current=null),a.current?g(a.current):(a.current=new Mc.Stage({width:s.width,height:s.height,container:t.current}),g(a.current),i.current=z2.createContainer(a.current,$2.ConcurrentRoot,null,!1,null,"",console.error,console.error,console.error,null),z2.updateContainer(z0.createElement(h,{},s.children),i.current,null,()=>{})),()=>{p?d.current=setTimeout(b,0):b()}),[]),z0.useLayoutEffect(()=>{g(a.current),t4(a.current,s,o),z2.updateContainer(z0.createElement(h,{},s.children),i.current,null)}),z0.createElement("div",{ref:t,id:s.id,accessKey:s.accessKey,className:s.className,role:s.role,style:s.style,tabIndex:s.tabIndex,title:s.title})},Zp="Layer",A2="Rect",Jp="Ellipse",rd="Line",Fp="Text",z2=Mg(qp),Wp=z0.forwardRef((s,t)=>z0.createElement(hm,{},z0.createElement(Kp,{...s,forwardedRef:t}))),Ip=({finishTextEditing:s,tool:t,setTool:a,strokeColor:i,setStrokeColor:o,editingTextId:h})=>_t.jsxs("div",{className:"tools-container",children:[_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-pencil ${t==="pencil"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&s(),a("pencil")},title:"Карандаш"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-highlighter ${t==="highlighter"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&s(),a("highlighter")},title:"Маркер"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-eraser ${t==="eraser"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&s(),a("eraser")},title:"Ластик"}),_t.jsx("input",{type:"color",id:"color",value:i,onChange:d=>o(d.target.value),disabled:t==="eraser",className:"drawing-tool-btn color-picker"})]}),Pp=({strokeWidth:s,setStrokeWidth:t,tool:a})=>_t.jsx("div",{className:"toolbar-range-container",children:_t.jsx("input",{type:"range",className:"drawing-tool-range",min:"1",max:"20",step:"1",id:"width",value:s,onChange:i=>t(+i.target.value),disabled:a==="text"||a==="latex"})}),$p=({handleUndo:s,handleRedo:t,handleClearCanvas:a,finishTextEditing:i,setTool:o,editingTextId:h,tool:d})=>_t.jsxs("div",{className:"tools-container",children:[_t.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-undo drawing-tool-btn-outline-primary drawing-tool-btn-small",onClick:s,title:"Отменить"}),_t.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-redo drawing-tool-btn-outline-primary drawing-tool-btn-small",onClick:t,title:"Повторить"}),_t.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-clear drawing-tool-btn-outline-primary drawing-tool-btn-small",onClick:a,title:"Очистить холст"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-rectangle drawing-tool-btn-small ${d==="rectangle"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&i(),o("rectangle")},title:"Прямоугольник"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-ellipse drawing-tool-btn-small ${d==="ellipse"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&i(),o("ellipse")},title:"Эллипс"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-line drawing-tool-btn-small ${d==="line"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&i(),o("line")},title:"Линия"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-text drawing-tool-btn-small ${d==="text"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{h&&i(),o("text")},title:"Текст"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-latex drawing-tool-btn-small ${d==="latex"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-success"}`,onClick:()=>{h&&i(),o("latex")},title:"Формула"})]}),tv=({finishTextEditing:s,editingTextId:t,setTool:a,selectedId:i,tool:o,handleDeleteShape:h})=>_t.jsxs("div",{className:"tools-container",children:[_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-select drawing-tool-btn-small ${o==="select"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"}`,onClick:()=>{t&&s(),a("select")},title:"Выделение"}),_t.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-delete drawing-tool-btn-danger drawing-tool-btn-small",onClick:()=>{i&&h(i)},disabled:!i||o!=="select",title:"Удалить выделенную фигуру"})]}),ev=({onOcrSelect:s,onOcrRecognize:t,tool:a,ocrSelection:i,editingTextId:o,finishTextEditing:h})=>_t.jsxs("div",{className:"tools-container",children:[_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-ocr ${a==="ocr-selection"?"drawing-tool-btn-primary":"drawing-tool-btn-outline-primary"} drawing-tool-btn-small`,onClick:()=>{o&&h(),s()},title:"OCR-выделение"}),_t.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-change drawing-tool-btn-danger drawing-tool-btn-small",onClick:t,disabled:!i||a!=="ocr-selection",title:"Распознать выделенную область"})]}),av=({selectedShape:s,selectedId:t,isBold:a,isItalic:i,isUnderline:o,isStrikethrough:h,currentAlign:d,showTextFormatDropdown:g,showTextAlignDropdown:p,setShowTextFormatDropdown:b,setShowTextAlignDropdown:E,updateSelectedTextProperty:_,startTextEditing:A,toggleBold:D,toggleItalic:C,toggleUnderline:H,toggleStrikethrough:U,fontFamily:Y,fontSize:G,strokeColor:Z,availableFonts:q,left:P,top:ut,panelWidth:rt})=>_t.jsx("div",{className:"text-toolbar",style:{left:`${P}px`,top:`${ut}px`,width:`${rt}px`},children:_t.jsxs("div",{className:"text-toolbar-content",children:[s.type==="text"&&_t.jsx(_t.Fragment,{children:_t.jsx("select",{className:"drawing-tool-select drawing-tool-select-small",value:s.fontFamily||Y,onChange:ot=>{_("fontFamily",ot.target.value),b(!1),E(!1)},style:{width:"160px"},children:q.map(ot=>_t.jsx("option",{value:ot,children:ot},ot))})}),_t.jsx("input",{type:"number",className:"drawing-tool-input drawing-tool-input-small",value:s.fontSize||G,onChange:ot=>{_("fontSize",parseInt(ot.target.value)||1),b(!1),E(!1)},min:"1",max:"200",step:"1",style:{width:"40px"}}),s.type==="text"&&_t.jsxs("div",{className:"text-format-dropdown",children:[_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-text-format drawing-tool-btn-small ${g?"drawing-tool-btn-primary":"drawing-tool-btn-outline-secondary"} ${g?"active":""}`,onClick:ot=>{ot.stopPropagation(),E(!1),b(!g)},title:"Формат текста"}),g&&_t.jsxs("div",{className:"text-format-dropdown-menu",style:{display:"flex",flexDirection:"row",gap:"5px"},children:[_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-bold drawing-tool-btn-small ${a?"active":""}`,onClick:ot=>{ot.stopPropagation(),D()},title:"Жирный"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-italic drawing-tool-btn-small ${i?"active":""}`,onClick:ot=>{ot.stopPropagation(),C()},title:"Курсив"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-underline drawing-tool-btn-small ${o?"active":""}`,onClick:ot=>{ot.stopPropagation(),H()},title:"Подчеркнутый"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-strikethrough drawing-tool-btn-small ${h?"active":""}`,onClick:ot=>{ot.stopPropagation(),U()},title:"Зачеркнутый"})]})]}),s.type==="text"&&_t.jsxs("div",{className:"text-align-dropdown",children:[_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-text-align drawing-tool-btn-small ${p?"drawing-tool-btn-primary":"drawing-tool-btn-outline-secondary"} ${p?"active":""}`,onClick:ot=>{ot.stopPropagation(),b(!1),E(!p)},title:"Выравнивание текста"}),p&&_t.jsxs("div",{className:"text-align-dropdown-menu",style:{display:"flex",flexDirection:"row",gap:"5px"},children:[_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-align-left drawing-tool-btn-small ${d==="left"?"active":""}`,onClick:ot=>{ot.stopPropagation(),_("textAlign","left"),E(!1)},title:"По левому краю"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-align-center drawing-tool-btn-small ${d==="center"?"active":""}`,onClick:ot=>{ot.stopPropagation(),_("textAlign","center"),E(!1)},title:"По центру"}),_t.jsx("button",{type:"button",className:`drawing-tool-btn tool-icon tool-align-right drawing-tool-btn-small ${d==="right"?"active":""}`,onClick:ot=>{ot.stopPropagation(),_("textAlign","right"),E(!1)},title:"По правому краю"})]})]}),_t.jsx("input",{type:"color",value:s.stroke||Z,onChange:ot=>{_("stroke",ot.target.value),b(!1),E(!1)},className:"text-color-picker"}),_t.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-edit-text drawing-tool-btn-outline-secondary drawing-tool-btn-small",onClick:()=>{A(t),b(!1),E(!1)},title:s.type==="latex"?"Edit Formula":"Edit Text"})]})}),nv=({selectedShape:s,selectedId:t,left:a,top:i,panelWidth:o,startTextEditing:h,updateSelectedTextProperty:d,fontSize:g,strokeColor:p})=>_t.jsx("div",{className:"text-toolbar",style:{left:`${a}px`,top:`${i}px`,width:`${o}px`},children:_t.jsxs("div",{className:"text-toolbar-content",children:[_t.jsx("input",{type:"number",className:"drawing-tool-input drawing-tool-input-small",value:s.fontSize||g,onChange:b=>d("fontSize",parseInt(b.target.value)||1),min:"1",max:"200",step:"1",style:{width:"40px"}}),_t.jsx("input",{type:"color",value:s.stroke||p,onChange:b=>d("stroke",b.target.value),className:"text-color-picker"}),_t.jsx("button",{type:"button",className:"drawing-tool-btn tool-icon tool-edit-text drawing-tool-btn-outline-secondary drawing-tool-btn-small",onClick:()=>h(t),title:"Edit Formula"})]})}),lv=({shape:s,tempText:t,textAreaRef:a,updateTextInRealTime:i,finishTextEditing:o,x:h,y:d,width:g,textareaStyle:p,latexSymbols:b,latexCategories:E,handleLatexSymbolClick:_,renderLatexToHtml:A,showLatexPreview:D=!0,showLatexMenu:C=!1,selectedLatexCategory:H="fraction",latexPreview:U="E = mc^2",setShowLatexMenu:Y,setSelectedLatexCategory:G})=>{const Z=H==="all"?b:b.filter(q=>q.category===H);return _t.jsxs("div",{className:"latex-editor-container",style:{position:"fixed",left:`${h}px`,top:`${d-120}px`,width:`${g+200}px`,zIndex:1001},children:[_t.jsxs("div",{className:"latex-editor-toolbar",children:[D&&_t.jsx("div",{className:"latex-preview",dangerouslySetInnerHTML:{__html:A(U||t||"E = mc^2",20)},style:{fontSize:"20px",color:s.stroke}}),_t.jsxs("div",{className:"latex-symbols-dropdown",style:{display:"flex",justifyContent:"center"},children:[_t.jsx("button",{type:"button",className:`drawing-tool-btn drawing-tool-btn-outline-success drawing-tool-btn-small latex-symbols-btn ${C?"active":""}`,onClick:q=>{q.stopPropagation(),Y(!C)},children:_t.jsx("span",{className:"latex-symbols-button",children:"Символы"})}),C&&_t.jsxs("div",{className:"latex-symbols-menu",children:[_t.jsx("div",{className:"latex-categories-container",children:E.map(q=>_t.jsx("button",{type:"button",className:`drawing-tool-btn drawing-tool-btn-small ${H===q.id?"drawing-tool-btn-primary":"drawing-tool-btn-outline-secondary"}`,onClick:P=>{P.stopPropagation(),G(q.id)},children:_t.jsx("span",{children:q.icon})},q.id))}),_t.jsx("div",{className:"latex-symbols-grid",children:Z.map(q=>_t.jsxs("button",{type:"button",className:"drawing-tool-btn drawing-tool-btn-outline-info drawing-tool-btn-small latex-symbol-button",onClick:P=>{P.stopPropagation(),_(q)},title:q.description,children:[_t.jsx("div",{className:"latex-symbol-name",children:_t.jsx("span",{dangerouslySetInnerHTML:{__html:A(q.latex,24)}})}),_t.jsx("div",{className:"latex-symbol-code",children:q.placeholder||q.latex})]},q.name))})]})]})]}),_t.jsx("textarea",{ref:a,value:t,onChange:q=>i(q.target.value),onBlur:()=>{setTimeout(()=>{const q=document.activeElement;(!q||!q.closest(".latex-editor-container")&&!q.closest(".latex-symbols-menu"))&&o()},100)},style:p,onKeyDown:q=>{if(q.key==="Escape"&&o(),q.key==="Enter"&&q.ctrlKey&&o(),q.key==="Tab"){q.preventDefault();const P=q.target,ut=P.selectionStart,rt=P.selectionEnd,ot=P.value,Et={"(":")","[":"]","{":"}","|":"|","\\":"\\"},kt=ot.substring(ut-1,ut);if(Et[kt]){const Vt=ot.substring(0,ut)+Et[kt]+ot.substring(rt);i(Vt),setTimeout(()=>{P.setSelectionRange(ut,ut)},0)}}},autoFocus:!0,placeholder:"Введите LaTeX формулу"})]})},iv=({textAreaRef:s,tempText:t,updateTextInRealTime:a,finishTextEditing:i,textareaStyle:o})=>_t.jsx("textarea",{ref:s,value:t,onChange:h=>a(h.target.value),onBlur:()=>i(),style:o,onKeyDown:h=>{h.key==="Escape"&&i(),h.key==="Enter"&&h.ctrlKey&&i()},autoFocus:!0}),rv=[{name:"fraction",latex:"\\frac{a}{b}",description:"Дробь с числителем и знаменателем",category:"fraction",placeholder:"\\frac{a}{b}"},{name:"sqrt",latex:"\\sqrt{x}",description:"Квадратный корень",category:"root",placeholder:"\\sqrt{x}"},{name:"nthroot",latex:"\\sqrt[n]{x}",description:"Корень с показателем степени",category:"root",placeholder:"\\sqrt[n]{x}"},{name:"superscript",latex:"x^{2}",description:"Надстрочный индекс",category:"superscript",placeholder:"x^{2}"},{name:"subscript",latex:"x_{i}",description:"Подстрочный индекс",category:"subscript",placeholder:"x_{i}"},{name:"sum",latex:"\\sum_{i=1}^{n}",description:"Сумма",category:"operators",placeholder:"\\sum_{i=1}^{n}"},{name:"integral",latex:"\\int_{a}^{b}",description:"Интеграл",category:"operators",placeholder:"\\int_{a}^{b}"},{name:"limit",latex:"\\lim_{x \\to 0}",description:"Предел",category:"operators",placeholder:"\\lim_{x \\to 0}"},{name:"derivative",latex:"\\frac{dy}{dx}",description:"Производная",category:"operators",placeholder:"\\frac{dy}{dx}"},{name:"infinity",latex:"\\infty",description:"Символ бесконечности",category:"symbols"},{name:"approx",latex:"\\approx",description:"Приблизительное равенство",category:"symbols"},{name:"neq",latex:"\\neq",description:"Не равно",category:"symbols"},{name:"leq",latex:"\\leq",description:"Меньше или равно",category:"symbols"},{name:"geq",latex:"\\geq",description:"Больше или равно",category:"symbols"},{name:"in",latex:"\\in",description:"Принадлежность множеству",category:"symbols"},{name:"forall",latex:"\\forall",description:"Для всех",category:"symbols"},{name:"exists",latex:"\\exists",description:"Существует",category:"symbols"},{name:"therefore",latex:"\\therefore",description:"Следовательно",category:"symbols"},{name:"plus",latex:"+",description:"Плюс",category:"symbols"},{name:"minus",latex:"-",description:"Минус",category:"symbols"},{name:"times",latex:"\\times",description:"Умножение",category:"symbols"},{name:"div",latex:"\\div",description:"Деление",category:"symbols"},{name:"equals",latex:"=",description:"Равно",category:"symbols"},{name:"parentheses",latex:"\\left( x \\right)",description:"Круглые скобки",category:"brackets",placeholder:"\\left( x + y \\right)"},{name:"brackets",latex:"\\left[ a \\right]",description:"Квадратные скобки",category:"brackets",placeholder:"\\left[ a, b \\right]"},{name:"braces",latex:"\\left\\{ x \\right\\}",description:"Фигурные скобки",category:"brackets",placeholder:"\\left\\{ x, y \\right\\}"},{name:"abs",latex:"\\left| x \\right|",description:"Модуль",category:"brackets",placeholder:"\\left| x \\right|"},{name:"alpha",latex:"\\alpha",description:"Греческая буква альфа",category:"symbols"},{name:"beta",latex:"\\beta",description:"Греческая буква бета",category:"symbols"},{name:"gamma",latex:"\\gamma",description:"Греческая буква гамма",category:"symbols"},{name:"delta",latex:"\\delta",description:"Греческая буква дельта",category:"symbols"},{name:"pi",latex:"\\pi",description:"Число Пи",category:"symbols"},{name:"sigma",latex:"\\sigma",description:"Греческая буква сигма",category:"symbols"},{name:"theta",latex:"\\theta",description:"Греческая буква тета",category:"symbols"}],sv=[{id:"fraction",name:"½",icon:"½"},{id:"root",name:"√",icon:"√"},{id:"superscript",name:"x²",icon:"x²"},{id:"subscript",name:"x₁",icon:"x₁"},{id:"brackets",name:"[]",icon:"[]"},{id:"operators",name:"∑",icon:"∑"},{id:"symbols",name:"α",icon:"α"}],uv=["Arial","Verdana","Helvetica","Tahoma","Trebuchet MS","Times New Roman","Georgia","Garamond","Courier New","Brush Script MT","Comic Sans MS","Impact"],ov=(s,t)=>{const[a,i]=yt.useState([s]),[o,h]=yt.useState(0),d=yt.useCallback(E=>{const _=a.slice(0,o+1);_.push([...E]),i(_),h(_.length-1),t&&t(E)},[a,o,t]),g=yt.useCallback(()=>{if(o>0){const E=o-1;return h(E),[...a[E]]}return null},[a,o]),p=yt.useCallback(()=>{if(o<a.length-1){const E=o+1;return h(E),[...a[E]]}return null},[a,o]),b=yt.useCallback(E=>{i([E]),h(0)},[]);return{history:a,historyIndex:o,saveToHistory:d,handleUndo:g,handleRedo:p,resetHistory:b}};class Fn{constructor(t,a,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=a,this.end=i}static range(t,a){return a?!t||!t.loc||!a.loc||t.loc.lexer!==a.loc.lexer?null:new Fn(t.loc.lexer,t.loc.start,a.loc.end):t&&t.loc}}class dl{constructor(t,a){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=a}range(t,a){return new dl(a,Fn.range(this,t))}}class Dt{constructor(t,a){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var i="KaTeX parse error: "+t,o,h,d=a&&a.loc;if(d&&d.start<=d.end){var g=d.lexer.input;o=d.start,h=d.end,o===g.length?i+=" at end of input: ":i+=" at position "+(o+1)+": ";var p=g.slice(o,h).replace(/[^]/g,"$&̲"),b;o>15?b="…"+g.slice(o-15,o):b=g.slice(0,o);var E;h+15<g.length?E=g.slice(h,h+15)+"…":E=g.slice(h),i+=b+p+E}var _=new Error(i);return _.name="ParseError",_.__proto__=Dt.prototype,_.position=o,o!=null&&h!=null&&(_.length=h-o),_.rawMessage=t,_}}Dt.prototype.__proto__=Error.prototype;var cv=function(t,a){return t===void 0?a:t},hv=/([A-Z])/g,fv=function(t){return t.replace(hv,"-$1").toLowerCase()},dv={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},mv=/[&><"']/g;function gv(s){return String(s).replace(mv,t=>dv[t])}var fm=function s(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?s(t.body[0]):t:t.type==="font"?s(t.body):t},pv=function(t){var a=fm(t);return a.type==="mathord"||a.type==="textord"||a.type==="atom"},vv=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},yv=function(t){var a=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"},$e={deflt:cv,escape:gv,hyphenate:fv,getBaseElem:fm,isCharacterBox:pv,protocolFromUrl:yv},k2={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:s=>"#"+s},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:(s,t)=>(t.push(s),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:s=>Math.max(0,s),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:s=>Math.max(0,s),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:s=>Math.max(0,s),cli:"-e, --max-expand <n>",cliProcessor:s=>s==="Infinity"?1/0:parseInt(s)},globalGroup:{type:"boolean",cli:!1}};function bv(s){if(s.default)return s.default;var t=s.type,a=Array.isArray(t)?t[0]:t;if(typeof a!="string")return a.enum[0];switch(a){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class t5{constructor(t){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,t=t||{};for(var a in k2)if(k2.hasOwnProperty(a)){var i=k2[a];this[a]=t[a]!==void 0?i.processor?i.processor(t[a]):t[a]:bv(i)}}reportNonstrict(t,a,i){var o=this.strict;if(typeof o=="function"&&(o=o(t,a,i)),!(!o||o==="ignore")){if(o===!0||o==="error")throw new Dt("LaTeX-incompatible input and strict mode is set to 'error': "+(a+" ["+t+"]"),i);o==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+a+" ["+t+"]"))}}useStrictBehavior(t,a,i){var o=this.strict;if(typeof o=="function")try{o=o(t,a,i)}catch{o="error"}return!o||o==="ignore"?!1:o===!0||o==="error"?!0:o==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+o+"': "+a+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var a=$e.protocolFromUrl(t.url);if(a==null)return!1;t.protocol=a}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}}class Ws{constructor(t,a,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=a,this.cramped=i}sup(){return lr[Sv[this.id]]}sub(){return lr[xv[this.id]]}fracNum(){return lr[Tv[this.id]]}fracDen(){return lr[Ev[this.id]]}cramp(){return lr[_v[this.id]]}text(){return lr[Mv[this.id]]}isTight(){return this.size>=2}}var e5=0,V2=1,Ec=2,Jr=3,_h=4,Fl=5,Ac=6,An=7,lr=[new Ws(e5,0,!1),new Ws(V2,0,!0),new Ws(Ec,1,!1),new Ws(Jr,1,!0),new Ws(_h,2,!1),new Ws(Fl,2,!0),new Ws(Ac,3,!1),new Ws(An,3,!0)],Sv=[_h,Fl,_h,Fl,Ac,An,Ac,An],xv=[Fl,Fl,Fl,Fl,An,An,An,An],Tv=[Ec,Jr,_h,Fl,Ac,An,Ac,An],Ev=[Jr,Jr,Fl,Fl,An,An,An,An],_v=[V2,V2,Jr,Jr,Fl,Fl,An,An],Mv=[e5,V2,Ec,Jr,Ec,Jr,Ec,Jr],oe={DISPLAY:lr[e5],TEXT:lr[Ec],SCRIPT:lr[_h],SCRIPTSCRIPT:lr[Ac]},Hd=[{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 Av(s){for(var t=0;t<Hd.length;t++)for(var a=Hd[t],i=0;i<a.blocks.length;i++){var o=a.blocks[i];if(s>=o[0]&&s<=o[1])return a.name}return null}var Y2=[];Hd.forEach(s=>s.blocks.forEach(t=>Y2.push(...t)));function dm(s){for(var t=0;t<Y2.length;t+=2)if(s>=Y2[t]&&s<=Y2[t+1])return!0;return!1}var xc=80,zv=function(t,a){return"M95,"+(622+t+a)+`
42
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
43
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
44
+ 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
45
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
46
+ c69,-144,104.5,-217.7,106.5,-221
47
+ l`+t/2.075+" -"+t+`
48
+ c5.3,-9.3,12,-14,20,-14
49
+ H400000v`+(40+t)+`H845.2724
50
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
51
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
52
+ M`+(834+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},Cv=function(t,a){return"M263,"+(601+t+a)+`c0.7,0,18,39.7,52,119
53
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
54
+ c340,-704.7,510.7,-1060.3,512,-1067
55
+ l`+t/2.084+" -"+t+`
56
+ c4.7,-7.3,11,-11,19,-11
57
+ H40000v`+(40+t)+`H1012.3
58
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
59
+ 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
60
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
61
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
62
+ M`+(1001+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},wv=function(t,a){return"M983 "+(10+t+a)+`
63
+ l`+t/3.13+" -"+t+`
64
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
65
+ 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
66
+ 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
67
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
68
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
69
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
70
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
71
+ M`+(1001+t)+" "+a+"h400000v"+(40+t)+"h-400000z"},Dv=function(t,a){return"M424,"+(2398+t+a)+`
72
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
73
+ 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
74
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
75
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
76
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
77
+ v`+(40+t)+`H1014.6
78
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
79
+ c-2,6,-10,9,-24,9
80
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+a+`
81
+ h400000v`+(40+t)+"h-400000z"},Nv=function(t,a){return"M473,"+(2713+t+a)+`
82
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
83
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
84
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
85
+ 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
86
+ 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
87
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
88
+ 606zM`+(1001+t)+" "+a+"h400000v"+(40+t)+"H1017.7z"},Rv=function(t){var a=t/2;return"M400000 "+t+" H0 L"+a+" 0 l65 45 L145 "+(t-80)+" H400000z"},Ov=function(t,a,i){var o=i-54-a-t;return"M702 "+(t+a)+"H400000"+(40+t)+`
89
+ H742v`+o+`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
90
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
91
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
92
+ 219 661 l218 661zM702 `+a+"H400000v"+(40+t)+"H742z"},Bv=function(t,a,i){a=1e3*a;var o="";switch(t){case"sqrtMain":o=zv(a,xc);break;case"sqrtSize1":o=Cv(a,xc);break;case"sqrtSize2":o=wv(a,xc);break;case"sqrtSize3":o=Dv(a,xc);break;case"sqrtSize4":o=Nv(a,xc);break;case"sqrtTall":o=Ov(a,xc,i)}return o},Hv=function(t,a){switch(t){case"⎜":return"M291 0 H417 V"+a+" H291z M291 0 H417 V"+a+" H291z";case"∣":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z";case"∥":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z"+("M367 0 H410 V"+a+" H367z M367 0 H410 V"+a+" H367z");case"⎟":return"M457 0 H583 V"+a+" H457z M457 0 H583 V"+a+" H457z";case"⎢":return"M319 0 H403 V"+a+" H319z M319 0 H403 V"+a+" H319z";case"⎥":return"M263 0 H347 V"+a+" H263z M263 0 H347 V"+a+" H263z";case"⎪":return"M384 0 H504 V"+a+" H384z M384 0 H504 V"+a+" H384z";case"⏐":return"M312 0 H355 V"+a+" H312z M312 0 H355 V"+a+" H312z";case"‖":return"M257 0 H300 V"+a+" H257z M257 0 H300 V"+a+" H257z"+("M478 0 H521 V"+a+" H478z M478 0 H521 V"+a+" H478z");default:return""}},K3={doubleleftarrow:`M262 157
93
+ 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
94
+ 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
95
+ 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
96
+ 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
97
+ 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
98
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
99
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
100
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
101
+ -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
102
+ 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
103
+ -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
104
+ -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
105
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
106
+ 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
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
108
+ 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
109
+ -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
110
+ 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
111
+ 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
112
+ 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
113
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
114
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
115
+ 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
116
+ 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
117
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
118
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
119
+ 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
120
+ 435 0h399565z`,leftgroupunder:`M400000 262
121
+ 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
122
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
123
+ -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
124
+ -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
125
+ -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
126
+ 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
127
+ -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
128
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
129
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
130
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
131
+ 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
132
+ -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
133
+ 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
134
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
135
+ 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
136
+ -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
137
+ -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
138
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
139
+ M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
140
+ M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
141
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
142
+ 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
143
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
144
+ M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
145
+ 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
146
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
147
+ 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
148
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
149
+ 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
150
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
151
+ 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
152
+ -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
153
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
154
+ 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
155
+ 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
156
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
157
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
158
+ 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
159
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
160
+ 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
161
+ 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
162
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
163
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
164
+ 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
165
+ -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
166
+ 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
167
+ 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
168
+ -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
169
+ -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
170
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
171
+ -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
172
+ 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
173
+ 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
174
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
175
+ -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
176
+ 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
177
+ 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
178
+ -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
179
+ -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
180
+ 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
181
+ -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
182
+ 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
183
+ 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
184
+ 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
185
+ -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
186
+ -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
187
+ 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
188
+ 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
189
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
190
+ 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
191
+ 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
192
+ -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
193
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
194
+ M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
195
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
196
+ -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
197
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
198
+ 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
199
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
200
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
201
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
202
+ 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
203
+ 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
204
+ 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
205
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
206
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
207
+ 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
208
+ -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
209
+ 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
210
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
211
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
212
+ -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
213
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
214
+ 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
215
+ 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
216
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
217
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
218
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
219
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
220
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
221
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
222
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
223
+ -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
224
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
225
+ 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
226
+ -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
227
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
228
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
229
+ 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
230
+ 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
231
+ -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
232
+ -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
233
+ -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,
234
+ -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,
235
+ -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,
236
+ -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,
237
+ -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
238
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
239
+ 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
240
+ 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
241
+ 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
242
+ 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
243
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
244
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
245
+ -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
246
+ 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
247
+ -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
248
+ -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
249
+ -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
250
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
251
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
252
+ 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
253
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
254
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
255
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
256
+ 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,
257
+ -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
258
+ 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
259
+ 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
260
+ 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,
261
+ 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,
262
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
263
+ 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
264
+ 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,
265
+ -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
266
+ 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
267
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Gv=function(t,a){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v1759 h347 v-84
268
+ H403z M403 1759 V0 H319 V1759 v`+a+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v1759 H0 v84 H347z
269
+ M347 1759 V0 H263 V1759 v`+a+" v1759 h84z";case"vert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
270
+ c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
271
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+" v585 h43z";case"doublevert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
272
+ c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
273
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+` v585 h43z
274
+ M367 15 v585 v`+a+` v585 c2.667,10,9.667,15,21,15
275
+ c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
276
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+a+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+a+` v1715 h263 v84 H319z
277
+ MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+a+` v1799 H0 v-84 H319z
278
+ MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v602 h84z
279
+ M403 1759 V0 H319 V1759 v`+a+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v602 h84z
280
+ M347 1759 V0 h-84 V1759 v`+a+" 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
281
+ 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,
282
+ -36,557 l0,`+(a+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
283
+ 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
284
+ 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,
285
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
286
+ l0,-`+(a+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
287
+ -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,
288
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
289
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(a+9)+`
290
+ 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
291
+ 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
292
+ 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
293
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
294
+ l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
295
+ -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.")}};class zh{constructor(t){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=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t}toMarkup(){for(var t="",a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t}toText(){var t=a=>a.toText();return this.children.map(t).join("")}}var rr={"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]}},C2={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]},Z3={Å:"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 Uv(s,t){rr[s]=t}function a5(s,t,a){if(!rr[t])throw new Error("Font metrics not found for font: "+t+".");var i=s.charCodeAt(0),o=rr[t][i];if(!o&&s[0]in Z3&&(i=Z3[s[0]].charCodeAt(0),o=rr[t][i]),!o&&a==="text"&&dm(i)&&(o=rr[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var sd={};function qv(s){var t;if(s>=5?t=0:s>=3?t=1:t=2,!sd[t]){var a=sd[t]={cssEmPerMu:C2.quad[t]/18};for(var i in C2)C2.hasOwnProperty(i)&&(a[i]=C2[i][t])}return sd[t]}var Lv=[[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]],J3=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],F3=function(t,a){return a.size<2?t:Lv[t-1][a.size-1]};class Zr{constructor(t){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=t.style,this.color=t.color,this.size=t.size||Zr.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=J3[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var a={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var i in t)t.hasOwnProperty(i)&&(a[i]=t[i]);return new Zr(a)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:F3(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:J3[t-1]})}havingBaseStyle(t){t=t||this.style.text();var a=F3(Zr.BASESIZE,t);return this.size===a&&this.textSize===Zr.BASESIZE&&this.style===t?this:this.extend({style:t,size:a})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Zr.BASESIZE?["sizing","reset-size"+this.size,"size"+Zr.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=qv(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Zr.BASESIZE=6;var Gd={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},kv={ex:!0,em:!0,mu:!0},mm=function(t){return typeof t!="string"&&(t=t.unit),t in Gd||t in kv||t==="ex"},e0=function(t,a){var i;if(t.unit in Gd)i=Gd[t.unit]/a.fontMetrics().ptPerEm/a.sizeMultiplier;else if(t.unit==="mu")i=a.fontMetrics().cssEmPerMu;else{var o;if(a.style.isTight()?o=a.havingStyle(a.style.text()):o=a,t.unit==="ex")i=o.fontMetrics().xHeight;else if(t.unit==="em")i=o.fontMetrics().quad;else throw new Dt("Invalid unit: '"+t.unit+"'");o!==a&&(i*=o.sizeMultiplier/a.sizeMultiplier)}return Math.min(t.number*i,a.maxSize)},Lt=function(t){return+t.toFixed(4)+"em"},au=function(t){return t.filter(a=>a).join(" ")},gm=function(t,a,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},a){a.style.isTight()&&this.classes.push("mtight");var o=a.getColor();o&&(this.style.color=o)}},pm=function(t){var a=document.createElement(t);a.className=au(this.classes);for(var i in this.style)this.style.hasOwnProperty(i)&&(a.style[i]=this.style[i]);for(var o in this.attributes)this.attributes.hasOwnProperty(o)&&a.setAttribute(o,this.attributes[o]);for(var h=0;h<this.children.length;h++)a.appendChild(this.children[h].toNode());return a},Yv=/[\s"'>/=\x00-\x1f]/,vm=function(t){var a="<"+t;this.classes.length&&(a+=' class="'+$e.escape(au(this.classes))+'"');var i="";for(var o in this.style)this.style.hasOwnProperty(o)&&(i+=$e.hyphenate(o)+":"+this.style[o]+";");i&&(a+=' style="'+$e.escape(i)+'"');for(var h in this.attributes)if(this.attributes.hasOwnProperty(h)){if(Yv.test(h))throw new Dt("Invalid attribute name '"+h+"'");a+=" "+h+'="'+$e.escape(this.attributes[h])+'"'}a+=">";for(var d=0;d<this.children.length;d++)a+=this.children[d].toMarkup();return a+="</"+t+">",a};class Ch{constructor(t,a,i,o){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,gm.call(this,t,i,o),this.children=a||[]}setAttribute(t,a){this.attributes[t]=a}hasClass(t){return this.classes.includes(t)}toNode(){return pm.call(this,"span")}toMarkup(){return vm.call(this,"span")}}class n5{constructor(t,a,i,o){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,a,o),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,a){this.attributes[t]=a}hasClass(t){return this.classes.includes(t)}toNode(){return pm.call(this,"a")}toMarkup(){return vm.call(this,"a")}}class Xv{constructor(t,a,i){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=a,this.src=t,this.classes=["mord"],this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var a in this.style)this.style.hasOwnProperty(a)&&(t.style[a]=this.style[a]);return t}toMarkup(){var t='<img src="'+$e.escape(this.src)+'"'+(' alt="'+$e.escape(this.alt)+'"'),a="";for(var i in this.style)this.style.hasOwnProperty(i)&&(a+=$e.hyphenate(i)+":"+this.style[i]+";");return a&&(t+=' style="'+$e.escape(a)+'"'),t+="'/>",t}}var jv={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Wl{constructor(t,a,i,o,h,d,g,p){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=t,this.height=a||0,this.depth=i||0,this.italic=o||0,this.skew=h||0,this.width=d||0,this.classes=g||[],this.style=p||{},this.maxFontSize=0;var b=Av(this.text.charCodeAt(0));b&&this.classes.push(b+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=jv[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),a=null;this.italic>0&&(a=document.createElement("span"),a.style.marginRight=Lt(this.italic)),this.classes.length>0&&(a=a||document.createElement("span"),a.className=au(this.classes));for(var i in this.style)this.style.hasOwnProperty(i)&&(a=a||document.createElement("span"),a.style[i]=this.style[i]);return a?(a.appendChild(t),a):t}toMarkup(){var t=!1,a="<span";this.classes.length&&(t=!0,a+=' class="',a+=$e.escape(au(this.classes)),a+='"');var i="";this.italic>0&&(i+="margin-right:"+this.italic+"em;");for(var o in this.style)this.style.hasOwnProperty(o)&&(i+=$e.hyphenate(o)+":"+this.style[o]+";");i&&(t=!0,a+=' style="'+$e.escape(i)+'"');var h=$e.escape(this.text);return t?(a+=">",a+=h,a+="</span>",a):h}}class Wr{constructor(t,a){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=a||{}}toNode(){var t="http://www.w3.org/2000/svg",a=document.createElementNS(t,"svg");for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&a.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)a.appendChild(this.children[o].toNode());return a}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&(t+=" "+a+'="'+$e.escape(this.attributes[a])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class nu{constructor(t,a){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=a}toNode(){var t="http://www.w3.org/2000/svg",a=document.createElementNS(t,"path");return this.alternate?a.setAttribute("d",this.alternate):a.setAttribute("d",K3[this.pathName]),a}toMarkup(){return this.alternate?'<path d="'+$e.escape(this.alternate)+'"/>':'<path d="'+$e.escape(K3[this.pathName])+'"/>'}}class Ud{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",a=document.createElementNS(t,"line");for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&a.setAttribute(i,this.attributes[i]);return a}toMarkup(){var t="<line";for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&(t+=" "+a+'="'+$e.escape(this.attributes[a])+'"');return t+="/>",t}}function W3(s){if(s instanceof Wl)return s;throw new Error("Expected symbolNode but got "+String(s)+".")}function Vv(s){if(s instanceof Ch)return s;throw new Error("Expected span<HtmlDomNode> but got "+String(s)+".")}var Qv={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Kv={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ra={math:{},text:{}};function x(s,t,a,i,o,h){Ra[s][o]={font:t,group:a,replace:i},h&&i&&(Ra[s][i]=Ra[s][o])}var M="math",Tt="text",w="main",L="ams",Ka="accent-token",Ft="bin",zn="close",wc="inner",ue="mathord",C0="op-token",ml="open",e4="punct",X="rel",as="spacing",F="textord";x(M,w,X,"≡","\\equiv",!0);x(M,w,X,"≺","\\prec",!0);x(M,w,X,"≻","\\succ",!0);x(M,w,X,"∼","\\sim",!0);x(M,w,X,"⊥","\\perp");x(M,w,X,"⪯","\\preceq",!0);x(M,w,X,"⪰","\\succeq",!0);x(M,w,X,"≃","\\simeq",!0);x(M,w,X,"∣","\\mid",!0);x(M,w,X,"≪","\\ll",!0);x(M,w,X,"≫","\\gg",!0);x(M,w,X,"≍","\\asymp",!0);x(M,w,X,"∥","\\parallel");x(M,w,X,"⋈","\\bowtie",!0);x(M,w,X,"⌣","\\smile",!0);x(M,w,X,"⊑","\\sqsubseteq",!0);x(M,w,X,"⊒","\\sqsupseteq",!0);x(M,w,X,"≐","\\doteq",!0);x(M,w,X,"⌢","\\frown",!0);x(M,w,X,"∋","\\ni",!0);x(M,w,X,"∝","\\propto",!0);x(M,w,X,"⊢","\\vdash",!0);x(M,w,X,"⊣","\\dashv",!0);x(M,w,X,"∋","\\owns");x(M,w,e4,".","\\ldotp");x(M,w,e4,"⋅","\\cdotp");x(M,w,F,"#","\\#");x(Tt,w,F,"#","\\#");x(M,w,F,"&","\\&");x(Tt,w,F,"&","\\&");x(M,w,F,"ℵ","\\aleph",!0);x(M,w,F,"∀","\\forall",!0);x(M,w,F,"ℏ","\\hbar",!0);x(M,w,F,"∃","\\exists",!0);x(M,w,F,"∇","\\nabla",!0);x(M,w,F,"♭","\\flat",!0);x(M,w,F,"ℓ","\\ell",!0);x(M,w,F,"♮","\\natural",!0);x(M,w,F,"♣","\\clubsuit",!0);x(M,w,F,"℘","\\wp",!0);x(M,w,F,"♯","\\sharp",!0);x(M,w,F,"♢","\\diamondsuit",!0);x(M,w,F,"ℜ","\\Re",!0);x(M,w,F,"♡","\\heartsuit",!0);x(M,w,F,"ℑ","\\Im",!0);x(M,w,F,"♠","\\spadesuit",!0);x(M,w,F,"§","\\S",!0);x(Tt,w,F,"§","\\S");x(M,w,F,"¶","\\P",!0);x(Tt,w,F,"¶","\\P");x(M,w,F,"†","\\dag");x(Tt,w,F,"†","\\dag");x(Tt,w,F,"†","\\textdagger");x(M,w,F,"‡","\\ddag");x(Tt,w,F,"‡","\\ddag");x(Tt,w,F,"‡","\\textdaggerdbl");x(M,w,zn,"⎱","\\rmoustache",!0);x(M,w,ml,"⎰","\\lmoustache",!0);x(M,w,zn,"⟯","\\rgroup",!0);x(M,w,ml,"⟮","\\lgroup",!0);x(M,w,Ft,"∓","\\mp",!0);x(M,w,Ft,"⊖","\\ominus",!0);x(M,w,Ft,"⊎","\\uplus",!0);x(M,w,Ft,"⊓","\\sqcap",!0);x(M,w,Ft,"∗","\\ast");x(M,w,Ft,"⊔","\\sqcup",!0);x(M,w,Ft,"◯","\\bigcirc",!0);x(M,w,Ft,"∙","\\bullet",!0);x(M,w,Ft,"‡","\\ddagger");x(M,w,Ft,"≀","\\wr",!0);x(M,w,Ft,"⨿","\\amalg");x(M,w,Ft,"&","\\And");x(M,w,X,"⟵","\\longleftarrow",!0);x(M,w,X,"⇐","\\Leftarrow",!0);x(M,w,X,"⟸","\\Longleftarrow",!0);x(M,w,X,"⟶","\\longrightarrow",!0);x(M,w,X,"⇒","\\Rightarrow",!0);x(M,w,X,"⟹","\\Longrightarrow",!0);x(M,w,X,"↔","\\leftrightarrow",!0);x(M,w,X,"⟷","\\longleftrightarrow",!0);x(M,w,X,"⇔","\\Leftrightarrow",!0);x(M,w,X,"⟺","\\Longleftrightarrow",!0);x(M,w,X,"↦","\\mapsto",!0);x(M,w,X,"⟼","\\longmapsto",!0);x(M,w,X,"↗","\\nearrow",!0);x(M,w,X,"↩","\\hookleftarrow",!0);x(M,w,X,"↪","\\hookrightarrow",!0);x(M,w,X,"↘","\\searrow",!0);x(M,w,X,"↼","\\leftharpoonup",!0);x(M,w,X,"⇀","\\rightharpoonup",!0);x(M,w,X,"↙","\\swarrow",!0);x(M,w,X,"↽","\\leftharpoondown",!0);x(M,w,X,"⇁","\\rightharpoondown",!0);x(M,w,X,"↖","\\nwarrow",!0);x(M,w,X,"⇌","\\rightleftharpoons",!0);x(M,L,X,"≮","\\nless",!0);x(M,L,X,"","\\@nleqslant");x(M,L,X,"","\\@nleqq");x(M,L,X,"⪇","\\lneq",!0);x(M,L,X,"≨","\\lneqq",!0);x(M,L,X,"","\\@lvertneqq");x(M,L,X,"⋦","\\lnsim",!0);x(M,L,X,"⪉","\\lnapprox",!0);x(M,L,X,"⊀","\\nprec",!0);x(M,L,X,"⋠","\\npreceq",!0);x(M,L,X,"⋨","\\precnsim",!0);x(M,L,X,"⪹","\\precnapprox",!0);x(M,L,X,"≁","\\nsim",!0);x(M,L,X,"","\\@nshortmid");x(M,L,X,"∤","\\nmid",!0);x(M,L,X,"⊬","\\nvdash",!0);x(M,L,X,"⊭","\\nvDash",!0);x(M,L,X,"⋪","\\ntriangleleft");x(M,L,X,"⋬","\\ntrianglelefteq",!0);x(M,L,X,"⊊","\\subsetneq",!0);x(M,L,X,"","\\@varsubsetneq");x(M,L,X,"⫋","\\subsetneqq",!0);x(M,L,X,"","\\@varsubsetneqq");x(M,L,X,"≯","\\ngtr",!0);x(M,L,X,"","\\@ngeqslant");x(M,L,X,"","\\@ngeqq");x(M,L,X,"⪈","\\gneq",!0);x(M,L,X,"≩","\\gneqq",!0);x(M,L,X,"","\\@gvertneqq");x(M,L,X,"⋧","\\gnsim",!0);x(M,L,X,"⪊","\\gnapprox",!0);x(M,L,X,"⊁","\\nsucc",!0);x(M,L,X,"⋡","\\nsucceq",!0);x(M,L,X,"⋩","\\succnsim",!0);x(M,L,X,"⪺","\\succnapprox",!0);x(M,L,X,"≆","\\ncong",!0);x(M,L,X,"","\\@nshortparallel");x(M,L,X,"∦","\\nparallel",!0);x(M,L,X,"⊯","\\nVDash",!0);x(M,L,X,"⋫","\\ntriangleright");x(M,L,X,"⋭","\\ntrianglerighteq",!0);x(M,L,X,"","\\@nsupseteqq");x(M,L,X,"⊋","\\supsetneq",!0);x(M,L,X,"","\\@varsupsetneq");x(M,L,X,"⫌","\\supsetneqq",!0);x(M,L,X,"","\\@varsupsetneqq");x(M,L,X,"⊮","\\nVdash",!0);x(M,L,X,"⪵","\\precneqq",!0);x(M,L,X,"⪶","\\succneqq",!0);x(M,L,X,"","\\@nsubseteqq");x(M,L,Ft,"⊴","\\unlhd");x(M,L,Ft,"⊵","\\unrhd");x(M,L,X,"↚","\\nleftarrow",!0);x(M,L,X,"↛","\\nrightarrow",!0);x(M,L,X,"⇍","\\nLeftarrow",!0);x(M,L,X,"⇏","\\nRightarrow",!0);x(M,L,X,"↮","\\nleftrightarrow",!0);x(M,L,X,"⇎","\\nLeftrightarrow",!0);x(M,L,X,"△","\\vartriangle");x(M,L,F,"ℏ","\\hslash");x(M,L,F,"▽","\\triangledown");x(M,L,F,"◊","\\lozenge");x(M,L,F,"Ⓢ","\\circledS");x(M,L,F,"®","\\circledR");x(Tt,L,F,"®","\\circledR");x(M,L,F,"∡","\\measuredangle",!0);x(M,L,F,"∄","\\nexists");x(M,L,F,"℧","\\mho");x(M,L,F,"Ⅎ","\\Finv",!0);x(M,L,F,"⅁","\\Game",!0);x(M,L,F,"‵","\\backprime");x(M,L,F,"▲","\\blacktriangle");x(M,L,F,"▼","\\blacktriangledown");x(M,L,F,"■","\\blacksquare");x(M,L,F,"⧫","\\blacklozenge");x(M,L,F,"★","\\bigstar");x(M,L,F,"∢","\\sphericalangle",!0);x(M,L,F,"∁","\\complement",!0);x(M,L,F,"ð","\\eth",!0);x(Tt,w,F,"ð","ð");x(M,L,F,"╱","\\diagup");x(M,L,F,"╲","\\diagdown");x(M,L,F,"□","\\square");x(M,L,F,"□","\\Box");x(M,L,F,"◊","\\Diamond");x(M,L,F,"¥","\\yen",!0);x(Tt,L,F,"¥","\\yen",!0);x(M,L,F,"✓","\\checkmark",!0);x(Tt,L,F,"✓","\\checkmark");x(M,L,F,"ℶ","\\beth",!0);x(M,L,F,"ℸ","\\daleth",!0);x(M,L,F,"ℷ","\\gimel",!0);x(M,L,F,"ϝ","\\digamma",!0);x(M,L,F,"ϰ","\\varkappa");x(M,L,ml,"┌","\\@ulcorner",!0);x(M,L,zn,"┐","\\@urcorner",!0);x(M,L,ml,"└","\\@llcorner",!0);x(M,L,zn,"┘","\\@lrcorner",!0);x(M,L,X,"≦","\\leqq",!0);x(M,L,X,"⩽","\\leqslant",!0);x(M,L,X,"⪕","\\eqslantless",!0);x(M,L,X,"≲","\\lesssim",!0);x(M,L,X,"⪅","\\lessapprox",!0);x(M,L,X,"≊","\\approxeq",!0);x(M,L,Ft,"⋖","\\lessdot");x(M,L,X,"⋘","\\lll",!0);x(M,L,X,"≶","\\lessgtr",!0);x(M,L,X,"⋚","\\lesseqgtr",!0);x(M,L,X,"⪋","\\lesseqqgtr",!0);x(M,L,X,"≑","\\doteqdot");x(M,L,X,"≓","\\risingdotseq",!0);x(M,L,X,"≒","\\fallingdotseq",!0);x(M,L,X,"∽","\\backsim",!0);x(M,L,X,"⋍","\\backsimeq",!0);x(M,L,X,"⫅","\\subseteqq",!0);x(M,L,X,"⋐","\\Subset",!0);x(M,L,X,"⊏","\\sqsubset",!0);x(M,L,X,"≼","\\preccurlyeq",!0);x(M,L,X,"⋞","\\curlyeqprec",!0);x(M,L,X,"≾","\\precsim",!0);x(M,L,X,"⪷","\\precapprox",!0);x(M,L,X,"⊲","\\vartriangleleft");x(M,L,X,"⊴","\\trianglelefteq");x(M,L,X,"⊨","\\vDash",!0);x(M,L,X,"⊪","\\Vvdash",!0);x(M,L,X,"⌣","\\smallsmile");x(M,L,X,"⌢","\\smallfrown");x(M,L,X,"≏","\\bumpeq",!0);x(M,L,X,"≎","\\Bumpeq",!0);x(M,L,X,"≧","\\geqq",!0);x(M,L,X,"⩾","\\geqslant",!0);x(M,L,X,"⪖","\\eqslantgtr",!0);x(M,L,X,"≳","\\gtrsim",!0);x(M,L,X,"⪆","\\gtrapprox",!0);x(M,L,Ft,"⋗","\\gtrdot");x(M,L,X,"⋙","\\ggg",!0);x(M,L,X,"≷","\\gtrless",!0);x(M,L,X,"⋛","\\gtreqless",!0);x(M,L,X,"⪌","\\gtreqqless",!0);x(M,L,X,"≖","\\eqcirc",!0);x(M,L,X,"≗","\\circeq",!0);x(M,L,X,"≜","\\triangleq",!0);x(M,L,X,"∼","\\thicksim");x(M,L,X,"≈","\\thickapprox");x(M,L,X,"⫆","\\supseteqq",!0);x(M,L,X,"⋑","\\Supset",!0);x(M,L,X,"⊐","\\sqsupset",!0);x(M,L,X,"≽","\\succcurlyeq",!0);x(M,L,X,"⋟","\\curlyeqsucc",!0);x(M,L,X,"≿","\\succsim",!0);x(M,L,X,"⪸","\\succapprox",!0);x(M,L,X,"⊳","\\vartriangleright");x(M,L,X,"⊵","\\trianglerighteq");x(M,L,X,"⊩","\\Vdash",!0);x(M,L,X,"∣","\\shortmid");x(M,L,X,"∥","\\shortparallel");x(M,L,X,"≬","\\between",!0);x(M,L,X,"⋔","\\pitchfork",!0);x(M,L,X,"∝","\\varpropto");x(M,L,X,"◀","\\blacktriangleleft");x(M,L,X,"∴","\\therefore",!0);x(M,L,X,"∍","\\backepsilon");x(M,L,X,"▶","\\blacktriangleright");x(M,L,X,"∵","\\because",!0);x(M,L,X,"⋘","\\llless");x(M,L,X,"⋙","\\gggtr");x(M,L,Ft,"⊲","\\lhd");x(M,L,Ft,"⊳","\\rhd");x(M,L,X,"≂","\\eqsim",!0);x(M,w,X,"⋈","\\Join");x(M,L,X,"≑","\\Doteq",!0);x(M,L,Ft,"∔","\\dotplus",!0);x(M,L,Ft,"∖","\\smallsetminus");x(M,L,Ft,"⋒","\\Cap",!0);x(M,L,Ft,"⋓","\\Cup",!0);x(M,L,Ft,"⩞","\\doublebarwedge",!0);x(M,L,Ft,"⊟","\\boxminus",!0);x(M,L,Ft,"⊞","\\boxplus",!0);x(M,L,Ft,"⋇","\\divideontimes",!0);x(M,L,Ft,"⋉","\\ltimes",!0);x(M,L,Ft,"⋊","\\rtimes",!0);x(M,L,Ft,"⋋","\\leftthreetimes",!0);x(M,L,Ft,"⋌","\\rightthreetimes",!0);x(M,L,Ft,"⋏","\\curlywedge",!0);x(M,L,Ft,"⋎","\\curlyvee",!0);x(M,L,Ft,"⊝","\\circleddash",!0);x(M,L,Ft,"⊛","\\circledast",!0);x(M,L,Ft,"⋅","\\centerdot");x(M,L,Ft,"⊺","\\intercal",!0);x(M,L,Ft,"⋒","\\doublecap");x(M,L,Ft,"⋓","\\doublecup");x(M,L,Ft,"⊠","\\boxtimes",!0);x(M,L,X,"⇢","\\dashrightarrow",!0);x(M,L,X,"⇠","\\dashleftarrow",!0);x(M,L,X,"⇇","\\leftleftarrows",!0);x(M,L,X,"⇆","\\leftrightarrows",!0);x(M,L,X,"⇚","\\Lleftarrow",!0);x(M,L,X,"↞","\\twoheadleftarrow",!0);x(M,L,X,"↢","\\leftarrowtail",!0);x(M,L,X,"↫","\\looparrowleft",!0);x(M,L,X,"⇋","\\leftrightharpoons",!0);x(M,L,X,"↶","\\curvearrowleft",!0);x(M,L,X,"↺","\\circlearrowleft",!0);x(M,L,X,"↰","\\Lsh",!0);x(M,L,X,"⇈","\\upuparrows",!0);x(M,L,X,"↿","\\upharpoonleft",!0);x(M,L,X,"⇃","\\downharpoonleft",!0);x(M,w,X,"⊶","\\origof",!0);x(M,w,X,"⊷","\\imageof",!0);x(M,L,X,"⊸","\\multimap",!0);x(M,L,X,"↭","\\leftrightsquigarrow",!0);x(M,L,X,"⇉","\\rightrightarrows",!0);x(M,L,X,"⇄","\\rightleftarrows",!0);x(M,L,X,"↠","\\twoheadrightarrow",!0);x(M,L,X,"↣","\\rightarrowtail",!0);x(M,L,X,"↬","\\looparrowright",!0);x(M,L,X,"↷","\\curvearrowright",!0);x(M,L,X,"↻","\\circlearrowright",!0);x(M,L,X,"↱","\\Rsh",!0);x(M,L,X,"⇊","\\downdownarrows",!0);x(M,L,X,"↾","\\upharpoonright",!0);x(M,L,X,"⇂","\\downharpoonright",!0);x(M,L,X,"⇝","\\rightsquigarrow",!0);x(M,L,X,"⇝","\\leadsto");x(M,L,X,"⇛","\\Rrightarrow",!0);x(M,L,X,"↾","\\restriction");x(M,w,F,"‘","`");x(M,w,F,"$","\\$");x(Tt,w,F,"$","\\$");x(Tt,w,F,"$","\\textdollar");x(M,w,F,"%","\\%");x(Tt,w,F,"%","\\%");x(M,w,F,"_","\\_");x(Tt,w,F,"_","\\_");x(Tt,w,F,"_","\\textunderscore");x(M,w,F,"∠","\\angle",!0);x(M,w,F,"∞","\\infty",!0);x(M,w,F,"′","\\prime");x(M,w,F,"△","\\triangle");x(M,w,F,"Γ","\\Gamma",!0);x(M,w,F,"Δ","\\Delta",!0);x(M,w,F,"Θ","\\Theta",!0);x(M,w,F,"Λ","\\Lambda",!0);x(M,w,F,"Ξ","\\Xi",!0);x(M,w,F,"Π","\\Pi",!0);x(M,w,F,"Σ","\\Sigma",!0);x(M,w,F,"Υ","\\Upsilon",!0);x(M,w,F,"Φ","\\Phi",!0);x(M,w,F,"Ψ","\\Psi",!0);x(M,w,F,"Ω","\\Omega",!0);x(M,w,F,"A","Α");x(M,w,F,"B","Β");x(M,w,F,"E","Ε");x(M,w,F,"Z","Ζ");x(M,w,F,"H","Η");x(M,w,F,"I","Ι");x(M,w,F,"K","Κ");x(M,w,F,"M","Μ");x(M,w,F,"N","Ν");x(M,w,F,"O","Ο");x(M,w,F,"P","Ρ");x(M,w,F,"T","Τ");x(M,w,F,"X","Χ");x(M,w,F,"¬","\\neg",!0);x(M,w,F,"¬","\\lnot");x(M,w,F,"⊤","\\top");x(M,w,F,"⊥","\\bot");x(M,w,F,"∅","\\emptyset");x(M,L,F,"∅","\\varnothing");x(M,w,ue,"α","\\alpha",!0);x(M,w,ue,"β","\\beta",!0);x(M,w,ue,"γ","\\gamma",!0);x(M,w,ue,"δ","\\delta",!0);x(M,w,ue,"ϵ","\\epsilon",!0);x(M,w,ue,"ζ","\\zeta",!0);x(M,w,ue,"η","\\eta",!0);x(M,w,ue,"θ","\\theta",!0);x(M,w,ue,"ι","\\iota",!0);x(M,w,ue,"κ","\\kappa",!0);x(M,w,ue,"λ","\\lambda",!0);x(M,w,ue,"μ","\\mu",!0);x(M,w,ue,"ν","\\nu",!0);x(M,w,ue,"ξ","\\xi",!0);x(M,w,ue,"ο","\\omicron",!0);x(M,w,ue,"π","\\pi",!0);x(M,w,ue,"ρ","\\rho",!0);x(M,w,ue,"σ","\\sigma",!0);x(M,w,ue,"τ","\\tau",!0);x(M,w,ue,"υ","\\upsilon",!0);x(M,w,ue,"ϕ","\\phi",!0);x(M,w,ue,"χ","\\chi",!0);x(M,w,ue,"ψ","\\psi",!0);x(M,w,ue,"ω","\\omega",!0);x(M,w,ue,"ε","\\varepsilon",!0);x(M,w,ue,"ϑ","\\vartheta",!0);x(M,w,ue,"ϖ","\\varpi",!0);x(M,w,ue,"ϱ","\\varrho",!0);x(M,w,ue,"ς","\\varsigma",!0);x(M,w,ue,"φ","\\varphi",!0);x(M,w,Ft,"∗","*",!0);x(M,w,Ft,"+","+");x(M,w,Ft,"−","-",!0);x(M,w,Ft,"⋅","\\cdot",!0);x(M,w,Ft,"∘","\\circ",!0);x(M,w,Ft,"÷","\\div",!0);x(M,w,Ft,"±","\\pm",!0);x(M,w,Ft,"×","\\times",!0);x(M,w,Ft,"∩","\\cap",!0);x(M,w,Ft,"∪","\\cup",!0);x(M,w,Ft,"∖","\\setminus",!0);x(M,w,Ft,"∧","\\land");x(M,w,Ft,"∨","\\lor");x(M,w,Ft,"∧","\\wedge",!0);x(M,w,Ft,"∨","\\vee",!0);x(M,w,F,"√","\\surd");x(M,w,ml,"⟨","\\langle",!0);x(M,w,ml,"∣","\\lvert");x(M,w,ml,"∥","\\lVert");x(M,w,zn,"?","?");x(M,w,zn,"!","!");x(M,w,zn,"⟩","\\rangle",!0);x(M,w,zn,"∣","\\rvert");x(M,w,zn,"∥","\\rVert");x(M,w,X,"=","=");x(M,w,X,":",":");x(M,w,X,"≈","\\approx",!0);x(M,w,X,"≅","\\cong",!0);x(M,w,X,"≥","\\ge");x(M,w,X,"≥","\\geq",!0);x(M,w,X,"←","\\gets");x(M,w,X,">","\\gt",!0);x(M,w,X,"∈","\\in",!0);x(M,w,X,"","\\@not");x(M,w,X,"⊂","\\subset",!0);x(M,w,X,"⊃","\\supset",!0);x(M,w,X,"⊆","\\subseteq",!0);x(M,w,X,"⊇","\\supseteq",!0);x(M,L,X,"⊈","\\nsubseteq",!0);x(M,L,X,"⊉","\\nsupseteq",!0);x(M,w,X,"⊨","\\models");x(M,w,X,"←","\\leftarrow",!0);x(M,w,X,"≤","\\le");x(M,w,X,"≤","\\leq",!0);x(M,w,X,"<","\\lt",!0);x(M,w,X,"→","\\rightarrow",!0);x(M,w,X,"→","\\to");x(M,L,X,"≱","\\ngeq",!0);x(M,L,X,"≰","\\nleq",!0);x(M,w,as," ","\\ ");x(M,w,as," ","\\space");x(M,w,as," ","\\nobreakspace");x(Tt,w,as," ","\\ ");x(Tt,w,as," "," ");x(Tt,w,as," ","\\space");x(Tt,w,as," ","\\nobreakspace");x(M,w,as,null,"\\nobreak");x(M,w,as,null,"\\allowbreak");x(M,w,e4,",",",");x(M,w,e4,";",";");x(M,L,Ft,"⊼","\\barwedge",!0);x(M,L,Ft,"⊻","\\veebar",!0);x(M,w,Ft,"⊙","\\odot",!0);x(M,w,Ft,"⊕","\\oplus",!0);x(M,w,Ft,"⊗","\\otimes",!0);x(M,w,F,"∂","\\partial",!0);x(M,w,Ft,"⊘","\\oslash",!0);x(M,L,Ft,"⊚","\\circledcirc",!0);x(M,L,Ft,"⊡","\\boxdot",!0);x(M,w,Ft,"△","\\bigtriangleup");x(M,w,Ft,"▽","\\bigtriangledown");x(M,w,Ft,"†","\\dagger");x(M,w,Ft,"⋄","\\diamond");x(M,w,Ft,"⋆","\\star");x(M,w,Ft,"◃","\\triangleleft");x(M,w,Ft,"▹","\\triangleright");x(M,w,ml,"{","\\{");x(Tt,w,F,"{","\\{");x(Tt,w,F,"{","\\textbraceleft");x(M,w,zn,"}","\\}");x(Tt,w,F,"}","\\}");x(Tt,w,F,"}","\\textbraceright");x(M,w,ml,"{","\\lbrace");x(M,w,zn,"}","\\rbrace");x(M,w,ml,"[","\\lbrack",!0);x(Tt,w,F,"[","\\lbrack",!0);x(M,w,zn,"]","\\rbrack",!0);x(Tt,w,F,"]","\\rbrack",!0);x(M,w,ml,"(","\\lparen",!0);x(M,w,zn,")","\\rparen",!0);x(Tt,w,F,"<","\\textless",!0);x(Tt,w,F,">","\\textgreater",!0);x(M,w,ml,"⌊","\\lfloor",!0);x(M,w,zn,"⌋","\\rfloor",!0);x(M,w,ml,"⌈","\\lceil",!0);x(M,w,zn,"⌉","\\rceil",!0);x(M,w,F,"\\","\\backslash");x(M,w,F,"∣","|");x(M,w,F,"∣","\\vert");x(Tt,w,F,"|","\\textbar",!0);x(M,w,F,"∥","\\|");x(M,w,F,"∥","\\Vert");x(Tt,w,F,"∥","\\textbardbl");x(Tt,w,F,"~","\\textasciitilde");x(Tt,w,F,"\\","\\textbackslash");x(Tt,w,F,"^","\\textasciicircum");x(M,w,X,"↑","\\uparrow",!0);x(M,w,X,"⇑","\\Uparrow",!0);x(M,w,X,"↓","\\downarrow",!0);x(M,w,X,"⇓","\\Downarrow",!0);x(M,w,X,"↕","\\updownarrow",!0);x(M,w,X,"⇕","\\Updownarrow",!0);x(M,w,C0,"∐","\\coprod");x(M,w,C0,"⋁","\\bigvee");x(M,w,C0,"⋀","\\bigwedge");x(M,w,C0,"⨄","\\biguplus");x(M,w,C0,"⋂","\\bigcap");x(M,w,C0,"⋃","\\bigcup");x(M,w,C0,"∫","\\int");x(M,w,C0,"∫","\\intop");x(M,w,C0,"∬","\\iint");x(M,w,C0,"∭","\\iiint");x(M,w,C0,"∏","\\prod");x(M,w,C0,"∑","\\sum");x(M,w,C0,"⨂","\\bigotimes");x(M,w,C0,"⨁","\\bigoplus");x(M,w,C0,"⨀","\\bigodot");x(M,w,C0,"∮","\\oint");x(M,w,C0,"∯","\\oiint");x(M,w,C0,"∰","\\oiiint");x(M,w,C0,"⨆","\\bigsqcup");x(M,w,C0,"∫","\\smallint");x(Tt,w,wc,"…","\\textellipsis");x(M,w,wc,"…","\\mathellipsis");x(Tt,w,wc,"…","\\ldots",!0);x(M,w,wc,"…","\\ldots",!0);x(M,w,wc,"⋯","\\@cdots",!0);x(M,w,wc,"⋱","\\ddots",!0);x(M,w,F,"⋮","\\varvdots");x(Tt,w,F,"⋮","\\varvdots");x(M,w,Ka,"ˊ","\\acute");x(M,w,Ka,"ˋ","\\grave");x(M,w,Ka,"¨","\\ddot");x(M,w,Ka,"~","\\tilde");x(M,w,Ka,"ˉ","\\bar");x(M,w,Ka,"˘","\\breve");x(M,w,Ka,"ˇ","\\check");x(M,w,Ka,"^","\\hat");x(M,w,Ka,"⃗","\\vec");x(M,w,Ka,"˙","\\dot");x(M,w,Ka,"˚","\\mathring");x(M,w,ue,"","\\@imath");x(M,w,ue,"","\\@jmath");x(M,w,F,"ı","ı");x(M,w,F,"ȷ","ȷ");x(Tt,w,F,"ı","\\i",!0);x(Tt,w,F,"ȷ","\\j",!0);x(Tt,w,F,"ß","\\ss",!0);x(Tt,w,F,"æ","\\ae",!0);x(Tt,w,F,"œ","\\oe",!0);x(Tt,w,F,"ø","\\o",!0);x(Tt,w,F,"Æ","\\AE",!0);x(Tt,w,F,"Œ","\\OE",!0);x(Tt,w,F,"Ø","\\O",!0);x(Tt,w,Ka,"ˊ","\\'");x(Tt,w,Ka,"ˋ","\\`");x(Tt,w,Ka,"ˆ","\\^");x(Tt,w,Ka,"˜","\\~");x(Tt,w,Ka,"ˉ","\\=");x(Tt,w,Ka,"˘","\\u");x(Tt,w,Ka,"˙","\\.");x(Tt,w,Ka,"¸","\\c");x(Tt,w,Ka,"˚","\\r");x(Tt,w,Ka,"ˇ","\\v");x(Tt,w,Ka,"¨",'\\"');x(Tt,w,Ka,"˝","\\H");x(Tt,w,Ka,"◯","\\textcircled");var ym={"--":!0,"---":!0,"``":!0,"''":!0};x(Tt,w,F,"–","--",!0);x(Tt,w,F,"–","\\textendash");x(Tt,w,F,"—","---",!0);x(Tt,w,F,"—","\\textemdash");x(Tt,w,F,"‘","`",!0);x(Tt,w,F,"‘","\\textquoteleft");x(Tt,w,F,"’","'",!0);x(Tt,w,F,"’","\\textquoteright");x(Tt,w,F,"“","``",!0);x(Tt,w,F,"“","\\textquotedblleft");x(Tt,w,F,"”","''",!0);x(Tt,w,F,"”","\\textquotedblright");x(M,w,F,"°","\\degree",!0);x(Tt,w,F,"°","\\degree");x(Tt,w,F,"°","\\textdegree",!0);x(M,w,F,"£","\\pounds");x(M,w,F,"£","\\mathsterling",!0);x(Tt,w,F,"£","\\pounds");x(Tt,w,F,"£","\\textsterling",!0);x(M,L,F,"✠","\\maltese");x(Tt,L,F,"✠","\\maltese");var I3='0123456789/@."';for(var ud=0;ud<I3.length;ud++){var P3=I3.charAt(ud);x(M,w,F,P3,P3)}var $3='0123456789!@*()-=+";:?/.,';for(var od=0;od<$3.length;od++){var t6=$3.charAt(od);x(Tt,w,F,t6,t6)}var Q2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var cd=0;cd<Q2.length;cd++){var w2=Q2.charAt(cd);x(M,w,ue,w2,w2),x(Tt,w,F,w2,w2)}x(M,L,F,"C","ℂ");x(Tt,L,F,"C","ℂ");x(M,L,F,"H","ℍ");x(Tt,L,F,"H","ℍ");x(M,L,F,"N","ℕ");x(Tt,L,F,"N","ℕ");x(M,L,F,"P","ℙ");x(Tt,L,F,"P","ℙ");x(M,L,F,"Q","ℚ");x(Tt,L,F,"Q","ℚ");x(M,L,F,"R","ℝ");x(Tt,L,F,"R","ℝ");x(M,L,F,"Z","ℤ");x(Tt,L,F,"Z","ℤ");x(M,w,ue,"h","ℎ");x(Tt,w,ue,"h","ℎ");var ge="";for(var Mn=0;Mn<Q2.length;Mn++){var s0=Q2.charAt(Mn);ge=String.fromCharCode(55349,56320+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge),ge=String.fromCharCode(55349,56372+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge),ge=String.fromCharCode(55349,56424+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge),ge=String.fromCharCode(55349,56580+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge),ge=String.fromCharCode(55349,56684+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge),ge=String.fromCharCode(55349,56736+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge),ge=String.fromCharCode(55349,56788+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge),ge=String.fromCharCode(55349,56840+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge),ge=String.fromCharCode(55349,56944+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge),Mn<26&&(ge=String.fromCharCode(55349,56632+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge),ge=String.fromCharCode(55349,56476+Mn),x(M,w,ue,s0,ge),x(Tt,w,F,s0,ge))}ge="𝕜";x(M,w,ue,"k",ge);x(Tt,w,F,"k",ge);for(var $u=0;$u<10;$u++){var Is=$u.toString();ge=String.fromCharCode(55349,57294+$u),x(M,w,ue,Is,ge),x(Tt,w,F,Is,ge),ge=String.fromCharCode(55349,57314+$u),x(M,w,ue,Is,ge),x(Tt,w,F,Is,ge),ge=String.fromCharCode(55349,57324+$u),x(M,w,ue,Is,ge),x(Tt,w,F,Is,ge),ge=String.fromCharCode(55349,57334+$u),x(M,w,ue,Is,ge),x(Tt,w,F,Is,ge)}var qd="ÐÞþ";for(var hd=0;hd<qd.length;hd++){var D2=qd.charAt(hd);x(M,w,ue,D2,D2),x(Tt,w,F,D2,D2)}var N2=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],e6=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Zv=function(t,a){var i=t.charCodeAt(0),o=t.charCodeAt(1),h=(i-55296)*1024+(o-56320)+65536,d=a==="math"?0:1;if(119808<=h&&h<120484){var g=Math.floor((h-119808)/26);return[N2[g][2],N2[g][d]]}else if(120782<=h&&h<=120831){var p=Math.floor((h-120782)/10);return[e6[p][2],e6[p][d]]}else{if(h===120485||h===120486)return[N2[0][2],N2[0][d]];if(120486<h&&h<120782)return["",""];throw new Dt("Unsupported character: "+t)}},a4=function(t,a,i){return Ra[i][t]&&Ra[i][t].replace&&(t=Ra[i][t].replace),{value:t,metrics:a5(t,a,i)}},Ti=function(t,a,i,o,h){var d=a4(t,a,i),g=d.metrics;t=d.value;var p;if(g){var b=g.italic;(i==="text"||o&&o.font==="mathit")&&(b=0),p=new Wl(t,g.height,g.depth,b,g.skew,g.width,h)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+a+"' and mode '"+i+"'")),p=new Wl(t,0,0,0,0,0,h);if(o){p.maxFontSize=o.sizeMultiplier,o.style.isTight()&&p.classes.push("mtight");var E=o.getColor();E&&(p.style.color=E)}return p},Jv=function(t,a,i,o){return o===void 0&&(o=[]),i.font==="boldsymbol"&&a4(t,"Main-Bold",a).metrics?Ti(t,"Main-Bold",a,i,o.concat(["mathbf"])):t==="\\"||Ra[a][t].font==="main"?Ti(t,"Main-Regular",a,i,o):Ti(t,"AMS-Regular",a,i,o.concat(["amsrm"]))},Fv=function(t,a,i,o,h){return h!=="textord"&&a4(t,"Math-BoldItalic",a).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Wv=function(t,a,i){var o=t.mode,h=t.text,d=["mord"],g=o==="math"||o==="text"&&a.font,p=g?a.font:a.fontFamily,b="",E="";if(h.charCodeAt(0)===55349&&([b,E]=Zv(h,o)),b.length>0)return Ti(h,b,o,a,d.concat(E));if(p){var _,A;if(p==="boldsymbol"){var D=Fv(h,o,a,d,i);_=D.fontName,A=[D.fontClass]}else g?(_=xm[p].fontName,A=[p]):(_=R2(p,a.fontWeight,a.fontShape),A=[p,a.fontWeight,a.fontShape]);if(a4(h,_,o).metrics)return Ti(h,_,o,a,d.concat(A));if(ym.hasOwnProperty(h)&&_.slice(0,10)==="Typewriter"){for(var C=[],H=0;H<h.length;H++)C.push(Ti(h[H],_,o,a,d.concat(A)));return Sm(C)}}if(i==="mathord")return Ti(h,"Math-Italic",o,a,d.concat(["mathnormal"]));if(i==="textord"){var U=Ra[o][h]&&Ra[o][h].font;if(U==="ams"){var Y=R2("amsrm",a.fontWeight,a.fontShape);return Ti(h,Y,o,a,d.concat("amsrm",a.fontWeight,a.fontShape))}else if(U==="main"||!U){var G=R2("textrm",a.fontWeight,a.fontShape);return Ti(h,G,o,a,d.concat(a.fontWeight,a.fontShape))}else{var Z=R2(U,a.fontWeight,a.fontShape);return Ti(h,Z,o,a,d.concat(Z,a.fontWeight,a.fontShape))}}else throw new Error("unexpected type: "+i+" in makeOrd")},Iv=(s,t)=>{if(au(s.classes)!==au(t.classes)||s.skew!==t.skew||s.maxFontSize!==t.maxFontSize)return!1;if(s.classes.length===1){var a=s.classes[0];if(a==="mbin"||a==="mord")return!1}for(var i in s.style)if(s.style.hasOwnProperty(i)&&s.style[i]!==t.style[i])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&s.style[o]!==t.style[o])return!1;return!0},Pv=s=>{for(var t=0;t<s.length-1;t++){var a=s[t],i=s[t+1];a instanceof Wl&&i instanceof Wl&&Iv(a,i)&&(a.text+=i.text,a.height=Math.max(a.height,i.height),a.depth=Math.max(a.depth,i.depth),a.italic=i.italic,s.splice(t+1,1),t--)}return s},l5=function(t){for(var a=0,i=0,o=0,h=0;h<t.children.length;h++){var d=t.children[h];d.height>a&&(a=d.height),d.depth>i&&(i=d.depth),d.maxFontSize>o&&(o=d.maxFontSize)}t.height=a,t.depth=i,t.maxFontSize=o},Jn=function(t,a,i,o){var h=new Ch(t,a,i,o);return l5(h),h},bm=(s,t,a,i)=>new Ch(s,t,a,i),$v=function(t,a,i){var o=Jn([t],[],a);return o.height=Math.max(i||a.fontMetrics().defaultRuleThickness,a.minRuleThickness),o.style.borderBottomWidth=Lt(o.height),o.maxFontSize=1,o},ty=function(t,a,i,o){var h=new n5(t,a,i,o);return l5(h),h},Sm=function(t){var a=new zh(t);return l5(a),a},ey=function(t,a){return t instanceof zh?Jn([],[t],a):t},ay=function(t){if(t.positionType==="individualShift"){for(var a=t.children,i=[a[0]],o=-a[0].shift-a[0].elem.depth,h=o,d=1;d<a.length;d++){var g=-a[d].shift-h-a[d].elem.depth,p=g-(a[d-1].elem.height+a[d-1].elem.depth);h=h+g,i.push({type:"kern",size:p}),i.push(a[d])}return{children:i,depth:o}}var b;if(t.positionType==="top"){for(var E=t.positionData,_=0;_<t.children.length;_++){var A=t.children[_];E-=A.type==="kern"?A.size:A.elem.height+A.elem.depth}b=E}else if(t.positionType==="bottom")b=-t.positionData;else{var D=t.children[0];if(D.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")b=-D.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")b=-D.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:b}},ny=function(t,a){for(var{children:i,depth:o}=ay(t),h=0,d=0;d<i.length;d++){var g=i[d];if(g.type==="elem"){var p=g.elem;h=Math.max(h,p.maxFontSize,p.height)}}h+=2;var b=Jn(["pstrut"],[]);b.style.height=Lt(h);for(var E=[],_=o,A=o,D=o,C=0;C<i.length;C++){var H=i[C];if(H.type==="kern")D+=H.size;else{var U=H.elem,Y=H.wrapperClasses||[],G=H.wrapperStyle||{},Z=Jn(Y,[b,U],void 0,G);Z.style.top=Lt(-h-D-U.depth),H.marginLeft&&(Z.style.marginLeft=H.marginLeft),H.marginRight&&(Z.style.marginRight=H.marginRight),E.push(Z),D+=U.height+U.depth}_=Math.min(_,D),A=Math.max(A,D)}var q=Jn(["vlist"],E);q.style.height=Lt(A);var P;if(_<0){var ut=Jn([],[]),rt=Jn(["vlist"],[ut]);rt.style.height=Lt(-_);var ot=Jn(["vlist-s"],[new Wl("​")]);P=[Jn(["vlist-r"],[q,ot]),Jn(["vlist-r"],[rt])]}else P=[Jn(["vlist-r"],[q])];var Et=Jn(["vlist-t"],P);return P.length===2&&Et.classes.push("vlist-t2"),Et.height=A,Et.depth=-_,Et},ly=(s,t)=>{var a=Jn(["mspace"],[],t),i=e0(s,t);return a.style.marginRight=Lt(i),a},R2=function(t,a,i){var o="";switch(t){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=t}var h;return a==="textbf"&&i==="textit"?h="BoldItalic":a==="textbf"?h="Bold":a==="textit"?h="Italic":h="Regular",o+"-"+h},xm={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]},iy=function(t,a){var[i,o,h]=Tm[t],d=new nu(i),g=new Wr([d],{width:Lt(o),height:Lt(h),style:"width:"+Lt(o),viewBox:"0 0 "+1e3*o+" "+1e3*h,preserveAspectRatio:"xMinYMin"}),p=bm(["overlay"],[g],a);return p.height=h,p.style.height=Lt(h),p.style.width=Lt(o),p},nt={fontMap:xm,makeSymbol:Ti,mathsym:Jv,makeSpan:Jn,makeSvgSpan:bm,makeLineSpan:$v,makeAnchor:ty,makeFragment:Sm,wrapFragment:ey,makeVList:ny,makeOrd:Wv,makeGlue:ly,staticSvg:iy,svgData:Tm,tryCombineChars:Pv},t0={number:3,unit:"mu"},to={number:4,unit:"mu"},Qr={number:5,unit:"mu"},ry={mord:{mop:t0,mbin:to,mrel:Qr,minner:t0},mop:{mord:t0,mop:t0,mrel:Qr,minner:t0},mbin:{mord:to,mop:to,mopen:to,minner:to},mrel:{mord:Qr,mop:Qr,mopen:Qr,minner:Qr},mopen:{},mclose:{mop:t0,mbin:to,mrel:Qr,minner:t0},mpunct:{mord:t0,mop:t0,mrel:Qr,mopen:t0,mclose:t0,mpunct:t0,minner:t0},minner:{mord:t0,mop:t0,mbin:to,mrel:Qr,mopen:t0,mpunct:t0,minner:t0}},sy={mord:{mop:t0},mop:{mord:t0,mop:t0},mbin:{},mrel:{},mopen:{},mclose:{mop:t0},mpunct:{},minner:{mop:t0}},Em={},K2={},Z2={};function Jt(s){for(var{type:t,names:a,props:i,handler:o,htmlBuilder:h,mathmlBuilder:d}=s,g={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:o},p=0;p<a.length;++p)Em[a[p]]=g;t&&(h&&(K2[t]=h),d&&(Z2[t]=d))}function so(s){var{type:t,htmlBuilder:a,mathmlBuilder:i}=s;Jt({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:a,mathmlBuilder:i})}var J2=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},g0=function(t){return t.type==="ordgroup"?t.body:[t]},Ir=nt.makeSpan,uy=["leftmost","mbin","mopen","mrel","mop","mpunct"],oy=["rightmost","mrel","mclose","mpunct"],cy={display:oe.DISPLAY,text:oe.TEXT,script:oe.SCRIPT,scriptscript:oe.SCRIPTSCRIPT},hy={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},U0=function(t,a,i,o){o===void 0&&(o=[null,null]);for(var h=[],d=0;d<t.length;d++){var g=We(t[d],a);if(g instanceof zh){var p=g.children;h.push(...p)}else h.push(g)}if(nt.tryCombineChars(h),!i)return h;var b=a;if(t.length===1){var E=t[0];E.type==="sizing"?b=a.havingSize(E.size):E.type==="styling"&&(b=a.havingStyle(cy[E.style]))}var _=Ir([o[0]||"leftmost"],[],a),A=Ir([o[1]||"rightmost"],[],a),D=i==="root";return a6(h,(C,H)=>{var U=H.classes[0],Y=C.classes[0];U==="mbin"&&oy.includes(Y)?H.classes[0]="mord":Y==="mbin"&&uy.includes(U)&&(C.classes[0]="mord")},{node:_},A,D),a6(h,(C,H)=>{var U=Ld(H),Y=Ld(C),G=U&&Y?C.hasClass("mtight")?sy[U][Y]:ry[U][Y]:null;if(G)return nt.makeGlue(G,b)},{node:_},A,D),h},a6=function s(t,a,i,o,h){o&&t.push(o);for(var d=0;d<t.length;d++){var g=t[d],p=_m(g);if(p){s(p.children,a,i,null,h);continue}var b=!g.hasClass("mspace");if(b){var E=a(g,i.node);E&&(i.insertAfter?i.insertAfter(E):(t.unshift(E),d++))}b?i.node=g:h&&g.hasClass("newline")&&(i.node=Ir(["leftmost"])),i.insertAfter=(_=>A=>{t.splice(_+1,0,A),d++})(d)}o&&t.pop()},_m=function(t){return t instanceof zh||t instanceof n5||t instanceof Ch&&t.hasClass("enclosing")?t:null},fy=function s(t,a){var i=_m(t);if(i){var o=i.children;if(o.length){if(a==="right")return s(o[o.length-1],"right");if(a==="left")return s(o[0],"left")}}return t},Ld=function(t,a){return t?(a&&(t=fy(t,a)),hy[t.classes[0]]||null):null},Mh=function(t,a){var i=["nulldelimiter"].concat(t.baseSizingClasses());return Ir(a.concat(i))},We=function(t,a,i){if(!t)return Ir();if(K2[t.type]){var o=K2[t.type](t,a);if(i&&a.size!==i.size){o=Ir(a.sizingClasses(i),[o],a);var h=a.sizeMultiplier/i.sizeMultiplier;o.height*=h,o.depth*=h}return o}else throw new Dt("Got group of unknown type: '"+t.type+"'")};function O2(s,t){var a=Ir(["base"],s,t),i=Ir(["strut"]);return i.style.height=Lt(a.height+a.depth),a.depth&&(i.style.verticalAlign=Lt(-a.depth)),a.children.unshift(i),a}function kd(s,t){var a=null;s.length===1&&s[0].type==="tag"&&(a=s[0].tag,s=s[0].body);var i=U0(s,t,"root"),o;i.length===2&&i[1].hasClass("tag")&&(o=i.pop());for(var h=[],d=[],g=0;g<i.length;g++)if(d.push(i[g]),i[g].hasClass("mbin")||i[g].hasClass("mrel")||i[g].hasClass("allowbreak")){for(var p=!1;g<i.length-1&&i[g+1].hasClass("mspace")&&!i[g+1].hasClass("newline");)g++,d.push(i[g]),i[g].hasClass("nobreak")&&(p=!0);p||(h.push(O2(d,t)),d=[])}else i[g].hasClass("newline")&&(d.pop(),d.length>0&&(h.push(O2(d,t)),d=[]),h.push(i[g]));d.length>0&&h.push(O2(d,t));var b;a?(b=O2(U0(a,t,!0)),b.classes=["tag"],h.push(b)):o&&h.push(o);var E=Ir(["katex-html"],h);if(E.setAttribute("aria-hidden","true"),b){var _=b.children[0];_.style.height=Lt(E.height+E.depth),E.depth&&(_.style.verticalAlign=Lt(-E.depth))}return E}function Mm(s){return new zh(s)}class hl{constructor(t,a,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=a||[],this.classes=i||[]}setAttribute(t,a){this.attributes[t]=a}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);this.classes.length>0&&(t.className=au(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof sr&&this.children[i+1]instanceof sr){for(var o=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof sr;)o+=this.children[++i].toText();t.appendChild(new sr(o).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&(t+=" "+a+'="',t+=$e.escape(this.attributes[a]),t+='"');this.classes.length>0&&(t+=' class ="'+$e.escape(au(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class sr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return $e.escape(this.toText())}toText(){return this.text}}class dy{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Lt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Lt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var zt={MathNode:hl,TextNode:sr,SpaceNode:dy,newDocumentFragment:Mm},Il=function(t,a,i){return Ra[a][t]&&Ra[a][t].replace&&t.charCodeAt(0)!==55349&&!(ym.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=Ra[a][t].replace),new zt.TextNode(t)},i5=function(t){return t.length===1?t[0]:new zt.MathNode("mrow",t)},r5=function(t,a){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 i=a.font;if(!i||i==="mathnormal")return null;var o=t.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathsfit")return"sans-serif-italic";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";var h=t.text;if(["\\imath","\\jmath"].includes(h))return null;Ra[o][h]&&Ra[o][h].replace&&(h=Ra[o][h].replace);var d=nt.fontMap[i].fontName;return a5(h,d,o)?nt.fontMap[i].variant:null};function fd(s){if(!s)return!1;if(s.type==="mi"&&s.children.length===1){var t=s.children[0];return t instanceof sr&&t.text==="."}else if(s.type==="mo"&&s.children.length===1&&s.getAttribute("separator")==="true"&&s.getAttribute("lspace")==="0em"&&s.getAttribute("rspace")==="0em"){var a=s.children[0];return a instanceof sr&&a.text===","}else return!1}var Wn=function(t,a,i){if(t.length===1){var o=ba(t[0],a);return i&&o instanceof hl&&o.type==="mo"&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var h=[],d,g=0;g<t.length;g++){var p=ba(t[g],a);if(p instanceof hl&&d instanceof hl){if(p.type==="mtext"&&d.type==="mtext"&&p.getAttribute("mathvariant")===d.getAttribute("mathvariant")){d.children.push(...p.children);continue}else if(p.type==="mn"&&d.type==="mn"){d.children.push(...p.children);continue}else if(fd(p)&&d.type==="mn"){d.children.push(...p.children);continue}else if(p.type==="mn"&&fd(d))p.children=[...d.children,...p.children],h.pop();else if((p.type==="msup"||p.type==="msub")&&p.children.length>=1&&(d.type==="mn"||fd(d))){var b=p.children[0];b instanceof hl&&b.type==="mn"&&(b.children=[...d.children,...b.children],h.pop())}else if(d.type==="mi"&&d.children.length===1){var E=d.children[0];if(E instanceof sr&&E.text==="̸"&&(p.type==="mo"||p.type==="mi"||p.type==="mn")){var _=p.children[0];_ instanceof sr&&_.text.length>0&&(_.text=_.text.slice(0,1)+"̸"+_.text.slice(1),h.pop())}}}h.push(p),d=p}return h},lu=function(t,a,i){return i5(Wn(t,a,i))},ba=function(t,a){if(!t)return new zt.MathNode("mrow");if(Z2[t.type]){var i=Z2[t.type](t,a);return i}else throw new Dt("Got group of unknown type: '"+t.type+"'")};function n6(s,t,a,i,o){var h=Wn(s,a),d;h.length===1&&h[0]instanceof hl&&["mrow","mtable"].includes(h[0].type)?d=h[0]:d=new zt.MathNode("mrow",h);var g=new zt.MathNode("annotation",[new zt.TextNode(t)]);g.setAttribute("encoding","application/x-tex");var p=new zt.MathNode("semantics",[d,g]),b=new zt.MathNode("math",[p]);b.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&b.setAttribute("display","block");var E=o?"katex":"katex-mathml";return nt.makeSpan([E],[b])}var Am=function(t){return new Zr({style:t.displayMode?oe.DISPLAY:oe.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},zm=function(t,a){if(a.displayMode){var i=["katex-display"];a.leqno&&i.push("leqno"),a.fleqn&&i.push("fleqn"),t=nt.makeSpan(i,[t])}return t},my=function(t,a,i){var o=Am(i),h;if(i.output==="mathml")return n6(t,a,o,i.displayMode,!0);if(i.output==="html"){var d=kd(t,o);h=nt.makeSpan(["katex"],[d])}else{var g=n6(t,a,o,i.displayMode,!1),p=kd(t,o);h=nt.makeSpan(["katex"],[g,p])}return zm(h,i)},gy=function(t,a,i){var o=Am(i),h=kd(t,o),d=nt.makeSpan(["katex"],[h]);return zm(d,i)},py={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},vy=function(t){var a=new zt.MathNode("mo",[new zt.TextNode(py[t.replace(/^\\/,"")])]);return a.setAttribute("stretchy","true"),a},yy={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},by=function(t){return t.type==="ordgroup"?t.body.length:1},Sy=function(t,a){function i(){var g=4e5,p=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(p)){var b=t,E=by(b.base),_,A,D;if(E>5)p==="widehat"||p==="widecheck"?(_=420,g=2364,D=.42,A=p+"4"):(_=312,g=2340,D=.34,A="tilde4");else{var C=[1,1,2,2,3,3][E];p==="widehat"||p==="widecheck"?(g=[0,1062,2364,2364,2364][C],_=[0,239,300,360,420][C],D=[0,.24,.3,.3,.36,.42][C],A=p+C):(g=[0,600,1033,2339,2340][C],_=[0,260,286,306,312][C],D=[0,.26,.286,.3,.306,.34][C],A="tilde"+C)}var H=new nu(A),U=new Wr([H],{width:"100%",height:Lt(D),viewBox:"0 0 "+g+" "+_,preserveAspectRatio:"none"});return{span:nt.makeSvgSpan([],[U],a),minWidth:0,height:D}}else{var Y=[],G=yy[p],[Z,q,P]=G,ut=P/1e3,rt=Z.length,ot,Et;if(rt===1){var kt=G[3];ot=["hide-tail"],Et=[kt]}else if(rt===2)ot=["halfarrow-left","halfarrow-right"],Et=["xMinYMin","xMaxYMin"];else if(rt===3)ot=["brace-left","brace-center","brace-right"],Et=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
296
+ `+rt+" children.");for(var Vt=0;Vt<rt;Vt++){var St=new nu(Z[Vt]),te=new Wr([St],{width:"400em",height:Lt(ut),viewBox:"0 0 "+g+" "+P,preserveAspectRatio:Et[Vt]+" slice"}),jt=nt.makeSvgSpan([ot[Vt]],[te],a);if(rt===1)return{span:jt,minWidth:q,height:ut};jt.style.height=Lt(ut),Y.push(jt)}return{span:nt.makeSpan(["stretchy"],Y,a),minWidth:q,height:ut}}}var{span:o,minWidth:h,height:d}=i();return o.height=d,o.style.height=Lt(d),h>0&&(o.style.minWidth=Lt(h)),o},xy=function(t,a,i,o,h){var d,g=t.height+t.depth+i+o;if(/fbox|color|angl/.test(a)){if(d=nt.makeSpan(["stretchy",a],[],h),a==="fbox"){var p=h.color&&h.getColor();p&&(d.style.borderColor=p)}}else{var b=[];/^[bx]cancel$/.test(a)&&b.push(new Ud({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&b.push(new Ud({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var E=new Wr(b,{width:"100%",height:Lt(g)});d=nt.makeSvgSpan([],[E],h)}return d.height=g,d.style.height=Lt(g),d},Pr={encloseSpan:xy,mathMLnode:vy,svgSpan:Sy};function Ce(s,t){if(!s||s.type!==t)throw new Error("Expected node of type "+t+", but got "+(s?"node of type "+s.type:String(s)));return s}function s5(s){var t=n4(s);if(!t)throw new Error("Expected node of symbol group type, but got "+(s?"node of type "+s.type:String(s)));return t}function n4(s){return s&&(s.type==="atom"||Kv.hasOwnProperty(s.type))?s:null}var u5=(s,t)=>{var a,i,o;s&&s.type==="supsub"?(i=Ce(s.base,"accent"),a=i.base,s.base=a,o=Vv(We(s,t)),s.base=i):(i=Ce(s,"accent"),a=i.base);var h=We(a,t.havingCrampedStyle()),d=i.isShifty&&$e.isCharacterBox(a),g=0;if(d){var p=$e.getBaseElem(a),b=We(p,t.havingCrampedStyle());g=W3(b).skew}var E=i.label==="\\c",_=E?h.height+h.depth:Math.min(h.height,t.fontMetrics().xHeight),A;if(i.isStretchy)A=Pr.svgSpan(i,t),A=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"elem",elem:A,wrapperClasses:["svg-align"],wrapperStyle:g>0?{width:"calc(100% - "+Lt(2*g)+")",marginLeft:Lt(2*g)}:void 0}]},t);else{var D,C;i.label==="\\vec"?(D=nt.staticSvg("vec",t),C=nt.svgData.vec[1]):(D=nt.makeOrd({mode:i.mode,text:i.label},t,"textord"),D=W3(D),D.italic=0,C=D.width,E&&(_+=D.depth)),A=nt.makeSpan(["accent-body"],[D]);var H=i.label==="\\textcircled";H&&(A.classes.push("accent-full"),_=h.height);var U=g;H||(U-=C/2),A.style.left=Lt(U),i.label==="\\textcircled"&&(A.style.top=".2em"),A=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:-_},{type:"elem",elem:A}]},t)}var Y=nt.makeSpan(["mord","accent"],[A],t);return o?(o.children[0]=Y,o.height=Math.max(Y.height,o.height),o.classes[0]="mord",o):Y},Cm=(s,t)=>{var a=s.isStretchy?Pr.mathMLnode(s.label):new zt.MathNode("mo",[Il(s.label,s.mode)]),i=new zt.MathNode("mover",[ba(s.base,t),a]);return i.setAttribute("accent","true"),i},Ty=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(s=>"\\"+s).join("|"));Jt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(s,t)=>{var a=J2(t[0]),i=!Ty.test(s.funcName),o=!i||s.funcName==="\\widehat"||s.funcName==="\\widetilde"||s.funcName==="\\widecheck";return{type:"accent",mode:s.parser.mode,label:s.funcName,isStretchy:i,isShifty:o,base:a}},htmlBuilder:u5,mathmlBuilder:Cm});Jt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(s,t)=>{var a=t[0],i=s.parser.mode;return i==="math"&&(s.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+s.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:s.funcName,isStretchy:!1,isShifty:!0,base:a}},htmlBuilder:u5,mathmlBuilder:Cm});Jt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0];return{type:"accentUnder",mode:a.mode,label:i,base:o}},htmlBuilder:(s,t)=>{var a=We(s.base,t),i=Pr.svgSpan(s,t),o=s.label==="\\utilde"?.12:0,h=nt.makeVList({positionType:"top",positionData:a.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:a}]},t);return nt.makeSpan(["mord","accentunder"],[h],t)},mathmlBuilder:(s,t)=>{var a=Pr.mathMLnode(s.label),i=new zt.MathNode("munder",[ba(s.base,t),a]);return i.setAttribute("accentunder","true"),i}});var B2=s=>{var t=new zt.MathNode("mpadded",s?[s]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Jt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(s,t,a){var{parser:i,funcName:o}=s;return{type:"xArrow",mode:i.mode,label:o,body:t[0],below:a[0]}},htmlBuilder(s,t){var a=t.style,i=t.havingStyle(a.sup()),o=nt.wrapFragment(We(s.body,i,t),t),h=s.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(h+"-arrow-pad");var d;s.below&&(i=t.havingStyle(a.sub()),d=nt.wrapFragment(We(s.below,i,t),t),d.classes.push(h+"-arrow-pad"));var g=Pr.svgSpan(s,t),p=-t.fontMetrics().axisHeight+.5*g.height,b=-t.fontMetrics().axisHeight-.5*g.height-.111;(o.depth>.25||s.label==="\\xleftequilibrium")&&(b-=o.depth);var E;if(d){var _=-t.fontMetrics().axisHeight+d.height+.5*g.height+.111;E=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:b},{type:"elem",elem:g,shift:p},{type:"elem",elem:d,shift:_}]},t)}else E=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:b},{type:"elem",elem:g,shift:p}]},t);return E.children[0].children[0].children[1].classes.push("svg-align"),nt.makeSpan(["mrel","x-arrow"],[E],t)},mathmlBuilder(s,t){var a=Pr.mathMLnode(s.label);a.setAttribute("minsize",s.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(s.body){var o=B2(ba(s.body,t));if(s.below){var h=B2(ba(s.below,t));i=new zt.MathNode("munderover",[a,h,o])}else i=new zt.MathNode("mover",[a,o])}else if(s.below){var d=B2(ba(s.below,t));i=new zt.MathNode("munder",[a,d])}else i=B2(),i=new zt.MathNode("mover",[a,i]);return i}});var Ey=nt.makeSpan;function wm(s,t){var a=U0(s.body,t,!0);return Ey([s.mclass],a,t)}function Dm(s,t){var a,i=Wn(s.body,t);return s.mclass==="minner"?a=new zt.MathNode("mpadded",i):s.mclass==="mord"?s.isCharacterBox?(a=i[0],a.type="mi"):a=new zt.MathNode("mi",i):(s.isCharacterBox?(a=i[0],a.type="mo"):a=new zt.MathNode("mo",i),s.mclass==="mbin"?(a.attributes.lspace="0.22em",a.attributes.rspace="0.22em"):s.mclass==="mpunct"?(a.attributes.lspace="0em",a.attributes.rspace="0.17em"):s.mclass==="mopen"||s.mclass==="mclose"?(a.attributes.lspace="0em",a.attributes.rspace="0em"):s.mclass==="minner"&&(a.attributes.lspace="0.0556em",a.attributes.width="+0.1111em")),a}Jt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(s,t){var{parser:a,funcName:i}=s,o=t[0];return{type:"mclass",mode:a.mode,mclass:"m"+i.slice(5),body:g0(o),isCharacterBox:$e.isCharacterBox(o)}},htmlBuilder:wm,mathmlBuilder:Dm});var l4=s=>{var t=s.type==="ordgroup"&&s.body.length?s.body[0]:s;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Jt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(s,t){var{parser:a}=s;return{type:"mclass",mode:a.mode,mclass:l4(t[0]),body:g0(t[1]),isCharacterBox:$e.isCharacterBox(t[1])}}});Jt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(s,t){var{parser:a,funcName:i}=s,o=t[1],h=t[0],d;i!=="\\stackrel"?d=l4(o):d="mrel";var g={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:g0(o)},p={type:"supsub",mode:h.mode,base:g,sup:i==="\\underset"?null:h,sub:i==="\\underset"?h:null};return{type:"mclass",mode:a.mode,mclass:d,body:[p],isCharacterBox:$e.isCharacterBox(p)}},htmlBuilder:wm,mathmlBuilder:Dm});Jt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(s,t){var{parser:a}=s;return{type:"pmb",mode:a.mode,mclass:l4(t[0]),body:g0(t[0])}},htmlBuilder(s,t){var a=U0(s.body,t,!0),i=nt.makeSpan([s.mclass],a,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(s,t){var a=Wn(s.body,t),i=new zt.MathNode("mstyle",a);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var _y={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},l6=()=>({type:"styling",body:[],mode:"math",style:"display"}),i6=s=>s.type==="textord"&&s.text==="@",My=(s,t)=>(s.type==="mathord"||s.type==="atom")&&s.text===t;function Ay(s,t,a){var i=_y[s];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return a.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var o=a.callFunction("\\\\cdleft",[t[0]],[]),h={type:"atom",text:i,mode:"math",family:"rel"},d=a.callFunction("\\Big",[h],[]),g=a.callFunction("\\\\cdright",[t[1]],[]),p={type:"ordgroup",mode:"math",body:[o,d,g]};return a.callFunction("\\\\cdparent",[p],[])}case"\\\\cdlongequal":return a.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var b={type:"textord",text:"\\Vert",mode:"math"};return a.callFunction("\\Big",[b],[])}default:return{type:"textord",text:" ",mode:"math"}}}function zy(s){var t=[];for(s.gullet.beginGroup(),s.gullet.macros.set("\\cr","\\\\\\relax"),s.gullet.beginGroup();;){t.push(s.parseExpression(!1,"\\\\")),s.gullet.endGroup(),s.gullet.beginGroup();var a=s.fetch().text;if(a==="&"||a==="\\\\")s.consume();else if(a==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Dt("Expected \\\\ or \\cr or \\end",s.nextToken)}for(var i=[],o=[i],h=0;h<t.length;h++){for(var d=t[h],g=l6(),p=0;p<d.length;p++)if(!i6(d[p]))g.body.push(d[p]);else{i.push(g),p+=1;var b=s5(d[p]).text,E=new Array(2);if(E[0]={type:"ordgroup",mode:"math",body:[]},E[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(b)>-1))if("<>AV".indexOf(b)>-1)for(var _=0;_<2;_++){for(var A=!0,D=p+1;D<d.length;D++){if(My(d[D],b)){A=!1,p=D;break}if(i6(d[D]))throw new Dt("Missing a "+b+" character to complete a CD arrow.",d[D]);E[_].body.push(d[D])}if(A)throw new Dt("Missing a "+b+" character to complete a CD arrow.",d[p])}else throw new Dt('Expected one of "<>AV=|." after @',d[p]);var C=Ay(b,E,s),H={type:"styling",body:[C],mode:"math",style:"display"};i.push(H),g=l6()}h%2===0?i.push(g):i.shift(),i=[],o.push(i)}s.gullet.endGroup(),s.gullet.endGroup();var U=new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:U,colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}Jt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(s,t){var{parser:a,funcName:i}=s;return{type:"cdlabel",mode:a.mode,side:i.slice(4),label:t[0]}},htmlBuilder(s,t){var a=t.havingStyle(t.style.sup()),i=nt.wrapFragment(We(s.label,a,t),t);return i.classes.push("cd-label-"+s.side),i.style.bottom=Lt(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(s,t){var a=new zt.MathNode("mrow",[ba(s.label,t)]);return a=new zt.MathNode("mpadded",[a]),a.setAttribute("width","0"),s.side==="left"&&a.setAttribute("lspace","-1width"),a.setAttribute("voffset","0.7em"),a=new zt.MathNode("mstyle",[a]),a.setAttribute("displaystyle","false"),a.setAttribute("scriptlevel","1"),a}});Jt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(s,t){var{parser:a}=s;return{type:"cdlabelparent",mode:a.mode,fragment:t[0]}},htmlBuilder(s,t){var a=nt.wrapFragment(We(s.fragment,t),t);return a.classes.push("cd-vert-arrow"),a},mathmlBuilder(s,t){return new zt.MathNode("mrow",[ba(s.fragment,t)])}});Jt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(s,t){for(var{parser:a}=s,i=Ce(t[0],"ordgroup"),o=i.body,h="",d=0;d<o.length;d++){var g=Ce(o[d],"textord");h+=g.text}var p=parseInt(h),b;if(isNaN(p))throw new Dt("\\@char has non-numeric argument "+h);if(p<0||p>=1114111)throw new Dt("\\@char with invalid code point "+h);return p<=65535?b=String.fromCharCode(p):(p-=65536,b=String.fromCharCode((p>>10)+55296,(p&1023)+56320)),{type:"textord",mode:a.mode,text:b}}});var Nm=(s,t)=>{var a=U0(s.body,t.withColor(s.color),!1);return nt.makeFragment(a)},Rm=(s,t)=>{var a=Wn(s.body,t.withColor(s.color)),i=new zt.MathNode("mstyle",a);return i.setAttribute("mathcolor",s.color),i};Jt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(s,t){var{parser:a}=s,i=Ce(t[0],"color-token").color,o=t[1];return{type:"color",mode:a.mode,color:i,body:g0(o)}},htmlBuilder:Nm,mathmlBuilder:Rm});Jt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(s,t){var{parser:a,breakOnTokenText:i}=s,o=Ce(t[0],"color-token").color;a.gullet.macros.set("\\current@color",o);var h=a.parseExpression(!0,i);return{type:"color",mode:a.mode,color:o,body:h}},htmlBuilder:Nm,mathmlBuilder:Rm});Jt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(s,t,a){var{parser:i}=s,o=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,h=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:h,size:o&&Ce(o,"size").value}},htmlBuilder(s,t){var a=nt.makeSpan(["mspace"],[],t);return s.newLine&&(a.classes.push("newline"),s.size&&(a.style.marginTop=Lt(e0(s.size,t)))),a},mathmlBuilder(s,t){var a=new zt.MathNode("mspace");return s.newLine&&(a.setAttribute("linebreak","newline"),s.size&&a.setAttribute("height",Lt(e0(s.size,t)))),a}});var Yd={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Om=s=>{var t=s.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Dt("Expected a control sequence",s);return t},Cy=s=>{var t=s.gullet.popToken();return t.text==="="&&(t=s.gullet.popToken(),t.text===" "&&(t=s.gullet.popToken())),t},Bm=(s,t,a,i)=>{var o=s.gullet.macros.get(a.text);o==null&&(a.noexpand=!0,o={tokens:[a],numArgs:0,unexpandable:!s.gullet.isExpandable(a.text)}),s.gullet.macros.set(t,o,i)};Jt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(s){var{parser:t,funcName:a}=s;t.consumeSpaces();var i=t.fetch();if(Yd[i.text])return(a==="\\global"||a==="\\\\globallong")&&(i.text=Yd[i.text]),Ce(t.parseFunction(),"internal");throw new Dt("Invalid token after macro prefix",i)}});Jt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s){var{parser:t,funcName:a}=s,i=t.gullet.popToken(),o=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new Dt("Expected a control sequence",i);for(var h=0,d,g=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){d=t.gullet.future(),g[h].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new Dt('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==h+1)throw new Dt('Argument number "'+i.text+'" out of order');h++,g.push([])}else{if(i.text==="EOF")throw new Dt("Expected a macro definition");g[h].push(i.text)}var{tokens:p}=t.gullet.consumeArg();return d&&p.unshift(d),(a==="\\edef"||a==="\\xdef")&&(p=t.gullet.expandTokens(p),p.reverse()),t.gullet.macros.set(o,{tokens:p,numArgs:h,delimiters:g},a===Yd[a]),{type:"internal",mode:t.mode}}});Jt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s){var{parser:t,funcName:a}=s,i=Om(t.gullet.popToken());t.gullet.consumeSpaces();var o=Cy(t);return Bm(t,i,o,a==="\\\\globallet"),{type:"internal",mode:t.mode}}});Jt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s){var{parser:t,funcName:a}=s,i=Om(t.gullet.popToken()),o=t.gullet.popToken(),h=t.gullet.popToken();return Bm(t,i,h,a==="\\\\globalfuture"),t.gullet.pushToken(h),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var vh=function(t,a,i){var o=Ra.math[t]&&Ra.math[t].replace,h=a5(o||t,a,i);if(!h)throw new Error("Unsupported symbol "+t+" and font size "+a+".");return h},o5=function(t,a,i,o){var h=i.havingBaseStyle(a),d=nt.makeSpan(o.concat(h.sizingClasses(i)),[t],i),g=h.sizeMultiplier/i.sizeMultiplier;return d.height*=g,d.depth*=g,d.maxFontSize=h.sizeMultiplier,d},Hm=function(t,a,i){var o=a.havingBaseStyle(i),h=(1-a.sizeMultiplier/o.sizeMultiplier)*a.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Lt(h),t.height-=h,t.depth+=h},wy=function(t,a,i,o,h,d){var g=nt.makeSymbol(t,"Main-Regular",h,o),p=o5(g,a,o,d);return i&&Hm(p,o,a),p},Dy=function(t,a,i,o){return nt.makeSymbol(t,"Size"+a+"-Regular",i,o)},Gm=function(t,a,i,o,h,d){var g=Dy(t,a,h,o),p=o5(nt.makeSpan(["delimsizing","size"+a],[g],o),oe.TEXT,o,d);return i&&Hm(p,o,oe.TEXT),p},dd=function(t,a,i){var o;a==="Size1-Regular"?o="delim-size1":o="delim-size4";var h=nt.makeSpan(["delimsizinginner",o],[nt.makeSpan([],[nt.makeSymbol(t,a,i)])]);return{type:"elem",elem:h}},md=function(t,a,i){var o=rr["Size4-Regular"][t.charCodeAt(0)]?rr["Size4-Regular"][t.charCodeAt(0)][4]:rr["Size1-Regular"][t.charCodeAt(0)][4],h=new nu("inner",Hv(t,Math.round(1e3*a))),d=new Wr([h],{width:Lt(o),height:Lt(a),style:"width:"+Lt(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*a),preserveAspectRatio:"xMinYMin"}),g=nt.makeSvgSpan([],[d],i);return g.height=a,g.style.height=Lt(a),g.style.width=Lt(o),{type:"elem",elem:g}},Xd=.008,H2={type:"kern",size:-1*Xd},Ny=["|","\\lvert","\\rvert","\\vert"],Ry=["\\|","\\lVert","\\rVert","\\Vert"],Um=function(t,a,i,o,h,d){var g,p,b,E,_="",A=0;g=b=E=t,p=null;var D="Size1-Regular";t==="\\uparrow"?b=E="⏐":t==="\\Uparrow"?b=E="‖":t==="\\downarrow"?g=b="⏐":t==="\\Downarrow"?g=b="‖":t==="\\updownarrow"?(g="\\uparrow",b="⏐",E="\\downarrow"):t==="\\Updownarrow"?(g="\\Uparrow",b="‖",E="\\Downarrow"):Ny.includes(t)?(b="∣",_="vert",A=333):Ry.includes(t)?(b="∥",_="doublevert",A=556):t==="["||t==="\\lbrack"?(g="⎡",b="⎢",E="⎣",D="Size4-Regular",_="lbrack",A=667):t==="]"||t==="\\rbrack"?(g="⎤",b="⎥",E="⎦",D="Size4-Regular",_="rbrack",A=667):t==="\\lfloor"||t==="⌊"?(b=g="⎢",E="⎣",D="Size4-Regular",_="lfloor",A=667):t==="\\lceil"||t==="⌈"?(g="⎡",b=E="⎢",D="Size4-Regular",_="lceil",A=667):t==="\\rfloor"||t==="⌋"?(b=g="⎥",E="⎦",D="Size4-Regular",_="rfloor",A=667):t==="\\rceil"||t==="⌉"?(g="⎤",b=E="⎥",D="Size4-Regular",_="rceil",A=667):t==="("||t==="\\lparen"?(g="⎛",b="⎜",E="⎝",D="Size4-Regular",_="lparen",A=875):t===")"||t==="\\rparen"?(g="⎞",b="⎟",E="⎠",D="Size4-Regular",_="rparen",A=875):t==="\\{"||t==="\\lbrace"?(g="⎧",p="⎨",E="⎩",b="⎪",D="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(g="⎫",p="⎬",E="⎭",b="⎪",D="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(g="⎧",E="⎩",b="⎪",D="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(g="⎫",E="⎭",b="⎪",D="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(g="⎧",E="⎭",b="⎪",D="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(g="⎫",E="⎩",b="⎪",D="Size4-Regular");var C=vh(g,D,h),H=C.height+C.depth,U=vh(b,D,h),Y=U.height+U.depth,G=vh(E,D,h),Z=G.height+G.depth,q=0,P=1;if(p!==null){var ut=vh(p,D,h);q=ut.height+ut.depth,P=2}var rt=H+Z+q,ot=Math.max(0,Math.ceil((a-rt)/(P*Y))),Et=rt+ot*P*Y,kt=o.fontMetrics().axisHeight;i&&(kt*=o.sizeMultiplier);var Vt=Et/2-kt,St=[];if(_.length>0){var te=Et-H-Z,jt=Math.round(Et*1e3),Nt=Gv(_,Math.round(te*1e3)),Q=new nu(_,Nt),pt=(A/1e3).toFixed(3)+"em",bt=(jt/1e3).toFixed(3)+"em",Ot=new Wr([Q],{width:pt,height:bt,viewBox:"0 0 "+A+" "+jt}),Xt=nt.makeSvgSpan([],[Ot],o);Xt.height=jt/1e3,Xt.style.width=pt,Xt.style.height=bt,St.push({type:"elem",elem:Xt})}else{if(St.push(dd(E,D,h)),St.push(H2),p===null){var B=Et-H-Z+2*Xd;St.push(md(b,B,o))}else{var et=(Et-H-Z-q)/2+2*Xd;St.push(md(b,et,o)),St.push(H2),St.push(dd(p,D,h)),St.push(H2),St.push(md(b,et,o))}St.push(H2),St.push(dd(g,D,h))}var dt=o.havingBaseStyle(oe.TEXT),wt=nt.makeVList({positionType:"bottom",positionData:Vt,children:St},dt);return o5(nt.makeSpan(["delimsizing","mult"],[wt],dt),oe.TEXT,o,d)},gd=80,pd=.08,vd=function(t,a,i,o,h){var d=Bv(t,o,i),g=new nu(t,d),p=new Wr([g],{width:"400em",height:Lt(a),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return nt.makeSvgSpan(["hide-tail"],[p],h)},Oy=function(t,a){var i=a.havingBaseSizing(),o=Ym("\\surd",t*i.sizeMultiplier,km,i),h=i.sizeMultiplier,d=Math.max(0,a.minRuleThickness-a.fontMetrics().sqrtRuleThickness),g,p=0,b=0,E=0,_;return o.type==="small"?(E=1e3+1e3*d+gd,t<1?h=1:t<1.4&&(h=.7),p=(1+d+pd)/h,b=(1+d)/h,g=vd("sqrtMain",p,E,d,a),g.style.minWidth="0.853em",_=.833/h):o.type==="large"?(E=(1e3+gd)*Th[o.size],b=(Th[o.size]+d)/h,p=(Th[o.size]+d+pd)/h,g=vd("sqrtSize"+o.size,p,E,d,a),g.style.minWidth="1.02em",_=1/h):(p=t+d+pd,b=t+d,E=Math.floor(1e3*t+d)+gd,g=vd("sqrtTall",p,E,d,a),g.style.minWidth="0.742em",_=1.056),g.height=b,g.style.height=Lt(p),{span:g,advanceWidth:_,ruleWidth:(a.fontMetrics().sqrtRuleThickness+d)*h}},qm=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],By=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Lm=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Th=[0,1.2,1.8,2.4,3],Hy=function(t,a,i,o,h){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),qm.includes(t)||Lm.includes(t))return Gm(t,a,!1,i,o,h);if(By.includes(t))return Um(t,Th[a],!1,i,o,h);throw new Dt("Illegal delimiter: '"+t+"'")},Gy=[{type:"small",style:oe.SCRIPTSCRIPT},{type:"small",style:oe.SCRIPT},{type:"small",style:oe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Uy=[{type:"small",style:oe.SCRIPTSCRIPT},{type:"small",style:oe.SCRIPT},{type:"small",style:oe.TEXT},{type:"stack"}],km=[{type:"small",style:oe.SCRIPTSCRIPT},{type:"small",style:oe.SCRIPT},{type:"small",style:oe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],qy=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Ym=function(t,a,i,o){for(var h=Math.min(2,3-o.style.size),d=h;d<i.length&&i[d].type!=="stack";d++){var g=vh(t,qy(i[d]),"math"),p=g.height+g.depth;if(i[d].type==="small"){var b=o.havingBaseStyle(i[d].style);p*=b.sizeMultiplier}if(p>a)return i[d]}return i[i.length-1]},Xm=function(t,a,i,o,h,d){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var g;Lm.includes(t)?g=Gy:qm.includes(t)?g=km:g=Uy;var p=Ym(t,a,g,o);return p.type==="small"?wy(t,p.style,i,o,h,d):p.type==="large"?Gm(t,p.size,i,o,h,d):Um(t,a,i,o,h,d)},Ly=function(t,a,i,o,h,d){var g=o.fontMetrics().axisHeight*o.sizeMultiplier,p=901,b=5/o.fontMetrics().ptPerEm,E=Math.max(a-g,i+g),_=Math.max(E/500*p,2*E-b);return Xm(t,_,!0,o,h,d)},Fr={sqrtImage:Oy,sizedDelim:Hy,sizeToMaxHeight:Th,customSizedDelim:Xm,leftRightDelim:Ly},r6={"\\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}},ky=["(","\\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 i4(s,t){var a=n4(s);if(a&&ky.includes(a.text))return a;throw a?new Dt("Invalid delimiter '"+a.text+"' after '"+t.funcName+"'",s):new Dt("Invalid delimiter type '"+s.type+"'",s)}Jt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(s,t)=>{var a=i4(t[0],s);return{type:"delimsizing",mode:s.parser.mode,size:r6[s.funcName].size,mclass:r6[s.funcName].mclass,delim:a.text}},htmlBuilder:(s,t)=>s.delim==="."?nt.makeSpan([s.mclass]):Fr.sizedDelim(s.delim,s.size,t,s.mode,[s.mclass]),mathmlBuilder:s=>{var t=[];s.delim!=="."&&t.push(Il(s.delim,s.mode));var a=new zt.MathNode("mo",t);s.mclass==="mopen"||s.mclass==="mclose"?a.setAttribute("fence","true"):a.setAttribute("fence","false"),a.setAttribute("stretchy","true");var i=Lt(Fr.sizeToMaxHeight[s.size]);return a.setAttribute("minsize",i),a.setAttribute("maxsize",i),a}});function s6(s){if(!s.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Jt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(s,t)=>{var a=s.parser.gullet.macros.get("\\current@color");if(a&&typeof a!="string")throw new Dt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:s.parser.mode,delim:i4(t[0],s).text,color:a}}});Jt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(s,t)=>{var a=i4(t[0],s),i=s.parser;++i.leftrightDepth;var o=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var h=Ce(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:o,left:a.text,right:h.delim,rightColor:h.color}},htmlBuilder:(s,t)=>{s6(s);for(var a=U0(s.body,t,!0,["mopen","mclose"]),i=0,o=0,h=!1,d=0;d<a.length;d++)a[d].isMiddle?h=!0:(i=Math.max(a[d].height,i),o=Math.max(a[d].depth,o));i*=t.sizeMultiplier,o*=t.sizeMultiplier;var g;if(s.left==="."?g=Mh(t,["mopen"]):g=Fr.leftRightDelim(s.left,i,o,t,s.mode,["mopen"]),a.unshift(g),h)for(var p=1;p<a.length;p++){var b=a[p],E=b.isMiddle;E&&(a[p]=Fr.leftRightDelim(E.delim,i,o,E.options,s.mode,[]))}var _;if(s.right===".")_=Mh(t,["mclose"]);else{var A=s.rightColor?t.withColor(s.rightColor):t;_=Fr.leftRightDelim(s.right,i,o,A,s.mode,["mclose"])}return a.push(_),nt.makeSpan(["minner"],a,t)},mathmlBuilder:(s,t)=>{s6(s);var a=Wn(s.body,t);if(s.left!=="."){var i=new zt.MathNode("mo",[Il(s.left,s.mode)]);i.setAttribute("fence","true"),a.unshift(i)}if(s.right!=="."){var o=new zt.MathNode("mo",[Il(s.right,s.mode)]);o.setAttribute("fence","true"),s.rightColor&&o.setAttribute("mathcolor",s.rightColor),a.push(o)}return i5(a)}});Jt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(s,t)=>{var a=i4(t[0],s);if(!s.parser.leftrightDepth)throw new Dt("\\middle without preceding \\left",a);return{type:"middle",mode:s.parser.mode,delim:a.text}},htmlBuilder:(s,t)=>{var a;if(s.delim===".")a=Mh(t,[]);else{a=Fr.sizedDelim(s.delim,1,t,s.mode,[]);var i={delim:s.delim,options:t};a.isMiddle=i}return a},mathmlBuilder:(s,t)=>{var a=s.delim==="\\vert"||s.delim==="|"?Il("|","text"):Il(s.delim,s.mode),i=new zt.MathNode("mo",[a]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var c5=(s,t)=>{var a=nt.wrapFragment(We(s.body,t),t),i=s.label.slice(1),o=t.sizeMultiplier,h,d=0,g=$e.isCharacterBox(s.body);if(i==="sout")h=nt.makeSpan(["stretchy","sout"]),h.height=t.fontMetrics().defaultRuleThickness/o,d=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var p=e0({number:.6,unit:"pt"},t),b=e0({number:.35,unit:"ex"},t),E=t.havingBaseSizing();o=o/E.sizeMultiplier;var _=a.height+a.depth+p+b;a.style.paddingLeft=Lt(_/2+p);var A=Math.floor(1e3*_*o),D=Rv(A),C=new Wr([new nu("phase",D)],{width:"400em",height:Lt(A/1e3),viewBox:"0 0 400000 "+A,preserveAspectRatio:"xMinYMin slice"});h=nt.makeSvgSpan(["hide-tail"],[C],t),h.style.height=Lt(_),d=a.depth+p+b}else{/cancel/.test(i)?g||a.classes.push("cancel-pad"):i==="angl"?a.classes.push("anglpad"):a.classes.push("boxpad");var H=0,U=0,Y=0;/box/.test(i)?(Y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),H=t.fontMetrics().fboxsep+(i==="colorbox"?0:Y),U=H):i==="angl"?(Y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),H=4*Y,U=Math.max(0,.25-a.depth)):(H=g?.2:0,U=H),h=Pr.encloseSpan(a,i,H,U,t),/fbox|boxed|fcolorbox/.test(i)?(h.style.borderStyle="solid",h.style.borderWidth=Lt(Y)):i==="angl"&&Y!==.049&&(h.style.borderTopWidth=Lt(Y),h.style.borderRightWidth=Lt(Y)),d=a.depth+U,s.backgroundColor&&(h.style.backgroundColor=s.backgroundColor,s.borderColor&&(h.style.borderColor=s.borderColor))}var G;if(s.backgroundColor)G=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:d},{type:"elem",elem:a,shift:0}]},t);else{var Z=/cancel|phase/.test(i)?["svg-align"]:[];G=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:h,shift:d,wrapperClasses:Z}]},t)}return/cancel/.test(i)&&(G.height=a.height,G.depth=a.depth),/cancel/.test(i)&&!g?nt.makeSpan(["mord","cancel-lap"],[G],t):nt.makeSpan(["mord"],[G],t)},h5=(s,t)=>{var a=0,i=new zt.MathNode(s.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ba(s.body,t)]);switch(s.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(a=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*a+"pt"),i.setAttribute("height","+"+2*a+"pt"),i.setAttribute("lspace",a+"pt"),i.setAttribute("voffset",a+"pt"),s.label==="\\fcolorbox"){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+o+"em solid "+String(s.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return s.backgroundColor&&i.setAttribute("mathbackground",s.backgroundColor),i};Jt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(s,t,a){var{parser:i,funcName:o}=s,h=Ce(t[0],"color-token").color,d=t[1];return{type:"enclose",mode:i.mode,label:o,backgroundColor:h,body:d}},htmlBuilder:c5,mathmlBuilder:h5});Jt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(s,t,a){var{parser:i,funcName:o}=s,h=Ce(t[0],"color-token").color,d=Ce(t[1],"color-token").color,g=t[2];return{type:"enclose",mode:i.mode,label:o,backgroundColor:d,borderColor:h,body:g}},htmlBuilder:c5,mathmlBuilder:h5});Jt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(s,t){var{parser:a}=s;return{type:"enclose",mode:a.mode,label:"\\fbox",body:t[0]}}});Jt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(s,t){var{parser:a,funcName:i}=s,o=t[0];return{type:"enclose",mode:a.mode,label:i,body:o}},htmlBuilder:c5,mathmlBuilder:h5});Jt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(s,t){var{parser:a}=s;return{type:"enclose",mode:a.mode,label:"\\angl",body:t[0]}}});var jm={};function or(s){for(var{type:t,names:a,props:i,handler:o,htmlBuilder:h,mathmlBuilder:d}=s,g={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},p=0;p<a.length;++p)jm[a[p]]=g;h&&(K2[t]=h),d&&(Z2[t]=d)}var Vm={};function O(s,t){Vm[s]=t}function u6(s){var t=[];s.consumeSpaces();var a=s.fetch().text;for(a==="\\relax"&&(s.consume(),s.consumeSpaces(),a=s.fetch().text);a==="\\hline"||a==="\\hdashline";)s.consume(),t.push(a==="\\hdashline"),s.consumeSpaces(),a=s.fetch().text;return t}var r4=s=>{var t=s.parser.settings;if(!t.displayMode)throw new Dt("{"+s.envName+"} can be used only in display mode.")};function f5(s){if(s.indexOf("ed")===-1)return s.indexOf("*")===-1}function cu(s,t,a){var{hskipBeforeAndAfter:i,addJot:o,cols:h,arraystretch:d,colSeparationType:g,autoTag:p,singleRow:b,emptySingleRow:E,maxNumCols:_,leqno:A}=t;if(s.gullet.beginGroup(),b||s.gullet.macros.set("\\cr","\\\\\\relax"),!d){var D=s.gullet.expandMacroAsText("\\arraystretch");if(D==null)d=1;else if(d=parseFloat(D),!d||d<0)throw new Dt("Invalid \\arraystretch: "+D)}s.gullet.beginGroup();var C=[],H=[C],U=[],Y=[],G=p!=null?[]:void 0;function Z(){p&&s.gullet.macros.set("\\@eqnsw","1",!0)}function q(){G&&(s.gullet.macros.get("\\df@tag")?(G.push(s.subparse([new dl("\\df@tag")])),s.gullet.macros.set("\\df@tag",void 0,!0)):G.push(!!p&&s.gullet.macros.get("\\@eqnsw")==="1"))}for(Z(),Y.push(u6(s));;){var P=s.parseExpression(!1,b?"\\end":"\\\\");s.gullet.endGroup(),s.gullet.beginGroup(),P={type:"ordgroup",mode:s.mode,body:P},a&&(P={type:"styling",mode:s.mode,style:a,body:[P]}),C.push(P);var ut=s.fetch().text;if(ut==="&"){if(_&&C.length===_){if(b||g)throw new Dt("Too many tab characters: &",s.nextToken);s.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}s.consume()}else if(ut==="\\end"){q(),C.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(H.length>1||!E)&&H.pop(),Y.length<H.length+1&&Y.push([]);break}else if(ut==="\\\\"){s.consume();var rt=void 0;s.gullet.future().text!==" "&&(rt=s.parseSizeGroup(!0)),U.push(rt?rt.value:null),q(),Y.push(u6(s)),C=[],H.push(C),Z()}else throw new Dt("Expected & or \\\\ or \\cr or \\end",s.nextToken)}return s.gullet.endGroup(),s.gullet.endGroup(),{type:"array",mode:s.mode,addJot:o,arraystretch:d,body:H,cols:h,rowGaps:U,hskipBeforeAndAfter:i,hLinesBeforeRow:Y,colSeparationType:g,tags:G,leqno:A}}function d5(s){return s.slice(0,1)==="d"?"display":"text"}var cr=function(t,a){var i,o,h=t.body.length,d=t.hLinesBeforeRow,g=0,p=new Array(h),b=[],E=Math.max(a.fontMetrics().arrayRuleWidth,a.minRuleThickness),_=1/a.fontMetrics().ptPerEm,A=5*_;if(t.colSeparationType&&t.colSeparationType==="small"){var D=a.havingStyle(oe.SCRIPT).sizeMultiplier;A=.2778*(D/a.sizeMultiplier)}var C=t.colSeparationType==="CD"?e0({number:3,unit:"ex"},a):12*_,H=3*_,U=t.arraystretch*C,Y=.7*U,G=.3*U,Z=0;function q(Ne){for(var Fe=0;Fe<Ne.length;++Fe)Fe>0&&(Z+=.25),b.push({pos:Z,isDashed:Ne[Fe]})}for(q(d[0]),i=0;i<t.body.length;++i){var P=t.body[i],ut=Y,rt=G;g<P.length&&(g=P.length);var ot=new Array(P.length);for(o=0;o<P.length;++o){var Et=We(P[o],a);rt<Et.depth&&(rt=Et.depth),ut<Et.height&&(ut=Et.height),ot[o]=Et}var kt=t.rowGaps[i],Vt=0;kt&&(Vt=e0(kt,a),Vt>0&&(Vt+=G,rt<Vt&&(rt=Vt),Vt=0)),t.addJot&&(rt+=H),ot.height=ut,ot.depth=rt,Z+=ut,ot.pos=Z,Z+=rt+Vt,p[i]=ot,q(d[i+1])}var St=Z/2+a.fontMetrics().axisHeight,te=t.cols||[],jt=[],Nt,Q,pt=[];if(t.tags&&t.tags.some(Ne=>Ne))for(i=0;i<h;++i){var bt=p[i],Ot=bt.pos-St,Xt=t.tags[i],B=void 0;Xt===!0?B=nt.makeSpan(["eqn-num"],[],a):Xt===!1?B=nt.makeSpan([],[],a):B=nt.makeSpan([],U0(Xt,a,!0),a),B.depth=bt.depth,B.height=bt.height,pt.push({type:"elem",elem:B,shift:Ot})}for(o=0,Q=0;o<g||Q<te.length;++o,++Q){for(var et=te[Q]||{},dt=!0;et.type==="separator";){if(dt||(Nt=nt.makeSpan(["arraycolsep"],[]),Nt.style.width=Lt(a.fontMetrics().doubleRuleSep),jt.push(Nt)),et.separator==="|"||et.separator===":"){var wt=et.separator==="|"?"solid":"dashed",Kt=nt.makeSpan(["vertical-separator"],[],a);Kt.style.height=Lt(Z),Kt.style.borderRightWidth=Lt(E),Kt.style.borderRightStyle=wt,Kt.style.margin="0 "+Lt(-E/2);var Bt=Z-St;Bt&&(Kt.style.verticalAlign=Lt(-Bt)),jt.push(Kt)}else throw new Dt("Invalid separator type: "+et.separator);Q++,et=te[Q]||{},dt=!1}if(!(o>=g)){var Ct=void 0;(o>0||t.hskipBeforeAndAfter)&&(Ct=$e.deflt(et.pregap,A),Ct!==0&&(Nt=nt.makeSpan(["arraycolsep"],[]),Nt.style.width=Lt(Ct),jt.push(Nt)));var Wt=[];for(i=0;i<h;++i){var Zt=p[i],Ae=Zt[o];if(Ae){var Ue=Zt.pos-St;Ae.depth=Zt.depth,Ae.height=Zt.height,Wt.push({type:"elem",elem:Ae,shift:Ue})}}Wt=nt.makeVList({positionType:"individualShift",children:Wt},a),Wt=nt.makeSpan(["col-align-"+(et.align||"c")],[Wt]),jt.push(Wt),(o<g-1||t.hskipBeforeAndAfter)&&(Ct=$e.deflt(et.postgap,A),Ct!==0&&(Nt=nt.makeSpan(["arraycolsep"],[]),Nt.style.width=Lt(Ct),jt.push(Nt)))}}if(p=nt.makeSpan(["mtable"],jt),b.length>0){for(var ae=nt.makeLineSpan("hline",a,E),pe=nt.makeLineSpan("hdashline",a,E),Xe=[{type:"elem",elem:p,shift:0}];b.length>0;){var qe=b.pop(),Je=qe.pos-St;qe.isDashed?Xe.push({type:"elem",elem:pe,shift:Je}):Xe.push({type:"elem",elem:ae,shift:Je})}p=nt.makeVList({positionType:"individualShift",children:Xe},a)}if(pt.length===0)return nt.makeSpan(["mord"],[p],a);var ia=nt.makeVList({positionType:"individualShift",children:pt},a);return ia=nt.makeSpan(["tag"],[ia],a),nt.makeFragment([p,ia])},Yy={c:"center ",l:"left ",r:"right "},hr=function(t,a){for(var i=[],o=new zt.MathNode("mtd",[],["mtr-glue"]),h=new zt.MathNode("mtd",[],["mml-eqn-num"]),d=0;d<t.body.length;d++){for(var g=t.body[d],p=[],b=0;b<g.length;b++)p.push(new zt.MathNode("mtd",[ba(g[b],a)]));t.tags&&t.tags[d]&&(p.unshift(o),p.push(o),t.leqno?p.unshift(h):p.push(h)),i.push(new zt.MathNode("mtr",p))}var E=new zt.MathNode("mtable",i),_=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);E.setAttribute("rowspacing",Lt(_));var A="",D="";if(t.cols&&t.cols.length>0){var C=t.cols,H="",U=!1,Y=0,G=C.length;C[0].type==="separator"&&(A+="top ",Y=1),C[C.length-1].type==="separator"&&(A+="bottom ",G-=1);for(var Z=Y;Z<G;Z++)C[Z].type==="align"?(D+=Yy[C[Z].align],U&&(H+="none "),U=!0):C[Z].type==="separator"&&U&&(H+=C[Z].separator==="|"?"solid ":"dashed ",U=!1);E.setAttribute("columnalign",D.trim()),/[sd]/.test(H)&&E.setAttribute("columnlines",H.trim())}if(t.colSeparationType==="align"){for(var q=t.cols||[],P="",ut=1;ut<q.length;ut++)P+=ut%2?"0em ":"1em ";E.setAttribute("columnspacing",P.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?E.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?E.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?E.setAttribute("columnspacing","0.5em"):E.setAttribute("columnspacing","1em");var rt="",ot=t.hLinesBeforeRow;A+=ot[0].length>0?"left ":"",A+=ot[ot.length-1].length>0?"right ":"";for(var Et=1;Et<ot.length-1;Et++)rt+=ot[Et].length===0?"none ":ot[Et][0]?"dashed ":"solid ";return/[sd]/.test(rt)&&E.setAttribute("rowlines",rt.trim()),A!==""&&(E=new zt.MathNode("menclose",[E]),E.setAttribute("notation",A.trim())),t.arraystretch&&t.arraystretch<1&&(E=new zt.MathNode("mstyle",[E]),E.setAttribute("scriptlevel","1")),E},Qm=function(t,a){t.envName.indexOf("ed")===-1&&r4(t);var i=[],o=t.envName.indexOf("at")>-1?"alignat":"align",h=t.envName==="split",d=cu(t.parser,{cols:i,addJot:!0,autoTag:h?void 0:f5(t.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:h?2:void 0,leqno:t.parser.settings.leqno},"display"),g,p=0,b={type:"ordgroup",mode:t.mode,body:[]};if(a[0]&&a[0].type==="ordgroup"){for(var E="",_=0;_<a[0].body.length;_++){var A=Ce(a[0].body[_],"textord");E+=A.text}g=Number(E),p=g*2}var D=!p;d.body.forEach(function(Y){for(var G=1;G<Y.length;G+=2){var Z=Ce(Y[G],"styling"),q=Ce(Z.body[0],"ordgroup");q.body.unshift(b)}if(D)p<Y.length&&(p=Y.length);else{var P=Y.length/2;if(g<P)throw new Dt("Too many math in a row: "+("expected "+g+", but got "+P),Y[0])}});for(var C=0;C<p;++C){var H="r",U=0;C%2===1?H="l":C>0&&D&&(U=1),i[C]={type:"align",align:H,pregap:U,postgap:0}}return d.colSeparationType=D?"align":"alignat",d};or({type:"array",names:["array","darray"],props:{numArgs:1},handler(s,t){var a=n4(t[0]),i=a?[t[0]]:Ce(t[0],"ordgroup").body,o=i.map(function(d){var g=s5(d),p=g.text;if("lcr".indexOf(p)!==-1)return{type:"align",align:p};if(p==="|")return{type:"separator",separator:"|"};if(p===":")return{type:"separator",separator:":"};throw new Dt("Unknown column alignment: "+p,d)}),h={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return cu(s.parser,h,d5(s.envName))},htmlBuilder:cr,mathmlBuilder:hr});or({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(s){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[s.envName.replace("*","")],a="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:a}]};if(s.envName.charAt(s.envName.length-1)==="*"){var o=s.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),a=o.fetch().text,"lcr".indexOf(a)===-1)throw new Dt("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),i.cols=[{type:"align",align:a}]}}var h=cu(s.parser,i,d5(s.envName)),d=Math.max(0,...h.body.map(g=>g.length));return h.cols=new Array(d).fill({type:"align",align:a}),t?{type:"leftright",mode:s.mode,body:[h],left:t[0],right:t[1],rightColor:void 0}:h},htmlBuilder:cr,mathmlBuilder:hr});or({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(s){var t={arraystretch:.5},a=cu(s.parser,t,"script");return a.colSeparationType="small",a},htmlBuilder:cr,mathmlBuilder:hr});or({type:"array",names:["subarray"],props:{numArgs:1},handler(s,t){var a=n4(t[0]),i=a?[t[0]]:Ce(t[0],"ordgroup").body,o=i.map(function(d){var g=s5(d),p=g.text;if("lc".indexOf(p)!==-1)return{type:"align",align:p};throw new Dt("Unknown column alignment: "+p,d)});if(o.length>1)throw new Dt("{subarray} can contain only one column");var h={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5};if(h=cu(s.parser,h,"script"),h.body.length>0&&h.body[0].length>1)throw new Dt("{subarray} can contain only one column");return h},htmlBuilder:cr,mathmlBuilder:hr});or({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(s){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},a=cu(s.parser,t,d5(s.envName));return{type:"leftright",mode:s.mode,body:[a],left:s.envName.indexOf("r")>-1?".":"\\{",right:s.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:cr,mathmlBuilder:hr});or({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Qm,htmlBuilder:cr,mathmlBuilder:hr});or({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(s){["gather","gather*"].includes(s.envName)&&r4(s);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:f5(s.envName),emptySingleRow:!0,leqno:s.parser.settings.leqno};return cu(s.parser,t,"display")},htmlBuilder:cr,mathmlBuilder:hr});or({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Qm,htmlBuilder:cr,mathmlBuilder:hr});or({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(s){r4(s);var t={autoTag:f5(s.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:s.parser.settings.leqno};return cu(s.parser,t,"display")},htmlBuilder:cr,mathmlBuilder:hr});or({type:"array",names:["CD"],props:{numArgs:0},handler(s){return r4(s),zy(s.parser)},htmlBuilder:cr,mathmlBuilder:hr});O("\\nonumber","\\gdef\\@eqnsw{0}");O("\\notag","\\nonumber");Jt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(s,t){throw new Dt(s.funcName+" valid only within array environment")}});var o6=jm;Jt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(s,t){var{parser:a,funcName:i}=s,o=t[0];if(o.type!=="ordgroup")throw new Dt("Invalid environment name",o);for(var h="",d=0;d<o.body.length;++d)h+=Ce(o.body[d],"textord").text;if(i==="\\begin"){if(!o6.hasOwnProperty(h))throw new Dt("No such environment: "+h,o);var g=o6[h],{args:p,optArgs:b}=a.parseArguments("\\begin{"+h+"}",g),E={mode:a.mode,envName:h,parser:a},_=g.handler(E,p,b);a.expect("\\end",!1);var A=a.nextToken,D=Ce(a.parseFunction(),"environment");if(D.name!==h)throw new Dt("Mismatch: \\begin{"+h+"} matched by \\end{"+D.name+"}",A);return _}return{type:"environment",mode:a.mode,name:h,nameGroup:o}}});var Km=(s,t)=>{var a=s.font,i=t.withFont(a);return We(s.body,i)},Zm=(s,t)=>{var a=s.font,i=t.withFont(a);return ba(s.body,i)},c6={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Jt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=J2(t[0]),h=i;return h in c6&&(h=c6[h]),{type:"font",mode:a.mode,font:h.slice(1),body:o}},htmlBuilder:Km,mathmlBuilder:Zm});Jt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(s,t)=>{var{parser:a}=s,i=t[0],o=$e.isCharacterBox(i);return{type:"mclass",mode:a.mode,mclass:l4(i),body:[{type:"font",mode:a.mode,font:"boldsymbol",body:i}],isCharacterBox:o}}});Jt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(s,t)=>{var{parser:a,funcName:i,breakOnTokenText:o}=s,{mode:h}=a,d=a.parseExpression(!0,o),g="math"+i.slice(1);return{type:"font",mode:h,font:g,body:{type:"ordgroup",mode:a.mode,body:d}}},htmlBuilder:Km,mathmlBuilder:Zm});var Jm=(s,t)=>{var a=t;return s==="display"?a=a.id>=oe.SCRIPT.id?a.text():oe.DISPLAY:s==="text"&&a.size===oe.DISPLAY.size?a=oe.TEXT:s==="script"?a=oe.SCRIPT:s==="scriptscript"&&(a=oe.SCRIPTSCRIPT),a},m5=(s,t)=>{var a=Jm(s.size,t.style),i=a.fracNum(),o=a.fracDen(),h;h=t.havingStyle(i);var d=We(s.numer,h,t);if(s.continued){var g=8.5/t.fontMetrics().ptPerEm,p=3.5/t.fontMetrics().ptPerEm;d.height=d.height<g?g:d.height,d.depth=d.depth<p?p:d.depth}h=t.havingStyle(o);var b=We(s.denom,h,t),E,_,A;s.hasBarLine?(s.barSize?(_=e0(s.barSize,t),E=nt.makeLineSpan("frac-line",t,_)):E=nt.makeLineSpan("frac-line",t),_=E.height,A=E.height):(E=null,_=0,A=t.fontMetrics().defaultRuleThickness);var D,C,H;a.size===oe.DISPLAY.size||s.size==="display"?(D=t.fontMetrics().num1,_>0?C=3*A:C=7*A,H=t.fontMetrics().denom1):(_>0?(D=t.fontMetrics().num2,C=A):(D=t.fontMetrics().num3,C=3*A),H=t.fontMetrics().denom2);var U;if(E){var G=t.fontMetrics().axisHeight;D-d.depth-(G+.5*_)<C&&(D+=C-(D-d.depth-(G+.5*_))),G-.5*_-(b.height-H)<C&&(H+=C-(G-.5*_-(b.height-H)));var Z=-(G-.5*_);U=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:H},{type:"elem",elem:E,shift:Z},{type:"elem",elem:d,shift:-D}]},t)}else{var Y=D-d.depth-(b.height-H);Y<C&&(D+=.5*(C-Y),H+=.5*(C-Y)),U=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:H},{type:"elem",elem:d,shift:-D}]},t)}h=t.havingStyle(a),U.height*=h.sizeMultiplier/t.sizeMultiplier,U.depth*=h.sizeMultiplier/t.sizeMultiplier;var q;a.size===oe.DISPLAY.size?q=t.fontMetrics().delim1:a.size===oe.SCRIPTSCRIPT.size?q=t.havingStyle(oe.SCRIPT).fontMetrics().delim2:q=t.fontMetrics().delim2;var P,ut;return s.leftDelim==null?P=Mh(t,["mopen"]):P=Fr.customSizedDelim(s.leftDelim,q,!0,t.havingStyle(a),s.mode,["mopen"]),s.continued?ut=nt.makeSpan([]):s.rightDelim==null?ut=Mh(t,["mclose"]):ut=Fr.customSizedDelim(s.rightDelim,q,!0,t.havingStyle(a),s.mode,["mclose"]),nt.makeSpan(["mord"].concat(h.sizingClasses(t)),[P,nt.makeSpan(["mfrac"],[U]),ut],t)},g5=(s,t)=>{var a=new zt.MathNode("mfrac",[ba(s.numer,t),ba(s.denom,t)]);if(!s.hasBarLine)a.setAttribute("linethickness","0px");else if(s.barSize){var i=e0(s.barSize,t);a.setAttribute("linethickness",Lt(i))}var o=Jm(s.size,t.style);if(o.size!==t.style.size){a=new zt.MathNode("mstyle",[a]);var h=o.size===oe.DISPLAY.size?"true":"false";a.setAttribute("displaystyle",h),a.setAttribute("scriptlevel","0")}if(s.leftDelim!=null||s.rightDelim!=null){var d=[];if(s.leftDelim!=null){var g=new zt.MathNode("mo",[new zt.TextNode(s.leftDelim.replace("\\",""))]);g.setAttribute("fence","true"),d.push(g)}if(d.push(a),s.rightDelim!=null){var p=new zt.MathNode("mo",[new zt.TextNode(s.rightDelim.replace("\\",""))]);p.setAttribute("fence","true"),d.push(p)}return i5(d)}return a};Jt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0],h=t[1],d,g=null,p=null,b="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":d=!0;break;case"\\\\atopfrac":d=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":d=!1,g="(",p=")";break;case"\\\\bracefrac":d=!1,g="\\{",p="\\}";break;case"\\\\brackfrac":d=!1,g="[",p="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":b="display";break;case"\\tfrac":case"\\tbinom":b="text";break}return{type:"genfrac",mode:a.mode,continued:!1,numer:o,denom:h,hasBarLine:d,leftDelim:g,rightDelim:p,size:b,barSize:null}},htmlBuilder:m5,mathmlBuilder:g5});Jt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0],h=t[1];return{type:"genfrac",mode:a.mode,continued:!0,numer:o,denom:h,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});Jt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(s){var{parser:t,funcName:a,token:i}=s,o;switch(a){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:o,token:i}}});var h6=["display","text","script","scriptscript"],f6=function(t){var a=null;return t.length>0&&(a=t,a=a==="."?null:a),a};Jt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(s,t){var{parser:a}=s,i=t[4],o=t[5],h=J2(t[0]),d=h.type==="atom"&&h.family==="open"?f6(h.text):null,g=J2(t[1]),p=g.type==="atom"&&g.family==="close"?f6(g.text):null,b=Ce(t[2],"size"),E,_=null;b.isBlank?E=!0:(_=b.value,E=_.number>0);var A="auto",D=t[3];if(D.type==="ordgroup"){if(D.body.length>0){var C=Ce(D.body[0],"textord");A=h6[Number(C.text)]}}else D=Ce(D,"textord"),A=h6[Number(D.text)];return{type:"genfrac",mode:a.mode,numer:i,denom:o,continued:!1,hasBarLine:E,barSize:_,leftDelim:d,rightDelim:p,size:A}},htmlBuilder:m5,mathmlBuilder:g5});Jt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(s,t){var{parser:a,funcName:i,token:o}=s;return{type:"infix",mode:a.mode,replaceWith:"\\\\abovefrac",size:Ce(t[0],"size").value,token:o}}});Jt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0],h=vv(Ce(t[1],"infix").size),d=t[2],g=h.number>0;return{type:"genfrac",mode:a.mode,numer:o,denom:d,continued:!1,hasBarLine:g,barSize:h,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:m5,mathmlBuilder:g5});var Fm=(s,t)=>{var a=t.style,i,o;s.type==="supsub"?(i=s.sup?We(s.sup,t.havingStyle(a.sup()),t):We(s.sub,t.havingStyle(a.sub()),t),o=Ce(s.base,"horizBrace")):o=Ce(s,"horizBrace");var h=We(o.base,t.havingBaseStyle(oe.DISPLAY)),d=Pr.svgSpan(o,t),g;if(o.isOver?(g=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.1},{type:"elem",elem:d}]},t),g.children[0].children[0].children[1].classes.push("svg-align")):(g=nt.makeVList({positionType:"bottom",positionData:h.depth+.1+d.height,children:[{type:"elem",elem:d},{type:"kern",size:.1},{type:"elem",elem:h}]},t),g.children[0].children[0].children[0].classes.push("svg-align")),i){var p=nt.makeSpan(["mord",o.isOver?"mover":"munder"],[g],t);o.isOver?g=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:p},{type:"kern",size:.2},{type:"elem",elem:i}]},t):g=nt.makeVList({positionType:"bottom",positionData:p.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:p}]},t)}return nt.makeSpan(["mord",o.isOver?"mover":"munder"],[g],t)},Xy=(s,t)=>{var a=Pr.mathMLnode(s.label);return new zt.MathNode(s.isOver?"mover":"munder",[ba(s.base,t),a])};Jt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(s,t){var{parser:a,funcName:i}=s;return{type:"horizBrace",mode:a.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:Fm,mathmlBuilder:Xy});Jt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(s,t)=>{var{parser:a}=s,i=t[1],o=Ce(t[0],"url").url;return a.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:a.mode,href:o,body:g0(i)}:a.formatUnsupportedCmd("\\href")},htmlBuilder:(s,t)=>{var a=U0(s.body,t,!1);return nt.makeAnchor(s.href,[],a,t)},mathmlBuilder:(s,t)=>{var a=lu(s.body,t);return a instanceof hl||(a=new hl("mrow",[a])),a.setAttribute("href",s.href),a}});Jt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(s,t)=>{var{parser:a}=s,i=Ce(t[0],"url").url;if(!a.settings.isTrusted({command:"\\url",url:i}))return a.formatUnsupportedCmd("\\url");for(var o=[],h=0;h<i.length;h++){var d=i[h];d==="~"&&(d="\\textasciitilde"),o.push({type:"textord",mode:"text",text:d})}var g={type:"text",mode:a.mode,font:"\\texttt",body:o};return{type:"href",mode:a.mode,href:i,body:g0(g)}}});Jt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(s,t){var{parser:a}=s;return{type:"hbox",mode:a.mode,body:g0(t[0])}},htmlBuilder(s,t){var a=U0(s.body,t,!1);return nt.makeFragment(a)},mathmlBuilder(s,t){return new zt.MathNode("mrow",Wn(s.body,t))}});Jt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(s,t)=>{var{parser:a,funcName:i,token:o}=s,h=Ce(t[0],"raw").string,d=t[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var g,p={};switch(i){case"\\htmlClass":p.class=h,g={command:"\\htmlClass",class:h};break;case"\\htmlId":p.id=h,g={command:"\\htmlId",id:h};break;case"\\htmlStyle":p.style=h,g={command:"\\htmlStyle",style:h};break;case"\\htmlData":{for(var b=h.split(","),E=0;E<b.length;E++){var _=b[E].split("=");if(_.length!==2)throw new Dt("Error parsing key-value for \\htmlData");p["data-"+_[0].trim()]=_[1].trim()}g={command:"\\htmlData",attributes:p};break}default:throw new Error("Unrecognized html command")}return a.settings.isTrusted(g)?{type:"html",mode:a.mode,attributes:p,body:g0(d)}:a.formatUnsupportedCmd(i)},htmlBuilder:(s,t)=>{var a=U0(s.body,t,!1),i=["enclosing"];s.attributes.class&&i.push(...s.attributes.class.trim().split(/\s+/));var o=nt.makeSpan(i,a,t);for(var h in s.attributes)h!=="class"&&s.attributes.hasOwnProperty(h)&&o.setAttribute(h,s.attributes[h]);return o},mathmlBuilder:(s,t)=>lu(s.body,t)});Jt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(s,t)=>{var{parser:a}=s;return{type:"htmlmathml",mode:a.mode,html:g0(t[0]),mathml:g0(t[1])}},htmlBuilder:(s,t)=>{var a=U0(s.html,t,!1);return nt.makeFragment(a)},mathmlBuilder:(s,t)=>lu(s.mathml,t)});var yd=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!a)throw new Dt("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(a[1]+a[2]),unit:a[3]};if(!mm(i))throw new Dt("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};Jt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(s,t,a)=>{var{parser:i}=s,o={number:0,unit:"em"},h={number:.9,unit:"em"},d={number:0,unit:"em"},g="";if(a[0])for(var p=Ce(a[0],"raw").string,b=p.split(","),E=0;E<b.length;E++){var _=b[E].split("=");if(_.length===2){var A=_[1].trim();switch(_[0].trim()){case"alt":g=A;break;case"width":o=yd(A);break;case"height":h=yd(A);break;case"totalheight":d=yd(A);break;default:throw new Dt("Invalid key: '"+_[0]+"' in \\includegraphics.")}}}var D=Ce(t[0],"url").url;return g===""&&(g=D,g=g.replace(/^.*[\\/]/,""),g=g.substring(0,g.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:D})?{type:"includegraphics",mode:i.mode,alt:g,width:o,height:h,totalheight:d,src:D}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(s,t)=>{var a=e0(s.height,t),i=0;s.totalheight.number>0&&(i=e0(s.totalheight,t)-a);var o=0;s.width.number>0&&(o=e0(s.width,t));var h={height:Lt(a+i)};o>0&&(h.width=Lt(o)),i>0&&(h.verticalAlign=Lt(-i));var d=new Xv(s.src,s.alt,h);return d.height=a,d.depth=i,d},mathmlBuilder:(s,t)=>{var a=new zt.MathNode("mglyph",[]);a.setAttribute("alt",s.alt);var i=e0(s.height,t),o=0;if(s.totalheight.number>0&&(o=e0(s.totalheight,t)-i,a.setAttribute("valign",Lt(-o))),a.setAttribute("height",Lt(i+o)),s.width.number>0){var h=e0(s.width,t);a.setAttribute("width",Lt(h))}return a.setAttribute("src",s.src),a}});Jt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(s,t){var{parser:a,funcName:i}=s,o=Ce(t[0],"size");if(a.settings.strict){var h=i[1]==="m",d=o.value.unit==="mu";h?(d||a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+o.value.unit+" units")),a.mode!=="math"&&a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):d&&a.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:a.mode,dimension:o.value}},htmlBuilder(s,t){return nt.makeGlue(s.dimension,t)},mathmlBuilder(s,t){var a=e0(s.dimension,t);return new zt.SpaceNode(a)}});Jt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0];return{type:"lap",mode:a.mode,alignment:i.slice(5),body:o}},htmlBuilder:(s,t)=>{var a;s.alignment==="clap"?(a=nt.makeSpan([],[We(s.body,t)]),a=nt.makeSpan(["inner"],[a],t)):a=nt.makeSpan(["inner"],[We(s.body,t)]);var i=nt.makeSpan(["fix"],[]),o=nt.makeSpan([s.alignment],[a,i],t),h=nt.makeSpan(["strut"]);return h.style.height=Lt(o.height+o.depth),o.depth&&(h.style.verticalAlign=Lt(-o.depth)),o.children.unshift(h),o=nt.makeSpan(["thinbox"],[o],t),nt.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(s,t)=>{var a=new zt.MathNode("mpadded",[ba(s.body,t)]);if(s.alignment!=="rlap"){var i=s.alignment==="llap"?"-1":"-0.5";a.setAttribute("lspace",i+"width")}return a.setAttribute("width","0px"),a}});Jt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(s,t){var{funcName:a,parser:i}=s,o=i.mode;i.switchMode("math");var h=a==="\\("?"\\)":"$",d=i.parseExpression(!1,h);return i.expect(h),i.switchMode(o),{type:"styling",mode:i.mode,style:"text",body:d}}});Jt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(s,t){throw new Dt("Mismatched "+s.funcName)}});var d6=(s,t)=>{switch(t.style.size){case oe.DISPLAY.size:return s.display;case oe.TEXT.size:return s.text;case oe.SCRIPT.size:return s.script;case oe.SCRIPTSCRIPT.size:return s.scriptscript;default:return s.text}};Jt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(s,t)=>{var{parser:a}=s;return{type:"mathchoice",mode:a.mode,display:g0(t[0]),text:g0(t[1]),script:g0(t[2]),scriptscript:g0(t[3])}},htmlBuilder:(s,t)=>{var a=d6(s,t),i=U0(a,t,!1);return nt.makeFragment(i)},mathmlBuilder:(s,t)=>{var a=d6(s,t);return lu(a,t)}});var Wm=(s,t,a,i,o,h,d)=>{s=nt.makeSpan([],[s]);var g=a&&$e.isCharacterBox(a),p,b;if(t){var E=We(t,i.havingStyle(o.sup()),i);b={elem:E,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-E.depth)}}if(a){var _=We(a,i.havingStyle(o.sub()),i);p={elem:_,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-_.height)}}var A;if(b&&p){var D=i.fontMetrics().bigOpSpacing5+p.elem.height+p.elem.depth+p.kern+s.depth+d;A=nt.makeVList({positionType:"bottom",positionData:D,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:Lt(-h)},{type:"kern",size:p.kern},{type:"elem",elem:s},{type:"kern",size:b.kern},{type:"elem",elem:b.elem,marginLeft:Lt(h)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(p){var C=s.height-d;A=nt.makeVList({positionType:"top",positionData:C,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:Lt(-h)},{type:"kern",size:p.kern},{type:"elem",elem:s}]},i)}else if(b){var H=s.depth+d;A=nt.makeVList({positionType:"bottom",positionData:H,children:[{type:"elem",elem:s},{type:"kern",size:b.kern},{type:"elem",elem:b.elem,marginLeft:Lt(h)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else return s;var U=[A];if(p&&h!==0&&!g){var Y=nt.makeSpan(["mspace"],[],i);Y.style.marginRight=Lt(h),U.unshift(Y)}return nt.makeSpan(["mop","op-limits"],U,i)},Im=["\\smallint"],Dc=(s,t)=>{var a,i,o=!1,h;s.type==="supsub"?(a=s.sup,i=s.sub,h=Ce(s.base,"op"),o=!0):h=Ce(s,"op");var d=t.style,g=!1;d.size===oe.DISPLAY.size&&h.symbol&&!Im.includes(h.name)&&(g=!0);var p;if(h.symbol){var b=g?"Size2-Regular":"Size1-Regular",E="";if((h.name==="\\oiint"||h.name==="\\oiiint")&&(E=h.name.slice(1),h.name=E==="oiint"?"\\iint":"\\iiint"),p=nt.makeSymbol(h.name,b,"math",t,["mop","op-symbol",g?"large-op":"small-op"]),E.length>0){var _=p.italic,A=nt.staticSvg(E+"Size"+(g?"2":"1"),t);p=nt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:p,shift:0},{type:"elem",elem:A,shift:g?.08:0}]},t),h.name="\\"+E,p.classes.unshift("mop"),p.italic=_}}else if(h.body){var D=U0(h.body,t,!0);D.length===1&&D[0]instanceof Wl?(p=D[0],p.classes[0]="mop"):p=nt.makeSpan(["mop"],D,t)}else{for(var C=[],H=1;H<h.name.length;H++)C.push(nt.mathsym(h.name[H],h.mode,t));p=nt.makeSpan(["mop"],C,t)}var U=0,Y=0;return(p instanceof Wl||h.name==="\\oiint"||h.name==="\\oiiint")&&!h.suppressBaseShift&&(U=(p.height-p.depth)/2-t.fontMetrics().axisHeight,Y=p.italic),o?Wm(p,a,i,t,d,Y,U):(U&&(p.style.position="relative",p.style.top=Lt(U)),p)},wh=(s,t)=>{var a;if(s.symbol)a=new hl("mo",[Il(s.name,s.mode)]),Im.includes(s.name)&&a.setAttribute("largeop","false");else if(s.body)a=new hl("mo",Wn(s.body,t));else{a=new hl("mi",[new sr(s.name.slice(1))]);var i=new hl("mo",[Il("⁡","text")]);s.parentIsSupSub?a=new hl("mrow",[a,i]):a=Mm([a,i])}return a},jy={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Jt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=i;return o.length===1&&(o=jy[o]),{type:"op",mode:a.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Dc,mathmlBuilder:wh});Jt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(s,t)=>{var{parser:a}=s,i=t[0];return{type:"op",mode:a.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:g0(i)}},htmlBuilder:Dc,mathmlBuilder:wh});var Vy={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Jt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(s){var{parser:t,funcName:a}=s;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:a}},htmlBuilder:Dc,mathmlBuilder:wh});Jt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(s){var{parser:t,funcName:a}=s;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:a}},htmlBuilder:Dc,mathmlBuilder:wh});Jt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(s){var{parser:t,funcName:a}=s,i=a;return i.length===1&&(i=Vy[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Dc,mathmlBuilder:wh});var Pm=(s,t)=>{var a,i,o=!1,h;s.type==="supsub"?(a=s.sup,i=s.sub,h=Ce(s.base,"operatorname"),o=!0):h=Ce(s,"operatorname");var d;if(h.body.length>0){for(var g=h.body.map(_=>{var A=_.text;return typeof A=="string"?{type:"textord",mode:_.mode,text:A}:_}),p=U0(g,t.withFont("mathrm"),!0),b=0;b<p.length;b++){var E=p[b];E instanceof Wl&&(E.text=E.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}d=nt.makeSpan(["mop"],p,t)}else d=nt.makeSpan(["mop"],[],t);return o?Wm(d,a,i,t,t.style,0,0):d},Qy=(s,t)=>{for(var a=Wn(s.body,t.withFont("mathrm")),i=!0,o=0;o<a.length;o++){var h=a[o];if(!(h instanceof zt.SpaceNode))if(h instanceof zt.MathNode)switch(h.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var d=h.children[0];h.children.length===1&&d instanceof zt.TextNode?d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var g=a.map(E=>E.toText()).join("");a=[new zt.TextNode(g)]}var p=new zt.MathNode("mi",a);p.setAttribute("mathvariant","normal");var b=new zt.MathNode("mo",[Il("⁡","text")]);return s.parentIsSupSub?new zt.MathNode("mrow",[p,b]):zt.newDocumentFragment([p,b])};Jt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(s,t)=>{var{parser:a,funcName:i}=s,o=t[0];return{type:"operatorname",mode:a.mode,body:g0(o),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Pm,mathmlBuilder:Qy});O("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");so({type:"ordgroup",htmlBuilder(s,t){return s.semisimple?nt.makeFragment(U0(s.body,t,!1)):nt.makeSpan(["mord"],U0(s.body,t,!0),t)},mathmlBuilder(s,t){return lu(s.body,t,!0)}});Jt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(s,t){var{parser:a}=s,i=t[0];return{type:"overline",mode:a.mode,body:i}},htmlBuilder(s,t){var a=We(s.body,t.havingCrampedStyle()),i=nt.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,h=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:3*o},{type:"elem",elem:i},{type:"kern",size:o}]},t);return nt.makeSpan(["mord","overline"],[h],t)},mathmlBuilder(s,t){var a=new zt.MathNode("mo",[new zt.TextNode("‾")]);a.setAttribute("stretchy","true");var i=new zt.MathNode("mover",[ba(s.body,t),a]);return i.setAttribute("accent","true"),i}});Jt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(s,t)=>{var{parser:a}=s,i=t[0];return{type:"phantom",mode:a.mode,body:g0(i)}},htmlBuilder:(s,t)=>{var a=U0(s.body,t.withPhantom(),!1);return nt.makeFragment(a)},mathmlBuilder:(s,t)=>{var a=Wn(s.body,t);return new zt.MathNode("mphantom",a)}});Jt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(s,t)=>{var{parser:a}=s,i=t[0];return{type:"hphantom",mode:a.mode,body:i}},htmlBuilder:(s,t)=>{var a=nt.makeSpan([],[We(s.body,t.withPhantom())]);if(a.height=0,a.depth=0,a.children)for(var i=0;i<a.children.length;i++)a.children[i].height=0,a.children[i].depth=0;return a=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a}]},t),nt.makeSpan(["mord"],[a],t)},mathmlBuilder:(s,t)=>{var a=Wn(g0(s.body),t),i=new zt.MathNode("mphantom",a),o=new zt.MathNode("mpadded",[i]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}});Jt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(s,t)=>{var{parser:a}=s,i=t[0];return{type:"vphantom",mode:a.mode,body:i}},htmlBuilder:(s,t)=>{var a=nt.makeSpan(["inner"],[We(s.body,t.withPhantom())]),i=nt.makeSpan(["fix"],[]);return nt.makeSpan(["mord","rlap"],[a,i],t)},mathmlBuilder:(s,t)=>{var a=Wn(g0(s.body),t),i=new zt.MathNode("mphantom",a),o=new zt.MathNode("mpadded",[i]);return o.setAttribute("width","0px"),o}});Jt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(s,t){var{parser:a}=s,i=Ce(t[0],"size").value,o=t[1];return{type:"raisebox",mode:a.mode,dy:i,body:o}},htmlBuilder(s,t){var a=We(s.body,t),i=e0(s.dy,t);return nt.makeVList({positionType:"shift",positionData:-i,children:[{type:"elem",elem:a}]},t)},mathmlBuilder(s,t){var a=new zt.MathNode("mpadded",[ba(s.body,t)]),i=s.dy.number+s.dy.unit;return a.setAttribute("voffset",i),a}});Jt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(s){var{parser:t}=s;return{type:"internal",mode:t.mode}}});Jt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(s,t,a){var{parser:i}=s,o=a[0],h=Ce(t[0],"size"),d=Ce(t[1],"size");return{type:"rule",mode:i.mode,shift:o&&Ce(o,"size").value,width:h.value,height:d.value}},htmlBuilder(s,t){var a=nt.makeSpan(["mord","rule"],[],t),i=e0(s.width,t),o=e0(s.height,t),h=s.shift?e0(s.shift,t):0;return a.style.borderRightWidth=Lt(i),a.style.borderTopWidth=Lt(o),a.style.bottom=Lt(h),a.width=i,a.height=o+h,a.depth=-h,a.maxFontSize=o*1.125*t.sizeMultiplier,a},mathmlBuilder(s,t){var a=e0(s.width,t),i=e0(s.height,t),o=s.shift?e0(s.shift,t):0,h=t.color&&t.getColor()||"black",d=new zt.MathNode("mspace");d.setAttribute("mathbackground",h),d.setAttribute("width",Lt(a)),d.setAttribute("height",Lt(i));var g=new zt.MathNode("mpadded",[d]);return o>=0?g.setAttribute("height",Lt(o)):(g.setAttribute("height",Lt(o)),g.setAttribute("depth",Lt(-o))),g.setAttribute("voffset",Lt(o)),g}});function $m(s,t,a){for(var i=U0(s,t,!1),o=t.sizeMultiplier/a.sizeMultiplier,h=0;h<i.length;h++){var d=i[h].classes.indexOf("sizing");d<0?Array.prototype.push.apply(i[h].classes,t.sizingClasses(a)):i[h].classes[d+1]==="reset-size"+t.size&&(i[h].classes[d+1]="reset-size"+a.size),i[h].height*=o,i[h].depth*=o}return nt.makeFragment(i)}var m6=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ky=(s,t)=>{var a=t.havingSize(s.size);return $m(s.body,a,t)};Jt({type:"sizing",names:m6,props:{numArgs:0,allowedInText:!0},handler:(s,t)=>{var{breakOnTokenText:a,funcName:i,parser:o}=s,h=o.parseExpression(!1,a);return{type:"sizing",mode:o.mode,size:m6.indexOf(i)+1,body:h}},htmlBuilder:Ky,mathmlBuilder:(s,t)=>{var a=t.havingSize(s.size),i=Wn(s.body,a),o=new zt.MathNode("mstyle",i);return o.setAttribute("mathsize",Lt(a.sizeMultiplier)),o}});Jt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(s,t,a)=>{var{parser:i}=s,o=!1,h=!1,d=a[0]&&Ce(a[0],"ordgroup");if(d)for(var g="",p=0;p<d.body.length;++p){var b=d.body[p];if(g=b.text,g==="t")o=!0;else if(g==="b")h=!0;else{o=!1,h=!1;break}}else o=!0,h=!0;var E=t[0];return{type:"smash",mode:i.mode,body:E,smashHeight:o,smashDepth:h}},htmlBuilder:(s,t)=>{var a=nt.makeSpan([],[We(s.body,t)]);if(!s.smashHeight&&!s.smashDepth)return a;if(s.smashHeight&&(a.height=0,a.children))for(var i=0;i<a.children.length;i++)a.children[i].height=0;if(s.smashDepth&&(a.depth=0,a.children))for(var o=0;o<a.children.length;o++)a.children[o].depth=0;var h=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a}]},t);return nt.makeSpan(["mord"],[h],t)},mathmlBuilder:(s,t)=>{var a=new zt.MathNode("mpadded",[ba(s.body,t)]);return s.smashHeight&&a.setAttribute("height","0px"),s.smashDepth&&a.setAttribute("depth","0px"),a}});Jt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(s,t,a){var{parser:i}=s,o=a[0],h=t[0];return{type:"sqrt",mode:i.mode,body:h,index:o}},htmlBuilder(s,t){var a=We(s.body,t.havingCrampedStyle());a.height===0&&(a.height=t.fontMetrics().xHeight),a=nt.wrapFragment(a,t);var i=t.fontMetrics(),o=i.defaultRuleThickness,h=o;t.style.id<oe.TEXT.id&&(h=t.fontMetrics().xHeight);var d=o+h/4,g=a.height+a.depth+d+o,{span:p,ruleWidth:b,advanceWidth:E}=Fr.sqrtImage(g,t),_=p.height-b;_>a.height+a.depth+d&&(d=(d+_-a.height-a.depth)/2);var A=p.height-a.height-d-b;a.style.paddingLeft=Lt(E);var D=nt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:-(a.height+A)},{type:"elem",elem:p},{type:"kern",size:b}]},t);if(s.index){var C=t.havingStyle(oe.SCRIPTSCRIPT),H=We(s.index,C,t),U=.6*(D.height-D.depth),Y=nt.makeVList({positionType:"shift",positionData:-U,children:[{type:"elem",elem:H}]},t),G=nt.makeSpan(["root"],[Y]);return nt.makeSpan(["mord","sqrt"],[G,D],t)}else return nt.makeSpan(["mord","sqrt"],[D],t)},mathmlBuilder(s,t){var{body:a,index:i}=s;return i?new zt.MathNode("mroot",[ba(a,t),ba(i,t)]):new zt.MathNode("msqrt",[ba(a,t)])}});var g6={display:oe.DISPLAY,text:oe.TEXT,script:oe.SCRIPT,scriptscript:oe.SCRIPTSCRIPT};Jt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(s,t){var{breakOnTokenText:a,funcName:i,parser:o}=s,h=o.parseExpression(!0,a),d=i.slice(1,i.length-5);return{type:"styling",mode:o.mode,style:d,body:h}},htmlBuilder(s,t){var a=g6[s.style],i=t.havingStyle(a).withFont("");return $m(s.body,i,t)},mathmlBuilder(s,t){var a=g6[s.style],i=t.havingStyle(a),o=Wn(s.body,i),h=new zt.MathNode("mstyle",o),d={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},g=d[s.style];return h.setAttribute("scriptlevel",g[0]),h.setAttribute("displaystyle",g[1]),h}});var Zy=function(t,a){var i=t.base;if(i)if(i.type==="op"){var o=i.limits&&(a.style.size===oe.DISPLAY.size||i.alwaysHandleSupSub);return o?Dc:null}else if(i.type==="operatorname"){var h=i.alwaysHandleSupSub&&(a.style.size===oe.DISPLAY.size||i.limits);return h?Pm:null}else{if(i.type==="accent")return $e.isCharacterBox(i.base)?u5:null;if(i.type==="horizBrace"){var d=!t.sub;return d===i.isOver?Fm:null}else return null}else return null};so({type:"supsub",htmlBuilder(s,t){var a=Zy(s,t);if(a)return a(s,t);var{base:i,sup:o,sub:h}=s,d=We(i,t),g,p,b=t.fontMetrics(),E=0,_=0,A=i&&$e.isCharacterBox(i);if(o){var D=t.havingStyle(t.style.sup());g=We(o,D,t),A||(E=d.height-D.fontMetrics().supDrop*D.sizeMultiplier/t.sizeMultiplier)}if(h){var C=t.havingStyle(t.style.sub());p=We(h,C,t),A||(_=d.depth+C.fontMetrics().subDrop*C.sizeMultiplier/t.sizeMultiplier)}var H;t.style===oe.DISPLAY?H=b.sup1:t.style.cramped?H=b.sup3:H=b.sup2;var U=t.sizeMultiplier,Y=Lt(.5/b.ptPerEm/U),G=null;if(p){var Z=s.base&&s.base.type==="op"&&s.base.name&&(s.base.name==="\\oiint"||s.base.name==="\\oiiint");(d instanceof Wl||Z)&&(G=Lt(-d.italic))}var q;if(g&&p){E=Math.max(E,H,g.depth+.25*b.xHeight),_=Math.max(_,b.sub2);var P=b.defaultRuleThickness,ut=4*P;if(E-g.depth-(p.height-_)<ut){_=ut-(E-g.depth)+p.height;var rt=.8*b.xHeight-(E-g.depth);rt>0&&(E+=rt,_-=rt)}var ot=[{type:"elem",elem:p,shift:_,marginRight:Y,marginLeft:G},{type:"elem",elem:g,shift:-E,marginRight:Y}];q=nt.makeVList({positionType:"individualShift",children:ot},t)}else if(p){_=Math.max(_,b.sub1,p.height-.8*b.xHeight);var Et=[{type:"elem",elem:p,marginLeft:G,marginRight:Y}];q=nt.makeVList({positionType:"shift",positionData:_,children:Et},t)}else if(g)E=Math.max(E,H,g.depth+.25*b.xHeight),q=nt.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:g,marginRight:Y}]},t);else throw new Error("supsub must have either sup or sub.");var kt=Ld(d,"right")||"mord";return nt.makeSpan([kt],[d,nt.makeSpan(["msupsub"],[q])],t)},mathmlBuilder(s,t){var a=!1,i,o;s.base&&s.base.type==="horizBrace"&&(o=!!s.sup,o===s.base.isOver&&(a=!0,i=s.base.isOver)),s.base&&(s.base.type==="op"||s.base.type==="operatorname")&&(s.base.parentIsSupSub=!0);var h=[ba(s.base,t)];s.sub&&h.push(ba(s.sub,t)),s.sup&&h.push(ba(s.sup,t));var d;if(a)d=i?"mover":"munder";else if(s.sub)if(s.sup){var b=s.base;b&&b.type==="op"&&b.limits&&t.style===oe.DISPLAY||b&&b.type==="operatorname"&&b.alwaysHandleSupSub&&(t.style===oe.DISPLAY||b.limits)?d="munderover":d="msubsup"}else{var p=s.base;p&&p.type==="op"&&p.limits&&(t.style===oe.DISPLAY||p.alwaysHandleSupSub)||p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(p.limits||t.style===oe.DISPLAY)?d="munder":d="msub"}else{var g=s.base;g&&g.type==="op"&&g.limits&&(t.style===oe.DISPLAY||g.alwaysHandleSupSub)||g&&g.type==="operatorname"&&g.alwaysHandleSupSub&&(g.limits||t.style===oe.DISPLAY)?d="mover":d="msup"}return new zt.MathNode(d,h)}});so({type:"atom",htmlBuilder(s,t){return nt.mathsym(s.text,s.mode,t,["m"+s.family])},mathmlBuilder(s,t){var a=new zt.MathNode("mo",[Il(s.text,s.mode)]);if(s.family==="bin"){var i=r5(s,t);i==="bold-italic"&&a.setAttribute("mathvariant",i)}else s.family==="punct"?a.setAttribute("separator","true"):(s.family==="open"||s.family==="close")&&a.setAttribute("stretchy","false");return a}});var t7={mi:"italic",mn:"normal",mtext:"normal"};so({type:"mathord",htmlBuilder(s,t){return nt.makeOrd(s,t,"mathord")},mathmlBuilder(s,t){var a=new zt.MathNode("mi",[Il(s.text,s.mode,t)]),i=r5(s,t)||"italic";return i!==t7[a.type]&&a.setAttribute("mathvariant",i),a}});so({type:"textord",htmlBuilder(s,t){return nt.makeOrd(s,t,"textord")},mathmlBuilder(s,t){var a=Il(s.text,s.mode,t),i=r5(s,t)||"normal",o;return s.mode==="text"?o=new zt.MathNode("mtext",[a]):/[0-9]/.test(s.text)?o=new zt.MathNode("mn",[a]):s.text==="\\prime"?o=new zt.MathNode("mo",[a]):o=new zt.MathNode("mi",[a]),i!==t7[o.type]&&o.setAttribute("mathvariant",i),o}});var bd={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Sd={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};so({type:"spacing",htmlBuilder(s,t){if(Sd.hasOwnProperty(s.text)){var a=Sd[s.text].className||"";if(s.mode==="text"){var i=nt.makeOrd(s,t,"textord");return i.classes.push(a),i}else return nt.makeSpan(["mspace",a],[nt.mathsym(s.text,s.mode,t)],t)}else{if(bd.hasOwnProperty(s.text))return nt.makeSpan(["mspace",bd[s.text]],[],t);throw new Dt('Unknown type of space "'+s.text+'"')}},mathmlBuilder(s,t){var a;if(Sd.hasOwnProperty(s.text))a=new zt.MathNode("mtext",[new zt.TextNode(" ")]);else{if(bd.hasOwnProperty(s.text))return new zt.MathNode("mspace");throw new Dt('Unknown type of space "'+s.text+'"')}return a}});var p6=()=>{var s=new zt.MathNode("mtd",[]);return s.setAttribute("width","50%"),s};so({type:"tag",mathmlBuilder(s,t){var a=new zt.MathNode("mtable",[new zt.MathNode("mtr",[p6(),new zt.MathNode("mtd",[lu(s.body,t)]),p6(),new zt.MathNode("mtd",[lu(s.tag,t)])])]);return a.setAttribute("width","100%"),a}});var v6={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},y6={"\\textbf":"textbf","\\textmd":"textmd"},Jy={"\\textit":"textit","\\textup":"textup"},b6=(s,t)=>{var a=s.font;if(a){if(v6[a])return t.withTextFontFamily(v6[a]);if(y6[a])return t.withTextFontWeight(y6[a]);if(a==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Jy[a])};Jt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(s,t){var{parser:a,funcName:i}=s,o=t[0];return{type:"text",mode:a.mode,body:g0(o),font:i}},htmlBuilder(s,t){var a=b6(s,t),i=U0(s.body,a,!0);return nt.makeSpan(["mord","text"],i,a)},mathmlBuilder(s,t){var a=b6(s,t);return lu(s.body,a)}});Jt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(s,t){var{parser:a}=s;return{type:"underline",mode:a.mode,body:t[0]}},htmlBuilder(s,t){var a=We(s.body,t),i=nt.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,h=nt.makeVList({positionType:"top",positionData:a.height,children:[{type:"kern",size:o},{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:a}]},t);return nt.makeSpan(["mord","underline"],[h],t)},mathmlBuilder(s,t){var a=new zt.MathNode("mo",[new zt.TextNode("‾")]);a.setAttribute("stretchy","true");var i=new zt.MathNode("munder",[ba(s.body,t),a]);return i.setAttribute("accentunder","true"),i}});Jt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(s,t){var{parser:a}=s;return{type:"vcenter",mode:a.mode,body:t[0]}},htmlBuilder(s,t){var a=We(s.body,t),i=t.fontMetrics().axisHeight,o=.5*(a.height-i-(a.depth+i));return nt.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:a}]},t)},mathmlBuilder(s,t){return new zt.MathNode("mpadded",[ba(s.body,t)],["vcenter"])}});Jt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(s,t,a){throw new Dt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(s,t){for(var a=S6(s),i=[],o=t.havingStyle(t.style.text()),h=0;h<a.length;h++){var d=a[h];d==="~"&&(d="\\textasciitilde"),i.push(nt.makeSymbol(d,"Typewriter-Regular",s.mode,o,["mord","texttt"]))}return nt.makeSpan(["mord","text"].concat(o.sizingClasses(t)),nt.tryCombineChars(i),o)},mathmlBuilder(s,t){var a=new zt.TextNode(S6(s)),i=new zt.MathNode("mtext",[a]);return i.setAttribute("mathvariant","monospace"),i}});var S6=s=>s.body.replace(/ /g,s.star?"␣":" "),eu=Em,e7=`[ \r
297
+ ]`,Fy="\\\\[a-zA-Z@]+",Wy="\\\\[^\uD800-\uDFFF]",Iy="("+Fy+")"+e7+"*",Py=`\\\\(
298
+ |[ \r ]+
299
+ ?)[ \r ]*`,jd="[̀-ͯ]",$y=new RegExp(jd+"+$"),tb="("+e7+"+)|"+(Py+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(jd+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(jd+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Iy)+("|"+Wy+")");class x6{constructor(t,a){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=a,this.tokenRegex=new RegExp(tb,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,a){this.catcodes[t]=a}lex(){var t=this.input,a=this.tokenRegex.lastIndex;if(a===t.length)return new dl("EOF",new Fn(this,a,a));var i=this.tokenRegex.exec(t);if(i===null||i.index!==a)throw new Dt("Unexpected character: '"+t[a]+"'",new dl(t[a],new Fn(this,a,a+1)));var o=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[o]===14){var h=t.indexOf(`
300
+ `,this.tokenRegex.lastIndex);return h===-1?(this.tokenRegex.lastIndex=t.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=h+1,this.lex()}return new dl(o,new Fn(this,a,this.tokenRegex.lastIndex))}}class eb{constructor(t,a){t===void 0&&(t={}),a===void 0&&(a={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=a,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Dt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var a in t)t.hasOwnProperty(a)&&(t[a]==null?delete this.current[a]:this.current[a]=t[a])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,a,i){if(i===void 0&&(i=!1),i){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=a)}else{var h=this.undefStack[this.undefStack.length-1];h&&!h.hasOwnProperty(t)&&(h[t]=this.current[t])}a==null?delete this.current[t]:this.current[t]=a}}var ab=Vm;O("\\noexpand",function(s){var t=s.popToken();return s.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});O("\\expandafter",function(s){var t=s.popToken();return s.expandOnce(!0),{tokens:[t],numArgs:0}});O("\\@firstoftwo",function(s){var t=s.consumeArgs(2);return{tokens:t[0],numArgs:0}});O("\\@secondoftwo",function(s){var t=s.consumeArgs(2);return{tokens:t[1],numArgs:0}});O("\\@ifnextchar",function(s){var t=s.consumeArgs(3);s.consumeSpaces();var a=s.future();return t[0].length===1&&t[0][0].text===a.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});O("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");O("\\TextOrMath",function(s){var t=s.consumeArgs(2);return s.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var T6={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};O("\\char",function(s){var t=s.popToken(),a,i="";if(t.text==="'")a=8,t=s.popToken();else if(t.text==='"')a=16,t=s.popToken();else if(t.text==="`")if(t=s.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Dt("\\char` missing argument");i=t.text.charCodeAt(0)}else a=10;if(a){if(i=T6[t.text],i==null||i>=a)throw new Dt("Invalid base-"+a+" digit "+t.text);for(var o;(o=T6[s.future().text])!=null&&o<a;)i*=a,i+=o,s.popToken()}return"\\@char{"+i+"}"});var p5=(s,t,a,i)=>{var o=s.consumeArg().tokens;if(o.length!==1)throw new Dt("\\newcommand's first argument must be a macro name");var h=o[0].text,d=s.isDefined(h);if(d&&!t)throw new Dt("\\newcommand{"+h+"} attempting to redefine "+(h+"; use \\renewcommand"));if(!d&&!a)throw new Dt("\\renewcommand{"+h+"} when command "+h+" does not yet exist; use \\newcommand");var g=0;if(o=s.consumeArg().tokens,o.length===1&&o[0].text==="["){for(var p="",b=s.expandNextToken();b.text!=="]"&&b.text!=="EOF";)p+=b.text,b=s.expandNextToken();if(!p.match(/^\s*[0-9]+\s*$/))throw new Dt("Invalid number of arguments: "+p);g=parseInt(p),o=s.consumeArg().tokens}return d&&i||s.macros.set(h,{tokens:o,numArgs:g}),""};O("\\newcommand",s=>p5(s,!1,!0,!1));O("\\renewcommand",s=>p5(s,!0,!1,!1));O("\\providecommand",s=>p5(s,!0,!0,!0));O("\\message",s=>{var t=s.consumeArgs(1)[0];return console.log(t.reverse().map(a=>a.text).join("")),""});O("\\errmessage",s=>{var t=s.consumeArgs(1)[0];return console.error(t.reverse().map(a=>a.text).join("")),""});O("\\show",s=>{var t=s.popToken(),a=t.text;return console.log(t,s.macros.get(a),eu[a],Ra.math[a],Ra.text[a]),""});O("\\bgroup","{");O("\\egroup","}");O("~","\\nobreakspace");O("\\lq","`");O("\\rq","'");O("\\aa","\\r a");O("\\AA","\\r A");O("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");O("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");O("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");O("ℬ","\\mathscr{B}");O("ℰ","\\mathscr{E}");O("ℱ","\\mathscr{F}");O("ℋ","\\mathscr{H}");O("ℐ","\\mathscr{I}");O("ℒ","\\mathscr{L}");O("ℳ","\\mathscr{M}");O("ℛ","\\mathscr{R}");O("ℭ","\\mathfrak{C}");O("ℌ","\\mathfrak{H}");O("ℨ","\\mathfrak{Z}");O("\\Bbbk","\\Bbb{k}");O("·","\\cdotp");O("\\llap","\\mathllap{\\textrm{#1}}");O("\\rlap","\\mathrlap{\\textrm{#1}}");O("\\clap","\\mathclap{\\textrm{#1}}");O("\\mathstrut","\\vphantom{(}");O("\\underbar","\\underline{\\text{#1}}");O("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');O("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");O("\\ne","\\neq");O("≠","\\neq");O("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");O("∉","\\notin");O("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");O("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");O("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");O("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");O("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");O("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");O("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");O("⟂","\\perp");O("‼","\\mathclose{!\\mkern-0.8mu!}");O("∌","\\notni");O("⌜","\\ulcorner");O("⌝","\\urcorner");O("⌞","\\llcorner");O("⌟","\\lrcorner");O("©","\\copyright");O("®","\\textregistered");O("️","\\textregistered");O("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');O("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');O("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');O("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');O("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");O("⋮","\\vdots");O("\\varGamma","\\mathit{\\Gamma}");O("\\varDelta","\\mathit{\\Delta}");O("\\varTheta","\\mathit{\\Theta}");O("\\varLambda","\\mathit{\\Lambda}");O("\\varXi","\\mathit{\\Xi}");O("\\varPi","\\mathit{\\Pi}");O("\\varSigma","\\mathit{\\Sigma}");O("\\varUpsilon","\\mathit{\\Upsilon}");O("\\varPhi","\\mathit{\\Phi}");O("\\varPsi","\\mathit{\\Psi}");O("\\varOmega","\\mathit{\\Omega}");O("\\substack","\\begin{subarray}{c}#1\\end{subarray}");O("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");O("\\boxed","\\fbox{$\\displaystyle{#1}$}");O("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");O("\\implies","\\DOTSB\\;\\Longrightarrow\\;");O("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");O("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");O("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var E6={",":"\\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"};O("\\dots",function(s){var t="\\dotso",a=s.expandAfterFuture().text;return a in E6?t=E6[a]:(a.slice(0,4)==="\\not"||a in Ra.math&&["bin","rel"].includes(Ra.math[a].group))&&(t="\\dotsb"),t});var v5={")":!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};O("\\dotso",function(s){var t=s.future().text;return t in v5?"\\ldots\\,":"\\ldots"});O("\\dotsc",function(s){var t=s.future().text;return t in v5&&t!==","?"\\ldots\\,":"\\ldots"});O("\\cdots",function(s){var t=s.future().text;return t in v5?"\\@cdots\\,":"\\@cdots"});O("\\dotsb","\\cdots");O("\\dotsm","\\cdots");O("\\dotsi","\\!\\cdots");O("\\dotsx","\\ldots\\,");O("\\DOTSI","\\relax");O("\\DOTSB","\\relax");O("\\DOTSX","\\relax");O("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");O("\\,","\\tmspace+{3mu}{.1667em}");O("\\thinspace","\\,");O("\\>","\\mskip{4mu}");O("\\:","\\tmspace+{4mu}{.2222em}");O("\\medspace","\\:");O("\\;","\\tmspace+{5mu}{.2777em}");O("\\thickspace","\\;");O("\\!","\\tmspace-{3mu}{.1667em}");O("\\negthinspace","\\!");O("\\negmedspace","\\tmspace-{4mu}{.2222em}");O("\\negthickspace","\\tmspace-{5mu}{.277em}");O("\\enspace","\\kern.5em ");O("\\enskip","\\hskip.5em\\relax");O("\\quad","\\hskip1em\\relax");O("\\qquad","\\hskip2em\\relax");O("\\tag","\\@ifstar\\tag@literal\\tag@paren");O("\\tag@paren","\\tag@literal{({#1})}");O("\\tag@literal",s=>{if(s.macros.get("\\df@tag"))throw new Dt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});O("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");O("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");O("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");O("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");O("\\newline","\\\\\\relax");O("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var a7=Lt(rr["Main-Regular"][84][1]-.7*rr["Main-Regular"][65][1]);O("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+a7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");O("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+a7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");O("\\hspace","\\@ifstar\\@hspacer\\@hspace");O("\\@hspace","\\hskip #1\\relax");O("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");O("\\ordinarycolon",":");O("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");O("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');O("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');O("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');O("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');O("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');O("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');O("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');O("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');O("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');O("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');O("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');O("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');O("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');O("∷","\\dblcolon");O("∹","\\eqcolon");O("≔","\\coloneqq");O("≕","\\eqqcolon");O("⩴","\\Coloneqq");O("\\ratio","\\vcentcolon");O("\\coloncolon","\\dblcolon");O("\\colonequals","\\coloneqq");O("\\coloncolonequals","\\Coloneqq");O("\\equalscolon","\\eqqcolon");O("\\equalscoloncolon","\\Eqqcolon");O("\\colonminus","\\coloneq");O("\\coloncolonminus","\\Coloneq");O("\\minuscolon","\\eqcolon");O("\\minuscoloncolon","\\Eqcolon");O("\\coloncolonapprox","\\Colonapprox");O("\\coloncolonsim","\\Colonsim");O("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");O("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");O("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");O("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");O("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");O("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");O("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");O("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");O("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");O("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");O("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");O("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");O("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");O("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");O("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");O("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");O("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");O("\\nleqq","\\html@mathml{\\@nleqq}{≰}");O("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");O("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");O("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");O("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");O("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");O("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");O("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");O("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");O("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");O("\\imath","\\html@mathml{\\@imath}{ı}");O("\\jmath","\\html@mathml{\\@jmath}{ȷ}");O("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");O("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");O("⟦","\\llbracket");O("⟧","\\rrbracket");O("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");O("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");O("⦃","\\lBrace");O("⦄","\\rBrace");O("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");O("⦵","\\minuso");O("\\darr","\\downarrow");O("\\dArr","\\Downarrow");O("\\Darr","\\Downarrow");O("\\lang","\\langle");O("\\rang","\\rangle");O("\\uarr","\\uparrow");O("\\uArr","\\Uparrow");O("\\Uarr","\\Uparrow");O("\\N","\\mathbb{N}");O("\\R","\\mathbb{R}");O("\\Z","\\mathbb{Z}");O("\\alef","\\aleph");O("\\alefsym","\\aleph");O("\\Alpha","\\mathrm{A}");O("\\Beta","\\mathrm{B}");O("\\bull","\\bullet");O("\\Chi","\\mathrm{X}");O("\\clubs","\\clubsuit");O("\\cnums","\\mathbb{C}");O("\\Complex","\\mathbb{C}");O("\\Dagger","\\ddagger");O("\\diamonds","\\diamondsuit");O("\\empty","\\emptyset");O("\\Epsilon","\\mathrm{E}");O("\\Eta","\\mathrm{H}");O("\\exist","\\exists");O("\\harr","\\leftrightarrow");O("\\hArr","\\Leftrightarrow");O("\\Harr","\\Leftrightarrow");O("\\hearts","\\heartsuit");O("\\image","\\Im");O("\\infin","\\infty");O("\\Iota","\\mathrm{I}");O("\\isin","\\in");O("\\Kappa","\\mathrm{K}");O("\\larr","\\leftarrow");O("\\lArr","\\Leftarrow");O("\\Larr","\\Leftarrow");O("\\lrarr","\\leftrightarrow");O("\\lrArr","\\Leftrightarrow");O("\\Lrarr","\\Leftrightarrow");O("\\Mu","\\mathrm{M}");O("\\natnums","\\mathbb{N}");O("\\Nu","\\mathrm{N}");O("\\Omicron","\\mathrm{O}");O("\\plusmn","\\pm");O("\\rarr","\\rightarrow");O("\\rArr","\\Rightarrow");O("\\Rarr","\\Rightarrow");O("\\real","\\Re");O("\\reals","\\mathbb{R}");O("\\Reals","\\mathbb{R}");O("\\Rho","\\mathrm{P}");O("\\sdot","\\cdot");O("\\sect","\\S");O("\\spades","\\spadesuit");O("\\sub","\\subset");O("\\sube","\\subseteq");O("\\supe","\\supseteq");O("\\Tau","\\mathrm{T}");O("\\thetasym","\\vartheta");O("\\weierp","\\wp");O("\\Zeta","\\mathrm{Z}");O("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");O("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");O("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");O("\\bra","\\mathinner{\\langle{#1}|}");O("\\ket","\\mathinner{|{#1}\\rangle}");O("\\braket","\\mathinner{\\langle{#1}\\rangle}");O("\\Bra","\\left\\langle#1\\right|");O("\\Ket","\\left|#1\\right\\rangle");var n7=s=>t=>{var a=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.consumeArg().tokens,h=t.consumeArg().tokens,d=t.macros.get("|"),g=t.macros.get("\\|");t.macros.beginGroup();var p=_=>A=>{s&&(A.macros.set("|",d),o.length&&A.macros.set("\\|",g));var D=_;if(!_&&o.length){var C=A.future();C.text==="|"&&(A.popToken(),D=!0)}return{tokens:D?o:i,numArgs:0}};t.macros.set("|",p(!1)),o.length&&t.macros.set("\\|",p(!0));var b=t.consumeArg().tokens,E=t.expandTokens([...h,...b,...a]);return t.macros.endGroup(),{tokens:E.reverse(),numArgs:0}};O("\\bra@ket",n7(!1));O("\\bra@set",n7(!0));O("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");O("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");O("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");O("\\angln","{\\angl n}");O("\\blue","\\textcolor{##6495ed}{#1}");O("\\orange","\\textcolor{##ffa500}{#1}");O("\\pink","\\textcolor{##ff00af}{#1}");O("\\red","\\textcolor{##df0030}{#1}");O("\\green","\\textcolor{##28ae7b}{#1}");O("\\gray","\\textcolor{gray}{#1}");O("\\purple","\\textcolor{##9d38bd}{#1}");O("\\blueA","\\textcolor{##ccfaff}{#1}");O("\\blueB","\\textcolor{##80f6ff}{#1}");O("\\blueC","\\textcolor{##63d9ea}{#1}");O("\\blueD","\\textcolor{##11accd}{#1}");O("\\blueE","\\textcolor{##0c7f99}{#1}");O("\\tealA","\\textcolor{##94fff5}{#1}");O("\\tealB","\\textcolor{##26edd5}{#1}");O("\\tealC","\\textcolor{##01d1c1}{#1}");O("\\tealD","\\textcolor{##01a995}{#1}");O("\\tealE","\\textcolor{##208170}{#1}");O("\\greenA","\\textcolor{##b6ffb0}{#1}");O("\\greenB","\\textcolor{##8af281}{#1}");O("\\greenC","\\textcolor{##74cf70}{#1}");O("\\greenD","\\textcolor{##1fab54}{#1}");O("\\greenE","\\textcolor{##0d923f}{#1}");O("\\goldA","\\textcolor{##ffd0a9}{#1}");O("\\goldB","\\textcolor{##ffbb71}{#1}");O("\\goldC","\\textcolor{##ff9c39}{#1}");O("\\goldD","\\textcolor{##e07d10}{#1}");O("\\goldE","\\textcolor{##a75a05}{#1}");O("\\redA","\\textcolor{##fca9a9}{#1}");O("\\redB","\\textcolor{##ff8482}{#1}");O("\\redC","\\textcolor{##f9685d}{#1}");O("\\redD","\\textcolor{##e84d39}{#1}");O("\\redE","\\textcolor{##bc2612}{#1}");O("\\maroonA","\\textcolor{##ffbde0}{#1}");O("\\maroonB","\\textcolor{##ff92c6}{#1}");O("\\maroonC","\\textcolor{##ed5fa6}{#1}");O("\\maroonD","\\textcolor{##ca337c}{#1}");O("\\maroonE","\\textcolor{##9e034e}{#1}");O("\\purpleA","\\textcolor{##ddd7ff}{#1}");O("\\purpleB","\\textcolor{##c6b9fc}{#1}");O("\\purpleC","\\textcolor{##aa87ff}{#1}");O("\\purpleD","\\textcolor{##7854ab}{#1}");O("\\purpleE","\\textcolor{##543b78}{#1}");O("\\mintA","\\textcolor{##f5f9e8}{#1}");O("\\mintB","\\textcolor{##edf2df}{#1}");O("\\mintC","\\textcolor{##e0e5cc}{#1}");O("\\grayA","\\textcolor{##f6f7f7}{#1}");O("\\grayB","\\textcolor{##f0f1f2}{#1}");O("\\grayC","\\textcolor{##e3e5e6}{#1}");O("\\grayD","\\textcolor{##d6d8da}{#1}");O("\\grayE","\\textcolor{##babec2}{#1}");O("\\grayF","\\textcolor{##888d93}{#1}");O("\\grayG","\\textcolor{##626569}{#1}");O("\\grayH","\\textcolor{##3b3e40}{#1}");O("\\grayI","\\textcolor{##21242c}{#1}");O("\\kaBlue","\\textcolor{##314453}{#1}");O("\\kaGreen","\\textcolor{##71B307}{#1}");var l7={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class nb{constructor(t,a,i){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=a,this.expansionCount=0,this.feed(t),this.macros=new eb(ab,a.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new x6(t,this.settings)}switchMode(t){this.mode=t}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(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var a,i,o;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;a=this.popToken(),{tokens:o,end:i}=this.consumeArg(["]"])}else({tokens:o,start:a,end:i}=this.consumeArg());return this.pushToken(new dl("EOF",i.loc)),this.pushTokens(o),new dl("",Fn.range(a,i))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var a=[],i=t&&t.length>0;i||this.consumeSpaces();var o=this.future(),h,d=0,g=0;do{if(h=this.popToken(),a.push(h),h.text==="{")++d;else if(h.text==="}"){if(--d,d===-1)throw new Dt("Extra }",h)}else if(h.text==="EOF")throw new Dt("Unexpected end of input in a macro argument, expected '"+(t&&i?t[g]:"}")+"'",h);if(t&&i)if((d===0||d===1&&t[g]==="{")&&h.text===t[g]){if(++g,g===t.length){a.splice(-g,g);break}}else g=0}while(d!==0||i);return o.text==="{"&&a[a.length-1].text==="}"&&(a.pop(),a.shift()),a.reverse(),{tokens:a,start:o,end:h}}consumeArgs(t,a){if(a){if(a.length!==t+1)throw new Dt("The length of delimiters doesn't match the number of args!");for(var i=a[0],o=0;o<i.length;o++){var h=this.popToken();if(i[o]!==h.text)throw new Dt("Use of the macro doesn't match its definition",h)}}for(var d=[],g=0;g<t;g++)d.push(this.consumeArg(a&&a[g+1]).tokens);return d}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Dt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var a=this.popToken(),i=a.text,o=a.noexpand?null:this._getExpansion(i);if(o==null||t&&o.unexpandable){if(t&&o==null&&i[0]==="\\"&&!this.isDefined(i))throw new Dt("Undefined control sequence: "+i);return this.pushToken(a),!1}this.countExpansion(1);var h=o.tokens,d=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs){h=h.slice();for(var g=h.length-1;g>=0;--g){var p=h[g];if(p.text==="#"){if(g===0)throw new Dt("Incomplete placeholder at end of macro body",p);if(p=h[--g],p.text==="#")h.splice(g+1,1);else if(/^[1-9]$/.test(p.text))h.splice(g,2,...d[+p.text-1]);else throw new Dt("Not a valid argument number",p)}}}return this.pushTokens(h),h.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new dl(t)]):void 0}expandTokens(t){var a=[],i=this.stack.length;for(this.pushTokens(t);this.stack.length>i;)if(this.expandOnce(!0)===!1){var o=this.stack.pop();o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),a.push(o)}return this.countExpansion(a.length),a}expandMacroAsText(t){var a=this.expandMacro(t);return a&&a.map(i=>i.text).join("")}_getExpansion(t){var a=this.macros.get(t);if(a==null)return a;if(t.length===1){var i=this.lexer.catcodes[t];if(i!=null&&i!==13)return}var o=typeof a=="function"?a(this):a;if(typeof o=="string"){var h=0;if(o.indexOf("#")!==-1)for(var d=o.replace(/##/g,"");d.indexOf("#"+(h+1))!==-1;)++h;for(var g=new x6(o,this.settings),p=[],b=g.lex();b.text!=="EOF";)p.push(b),b=g.lex();p.reverse();var E={tokens:p,numArgs:h};return E}return o}isDefined(t){return this.macros.has(t)||eu.hasOwnProperty(t)||Ra.math.hasOwnProperty(t)||Ra.text.hasOwnProperty(t)||l7.hasOwnProperty(t)}isExpandable(t){var a=this.macros.get(t);return a!=null?typeof a=="string"||typeof a=="function"||!a.unexpandable:eu.hasOwnProperty(t)&&!eu[t].primitive}}var _6=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,G2=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),xd={"́":{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"}},M6={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class s4{constructor(t,a){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 nb(t,a,this.mode),this.settings=a,this.leftrightDepth=0}expect(t,a){if(a===void 0&&(a=!0),this.fetch().text!==t)throw new Dt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());a&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var a=this.nextToken;this.consume(),this.gullet.pushToken(new dl("}")),this.gullet.pushTokens(t);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=a,i}parseExpression(t,a){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var o=this.fetch();if(s4.endOfExpression.indexOf(o.text)!==-1||a&&o.text===a||t&&eu[o.text]&&eu[o.text].infix)break;var h=this.parseAtom(a);if(h){if(h.type==="internal")continue}else break;i.push(h)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var a=-1,i,o=0;o<t.length;o++)if(t[o].type==="infix"){if(a!==-1)throw new Dt("only one infix operator per group",t[o].token);a=o,i=t[o].replaceWith}if(a!==-1&&i){var h,d,g=t.slice(0,a),p=t.slice(a+1);g.length===1&&g[0].type==="ordgroup"?h=g[0]:h={type:"ordgroup",mode:this.mode,body:g},p.length===1&&p[0].type==="ordgroup"?d=p[0]:d={type:"ordgroup",mode:this.mode,body:p};var b;return i==="\\\\abovefrac"?b=this.callFunction(i,[h,t[a],d],[]):b=this.callFunction(i,[h,d],[]),[b]}else return t}handleSupSubscript(t){var a=this.fetch(),i=a.text;this.consume(),this.consumeSpaces();var o;do{var h;o=this.parseGroup(t)}while(((h=o)==null?void 0:h.type)==="internal");if(!o)throw new Dt("Expected group after '"+i+"'",a);return o}formatUnsupportedCmd(t){for(var a=[],i=0;i<t.length;i++)a.push({type:"textord",mode:"text",text:t[i]});var o={type:"text",mode:this.mode,body:a},h={type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]};return h}parseAtom(t){var a=this.parseGroup("atom",t);if(a?.type==="internal"||this.mode==="text")return a;for(var i,o;;){this.consumeSpaces();var h=this.fetch();if(h.text==="\\limits"||h.text==="\\nolimits"){if(a&&a.type==="op"){var d=h.text==="\\limits";a.limits=d,a.alwaysHandleSupSub=!0}else if(a&&a.type==="operatorname")a.alwaysHandleSupSub&&(a.limits=h.text==="\\limits");else throw new Dt("Limit controls must follow a math operator",h);this.consume()}else if(h.text==="^"){if(i)throw new Dt("Double superscript",h);i=this.handleSupSubscript("superscript")}else if(h.text==="_"){if(o)throw new Dt("Double subscript",h);o=this.handleSupSubscript("subscript")}else if(h.text==="'"){if(i)throw new Dt("Double superscript",h);var g={type:"textord",mode:this.mode,text:"\\prime"},p=[g];for(this.consume();this.fetch().text==="'";)p.push(g),this.consume();this.fetch().text==="^"&&p.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:p}}else if(G2[h.text]){var b=_6.test(h.text),E=[];for(E.push(new dl(G2[h.text])),this.consume();;){var _=this.fetch().text;if(!G2[_]||_6.test(_)!==b)break;E.unshift(new dl(G2[_])),this.consume()}var A=this.subparse(E);b?o={type:"ordgroup",mode:"math",body:A}:i={type:"ordgroup",mode:"math",body:A}}else break}return i||o?{type:"supsub",mode:this.mode,base:a,sup:i,sub:o}:a}parseFunction(t,a){var i=this.fetch(),o=i.text,h=eu[o];if(!h)return null;if(this.consume(),a&&a!=="atom"&&!h.allowedInArgument)throw new Dt("Got function '"+o+"' with no arguments"+(a?" as "+a:""),i);if(this.mode==="text"&&!h.allowedInText)throw new Dt("Can't use function '"+o+"' in text mode",i);if(this.mode==="math"&&h.allowedInMath===!1)throw new Dt("Can't use function '"+o+"' in math mode",i);var{args:d,optArgs:g}=this.parseArguments(o,h);return this.callFunction(o,d,g,i,t)}callFunction(t,a,i,o,h){var d={funcName:t,parser:this,token:o,breakOnTokenText:h},g=eu[t];if(g&&g.handler)return g.handler(d,a,i);throw new Dt("No function handler for "+t)}parseArguments(t,a){var i=a.numArgs+a.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var o=[],h=[],d=0;d<i;d++){var g=a.argTypes&&a.argTypes[d],p=d<a.numOptionalArgs;(a.primitive&&g==null||a.type==="sqrt"&&d===1&&h[0]==null)&&(g="primitive");var b=this.parseGroupOfType("argument to '"+t+"'",g,p);if(p)h.push(b);else if(b!=null)o.push(b);else throw new Dt("Null argument, please report this as a bug")}return{args:o,optArgs:h}}parseGroupOfType(t,a,i){switch(a){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,a);case"hbox":{var o=this.parseArgumentGroup(i,"text");return o!=null?{type:"styling",mode:o.mode,body:[o],style:"text"}:null}case"raw":{var h=this.parseStringGroup("raw",i);return h!=null?{type:"raw",mode:"text",string:h.text}:null}case"primitive":{if(i)throw new Dt("A primitive argument cannot be optional");var d=this.parseGroup(t);if(d==null)throw new Dt("Expected group as "+t,this.fetch());return d}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new Dt("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,a){var i=this.gullet.scanArgument(a);if(i==null)return null;for(var o="",h;(h=this.fetch()).text!=="EOF";)o+=h.text,this.consume();return this.consume(),i.text=o,i}parseRegexGroup(t,a){for(var i=this.fetch(),o=i,h="",d;(d=this.fetch()).text!=="EOF"&&t.test(h+d.text);)o=d,h+=o.text,this.consume();if(h==="")throw new Dt("Invalid "+a+": '"+i.text+"'",i);return i.range(o,h)}parseColorGroup(t){var a=this.parseStringGroup("color",t);if(a==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(a.text);if(!i)throw new Dt("Invalid color: '"+a.text+"'",a);var o=i[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}}parseSizeGroup(t){var a,i=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?a=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):a=this.parseStringGroup("size",t),!a)return null;!t&&a.text.length===0&&(a.text="0pt",i=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(a.text);if(!o)throw new Dt("Invalid size: '"+a.text+"'",a);var h={number:+(o[1]+o[2]),unit:o[3]};if(!mm(h))throw new Dt("Invalid unit: '"+h.unit+"'",a);return{type:"size",mode:this.mode,value:h,isBlank:i}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var a=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),a==null)return null;var i=a.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(t,a){var i=this.gullet.scanArgument(t);if(i==null)return null;var o=this.mode;a&&this.switchMode(a),this.gullet.beginGroup();var h=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var d={type:"ordgroup",mode:this.mode,loc:i.loc,body:h};return a&&this.switchMode(o),d}parseGroup(t,a){var i=this.fetch(),o=i.text,h;if(o==="{"||o==="\\begingroup"){this.consume();var d=o==="{"?"}":"\\endgroup";this.gullet.beginGroup();var g=this.parseExpression(!1,d),p=this.fetch();this.expect(d),this.gullet.endGroup(),h={type:"ordgroup",mode:this.mode,loc:Fn.range(i,p),body:g,semisimple:o==="\\begingroup"||void 0}}else if(h=this.parseFunction(a,t)||this.parseSymbol(),h==null&&o[0]==="\\"&&!l7.hasOwnProperty(o)){if(this.settings.throwOnError)throw new Dt("Undefined control sequence: "+o,i);h=this.formatUnsupportedCmd(o),this.consume()}return h}formLigatures(t){for(var a=t.length-1,i=0;i<a;++i){var o=t[i],h=o.text;h==="-"&&t[i+1].text==="-"&&(i+1<a&&t[i+2].text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:Fn.range(o,t[i+2]),text:"---"}),a-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:Fn.range(o,t[i+1]),text:"--"}),a-=1)),(h==="'"||h==="`")&&t[i+1].text===h&&(t.splice(i,2,{type:"textord",mode:"text",loc:Fn.range(o,t[i+1]),text:h+h}),a-=1)}}parseSymbol(){var t=this.fetch(),a=t.text;if(/^\\verb[^a-zA-Z]/.test(a)){this.consume();var i=a.slice(5),o=i.charAt(0)==="*";if(o&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new Dt(`\\verb assertion failed --
301
+ please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:o}}M6.hasOwnProperty(a[0])&&!Ra[this.mode][a[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+a[0]+'" used in math mode',t),a=M6[a[0]]+a.slice(1));var h=$y.exec(a);h&&(a=a.substring(0,h.index),a==="i"?a="ı":a==="j"&&(a="ȷ"));var d;if(Ra[this.mode][a]){this.settings.strict&&this.mode==="math"&&qd.indexOf(a)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+a[0]+'" used in math mode',t);var g=Ra[this.mode][a].group,p=Fn.range(t),b;if(Qv.hasOwnProperty(g)){var E=g;b={type:"atom",mode:this.mode,family:E,loc:p,text:a}}else b={type:g,mode:this.mode,loc:p,text:a};d=b}else if(a.charCodeAt(0)>=128)this.settings.strict&&(dm(a.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+a[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+a[0]+'"'+(" ("+a.charCodeAt(0)+")"),t)),d={type:"textord",mode:"text",loc:Fn.range(t),text:a};else return null;if(this.consume(),h)for(var _=0;_<h[0].length;_++){var A=h[0][_];if(!xd[A])throw new Dt("Unknown accent ' "+A+"'",t);var D=xd[A][this.mode]||xd[A].text;if(!D)throw new Dt("Accent "+A+" unsupported in "+this.mode+" mode",t);d={type:"accent",mode:this.mode,loc:Fn.range(t),label:D,isStretchy:!1,isShifty:!0,base:d}}return d}}s4.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var y5=function(t,a){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new s4(t,a);delete i.gullet.macros.current["\\df@tag"];var o=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!a.displayMode)throw new Dt("\\tag works only in display equations");o=[{type:"tag",mode:"text",body:o,tag:i.subparse([new dl("\\df@tag")])}]}return o},i7=function(t,a,i){a.textContent="";var o=b5(t,i).toNode();a.appendChild(o)};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."),i7=function(){throw new Dt("KaTeX doesn't work in quirks mode.")});var lb=function(t,a){var i=b5(t,a).toMarkup();return i},ib=function(t,a){var i=new t5(a);return y5(t,i)},r7=function(t,a,i){if(i.throwOnError||!(t instanceof Dt))throw t;var o=nt.makeSpan(["katex-error"],[new Wl(a)]);return o.setAttribute("title",t.toString()),o.setAttribute("style","color:"+i.errorColor),o},b5=function(t,a){var i=new t5(a);try{var o=y5(t,i);return my(o,t,i)}catch(h){return r7(h,t,i)}},rb=function(t,a){var i=new t5(a);try{var o=y5(t,i);return gy(o,t,i)}catch(h){return r7(h,t,i)}},sb="0.16.25",ub={Span:Ch,Anchor:n5,SymbolNode:Wl,SvgNode:Wr,PathNode:nu,LineNode:Ud},s7={version:sb,render:i7,renderToString:lb,ParseError:Dt,SETTINGS_SCHEMA:k2,__parse:ib,__renderToDomTree:b5,__renderToHTMLTree:rb,__setFontMetrics:Uv,__defineSymbol:x,__defineFunction:Jt,__defineMacro:O,__domTree:ub};const ir=(s,t=20)=>{try{return s7.renderToString(s,{throwOnError:!1,displayMode:!1,output:"html",strict:!1,fontSize:`${t}px`})}catch(a){return console.error("LaTeX rendering error:",a),`<span style="color: red;">LaTeX error: ${s}</span>`}},zc=(s,t)=>{const a=document.createElement("div");a.style.position="absolute",a.style.visibility="hidden",a.style.display="inline-block",a.style.fontSize=`${t}px`,a.style.padding="0",a.style.margin="0",a.style.lineHeight="1",document.body.appendChild(a);try{s7.render(s,a,{throwOnError:!1,displayMode:!1,output:"html",strict:!1});const i=a.offsetWidth+20,o=a.offsetHeight+10;return{width:i,height:o}}catch(i){return console.error("LaTeX measurement error:",i),{width:200,height:50}}finally{document.body.removeChild(a)}},ob=(s,t,a,i,o)=>{const[h,d]=yt.useState(null),[g,p]=yt.useState(""),[b,E]=yt.useState(!1),[_,A]=yt.useState("E = mc^2"),D=yt.useCallback(U=>{const Y=s.find(G=>G.id===U);Y&&(Y.type==="text"||Y.type==="latex")&&(t(s.map(G=>({...G,isEditing:G.id===U,isSelected:G.id===U}))),d(U),p(Y.text||Y.latex||""),E(!1),A(Y.latex||"E = mc^2"))},[s,t]),C=yt.useCallback((U=!0)=>{if(h){const Y=s.map(G=>{if(G.id===h){const Z=g||"E = mc^2";if(G.type==="latex"){const q=G.fontSize||i,P=ir(Z,q);return zc(Z,q),{...G,latex:Z,latexRendered:P,isEditing:!1,text:""}}else{const P=G.fontSize||i,ut=Z.split(`
302
+ `).length||1,rt=Math.max(ut*P*1.2,50);return{...G,text:Z,isEditing:!1,height:rt}}}return{...G,isEditing:!1,isSelected:!1}});return t(Y),b&&U&&a(Y),d(null),p(""),E(!1),!0}return!1},[h,s,g,b,i,t,a]),H=yt.useCallback(U=>{if(h){p(U),E(!0),A(U);const Y=s.map(G=>{if(G.id===h){const Z={...G,text:U};if(G.type==="latex"){Z.latex=U;const q=G.fontSize||i,P=ir(U,q);Z.latexRendered=P;const ut=zc(U,q);Z.width=ut.width,Z.height=ut.height}else{const P=G.fontSize||i,ut=U.split(`
303
+ `).length||1,rt=Math.max(ut*P*1.2,50);return{...Z,height:rt}}}return G});t(Y)}},[h,s,i,t]);return{editingTextId:h,tempText:g,latexPreview:_,setTempText:p,setEditingTextId:d,setLatexPreview:A,startTextEditing:D,finishTextEditing:C,updateTextInRealTime:H,setIsTextChanged:E}},cb=(s,t,a,i)=>{const o=yt.useCallback((g,p,b)=>{if(g){const E=s.map(_=>{if(_.id===g&&(_.type==="text"||_.type==="latex")){const A={..._,[p]:b};if(p==="fontWeight"||p==="fontStyle"){const D=p==="fontWeight"?b:_.fontWeight||"normal",C=p==="fontStyle"?b:_.fontStyle||"normal";A.fontWeight=D,A.fontStyle=C}if(p==="fontSize"){const D=parseInt(b)||20;if(_.type==="text"){const C=D,H=(_.text||"").split(`
304
+ `).length||1,U=Math.max(H*C*1.2,50);A.height=U}else if(_.type==="latex"){const C=zc(_.latex||"",D);A.width=C.width,A.height=C.height;const H=ir(_.latex||"",D);A.latexRendered=H}}if(_.type==="latex"&&p==="stroke"){const D=ir(_.latex||"",_.fontSize||i);A.latexRendered=D}return A}return _});t(E),a(E)}},[s,t,a,i]),h=yt.useCallback((g,p)=>{if(!g)return;const b=s.find(A=>A.id===g);if(!b||b.type!=="text")return;let E;const _=b.textDecoration||"none";switch(p){case"bold":const A=b.fontWeight==="bold"?"normal":"bold";o(g,"fontWeight",A);break;case"italic":const D=b.fontStyle==="italic"?"normal":"italic";o(g,"fontStyle",D);break;case"underline":_.includes("underline")?_==="underline"?E="none":_==="underline line-through"?E="line-through":(E=_.replace("underline","").trim(),E===""&&(E="none")):_==="none"?E="underline":_==="line-through"?E="underline line-through":E=(_+" underline").trim(),o(g,"textDecoration",E);break;case"strikethrough":_.includes("line-through")?_==="line-through"?E="none":_==="underline line-through"?E="underline":(E=_.replace("line-through","").trim(),E===""&&(E="none")):_==="none"?E="line-through":_==="underline"?E="underline line-through":E=(_+" line-through").trim(),o(g,"textDecoration",E);break}},[s,o]),d=yt.useCallback((g,p,b)=>{if(!g)return;const E=s.find(_=>_.id===g);if(E&&(E.type==="text"||E.type==="latex")){const _=E.fontSize||i,A=b?2:1,D=p==="up"?_+A:Math.max(1,_-A);o(g,"fontSize",D)}},[s,i,o]);return{updateSelectedTextProperty:o,toggleTextStyle:h,changeFontSizeWithStep:d}},hb=(s,t,a)=>({insertLatexSymbol:yt.useCallback(o=>{if(s.current&&t){const h=s.current,d=h.selectionStart,g=h.selectionEnd;let p=d,b=o;if(o.includes("\\frac{}{}")){const C=o.indexOf("{")+1;p=d+C}else if(o.includes("\\sqrt[]{}")){const C=o.indexOf("{",o.indexOf("[]")+2)+1;p=d+C}else if(o.includes("\\sqrt{}")){const C=o.indexOf("{")+1;p=d+C}else if(o.includes("^{}")){const C=o.indexOf("^{}")+2;p=d+C}else if(o.includes("_{}")){const C=o.indexOf("_{}")+2;p=d+C}else if(o.includes("\\sum_{}^{}")){const C=o.indexOf("_{}")+2;p=d+C}else if(o.includes("\\int_{}^{}")){const C=o.indexOf("_{}")+2;p=d+C}else if(o.includes("\\lim_{}")){const C=o.indexOf("{")+1;p=d+C}else if(o.includes("\\left( \\right)")){const C=o.indexOf("\\left(")+6;p=d+C,b="\\left( \\right)"}else if(o.includes("\\left[ \\right]")){const C=o.indexOf("\\left[")+6;p=d+C,b="\\left[ \\right]"}else if(o.includes("\\left\\{ \\right\\}")){const C=o.indexOf("\\left\\{")+7;p=d+C,b="\\left\\{ \\right\\}"}else if(o.includes("\\left| \\right|")){const C=o.indexOf("\\left|")+6;p=d+C,b="\\left| \\right|"}const E=h.value,_=E.substring(0,d),A=E.substring(g),D=_+b+A;a(D),setTimeout(()=>{if(s.current){const C=d+p;s.current.focus(),s.current.setSelectionRange(C,C)}},0)}},[s,t,a])}),Vd=s=>{if(s.length===0)return{x:0,y:0,width:0,height:0};let t=s[0],a=s[0],i=s[1],o=s[1];for(let h=0;h<s.length;h+=2){const d=s[h],g=s[h+1];d<t&&(t=d),d>a&&(a=d),g<i&&(i=g),g>o&&(o=g)}return{x:t,y:i,width:a-t,height:o-i}},fb=(s,t,a)=>{const i=[];for(let o=0;o<s.length;o+=2){const h=s[o],d=s[o+1],g=t.width!==0?(h-t.x)/t.width:0,p=t.height!==0?(d-t.y)/t.height:0;i.push(a.x+g*a.width),i.push(a.y+p*a.height)}return i},A6=(s,t,a)=>{const i=s.x-t.x,o=s.y-t.y,h=a.x-t.x,d=a.y-t.y,g=i*h+o*d,p=h*h+d*d;let b=-1;p!==0&&(b=g/p);let E,_;b<0?(E=t.x,_=t.y):b>1?(E=a.x,_=a.y):(E=t.x+b*h,_=t.y+b*d);const A=s.x-E,D=s.y-_;return Math.sqrt(A*A+D*D)},Td=(s,t)=>{if(s.type==="path"||s.type==="highlighter"){if(!s.points||s.points.length<4)return!1;for(let a=0;a<s.points.length-2;a+=2){const i=s.points[a],o=s.points[a+1],h=s.points[a+2],d=s.points[a+3];if(A6(t,{x:i,y:o},{x:h,y:d})<10)return!0}return!1}if(s.type==="rectangle"||s.type==="text"||s.type==="latex"){const a=Math.min(s.x,s.x+s.width),i=Math.min(s.y,s.y+s.height),o=Math.abs(s.width),h=Math.abs(s.height);return t.x>=a&&t.x<=a+o&&t.y>=i&&t.y<=i+h}if(s.type==="ellipse"){const a=s.x+s.width/2,i=s.y+s.height/2,o=Math.abs(s.width)/2,h=Math.abs(s.height)/2,d=t.x-a,g=t.y-i;return d*d/(o*o)+g*g/(h*h)<=1}if(s.type==="line"&&s.points){const[a,i,o,h]=s.points;return A6(t,{x:a,y:i},{x:o,y:h})<10}return!1},db=(s,t)=>{const a=s.width>=0?s.x:s.x+s.width,i=s.height>=0?s.y:s.y+s.height,o=Math.abs(s.width),h=Math.abs(s.height),d=t.width>=0?t.x:t.x+t.width,g=t.height>=0?t.y:t.y+t.height,p=Math.abs(t.width),b=Math.abs(t.height);return d>=a&&g>=i&&d+p<=a+o&&g+b<=i+h},mb=(s,t,a,i,o,h,d,g,p,b,E,_,A,D,C,H,U,Y,G)=>{const[Z,q]=yt.useState(!1),[P,ut]=yt.useState({x:0,y:0}),[rt,ot]=yt.useState({x:0,y:0}),[Et,kt]=yt.useState([]),[Vt,St]=yt.useState(new Set),[te,jt]=yt.useState(null),Nt=yt.useCallback((Ot,Xt,B,et)=>{const Kt=B>=0?Ot:Ot+B,Bt=et>=0?Xt:Xt+et,Ct=Math.abs(B),Wt=Math.abs(et),Zt=Math.max(0,Math.min(Kt,6e3-Ct)),Ae=Math.max(0,Math.min(Bt,2500-Wt));let Ue=Zt,ae=Ae,pe=B,Xe=et;return B<0&&(Ue=Zt-Ct),et<0&&(ae=Ae-Wt),{x:Ue,y:ae,width:pe,height:Xe}},[]),Q=yt.useCallback(Ot=>{const Xt=Ot.target.getStage(),B=Xt.getPointerPosition(),et=Xt.container(),dt=B.x/H+et.scrollLeft/H,wt=B.y/H+et.scrollTop/H,Kt={x:dt,y:wt};if(!(Kt.x<0||Kt.x>6e3||Kt.y<0||Kt.y>2500)){if(Ot.target.attrs.name&&Ot.target.attrs.name.startsWith("anchor-")){const Bt=Ot.target.attrs.shapeId,Ct=t.find(Wt=>Wt.id===Bt);if(Ct&&o==="select"){const Wt=Ot.target.attrs.name.replace("anchor-","");let Zt=Ct.points,Ae={x:Ct.x,y:Ct.y,width:Ct.width,height:Ct.height};(Ct.type==="path"||Ct.type==="line"||Ct.type==="highlighter")&&Ct.points&&(Zt=[...Ct.points],Ae=Vd(Ct.points)),D({isTransforming:!0,shapeId:Bt,startWidth:Ct.width,startHeight:Ct.height,startX:Ct.x,startY:Ct.y,startMouseX:Kt.x,startMouseY:Kt.y,anchor:Wt,originalPoints:Zt,originalBbox:Ae,startFontSize:Ct.fontSize||g})}return}if(Ot.target===Xt){if(o==="select"&&(_(null),a(t.map(Bt=>({...Bt,isSelected:!1,isEditing:!1})))),o==="ocr-selection"){G(),Y(null),A({isDrawing:!0,startX:dt,startY:wt,currentShape:{id:`ocr_${Date.now()}`,type:"rectangle",x:dt,y:wt,width:0,height:0,stroke:"#007bff",strokeWidth:2,dash:[5,5],opacity:1}});return}if(o==="text"||o==="latex"){const Bt=o==="latex";let Ct=Bt?"E = mc^2":"Text";const Wt=g;let Zt;if(Bt){const Ue=zc(Ct,Wt);Zt={id:`${Bt?"latex":"text"}_${Date.now()}`,type:Bt?"latex":"text",x:dt,y:wt,width:Ue.width,height:Ue.height,stroke:h,strokeWidth:1,text:Bt?"":"Text",latex:Bt?Ct:void 0,latexRendered:Bt?ir(Ct,Wt):void 0,fontSize:Wt,fontFamily:p,textAlign:b,fontWeight:"normal",fontStyle:"normal",textDecoration:"none",isSelected:!0,isEditing:!1,isLatex:Bt,scaleX:1,scaleY:1,rotation:0}}else{const Ue=Wt,ae=Ct.split(`
305
+ `).length||1,pe=Math.max(ae*Ue*1.2,50);Zt={id:`${Bt?"latex":"text"}_${Date.now()}`,type:Bt?"latex":"text",x:dt,y:wt,width:200,height:pe,stroke:h,strokeWidth:1,text:Ct,latex:void 0,latexRendered:void 0,fontSize:Wt,fontFamily:p,textAlign:b,fontWeight:"normal",fontStyle:"normal",textDecoration:"none",isSelected:!0,isEditing:!1,isLatex:Bt,scaleX:1,scaleY:1,rotation:0}}if(Bt){const Ue=Nt(Zt.x,Zt.y,Zt.width,Zt.height);Zt.x=Ue.x,Zt.y=Ue.y,Zt.width=Ue.width,Zt.height=Ue.height}const Ae=[...t,Zt];a(Ae),i(Ae),setTimeout(()=>{C(Zt.id)},10)}else if(o==="eraser"){jt([...t]);const Bt=new Set;if(t.forEach(Ct=>{Td(Ct,Kt)&&Bt.add(Ct.id)}),Bt.size>0){const Ct=t.filter(Wt=>!Bt.has(Wt.id));a(Ct)}St(Bt),A({isDrawing:!0,startX:dt,startY:wt,currentShape:{id:`eraser_${Date.now()}`,type:"path",x:dt,y:wt,width:0,height:0,stroke:"#000000",strokeWidth:d,opacity:1,points:[dt,wt]}})}else if(!["select","text","latex"].includes(o)){const Bt=o==="pencil"?"path":o==="highlighter"?"highlighter":o;A({isDrawing:!0,startX:dt,startY:wt,currentShape:{id:`${o}_${Date.now()}`,type:Bt,x:dt,y:wt,width:0,height:0,stroke:h,strokeWidth:d,opacity:o==="highlighter"?.5:1,points:o==="pencil"||o==="highlighter"?[dt,wt]:void 0}})}return}if(o==="select"&&Ot.target.attrs.id){const Bt=Ot.target.attrs.id,Ct=t.find(Wt=>Wt.id===Bt);if(Ct){if(_(Bt),(Ct.type==="text"||Ct.type==="latex")&&Ot.evt.detail===2){C(Bt);return}q(!0),ut({x:Kt.x,y:Kt.y}),ot({x:Ct.x,y:Ct.y}),(Ct.type==="path"||Ct.type==="line"||Ct.type==="highlighter")&&Ct.points&&kt([...Ct.points]),a(t.map(Wt=>({...Wt,isSelected:Wt.id===Bt,isEditing:!1})))}return}if(!["select","text","latex"].includes(o))if(o==="eraser"){jt([...t]);const Bt=new Set;if(t.forEach(Ct=>{Td(Ct,Kt)&&Bt.add(Ct.id)}),Bt.size>0){const Ct=t.filter(Wt=>!Bt.has(Wt.id));a(Ct)}St(Bt),A({isDrawing:!0,startX:dt,startY:wt,currentShape:{id:`eraser_${Date.now()}`,type:"path",x:dt,y:wt,width:0,height:0,stroke:"#000000",strokeWidth:d,opacity:1,points:[dt,wt]}})}else{const Bt=o==="pencil"?"path":o==="highlighter"?"highlighter":o;A({isDrawing:!0,startX:dt,startY:wt,currentShape:{id:`${o}_${Date.now()}`,type:Bt,x:dt,y:wt,width:0,height:0,stroke:h,strokeWidth:d,opacity:o==="highlighter"?.5:1,points:o==="pencil"||o==="highlighter"?[dt,wt]:void 0}})}}},[t,a,o,h,d,g,p,b,E,_,A,D,C,H,U,Y,Nt,G]),pt=yt.useCallback((Ot,Xt,B,et)=>{const dt=Ot.target.getStage(),wt=dt.getPointerPosition(),Kt=dt.container(),Bt=wt.x/H+Kt.scrollLeft/H,Ct=wt.y/H+Kt.scrollTop/H,Wt={x:Bt,y:Ct};if(Xt.isDrawing&&Xt.currentShape){const{startX:Zt,startY:Ae,currentShape:Ue}=Xt;if(o==="ocr-selection"){let ae=Wt.x-Zt,pe=Wt.y-Ae;if(et){const Fe=Math.max(Math.abs(ae),Math.abs(pe));ae=Math.sign(ae)*Fe,pe=Math.sign(pe)*Fe}let Xe=Zt,qe=Ae,Je=ae,ia=pe;ae<0&&(Xe=Zt+ae,Je=Math.abs(ae)),pe<0&&(qe=Ae+pe,ia=Math.abs(pe));let Ne={...Ue,x:Xe,y:qe,width:Je,height:ia};A(Fe=>({...Fe,currentShape:Ne}))}else if(o==="pencil"||o==="eraser"||o==="highlighter"){const ae={...Ue,points:[...Ue.points||[],Wt.x,Wt.y]};if(A(pe=>({...pe,currentShape:ae})),o==="eraser"){const pe=t.filter(Xe=>Td(Xe,Wt));if(pe.length>0){const Xe=new Set(Vt);pe.forEach(Je=>{Xe.add(Je.id)});const qe=t.filter(Je=>!Xe.has(Je.id));a(qe),St(Xe)}}}else if(o==="line"){const ae={...Ue,points:[Zt,Ae,Wt.x,Wt.y]};A(pe=>({...pe,currentShape:ae}))}else if(o==="rectangle"||o==="ellipse"){let ae=Wt.x-Zt,pe=Wt.y-Ae;if(et){const Fe=Math.max(Math.abs(ae),Math.abs(pe));ae=Math.sign(ae)*Fe,pe=Math.sign(pe)*Fe}let Xe=Zt,qe=Ae,Je=ae,ia=pe;ae<0&&(Xe=Zt+ae,Je=Math.abs(ae)),pe<0&&(qe=Ae+pe,ia=Math.abs(pe));let Ne={...Ue,x:Xe,y:qe,width:Je,height:ia};A(Fe=>({...Fe,currentShape:Ne}))}}else if(B.isTransforming&&B.shapeId){const{startWidth:Zt,startHeight:Ae,startX:Ue,startY:ae,startMouseX:pe,startMouseY:Xe,anchor:qe,originalPoints:Je,originalBbox:ia,startFontSize:Ne}=B;if(!qe)return;const Fe=Wt.x-pe,w0=Wt.y-Xe;let D0=Zt,p0=Ae,ga=Ue,Le=ae;switch(qe){case"top-left":D0=Zt-Fe,p0=Ae-w0,ga=Ue+Fe,Le=ae+w0;break;case"top-right":D0=Zt+Fe,p0=Ae-w0,Le=ae+w0;break;case"bottom-left":D0=Zt-Fe,p0=Ae+w0,ga=Ue+Fe;break;case"bottom-right":D0=Zt+Fe,p0=Ae+w0;break}let V0=ga,L0=Le,xa=D0,pa=p0;if(xa<0&&(V0=V0+xa,xa=Math.abs(xa)),pa<0&&(L0=L0+pa,pa=Math.abs(pa)),et){const N0=Math.max(Math.abs(xa),Math.abs(pa));switch(xa=Math.sign(xa)*N0,pa=Math.sign(pa)*N0,qe){case"top-left":V0=ga+(D0-xa),L0=Le+(p0-pa);break;case"top-right":L0=Le+(p0-pa);break;case"bottom-left":V0=ga+(D0-xa);break}}const Za=Nt(V0,L0,xa,pa);V0=Za.x,L0=Za.y,xa=Za.width,pa=Za.height;const u0=t.map(N0=>{if(N0.id===B.shapeId)if((N0.type==="path"||N0.type==="line"||N0.type==="highlighter")&&Je&&ia){const gl=fb(Je,ia,{x:V0,y:L0,width:xa,height:pa});return{...N0,width:xa,height:pa,x:V0,y:L0,points:gl}}else return{...N0,width:xa,height:pa,x:V0,y:L0};return N0});a(u0)}else if(Z&&E){t.find(ae=>ae.id===E);const Zt=Wt.x-P.x,Ae=Wt.y-P.y,Ue=t.map(ae=>{if(ae.id===E){const pe=rt.x+Zt,Xe=rt.y+Ae,qe=Nt(pe,Xe,ae.width,ae.height);if((ae.type==="path"||ae.type==="line"||ae.type==="highlighter")&&ae.points&&Et.length>0){const Je={x:qe.x-rt.x,y:qe.y-rt.y},ia=Et.map((Ne,Fe)=>Fe%2===0?Ne+Je.x:Ne+Je.y);return{...ae,x:qe.x,y:qe.y,points:ia}}else return{...ae,x:qe.x,y:qe.y}}return ae});a(Ue)}},[t,a,o,Z,E,P,rt,Et,Vt,St,A,H,Nt]),bt=yt.useCallback(()=>{Z&&(q(!1),kt([]),i(t))},[Z,t,i]);return{isDragging:Z,setIsDragging:q,dragStart:P,setDragStart:ut,selectedShapeStart:rt,setSelectedShapeStart:ot,originalPointsOnDragStart:Et,setOriginalPointsOnDragStart:kt,erasedShapes:Vt,setErasedShapes:St,eraserHistoryStart:te,setEraserHistoryStart:jt,constrainToCanvas:Nt,handleMouseDown:Q,handleMouseMove:pt,handleMouseUp:bt}},gb=()=>{const[s,t]=yt.useState({isDrawing:!1,startX:0,startY:0,currentShape:null}),[a,i]=yt.useState({isTransforming:!1,shapeId:null,startWidth:0,startHeight:0,startX:0,startY:0,startMouseX:0,startMouseY:0,anchor:null,originalPoints:[],originalBbox:{x:0,y:0,width:0,height:0}});return{drawingState:s,setDrawingState:t,transformState:a,setTransformState:i,resetDrawingState:()=>{t({isDrawing:!1,startX:0,startY:0,currentShape:null})},resetTransformState:()=>{i({isTransforming:!1,shapeId:null,startWidth:0,startHeight:0,startX:0,startY:0,startMouseX:0,startMouseY:0,anchor:null,originalPoints:[],originalBbox:{x:0,y:0,width:0,height:0}})}}},pb=(s,t,a,i,o,h,d,g,p,b,E,_)=>{const A=yt.useCallback(C=>{if(C.key==="Shift"&&t(!0),C.key==="Delete"&&a&&o(a),(C.ctrlKey||C.metaKey)&&C.key==="z"&&(C.preventDefault(),h()),C.key==="Escape"&&i&&d(),C.key==="Enter"&&i&&C.ctrlKey&&d(),!i&&(C.key==="ArrowUp"||C.key==="ArrowDown")&&a){C.preventDefault();const H=C.key==="ArrowUp"?"up":"down";g(a,H,C.shiftKey)}if(C.ctrlKey||C.metaKey){switch(C.key){case"=":case"+":C.preventDefault(),E&&E();break;case"-":C.preventDefault(),_&&_();break}if(a){const H=b.find(U=>U.id===a);if(H&&H.type==="text")switch(C.key){case"b":C.preventDefault(),p(a,"bold");break;case"i":C.preventDefault(),p(a,"italic");break;case"u":C.preventDefault(),p(a,"underline");break}}}},[s,a,i,b,t,o,h,d,g,p,E,_]),D=yt.useCallback(C=>{C.key==="Shift"&&t(!1)},[t]);yt.useEffect(()=>(window.addEventListener("keydown",A),window.addEventListener("keyup",D),()=>{window.removeEventListener("keydown",A),window.removeEventListener("keyup",D)}),[A,D])},vb="ws://localhost:8000",yb=(s,t,a=crypto.randomUUID())=>{const i=yt.useRef(null),o=yt.useRef(t),h=yt.useRef(null),d=yt.useRef(0),g=yt.useRef(s),p=yt.useRef(a),b=5,E=1500,[_,A]=yt.useState(!1);yt.useEffect(()=>{g.current=s},[s]),yt.useEffect(()=>{p.current=a},[a]),yt.useEffect(()=>{o.current=t},[t]);const D=yt.useCallback(()=>{if(i.current?.readyState===WebSocket.OPEN){console.log("[WS] Already connected, skipping");return}i.current&&(i.current.close(),i.current=null);const Z=new WebSocket(`${vb}/ws/canvas/${g.current}/`);i.current=Z,Z.onopen=()=>{console.log("[WS] Connected to board:",g.current),A(!0),d.current=0,Z.send(JSON.stringify({type:"init",userId:p.current}))},Z.onmessage=q=>{try{const P=JSON.parse(q.data);if(P.userId===p.current)return;switch(P.type){case"init":P.data&&o.current(P.data);break;case"update":case"shapes":case"undo":P.data&&o.current(P.data);break;case"clear":o.current({shapes:[],config:{},history:[]});break;default:console.warn("[WS] Unknown message type:",P.type)}}catch(P){console.error("[WS] Message parse error:",P)}},Z.onerror=q=>{console.error("[WS] Connection error:",q)},Z.onclose=q=>{console.log("[WS] Disconnected, code:",q.code,"reason:",q.reason),A(!1),i.current=null,q.code!==1e3&&(d.current<b?(d.current+=1,console.log(`[WS] Reconnecting in ${E*d.current}ms (attempt ${d.current})`),h.current=window.setTimeout(()=>{D()},E*d.current)):console.error("[WS] Max reconnection attempts reached"))}},[]),C=yt.useCallback(()=>{h.current&&(clearTimeout(h.current),h.current=null),i.current&&(i.current.close(1e3,"Client disconnect"),i.current=null,A(!1))},[]),H=yt.useCallback(Z=>{i.current?.readyState===WebSocket.OPEN?i.current.send(JSON.stringify({...Z,userId:p.current})):console.warn("[WS] Cannot send message - connection not open")},[]),U=yt.useCallback(Z=>{H({type:"update",data:{shapes:Z}})},[H]),Y=yt.useCallback(()=>{H({type:"clear"})},[H]),G=yt.useCallback(()=>{H({type:"undo"})},[H]);return yt.useEffect(()=>(console.log("[WS] Setting up connection for board:",s),D(),()=>{console.log("[WS] Cleaning up connection for board:",s),C()}),[s]),yt.useMemo(()=>({sendShapesUpdate:U,sendClear:Y,sendUndo:G,isConnected:_}),[U,Y,G,_])},bb="http://localhost:8000",S5=async(s,t,a)=>{try{const i=`${bb}/api/canvas/${s}/${t}/`,o=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a||{})});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return await o.json()}catch(i){return console.error("API Error:",i),{success:!1,message:i instanceof Error?i.message:"Unknown error"}}},Sb=async s=>S5(s,"clear"),xb=async s=>S5(s,"undo"),Tb=async(s,t)=>S5(s,"update",t),Eb=(s,t)=>{const a=parseInt(s.slice(1,3),16),i=parseInt(s.slice(3,5),16),o=parseInt(s.slice(5,7),16);return`rgba(${a}, ${i}, ${o}, ${t})`};class _b{baseURL="https://statservice.example.com";moduleToken=null;rateLimitCache=new Map;RATE_LIMIT_WINDOW=3600*1e3;MAX_REQUESTS=12;constructor(){this.loadToken()}loadToken(){const t=localStorage.getItem("moduleToken");t&&(this.moduleToken=t)}saveToken(t){this.moduleToken=t,localStorage.setItem("moduleToken",t)}async createModule(t){try{const a=await fetch(`${this.baseURL}/api/stats/module/create`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({moduleName:t})});if(!a.ok)throw new Error(`Failed to create module: ${a.statusText}`);const i=await a.json();return this.saveToken(i.token),i}catch(a){throw console.error("Error creating module:",a),a}}checkRateLimit(){const t=Date.now(),a=this.moduleToken||"anonymous",i=this.rateLimitCache.get(a);return i?t>i.resetTime?(this.rateLimitCache.set(a,{count:1,resetTime:t+this.RATE_LIMIT_WINDOW}),!0):i.count>=this.MAX_REQUESTS?!1:(i.count++,!0):(this.rateLimitCache.set(a,{count:1,resetTime:t+this.RATE_LIMIT_WINDOW}),!0)}async sendMetrics(t){if(!this.moduleToken)throw new Error("Module token not set. Please create module first.");if(!this.checkRateLimit())throw new Error("Rate limit exceeded. Please try again later.");try{const a=await fetch(`${this.baseURL}/api/stats/module/metrics`,{method:"PUT",headers:{"X-Module-Token":this.moduleToken,"Content-Type":"application/json"},body:JSON.stringify(t)});if(a.status===429){const i=a.headers.get("Retry-After");throw new Error(`Rate limit exceeded. Retry after ${i} seconds`)}if(!a.ok)throw new Error(`Failed to send metrics: ${a.statusText}`);return await a.json()}catch(a){throw console.error("Error sending metrics:",a),a}}async getMetrics(){if(!this.moduleToken)throw new Error("Module token not set");try{const t=await fetch(`${this.baseURL}/api/stats/module/metrics`,{method:"GET",headers:{"X-Module-Token":this.moduleToken}});if(t.status===404)return null;if(!t.ok)throw new Error(`Failed to get metrics: ${t.statusText}`);return await t.json()}catch(t){throw console.error("Error getting metrics:",t),t}}}const z6=new _b,Mb=()=>{const[s,t]=yt.useState(null),[a,i]=yt.useState(""),[o,h]=yt.useState(null),[d,g]=yt.useState(!1),[p,b]=yt.useState(null),[E,_]=yt.useState(!1),[A,D]=yt.useState({}),[C]=yt.useState(Date.now()),[H,U]=yt.useState(!1);yt.useEffect(()=>{const W=$7(K=>{console.log("Widget initialized via getInfo:",K),t(K),i(String(K.board.id)),h(K.widgetId),K.config&&rt(K.config),g(!0),K.widgetId>0&&Y(K)});return()=>{W()}},[]);const Y=yt.useCallback(async W=>{try{const K=`DrawingWidget-${W.widgetId}-${W.board.id}`,Yt=await z6.createModule(K);console.log("Stats module created:",Yt),_(!0)}catch(K){console.error("Failed to create stats module:",K)}},[]);yt.useEffect(()=>{const W=()=>{const ta=window.innerWidth-30-30,ve=window.innerHeight-0-30,Ta=Math.min(ta/1920,ve/1080)*.95*2;document.documentElement.style.setProperty("--scale",Ta.toString())};return W(),window.addEventListener("resize",W),()=>window.removeEventListener("resize",W)},[]);const[G,Z]=yt.useState("select"),[q,P]=yt.useState([]),[ut,rt]=yt.useState({}),[ot,Et]=yt.useState([]),[kt,Vt]=yt.useState(null),[St,te]=yt.useState("#000000"),[jt,Nt]=yt.useState(5),[Q]=yt.useState(20),[pt]=yt.useState("Arial"),[bt]=yt.useState("left"),[Ot,Xt]=yt.useState(!1),[B,et]=yt.useState(1),{drawingState:dt,setDrawingState:wt,transformState:Kt,setTransformState:Bt,resetDrawingState:Ct,resetTransformState:Wt}=gb(),Zt=yt.useCallback(W=>{P(W.shapes),rt(W.config||{}),Et(W.history||[])},[]),{sendShapesUpdate:Ae,sendClear:Ue,sendUndo:ae}=yb(a,Zt,crypto.randomUUID()),pe=yt.useCallback(()=>{const W=Date.now(),K=Math.floor((W-C)/1e3);return{shapesCount:q.length,toolsUsage:{...A},lastUpdated:new Date().toISOString(),sessionDuration:K,boardId:a,widgetId:o}},[q.length,A,C,a,o]),Xe=yt.useCallback(()=>({shapes:q.map(W=>({id:W.id,type:W.type,x:W.x,y:W.y,width:W.width,height:W.height,stroke:W.stroke,strokeWidth:W.strokeWidth,...W.type==="text"&&{text:W.text},...W.type==="latex"&&{latex:W.latex}})),config:{...ut,strokeColor:St,strokeWidth:jt,fontSize:Q,fontFamily:pt,textAlign:bt,scale:B,lastModifiedBy:"drawing-app"},lastModified:new Date().toISOString(),version:"1.0.0"}),[q,ut,St,jt,Q,pt,bt,B]),qe=yt.useCallback(async()=>{if(!s||!s.widgetId||s.widgetId<=0){console.log("Standalone mode, skipping widget config update");return}try{const W=Xe(),K=await fetch(`http://85.234.22.160:1111/api/widget/${s.widgetId}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${Je()}`},body:JSON.stringify(W)});K.ok||console.warn("Failed to update widget config:",K.statusText)}catch(W){console.error("Error updating widget config:",W)}},[s,Xe]),Je=()=>localStorage.getItem("authToken")||"";yt.useEffect(()=>{if(!E||!s||s.widgetId<=0)return;const W=setInterval(async()=>{try{const K=pe();await z6.sendMetrics(K)}catch(K){console.error("Failed to send metrics:",K)}},3e4);return()=>clearInterval(W)},[E,s,pe]);const ia=yt.useCallback(async W=>{if(s&&s.widgetId>0)try{await Tb(a,{shapes:W,config:ut,history:ot}),Ae(W),qe()}catch(K){console.error("Failed to send canvas data to backend:",K)}},[a,ut,ot,Ae,s,qe]),{saveToHistory:Ne,handleUndo:Fe,handleRedo:w0}=ov(q,ia),D0=yt.useCallback(W=>{D(K=>({...K,[W]:(K[W]||0)+1}))},[]);yt.useEffect(()=>{G&&G!=="select"&&D0(G)},[G,D0]),yt.useEffect(()=>{if(G!=="ocr-selection"){b(null);const W=q.filter(K=>!K.id.startsWith("ocr_border_"));W.length!==q.length&&(P(W),Ne(W))}},[G,q,Ne]);const p0=async()=>{const W=Fe();W&&(P(W),s&&s.widgetId>0&&(await xb(a),ae(),qe()))},ga=()=>{const W=w0();W&&P(W)},{editingTextId:Le,tempText:V0,latexPreview:L0,setTempText:xa,setEditingTextId:pa,startTextEditing:Za,finishTextEditing:u0,updateTextInRealTime:N0}=ob(q,P,Ne,Q),{toggleTextStyle:Pl,changeFontSizeWithStep:gl}=cb(q,P,Ne,Q),v0=yt.useRef(null),{insertLatexSymbol:In}=hb(v0,Le,N0),Q0=yt.useCallback(()=>{const W=q.filter(K=>!K.id.startsWith("ocr_border_"));W.length!==q.length&&(P(W),Ne(W))},[q,P,Ne]),nn=mb(U,q,P,Ne,G,St,jt,Q,pt,bt,kt,Vt,wt,Bt,Za,B,p,b,Q0),[Nc,hu]=yt.useState(!1),[ns,Mi]=yt.useState("fraction"),[$l,pl]=yt.useState(!1),[ti,Ai]=yt.useState(!1),[uo,vl]=yt.useState(!0),[yl,Pn]=yt.useState(!1),[zi,ei]=yt.useState({x:0,y:0}),fr=yt.useCallback(async()=>{if(!p||!y0.current){console.error("No OCR selection or stage reference");return}try{const W=y0.current,K=q.filter(Ea=>!Ea.id.startsWith("ocr_border_")),Yt=K.length!==q.length;Yt&&(P(K),await new Promise(Ea=>setTimeout(Ea,50)));const ee=document.createElement("canvas"),ne=ee.getContext("2d");if(!ne){console.error("Failed to get canvas context"),Yt&&P(q);return}ee.width=p.width*B,ee.height=p.height*B,ne.fillStyle="white",ne.fillRect(0,0,ee.width,ee.height);const ce=W.toDataURL({x:p.x*B,y:p.y*B,width:p.width*B,height:p.height*B}),de=new Image;de.src=ce,await new Promise((Ea,ra)=>{de.onload=Ea,de.onerror=ra}),ne.drawImage(de,0,0);const ta=ee.toDataURL("image/png",1),Ta=await(await fetch("http://localhost:8000/api/ocr/latex/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image_data:ta})})).json();if(Ta.success&&Ta.latex){const Ea=K.filter(nl=>{const wn={x:nl.x,y:nl.y,width:nl.width,height:nl.height};return!db(p,wn)});let ra=Ta.latex.trim();ra.startsWith("$")&&ra.endsWith("$")&&(ra=ra.slice(1,-1)),ra.startsWith("$$")&&ra.endsWith("$$")&&(ra=ra.slice(2,-2)),ra=ra.trim();const _a=zc(ra,Q),Ja={id:`latex_${Date.now()}`,type:"latex",x:p.x,y:p.y,width:_a.width,height:_a.height,stroke:St,strokeWidth:1,latex:ra,latexRendered:ir(ra,Q),fontSize:Q,fontFamily:"KaTeX_Main",textAlign:"left",fontWeight:"normal",fontStyle:"normal",textDecoration:"none",isSelected:!1,isEditing:!1,isLatex:!0,scaleX:1,scaleY:1,rotation:0},va=[...Ea,Ja];P(va),Ne(va),b(null),Z("select"),ia(va),console.log("OCR успешно распознано:",Ta)}else Yt&&P(q),console.error("OCR распознавание не удалось:",Ta.error),alert("Не удалось распознать формулу. Попробуйте снова.")}catch(W){q.filter(Yt=>Yt.id.startsWith("ocr_border_")).length>0&&P(q),console.error("Ошибка при OCR распознавании:",W),alert("Ошибка при отправке изображения на сервер.")}},[p,q,Q,St,B,Ne,ia]),fu=yt.useCallback(()=>{Le&&u0(),b(null),Z("ocr-selection")},[Le,u0]);yt.useEffect(()=>{if(!yl)return;const W=Yt=>{Yt.preventDefault();const ee=Yt.clientX-zi.x,ne=Yt.clientY-zi.y,ce=xl.current;ce&&(ce.scrollLeft-=ee,ce.scrollTop-=ne,ei({x:Yt.clientX,y:Yt.clientY}))},K=()=>{Pn(!1)};return document.addEventListener("mousemove",W),document.addEventListener("mouseup",K),()=>{document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",K)}},[yl,zi]);const $n=yt.useCallback(()=>{et(K=>Math.min(K*1.2,1.2))},[]),tl=yt.useCallback(()=>{const W=Math.pow(1.2,-10);et(K=>Math.max(K/1.2,W))},[]),Ci=yt.useCallback(W=>{(W.ctrlKey||W.metaKey)&&(W.preventDefault(),W.deltaY<0?$n():tl())},[$n,tl]);yt.useEffect(()=>{const W=y0.current;W&&(W.scale({x:B,y:B}),W.batchDraw())},[B]),yt.useEffect(()=>{const W=y0.current?.container();if(W)return W.addEventListener("wheel",Ci,{passive:!1}),()=>{W.removeEventListener("wheel",Ci)}},[Ci]);const el=W=>{const K=q.filter(Yt=>Yt.id!==W);P(K),Ne(K),kt===W&&Vt(null),Le===W&&(pa(null),xa(""))};pb(Ot,Xt,kt,Le,el,p0,u0,gl,Pl,q,$n,tl);const al=async()=>{P([]),Vt(null),pa(null),xa(""),b(null),Ne([]),s&&s.widgetId>0&&(await Sb(a),Ue(),qe())},Ya=W=>{In(W.latex),hu(!1)},o0=(W,K)=>{if(!kt)return;const Yt=q.map(ee=>{if(ee.id===kt&&(ee.type==="text"||ee.type==="latex")){const ne={...ee,[W]:K};if(W==="stroke"&&(ne.stroke=K,ee.type==="latex"&&ee.latex)){const ce=ee.fontSize||Q;ne.latexRendered=ir(ee.latex,ce)}if(W==="fontFamily"&&ee.type==="text"&&(ne.fontFamily=K),W==="textAlign"&&(ne.textAlign=K),W==="fontSize"){const ce=parseInt(K)||20;if(ne.fontSize=ce,ee.type==="text"){const de=ce,ta=(ee.text||"").split(`
306
+ `).length||1,ve=Math.max(ta*de*1.2,50);ne.height=ve}else if(ee.type==="latex"&&ee.latex){const de=zc(ee.latex,ce);ne.width=de.width,ne.height=de.height,ne.latexRendered=ir(ee.latex,ce)}}return ne}return ee});P(Yt),Ne(Yt)},bl=()=>{const W=[...q];if(dt.currentShape&&G!=="eraser"){const K=dt.currentShape;if(K.type==="rectangle"||K.type==="ellipse"){const Yt=K.x||0,ee=K.y||0,ne=K.width||0,ce=K.height||0,de={...K,x:Math.min(Yt,Yt+ne),y:Math.min(ee,ee+ce),width:Math.abs(ne),height:Math.abs(ce)};W.push(de)}else((K.type==="path"||K.type==="highlighter")&&K.points&&K.points.length>0||K.type==="line"&&K.points)&&W.push(K)}return p&&W.push({id:"ocr-selection",type:"rectangle",x:p.x,y:p.y,width:p.width,height:p.height,stroke:"#007bff",strokeWidth:2,dash:[5,5],fill:"transparent",opacity:1}),W.map(K=>{const Yt=K.opacity!==void 0?K.opacity:1,ee=Eb(K.stroke,Yt),ne={key:K.id,id:K.id,stroke:K.type==="text"||K.type==="latex"?void 0:ee,strokeWidth:K.type==="text"||K.type==="latex"?void 0:K.strokeWidth,fill:K.type==="text"||K.type==="latex"?K.stroke:K.fill};switch(K.type){case"rectangle":const ce=K.width>=0?K.x:K.x+K.width,de=K.height>=0?K.y:K.y+K.height;return _t.jsx(A2,{...ne,x:ce,y:de,width:Math.abs(K.width),height:Math.abs(K.height),dash:K.dash});case"ellipse":const ta=K.x+K.width/2,ve=K.y+K.height/2,Ta=Math.abs(K.width)/2,Ea=Math.abs(K.height)/2;return _t.jsx(Jp,{...ne,x:ta,y:ve,radiusX:Ta,radiusY:Ea});case"line":return _t.jsx(rd,{...ne,points:K.points||[]});case"path":return _t.jsx(rd,{...ne,points:K.points||[],tension:0,lineCap:"round",lineJoin:"round"});case"highlighter":return _t.jsx(rd,{...ne,points:K.points||[],tension:0,lineCap:"round",lineJoin:"round",opacity:.5});case"text":if(K.isEditing)return null;const ra=K.width>=0?K.x:K.x+K.width,_a=K.height>=0?K.y:K.y+K.height,Ja=Math.abs(K.width),va=Math.abs(K.height),nl=K.fontWeight||"normal",wn=K.fontStyle||"normal",Ma=K.textDecoration||"none",sa=`${nl==="bold"?"bold":""} ${wn==="italic"?"italic":""}`.trim();return _t.jsx(Fp,{...ne,x:ra,y:_a,width:Ja,height:va,text:K.text||"",fontSize:K.fontSize||Q,fontFamily:K.fontFamily||pt,align:K.textAlign||bt,verticalAlign:"top",wrap:"word",fontStyle:sa,textDecoration:Ma,onDblClick:()=>Za(K.id)});case"latex":if(K.isEditing)return null;const is=K.width>=0?K.x:K.x+K.width,b0=K.height>=0?K.y:K.y+K.height,wi=Math.abs(K.width),rs=Math.abs(K.height);return _t.jsx(A2,{id:K.id,x:is,y:b0,width:wi,height:rs,fill:"transparent",stroke:"transparent",strokeWidth:0,onDblClick:()=>Za(K.id)},K.id);default:return null}})},Cn=()=>{const W=y0.current;if(!W)return null;const K=W.container();return q.filter(Yt=>Yt.type==="latex"&&!Yt.isEditing).map(Yt=>{const ee=Yt.width>=0?Yt.x:Yt.x+Yt.width,ne=Yt.height>=0?Yt.y:Yt.y+Yt.height,ce=Math.abs(Yt.width),de=Math.abs(Yt.height),ta=Math.max(ce*B,50),ve=Math.max(de*B,50);return _t.jsx("div",{className:"latex-shape-overlay",style:{position:"absolute",left:`${ee*B-K.scrollLeft}px`,top:`${ne*B-K.scrollTop}px`,width:`${ta}px`,height:`${ve}px`,pointerEvents:"none",zIndex:10},children:_t.jsx("div",{dangerouslySetInnerHTML:{__html:Yt.latexRendered||ir(Yt.latex||"",(Yt.fontSize||Q)*B)},className:"latex-rendered-content",style:{fontSize:`${(Yt.fontSize||Q)*B}px`,color:Yt.stroke||St}})},Yt.id)})},Sl=()=>{if(!kt||G!=="select"||dt.isDrawing)return null;const W=q.find(va=>va.id===kt);if(!W||(W.type==="path"||W.type==="highlighter")&&(!W.points||W.points.length===0))return null;let K={...W};if((W.type==="path"||W.type==="line"||W.type==="highlighter")&&W.points&&W.points.length>0){const va=Vd(W.points);K={...W,x:va.x,y:va.y,width:va.width,height:va.height}}const Yt=Math.min(K.x,K.x+K.width),ee=Math.min(K.y,K.y+K.height),ne=Math.abs(K.width),ce=Math.abs(K.height),de=5,ta=10,ve=ta/2,Ta=Yt-de,Ea=ee-de,ra=ne+de*2,_a=ce+de*2,Ja=[{name:"anchor-top-left",x:Yt,y:ee},{name:"anchor-top-right",x:Yt+ne,y:ee},{name:"anchor-bottom-left",x:Yt,y:ee+ce},{name:"anchor-bottom-right",x:Yt+ne,y:ee+ce}];return _t.jsxs(_t.Fragment,{children:[_t.jsx(A2,{name:"selection-rect",x:Ta,y:Ea,width:ra,height:_a,stroke:"#007bff",strokeWidth:1,dash:[5,5],listening:!1}),Ja.map(va=>_t.jsx(A2,{name:va.name,shapeId:K.id,x:va.x-ve,y:va.y-ve,width:ta,height:ta,fill:"#ffffff",stroke:"#007bff",strokeWidth:2},va.name))]})},dr=()=>{if(!Le)return null;const W=q.find(Ja=>Ja.id===Le);if(!W||W.type!=="text"&&W.type!=="latex")return null;const K=y0.current;if(!K)return null;const Yt=K.container().getBoundingClientRect(),ee=W.width>=0?W.x:W.x+W.width,ne=W.height>=0?W.y:W.y+W.height,ce=ee*B+Yt.left,de=ne*B+Yt.top,ta=Math.max(Math.abs(W.width)*B,100),ve=Math.max(Math.abs(W.height)*B,40),Ta=W.fontWeight||"normal",Ea=W.fontStyle||"normal",ra=W.textDecoration||"none",_a={position:"fixed",left:`${ce}px`,top:`${de}px`,width:`${ta}px`,height:`${ve}px`,fontSize:`${W.fontSize||Q}px`,fontFamily:W.type==="latex"?"KaTeX_Main, Times New Roman, serif":W.fontFamily||pt,textAlign:W.textAlign||bt,color:W.stroke||St,backgroundColor:"rgba(255, 255, 255, 0.9)",border:W.type==="latex"?"2px solid #4CAF50":"1px dashed #007bff",outline:"none",resize:"both",overflow:"auto",padding:"4px",zIndex:1e3,lineHeight:"1.2",whiteSpace:"pre-wrap",wordWrap:"break-word",fontWeight:Ta==="bold"?"bold":"normal",fontStyle:Ea==="italic"?"italic":"normal",textDecoration:ra,backdropFilter:"blur(2px)"};return W.type==="latex"?_t.jsx(lv,{shape:W,tempText:V0,textAreaRef:v0,updateTextInRealTime:N0,finishTextEditing:u0,x:ce,y:de,width:ta,textareaStyle:_a,latexSymbols:rv,latexCategories:sv,handleLatexSymbolClick:Ya,renderLatexToHtml:ir,showLatexPreview:uo,showLatexMenu:Nc,selectedLatexCategory:ns,latexPreview:L0,fontSize:Q,strokeColor:St,setShowLatexMenu:hu,setShowLatexPreview:vl,setSelectedLatexCategory:Mi}):_t.jsx(iv,{textAreaRef:v0,tempText:V0,updateTextInRealTime:N0,finishTextEditing:u0,textareaStyle:_a})},ls=()=>{if(G!=="select"||!kt||Le)return null;const W=kt,K=q.find(sa=>sa.id===W);if(!K||K.type!=="text"&&K.type!=="latex")return null;const Yt=y0.current;if(!Yt)return null;const ee=Yt.container(),ne=K.width>=0?K.x:K.x+K.width,ce=K.height>=0?K.y:K.y+K.height,de=Math.abs(K.height),ta=Math.abs(K.width),ve=ne*B-ee.scrollLeft,Ta=ce*B-ee.scrollTop,_a=K.type==="latex"?152:416,va=Ta+de*B+20;let wn=ve+ta*B/2-_a/2;if(K.type==="latex")return _t.jsx(nv,{selectedShape:K,selectedId:W,startTextEditing:Za,updateSelectedTextProperty:o0,fontSize:K.fontSize||Q,strokeColor:K.stroke||St,left:wn,top:va,panelWidth:_a});const Ma=W;return _t.jsx(av,{selectedShape:K,selectedId:Ma,isBold:K.fontWeight==="bold",isItalic:K.fontStyle==="italic",isUnderline:K.textDecoration?.includes("underline")||!1,isStrikethrough:K.textDecoration?.includes("line-through")||!1,currentAlign:K.textAlign||bt,showTextFormatDropdown:$l,showTextAlignDropdown:ti,setShowTextFormatDropdown:pl,setShowTextAlignDropdown:Ai,updateSelectedTextProperty:o0,startTextEditing:Za,toggleBold:()=>Pl(Ma,"bold"),toggleItalic:()=>Pl(Ma,"italic"),toggleUnderline:()=>Pl(Ma,"underline"),toggleStrikethrough:()=>Pl(Ma,"strikethrough"),fontFamily:K.fontFamily||pt,fontSize:K.fontSize||Q,strokeColor:K.stroke||St,availableFonts:uv,left:wn,top:va,panelWidth:_a})},y0=yt.useRef(null),xl=yt.useRef(null),Tl=W=>{if(W.evt.button===1){W.evt.preventDefault(),Pn(!0),ei({x:W.evt.clientX,y:W.evt.clientY});return}G!=="select"&&U(!0),nn.handleMouseDown(W)},El=W=>{yl||nn.handleMouseMove(W,dt,Kt,Ot)},ai=()=>{if(yl&&Pn(!1),dt.isDrawing&&dt.currentShape){const W={...dt.currentShape};if(G==="eraser"){nn.erasedShapes.size>0&&nn.eraserHistoryStart&&Ne(q),nn.setErasedShapes(new Set),nn.setEraserHistoryStart(null),Ct();return}if(G==="ocr-selection"){const{x:K=0,y:Yt=0,width:ee=0,height:ne=0}=dt.currentShape,ce=ee>=0?K:K+ee,de=ne>=0?Yt:Yt+ne,ta=Math.abs(ee),ve=Math.abs(ne);b({x:ce,y:de,width:ta,height:ve});const Ta={id:`ocr_border_${Date.now()}`,type:"rectangle",x:ce,y:de,width:ta,height:ve,stroke:"#007bff",strokeWidth:2,dash:[5,5],fill:"transparent",opacity:1},Ea=[...q,Ta];P(Ea),Ne(Ea),Ct();return}if((G==="pencil"||G==="highlighter")&&W.points&&W.points.length>=4){const K=Vd(W.points);W.x=K.x,W.y=K.y,W.width=K.width,W.height=K.height;const Yt=[...q,W];P(Yt),Ne(Yt)}else if(G==="line"&&W.points&&W.points.length===4){const K=W.points[0],Yt=W.points[1],ee=W.points[2],ne=W.points[3],ce=Math.min(K,ee),de=Math.min(Yt,ne),ta=Math.max(K,ee),ve=Math.max(Yt,ne);W.x=ce,W.y=de,W.width=ta-ce,W.height=ve-de;const Ta=[...q,W];P(Ta),Ne(Ta)}else if((G==="rectangle"||G==="ellipse")&&dt.currentShape.width!==0&&dt.currentShape.height!==0){const K=nn.constrainToCanvas(W.x,W.y,W.width,W.height);W.x=K.x,W.y=K.y,W.width=K.width,W.height=K.height;const Yt=[...q,W];P(Yt),Ne(Yt)}Ct(),s&&s.widgetId>0&&qe()}Kt.isTransforming&&(Ne(q),Wt()),nn.isDragging&&(nn.setIsDragging(!1),nn.setOriginalPointsOnDragStart([]),Ne(q)),U(!1)};return d?_t.jsxs("div",{className:"drawing-app-container",children:[_t.jsx("h1",{className:"top-header",children:"Paint"}),_t.jsx("div",{className:"drawing-toolbar-container",children:_t.jsxs("div",{className:"drawing-toolbar",children:[_t.jsx(Ip,{finishTextEditing:()=>u0(!0),tool:G,setTool:Z,strokeColor:St,setStrokeColor:te,editingTextId:Le}),_t.jsx(Pp,{tool:G,strokeWidth:jt,setStrokeWidth:Nt}),_t.jsx($p,{handleUndo:p0,handleRedo:ga,handleClearCanvas:al,finishTextEditing:u0,setTool:Z,editingTextId:Le||"",tool:G}),_t.jsx(tv,{finishTextEditing:u0,setTool:Z,tool:G,editingTextId:Le||"",handleDeleteShape:el,selectedId:kt||""}),_t.jsx(ev,{onOcrSelect:fu,onOcrRecognize:fr,tool:G,ocrSelection:p,editingTextId:Le,finishTextEditing:u0})]})}),_t.jsxs("div",{className:"canvas-container",ref:xl,style:{cursor:yl?"grabbing":"default"},children:[_t.jsx(Wp,{ref:y0,width:6e3*B,height:2500*B,onMouseDown:Tl,onMouseMove:El,onMouseUp:ai,onMouseLeave:()=>Pn(!1),onTouchStart:Tl,onTouchMove:El,onTouchEnd:ai,children:_t.jsxs(Zp,{children:[bl(),Sl()]})}),dr(),Cn(),ls()]}),_t.jsxs("div",{className:"zoom-buttons",children:[_t.jsx("button",{className:"zoom-button zoom-plus",onClick:$n}),_t.jsx("button",{className:"zoom-button zoom-minus",onClick:tl})]})]}):_t.jsx("div",{className:"drawing-app-container",children:"Loading..."})};window.getInfo=P7;const Ab=I7.createRoot(document.getElementById("root"));Ab.render(_t.jsx(z0.StrictMode,{children:_t.jsx(Mb,{})}));
307
+ //# sourceMappingURL=main-Dm0gV1xN.js.map