veslx 0.1.5 → 0.1.14

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.
@@ -1,468 +0,0 @@
1
- var q9=Object.defineProperty;var r3=e=>{throw TypeError(e)};var U9=(e,t,r)=>t in e?q9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Gt=(e,t,r)=>U9(e,typeof t!="symbol"?t+"":t,r),Ud=(e,t,r)=>t.has(e)||r3("Cannot "+r);var me=(e,t,r)=>(Ud(e,t,"read from private field"),r?r.call(e):t.get(e)),An=(e,t,r)=>t.has(e)?r3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zt=(e,t,r,l)=>(Ud(e,t,"write to private field"),l?l.call(e,r):t.set(e,r),r),Pa=(e,t,r)=>(Ud(e,t,"access private method"),r);function G9(e,t){for(var r=0;r<t.length;r++){const l=t[r];if(typeof l!="string"&&!Array.isArray(l)){for(const i in l)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(l,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>l[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))l(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&l(c)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();function c6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gd={exports:{}},W0={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var a3;function F9(){if(a3)return W0;a3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(l,i,s){var c=null;if(s!==void 0&&(c=""+s),i.key!==void 0&&(c=""+i.key),"key"in i){s={};for(var f in i)f!=="key"&&(s[f]=i[f])}else s=i;return i=s.ref,{$$typeof:e,type:l,key:c,ref:i!==void 0?i:null,props:s}}return W0.Fragment=t,W0.jsx=r,W0.jsxs=r,W0}var l3;function Y9(){return l3||(l3=1,Gd.exports=F9()),Gd.exports}var k=Y9(),Fd={exports:{}},He={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var i3;function P9(){if(i3)return He;i3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=b&&j[b]||j["@@iterator"],typeof j=="function"?j:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,T={};function N(j,W,le){this.props=j,this.context=W,this.refs=T,this.updater=le||E}N.prototype.isReactComponent={},N.prototype.setState=function(j,W){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,W,"setState")},N.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function O(){}O.prototype=N.prototype;function R(j,W,le){this.props=j,this.context=W,this.refs=T,this.updater=le||E}var H=R.prototype=new O;H.constructor=R,A(H,N.prototype),H.isPureReactComponent=!0;var F=Array.isArray;function I(){}var G={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function te(j,W,le){var se=le.ref;return{$$typeof:e,type:j,key:W,ref:se!==void 0?se:null,props:le}}function de(j,W){return te(j.type,W,j.props)}function ce(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function he(j){var W={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(le){return W[le]})}var De=/\/+/g;function we(j,W){return typeof j=="object"&&j!==null&&j.key!=null?he(""+j.key):W.toString(36)}function Ce(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(I,I):(j.status="pending",j.then(function(W){j.status==="pending"&&(j.status="fulfilled",j.value=W)},function(W){j.status==="pending"&&(j.status="rejected",j.reason=W)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function Y(j,W,le,se,Se){var ke=typeof j;(ke==="undefined"||ke==="boolean")&&(j=null);var ve=!1;if(j===null)ve=!0;else switch(ke){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(j.$$typeof){case e:case t:ve=!0;break;case v:return ve=j._init,Y(ve(j._payload),W,le,se,Se)}}if(ve)return Se=Se(j),ve=se===""?"."+we(j,0):se,F(Se)?(le="",ve!=null&&(le=ve.replace(De,"$&/")+"/"),Y(Se,W,le,"",function(Ze){return Ze})):Se!=null&&(ce(Se)&&(Se=de(Se,le+(Se.key==null||j&&j.key===Se.key?"":(""+Se.key).replace(De,"$&/")+"/")+ve)),W.push(Se)),1;ve=0;var Be=se===""?".":se+":";if(F(j))for(var Oe=0;Oe<j.length;Oe++)se=j[Oe],ke=Be+we(se,Oe),ve+=Y(se,W,le,ke,Se);else if(Oe=w(j),typeof Oe=="function")for(j=Oe.call(j),Oe=0;!(se=j.next()).done;)se=se.value,ke=Be+we(se,Oe++),ve+=Y(se,W,le,ke,Se);else if(ke==="object"){if(typeof j.then=="function")return Y(Ce(j),W,le,se,Se);throw W=String(j),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return ve}function ne(j,W,le){if(j==null)return j;var se=[],Se=0;return Y(j,se,"","",function(ke){return W.call(le,ke,Se++)}),se}function Q(j){if(j._status===-1){var W=j._result;W=W(),W.then(function(le){(j._status===0||j._status===-1)&&(j._status=1,j._result=le)},function(le){(j._status===0||j._status===-1)&&(j._status=2,j._result=le)}),j._status===-1&&(j._status=0,j._result=W)}if(j._status===1)return j._result.default;throw j._result}var ie=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},be={map:ne,forEach:function(j,W,le){ne(j,function(){W.apply(this,arguments)},le)},count:function(j){var W=0;return ne(j,function(){W++}),W},toArray:function(j){return ne(j,function(W){return W})||[]},only:function(j){if(!ce(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return He.Activity=g,He.Children=be,He.Component=N,He.Fragment=r,He.Profiler=i,He.PureComponent=R,He.StrictMode=l,He.Suspense=d,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,He.__COMPILER_RUNTIME={__proto__:null,c:function(j){return G.H.useMemoCache(j)}},He.cache=function(j){return function(){return j.apply(null,arguments)}},He.cacheSignal=function(){return null},He.cloneElement=function(j,W,le){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var se=A({},j.props),Se=j.key;if(W!=null)for(ke in W.key!==void 0&&(Se=""+W.key),W)!V.call(W,ke)||ke==="key"||ke==="__self"||ke==="__source"||ke==="ref"&&W.ref===void 0||(se[ke]=W[ke]);var ke=arguments.length-2;if(ke===1)se.children=le;else if(1<ke){for(var ve=Array(ke),Be=0;Be<ke;Be++)ve[Be]=arguments[Be+2];se.children=ve}return te(j.type,Se,se)},He.createContext=function(j){return j={$$typeof:c,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:s,_context:j},j},He.createElement=function(j,W,le){var se,Se={},ke=null;if(W!=null)for(se in W.key!==void 0&&(ke=""+W.key),W)V.call(W,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(Se[se]=W[se]);var ve=arguments.length-2;if(ve===1)Se.children=le;else if(1<ve){for(var Be=Array(ve),Oe=0;Oe<ve;Oe++)Be[Oe]=arguments[Oe+2];Se.children=Be}if(j&&j.defaultProps)for(se in ve=j.defaultProps,ve)Se[se]===void 0&&(Se[se]=ve[se]);return te(j,ke,Se)},He.createRef=function(){return{current:null}},He.forwardRef=function(j){return{$$typeof:f,render:j}},He.isValidElement=ce,He.lazy=function(j){return{$$typeof:v,_payload:{_status:-1,_result:j},_init:Q}},He.memo=function(j,W){return{$$typeof:h,type:j,compare:W===void 0?null:W}},He.startTransition=function(j){var W=G.T,le={};G.T=le;try{var se=j(),Se=G.S;Se!==null&&Se(le,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(I,ie)}catch(ke){ie(ke)}finally{W!==null&&le.types!==null&&(W.types=le.types),G.T=W}},He.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},He.use=function(j){return G.H.use(j)},He.useActionState=function(j,W,le){return G.H.useActionState(j,W,le)},He.useCallback=function(j,W){return G.H.useCallback(j,W)},He.useContext=function(j){return G.H.useContext(j)},He.useDebugValue=function(){},He.useDeferredValue=function(j,W){return G.H.useDeferredValue(j,W)},He.useEffect=function(j,W){return G.H.useEffect(j,W)},He.useEffectEvent=function(j){return G.H.useEffectEvent(j)},He.useId=function(){return G.H.useId()},He.useImperativeHandle=function(j,W,le){return G.H.useImperativeHandle(j,W,le)},He.useInsertionEffect=function(j,W){return G.H.useInsertionEffect(j,W)},He.useLayoutEffect=function(j,W){return G.H.useLayoutEffect(j,W)},He.useMemo=function(j,W){return G.H.useMemo(j,W)},He.useOptimistic=function(j,W){return G.H.useOptimistic(j,W)},He.useReducer=function(j,W,le){return G.H.useReducer(j,W,le)},He.useRef=function(j){return G.H.useRef(j)},He.useState=function(j){return G.H.useState(j)},He.useSyncExternalStore=function(j,W,le){return G.H.useSyncExternalStore(j,W,le)},He.useTransition=function(){return G.H.useTransition()},He.version="19.2.1",He}var o3;function nh(){return o3||(o3=1,Fd.exports=P9()),Fd.exports}var M=nh();const Ka=c6(M),rh=G9({__proto__:null,default:Ka},[M]);var Yd={exports:{}},J0={},Pd={exports:{}},Vd={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var s3;function V9(){return s3||(s3=1,(function(e){function t(Y,ne){var Q=Y.length;Y.push(ne);e:for(;0<Q;){var ie=Q-1>>>1,be=Y[ie];if(0<i(be,ne))Y[ie]=ne,Y[Q]=be,Q=ie;else break e}}function r(Y){return Y.length===0?null:Y[0]}function l(Y){if(Y.length===0)return null;var ne=Y[0],Q=Y.pop();if(Q!==ne){Y[0]=Q;e:for(var ie=0,be=Y.length,j=be>>>1;ie<j;){var W=2*(ie+1)-1,le=Y[W],se=W+1,Se=Y[se];if(0>i(le,Q))se<be&&0>i(Se,le)?(Y[ie]=Se,Y[se]=Q,ie=se):(Y[ie]=le,Y[W]=Q,ie=W);else if(se<be&&0>i(Se,Q))Y[ie]=Se,Y[se]=Q,ie=se;else break e}}return ne}function i(Y,ne){var Q=Y.sortIndex-ne.sortIndex;return Q!==0?Q:Y.id-ne.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],h=[],v=1,g=null,b=3,w=!1,E=!1,A=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function H(Y){for(var ne=r(h);ne!==null;){if(ne.callback===null)l(h);else if(ne.startTime<=Y)l(h),ne.sortIndex=ne.expirationTime,t(d,ne);else break;ne=r(h)}}function F(Y){if(A=!1,H(Y),!E)if(r(d)!==null)E=!0,I||(I=!0,he());else{var ne=r(h);ne!==null&&Ce(F,ne.startTime-Y)}}var I=!1,G=-1,V=5,te=-1;function de(){return T?!0:!(e.unstable_now()-te<V)}function ce(){if(T=!1,I){var Y=e.unstable_now();te=Y;var ne=!0;try{e:{E=!1,A&&(A=!1,O(G),G=-1),w=!0;var Q=b;try{t:{for(H(Y),g=r(d);g!==null&&!(g.expirationTime>Y&&de());){var ie=g.callback;if(typeof ie=="function"){g.callback=null,b=g.priorityLevel;var be=ie(g.expirationTime<=Y);if(Y=e.unstable_now(),typeof be=="function"){g.callback=be,H(Y),ne=!0;break t}g===r(d)&&l(d),H(Y)}else l(d);g=r(d)}if(g!==null)ne=!0;else{var j=r(h);j!==null&&Ce(F,j.startTime-Y),ne=!1}}break e}finally{g=null,b=Q,w=!1}ne=void 0}}finally{ne?he():I=!1}}}var he;if(typeof R=="function")he=function(){R(ce)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,we=De.port2;De.port1.onmessage=ce,he=function(){we.postMessage(null)}}else he=function(){N(ce,0)};function Ce(Y,ne){G=N(function(){Y(e.unstable_now())},ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Y){Y.callback=null},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(Y){switch(b){case 1:case 2:case 3:var ne=3;break;default:ne=b}var Q=b;b=ne;try{return Y()}finally{b=Q}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(Y,ne){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var Q=b;b=Y;try{return ne()}finally{b=Q}},e.unstable_scheduleCallback=function(Y,ne,Q){var ie=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ie+Q:ie):Q=ie,Y){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=Q+be,Y={id:v++,callback:ne,priorityLevel:Y,startTime:Q,expirationTime:be,sortIndex:-1},Q>ie?(Y.sortIndex=Q,t(h,Y),r(d)===null&&Y===r(h)&&(A?(O(G),G=-1):A=!0,Ce(F,Q-ie))):(Y.sortIndex=be,t(d,Y),E||w||(E=!0,I||(I=!0,he()))),Y},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(Y){var ne=b;return function(){var Q=b;b=ne;try{return Y.apply(this,arguments)}finally{b=Q}}}})(Vd)),Vd}var u3;function I9(){return u3||(u3=1,Pd.exports=V9()),Pd.exports}var Id={exports:{}},nn={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var c3;function X9(){if(c3)return nn;c3=1;var e=nh();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,h,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:g==null?null:""+g,children:d,containerInfo:h,implementation:v}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return nn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,nn.createPortal=function(d,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(d,h,null,v)},nn.flushSync=function(d){var h=c.T,v=l.p;try{if(c.T=null,l.p=2,d)return d()}finally{c.T=h,l.p=v,l.d.f()}},nn.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,l.d.C(d,h))},nn.prefetchDNS=function(d){typeof d=="string"&&l.d.D(d)},nn.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var v=h.as,g=f(v,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?l.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:w}):v==="script"&&l.d.X(d,{crossOrigin:g,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},nn.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=f(h.as,h.crossOrigin);l.d.M(d,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&l.d.M(d)},nn.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,g=f(v,h.crossOrigin);l.d.L(d,v,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},nn.preloadModule=function(d,h){if(typeof d=="string")if(h){var v=f(h.as,h.crossOrigin);l.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else l.d.m(d)},nn.requestFormReset=function(d){l.d.r(d)},nn.unstable_batchedUpdates=function(d,h){return d(h)},nn.useFormState=function(d,h,v){return c.H.useFormState(d,h,v)},nn.useFormStatus=function(){return c.H.useHostTransitionStatus()},nn.version="19.2.1",nn}var f3;function f6(){if(f3)return Id.exports;f3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Id.exports=X9(),Id.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var d3;function $9(){if(d3)return J0;d3=1;var e=I9(),t=nh(),r=f6();function l(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var a=n,o=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(o=a.return),n=a.return;while(n)}return a.tag===3?o:null}function c(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(s(n)!==n)throw Error(l(188))}function h(n){var a=n.alternate;if(!a){if(a=s(n),a===null)throw Error(l(188));return a!==n?null:n}for(var o=n,u=a;;){var m=o.return;if(m===null)break;var p=m.alternate;if(p===null){if(u=m.return,u!==null){o=u;continue}break}if(m.child===p.child){for(p=m.child;p;){if(p===o)return d(m),n;if(p===u)return d(m),a;p=p.sibling}throw Error(l(188))}if(o.return!==u.return)o=m,u=p;else{for(var S=!1,z=m.child;z;){if(z===o){S=!0,o=m,u=p;break}if(z===u){S=!0,u=m,o=p;break}z=z.sibling}if(!S){for(z=p.child;z;){if(z===o){S=!0,o=p,u=m;break}if(z===u){S=!0,u=p,o=m;break}z=z.sibling}if(!S)throw Error(l(189))}}if(o.alternate!==u)throw Error(l(190))}if(o.tag!==3)throw Error(l(188));return o.stateNode.current===o?n:a}function v(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=v(n),a!==null)return a;n=n.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),R=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function he(n){return n===null||typeof n!="object"?null:(n=ce&&n[ce]||n["@@iterator"],typeof n=="function"?n:null)}var De=Symbol.for("react.client.reference");function we(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===De?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case A:return"Fragment";case N:return"Profiler";case T:return"StrictMode";case F:return"Suspense";case I:return"SuspenseList";case te:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case E:return"Portal";case R:return n.displayName||"Context";case O:return(n._context.displayName||"Context")+".Consumer";case H:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case G:return a=n.displayName||null,a!==null?a:we(n.type)||"Memo";case V:a=n._payload,n=n._init;try{return we(n(a))}catch{}}return null}var Ce=Array.isArray,Y=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ie=[],be=-1;function j(n){return{current:n}}function W(n){0>be||(n.current=ie[be],ie[be]=null,be--)}function le(n,a){be++,ie[be]=n.current,n.current=a}var se=j(null),Se=j(null),ke=j(null),ve=j(null);function Be(n,a){switch(le(ke,a),le(Se,n),le(se,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?T2(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=T2(a),n=C2(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}W(se),le(se,n)}function Oe(){W(se),W(Se),W(ke)}function Ze(n){n.memoizedState!==null&&le(ve,n);var a=se.current,o=C2(a,n.type);a!==o&&(le(Se,n),le(se,o))}function Ye(n){Se.current===n&&(W(se),W(Se)),ve.current===n&&(W(ve),$0._currentValue=Q)}var ye,Pe;function Ke(n){if(ye===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);ye=a&&a[1]||"",Pe=-1<o.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+ye+n+Pe}var gt=!1;function qt(n,a){if(!n||gt)return"";gt=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(J){var Z=J}Reflect.construct(n,[],ae)}else{try{ae.call()}catch(J){Z=J}n.call(ae.prototype)}}else{try{throw Error()}catch(J){Z=J}(ae=n())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(J){if(J&&Z&&typeof J.stack=="string")return[J.stack,Z.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=u.DetermineComponentFrameRoot(),S=p[0],z=p[1];if(S&&z){var B=S.split(`
44
- `),K=z.split(`
45
- `);for(m=u=0;u<B.length&&!B[u].includes("DetermineComponentFrameRoot");)u++;for(;m<K.length&&!K[m].includes("DetermineComponentFrameRoot");)m++;if(u===B.length||m===K.length)for(u=B.length-1,m=K.length-1;1<=u&&0<=m&&B[u]!==K[m];)m--;for(;1<=u&&0<=m;u--,m--)if(B[u]!==K[m]){if(u!==1||m!==1)do if(u--,m--,0>m||B[u]!==K[m]){var ee=`
46
- `+B[u].replace(" at new "," at ");return n.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",n.displayName)),ee}while(1<=u&&0<=m);break}}}finally{gt=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Ke(o):""}function $t(n,a){switch(n.tag){case 26:case 27:case 5:return Ke(n.type);case 16:return Ke("Lazy");case 13:return n.child!==a&&a!==null?Ke("Suspense Fallback"):Ke("Suspense");case 19:return Ke("SuspenseList");case 0:case 15:return qt(n.type,!1);case 11:return qt(n.type.render,!1);case 1:return qt(n.type,!0);case 31:return Ke("Activity");default:return""}}function Kt(n){try{var a="",o=null;do a+=$t(n,o),o=n,n=n.return;while(n);return a}catch(u){return`
47
- Error generating stack: `+u.message+`
48
- `+u.stack}}var Mt=Object.prototype.hasOwnProperty,ir=e.unstable_scheduleCallback,Br=e.unstable_cancelCallback,n0=e.unstable_shouldYield,r0=e.unstable_requestPaint,tn=e.unstable_now,Fo=e.unstable_getCurrentPriorityLevel,Yo=e.unstable_ImmediatePriority,a0=e.unstable_UserBlockingPriority,Vl=e.unstable_NormalPriority,l0=e.unstable_LowPriority,Hr=e.unstable_IdlePriority,i0=e.log,o0=e.unstable_setDisableYieldValue,vr=null,ln=null;function gr(n){if(typeof i0=="function"&&o0(n),ln&&typeof ln.setStrictMode=="function")try{ln.setStrictMode(vr,n)}catch{}}var on=Math.clz32?Math.clz32:Po,Ec=Math.log,Tc=Math.LN2;function Po(n){return n>>>=0,n===0?32:31-(Ec(n)/Tc|0)|0}var Il=256,dl=262144,hl=4194304;function yr(n){var a=n&42;if(a!==0)return a;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Xl(n,a,o){var u=n.pendingLanes;if(u===0)return 0;var m=0,p=n.suspendedLanes,S=n.pingedLanes;n=n.warmLanes;var z=u&134217727;return z!==0?(u=z&~p,u!==0?m=yr(u):(S&=z,S!==0?m=yr(S):o||(o=z&~n,o!==0&&(m=yr(o))))):(z=u&~p,z!==0?m=yr(z):S!==0?m=yr(S):o||(o=u&~n,o!==0&&(m=yr(o)))),m===0?0:a!==0&&a!==m&&(a&p)===0&&(p=m&-m,o=a&-a,p>=o||p===32&&(o&4194048)!==0)?a:m}function ba(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Vo(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Io(){var n=hl;return hl<<=1,(hl&62914560)===0&&(hl=4194304),n}function Cc(n){for(var a=[],o=0;31>o;o++)a.push(n);return a}function s0(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function C8(n,a,o,u,m,p){var S=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var z=n.entanglements,B=n.expirationTimes,K=n.hiddenUpdates;for(o=S&~o;0<o;){var ee=31-on(o),ae=1<<ee;z[ee]=0,B[ee]=-1;var Z=K[ee];if(Z!==null)for(K[ee]=null,ee=0;ee<Z.length;ee++){var J=Z[ee];J!==null&&(J.lane&=-536870913)}o&=~ae}u!==0&&sm(n,u,0),p!==0&&m===0&&n.tag!==0&&(n.suspendedLanes|=p&~(S&~a))}function sm(n,a,o){n.pendingLanes|=a,n.suspendedLanes&=~a;var u=31-on(a);n.entangledLanes|=a,n.entanglements[u]=n.entanglements[u]|1073741824|o&261930}function um(n,a){var o=n.entangledLanes|=a;for(n=n.entanglements;o;){var u=31-on(o),m=1<<u;m&a|n[u]&a&&(n[u]|=a),o&=~m}}function cm(n,a){var o=a&-a;return o=(o&42)!==0?1:kc(o),(o&(n.suspendedLanes|a))!==0?0:o}function kc(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Nc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function fm(){var n=ne.p;return n!==0?n:(n=window.event,n===void 0?32:Q2(n.type))}function dm(n,a){var o=ne.p;try{return ne.p=n,a()}finally{ne.p=o}}var xa=Math.random().toString(36).slice(2),Qt="__reactFiber$"+xa,vn="__reactProps$"+xa,$l="__reactContainer$"+xa,zc="__reactEvents$"+xa,k8="__reactListeners$"+xa,N8="__reactHandles$"+xa,hm="__reactResources$"+xa,u0="__reactMarker$"+xa;function Dc(n){delete n[Qt],delete n[vn],delete n[zc],delete n[k8],delete n[N8]}function Kl(n){var a=n[Qt];if(a)return a;for(var o=n.parentNode;o;){if(a=o[$l]||o[Qt]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(n=L2(n);n!==null;){if(o=n[Qt])return o;n=L2(n)}return a}n=o,o=n.parentNode}return null}function Ql(n){if(n=n[Qt]||n[$l]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function c0(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(l(33))}function Zl(n){var a=n[hm];return a||(a=n[hm]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Vt(n){n[u0]=!0}var mm=new Set,pm={};function ml(n,a){Wl(n,a),Wl(n+"Capture",a)}function Wl(n,a){for(pm[n]=a,n=0;n<a.length;n++)mm.add(a[n])}var z8=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]*$"),vm={},gm={};function D8(n){return Mt.call(gm,n)?!0:Mt.call(vm,n)?!1:z8.test(n)?gm[n]=!0:(vm[n]=!0,!1)}function Xo(n,a,o){if(D8(a))if(o===null)n.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+o)}}function $o(n,a,o){if(o===null)n.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+o)}}function qr(n,a,o,u){if(u===null)n.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(a,o,""+u)}}function Yn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function ym(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function O8(n,a,o){var u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var m=u.get,p=u.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return m.call(this)},set:function(S){o=""+S,p.call(this,S)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(S){o=""+S},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Oc(n){if(!n._valueTracker){var a=ym(n)?"checked":"value";n._valueTracker=O8(n,a,""+n[a])}}function bm(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var o=a.getValue(),u="";return n&&(u=ym(n)?n.checked?"true":"false":n.value),n=u,n!==o?(a.setValue(n),!0):!1}function Ko(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var R8=/[\n"\\]/g;function Pn(n){return n.replace(R8,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Rc(n,a,o,u,m,p,S,z){n.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.type=S:n.removeAttribute("type"),a!=null?S==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Yn(a)):n.value!==""+Yn(a)&&(n.value=""+Yn(a)):S!=="submit"&&S!=="reset"||n.removeAttribute("value"),a!=null?Lc(n,S,Yn(a)):o!=null?Lc(n,S,Yn(o)):u!=null&&n.removeAttribute("value"),m==null&&p!=null&&(n.defaultChecked=!!p),m!=null&&(n.checked=m&&typeof m!="function"&&typeof m!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?n.name=""+Yn(z):n.removeAttribute("name")}function xm(n,a,o,u,m,p,S,z){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),a!=null||o!=null){if(!(p!=="submit"&&p!=="reset"||a!=null)){Oc(n);return}o=o!=null?""+Yn(o):"",a=a!=null?""+Yn(a):o,z||a===n.value||(n.value=a),n.defaultValue=a}u=u??m,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=z?n.checked:!!u,n.defaultChecked=!!u,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(n.name=S),Oc(n)}function Lc(n,a,o){a==="number"&&Ko(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function Jl(n,a,o,u){if(n=n.options,a){a={};for(var m=0;m<o.length;m++)a["$"+o[m]]=!0;for(o=0;o<n.length;o++)m=a.hasOwnProperty("$"+n[o].value),n[o].selected!==m&&(n[o].selected=m),m&&u&&(n[o].defaultSelected=!0)}else{for(o=""+Yn(o),a=null,m=0;m<n.length;m++){if(n[m].value===o){n[m].selected=!0,u&&(n[m].defaultSelected=!0);return}a!==null||n[m].disabled||(a=n[m])}a!==null&&(a.selected=!0)}}function wm(n,a,o){if(a!=null&&(a=""+Yn(a),a!==n.value&&(n.value=a),o==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=o!=null?""+Yn(o):""}function Sm(n,a,o,u){if(a==null){if(u!=null){if(o!=null)throw Error(l(92));if(Ce(u)){if(1<u.length)throw Error(l(93));u=u[0]}o=u}o==null&&(o=""),a=o}o=Yn(a),n.defaultValue=o,u=n.textContent,u===o&&u!==""&&u!==null&&(n.value=u),Oc(n)}function ei(n,a){if(a){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=a;return}}n.textContent=a}var L8=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 Am(n,a,o){var u=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":u?n.setProperty(a,o):typeof o!="number"||o===0||L8.has(a)?a==="float"?n.cssFloat=o:n[a]=(""+o).trim():n[a]=o+"px"}function Mm(n,a,o){if(a!=null&&typeof a!="object")throw Error(l(62));if(n=n.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var m in a)u=a[m],a.hasOwnProperty(m)&&o[m]!==u&&Am(n,m,u)}else for(var p in a)a.hasOwnProperty(p)&&Am(n,p,a[p])}function _c(n){if(n.indexOf("-")===-1)return!1;switch(n){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 _8=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"]]),j8=/^[\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 Qo(n){return j8.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Ur(){}var jc=null;function Bc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ti=null,ni=null;function Em(n){var a=Ql(n);if(a&&(n=a.stateNode)){var o=n[vn]||null;e:switch(n=a.stateNode,a.type){case"input":if(Rc(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Pn(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var u=o[a];if(u!==n&&u.form===n.form){var m=u[vn]||null;if(!m)throw Error(l(90));Rc(u,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<o.length;a++)u=o[a],u.form===n.form&&bm(u)}break e;case"textarea":wm(n,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Jl(n,!!o.multiple,a,!1)}}}var Hc=!1;function Tm(n,a,o){if(Hc)return n(a,o);Hc=!0;try{var u=n(a);return u}finally{if(Hc=!1,(ti!==null||ni!==null)&&(Bs(),ti&&(a=ti,n=ni,ni=ti=null,Em(a),n)))for(a=0;a<n.length;a++)Em(n[a])}}function f0(n,a){var o=n.stateNode;if(o===null)return null;var u=o[vn]||null;if(u===null)return null;o=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(l(231,a,typeof o));return o}var Gr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qc=!1;if(Gr)try{var d0={};Object.defineProperty(d0,"passive",{get:function(){qc=!0}}),window.addEventListener("test",d0,d0),window.removeEventListener("test",d0,d0)}catch{qc=!1}var wa=null,Uc=null,Zo=null;function Cm(){if(Zo)return Zo;var n,a=Uc,o=a.length,u,m="value"in wa?wa.value:wa.textContent,p=m.length;for(n=0;n<o&&a[n]===m[n];n++);var S=o-n;for(u=1;u<=S&&a[o-u]===m[p-u];u++);return Zo=m.slice(n,1<u?1-u:void 0)}function Wo(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Jo(){return!0}function km(){return!1}function gn(n){function a(o,u,m,p,S){this._reactName=o,this._targetInst=m,this.type=u,this.nativeEvent=p,this.target=S,this.currentTarget=null;for(var z in n)n.hasOwnProperty(z)&&(o=n[z],this[z]=o?o(p):p[z]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Jo:km,this.isPropagationStopped=km,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Jo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Jo)},persist:function(){},isPersistent:Jo}),a}var pl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},es=gn(pl),h0=g({},pl,{view:0,detail:0}),B8=gn(h0),Gc,Fc,m0,ts=g({},h0,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==m0&&(m0&&n.type==="mousemove"?(Gc=n.screenX-m0.screenX,Fc=n.screenY-m0.screenY):Fc=Gc=0,m0=n),Gc)},movementY:function(n){return"movementY"in n?n.movementY:Fc}}),Nm=gn(ts),H8=g({},ts,{dataTransfer:0}),q8=gn(H8),U8=g({},h0,{relatedTarget:0}),Yc=gn(U8),G8=g({},pl,{animationName:0,elapsedTime:0,pseudoElement:0}),F8=gn(G8),Y8=g({},pl,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),P8=gn(Y8),V8=g({},pl,{data:0}),zm=gn(V8),I8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X8={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"},$8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K8(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=$8[n])?!!a[n]:!1}function Pc(){return K8}var Q8=g({},h0,{key:function(n){if(n.key){var a=I8[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=Wo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?X8[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pc,charCode:function(n){return n.type==="keypress"?Wo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Wo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Z8=gn(Q8),W8=g({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dm=gn(W8),J8=g({},h0,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pc}),ey=gn(J8),ty=g({},pl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ny=gn(ty),ry=g({},ts,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),ay=gn(ry),ly=g({},pl,{newState:0,oldState:0}),iy=gn(ly),oy=[9,13,27,32],Vc=Gr&&"CompositionEvent"in window,p0=null;Gr&&"documentMode"in document&&(p0=document.documentMode);var sy=Gr&&"TextEvent"in window&&!p0,Om=Gr&&(!Vc||p0&&8<p0&&11>=p0),Rm=" ",Lm=!1;function _m(n,a){switch(n){case"keyup":return oy.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ri=!1;function uy(n,a){switch(n){case"compositionend":return jm(a);case"keypress":return a.which!==32?null:(Lm=!0,Rm);case"textInput":return n=a.data,n===Rm&&Lm?null:n;default:return null}}function cy(n,a){if(ri)return n==="compositionend"||!Vc&&_m(n,a)?(n=Cm(),Zo=Uc=wa=null,ri=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Om&&a.locale!=="ko"?null:a.data;default:return null}}var fy={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 Bm(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!fy[n.type]:a==="textarea"}function Hm(n,a,o,u){ti?ni?ni.push(u):ni=[u]:ti=u,a=Ps(a,"onChange"),0<a.length&&(o=new es("onChange","change",null,o,u),n.push({event:o,listeners:a}))}var v0=null,g0=null;function dy(n){x2(n,0)}function ns(n){var a=c0(n);if(bm(a))return n}function qm(n,a){if(n==="change")return a}var Um=!1;if(Gr){var Ic;if(Gr){var Xc="oninput"in document;if(!Xc){var Gm=document.createElement("div");Gm.setAttribute("oninput","return;"),Xc=typeof Gm.oninput=="function"}Ic=Xc}else Ic=!1;Um=Ic&&(!document.documentMode||9<document.documentMode)}function Fm(){v0&&(v0.detachEvent("onpropertychange",Ym),g0=v0=null)}function Ym(n){if(n.propertyName==="value"&&ns(g0)){var a=[];Hm(a,g0,n,Bc(n)),Tm(dy,a)}}function hy(n,a,o){n==="focusin"?(Fm(),v0=a,g0=o,v0.attachEvent("onpropertychange",Ym)):n==="focusout"&&Fm()}function my(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ns(g0)}function py(n,a){if(n==="click")return ns(a)}function vy(n,a){if(n==="input"||n==="change")return ns(a)}function gy(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Dn=typeof Object.is=="function"?Object.is:gy;function y0(n,a){if(Dn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var o=Object.keys(n),u=Object.keys(a);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var m=o[u];if(!Mt.call(a,m)||!Dn(n[m],a[m]))return!1}return!0}function Pm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Vm(n,a){var o=Pm(n);n=0;for(var u;o;){if(o.nodeType===3){if(u=n+o.textContent.length,n<=a&&u>=a)return{node:o,offset:a-n};n=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Pm(o)}}function Im(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Im(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Xm(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Ko(n.document);a instanceof n.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)n=a.contentWindow;else break;a=Ko(n.document)}return a}function $c(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var yy=Gr&&"documentMode"in document&&11>=document.documentMode,ai=null,Kc=null,b0=null,Qc=!1;function $m(n,a,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Qc||ai==null||ai!==Ko(u)||(u=ai,"selectionStart"in u&&$c(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),b0&&y0(b0,u)||(b0=u,u=Ps(Kc,"onSelect"),0<u.length&&(a=new es("onSelect","select",null,a,o),n.push({event:a,listeners:u}),a.target=ai)))}function vl(n,a){var o={};return o[n.toLowerCase()]=a.toLowerCase(),o["Webkit"+n]="webkit"+a,o["Moz"+n]="moz"+a,o}var li={animationend:vl("Animation","AnimationEnd"),animationiteration:vl("Animation","AnimationIteration"),animationstart:vl("Animation","AnimationStart"),transitionrun:vl("Transition","TransitionRun"),transitionstart:vl("Transition","TransitionStart"),transitioncancel:vl("Transition","TransitionCancel"),transitionend:vl("Transition","TransitionEnd")},Zc={},Km={};Gr&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);function gl(n){if(Zc[n])return Zc[n];if(!li[n])return n;var a=li[n],o;for(o in a)if(a.hasOwnProperty(o)&&o in Km)return Zc[n]=a[o];return n}var Qm=gl("animationend"),Zm=gl("animationiteration"),Wm=gl("animationstart"),by=gl("transitionrun"),xy=gl("transitionstart"),wy=gl("transitioncancel"),Jm=gl("transitionend"),e4=new Map,Wc="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(" ");Wc.push("scrollEnd");function or(n,a){e4.set(n,a),ml(a,[n])}var rs=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Vn=[],ii=0,Jc=0;function as(){for(var n=ii,a=Jc=ii=0;a<n;){var o=Vn[a];Vn[a++]=null;var u=Vn[a];Vn[a++]=null;var m=Vn[a];Vn[a++]=null;var p=Vn[a];if(Vn[a++]=null,u!==null&&m!==null){var S=u.pending;S===null?m.next=m:(m.next=S.next,S.next=m),u.pending=m}p!==0&&t4(o,m,p)}}function ls(n,a,o,u){Vn[ii++]=n,Vn[ii++]=a,Vn[ii++]=o,Vn[ii++]=u,Jc|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function ef(n,a,o,u){return ls(n,a,o,u),is(n)}function yl(n,a){return ls(n,null,null,a),is(n)}function t4(n,a,o){n.lanes|=o;var u=n.alternate;u!==null&&(u.lanes|=o);for(var m=!1,p=n.return;p!==null;)p.childLanes|=o,u=p.alternate,u!==null&&(u.childLanes|=o),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(m=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,m&&a!==null&&(m=31-on(o),n=p.hiddenUpdates,u=n[m],u===null?n[m]=[a]:u.push(a),a.lane=o|536870912),p):null}function is(n){if(50<G0)throw G0=0,cd=null,Error(l(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var oi={};function Sy(n,a,o,u){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(n,a,o,u){return new Sy(n,a,o,u)}function tf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Fr(n,a){var o=n.alternate;return o===null?(o=On(n.tag,a,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=a,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,a=n.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function n4(n,a){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,a=o.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function os(n,a,o,u,m,p){var S=0;if(u=n,typeof n=="function")tf(n)&&(S=1);else if(typeof n=="string")S=C9(n,o,se.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case te:return n=On(31,o,a,m),n.elementType=te,n.lanes=p,n;case A:return bl(o.children,m,p,a);case T:S=8,m|=24;break;case N:return n=On(12,o,a,m|2),n.elementType=N,n.lanes=p,n;case F:return n=On(13,o,a,m),n.elementType=F,n.lanes=p,n;case I:return n=On(19,o,a,m),n.elementType=I,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case R:S=10;break e;case O:S=9;break e;case H:S=11;break e;case G:S=14;break e;case V:S=16,u=null;break e}S=29,o=Error(l(130,n===null?"null":typeof n,"")),u=null}return a=On(S,o,a,m),a.elementType=n,a.type=u,a.lanes=p,a}function bl(n,a,o,u){return n=On(7,n,u,a),n.lanes=o,n}function nf(n,a,o){return n=On(6,n,null,a),n.lanes=o,n}function r4(n){var a=On(18,null,null,0);return a.stateNode=n,a}function rf(n,a,o){return a=On(4,n.children!==null?n.children:[],n.key,a),a.lanes=o,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var a4=new WeakMap;function In(n,a){if(typeof n=="object"&&n!==null){var o=a4.get(n);return o!==void 0?o:(a={value:n,source:a,stack:Kt(a)},a4.set(n,a),a)}return{value:n,source:a,stack:Kt(a)}}var si=[],ui=0,ss=null,x0=0,Xn=[],$n=0,Sa=null,br=1,xr="";function Yr(n,a){si[ui++]=x0,si[ui++]=ss,ss=n,x0=a}function l4(n,a,o){Xn[$n++]=br,Xn[$n++]=xr,Xn[$n++]=Sa,Sa=n;var u=br;n=xr;var m=32-on(u)-1;u&=~(1<<m),o+=1;var p=32-on(a)+m;if(30<p){var S=m-m%5;p=(u&(1<<S)-1).toString(32),u>>=S,m-=S,br=1<<32-on(a)+m|o<<m|u,xr=p+n}else br=1<<p|o<<m|u,xr=n}function af(n){n.return!==null&&(Yr(n,1),l4(n,1,0))}function lf(n){for(;n===ss;)ss=si[--ui],si[ui]=null,x0=si[--ui],si[ui]=null;for(;n===Sa;)Sa=Xn[--$n],Xn[$n]=null,xr=Xn[--$n],Xn[$n]=null,br=Xn[--$n],Xn[$n]=null}function i4(n,a){Xn[$n++]=br,Xn[$n++]=xr,Xn[$n++]=Sa,br=a.id,xr=a.overflow,Sa=n}var Zt=null,mt=null,Qe=!1,Aa=null,Kn=!1,of=Error(l(519));function Ma(n){var a=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw w0(In(a,n)),of}function o4(n){var a=n.stateNode,o=n.type,u=n.memoizedProps;switch(a[Qt]=n,a[vn]=u,o){case"dialog":Ie("cancel",a),Ie("close",a);break;case"iframe":case"object":case"embed":Ie("load",a);break;case"video":case"audio":for(o=0;o<Y0.length;o++)Ie(Y0[o],a);break;case"source":Ie("error",a);break;case"img":case"image":case"link":Ie("error",a),Ie("load",a);break;case"details":Ie("toggle",a);break;case"input":Ie("invalid",a),xm(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Ie("invalid",a);break;case"textarea":Ie("invalid",a),Sm(a,u.value,u.defaultValue,u.children)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||u.suppressHydrationWarning===!0||M2(a.textContent,o)?(u.popover!=null&&(Ie("beforetoggle",a),Ie("toggle",a)),u.onScroll!=null&&Ie("scroll",a),u.onScrollEnd!=null&&Ie("scrollend",a),u.onClick!=null&&(a.onclick=Ur),a=!0):a=!1,a||Ma(n,!0)}function s4(n){for(Zt=n.return;Zt;)switch(Zt.tag){case 5:case 31:case 13:Kn=!1;return;case 27:case 3:Kn=!0;return;default:Zt=Zt.return}}function ci(n){if(n!==Zt)return!1;if(!Qe)return s4(n),Qe=!0,!1;var a=n.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||Ed(n.type,n.memoizedProps)),o=!o),o&&mt&&Ma(n),s4(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(l(317));mt=R2(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(l(317));mt=R2(n)}else a===27?(a=mt,Ha(n.type)?(n=zd,zd=null,mt=n):mt=a):mt=Zt?Zn(n.stateNode.nextSibling):null;return!0}function xl(){mt=Zt=null,Qe=!1}function sf(){var n=Aa;return n!==null&&(wn===null?wn=n:wn.push.apply(wn,n),Aa=null),n}function w0(n){Aa===null?Aa=[n]:Aa.push(n)}var uf=j(null),wl=null,Pr=null;function Ea(n,a,o){le(uf,a._currentValue),a._currentValue=o}function Vr(n){n._currentValue=uf.current,W(uf)}function cf(n,a,o){for(;n!==null;){var u=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),n===o)break;n=n.return}}function ff(n,a,o,u){var m=n.child;for(m!==null&&(m.return=n);m!==null;){var p=m.dependencies;if(p!==null){var S=m.child;p=p.firstContext;e:for(;p!==null;){var z=p;p=m;for(var B=0;B<a.length;B++)if(z.context===a[B]){p.lanes|=o,z=p.alternate,z!==null&&(z.lanes|=o),cf(p.return,o,n),u||(S=null);break e}p=z.next}}else if(m.tag===18){if(S=m.return,S===null)throw Error(l(341));S.lanes|=o,p=S.alternate,p!==null&&(p.lanes|=o),cf(S,o,n),S=null}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===n){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}}function fi(n,a,o,u){n=null;for(var m=a,p=!1;m!==null;){if(!p){if((m.flags&524288)!==0)p=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var S=m.alternate;if(S===null)throw Error(l(387));if(S=S.memoizedProps,S!==null){var z=m.type;Dn(m.pendingProps.value,S.value)||(n!==null?n.push(z):n=[z])}}else if(m===ve.current){if(S=m.alternate,S===null)throw Error(l(387));S.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(n!==null?n.push($0):n=[$0])}m=m.return}n!==null&&ff(a,n,o,u),a.flags|=262144}function us(n){for(n=n.firstContext;n!==null;){if(!Dn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Sl(n){wl=n,Pr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Wt(n){return u4(wl,n)}function cs(n,a){return wl===null&&Sl(n),u4(n,a)}function u4(n,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},Pr===null){if(n===null)throw Error(l(308));Pr=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Pr=Pr.next=a;return o}var Ay=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(o,u){n.push(u)}};this.abort=function(){a.aborted=!0,n.forEach(function(o){return o()})}},My=e.unstable_scheduleCallback,Ey=e.unstable_NormalPriority,Ot={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function df(){return{controller:new Ay,data:new Map,refCount:0}}function S0(n){n.refCount--,n.refCount===0&&My(Ey,function(){n.controller.abort()})}var A0=null,hf=0,di=0,hi=null;function Ty(n,a){if(A0===null){var o=A0=[];hf=0,di=vd(),hi={status:"pending",value:void 0,then:function(u){o.push(u)}}}return hf++,a.then(c4,c4),a}function c4(){if(--hf===0&&A0!==null){hi!==null&&(hi.status="fulfilled");var n=A0;A0=null,di=0,hi=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Cy(n,a){var o=[],u={status:"pending",value:null,reason:null,then:function(m){o.push(m)}};return n.then(function(){u.status="fulfilled",u.value=a;for(var m=0;m<o.length;m++)(0,o[m])(a)},function(m){for(u.status="rejected",u.reason=m,m=0;m<o.length;m++)(0,o[m])(void 0)}),u}var f4=Y.S;Y.S=function(n,a){$p=tn(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Ty(n,a),f4!==null&&f4(n,a)};var Al=j(null);function mf(){var n=Al.current;return n!==null?n:ft.pooledCache}function fs(n,a){a===null?le(Al,Al.current):le(Al,a.pool)}function d4(){var n=mf();return n===null?null:{parent:Ot._currentValue,pool:n}}var mi=Error(l(460)),pf=Error(l(474)),ds=Error(l(542)),hs={then:function(){}};function h4(n){return n=n.status,n==="fulfilled"||n==="rejected"}function m4(n,a,o){switch(o=n[o],o===void 0?n.push(a):o!==a&&(a.then(Ur,Ur),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,v4(n),n;default:if(typeof a.status=="string")a.then(Ur,Ur);else{if(n=ft,n!==null&&100<n.shellSuspendCounter)throw Error(l(482));n=a,n.status="pending",n.then(function(u){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=u}},function(u){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,v4(n),n}throw El=a,mi}}function Ml(n){try{var a=n._init;return a(n._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(El=o,mi):o}}var El=null;function p4(){if(El===null)throw Error(l(459));var n=El;return El=null,n}function v4(n){if(n===mi||n===ds)throw Error(l(483))}var pi=null,M0=0;function ms(n){var a=M0;return M0+=1,pi===null&&(pi=[]),m4(pi,n,a)}function E0(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function ps(n,a){throw a.$$typeof===b?Error(l(525)):(n=Object.prototype.toString.call(a),Error(l(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function g4(n){function a(P,q){if(n){var X=P.deletions;X===null?(P.deletions=[q],P.flags|=16):X.push(q)}}function o(P,q){if(!n)return null;for(;q!==null;)a(P,q),q=q.sibling;return null}function u(P){for(var q=new Map;P!==null;)P.key!==null?q.set(P.key,P):q.set(P.index,P),P=P.sibling;return q}function m(P,q){return P=Fr(P,q),P.index=0,P.sibling=null,P}function p(P,q,X){return P.index=X,n?(X=P.alternate,X!==null?(X=X.index,X<q?(P.flags|=67108866,q):X):(P.flags|=67108866,q)):(P.flags|=1048576,q)}function S(P){return n&&P.alternate===null&&(P.flags|=67108866),P}function z(P,q,X,re){return q===null||q.tag!==6?(q=nf(X,P.mode,re),q.return=P,q):(q=m(q,X),q.return=P,q)}function B(P,q,X,re){var ze=X.type;return ze===A?ee(P,q,X.props.children,re,X.key):q!==null&&(q.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===V&&Ml(ze)===q.type)?(q=m(q,X.props),E0(q,X),q.return=P,q):(q=os(X.type,X.key,X.props,null,P.mode,re),E0(q,X),q.return=P,q)}function K(P,q,X,re){return q===null||q.tag!==4||q.stateNode.containerInfo!==X.containerInfo||q.stateNode.implementation!==X.implementation?(q=rf(X,P.mode,re),q.return=P,q):(q=m(q,X.children||[]),q.return=P,q)}function ee(P,q,X,re,ze){return q===null||q.tag!==7?(q=bl(X,P.mode,re,ze),q.return=P,q):(q=m(q,X),q.return=P,q)}function ae(P,q,X){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=nf(""+q,P.mode,X),q.return=P,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case w:return X=os(q.type,q.key,q.props,null,P.mode,X),E0(X,q),X.return=P,X;case E:return q=rf(q,P.mode,X),q.return=P,q;case V:return q=Ml(q),ae(P,q,X)}if(Ce(q)||he(q))return q=bl(q,P.mode,X,null),q.return=P,q;if(typeof q.then=="function")return ae(P,ms(q),X);if(q.$$typeof===R)return ae(P,cs(P,q),X);ps(P,q)}return null}function Z(P,q,X,re){var ze=q!==null?q.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return ze!==null?null:z(P,q,""+X,re);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case w:return X.key===ze?B(P,q,X,re):null;case E:return X.key===ze?K(P,q,X,re):null;case V:return X=Ml(X),Z(P,q,X,re)}if(Ce(X)||he(X))return ze!==null?null:ee(P,q,X,re,null);if(typeof X.then=="function")return Z(P,q,ms(X),re);if(X.$$typeof===R)return Z(P,q,cs(P,X),re);ps(P,X)}return null}function J(P,q,X,re,ze){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return P=P.get(X)||null,z(q,P,""+re,ze);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case w:return P=P.get(re.key===null?X:re.key)||null,B(q,P,re,ze);case E:return P=P.get(re.key===null?X:re.key)||null,K(q,P,re,ze);case V:return re=Ml(re),J(P,q,X,re,ze)}if(Ce(re)||he(re))return P=P.get(X)||null,ee(q,P,re,ze,null);if(typeof re.then=="function")return J(P,q,X,ms(re),ze);if(re.$$typeof===R)return J(P,q,X,cs(q,re),ze);ps(q,re)}return null}function Ae(P,q,X,re){for(var ze=null,et=null,Te=q,Ue=q=0,$e=null;Te!==null&&Ue<X.length;Ue++){Te.index>Ue?($e=Te,Te=null):$e=Te.sibling;var tt=Z(P,Te,X[Ue],re);if(tt===null){Te===null&&(Te=$e);break}n&&Te&&tt.alternate===null&&a(P,Te),q=p(tt,q,Ue),et===null?ze=tt:et.sibling=tt,et=tt,Te=$e}if(Ue===X.length)return o(P,Te),Qe&&Yr(P,Ue),ze;if(Te===null){for(;Ue<X.length;Ue++)Te=ae(P,X[Ue],re),Te!==null&&(q=p(Te,q,Ue),et===null?ze=Te:et.sibling=Te,et=Te);return Qe&&Yr(P,Ue),ze}for(Te=u(Te);Ue<X.length;Ue++)$e=J(Te,P,Ue,X[Ue],re),$e!==null&&(n&&$e.alternate!==null&&Te.delete($e.key===null?Ue:$e.key),q=p($e,q,Ue),et===null?ze=$e:et.sibling=$e,et=$e);return n&&Te.forEach(function(Ya){return a(P,Ya)}),Qe&&Yr(P,Ue),ze}function _e(P,q,X,re){if(X==null)throw Error(l(151));for(var ze=null,et=null,Te=q,Ue=q=0,$e=null,tt=X.next();Te!==null&&!tt.done;Ue++,tt=X.next()){Te.index>Ue?($e=Te,Te=null):$e=Te.sibling;var Ya=Z(P,Te,tt.value,re);if(Ya===null){Te===null&&(Te=$e);break}n&&Te&&Ya.alternate===null&&a(P,Te),q=p(Ya,q,Ue),et===null?ze=Ya:et.sibling=Ya,et=Ya,Te=$e}if(tt.done)return o(P,Te),Qe&&Yr(P,Ue),ze;if(Te===null){for(;!tt.done;Ue++,tt=X.next())tt=ae(P,tt.value,re),tt!==null&&(q=p(tt,q,Ue),et===null?ze=tt:et.sibling=tt,et=tt);return Qe&&Yr(P,Ue),ze}for(Te=u(Te);!tt.done;Ue++,tt=X.next())tt=J(Te,P,Ue,tt.value,re),tt!==null&&(n&&tt.alternate!==null&&Te.delete(tt.key===null?Ue:tt.key),q=p(tt,q,Ue),et===null?ze=tt:et.sibling=tt,et=tt);return n&&Te.forEach(function(H9){return a(P,H9)}),Qe&&Yr(P,Ue),ze}function ut(P,q,X,re){if(typeof X=="object"&&X!==null&&X.type===A&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case w:e:{for(var ze=X.key;q!==null;){if(q.key===ze){if(ze=X.type,ze===A){if(q.tag===7){o(P,q.sibling),re=m(q,X.props.children),re.return=P,P=re;break e}}else if(q.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===V&&Ml(ze)===q.type){o(P,q.sibling),re=m(q,X.props),E0(re,X),re.return=P,P=re;break e}o(P,q);break}else a(P,q);q=q.sibling}X.type===A?(re=bl(X.props.children,P.mode,re,X.key),re.return=P,P=re):(re=os(X.type,X.key,X.props,null,P.mode,re),E0(re,X),re.return=P,P=re)}return S(P);case E:e:{for(ze=X.key;q!==null;){if(q.key===ze)if(q.tag===4&&q.stateNode.containerInfo===X.containerInfo&&q.stateNode.implementation===X.implementation){o(P,q.sibling),re=m(q,X.children||[]),re.return=P,P=re;break e}else{o(P,q);break}else a(P,q);q=q.sibling}re=rf(X,P.mode,re),re.return=P,P=re}return S(P);case V:return X=Ml(X),ut(P,q,X,re)}if(Ce(X))return Ae(P,q,X,re);if(he(X)){if(ze=he(X),typeof ze!="function")throw Error(l(150));return X=ze.call(X),_e(P,q,X,re)}if(typeof X.then=="function")return ut(P,q,ms(X),re);if(X.$$typeof===R)return ut(P,q,cs(P,X),re);ps(P,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,q!==null&&q.tag===6?(o(P,q.sibling),re=m(q,X),re.return=P,P=re):(o(P,q),re=nf(X,P.mode,re),re.return=P,P=re),S(P)):o(P,q)}return function(P,q,X,re){try{M0=0;var ze=ut(P,q,X,re);return pi=null,ze}catch(Te){if(Te===mi||Te===ds)throw Te;var et=On(29,Te,null,P.mode);return et.lanes=re,et.return=P,et}finally{}}}var Tl=g4(!0),y4=g4(!1),Ta=!1;function vf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gf(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ca(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ka(n,a,o){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(rt&2)!==0){var m=u.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),u.pending=a,a=is(n),t4(n,null,o),a}return ls(n,u,a,o),is(n)}function T0(n,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var u=a.lanes;u&=n.pendingLanes,o|=u,a.lanes=o,um(n,o)}}function yf(n,a){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var m=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var S={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};p===null?m=p=S:p=p.next=S,o=o.next}while(o!==null);p===null?m=p=a:p=p.next=a}else m=p=a;o={baseState:u.baseState,firstBaseUpdate:m,lastBaseUpdate:p,shared:u.shared,callbacks:u.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=a:n.next=a,o.lastBaseUpdate=a}var bf=!1;function C0(){if(bf){var n=hi;if(n!==null)throw n}}function k0(n,a,o,u){bf=!1;var m=n.updateQueue;Ta=!1;var p=m.firstBaseUpdate,S=m.lastBaseUpdate,z=m.shared.pending;if(z!==null){m.shared.pending=null;var B=z,K=B.next;B.next=null,S===null?p=K:S.next=K,S=B;var ee=n.alternate;ee!==null&&(ee=ee.updateQueue,z=ee.lastBaseUpdate,z!==S&&(z===null?ee.firstBaseUpdate=K:z.next=K,ee.lastBaseUpdate=B))}if(p!==null){var ae=m.baseState;S=0,ee=K=B=null,z=p;do{var Z=z.lane&-536870913,J=Z!==z.lane;if(J?(Xe&Z)===Z:(u&Z)===Z){Z!==0&&Z===di&&(bf=!0),ee!==null&&(ee=ee.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var Ae=n,_e=z;Z=a;var ut=o;switch(_e.tag){case 1:if(Ae=_e.payload,typeof Ae=="function"){ae=Ae.call(ut,ae,Z);break e}ae=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=_e.payload,Z=typeof Ae=="function"?Ae.call(ut,ae,Z):Ae,Z==null)break e;ae=g({},ae,Z);break e;case 2:Ta=!0}}Z=z.callback,Z!==null&&(n.flags|=64,J&&(n.flags|=8192),J=m.callbacks,J===null?m.callbacks=[Z]:J.push(Z))}else J={lane:Z,tag:z.tag,payload:z.payload,callback:z.callback,next:null},ee===null?(K=ee=J,B=ae):ee=ee.next=J,S|=Z;if(z=z.next,z===null){if(z=m.shared.pending,z===null)break;J=z,z=J.next,J.next=null,m.lastBaseUpdate=J,m.shared.pending=null}}while(!0);ee===null&&(B=ae),m.baseState=B,m.firstBaseUpdate=K,m.lastBaseUpdate=ee,p===null&&(m.shared.lanes=0),Ra|=S,n.lanes=S,n.memoizedState=ae}}function b4(n,a){if(typeof n!="function")throw Error(l(191,n));n.call(a)}function x4(n,a){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)b4(o[n],a)}var vi=j(null),vs=j(0);function w4(n,a){n=ea,le(vs,n),le(vi,a),ea=n|a.baseLanes}function xf(){le(vs,ea),le(vi,vi.current)}function wf(){ea=vs.current,W(vi),W(vs)}var Rn=j(null),Qn=null;function Na(n){var a=n.alternate;le(kt,kt.current&1),le(Rn,n),Qn===null&&(a===null||vi.current!==null||a.memoizedState!==null)&&(Qn=n)}function Sf(n){le(kt,kt.current),le(Rn,n),Qn===null&&(Qn=n)}function S4(n){n.tag===22?(le(kt,kt.current),le(Rn,n),Qn===null&&(Qn=n)):za()}function za(){le(kt,kt.current),le(Rn,Rn.current)}function Ln(n){W(Rn),Qn===n&&(Qn=null),W(kt)}var kt=j(0);function gs(n){for(var a=n;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||kd(o)||Nd(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ir=0,qe=null,ot=null,Rt=null,ys=!1,gi=!1,Cl=!1,bs=0,N0=0,yi=null,ky=0;function Et(){throw Error(l(321))}function Af(n,a){if(a===null)return!1;for(var o=0;o<a.length&&o<n.length;o++)if(!Dn(n[o],a[o]))return!1;return!0}function Mf(n,a,o,u,m,p){return Ir=p,qe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Y.H=n===null||n.memoizedState===null?lp:qf,Cl=!1,p=o(u,m),Cl=!1,gi&&(p=M4(a,o,u,m)),A4(n),p}function A4(n){Y.H=O0;var a=ot!==null&&ot.next!==null;if(Ir=0,Rt=ot=qe=null,ys=!1,N0=0,yi=null,a)throw Error(l(300));n===null||Lt||(n=n.dependencies,n!==null&&us(n)&&(Lt=!0))}function M4(n,a,o,u){qe=n;var m=0;do{if(gi&&(yi=null),N0=0,gi=!1,25<=m)throw Error(l(301));if(m+=1,Rt=ot=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}Y.H=ip,p=a(o,u)}while(gi);return p}function Ny(){var n=Y.H,a=n.useState()[0];return a=typeof a.then=="function"?z0(a):a,n=n.useState()[0],(ot!==null?ot.memoizedState:null)!==n&&(qe.flags|=1024),a}function Ef(){var n=bs!==0;return bs=0,n}function Tf(n,a,o){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~o}function Cf(n){if(ys){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}ys=!1}Ir=0,Rt=ot=qe=null,gi=!1,N0=bs=0,yi=null}function sn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?qe.memoizedState=Rt=n:Rt=Rt.next=n,Rt}function Nt(){if(ot===null){var n=qe.alternate;n=n!==null?n.memoizedState:null}else n=ot.next;var a=Rt===null?qe.memoizedState:Rt.next;if(a!==null)Rt=a,ot=n;else{if(n===null)throw qe.alternate===null?Error(l(467)):Error(l(310));ot=n,n={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},Rt===null?qe.memoizedState=Rt=n:Rt=Rt.next=n}return Rt}function xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function z0(n){var a=N0;return N0+=1,yi===null&&(yi=[]),n=m4(yi,n,a),a=qe,(Rt===null?a.memoizedState:Rt.next)===null&&(a=a.alternate,Y.H=a===null||a.memoizedState===null?lp:qf),n}function ws(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return z0(n);if(n.$$typeof===R)return Wt(n)}throw Error(l(438,String(n)))}function kf(n){var a=null,o=qe.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var u=qe.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=xs(),qe.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(n),u=0;u<n;u++)o[u]=de;return a.index++,o}function Xr(n,a){return typeof a=="function"?a(n):a}function Ss(n){var a=Nt();return Nf(a,ot,n)}function Nf(n,a,o){var u=n.queue;if(u===null)throw Error(l(311));u.lastRenderedReducer=o;var m=n.baseQueue,p=u.pending;if(p!==null){if(m!==null){var S=m.next;m.next=p.next,p.next=S}a.baseQueue=m=p,u.pending=null}if(p=n.baseState,m===null)n.memoizedState=p;else{a=m.next;var z=S=null,B=null,K=a,ee=!1;do{var ae=K.lane&-536870913;if(ae!==K.lane?(Xe&ae)===ae:(Ir&ae)===ae){var Z=K.revertLane;if(Z===0)B!==null&&(B=B.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ae===di&&(ee=!0);else if((Ir&Z)===Z){K=K.next,Z===di&&(ee=!0);continue}else ae={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},B===null?(z=B=ae,S=p):B=B.next=ae,qe.lanes|=Z,Ra|=Z;ae=K.action,Cl&&o(p,ae),p=K.hasEagerState?K.eagerState:o(p,ae)}else Z={lane:ae,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},B===null?(z=B=Z,S=p):B=B.next=Z,qe.lanes|=ae,Ra|=ae;K=K.next}while(K!==null&&K!==a);if(B===null?S=p:B.next=z,!Dn(p,n.memoizedState)&&(Lt=!0,ee&&(o=hi,o!==null)))throw o;n.memoizedState=p,n.baseState=S,n.baseQueue=B,u.lastRenderedState=p}return m===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function zf(n){var a=Nt(),o=a.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=n;var u=o.dispatch,m=o.pending,p=a.memoizedState;if(m!==null){o.pending=null;var S=m=m.next;do p=n(p,S.action),S=S.next;while(S!==m);Dn(p,a.memoizedState)||(Lt=!0),a.memoizedState=p,a.baseQueue===null&&(a.baseState=p),o.lastRenderedState=p}return[p,u]}function E4(n,a,o){var u=qe,m=Nt(),p=Qe;if(p){if(o===void 0)throw Error(l(407));o=o()}else o=a();var S=!Dn((ot||m).memoizedState,o);if(S&&(m.memoizedState=o,Lt=!0),m=m.queue,Rf(k4.bind(null,u,m,n),[n]),m.getSnapshot!==a||S||Rt!==null&&Rt.memoizedState.tag&1){if(u.flags|=2048,bi(9,{destroy:void 0},C4.bind(null,u,m,o,a),null),ft===null)throw Error(l(349));p||(Ir&127)!==0||T4(u,a,o)}return o}function T4(n,a,o){n.flags|=16384,n={getSnapshot:a,value:o},a=qe.updateQueue,a===null?(a=xs(),qe.updateQueue=a,a.stores=[n]):(o=a.stores,o===null?a.stores=[n]:o.push(n))}function C4(n,a,o,u){a.value=o,a.getSnapshot=u,N4(a)&&z4(n)}function k4(n,a,o){return o(function(){N4(a)&&z4(n)})}function N4(n){var a=n.getSnapshot;n=n.value;try{var o=a();return!Dn(n,o)}catch{return!0}}function z4(n){var a=yl(n,2);a!==null&&Sn(a,n,2)}function Df(n){var a=sn();if(typeof n=="function"){var o=n;if(n=o(),Cl){gr(!0);try{o()}finally{gr(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:n},a}function D4(n,a,o,u){return n.baseState=o,Nf(n,ot,typeof u=="function"?u:Xr)}function zy(n,a,o,u,m){if(Es(n))throw Error(l(485));if(n=a.action,n!==null){var p={payload:m,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){p.listeners.push(S)}};Y.T!==null?o(!0):p.isTransition=!1,u(p),o=a.pending,o===null?(p.next=a.pending=p,O4(a,p)):(p.next=o.next,a.pending=o.next=p)}}function O4(n,a){var o=a.action,u=a.payload,m=n.state;if(a.isTransition){var p=Y.T,S={};Y.T=S;try{var z=o(m,u),B=Y.S;B!==null&&B(S,z),R4(n,a,z)}catch(K){Of(n,a,K)}finally{p!==null&&S.types!==null&&(p.types=S.types),Y.T=p}}else try{p=o(m,u),R4(n,a,p)}catch(K){Of(n,a,K)}}function R4(n,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){L4(n,a,u)},function(u){return Of(n,a,u)}):L4(n,a,o)}function L4(n,a,o){a.status="fulfilled",a.value=o,_4(a),n.state=o,a=n.pending,a!==null&&(o=a.next,o===a?n.pending=null:(o=o.next,a.next=o,O4(n,o)))}function Of(n,a,o){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=o,_4(a),a=a.next;while(a!==u)}n.action=null}function _4(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function j4(n,a){return a}function B4(n,a){if(Qe){var o=ft.formState;if(o!==null){e:{var u=qe;if(Qe){if(mt){t:{for(var m=mt,p=Kn;m.nodeType!==8;){if(!p){m=null;break t}if(m=Zn(m.nextSibling),m===null){m=null;break t}}p=m.data,m=p==="F!"||p==="F"?m:null}if(m){mt=Zn(m.nextSibling),u=m.data==="F!";break e}}Ma(u)}u=!1}u&&(a=o[0])}}return o=sn(),o.memoizedState=o.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:j4,lastRenderedState:a},o.queue=u,o=np.bind(null,qe,u),u.dispatch=o,u=Df(!1),p=Hf.bind(null,qe,!1,u.queue),u=sn(),m={state:a,dispatch:null,action:n,pending:null},u.queue=m,o=zy.bind(null,qe,m,p,o),m.dispatch=o,u.memoizedState=n,[a,o,!1]}function H4(n){var a=Nt();return q4(a,ot,n)}function q4(n,a,o){if(a=Nf(n,a,j4)[0],n=Ss(Xr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=z0(a)}catch(S){throw S===mi?ds:S}else u=a;a=Nt();var m=a.queue,p=m.dispatch;return o!==a.memoizedState&&(qe.flags|=2048,bi(9,{destroy:void 0},Dy.bind(null,m,o),null)),[u,p,n]}function Dy(n,a){n.action=a}function U4(n){var a=Nt(),o=ot;if(o!==null)return q4(a,o,n);Nt(),a=a.memoizedState,o=Nt();var u=o.queue.dispatch;return o.memoizedState=n,[a,u,!1]}function bi(n,a,o,u){return n={tag:n,create:o,deps:u,inst:a,next:null},a=qe.updateQueue,a===null&&(a=xs(),qe.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=n.next=n:(u=o.next,o.next=n,n.next=u,a.lastEffect=n),n}function G4(){return Nt().memoizedState}function As(n,a,o,u){var m=sn();qe.flags|=n,m.memoizedState=bi(1|a,{destroy:void 0},o,u===void 0?null:u)}function Ms(n,a,o,u){var m=Nt();u=u===void 0?null:u;var p=m.memoizedState.inst;ot!==null&&u!==null&&Af(u,ot.memoizedState.deps)?m.memoizedState=bi(a,p,o,u):(qe.flags|=n,m.memoizedState=bi(1|a,p,o,u))}function F4(n,a){As(8390656,8,n,a)}function Rf(n,a){Ms(2048,8,n,a)}function Oy(n){qe.flags|=4;var a=qe.updateQueue;if(a===null)a=xs(),qe.updateQueue=a,a.events=[n];else{var o=a.events;o===null?a.events=[n]:o.push(n)}}function Y4(n){var a=Nt().memoizedState;return Oy({ref:a,nextImpl:n}),function(){if((rt&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}function P4(n,a){return Ms(4,2,n,a)}function V4(n,a){return Ms(4,4,n,a)}function I4(n,a){if(typeof a=="function"){n=n();var o=a(n);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function X4(n,a,o){o=o!=null?o.concat([n]):null,Ms(4,4,I4.bind(null,a,n),o)}function Lf(){}function $4(n,a){var o=Nt();a=a===void 0?null:a;var u=o.memoizedState;return a!==null&&Af(a,u[1])?u[0]:(o.memoizedState=[n,a],n)}function K4(n,a){var o=Nt();a=a===void 0?null:a;var u=o.memoizedState;if(a!==null&&Af(a,u[1]))return u[0];if(u=n(),Cl){gr(!0);try{n()}finally{gr(!1)}}return o.memoizedState=[u,a],u}function _f(n,a,o){return o===void 0||(Ir&1073741824)!==0&&(Xe&261930)===0?n.memoizedState=a:(n.memoizedState=o,n=Qp(),qe.lanes|=n,Ra|=n,o)}function Q4(n,a,o,u){return Dn(o,a)?o:vi.current!==null?(n=_f(n,o,u),Dn(n,a)||(Lt=!0),n):(Ir&42)===0||(Ir&1073741824)!==0&&(Xe&261930)===0?(Lt=!0,n.memoizedState=o):(n=Qp(),qe.lanes|=n,Ra|=n,a)}function Z4(n,a,o,u,m){var p=ne.p;ne.p=p!==0&&8>p?p:8;var S=Y.T,z={};Y.T=z,Hf(n,!1,a,o);try{var B=m(),K=Y.S;if(K!==null&&K(z,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var ee=Cy(B,u);D0(n,a,ee,Bn(n))}else D0(n,a,u,Bn(n))}catch(ae){D0(n,a,{then:function(){},status:"rejected",reason:ae},Bn())}finally{ne.p=p,S!==null&&z.types!==null&&(S.types=z.types),Y.T=S}}function Ry(){}function jf(n,a,o,u){if(n.tag!==5)throw Error(l(476));var m=W4(n).queue;Z4(n,m,a,Q,o===null?Ry:function(){return J4(n),o(u)})}function W4(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:Q},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:o},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function J4(n){var a=W4(n);a.next===null&&(a=n.alternate.memoizedState),D0(n,a.next.queue,{},Bn())}function Bf(){return Wt($0)}function ep(){return Nt().memoizedState}function tp(){return Nt().memoizedState}function Ly(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var o=Bn();n=Ca(o);var u=ka(a,n,o);u!==null&&(Sn(u,a,o),T0(u,a,o)),a={cache:df()},n.payload=a;return}a=a.return}}function _y(n,a,o){var u=Bn();o={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Es(n)?rp(a,o):(o=ef(n,a,o,u),o!==null&&(Sn(o,n,u),ap(o,a,u)))}function np(n,a,o){var u=Bn();D0(n,a,o,u)}function D0(n,a,o,u){var m={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Es(n))rp(a,m);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=a.lastRenderedReducer,p!==null))try{var S=a.lastRenderedState,z=p(S,o);if(m.hasEagerState=!0,m.eagerState=z,Dn(z,S))return ls(n,a,m,0),ft===null&&as(),!1}catch{}finally{}if(o=ef(n,a,m,u),o!==null)return Sn(o,n,u),ap(o,a,u),!0}return!1}function Hf(n,a,o,u){if(u={lane:2,revertLane:vd(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Es(n)){if(a)throw Error(l(479))}else a=ef(n,o,u,2),a!==null&&Sn(a,n,2)}function Es(n){var a=n.alternate;return n===qe||a!==null&&a===qe}function rp(n,a){gi=ys=!0;var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}function ap(n,a,o){if((o&4194048)!==0){var u=a.lanes;u&=n.pendingLanes,o|=u,a.lanes=o,um(n,o)}}var O0={readContext:Wt,use:ws,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useLayoutEffect:Et,useInsertionEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useSyncExternalStore:Et,useId:Et,useHostTransitionStatus:Et,useFormState:Et,useActionState:Et,useOptimistic:Et,useMemoCache:Et,useCacheRefresh:Et};O0.useEffectEvent=Et;var lp={readContext:Wt,use:ws,useCallback:function(n,a){return sn().memoizedState=[n,a===void 0?null:a],n},useContext:Wt,useEffect:F4,useImperativeHandle:function(n,a,o){o=o!=null?o.concat([n]):null,As(4194308,4,I4.bind(null,a,n),o)},useLayoutEffect:function(n,a){return As(4194308,4,n,a)},useInsertionEffect:function(n,a){As(4,2,n,a)},useMemo:function(n,a){var o=sn();a=a===void 0?null:a;var u=n();if(Cl){gr(!0);try{n()}finally{gr(!1)}}return o.memoizedState=[u,a],u},useReducer:function(n,a,o){var u=sn();if(o!==void 0){var m=o(a);if(Cl){gr(!0);try{o(a)}finally{gr(!1)}}}else m=a;return u.memoizedState=u.baseState=m,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:m},u.queue=n,n=n.dispatch=_y.bind(null,qe,n),[u.memoizedState,n]},useRef:function(n){var a=sn();return n={current:n},a.memoizedState=n},useState:function(n){n=Df(n);var a=n.queue,o=np.bind(null,qe,a);return a.dispatch=o,[n.memoizedState,o]},useDebugValue:Lf,useDeferredValue:function(n,a){var o=sn();return _f(o,n,a)},useTransition:function(){var n=Df(!1);return n=Z4.bind(null,qe,n.queue,!0,!1),sn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,o){var u=qe,m=sn();if(Qe){if(o===void 0)throw Error(l(407));o=o()}else{if(o=a(),ft===null)throw Error(l(349));(Xe&127)!==0||T4(u,a,o)}m.memoizedState=o;var p={value:o,getSnapshot:a};return m.queue=p,F4(k4.bind(null,u,p,n),[n]),u.flags|=2048,bi(9,{destroy:void 0},C4.bind(null,u,p,o,a),null),o},useId:function(){var n=sn(),a=ft.identifierPrefix;if(Qe){var o=xr,u=br;o=(u&~(1<<32-on(u)-1)).toString(32)+o,a="_"+a+"R_"+o,o=bs++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=ky++,a="_"+a+"r_"+o.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:Bf,useFormState:B4,useActionState:B4,useOptimistic:function(n){var a=sn();a.memoizedState=a.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Hf.bind(null,qe,!0,o),o.dispatch=a,[n,a]},useMemoCache:kf,useCacheRefresh:function(){return sn().memoizedState=Ly.bind(null,qe)},useEffectEvent:function(n){var a=sn(),o={impl:n};return a.memoizedState=o,function(){if((rt&2)!==0)throw Error(l(440));return o.impl.apply(void 0,arguments)}}},qf={readContext:Wt,use:ws,useCallback:$4,useContext:Wt,useEffect:Rf,useImperativeHandle:X4,useInsertionEffect:P4,useLayoutEffect:V4,useMemo:K4,useReducer:Ss,useRef:G4,useState:function(){return Ss(Xr)},useDebugValue:Lf,useDeferredValue:function(n,a){var o=Nt();return Q4(o,ot.memoizedState,n,a)},useTransition:function(){var n=Ss(Xr)[0],a=Nt().memoizedState;return[typeof n=="boolean"?n:z0(n),a]},useSyncExternalStore:E4,useId:ep,useHostTransitionStatus:Bf,useFormState:H4,useActionState:H4,useOptimistic:function(n,a){var o=Nt();return D4(o,ot,n,a)},useMemoCache:kf,useCacheRefresh:tp};qf.useEffectEvent=Y4;var ip={readContext:Wt,use:ws,useCallback:$4,useContext:Wt,useEffect:Rf,useImperativeHandle:X4,useInsertionEffect:P4,useLayoutEffect:V4,useMemo:K4,useReducer:zf,useRef:G4,useState:function(){return zf(Xr)},useDebugValue:Lf,useDeferredValue:function(n,a){var o=Nt();return ot===null?_f(o,n,a):Q4(o,ot.memoizedState,n,a)},useTransition:function(){var n=zf(Xr)[0],a=Nt().memoizedState;return[typeof n=="boolean"?n:z0(n),a]},useSyncExternalStore:E4,useId:ep,useHostTransitionStatus:Bf,useFormState:U4,useActionState:U4,useOptimistic:function(n,a){var o=Nt();return ot!==null?D4(o,ot,n,a):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:kf,useCacheRefresh:tp};ip.useEffectEvent=Y4;function Uf(n,a,o,u){a=n.memoizedState,o=o(u,a),o=o==null?a:g({},a,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Gf={enqueueSetState:function(n,a,o){n=n._reactInternals;var u=Bn(),m=Ca(u);m.payload=a,o!=null&&(m.callback=o),a=ka(n,m,u),a!==null&&(Sn(a,n,u),T0(a,n,u))},enqueueReplaceState:function(n,a,o){n=n._reactInternals;var u=Bn(),m=Ca(u);m.tag=1,m.payload=a,o!=null&&(m.callback=o),a=ka(n,m,u),a!==null&&(Sn(a,n,u),T0(a,n,u))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var o=Bn(),u=Ca(o);u.tag=2,a!=null&&(u.callback=a),a=ka(n,u,o),a!==null&&(Sn(a,n,o),T0(a,n,o))}};function op(n,a,o,u,m,p,S){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,p,S):a.prototype&&a.prototype.isPureReactComponent?!y0(o,u)||!y0(m,p):!0}function sp(n,a,o,u){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,u),a.state!==n&&Gf.enqueueReplaceState(a,a.state,null)}function kl(n,a){var o=a;if("ref"in a){o={};for(var u in a)u!=="ref"&&(o[u]=a[u])}if(n=n.defaultProps){o===a&&(o=g({},o));for(var m in n)o[m]===void 0&&(o[m]=n[m])}return o}function up(n){rs(n)}function cp(n){console.error(n)}function fp(n){rs(n)}function Ts(n,a){try{var o=n.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function dp(n,a,o){try{var u=n.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Ff(n,a,o){return o=Ca(o),o.tag=3,o.payload={element:null},o.callback=function(){Ts(n,a)},o}function hp(n){return n=Ca(n),n.tag=3,n}function mp(n,a,o,u){var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var p=u.value;n.payload=function(){return m(p)},n.callback=function(){dp(a,o,u)}}var S=o.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(n.callback=function(){dp(a,o,u),typeof m!="function"&&(La===null?La=new Set([this]):La.add(this));var z=u.stack;this.componentDidCatch(u.value,{componentStack:z!==null?z:""})})}function jy(n,a,o,u,m){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=o.alternate,a!==null&&fi(a,o,m,!0),o=Rn.current,o!==null){switch(o.tag){case 31:case 13:return Qn===null?Hs():o.alternate===null&&Tt===0&&(Tt=3),o.flags&=-257,o.flags|=65536,o.lanes=m,u===hs?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([u]):a.add(u),hd(n,u,m)),!1;case 22:return o.flags|=65536,u===hs?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([u]):o.add(u)),hd(n,u,m)),!1}throw Error(l(435,o.tag))}return hd(n,u,m),Hs(),!1}if(Qe)return a=Rn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,u!==of&&(n=Error(l(422),{cause:u}),w0(In(n,o)))):(u!==of&&(a=Error(l(423),{cause:u}),w0(In(a,o))),n=n.current.alternate,n.flags|=65536,m&=-m,n.lanes|=m,u=In(u,o),m=Ff(n.stateNode,u,m),yf(n,m),Tt!==4&&(Tt=2)),!1;var p=Error(l(520),{cause:u});if(p=In(p,o),U0===null?U0=[p]:U0.push(p),Tt!==4&&(Tt=2),a===null)return!0;u=In(u,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,n=m&-m,o.lanes|=n,n=Ff(o.stateNode,u,n),yf(o,n),!1;case 1:if(a=o.type,p=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(La===null||!La.has(p))))return o.flags|=65536,m&=-m,o.lanes|=m,m=hp(m),mp(m,n,o,u),yf(o,m),!1}o=o.return}while(o!==null);return!1}var Yf=Error(l(461)),Lt=!1;function Jt(n,a,o,u){a.child=n===null?y4(a,null,o,u):Tl(a,n.child,o,u)}function pp(n,a,o,u,m){o=o.render;var p=a.ref;if("ref"in u){var S={};for(var z in u)z!=="ref"&&(S[z]=u[z])}else S=u;return Sl(a),u=Mf(n,a,o,S,p,m),z=Ef(),n!==null&&!Lt?(Tf(n,a,m),$r(n,a,m)):(Qe&&z&&af(a),a.flags|=1,Jt(n,a,u,m),a.child)}function vp(n,a,o,u,m){if(n===null){var p=o.type;return typeof p=="function"&&!tf(p)&&p.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=p,gp(n,a,p,u,m)):(n=os(o.type,null,u,a,a.mode,m),n.ref=a.ref,n.return=a,a.child=n)}if(p=n.child,!Zf(n,m)){var S=p.memoizedProps;if(o=o.compare,o=o!==null?o:y0,o(S,u)&&n.ref===a.ref)return $r(n,a,m)}return a.flags|=1,n=Fr(p,u),n.ref=a.ref,n.return=a,a.child=n}function gp(n,a,o,u,m){if(n!==null){var p=n.memoizedProps;if(y0(p,u)&&n.ref===a.ref)if(Lt=!1,a.pendingProps=u=p,Zf(n,m))(n.flags&131072)!==0&&(Lt=!0);else return a.lanes=n.lanes,$r(n,a,m)}return Pf(n,a,o,u,m)}function yp(n,a,o,u){var m=u.children,p=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((a.flags&128)!==0){if(p=p!==null?p.baseLanes|o:o,n!==null){for(u=a.child=n.child,m=0;u!==null;)m=m|u.lanes|u.childLanes,u=u.sibling;u=m&~p}else u=0,a.child=null;return bp(n,a,p,o,u)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&fs(a,p!==null?p.cachePool:null),p!==null?w4(a,p):xf(),S4(a);else return u=a.lanes=536870912,bp(n,a,p!==null?p.baseLanes|o:o,o,u)}else p!==null?(fs(a,p.cachePool),w4(a,p),za(),a.memoizedState=null):(n!==null&&fs(a,null),xf(),za());return Jt(n,a,m,o),a.child}function R0(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function bp(n,a,o,u,m){var p=mf();return p=p===null?null:{parent:Ot._currentValue,pool:p},a.memoizedState={baseLanes:o,cachePool:p},n!==null&&fs(a,null),xf(),S4(a),n!==null&&fi(n,a,u,!0),a.childLanes=m,null}function Cs(n,a){return a=Ns({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function xp(n,a,o){return Tl(a,n.child,null,o),n=Cs(a,a.pendingProps),n.flags|=2,Ln(a),a.memoizedState=null,n}function By(n,a,o){var u=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(Qe){if(u.mode==="hidden")return n=Cs(a,u),a.lanes=536870912,R0(null,n);if(Sf(a),(n=mt)?(n=O2(n,Kn),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Sa!==null?{id:br,overflow:xr}:null,retryLane:536870912,hydrationErrors:null},o=r4(n),o.return=a,a.child=o,Zt=a,mt=null)):n=null,n===null)throw Ma(a);return a.lanes=536870912,null}return Cs(a,u)}var p=n.memoizedState;if(p!==null){var S=p.dehydrated;if(Sf(a),m)if(a.flags&256)a.flags&=-257,a=xp(n,a,o);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(l(558));else if(Lt||fi(n,a,o,!1),m=(o&n.childLanes)!==0,Lt||m){if(u=ft,u!==null&&(S=cm(u,o),S!==0&&S!==p.retryLane))throw p.retryLane=S,yl(n,S),Sn(u,n,S),Yf;Hs(),a=xp(n,a,o)}else n=p.treeContext,mt=Zn(S.nextSibling),Zt=a,Qe=!0,Aa=null,Kn=!1,n!==null&&i4(a,n),a=Cs(a,u),a.flags|=4096;return a}return n=Fr(n.child,{mode:u.mode,children:u.children}),n.ref=a.ref,a.child=n,n.return=a,n}function ks(n,a){var o=a.ref;if(o===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(l(284));(n===null||n.ref!==o)&&(a.flags|=4194816)}}function Pf(n,a,o,u,m){return Sl(a),o=Mf(n,a,o,u,void 0,m),u=Ef(),n!==null&&!Lt?(Tf(n,a,m),$r(n,a,m)):(Qe&&u&&af(a),a.flags|=1,Jt(n,a,o,m),a.child)}function wp(n,a,o,u,m,p){return Sl(a),a.updateQueue=null,o=M4(a,u,o,m),A4(n),u=Ef(),n!==null&&!Lt?(Tf(n,a,p),$r(n,a,p)):(Qe&&u&&af(a),a.flags|=1,Jt(n,a,o,p),a.child)}function Sp(n,a,o,u,m){if(Sl(a),a.stateNode===null){var p=oi,S=o.contextType;typeof S=="object"&&S!==null&&(p=Wt(S)),p=new o(u,p),a.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Gf,a.stateNode=p,p._reactInternals=a,p=a.stateNode,p.props=u,p.state=a.memoizedState,p.refs={},vf(a),S=o.contextType,p.context=typeof S=="object"&&S!==null?Wt(S):oi,p.state=a.memoizedState,S=o.getDerivedStateFromProps,typeof S=="function"&&(Uf(a,o,S,u),p.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(S=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),S!==p.state&&Gf.enqueueReplaceState(p,p.state,null),k0(a,u,p,m),C0(),p.state=a.memoizedState),typeof p.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(n===null){p=a.stateNode;var z=a.memoizedProps,B=kl(o,z);p.props=B;var K=p.context,ee=o.contextType;S=oi,typeof ee=="object"&&ee!==null&&(S=Wt(ee));var ae=o.getDerivedStateFromProps;ee=typeof ae=="function"||typeof p.getSnapshotBeforeUpdate=="function",z=a.pendingProps!==z,ee||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(z||K!==S)&&sp(a,p,u,S),Ta=!1;var Z=a.memoizedState;p.state=Z,k0(a,u,p,m),C0(),K=a.memoizedState,z||Z!==K||Ta?(typeof ae=="function"&&(Uf(a,o,ae,u),K=a.memoizedState),(B=Ta||op(a,o,B,u,Z,K,S))?(ee||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(a.flags|=4194308)):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=K),p.props=u,p.state=K,p.context=S,u=B):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{p=a.stateNode,gf(n,a),S=a.memoizedProps,ee=kl(o,S),p.props=ee,ae=a.pendingProps,Z=p.context,K=o.contextType,B=oi,typeof K=="object"&&K!==null&&(B=Wt(K)),z=o.getDerivedStateFromProps,(K=typeof z=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==ae||Z!==B)&&sp(a,p,u,B),Ta=!1,Z=a.memoizedState,p.state=Z,k0(a,u,p,m),C0();var J=a.memoizedState;S!==ae||Z!==J||Ta||n!==null&&n.dependencies!==null&&us(n.dependencies)?(typeof z=="function"&&(Uf(a,o,z,u),J=a.memoizedState),(ee=Ta||op(a,o,ee,u,Z,J,B)||n!==null&&n.dependencies!==null&&us(n.dependencies))?(K||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,J,B),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,J,B)),typeof p.componentDidUpdate=="function"&&(a.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof p.componentDidUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=J),p.props=u,p.state=J,p.context=B,u=ee):(typeof p.componentDidUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(a.flags|=1024),u=!1)}return p=u,ks(n,a),u=(a.flags&128)!==0,p||u?(p=a.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:p.render(),a.flags|=1,n!==null&&u?(a.child=Tl(a,n.child,null,m),a.child=Tl(a,null,o,m)):Jt(n,a,o,m),a.memoizedState=p.state,n=a.child):n=$r(n,a,m),n}function Ap(n,a,o,u){return xl(),a.flags|=256,Jt(n,a,o,u),a.child}var Vf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function If(n){return{baseLanes:n,cachePool:d4()}}function Xf(n,a,o){return n=n!==null?n.childLanes&~o:0,a&&(n|=jn),n}function Mp(n,a,o){var u=a.pendingProps,m=!1,p=(a.flags&128)!==0,S;if((S=p)||(S=n!==null&&n.memoizedState===null?!1:(kt.current&2)!==0),S&&(m=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,n===null){if(Qe){if(m?Na(a):za(),(n=mt)?(n=O2(n,Kn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Sa!==null?{id:br,overflow:xr}:null,retryLane:536870912,hydrationErrors:null},o=r4(n),o.return=a,a.child=o,Zt=a,mt=null)):n=null,n===null)throw Ma(a);return Nd(n)?a.lanes=32:a.lanes=536870912,null}var z=u.children;return u=u.fallback,m?(za(),m=a.mode,z=Ns({mode:"hidden",children:z},m),u=bl(u,m,o,null),z.return=a,u.return=a,z.sibling=u,a.child=z,u=a.child,u.memoizedState=If(o),u.childLanes=Xf(n,S,o),a.memoizedState=Vf,R0(null,u)):(Na(a),$f(a,z))}var B=n.memoizedState;if(B!==null&&(z=B.dehydrated,z!==null)){if(p)a.flags&256?(Na(a),a.flags&=-257,a=Kf(n,a,o)):a.memoizedState!==null?(za(),a.child=n.child,a.flags|=128,a=null):(za(),z=u.fallback,m=a.mode,u=Ns({mode:"visible",children:u.children},m),z=bl(z,m,o,null),z.flags|=2,u.return=a,z.return=a,u.sibling=z,a.child=u,Tl(a,n.child,null,o),u=a.child,u.memoizedState=If(o),u.childLanes=Xf(n,S,o),a.memoizedState=Vf,a=R0(null,u));else if(Na(a),Nd(z)){if(S=z.nextSibling&&z.nextSibling.dataset,S)var K=S.dgst;S=K,u=Error(l(419)),u.stack="",u.digest=S,w0({value:u,source:null,stack:null}),a=Kf(n,a,o)}else if(Lt||fi(n,a,o,!1),S=(o&n.childLanes)!==0,Lt||S){if(S=ft,S!==null&&(u=cm(S,o),u!==0&&u!==B.retryLane))throw B.retryLane=u,yl(n,u),Sn(S,n,u),Yf;kd(z)||Hs(),a=Kf(n,a,o)}else kd(z)?(a.flags|=192,a.child=n.child,a=null):(n=B.treeContext,mt=Zn(z.nextSibling),Zt=a,Qe=!0,Aa=null,Kn=!1,n!==null&&i4(a,n),a=$f(a,u.children),a.flags|=4096);return a}return m?(za(),z=u.fallback,m=a.mode,B=n.child,K=B.sibling,u=Fr(B,{mode:"hidden",children:u.children}),u.subtreeFlags=B.subtreeFlags&65011712,K!==null?z=Fr(K,z):(z=bl(z,m,o,null),z.flags|=2),z.return=a,u.return=a,u.sibling=z,a.child=u,R0(null,u),u=a.child,z=n.child.memoizedState,z===null?z=If(o):(m=z.cachePool,m!==null?(B=Ot._currentValue,m=m.parent!==B?{parent:B,pool:B}:m):m=d4(),z={baseLanes:z.baseLanes|o,cachePool:m}),u.memoizedState=z,u.childLanes=Xf(n,S,o),a.memoizedState=Vf,R0(n.child,u)):(Na(a),o=n.child,n=o.sibling,o=Fr(o,{mode:"visible",children:u.children}),o.return=a,o.sibling=null,n!==null&&(S=a.deletions,S===null?(a.deletions=[n],a.flags|=16):S.push(n)),a.child=o,a.memoizedState=null,o)}function $f(n,a){return a=Ns({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Ns(n,a){return n=On(22,n,null,a),n.lanes=0,n}function Kf(n,a,o){return Tl(a,n.child,null,o),n=$f(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function Ep(n,a,o){n.lanes|=a;var u=n.alternate;u!==null&&(u.lanes|=a),cf(n.return,a,o)}function Qf(n,a,o,u,m,p){var S=n.memoizedState;S===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:m,treeForkCount:p}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=u,S.tail=o,S.tailMode=m,S.treeForkCount=p)}function Tp(n,a,o){var u=a.pendingProps,m=u.revealOrder,p=u.tail;u=u.children;var S=kt.current,z=(S&2)!==0;if(z?(S=S&1|2,a.flags|=128):S&=1,le(kt,S),Jt(n,a,u,o),u=Qe?x0:0,!z&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Ep(n,o,a);else if(n.tag===19)Ep(n,o,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(m){case"forwards":for(o=a.child,m=null;o!==null;)n=o.alternate,n!==null&&gs(n)===null&&(m=o),o=o.sibling;o=m,o===null?(m=a.child,a.child=null):(m=o.sibling,o.sibling=null),Qf(a,!1,m,o,p,u);break;case"backwards":case"unstable_legacy-backwards":for(o=null,m=a.child,a.child=null;m!==null;){if(n=m.alternate,n!==null&&gs(n)===null){a.child=m;break}n=m.sibling,m.sibling=o,o=m,m=n}Qf(a,!0,o,null,p,u);break;case"together":Qf(a,!1,null,null,void 0,u);break;default:a.memoizedState=null}return a.child}function $r(n,a,o){if(n!==null&&(a.dependencies=n.dependencies),Ra|=a.lanes,(o&a.childLanes)===0)if(n!==null){if(fi(n,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(l(153));if(a.child!==null){for(n=a.child,o=Fr(n,n.pendingProps),a.child=o,o.return=a;n.sibling!==null;)n=n.sibling,o=o.sibling=Fr(n,n.pendingProps),o.return=a;o.sibling=null}return a.child}function Zf(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&us(n)))}function Hy(n,a,o){switch(a.tag){case 3:Be(a,a.stateNode.containerInfo),Ea(a,Ot,n.memoizedState.cache),xl();break;case 27:case 5:Ze(a);break;case 4:Be(a,a.stateNode.containerInfo);break;case 10:Ea(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Sf(a),null;break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(Na(a),a.flags|=128,null):(o&a.child.childLanes)!==0?Mp(n,a,o):(Na(a),n=$r(n,a,o),n!==null?n.sibling:null);Na(a);break;case 19:var m=(n.flags&128)!==0;if(u=(o&a.childLanes)!==0,u||(fi(n,a,o,!1),u=(o&a.childLanes)!==0),m){if(u)return Tp(n,a,o);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),le(kt,kt.current),u)break;return null;case 22:return a.lanes=0,yp(n,a,o,a.pendingProps);case 24:Ea(a,Ot,n.memoizedState.cache)}return $r(n,a,o)}function Cp(n,a,o){if(n!==null)if(n.memoizedProps!==a.pendingProps)Lt=!0;else{if(!Zf(n,o)&&(a.flags&128)===0)return Lt=!1,Hy(n,a,o);Lt=(n.flags&131072)!==0}else Lt=!1,Qe&&(a.flags&1048576)!==0&&l4(a,x0,a.index);switch(a.lanes=0,a.tag){case 16:e:{var u=a.pendingProps;if(n=Ml(a.elementType),a.type=n,typeof n=="function")tf(n)?(u=kl(n,u),a.tag=1,a=Sp(null,a,n,u,o)):(a.tag=0,a=Pf(null,a,n,u,o));else{if(n!=null){var m=n.$$typeof;if(m===H){a.tag=11,a=pp(null,a,n,u,o);break e}else if(m===G){a.tag=14,a=vp(null,a,n,u,o);break e}}throw a=we(n)||n,Error(l(306,a,""))}}return a;case 0:return Pf(n,a,a.type,a.pendingProps,o);case 1:return u=a.type,m=kl(u,a.pendingProps),Sp(n,a,u,m,o);case 3:e:{if(Be(a,a.stateNode.containerInfo),n===null)throw Error(l(387));u=a.pendingProps;var p=a.memoizedState;m=p.element,gf(n,a),k0(a,u,null,o);var S=a.memoizedState;if(u=S.cache,Ea(a,Ot,u),u!==p.cache&&ff(a,[Ot],o,!0),C0(),u=S.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=p,a.memoizedState=p,a.flags&256){a=Ap(n,a,u,o);break e}else if(u!==m){m=In(Error(l(424)),a),w0(m),a=Ap(n,a,u,o);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(mt=Zn(n.firstChild),Zt=a,Qe=!0,Aa=null,Kn=!0,o=y4(a,null,u,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(xl(),u===m){a=$r(n,a,o);break e}Jt(n,a,u,o)}a=a.child}return a;case 26:return ks(n,a),n===null?(o=H2(a.type,null,a.pendingProps,null))?a.memoizedState=o:Qe||(o=a.type,n=a.pendingProps,u=Vs(ke.current).createElement(o),u[Qt]=a,u[vn]=n,en(u,o,n),Vt(u),a.stateNode=u):a.memoizedState=H2(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Ze(a),n===null&&Qe&&(u=a.stateNode=_2(a.type,a.pendingProps,ke.current),Zt=a,Kn=!0,m=mt,Ha(a.type)?(zd=m,mt=Zn(u.firstChild)):mt=m),Jt(n,a,a.pendingProps.children,o),ks(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Qe&&((m=u=mt)&&(u=m9(u,a.type,a.pendingProps,Kn),u!==null?(a.stateNode=u,Zt=a,mt=Zn(u.firstChild),Kn=!1,m=!0):m=!1),m||Ma(a)),Ze(a),m=a.type,p=a.pendingProps,S=n!==null?n.memoizedProps:null,u=p.children,Ed(m,p)?u=null:S!==null&&Ed(m,S)&&(a.flags|=32),a.memoizedState!==null&&(m=Mf(n,a,Ny,null,null,o),$0._currentValue=m),ks(n,a),Jt(n,a,u,o),a.child;case 6:return n===null&&Qe&&((n=o=mt)&&(o=p9(o,a.pendingProps,Kn),o!==null?(a.stateNode=o,Zt=a,mt=null,n=!0):n=!1),n||Ma(a)),null;case 13:return Mp(n,a,o);case 4:return Be(a,a.stateNode.containerInfo),u=a.pendingProps,n===null?a.child=Tl(a,null,u,o):Jt(n,a,u,o),a.child;case 11:return pp(n,a,a.type,a.pendingProps,o);case 7:return Jt(n,a,a.pendingProps,o),a.child;case 8:return Jt(n,a,a.pendingProps.children,o),a.child;case 12:return Jt(n,a,a.pendingProps.children,o),a.child;case 10:return u=a.pendingProps,Ea(a,a.type,u.value),Jt(n,a,u.children,o),a.child;case 9:return m=a.type._context,u=a.pendingProps.children,Sl(a),m=Wt(m),u=u(m),a.flags|=1,Jt(n,a,u,o),a.child;case 14:return vp(n,a,a.type,a.pendingProps,o);case 15:return gp(n,a,a.type,a.pendingProps,o);case 19:return Tp(n,a,o);case 31:return By(n,a,o);case 22:return yp(n,a,o,a.pendingProps);case 24:return Sl(a),u=Wt(Ot),n===null?(m=mf(),m===null&&(m=ft,p=df(),m.pooledCache=p,p.refCount++,p!==null&&(m.pooledCacheLanes|=o),m=p),a.memoizedState={parent:u,cache:m},vf(a),Ea(a,Ot,m)):((n.lanes&o)!==0&&(gf(n,a),k0(a,null,null,o),C0()),m=n.memoizedState,p=a.memoizedState,m.parent!==u?(m={parent:u,cache:u},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),Ea(a,Ot,u)):(u=p.cache,Ea(a,Ot,u),u!==m.cache&&ff(a,[Ot],o,!0))),Jt(n,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(l(156,a.tag))}function Kr(n){n.flags|=4}function Wf(n,a,o,u,m){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(m&335544128)===m)if(n.stateNode.complete)n.flags|=8192;else if(e2())n.flags|=8192;else throw El=hs,pf}else n.flags&=-16777217}function kp(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Y2(a))if(e2())n.flags|=8192;else throw El=hs,pf}function zs(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Io():536870912,n.lanes|=a,Ai|=a)}function L0(n,a){if(!Qe)switch(n.tailMode){case"hidden":a=n.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function pt(n){var a=n.alternate!==null&&n.alternate.child===n.child,o=0,u=0;if(a)for(var m=n.child;m!==null;)o|=m.lanes|m.childLanes,u|=m.subtreeFlags&65011712,u|=m.flags&65011712,m.return=n,m=m.sibling;else for(m=n.child;m!==null;)o|=m.lanes|m.childLanes,u|=m.subtreeFlags,u|=m.flags,m.return=n,m=m.sibling;return n.subtreeFlags|=u,n.childLanes=o,a}function qy(n,a,o){var u=a.pendingProps;switch(lf(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(a),null;case 1:return pt(a),null;case 3:return o=a.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Vr(Ot),Oe(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(ci(a)?Kr(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,sf())),pt(a),null;case 26:var m=a.type,p=a.memoizedState;return n===null?(Kr(a),p!==null?(pt(a),kp(a,p)):(pt(a),Wf(a,m,null,u,o))):p?p!==n.memoizedState?(Kr(a),pt(a),kp(a,p)):(pt(a),a.flags&=-16777217):(n=n.memoizedProps,n!==u&&Kr(a),pt(a),Wf(a,m,n,u,o)),null;case 27:if(Ye(a),o=ke.current,m=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==u&&Kr(a);else{if(!u){if(a.stateNode===null)throw Error(l(166));return pt(a),null}n=se.current,ci(a)?o4(a):(n=_2(m,u,o),a.stateNode=n,Kr(a))}return pt(a),null;case 5:if(Ye(a),m=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==u&&Kr(a);else{if(!u){if(a.stateNode===null)throw Error(l(166));return pt(a),null}if(p=se.current,ci(a))o4(a);else{var S=Vs(ke.current);switch(p){case 1:p=S.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:p=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":p=S.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":p=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":p=S.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof u.is=="string"?S.createElement("select",{is:u.is}):S.createElement("select"),u.multiple?p.multiple=!0:u.size&&(p.size=u.size);break;default:p=typeof u.is=="string"?S.createElement(m,{is:u.is}):S.createElement(m)}}p[Qt]=a,p[vn]=u;e:for(S=a.child;S!==null;){if(S.tag===5||S.tag===6)p.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===a)break e;for(;S.sibling===null;){if(S.return===null||S.return===a)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}a.stateNode=p;e:switch(en(p,m,u),m){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Kr(a)}}return pt(a),Wf(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,o),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==u&&Kr(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(l(166));if(n=ke.current,ci(a)){if(n=a.stateNode,o=a.memoizedProps,u=null,m=Zt,m!==null)switch(m.tag){case 27:case 5:u=m.memoizedProps}n[Qt]=a,n=!!(n.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||M2(n.nodeValue,o)),n||Ma(a,!0)}else n=Vs(n).createTextNode(u),n[Qt]=a,a.stateNode=n}return pt(a),null;case 31:if(o=a.memoizedState,n===null||n.memoizedState!==null){if(u=ci(a),o!==null){if(n===null){if(!u)throw Error(l(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(l(557));n[Qt]=a}else xl(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pt(a),n=!1}else o=sf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return a.flags&256?(Ln(a),a):(Ln(a),null);if((a.flags&128)!==0)throw Error(l(558))}return pt(a),null;case 13:if(u=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(m=ci(a),u!==null&&u.dehydrated!==null){if(n===null){if(!m)throw Error(l(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(l(317));m[Qt]=a}else xl(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pt(a),m=!1}else m=sf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(Ln(a),a):(Ln(a),null)}return Ln(a),(a.flags&128)!==0?(a.lanes=o,a):(o=u!==null,n=n!==null&&n.memoizedState!==null,o&&(u=a.child,m=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(m=u.alternate.memoizedState.cachePool.pool),p=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==m&&(u.flags|=2048)),o!==n&&o&&(a.child.flags|=8192),zs(a,a.updateQueue),pt(a),null);case 4:return Oe(),n===null&&xd(a.stateNode.containerInfo),pt(a),null;case 10:return Vr(a.type),pt(a),null;case 19:if(W(kt),u=a.memoizedState,u===null)return pt(a),null;if(m=(a.flags&128)!==0,p=u.rendering,p===null)if(m)L0(u,!1);else{if(Tt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(p=gs(n),p!==null){for(a.flags|=128,L0(u,!1),n=p.updateQueue,a.updateQueue=n,zs(a,n),a.subtreeFlags=0,n=o,o=a.child;o!==null;)n4(o,n),o=o.sibling;return le(kt,kt.current&1|2),Qe&&Yr(a,u.treeForkCount),a.child}n=n.sibling}u.tail!==null&&tn()>_s&&(a.flags|=128,m=!0,L0(u,!1),a.lanes=4194304)}else{if(!m)if(n=gs(p),n!==null){if(a.flags|=128,m=!0,n=n.updateQueue,a.updateQueue=n,zs(a,n),L0(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!Qe)return pt(a),null}else 2*tn()-u.renderingStartTime>_s&&o!==536870912&&(a.flags|=128,m=!0,L0(u,!1),a.lanes=4194304);u.isBackwards?(p.sibling=a.child,a.child=p):(n=u.last,n!==null?n.sibling=p:a.child=p,u.last=p)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=tn(),n.sibling=null,o=kt.current,le(kt,m?o&1|2:o&1),Qe&&Yr(a,u.treeForkCount),n):(pt(a),null);case 22:case 23:return Ln(a),wf(),u=a.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(o&536870912)!==0&&(a.flags&128)===0&&(pt(a),a.subtreeFlags&6&&(a.flags|=8192)):pt(a),o=a.updateQueue,o!==null&&zs(a,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048),n!==null&&W(Al),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Vr(Ot),pt(a),null;case 25:return null;case 30:return null}throw Error(l(156,a.tag))}function Uy(n,a){switch(lf(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Vr(Ot),Oe(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Ye(a),null;case 31:if(a.memoizedState!==null){if(Ln(a),a.alternate===null)throw Error(l(340));xl()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(Ln(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(l(340));xl()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return W(kt),null;case 4:return Oe(),null;case 10:return Vr(a.type),null;case 22:case 23:return Ln(a),wf(),n!==null&&W(Al),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Vr(Ot),null;case 25:return null;default:return null}}function Np(n,a){switch(lf(a),a.tag){case 3:Vr(Ot),Oe();break;case 26:case 27:case 5:Ye(a);break;case 4:Oe();break;case 31:a.memoizedState!==null&&Ln(a);break;case 13:Ln(a);break;case 19:W(kt);break;case 10:Vr(a.type);break;case 22:case 23:Ln(a),wf(),n!==null&&W(Al);break;case 24:Vr(Ot)}}function _0(n,a){try{var o=a.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var m=u.next;o=m;do{if((o.tag&n)===n){u=void 0;var p=o.create,S=o.inst;u=p(),S.destroy=u}o=o.next}while(o!==m)}}catch(z){lt(a,a.return,z)}}function Da(n,a,o){try{var u=a.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var p=m.next;u=p;do{if((u.tag&n)===n){var S=u.inst,z=S.destroy;if(z!==void 0){S.destroy=void 0,m=a;var B=o,K=z;try{K()}catch(ee){lt(m,B,ee)}}}u=u.next}while(u!==p)}}catch(ee){lt(a,a.return,ee)}}function zp(n){var a=n.updateQueue;if(a!==null){var o=n.stateNode;try{x4(a,o)}catch(u){lt(n,n.return,u)}}}function Dp(n,a,o){o.props=kl(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(u){lt(n,a,u)}}function j0(n,a){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof o=="function"?n.refCleanup=o(u):o.current=u}}catch(m){lt(n,a,m)}}function wr(n,a){var o=n.ref,u=n.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(m){lt(n,a,m)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(m){lt(n,a,m)}else o.current=null}function Op(n){var a=n.type,o=n.memoizedProps,u=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(m){lt(n,n.return,m)}}function Jf(n,a,o){try{var u=n.stateNode;s9(u,n.type,o,a),u[vn]=a}catch(m){lt(n,n.return,m)}}function Rp(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ha(n.type)||n.tag===4}function ed(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Rp(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ha(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function td(n,a,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(n),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=Ur));else if(u!==4&&(u===27&&Ha(n.type)&&(o=n.stateNode,a=null),n=n.child,n!==null))for(td(n,a,o),n=n.sibling;n!==null;)td(n,a,o),n=n.sibling}function Ds(n,a,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,a?o.insertBefore(n,a):o.appendChild(n);else if(u!==4&&(u===27&&Ha(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(Ds(n,a,o),n=n.sibling;n!==null;)Ds(n,a,o),n=n.sibling}function Lp(n){var a=n.stateNode,o=n.memoizedProps;try{for(var u=n.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);en(a,u,o),a[Qt]=n,a[vn]=o}catch(p){lt(n,n.return,p)}}var Qr=!1,_t=!1,nd=!1,_p=typeof WeakSet=="function"?WeakSet:Set,It=null;function Gy(n,a){if(n=n.containerInfo,Ad=Ws,n=Xm(n),$c(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var m=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var S=0,z=-1,B=-1,K=0,ee=0,ae=n,Z=null;t:for(;;){for(var J;ae!==o||m!==0&&ae.nodeType!==3||(z=S+m),ae!==p||u!==0&&ae.nodeType!==3||(B=S+u),ae.nodeType===3&&(S+=ae.nodeValue.length),(J=ae.firstChild)!==null;)Z=ae,ae=J;for(;;){if(ae===n)break t;if(Z===o&&++K===m&&(z=S),Z===p&&++ee===u&&(B=S),(J=ae.nextSibling)!==null)break;ae=Z,Z=ae.parentNode}ae=J}o=z===-1||B===-1?null:{start:z,end:B}}else o=null}o=o||{start:0,end:0}}else o=null;for(Md={focusedElem:n,selectionRange:o},Ws=!1,It=a;It!==null;)if(a=It,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,It=n;else for(;It!==null;){switch(a=It,p=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o<n.length;o++)m=n[o],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,o=a,m=p.memoizedProps,p=p.memoizedState,u=o.stateNode;try{var Ae=kl(o.type,m);n=u.getSnapshotBeforeUpdate(Ae,p),u.__reactInternalSnapshotBeforeUpdate=n}catch(_e){lt(o,o.return,_e)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,o=n.nodeType,o===9)Cd(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Cd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(l(163))}if(n=a.sibling,n!==null){n.return=a.return,It=n;break}It=a.return}}function jp(n,a,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:Wr(n,o),u&4&&_0(5,o);break;case 1:if(Wr(n,o),u&4)if(n=o.stateNode,a===null)try{n.componentDidMount()}catch(S){lt(o,o.return,S)}else{var m=kl(o.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(m,a,n.__reactInternalSnapshotBeforeUpdate)}catch(S){lt(o,o.return,S)}}u&64&&zp(o),u&512&&j0(o,o.return);break;case 3:if(Wr(n,o),u&64&&(n=o.updateQueue,n!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{x4(n,a)}catch(S){lt(o,o.return,S)}}break;case 27:a===null&&u&4&&Lp(o);case 26:case 5:Wr(n,o),a===null&&u&4&&Op(o),u&512&&j0(o,o.return);break;case 12:Wr(n,o);break;case 31:Wr(n,o),u&4&&qp(n,o);break;case 13:Wr(n,o),u&4&&Up(n,o),u&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=Qy.bind(null,o),v9(n,o))));break;case 22:if(u=o.memoizedState!==null||Qr,!u){a=a!==null&&a.memoizedState!==null||_t,m=Qr;var p=_t;Qr=u,(_t=a)&&!p?Jr(n,o,(o.subtreeFlags&8772)!==0):Wr(n,o),Qr=m,_t=p}break;case 30:break;default:Wr(n,o)}}function Bp(n){var a=n.alternate;a!==null&&(n.alternate=null,Bp(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&Dc(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var yt=null,yn=!1;function Zr(n,a,o){for(o=o.child;o!==null;)Hp(n,a,o),o=o.sibling}function Hp(n,a,o){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(vr,o)}catch{}switch(o.tag){case 26:_t||wr(o,a),Zr(n,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:_t||wr(o,a);var u=yt,m=yn;Ha(o.type)&&(yt=o.stateNode,yn=!1),Zr(n,a,o),V0(o.stateNode),yt=u,yn=m;break;case 5:_t||wr(o,a);case 6:if(u=yt,m=yn,yt=null,Zr(n,a,o),yt=u,yn=m,yt!==null)if(yn)try{(yt.nodeType===9?yt.body:yt.nodeName==="HTML"?yt.ownerDocument.body:yt).removeChild(o.stateNode)}catch(p){lt(o,a,p)}else try{yt.removeChild(o.stateNode)}catch(p){lt(o,a,p)}break;case 18:yt!==null&&(yn?(n=yt,z2(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),Di(n)):z2(yt,o.stateNode));break;case 4:u=yt,m=yn,yt=o.stateNode.containerInfo,yn=!0,Zr(n,a,o),yt=u,yn=m;break;case 0:case 11:case 14:case 15:Da(2,o,a),_t||Da(4,o,a),Zr(n,a,o);break;case 1:_t||(wr(o,a),u=o.stateNode,typeof u.componentWillUnmount=="function"&&Dp(o,a,u)),Zr(n,a,o);break;case 21:Zr(n,a,o);break;case 22:_t=(u=_t)||o.memoizedState!==null,Zr(n,a,o),_t=u;break;default:Zr(n,a,o)}}function qp(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Di(n)}catch(o){lt(a,a.return,o)}}}function Up(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Di(n)}catch(o){lt(a,a.return,o)}}function Fy(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new _p),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new _p),a;default:throw Error(l(435,n.tag))}}function Os(n,a){var o=Fy(n);a.forEach(function(u){if(!o.has(u)){o.add(u);var m=Zy.bind(null,n,u);u.then(m,m)}})}function bn(n,a){var o=a.deletions;if(o!==null)for(var u=0;u<o.length;u++){var m=o[u],p=n,S=a,z=S;e:for(;z!==null;){switch(z.tag){case 27:if(Ha(z.type)){yt=z.stateNode,yn=!1;break e}break;case 5:yt=z.stateNode,yn=!1;break e;case 3:case 4:yt=z.stateNode.containerInfo,yn=!0;break e}z=z.return}if(yt===null)throw Error(l(160));Hp(p,S,m),yt=null,yn=!1,p=m.alternate,p!==null&&(p.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Gp(a,n),a=a.sibling}var sr=null;function Gp(n,a){var o=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:bn(a,n),xn(n),u&4&&(Da(3,n,n.return),_0(3,n),Da(5,n,n.return));break;case 1:bn(a,n),xn(n),u&512&&(_t||o===null||wr(o,o.return)),u&64&&Qr&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var m=sr;if(bn(a,n),xn(n),u&512&&(_t||o===null||wr(o,o.return)),u&4){var p=o!==null?o.memoizedState:null;if(u=n.memoizedState,o===null)if(u===null)if(n.stateNode===null){e:{u=n.type,o=n.memoizedProps,m=m.ownerDocument||m;t:switch(u){case"title":p=m.getElementsByTagName("title")[0],(!p||p[u0]||p[Qt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=m.createElement(u),m.head.insertBefore(p,m.querySelector("head > title"))),en(p,u,o),p[Qt]=n,Vt(p),u=p;break e;case"link":var S=G2("link","href",m).get(u+(o.href||""));if(S){for(var z=0;z<S.length;z++)if(p=S[z],p.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&p.getAttribute("rel")===(o.rel==null?null:o.rel)&&p.getAttribute("title")===(o.title==null?null:o.title)&&p.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){S.splice(z,1);break t}}p=m.createElement(u),en(p,u,o),m.head.appendChild(p);break;case"meta":if(S=G2("meta","content",m).get(u+(o.content||""))){for(z=0;z<S.length;z++)if(p=S[z],p.getAttribute("content")===(o.content==null?null:""+o.content)&&p.getAttribute("name")===(o.name==null?null:o.name)&&p.getAttribute("property")===(o.property==null?null:o.property)&&p.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&p.getAttribute("charset")===(o.charSet==null?null:o.charSet)){S.splice(z,1);break t}}p=m.createElement(u),en(p,u,o),m.head.appendChild(p);break;default:throw Error(l(468,u))}p[Qt]=n,Vt(p),u=p}n.stateNode=u}else F2(m,n.type,n.stateNode);else n.stateNode=U2(m,u,n.memoizedProps);else p!==u?(p===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):p.count--,u===null?F2(m,n.type,n.stateNode):U2(m,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Jf(n,n.memoizedProps,o.memoizedProps)}break;case 27:bn(a,n),xn(n),u&512&&(_t||o===null||wr(o,o.return)),o!==null&&u&4&&Jf(n,n.memoizedProps,o.memoizedProps);break;case 5:if(bn(a,n),xn(n),u&512&&(_t||o===null||wr(o,o.return)),n.flags&32){m=n.stateNode;try{ei(m,"")}catch(Ae){lt(n,n.return,Ae)}}u&4&&n.stateNode!=null&&(m=n.memoizedProps,Jf(n,m,o!==null?o.memoizedProps:m)),u&1024&&(nd=!0);break;case 6:if(bn(a,n),xn(n),u&4){if(n.stateNode===null)throw Error(l(162));u=n.memoizedProps,o=n.stateNode;try{o.nodeValue=u}catch(Ae){lt(n,n.return,Ae)}}break;case 3:if($s=null,m=sr,sr=Is(a.containerInfo),bn(a,n),sr=m,xn(n),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Di(a.containerInfo)}catch(Ae){lt(n,n.return,Ae)}nd&&(nd=!1,Fp(n));break;case 4:u=sr,sr=Is(n.stateNode.containerInfo),bn(a,n),xn(n),sr=u;break;case 12:bn(a,n),xn(n);break;case 31:bn(a,n),xn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Os(n,u)));break;case 13:bn(a,n),xn(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Ls=tn()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Os(n,u)));break;case 22:m=n.memoizedState!==null;var B=o!==null&&o.memoizedState!==null,K=Qr,ee=_t;if(Qr=K||m,_t=ee||B,bn(a,n),_t=ee,Qr=K,xn(n),u&8192)e:for(a=n.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(o===null||B||Qr||_t||Nl(n)),o=null,a=n;;){if(a.tag===5||a.tag===26){if(o===null){B=o=a;try{if(p=B.stateNode,m)S=p.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{z=B.stateNode;var ae=B.memoizedProps.style,Z=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;z.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Ae){lt(B,B.return,Ae)}}}else if(a.tag===6){if(o===null){B=a;try{B.stateNode.nodeValue=m?"":B.memoizedProps}catch(Ae){lt(B,B.return,Ae)}}}else if(a.tag===18){if(o===null){B=a;try{var J=B.stateNode;m?D2(J,!0):D2(B.stateNode,!1)}catch(Ae){lt(B,B.return,Ae)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=n.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,Os(n,o))));break;case 19:bn(a,n),xn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Os(n,u)));break;case 30:break;case 21:break;default:bn(a,n),xn(n)}}function xn(n){var a=n.flags;if(a&2){try{for(var o,u=n.return;u!==null;){if(Rp(u)){o=u;break}u=u.return}if(o==null)throw Error(l(160));switch(o.tag){case 27:var m=o.stateNode,p=ed(n);Ds(n,p,m);break;case 5:var S=o.stateNode;o.flags&32&&(ei(S,""),o.flags&=-33);var z=ed(n);Ds(n,z,S);break;case 3:case 4:var B=o.stateNode.containerInfo,K=ed(n);td(n,K,B);break;default:throw Error(l(161))}}catch(ee){lt(n,n.return,ee)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Fp(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Fp(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Wr(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)jp(n,a.alternate,a),a=a.sibling}function Nl(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Da(4,a,a.return),Nl(a);break;case 1:wr(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&Dp(a,a.return,o),Nl(a);break;case 27:V0(a.stateNode);case 26:case 5:wr(a,a.return),Nl(a);break;case 22:a.memoizedState===null&&Nl(a);break;case 30:Nl(a);break;default:Nl(a)}n=n.sibling}}function Jr(n,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,m=n,p=a,S=p.flags;switch(p.tag){case 0:case 11:case 15:Jr(m,p,o),_0(4,p);break;case 1:if(Jr(m,p,o),u=p,m=u.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(K){lt(u,u.return,K)}if(u=p,m=u.updateQueue,m!==null){var z=u.stateNode;try{var B=m.shared.hiddenCallbacks;if(B!==null)for(m.shared.hiddenCallbacks=null,m=0;m<B.length;m++)b4(B[m],z)}catch(K){lt(u,u.return,K)}}o&&S&64&&zp(p),j0(p,p.return);break;case 27:Lp(p);case 26:case 5:Jr(m,p,o),o&&u===null&&S&4&&Op(p),j0(p,p.return);break;case 12:Jr(m,p,o);break;case 31:Jr(m,p,o),o&&S&4&&qp(m,p);break;case 13:Jr(m,p,o),o&&S&4&&Up(m,p);break;case 22:p.memoizedState===null&&Jr(m,p,o),j0(p,p.return);break;case 30:break;default:Jr(m,p,o)}a=a.sibling}}function rd(n,a){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&S0(o))}function ad(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&S0(n))}function ur(n,a,o,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Yp(n,a,o,u),a=a.sibling}function Yp(n,a,o,u){var m=a.flags;switch(a.tag){case 0:case 11:case 15:ur(n,a,o,u),m&2048&&_0(9,a);break;case 1:ur(n,a,o,u);break;case 3:ur(n,a,o,u),m&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&S0(n)));break;case 12:if(m&2048){ur(n,a,o,u),n=a.stateNode;try{var p=a.memoizedProps,S=p.id,z=p.onPostCommit;typeof z=="function"&&z(S,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(B){lt(a,a.return,B)}}else ur(n,a,o,u);break;case 31:ur(n,a,o,u);break;case 13:ur(n,a,o,u);break;case 23:break;case 22:p=a.stateNode,S=a.alternate,a.memoizedState!==null?p._visibility&2?ur(n,a,o,u):B0(n,a):p._visibility&2?ur(n,a,o,u):(p._visibility|=2,xi(n,a,o,u,(a.subtreeFlags&10256)!==0||!1)),m&2048&&rd(S,a);break;case 24:ur(n,a,o,u),m&2048&&ad(a.alternate,a);break;default:ur(n,a,o,u)}}function xi(n,a,o,u,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var p=n,S=a,z=o,B=u,K=S.flags;switch(S.tag){case 0:case 11:case 15:xi(p,S,z,B,m),_0(8,S);break;case 23:break;case 22:var ee=S.stateNode;S.memoizedState!==null?ee._visibility&2?xi(p,S,z,B,m):B0(p,S):(ee._visibility|=2,xi(p,S,z,B,m)),m&&K&2048&&rd(S.alternate,S);break;case 24:xi(p,S,z,B,m),m&&K&2048&&ad(S.alternate,S);break;default:xi(p,S,z,B,m)}a=a.sibling}}function B0(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=n,u=a,m=u.flags;switch(u.tag){case 22:B0(o,u),m&2048&&rd(u.alternate,u);break;case 24:B0(o,u),m&2048&&ad(u.alternate,u);break;default:B0(o,u)}a=a.sibling}}var H0=8192;function wi(n,a,o){if(n.subtreeFlags&H0)for(n=n.child;n!==null;)Pp(n,a,o),n=n.sibling}function Pp(n,a,o){switch(n.tag){case 26:wi(n,a,o),n.flags&H0&&n.memoizedState!==null&&k9(o,sr,n.memoizedState,n.memoizedProps);break;case 5:wi(n,a,o);break;case 3:case 4:var u=sr;sr=Is(n.stateNode.containerInfo),wi(n,a,o),sr=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=H0,H0=16777216,wi(n,a,o),H0=u):wi(n,a,o));break;default:wi(n,a,o)}}function Vp(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function q0(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];It=u,Xp(u,n)}Vp(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ip(n),n=n.sibling}function Ip(n){switch(n.tag){case 0:case 11:case 15:q0(n),n.flags&2048&&Da(9,n,n.return);break;case 3:q0(n);break;case 12:q0(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Rs(n)):q0(n);break;default:q0(n)}}function Rs(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];It=u,Xp(u,n)}Vp(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Da(8,a,a.return),Rs(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,Rs(a));break;default:Rs(a)}n=n.sibling}}function Xp(n,a){for(;It!==null;){var o=It;switch(o.tag){case 0:case 11:case 15:Da(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:S0(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,It=u;else e:for(o=n;It!==null;){u=It;var m=u.sibling,p=u.return;if(Bp(u),u===o){It=null;break e}if(m!==null){m.return=p,It=m;break e}It=p}}}var Yy={getCacheForType:function(n){var a=Wt(Ot),o=a.data.get(n);return o===void 0&&(o=n(),a.data.set(n,o)),o},cacheSignal:function(){return Wt(Ot).controller.signal}},Py=typeof WeakMap=="function"?WeakMap:Map,rt=0,ft=null,Ve=null,Xe=0,at=0,_n=null,Oa=!1,Si=!1,ld=!1,ea=0,Tt=0,Ra=0,zl=0,id=0,jn=0,Ai=0,U0=null,wn=null,od=!1,Ls=0,$p=0,_s=1/0,js=null,La=null,Ut=0,_a=null,Mi=null,ta=0,sd=0,ud=null,Kp=null,G0=0,cd=null;function Bn(){return(rt&2)!==0&&Xe!==0?Xe&-Xe:Y.T!==null?vd():fm()}function Qp(){if(jn===0)if((Xe&536870912)===0||Qe){var n=dl;dl<<=1,(dl&3932160)===0&&(dl=262144),jn=n}else jn=536870912;return n=Rn.current,n!==null&&(n.flags|=32),jn}function Sn(n,a,o){(n===ft&&(at===2||at===9)||n.cancelPendingCommit!==null)&&(Ei(n,0),ja(n,Xe,jn,!1)),s0(n,o),((rt&2)===0||n!==ft)&&(n===ft&&((rt&2)===0&&(zl|=o),Tt===4&&ja(n,Xe,jn,!1)),Sr(n))}function Zp(n,a,o){if((rt&6)!==0)throw Error(l(327));var u=!o&&(a&127)===0&&(a&n.expiredLanes)===0||ba(n,a),m=u?Xy(n,a):dd(n,a,!0),p=u;do{if(m===0){Si&&!u&&ja(n,a,0,!1);break}else{if(o=n.current.alternate,p&&!Vy(o)){m=dd(n,a,!1),p=!1;continue}if(m===2){if(p=a,n.errorRecoveryDisabledLanes&p)var S=0;else S=n.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var z=n;m=U0;var B=z.current.memoizedState.isDehydrated;if(B&&(Ei(z,S).flags|=256),S=dd(z,S,!1),S!==2){if(ld&&!B){z.errorRecoveryDisabledLanes|=p,zl|=p,m=4;break e}p=wn,wn=m,p!==null&&(wn===null?wn=p:wn.push.apply(wn,p))}m=S}if(p=!1,m!==2)continue}}if(m===1){Ei(n,0),ja(n,a,0,!0);break}e:{switch(u=n,p=m,p){case 0:case 1:throw Error(l(345));case 4:if((a&4194048)!==a)break;case 6:ja(u,a,jn,!Oa);break e;case 2:wn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((a&62914560)===a&&(m=Ls+300-tn(),10<m)){if(ja(u,a,jn,!Oa),Xl(u,0,!0)!==0)break e;ta=a,u.timeoutHandle=k2(Wp.bind(null,u,o,wn,js,od,a,jn,zl,Ai,Oa,p,"Throttled",-0,0),m);break e}Wp(u,o,wn,js,od,a,jn,zl,Ai,Oa,p,null,-0,0)}}break}while(!0);Sr(n)}function Wp(n,a,o,u,m,p,S,z,B,K,ee,ae,Z,J){if(n.timeoutHandle=-1,ae=a.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ur},Pp(a,p,ae);var Ae=(p&62914560)===p?Ls-tn():(p&4194048)===p?$p-tn():0;if(Ae=N9(ae,Ae),Ae!==null){ta=p,n.cancelPendingCommit=Ae(i2.bind(null,n,a,p,o,u,m,S,z,B,ee,ae,null,Z,J)),ja(n,p,S,!K);return}}i2(n,a,p,o,u,m,S,z,B)}function Vy(n){for(var a=n;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var m=o[u],p=m.getSnapshot;m=m.value;try{if(!Dn(p(),m))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ja(n,a,o,u){a&=~id,a&=~zl,n.suspendedLanes|=a,n.pingedLanes&=~a,u&&(n.warmLanes|=a),u=n.expirationTimes;for(var m=a;0<m;){var p=31-on(m),S=1<<p;u[p]=-1,m&=~S}o!==0&&sm(n,o,a)}function Bs(){return(rt&6)===0?(F0(0),!1):!0}function fd(){if(Ve!==null){if(at===0)var n=Ve.return;else n=Ve,Pr=wl=null,Cf(n),pi=null,M0=0,n=Ve;for(;n!==null;)Np(n.alternate,n),n=n.return;Ve=null}}function Ei(n,a){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,f9(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),ta=0,fd(),ft=n,Ve=o=Fr(n.current,null),Xe=a,at=0,_n=null,Oa=!1,Si=ba(n,a),ld=!1,Ai=jn=id=zl=Ra=Tt=0,wn=U0=null,od=!1,(a&8)!==0&&(a|=a&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=a;0<u;){var m=31-on(u),p=1<<m;a|=n[m],u&=~p}return ea=a,as(),o}function Jp(n,a){qe=null,Y.H=O0,a===mi||a===ds?(a=p4(),at=3):a===pf?(a=p4(),at=4):at=a===Yf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,_n=a,Ve===null&&(Tt=1,Ts(n,In(a,n.current)))}function e2(){var n=Rn.current;return n===null?!0:(Xe&4194048)===Xe?Qn===null:(Xe&62914560)===Xe||(Xe&536870912)!==0?n===Qn:!1}function t2(){var n=Y.H;return Y.H=O0,n===null?O0:n}function n2(){var n=Y.A;return Y.A=Yy,n}function Hs(){Tt=4,Oa||(Xe&4194048)!==Xe&&Rn.current!==null||(Si=!0),(Ra&134217727)===0&&(zl&134217727)===0||ft===null||ja(ft,Xe,jn,!1)}function dd(n,a,o){var u=rt;rt|=2;var m=t2(),p=n2();(ft!==n||Xe!==a)&&(js=null,Ei(n,a)),a=!1;var S=Tt;e:do try{if(at!==0&&Ve!==null){var z=Ve,B=_n;switch(at){case 8:fd(),S=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(a=!0);var K=at;if(at=0,_n=null,Ti(n,z,B,K),o&&Si){S=0;break e}break;default:K=at,at=0,_n=null,Ti(n,z,B,K)}}Iy(),S=Tt;break}catch(ee){Jp(n,ee)}while(!0);return a&&n.shellSuspendCounter++,Pr=wl=null,rt=u,Y.H=m,Y.A=p,Ve===null&&(ft=null,Xe=0,as()),S}function Iy(){for(;Ve!==null;)r2(Ve)}function Xy(n,a){var o=rt;rt|=2;var u=t2(),m=n2();ft!==n||Xe!==a?(js=null,_s=tn()+500,Ei(n,a)):Si=ba(n,a);e:do try{if(at!==0&&Ve!==null){a=Ve;var p=_n;t:switch(at){case 1:at=0,_n=null,Ti(n,a,p,1);break;case 2:case 9:if(h4(p)){at=0,_n=null,a2(a);break}a=function(){at!==2&&at!==9||ft!==n||(at=7),Sr(n)},p.then(a,a);break e;case 3:at=7;break e;case 4:at=5;break e;case 7:h4(p)?(at=0,_n=null,a2(a)):(at=0,_n=null,Ti(n,a,p,7));break;case 5:var S=null;switch(Ve.tag){case 26:S=Ve.memoizedState;case 5:case 27:var z=Ve;if(S?Y2(S):z.stateNode.complete){at=0,_n=null;var B=z.sibling;if(B!==null)Ve=B;else{var K=z.return;K!==null?(Ve=K,qs(K)):Ve=null}break t}}at=0,_n=null,Ti(n,a,p,5);break;case 6:at=0,_n=null,Ti(n,a,p,6);break;case 8:fd(),Tt=6;break e;default:throw Error(l(462))}}$y();break}catch(ee){Jp(n,ee)}while(!0);return Pr=wl=null,Y.H=u,Y.A=m,rt=o,Ve!==null?0:(ft=null,Xe=0,as(),Tt)}function $y(){for(;Ve!==null&&!n0();)r2(Ve)}function r2(n){var a=Cp(n.alternate,n,ea);n.memoizedProps=n.pendingProps,a===null?qs(n):Ve=a}function a2(n){var a=n,o=a.alternate;switch(a.tag){case 15:case 0:a=wp(o,a,a.pendingProps,a.type,void 0,Xe);break;case 11:a=wp(o,a,a.pendingProps,a.type.render,a.ref,Xe);break;case 5:Cf(a);default:Np(o,a),a=Ve=n4(a,ea),a=Cp(o,a,ea)}n.memoizedProps=n.pendingProps,a===null?qs(n):Ve=a}function Ti(n,a,o,u){Pr=wl=null,Cf(a),pi=null,M0=0;var m=a.return;try{if(jy(n,m,a,o,Xe)){Tt=1,Ts(n,In(o,n.current)),Ve=null;return}}catch(p){if(m!==null)throw Ve=m,p;Tt=1,Ts(n,In(o,n.current)),Ve=null;return}a.flags&32768?(Qe||u===1?n=!0:Si||(Xe&536870912)!==0?n=!1:(Oa=n=!0,(u===2||u===9||u===3||u===6)&&(u=Rn.current,u!==null&&u.tag===13&&(u.flags|=16384))),l2(a,n)):qs(a)}function qs(n){var a=n;do{if((a.flags&32768)!==0){l2(a,Oa);return}n=a.return;var o=qy(a.alternate,a,ea);if(o!==null){Ve=o;return}if(a=a.sibling,a!==null){Ve=a;return}Ve=a=n}while(a!==null);Tt===0&&(Tt=5)}function l2(n,a){do{var o=Uy(n.alternate,n);if(o!==null){o.flags&=32767,Ve=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(n=n.sibling,n!==null)){Ve=n;return}Ve=n=o}while(n!==null);Tt=6,Ve=null}function i2(n,a,o,u,m,p,S,z,B){n.cancelPendingCommit=null;do Us();while(Ut!==0);if((rt&6)!==0)throw Error(l(327));if(a!==null){if(a===n.current)throw Error(l(177));if(p=a.lanes|a.childLanes,p|=Jc,C8(n,o,p,S,z,B),n===ft&&(Ve=ft=null,Xe=0),Mi=a,_a=n,ta=o,sd=p,ud=m,Kp=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Wy(Vl,function(){return f2(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=Y.T,Y.T=null,m=ne.p,ne.p=2,S=rt,rt|=4;try{Gy(n,a,o)}finally{rt=S,ne.p=m,Y.T=u}}Ut=1,o2(),s2(),u2()}}function o2(){if(Ut===1){Ut=0;var n=_a,a=Mi,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=Y.T,Y.T=null;var u=ne.p;ne.p=2;var m=rt;rt|=4;try{Gp(a,n);var p=Md,S=Xm(n.containerInfo),z=p.focusedElem,B=p.selectionRange;if(S!==z&&z&&z.ownerDocument&&Im(z.ownerDocument.documentElement,z)){if(B!==null&&$c(z)){var K=B.start,ee=B.end;if(ee===void 0&&(ee=K),"selectionStart"in z)z.selectionStart=K,z.selectionEnd=Math.min(ee,z.value.length);else{var ae=z.ownerDocument||document,Z=ae&&ae.defaultView||window;if(Z.getSelection){var J=Z.getSelection(),Ae=z.textContent.length,_e=Math.min(B.start,Ae),ut=B.end===void 0?_e:Math.min(B.end,Ae);!J.extend&&_e>ut&&(S=ut,ut=_e,_e=S);var P=Vm(z,_e),q=Vm(z,ut);if(P&&q&&(J.rangeCount!==1||J.anchorNode!==P.node||J.anchorOffset!==P.offset||J.focusNode!==q.node||J.focusOffset!==q.offset)){var X=ae.createRange();X.setStart(P.node,P.offset),J.removeAllRanges(),_e>ut?(J.addRange(X),J.extend(q.node,q.offset)):(X.setEnd(q.node,q.offset),J.addRange(X))}}}}for(ae=[],J=z;J=J.parentNode;)J.nodeType===1&&ae.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<ae.length;z++){var re=ae[z];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}Ws=!!Ad,Md=Ad=null}finally{rt=m,ne.p=u,Y.T=o}}n.current=a,Ut=2}}function s2(){if(Ut===2){Ut=0;var n=_a,a=Mi,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=Y.T,Y.T=null;var u=ne.p;ne.p=2;var m=rt;rt|=4;try{jp(n,a.alternate,a)}finally{rt=m,ne.p=u,Y.T=o}}Ut=3}}function u2(){if(Ut===4||Ut===3){Ut=0,r0();var n=_a,a=Mi,o=ta,u=Kp;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ut=5:(Ut=0,Mi=_a=null,c2(n,n.pendingLanes));var m=n.pendingLanes;if(m===0&&(La=null),Nc(o),a=a.stateNode,ln&&typeof ln.onCommitFiberRoot=="function")try{ln.onCommitFiberRoot(vr,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=Y.T,m=ne.p,ne.p=2,Y.T=null;try{for(var p=n.onRecoverableError,S=0;S<u.length;S++){var z=u[S];p(z.value,{componentStack:z.stack})}}finally{Y.T=a,ne.p=m}}(ta&3)!==0&&Us(),Sr(n),m=n.pendingLanes,(o&261930)!==0&&(m&42)!==0?n===cd?G0++:(G0=0,cd=n):G0=0,F0(0)}}function c2(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,S0(a)))}function Us(){return o2(),s2(),u2(),f2()}function f2(){if(Ut!==5)return!1;var n=_a,a=sd;sd=0;var o=Nc(ta),u=Y.T,m=ne.p;try{ne.p=32>o?32:o,Y.T=null,o=ud,ud=null;var p=_a,S=ta;if(Ut=0,Mi=_a=null,ta=0,(rt&6)!==0)throw Error(l(331));var z=rt;if(rt|=4,Ip(p.current),Yp(p,p.current,S,o),rt=z,F0(0,!1),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(vr,p)}catch{}return!0}finally{ne.p=m,Y.T=u,c2(n,a)}}function d2(n,a,o){a=In(o,a),a=Ff(n.stateNode,a,2),n=ka(n,a,2),n!==null&&(s0(n,2),Sr(n))}function lt(n,a,o){if(n.tag===3)d2(n,n,o);else for(;a!==null;){if(a.tag===3){d2(a,n,o);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(La===null||!La.has(u))){n=In(o,n),o=hp(2),u=ka(a,o,2),u!==null&&(mp(o,u,a,n),s0(u,2),Sr(u));break}}a=a.return}}function hd(n,a,o){var u=n.pingCache;if(u===null){u=n.pingCache=new Py;var m=new Set;u.set(a,m)}else m=u.get(a),m===void 0&&(m=new Set,u.set(a,m));m.has(o)||(ld=!0,m.add(o),n=Ky.bind(null,n,a,o),a.then(n,n))}function Ky(n,a,o){var u=n.pingCache;u!==null&&u.delete(a),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,ft===n&&(Xe&o)===o&&(Tt===4||Tt===3&&(Xe&62914560)===Xe&&300>tn()-Ls?(rt&2)===0&&Ei(n,0):id|=o,Ai===Xe&&(Ai=0)),Sr(n)}function h2(n,a){a===0&&(a=Io()),n=yl(n,a),n!==null&&(s0(n,a),Sr(n))}function Qy(n){var a=n.memoizedState,o=0;a!==null&&(o=a.retryLane),h2(n,o)}function Zy(n,a){var o=0;switch(n.tag){case 31:case 13:var u=n.stateNode,m=n.memoizedState;m!==null&&(o=m.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(l(314))}u!==null&&u.delete(a),h2(n,o)}function Wy(n,a){return ir(n,a)}var Gs=null,Ci=null,md=!1,Fs=!1,pd=!1,Ba=0;function Sr(n){n!==Ci&&n.next===null&&(Ci===null?Gs=Ci=n:Ci=Ci.next=n),Fs=!0,md||(md=!0,e9())}function F0(n,a){if(!pd&&Fs){pd=!0;do for(var o=!1,u=Gs;u!==null;){if(n!==0){var m=u.pendingLanes;if(m===0)var p=0;else{var S=u.suspendedLanes,z=u.pingedLanes;p=(1<<31-on(42|n)+1)-1,p&=m&~(S&~z),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(o=!0,g2(u,p))}else p=Xe,p=Xl(u,u===ft?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||ba(u,p)||(o=!0,g2(u,p));u=u.next}while(o);pd=!1}}function Jy(){m2()}function m2(){Fs=md=!1;var n=0;Ba!==0&&c9()&&(n=Ba);for(var a=tn(),o=null,u=Gs;u!==null;){var m=u.next,p=p2(u,a);p===0?(u.next=null,o===null?Gs=m:o.next=m,m===null&&(Ci=o)):(o=u,(n!==0||(p&3)!==0)&&(Fs=!0)),u=m}Ut!==0&&Ut!==5||F0(n),Ba!==0&&(Ba=0)}function p2(n,a){for(var o=n.suspendedLanes,u=n.pingedLanes,m=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var S=31-on(p),z=1<<S,B=m[S];B===-1?((z&o)===0||(z&u)!==0)&&(m[S]=Vo(z,a)):B<=a&&(n.expiredLanes|=z),p&=~z}if(a=ft,o=Xe,o=Xl(n,n===a?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,o===0||n===a&&(at===2||at===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Br(u),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||ba(n,o)){if(a=o&-o,a===n.callbackPriority)return a;switch(u!==null&&Br(u),Nc(o)){case 2:case 8:o=a0;break;case 32:o=Vl;break;case 268435456:o=Hr;break;default:o=Vl}return u=v2.bind(null,n),o=ir(o,u),n.callbackPriority=a,n.callbackNode=o,a}return u!==null&&u!==null&&Br(u),n.callbackPriority=2,n.callbackNode=null,2}function v2(n,a){if(Ut!==0&&Ut!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(Us()&&n.callbackNode!==o)return null;var u=Xe;return u=Xl(n,n===ft?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(Zp(n,u,a),p2(n,tn()),n.callbackNode!=null&&n.callbackNode===o?v2.bind(null,n):null)}function g2(n,a){if(Us())return null;Zp(n,a,!0)}function e9(){d9(function(){(rt&6)!==0?ir(Yo,Jy):m2()})}function vd(){if(Ba===0){var n=di;n===0&&(n=Il,Il<<=1,(Il&261888)===0&&(Il=256)),Ba=n}return Ba}function y2(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Qo(""+n)}function b2(n,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,n.id&&o.setAttribute("form",n.id),a.parentNode.insertBefore(o,a),n=new FormData(n),o.parentNode.removeChild(o),n}function t9(n,a,o,u,m){if(a==="submit"&&o&&o.stateNode===m){var p=y2((m[vn]||null).action),S=u.submitter;S&&(a=(a=S[vn]||null)?y2(a.formAction):S.getAttribute("formAction"),a!==null&&(p=a,S=null));var z=new es("action","action",null,u,m);n.push({event:z,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Ba!==0){var B=S?b2(m,S):new FormData(m);jf(o,{pending:!0,data:B,method:m.method,action:p},null,B)}}else typeof p=="function"&&(z.preventDefault(),B=S?b2(m,S):new FormData(m),jf(o,{pending:!0,data:B,method:m.method,action:p},p,B))},currentTarget:m}]})}}for(var gd=0;gd<Wc.length;gd++){var yd=Wc[gd],n9=yd.toLowerCase(),r9=yd[0].toUpperCase()+yd.slice(1);or(n9,"on"+r9)}or(Qm,"onAnimationEnd"),or(Zm,"onAnimationIteration"),or(Wm,"onAnimationStart"),or("dblclick","onDoubleClick"),or("focusin","onFocus"),or("focusout","onBlur"),or(by,"onTransitionRun"),or(xy,"onTransitionStart"),or(wy,"onTransitionCancel"),or(Jm,"onTransitionEnd"),Wl("onMouseEnter",["mouseout","mouseover"]),Wl("onMouseLeave",["mouseout","mouseover"]),Wl("onPointerEnter",["pointerout","pointerover"]),Wl("onPointerLeave",["pointerout","pointerover"]),ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Y0="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(" "),a9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Y0));function x2(n,a){a=(a&4)!==0;for(var o=0;o<n.length;o++){var u=n[o],m=u.event;u=u.listeners;e:{var p=void 0;if(a)for(var S=u.length-1;0<=S;S--){var z=u[S],B=z.instance,K=z.currentTarget;if(z=z.listener,B!==p&&m.isPropagationStopped())break e;p=z,m.currentTarget=K;try{p(m)}catch(ee){rs(ee)}m.currentTarget=null,p=B}else for(S=0;S<u.length;S++){if(z=u[S],B=z.instance,K=z.currentTarget,z=z.listener,B!==p&&m.isPropagationStopped())break e;p=z,m.currentTarget=K;try{p(m)}catch(ee){rs(ee)}m.currentTarget=null,p=B}}}}function Ie(n,a){var o=a[zc];o===void 0&&(o=a[zc]=new Set);var u=n+"__bubble";o.has(u)||(w2(a,n,2,!1),o.add(u))}function bd(n,a,o){var u=0;a&&(u|=4),w2(o,n,u,a)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function xd(n){if(!n[Ys]){n[Ys]=!0,mm.forEach(function(o){o!=="selectionchange"&&(a9.has(o)||bd(o,!1,n),bd(o,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Ys]||(a[Ys]=!0,bd("selectionchange",!1,a))}}function w2(n,a,o,u){switch(Q2(a)){case 2:var m=O9;break;case 8:m=R9;break;default:m=_d}o=m.bind(null,a,o,n),m=void 0,!qc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),u?m!==void 0?n.addEventListener(a,o,{capture:!0,passive:m}):n.addEventListener(a,o,!0):m!==void 0?n.addEventListener(a,o,{passive:m}):n.addEventListener(a,o,!1)}function wd(n,a,o,u,m){var p=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var z=u.stateNode.containerInfo;if(z===m)break;if(S===4)for(S=u.return;S!==null;){var B=S.tag;if((B===3||B===4)&&S.stateNode.containerInfo===m)return;S=S.return}for(;z!==null;){if(S=Kl(z),S===null)return;if(B=S.tag,B===5||B===6||B===26||B===27){u=p=S;continue e}z=z.parentNode}}u=u.return}Tm(function(){var K=p,ee=Bc(o),ae=[];e:{var Z=e4.get(n);if(Z!==void 0){var J=es,Ae=n;switch(n){case"keypress":if(Wo(o)===0)break e;case"keydown":case"keyup":J=Z8;break;case"focusin":Ae="focus",J=Yc;break;case"focusout":Ae="blur",J=Yc;break;case"beforeblur":case"afterblur":J=Yc;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Nm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=q8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=ey;break;case Qm:case Zm:case Wm:J=F8;break;case Jm:J=ny;break;case"scroll":case"scrollend":J=B8;break;case"wheel":J=ay;break;case"copy":case"cut":case"paste":J=P8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Dm;break;case"toggle":case"beforetoggle":J=iy}var _e=(a&4)!==0,ut=!_e&&(n==="scroll"||n==="scrollend"),P=_e?Z!==null?Z+"Capture":null:Z;_e=[];for(var q=K,X;q!==null;){var re=q;if(X=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||X===null||P===null||(re=f0(q,P),re!=null&&_e.push(P0(q,re,X))),ut)break;q=q.return}0<_e.length&&(Z=new J(Z,Ae,null,o,ee),ae.push({event:Z,listeners:_e}))}}if((a&7)===0){e:{if(Z=n==="mouseover"||n==="pointerover",J=n==="mouseout"||n==="pointerout",Z&&o!==jc&&(Ae=o.relatedTarget||o.fromElement)&&(Kl(Ae)||Ae[$l]))break e;if((J||Z)&&(Z=ee.window===ee?ee:(Z=ee.ownerDocument)?Z.defaultView||Z.parentWindow:window,J?(Ae=o.relatedTarget||o.toElement,J=K,Ae=Ae?Kl(Ae):null,Ae!==null&&(ut=s(Ae),_e=Ae.tag,Ae!==ut||_e!==5&&_e!==27&&_e!==6)&&(Ae=null)):(J=null,Ae=K),J!==Ae)){if(_e=Nm,re="onMouseLeave",P="onMouseEnter",q="mouse",(n==="pointerout"||n==="pointerover")&&(_e=Dm,re="onPointerLeave",P="onPointerEnter",q="pointer"),ut=J==null?Z:c0(J),X=Ae==null?Z:c0(Ae),Z=new _e(re,q+"leave",J,o,ee),Z.target=ut,Z.relatedTarget=X,re=null,Kl(ee)===K&&(_e=new _e(P,q+"enter",Ae,o,ee),_e.target=X,_e.relatedTarget=ut,re=_e),ut=re,J&&Ae)t:{for(_e=l9,P=J,q=Ae,X=0,re=P;re;re=_e(re))X++;re=0;for(var ze=q;ze;ze=_e(ze))re++;for(;0<X-re;)P=_e(P),X--;for(;0<re-X;)q=_e(q),re--;for(;X--;){if(P===q||q!==null&&P===q.alternate){_e=P;break t}P=_e(P),q=_e(q)}_e=null}else _e=null;J!==null&&S2(ae,Z,J,_e,!1),Ae!==null&&ut!==null&&S2(ae,ut,Ae,_e,!0)}}e:{if(Z=K?c0(K):window,J=Z.nodeName&&Z.nodeName.toLowerCase(),J==="select"||J==="input"&&Z.type==="file")var et=qm;else if(Bm(Z))if(Um)et=vy;else{et=my;var Te=hy}else J=Z.nodeName,!J||J.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?K&&_c(K.elementType)&&(et=qm):et=py;if(et&&(et=et(n,K))){Hm(ae,et,o,ee);break e}Te&&Te(n,Z,K),n==="focusout"&&K&&Z.type==="number"&&K.memoizedProps.value!=null&&Lc(Z,"number",Z.value)}switch(Te=K?c0(K):window,n){case"focusin":(Bm(Te)||Te.contentEditable==="true")&&(ai=Te,Kc=K,b0=null);break;case"focusout":b0=Kc=ai=null;break;case"mousedown":Qc=!0;break;case"contextmenu":case"mouseup":case"dragend":Qc=!1,$m(ae,o,ee);break;case"selectionchange":if(yy)break;case"keydown":case"keyup":$m(ae,o,ee)}var Ue;if(Vc)e:{switch(n){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else ri?_m(n,o)&&($e="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&($e="onCompositionStart");$e&&(Om&&o.locale!=="ko"&&(ri||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&ri&&(Ue=Cm()):(wa=ee,Uc="value"in wa?wa.value:wa.textContent,ri=!0)),Te=Ps(K,$e),0<Te.length&&($e=new zm($e,n,null,o,ee),ae.push({event:$e,listeners:Te}),Ue?$e.data=Ue:(Ue=jm(o),Ue!==null&&($e.data=Ue)))),(Ue=sy?uy(n,o):cy(n,o))&&($e=Ps(K,"onBeforeInput"),0<$e.length&&(Te=new zm("onBeforeInput","beforeinput",null,o,ee),ae.push({event:Te,listeners:$e}),Te.data=Ue)),t9(ae,n,K,o,ee)}x2(ae,a)})}function P0(n,a,o){return{instance:n,listener:a,currentTarget:o}}function Ps(n,a){for(var o=a+"Capture",u=[];n!==null;){var m=n,p=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||p===null||(m=f0(n,o),m!=null&&u.unshift(P0(n,m,p)),m=f0(n,a),m!=null&&u.push(P0(n,m,p))),n.tag===3)return u;n=n.return}return[]}function l9(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function S2(n,a,o,u,m){for(var p=a._reactName,S=[];o!==null&&o!==u;){var z=o,B=z.alternate,K=z.stateNode;if(z=z.tag,B!==null&&B===u)break;z!==5&&z!==26&&z!==27||K===null||(B=K,m?(K=f0(o,p),K!=null&&S.unshift(P0(o,K,B))):m||(K=f0(o,p),K!=null&&S.push(P0(o,K,B)))),o=o.return}S.length!==0&&n.push({event:a,listeners:S})}var i9=/\r\n?/g,o9=/\u0000|\uFFFD/g;function A2(n){return(typeof n=="string"?n:""+n).replace(i9,`
49
- `).replace(o9,"")}function M2(n,a){return a=A2(a),A2(n)===a}function st(n,a,o,u,m,p){switch(o){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||ei(n,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&ei(n,""+u);break;case"className":$o(n,"class",u);break;case"tabIndex":$o(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":$o(n,o,u);break;case"style":Mm(n,u,p);break;case"data":if(a!=="object"){$o(n,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||o!=="href")){n.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=Qo(""+u),n.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(o,"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 p=="function"&&(o==="formAction"?(a!=="input"&&st(n,a,"name",m.name,m,null),st(n,a,"formEncType",m.formEncType,m,null),st(n,a,"formMethod",m.formMethod,m,null),st(n,a,"formTarget",m.formTarget,m,null)):(st(n,a,"encType",m.encType,m,null),st(n,a,"method",m.method,m,null),st(n,a,"target",m.target,m,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=Qo(""+u),n.setAttribute(o,u);break;case"onClick":u!=null&&(n.onclick=Ur);break;case"onScroll":u!=null&&Ie("scroll",n);break;case"onScrollEnd":u!=null&&Ie("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(l(61));if(o=u.__html,o!=null){if(m.children!=null)throw Error(l(60));n.innerHTML=o}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}o=Qo(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""+u):n.removeAttribute(o);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":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":u===!0?n.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,u):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(o,u):n.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(o):n.setAttribute(o,u);break;case"popover":Ie("beforetoggle",n),Ie("toggle",n),Xo(n,"popover",u);break;case"xlinkActuate":qr(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":qr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":qr(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":qr(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":qr(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":qr(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":qr(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":qr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":qr(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Xo(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=_8.get(o)||o,Xo(n,o,u))}}function Sd(n,a,o,u,m,p){switch(o){case"style":Mm(n,u,p);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(l(61));if(o=u.__html,o!=null){if(m.children!=null)throw Error(l(60));n.innerHTML=o}}break;case"children":typeof u=="string"?ei(n,u):(typeof u=="number"||typeof u=="bigint")&&ei(n,""+u);break;case"onScroll":u!=null&&Ie("scroll",n);break;case"onScrollEnd":u!=null&&Ie("scrollend",n);break;case"onClick":u!=null&&(n.onclick=Ur);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pm.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(m=o.endsWith("Capture"),a=o.slice(2,m?o.length-7:void 0),p=n[vn]||null,p=p!=null?p[o]:null,typeof p=="function"&&n.removeEventListener(a,p,m),typeof u=="function")){typeof p!="function"&&p!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(a,u,m);break e}o in n?n[o]=u:u===!0?n.setAttribute(o,""):Xo(n,o,u)}}}function en(n,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",n),Ie("load",n);var u=!1,m=!1,p;for(p in o)if(o.hasOwnProperty(p)){var S=o[p];if(S!=null)switch(p){case"src":u=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:st(n,a,p,S,o,null)}}m&&st(n,a,"srcSet",o.srcSet,o,null),u&&st(n,a,"src",o.src,o,null);return;case"input":Ie("invalid",n);var z=p=S=m=null,B=null,K=null;for(u in o)if(o.hasOwnProperty(u)){var ee=o[u];if(ee!=null)switch(u){case"name":m=ee;break;case"type":S=ee;break;case"checked":B=ee;break;case"defaultChecked":K=ee;break;case"value":p=ee;break;case"defaultValue":z=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(l(137,a));break;default:st(n,a,u,ee,o,null)}}xm(n,p,z,B,K,S,m,!1);return;case"select":Ie("invalid",n),u=S=p=null;for(m in o)if(o.hasOwnProperty(m)&&(z=o[m],z!=null))switch(m){case"value":p=z;break;case"defaultValue":S=z;break;case"multiple":u=z;default:st(n,a,m,z,o,null)}a=p,o=S,n.multiple=!!u,a!=null?Jl(n,!!u,a,!1):o!=null&&Jl(n,!!u,o,!0);return;case"textarea":Ie("invalid",n),p=m=u=null;for(S in o)if(o.hasOwnProperty(S)&&(z=o[S],z!=null))switch(S){case"value":u=z;break;case"defaultValue":m=z;break;case"children":p=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(l(91));break;default:st(n,a,S,z,o,null)}Sm(n,u,m,p);return;case"option":for(B in o)if(o.hasOwnProperty(B)&&(u=o[B],u!=null))switch(B){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:st(n,a,B,u,o,null)}return;case"dialog":Ie("beforetoggle",n),Ie("toggle",n),Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":Ie("load",n);break;case"video":case"audio":for(u=0;u<Y0.length;u++)Ie(Y0[u],n);break;case"image":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"embed":case"source":case"link":Ie("error",n),Ie("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in o)if(o.hasOwnProperty(K)&&(u=o[K],u!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:st(n,a,K,u,o,null)}return;default:if(_c(a)){for(ee in o)o.hasOwnProperty(ee)&&(u=o[ee],u!==void 0&&Sd(n,a,ee,u,o,void 0));return}}for(z in o)o.hasOwnProperty(z)&&(u=o[z],u!=null&&st(n,a,z,u,o,null))}function s9(n,a,o,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,p=null,S=null,z=null,B=null,K=null,ee=null;for(J in o){var ae=o[J];if(o.hasOwnProperty(J)&&ae!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":B=ae;default:u.hasOwnProperty(J)||st(n,a,J,null,u,ae)}}for(var Z in u){var J=u[Z];if(ae=o[Z],u.hasOwnProperty(Z)&&(J!=null||ae!=null))switch(Z){case"type":p=J;break;case"name":m=J;break;case"checked":K=J;break;case"defaultChecked":ee=J;break;case"value":S=J;break;case"defaultValue":z=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(l(137,a));break;default:J!==ae&&st(n,a,Z,J,u,ae)}}Rc(n,S,z,B,K,ee,p,m);return;case"select":J=S=z=Z=null;for(p in o)if(B=o[p],o.hasOwnProperty(p)&&B!=null)switch(p){case"value":break;case"multiple":J=B;default:u.hasOwnProperty(p)||st(n,a,p,null,u,B)}for(m in u)if(p=u[m],B=o[m],u.hasOwnProperty(m)&&(p!=null||B!=null))switch(m){case"value":Z=p;break;case"defaultValue":z=p;break;case"multiple":S=p;default:p!==B&&st(n,a,m,p,u,B)}a=z,o=S,u=J,Z!=null?Jl(n,!!o,Z,!1):!!u!=!!o&&(a!=null?Jl(n,!!o,a,!0):Jl(n,!!o,o?[]:"",!1));return;case"textarea":J=Z=null;for(z in o)if(m=o[z],o.hasOwnProperty(z)&&m!=null&&!u.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:st(n,a,z,null,u,m)}for(S in u)if(m=u[S],p=o[S],u.hasOwnProperty(S)&&(m!=null||p!=null))switch(S){case"value":Z=m;break;case"defaultValue":J=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(l(91));break;default:m!==p&&st(n,a,S,m,u,p)}wm(n,Z,J);return;case"option":for(var Ae in o)if(Z=o[Ae],o.hasOwnProperty(Ae)&&Z!=null&&!u.hasOwnProperty(Ae))switch(Ae){case"selected":n.selected=!1;break;default:st(n,a,Ae,null,u,Z)}for(B in u)if(Z=u[B],J=o[B],u.hasOwnProperty(B)&&Z!==J&&(Z!=null||J!=null))switch(B){case"selected":n.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:st(n,a,B,Z,u,J)}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 _e in o)Z=o[_e],o.hasOwnProperty(_e)&&Z!=null&&!u.hasOwnProperty(_e)&&st(n,a,_e,null,u,Z);for(K in u)if(Z=u[K],J=o[K],u.hasOwnProperty(K)&&Z!==J&&(Z!=null||J!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(l(137,a));break;default:st(n,a,K,Z,u,J)}return;default:if(_c(a)){for(var ut in o)Z=o[ut],o.hasOwnProperty(ut)&&Z!==void 0&&!u.hasOwnProperty(ut)&&Sd(n,a,ut,void 0,u,Z);for(ee in u)Z=u[ee],J=o[ee],!u.hasOwnProperty(ee)||Z===J||Z===void 0&&J===void 0||Sd(n,a,ee,Z,u,J);return}}for(var P in o)Z=o[P],o.hasOwnProperty(P)&&Z!=null&&!u.hasOwnProperty(P)&&st(n,a,P,null,u,Z);for(ae in u)Z=u[ae],J=o[ae],!u.hasOwnProperty(ae)||Z===J||Z==null&&J==null||st(n,a,ae,Z,u,J)}function E2(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function u9(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,o=performance.getEntriesByType("resource"),u=0;u<o.length;u++){var m=o[u],p=m.transferSize,S=m.initiatorType,z=m.duration;if(p&&z&&E2(S)){for(S=0,z=m.responseEnd,u+=1;u<o.length;u++){var B=o[u],K=B.startTime;if(K>z)break;var ee=B.transferSize,ae=B.initiatorType;ee&&E2(ae)&&(B=B.responseEnd,S+=ee*(B<z?1:(z-K)/(B-K)))}if(--u,a+=8*(p+S)/(m.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Ad=null,Md=null;function Vs(n){return n.nodeType===9?n:n.ownerDocument}function T2(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function C2(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Ed(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Td=null;function c9(){var n=window.event;return n&&n.type==="popstate"?n===Td?!1:(Td=n,!0):(Td=null,!1)}var k2=typeof setTimeout=="function"?setTimeout:void 0,f9=typeof clearTimeout=="function"?clearTimeout:void 0,N2=typeof Promise=="function"?Promise:void 0,d9=typeof queueMicrotask=="function"?queueMicrotask:typeof N2<"u"?function(n){return N2.resolve(null).then(n).catch(h9)}:k2;function h9(n){setTimeout(function(){throw n})}function Ha(n){return n==="head"}function z2(n,a){var o=a,u=0;do{var m=o.nextSibling;if(n.removeChild(o),m&&m.nodeType===8)if(o=m.data,o==="/$"||o==="/&"){if(u===0){n.removeChild(m),Di(a);return}u--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")u++;else if(o==="html")V0(n.ownerDocument.documentElement);else if(o==="head"){o=n.ownerDocument.head,V0(o);for(var p=o.firstChild;p;){var S=p.nextSibling,z=p.nodeName;p[u0]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&p.rel.toLowerCase()==="stylesheet"||o.removeChild(p),p=S}}else o==="body"&&V0(n.ownerDocument.body);o=m}while(o);Di(a)}function D2(n,a){var o=n;n=0;do{var u=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(n===0)break;n--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||n++;o=u}while(o)}function Cd(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Cd(o),Dc(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function m9(n,a,o,u){for(;n.nodeType===1;){var m=o;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[u0])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==m.rel||n.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||n.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||n.getAttribute("title")!==(m.title==null?null:m.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(m.src==null?null:m.src)||n.getAttribute("type")!==(m.type==null?null:m.type)||n.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var p=m.name==null?null:""+m.name;if(m.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=Zn(n.nextSibling),n===null)break}return null}function p9(n,a,o){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=Zn(n.nextSibling),n===null))return null;return n}function O2(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Zn(n.nextSibling),n===null))return null;return n}function kd(n){return n.data==="$?"||n.data==="$~"}function Nd(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function v9(n,a){var o=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||o.readyState!=="loading")a();else{var u=function(){a(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function Zn(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var zd=null;function R2(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"||o==="/&"){if(a===0)return Zn(n.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}n=n.nextSibling}return null}function L2(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return n;a--}else o!=="/$"&&o!=="/&"||a++}n=n.previousSibling}return null}function _2(n,a,o){switch(a=Vs(o),n){case"html":if(n=a.documentElement,!n)throw Error(l(452));return n;case"head":if(n=a.head,!n)throw Error(l(453));return n;case"body":if(n=a.body,!n)throw Error(l(454));return n;default:throw Error(l(451))}}function V0(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Dc(n)}var Wn=new Map,j2=new Set;function Is(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var na=ne.d;ne.d={f:g9,r:y9,D:b9,C:x9,L:w9,m:S9,X:M9,S:A9,M:E9};function g9(){var n=na.f(),a=Bs();return n||a}function y9(n){var a=Ql(n);a!==null&&a.tag===5&&a.type==="form"?J4(a):na.r(n)}var ki=typeof document>"u"?null:document;function B2(n,a,o){var u=ki;if(u&&typeof a=="string"&&a){var m=Pn(a);m='link[rel="'+n+'"][href="'+m+'"]',typeof o=="string"&&(m+='[crossorigin="'+o+'"]'),j2.has(m)||(j2.add(m),n={rel:n,crossOrigin:o,href:a},u.querySelector(m)===null&&(a=u.createElement("link"),en(a,"link",n),Vt(a),u.head.appendChild(a)))}}function b9(n){na.D(n),B2("dns-prefetch",n,null)}function x9(n,a){na.C(n,a),B2("preconnect",n,a)}function w9(n,a,o){na.L(n,a,o);var u=ki;if(u&&n&&a){var m='link[rel="preload"][as="'+Pn(a)+'"]';a==="image"&&o&&o.imageSrcSet?(m+='[imagesrcset="'+Pn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(m+='[imagesizes="'+Pn(o.imageSizes)+'"]')):m+='[href="'+Pn(n)+'"]';var p=m;switch(a){case"style":p=Ni(n);break;case"script":p=zi(n)}Wn.has(p)||(n=g({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:n,as:a},o),Wn.set(p,n),u.querySelector(m)!==null||a==="style"&&u.querySelector(I0(p))||a==="script"&&u.querySelector(X0(p))||(a=u.createElement("link"),en(a,"link",n),Vt(a),u.head.appendChild(a)))}}function S9(n,a){na.m(n,a);var o=ki;if(o&&n){var u=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+Pn(u)+'"][href="'+Pn(n)+'"]',p=m;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=zi(n)}if(!Wn.has(p)&&(n=g({rel:"modulepreload",href:n},a),Wn.set(p,n),o.querySelector(m)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(X0(p)))return}u=o.createElement("link"),en(u,"link",n),Vt(u),o.head.appendChild(u)}}}function A9(n,a,o){na.S(n,a,o);var u=ki;if(u&&n){var m=Zl(u).hoistableStyles,p=Ni(n);a=a||"default";var S=m.get(p);if(!S){var z={loading:0,preload:null};if(S=u.querySelector(I0(p)))z.loading=5;else{n=g({rel:"stylesheet",href:n,"data-precedence":a},o),(o=Wn.get(p))&&Dd(n,o);var B=S=u.createElement("link");Vt(B),en(B,"link",n),B._p=new Promise(function(K,ee){B.onload=K,B.onerror=ee}),B.addEventListener("load",function(){z.loading|=1}),B.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Xs(S,a,u)}S={type:"stylesheet",instance:S,count:1,state:z},m.set(p,S)}}}function M9(n,a){na.X(n,a);var o=ki;if(o&&n){var u=Zl(o).hoistableScripts,m=zi(n),p=u.get(m);p||(p=o.querySelector(X0(m)),p||(n=g({src:n,async:!0},a),(a=Wn.get(m))&&Od(n,a),p=o.createElement("script"),Vt(p),en(p,"link",n),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(m,p))}}function E9(n,a){na.M(n,a);var o=ki;if(o&&n){var u=Zl(o).hoistableScripts,m=zi(n),p=u.get(m);p||(p=o.querySelector(X0(m)),p||(n=g({src:n,async:!0,type:"module"},a),(a=Wn.get(m))&&Od(n,a),p=o.createElement("script"),Vt(p),en(p,"link",n),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(m,p))}}function H2(n,a,o,u){var m=(m=ke.current)?Is(m):null;if(!m)throw Error(l(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Ni(o.href),o=Zl(m).hoistableStyles,u=o.get(a),u||(u={type:"style",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Ni(o.href);var p=Zl(m).hoistableStyles,S=p.get(n);if(S||(m=m.ownerDocument||m,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,S),(p=m.querySelector(I0(n)))&&!p._p&&(S.instance=p,S.state.loading=5),Wn.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Wn.set(n,o),p||T9(m,n,o,S.state))),a&&u===null)throw Error(l(528,""));return S}if(a&&u!==null)throw Error(l(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=zi(o),o=Zl(m).hoistableScripts,u=o.get(a),u||(u={type:"script",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,n))}}function Ni(n){return'href="'+Pn(n)+'"'}function I0(n){return'link[rel="stylesheet"]['+n+"]"}function q2(n){return g({},n,{"data-precedence":n.precedence,precedence:null})}function T9(n,a,o,u){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=n.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),en(a,"link",o),Vt(a),n.head.appendChild(a))}function zi(n){return'[src="'+Pn(n)+'"]'}function X0(n){return"script[async]"+n}function U2(n,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var u=n.querySelector('style[data-href~="'+Pn(o.href)+'"]');if(u)return a.instance=u,Vt(u),u;var m=g({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Vt(u),en(u,"style",m),Xs(u,o.precedence,n),a.instance=u;case"stylesheet":m=Ni(o.href);var p=n.querySelector(I0(m));if(p)return a.state.loading|=4,a.instance=p,Vt(p),p;u=q2(o),(m=Wn.get(m))&&Dd(u,m),p=(n.ownerDocument||n).createElement("link"),Vt(p);var S=p;return S._p=new Promise(function(z,B){S.onload=z,S.onerror=B}),en(p,"link",u),a.state.loading|=4,Xs(p,o.precedence,n),a.instance=p;case"script":return p=zi(o.src),(m=n.querySelector(X0(p)))?(a.instance=m,Vt(m),m):(u=o,(m=Wn.get(p))&&(u=g({},o),Od(u,m)),n=n.ownerDocument||n,m=n.createElement("script"),Vt(m),en(m,"link",u),n.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(l(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,Xs(u,o.precedence,n));return a.instance}function Xs(n,a,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=u.length?u[u.length-1]:null,p=m,S=0;S<u.length;S++){var z=u[S];if(z.dataset.precedence===a)p=z;else if(p!==m)break}p?p.parentNode.insertBefore(n,p.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(n,a.firstChild))}function Dd(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Od(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var $s=null;function G2(n,a,o){if($s===null){var u=new Map,m=$s=new Map;m.set(o,u)}else m=$s,u=m.get(o),u||(u=new Map,m.set(o,u));if(u.has(n))return u;for(u.set(n,null),o=o.getElementsByTagName(n),m=0;m<o.length;m++){var p=o[m];if(!(p[u0]||p[Qt]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var S=p.getAttribute(a)||"";S=n+S;var z=u.get(S);z?z.push(p):u.set(S,[p])}}return u}function F2(n,a,o){n=n.ownerDocument||n,n.head.insertBefore(o,a==="title"?n.querySelector("head > title"):null)}function C9(n,a,o){if(o===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Y2(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function k9(n,a,o,u){if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var m=Ni(u.href),p=a.querySelector(I0(m));if(p){a=p._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=Ks.bind(n),a.then(n,n)),o.state.loading|=4,o.instance=p,Vt(p);return}p=a.ownerDocument||a,u=q2(u),(m=Wn.get(m))&&Dd(u,m),p=p.createElement("link"),Vt(p);var S=p;S._p=new Promise(function(z,B){S.onload=z,S.onerror=B}),en(p,"link",u),o.instance=p}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=Ks.bind(n),a.addEventListener("load",o),a.addEventListener("error",o))}}var Rd=0;function N9(n,a){return n.stylesheets&&n.count===0&&Zs(n,n.stylesheets),0<n.count||0<n.imgCount?function(o){var u=setTimeout(function(){if(n.stylesheets&&Zs(n,n.stylesheets),n.unsuspend){var p=n.unsuspend;n.unsuspend=null,p()}},6e4+a);0<n.imgBytes&&Rd===0&&(Rd=62500*u9());var m=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Zs(n,n.stylesheets),n.unsuspend)){var p=n.unsuspend;n.unsuspend=null,p()}},(n.imgBytes>Rd?50:800)+a);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(m)}}:null}function Ks(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zs(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Qs=null;function Zs(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Qs=new Map,a.forEach(z9,n),Qs=null,Ks.call(n))}function z9(n,a){if(!(a.state.loading&4)){var o=Qs.get(n);if(o)var u=o.get(null);else{o=new Map,Qs.set(n,o);for(var m=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<m.length;p++){var S=m[p];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(o.set(S.dataset.precedence,S),u=S)}u&&o.set(null,u)}m=a.instance,S=m.getAttribute("data-precedence"),p=o.get(S)||u,p===u&&o.set(null,m),o.set(S,m),this.count++,u=Ks.bind(this),m.addEventListener("load",u),m.addEventListener("error",u),p?p.parentNode.insertBefore(m,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(m,n.firstChild)),a.state.loading|=4}}var $0={$$typeof:R,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function D9(n,a,o,u,m,p,S,z,B){this.tag=1,this.containerInfo=n,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=Cc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.hiddenUpdates=Cc(null),this.identifierPrefix=u,this.onUncaughtError=m,this.onCaughtError=p,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function P2(n,a,o,u,m,p,S,z,B,K,ee,ae){return n=new D9(n,a,o,S,B,K,ee,ae,z),a=1,p===!0&&(a|=24),p=On(3,null,null,a),n.current=p,p.stateNode=n,a=df(),a.refCount++,n.pooledCache=a,a.refCount++,p.memoizedState={element:u,isDehydrated:o,cache:a},vf(p),n}function V2(n){return n?(n=oi,n):oi}function I2(n,a,o,u,m,p){m=V2(m),u.context===null?u.context=m:u.pendingContext=m,u=Ca(a),u.payload={element:o},p=p===void 0?null:p,p!==null&&(u.callback=p),o=ka(n,u,a),o!==null&&(Sn(o,n,a),T0(o,n,a))}function X2(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<a?o:a}}function Ld(n,a){X2(n,a),(n=n.alternate)&&X2(n,a)}function $2(n){if(n.tag===13||n.tag===31){var a=yl(n,67108864);a!==null&&Sn(a,n,67108864),Ld(n,67108864)}}function K2(n){if(n.tag===13||n.tag===31){var a=Bn();a=kc(a);var o=yl(n,a);o!==null&&Sn(o,n,a),Ld(n,a)}}var Ws=!0;function O9(n,a,o,u){var m=Y.T;Y.T=null;var p=ne.p;try{ne.p=2,_d(n,a,o,u)}finally{ne.p=p,Y.T=m}}function R9(n,a,o,u){var m=Y.T;Y.T=null;var p=ne.p;try{ne.p=8,_d(n,a,o,u)}finally{ne.p=p,Y.T=m}}function _d(n,a,o,u){if(Ws){var m=jd(u);if(m===null)wd(n,a,u,Js,o),Z2(n,u);else if(_9(m,n,a,o,u))u.stopPropagation();else if(Z2(n,u),a&4&&-1<L9.indexOf(n)){for(;m!==null;){var p=Ql(m);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var S=yr(p.pendingLanes);if(S!==0){var z=p;for(z.pendingLanes|=2,z.entangledLanes|=2;S;){var B=1<<31-on(S);z.entanglements[1]|=B,S&=~B}Sr(p),(rt&6)===0&&(_s=tn()+500,F0(0))}}break;case 31:case 13:z=yl(p,2),z!==null&&Sn(z,p,2),Bs(),Ld(p,2)}if(p=jd(u),p===null&&wd(n,a,u,Js,o),p===m)break;m=p}m!==null&&u.stopPropagation()}else wd(n,a,u,null,o)}}function jd(n){return n=Bc(n),Bd(n)}var Js=null;function Bd(n){if(Js=null,n=Kl(n),n!==null){var a=s(n);if(a===null)n=null;else{var o=a.tag;if(o===13){if(n=c(a),n!==null)return n;n=null}else if(o===31){if(n=f(a),n!==null)return n;n=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Js=n,null}function Q2(n){switch(n){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(Fo()){case Yo:return 2;case a0:return 8;case Vl:case l0:return 32;case Hr:return 268435456;default:return 32}default:return 32}}var Hd=!1,qa=null,Ua=null,Ga=null,K0=new Map,Q0=new Map,Fa=[],L9="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 Z2(n,a){switch(n){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":K0.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Q0.delete(a.pointerId)}}function Z0(n,a,o,u,m,p){return n===null||n.nativeEvent!==p?(n={blockedOn:a,domEventName:o,eventSystemFlags:u,nativeEvent:p,targetContainers:[m]},a!==null&&(a=Ql(a),a!==null&&$2(a)),n):(n.eventSystemFlags|=u,a=n.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),n)}function _9(n,a,o,u,m){switch(a){case"focusin":return qa=Z0(qa,n,a,o,u,m),!0;case"dragenter":return Ua=Z0(Ua,n,a,o,u,m),!0;case"mouseover":return Ga=Z0(Ga,n,a,o,u,m),!0;case"pointerover":var p=m.pointerId;return K0.set(p,Z0(K0.get(p)||null,n,a,o,u,m)),!0;case"gotpointercapture":return p=m.pointerId,Q0.set(p,Z0(Q0.get(p)||null,n,a,o,u,m)),!0}return!1}function W2(n){var a=Kl(n.target);if(a!==null){var o=s(a);if(o!==null){if(a=o.tag,a===13){if(a=c(o),a!==null){n.blockedOn=a,dm(n.priority,function(){K2(o)});return}}else if(a===31){if(a=f(o),a!==null){n.blockedOn=a,dm(n.priority,function(){K2(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function eu(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var o=jd(n.nativeEvent);if(o===null){o=n.nativeEvent;var u=new o.constructor(o.type,o);jc=u,o.target.dispatchEvent(u),jc=null}else return a=Ql(o),a!==null&&$2(a),n.blockedOn=o,!1;a.shift()}return!0}function J2(n,a,o){eu(n)&&o.delete(a)}function j9(){Hd=!1,qa!==null&&eu(qa)&&(qa=null),Ua!==null&&eu(Ua)&&(Ua=null),Ga!==null&&eu(Ga)&&(Ga=null),K0.forEach(J2),Q0.forEach(J2)}function tu(n,a){n.blockedOn===a&&(n.blockedOn=null,Hd||(Hd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,j9)))}var nu=null;function e3(n){nu!==n&&(nu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){nu===n&&(nu=null);for(var a=0;a<n.length;a+=3){var o=n[a],u=n[a+1],m=n[a+2];if(typeof u!="function"){if(Bd(u||o)===null)continue;break}var p=Ql(o);p!==null&&(n.splice(a,3),a-=3,jf(p,{pending:!0,data:m,method:o.method,action:u},u,m))}}))}function Di(n){function a(B){return tu(B,n)}qa!==null&&tu(qa,n),Ua!==null&&tu(Ua,n),Ga!==null&&tu(Ga,n),K0.forEach(a),Q0.forEach(a);for(var o=0;o<Fa.length;o++){var u=Fa[o];u.blockedOn===n&&(u.blockedOn=null)}for(;0<Fa.length&&(o=Fa[0],o.blockedOn===null);)W2(o),o.blockedOn===null&&Fa.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var m=o[u],p=o[u+1],S=m[vn]||null;if(typeof p=="function")S||e3(o);else if(S){var z=null;if(p&&p.hasAttribute("formAction")){if(m=p,S=p[vn]||null)z=S.formAction;else if(Bd(m)!==null)continue}else z=S.action;typeof z=="function"?o[u+1]=z:(o.splice(u,3),u-=3),e3(o)}}}function t3(){function n(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(S){return m=S})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),u||setTimeout(o,20)}function o(){if(!u&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,m=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){u=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function qd(n){this._internalRoot=n}ru.prototype.render=qd.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(l(409));var o=a.current,u=Bn();I2(o,u,n,a,null,null)},ru.prototype.unmount=qd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;I2(n.current,2,null,n,null,null),Bs(),a[$l]=null}};function ru(n){this._internalRoot=n}ru.prototype.unstable_scheduleHydration=function(n){if(n){var a=fm();n={blockedOn:null,target:n,priority:a};for(var o=0;o<Fa.length&&a!==0&&a<Fa[o].priority;o++);Fa.splice(o,0,n),o===0&&W2(n)}};var n3=t.version;if(n3!=="19.2.1")throw Error(l(527,n3,"19.2.1"));ne.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(l(188)):(n=Object.keys(n).join(","),Error(l(268,n)));return n=h(a),n=n!==null?v(n):null,n=n===null?null:n.stateNode,n};var B9={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{vr=au.inject(B9),ln=au}catch{}}return J0.createRoot=function(n,a){if(!i(n))throw Error(l(299));var o=!1,u="",m=up,p=cp,S=fp;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError)),a=P2(n,1,!1,null,null,o,u,null,m,p,S,t3),n[$l]=a.current,xd(n),new qd(a)},J0.hydrateRoot=function(n,a,o){if(!i(n))throw Error(l(299));var u=!1,m="",p=up,S=cp,z=fp,B=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(p=o.onUncaughtError),o.onCaughtError!==void 0&&(S=o.onCaughtError),o.onRecoverableError!==void 0&&(z=o.onRecoverableError),o.formState!==void 0&&(B=o.formState)),a=P2(n,1,!0,a,o??null,u,m,B,p,S,z,t3),a.context=V2(null),o=a.current,u=Bn(),u=kc(u),m=Ca(u),m.callback=null,ka(o,m,u),o=u,a.current.lanes=o,s0(a,o),Sr(a),n[$l]=a.current,xd(n),new ru(a)},J0.version="19.2.1",J0}var h3;function K9(){if(h3)return Yd.exports;h3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Yd.exports=$9(),Yd.exports}var Q9=K9();/**
50
- * react-router v7.10.1
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var m3="popstate";function Z9(e={}){function t(l,i){let{pathname:s,search:c,hash:f}=l.location;return N1("",{pathname:s,search:c,hash:f},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(l,i){return typeof i=="string"?i:mo(i)}return J9(t,r,null,e)}function At(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function W9(){return Math.random().toString(36).substring(2,10)}function p3(e,t){return{usr:e.state,key:e.key,idx:t}}function N1(e,t,r=null,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?$i(t):t,state:r,key:t&&t.key||l||W9()}}function mo({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function $i(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let l=e.indexOf("?");l>=0&&(t.search=e.substring(l),e=e.substring(0,l)),e&&(t.pathname=e)}return t}function J9(e,t,r,l={}){let{window:i=document.defaultView,v5Compat:s=!1}=l,c=i.history,f="POP",d=null,h=v();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function v(){return(c.state||{idx:null}).idx}function g(){f="POP";let T=v(),N=T==null?null:T-h;h=T,d&&d({action:f,location:A.location,delta:N})}function b(T,N){f="PUSH";let O=N1(A.location,T,N);h=v()+1;let R=p3(O,h),H=A.createHref(O);try{c.pushState(R,"",H)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;i.location.assign(H)}s&&d&&d({action:f,location:A.location,delta:1})}function w(T,N){f="REPLACE";let O=N1(A.location,T,N);h=v();let R=p3(O,h),H=A.createHref(O);c.replaceState(R,"",H),s&&d&&d({action:f,location:A.location,delta:0})}function E(T){return eb(T)}let A={get action(){return f},get location(){return e(i,c)},listen(T){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(m3,g),d=T,()=>{i.removeEventListener(m3,g),d=null}},createHref(T){return t(i,T)},createURL:E,encodeLocation(T){let N=E(T);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:b,replace:w,go(T){return c.go(T)}};return A}function eb(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),At(r,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:mo(e);return l=l.replace(/ $/,"%20"),!t&&l.startsWith("//")&&(l=r+l),new URL(l,r)}function d6(e,t,r="/"){return tb(e,t,r,!1)}function tb(e,t,r,l){let i=typeof t=="string"?$i(t):t,s=fa(i.pathname||"/",r);if(s==null)return null;let c=h6(e);nb(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let h=hb(s);f=fb(c[d],h,l)}return f}function h6(e,t=[],r=[],l="",i=!1){let s=(c,f,d=i,h)=>{let v={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(l)&&d)return;At(v.relativePath.startsWith(l),`Absolute route path "${v.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(l.length)}let g=sa([l,v.relativePath]),b=r.concat(v);c.children&&c.children.length>0&&(At(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),h6(c.children,t,b,g,d)),!(c.path==null&&!c.index)&&t.push({path:g,score:ub(g,c.index),routesMeta:b})};return e.forEach((c,f)=>{var d;if(c.path===""||!((d=c.path)!=null&&d.includes("?")))s(c,f);else for(let h of m6(c.path))s(c,f,!0,h)}),t}function m6(e){let t=e.split("/");if(t.length===0)return[];let[r,...l]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(l.length===0)return i?[s,""]:[s];let c=m6(l.join("/")),f=[];return f.push(...c.map(d=>d===""?s:[s,d].join("/"))),i&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function nb(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:cb(t.routesMeta.map(l=>l.childrenIndex),r.routesMeta.map(l=>l.childrenIndex)))}var rb=/^:[\w-]+$/,ab=3,lb=2,ib=1,ob=10,sb=-2,v3=e=>e==="*";function ub(e,t){let r=e.split("/"),l=r.length;return r.some(v3)&&(l+=sb),t&&(l+=lb),r.filter(i=>!v3(i)).reduce((i,s)=>i+(rb.test(s)?ab:s===""?ib:ob),l)}function cb(e,t){return e.length===t.length&&e.slice(0,-1).every((l,i)=>l===t[i])?e[e.length-1]-t[t.length-1]:0}function fb(e,t,r=!1){let{routesMeta:l}=e,i={},s="/",c=[];for(let f=0;f<l.length;++f){let d=l[f],h=f===l.length-1,v=s==="/"?t:t.slice(s.length)||"/",g=Lu({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},v),b=d.route;if(!g&&h&&r&&!l[l.length-1].route.index&&(g=Lu({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},v)),!g)return null;Object.assign(i,g.params),c.push({params:i,pathname:sa([s,g.pathname]),pathnameBase:yb(sa([s,g.pathnameBase])),route:b}),g.pathnameBase!=="/"&&(s=sa([s,g.pathnameBase]))}return c}function Lu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,l]=db(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let s=i[0],c=s.replace(/(.)\/+$/,"$1"),f=i.slice(1);return{params:l.reduce((h,{paramName:v,isOptional:g},b)=>{if(v==="*"){let E=f[b]||"";c=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const w=f[b];return g&&!w?h[v]=void 0:h[v]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:c,pattern:e}}function db(e,t=!1,r=!0){rr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let l=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d)=>(l.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(l.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),l]}function hb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function fa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,l=e.charAt(r);return l&&l!=="/"?null:e.slice(r)||"/"}var mb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pb=e=>mb.test(e);function vb(e,t="/"){let{pathname:r,search:l="",hash:i=""}=typeof e=="string"?$i(e):e,s;if(r)if(pb(r))s=r;else{if(r.includes("//")){let c=r;r=r.replace(/\/\/+/g,"/"),rr(!1,`Pathnames cannot have embedded double slashes - normalizing ${c} -> ${r}`)}r.startsWith("/")?s=g3(r.substring(1),"/"):s=g3(r,t)}else s=t;return{pathname:s,search:bb(l),hash:xb(i)}}function g3(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Xd(e,t,r,l){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gb(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function p6(e){let t=gb(e);return t.map((r,l)=>l===t.length-1?r.pathname:r.pathnameBase)}function v6(e,t,r,l=!1){let i;typeof e=="string"?i=$i(e):(i={...e},At(!i.pathname||!i.pathname.includes("?"),Xd("?","pathname","search",i)),At(!i.pathname||!i.pathname.includes("#"),Xd("#","pathname","hash",i)),At(!i.search||!i.search.includes("#"),Xd("#","search","hash",i)));let s=e===""||i.pathname==="",c=s?"/":i.pathname,f;if(c==null)f=r;else{let g=t.length-1;if(!l&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),g-=1;i.pathname=b.join("/")}f=g>=0?t[g]:"/"}let d=vb(i,f),h=c&&c!=="/"&&c.endsWith("/"),v=(s||c===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(h||v)&&(d.pathname+="/"),d}var sa=e=>e.join("/").replace(/\/\/+/g,"/"),yb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function wb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Sb(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var g6=["POST","PUT","PATCH","DELETE"];new Set(g6);var Ab=["GET",...g6];new Set(Ab);var Ki=M.createContext(null);Ki.displayName="DataRouter";var nc=M.createContext(null);nc.displayName="DataRouterState";M.createContext(!1);var y6=M.createContext({isTransitioning:!1});y6.displayName="ViewTransition";var Mb=M.createContext(new Map);Mb.displayName="Fetchers";var Eb=M.createContext(null);Eb.displayName="Await";var mr=M.createContext(null);mr.displayName="Navigation";var No=M.createContext(null);No.displayName="Location";var Or=M.createContext({outlet:null,matches:[],isDataRoute:!1});Or.displayName="Route";var ah=M.createContext(null);ah.displayName="RouteError";function Tb(e,{relative:t}={}){At(zo(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:l}=M.useContext(mr),{hash:i,pathname:s,search:c}=Do(e,{relative:t}),f=s;return r!=="/"&&(f=s==="/"?r:sa([r,s])),l.createHref({pathname:f,search:c,hash:i})}function zo(){return M.useContext(No)!=null}function cl(){return At(zo(),"useLocation() may be used only in the context of a <Router> component."),M.useContext(No).location}var b6="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function x6(e){M.useContext(mr).static||M.useLayoutEffect(e)}function w6(){let{isDataRoute:e}=M.useContext(Or);return e?qb():Cb()}function Cb(){At(zo(),"useNavigate() may be used only in the context of a <Router> component.");let e=M.useContext(Ki),{basename:t,navigator:r}=M.useContext(mr),{matches:l}=M.useContext(Or),{pathname:i}=cl(),s=JSON.stringify(p6(l)),c=M.useRef(!1);return x6(()=>{c.current=!0}),M.useCallback((d,h={})=>{if(rr(c.current,b6),!c.current)return;if(typeof d=="number"){r.go(d);return}let v=v6(d,JSON.parse(s),i,h.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:sa([t,v.pathname])),(h.replace?r.replace:r.push)(v,h.state,h)},[t,r,s,i,e])}M.createContext(null);function lh(){let{matches:e}=M.useContext(Or),t=e[e.length-1];return t?t.params:{}}function Do(e,{relative:t}={}){let{matches:r}=M.useContext(Or),{pathname:l}=cl(),i=JSON.stringify(p6(r));return M.useMemo(()=>v6(e,JSON.parse(i),l,t==="path"),[e,i,l,t])}function kb(e,t){return S6(e,t)}function S6(e,t,r,l,i){var O;At(zo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=M.useContext(mr),{matches:c}=M.useContext(Or),f=c[c.length-1],d=f?f.params:{},h=f?f.pathname:"/",v=f?f.pathnameBase:"/",g=f&&f.route;{let R=g&&g.path||"";A6(h,!g||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let b=cl(),w;if(t){let R=typeof t=="string"?$i(t):t;At(v==="/"||((O=R.pathname)==null?void 0:O.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${R.pathname}" was given in the \`location\` prop.`),w=R}else w=b;let E=w.pathname||"/",A=E;if(v!=="/"){let R=v.replace(/^\//,"").split("/");A="/"+E.replace(/^\//,"").split("/").slice(R.length).join("/")}let T=d6(e,{pathname:A});rr(g||T!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),rr(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=Rb(T&&T.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:sa([v,s.encodeLocation?s.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?v:sa([v,s.encodeLocation?s.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),c,r,l,i);return t&&N?M.createElement(No.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},N):N}function Nb(){let e=Hb(),t=wb(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,l="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:l},s={padding:"2px 4px",backgroundColor:l},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=M.createElement(M.Fragment,null,M.createElement("p",null,"💿 Hey developer 👋"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:s},"ErrorBoundary")," or"," ",M.createElement("code",{style:s},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),r?M.createElement("pre",{style:i},r):null,c)}var zb=M.createElement(Nb,null),Db=class extends M.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?M.createElement(Or.Provider,{value:this.props.routeContext},M.createElement(ah.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ob({routeContext:e,match:t,children:r}){let l=M.useContext(Ki);return l&&l.static&&l.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=t.route.id),M.createElement(Or.Provider,{value:e},r)}function Rb(e,t=[],r=null,l=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,c=r==null?void 0:r.errors;if(c!=null){let v=s.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);At(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,v+1))}let f=!1,d=-1;if(r)for(let v=0;v<s.length;v++){let g=s[v];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=v),g.route.id){let{loaderData:b,errors:w}=r,E=g.route.loader&&!b.hasOwnProperty(g.route.id)&&(!w||w[g.route.id]===void 0);if(g.route.lazy||E){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}let h=r&&l?(v,g)=>{var b,w;l(v,{location:r.location,params:((w=(b=r.matches)==null?void 0:b[0])==null?void 0:w.params)??{},unstable_pattern:Sb(r.matches),errorInfo:g})}:void 0;return s.reduceRight((v,g,b)=>{let w,E=!1,A=null,T=null;r&&(w=c&&g.route.id?c[g.route.id]:void 0,A=g.route.errorElement||zb,f&&(d<0&&b===0?(A6("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,T=null):d===b&&(E=!0,T=g.route.hydrateFallbackElement||null)));let N=t.concat(s.slice(0,b+1)),O=()=>{let R;return w?R=A:E?R=T:g.route.Component?R=M.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=v,M.createElement(Ob,{match:g,routeContext:{outlet:v,matches:N,isDataRoute:r!=null},children:R})};return r&&(g.route.ErrorBoundary||g.route.errorElement||b===0)?M.createElement(Db,{location:r.location,revalidation:r.revalidation,component:A,error:w,children:O(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:h}):O()},null)}function ih(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lb(e){let t=M.useContext(Ki);return At(t,ih(e)),t}function _b(e){let t=M.useContext(nc);return At(t,ih(e)),t}function jb(e){let t=M.useContext(Or);return At(t,ih(e)),t}function oh(e){let t=jb(e),r=t.matches[t.matches.length-1];return At(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Bb(){return oh("useRouteId")}function Hb(){var l;let e=M.useContext(ah),t=_b("useRouteError"),r=oh("useRouteError");return e!==void 0?e:(l=t.errors)==null?void 0:l[r]}function qb(){let{router:e}=Lb("useNavigate"),t=oh("useNavigate"),r=M.useRef(!1);return x6(()=>{r.current=!0}),M.useCallback(async(i,s={})=>{rr(r.current,b6),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var y3={};function A6(e,t,r){!t&&!y3[e]&&(y3[e]=!0,rr(!1,r))}M.memo(Ub);function Ub({routes:e,future:t,state:r,unstable_onError:l}){return S6(e,void 0,r,l,t)}function Mu(e){At(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Gb({basename:e="/",children:t=null,location:r,navigationType:l="POP",navigator:i,static:s=!1,unstable_useTransitions:c}){At(!zo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=M.useMemo(()=>({basename:f,navigator:i,static:s,unstable_useTransitions:c,future:{}}),[f,i,s,c]);typeof r=="string"&&(r=$i(r));let{pathname:h="/",search:v="",hash:g="",state:b=null,key:w="default"}=r,E=M.useMemo(()=>{let A=fa(h,f);return A==null?null:{location:{pathname:A,search:v,hash:g,state:b,key:w},navigationType:l}},[f,h,v,g,b,w,l]);return rr(E!=null,`<Router basename="${f}"> is not able to match the URL "${h}${v}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:M.createElement(mr.Provider,{value:d},M.createElement(No.Provider,{children:t,value:E}))}function Fb({children:e,location:t}){return kb(z1(e),t)}function z1(e,t=[]){let r=[];return M.Children.forEach(e,(l,i)=>{if(!M.isValidElement(l))return;let s=[...t,i];if(l.type===M.Fragment){r.push.apply(r,z1(l.props.children,s));return}At(l.type===Mu,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),At(!l.props.index||!l.props.children,"An index route cannot have child routes.");let c={id:l.props.id||s.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(c.children=z1(l.props.children,s)),r.push(c)}),r}var Eu="get",Tu="application/x-www-form-urlencoded";function rc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Yb(e){return rc(e)&&e.tagName.toLowerCase()==="button"}function Pb(e){return rc(e)&&e.tagName.toLowerCase()==="form"}function Vb(e){return rc(e)&&e.tagName.toLowerCase()==="input"}function Ib(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Xb(e,t){return e.button===0&&(!t||t==="_self")&&!Ib(e)}function D1(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let l=e[r];return t.concat(Array.isArray(l)?l.map(i=>[r,i]):[[r,l]])},[]))}function $b(e,t){let r=D1(e);return t&&t.forEach((l,i)=>{r.has(i)||t.getAll(i).forEach(s=>{r.append(i,s)})}),r}var lu=null;function Kb(){if(lu===null)try{new FormData(document.createElement("form"),0),lu=!1}catch{lu=!0}return lu}var Qb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $d(e){return e!=null&&!Qb.has(e)?(rr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tu}"`),null):e}function Zb(e,t){let r,l,i,s,c;if(Pb(e)){let f=e.getAttribute("action");l=f?fa(f,t):null,r=e.getAttribute("method")||Eu,i=$d(e.getAttribute("enctype"))||Tu,s=new FormData(e)}else if(Yb(e)||Vb(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(l=d?fa(d,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||Eu,i=$d(e.getAttribute("formenctype"))||$d(f.getAttribute("enctype"))||Tu,s=new FormData(f,e),!Kb()){let{name:h,type:v,value:g}=e;if(v==="image"){let b=h?`${h}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else h&&s.append(h,g)}}else{if(rc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Eu,l=null,i=Tu,c=e}return s&&i==="text/plain"&&(c=s,s=void 0),{action:l,method:r.toLowerCase(),encType:i,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wb(e,t,r){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return l.pathname==="/"?l.pathname=`_root.${r}`:t&&fa(l.pathname,t)==="/"?l.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${r}`,l}async function Jb(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ex(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function tx(e,t,r){let l=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let c=await Jb(s,r);return c.links?c.links():[]}return[]}));return lx(l.flat(1).filter(ex).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function b3(e,t,r,l,i,s){let c=(d,h)=>r[h]?d.route.id!==r[h].route.id:!0,f=(d,h)=>{var v;return r[h].pathname!==d.pathname||((v=r[h].route.path)==null?void 0:v.endsWith("*"))&&r[h].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,h)=>c(d,h)||f(d,h)):s==="data"?t.filter((d,h)=>{var g;let v=l.routes[d.route.id];if(!v||!v.hasLoader)return!1;if(c(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let b=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function nx(e,t,{includeHydrateFallback:r}={}){return rx(e.map(l=>{let i=t.routes[l.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function rx(e){return[...new Set(e)]}function ax(e){let t={},r=Object.keys(e).sort();for(let l of r)t[l]=e[l];return t}function lx(e,t){let r=new Set;return new Set(t),e.reduce((l,i)=>{let s=JSON.stringify(ax(i));return r.has(s)||(r.add(s),l.push({key:s,link:i})),l},[])}function M6(){let e=M.useContext(Ki);return sh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ix(){let e=M.useContext(nc);return sh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var uh=M.createContext(void 0);uh.displayName="FrameworkContext";function E6(){let e=M.useContext(uh);return sh(e,"You must render this element inside a <HydratedRouter> element"),e}function ox(e,t){let r=M.useContext(uh),[l,i]=M.useState(!1),[s,c]=M.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:v,onTouchStart:g}=t,b=M.useRef(null);M.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let A=N=>{N.forEach(O=>{c(O.isIntersecting)})},T=new IntersectionObserver(A,{threshold:.5});return b.current&&T.observe(b.current),()=>{T.disconnect()}}},[e]),M.useEffect(()=>{if(l){let A=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(A)}}},[l]);let w=()=>{i(!0)},E=()=>{i(!1),c(!1)};return r?e!=="intent"?[s,b,{}]:[s,b,{onFocus:eo(f,w),onBlur:eo(d,E),onMouseEnter:eo(h,w),onMouseLeave:eo(v,E),onTouchStart:eo(g,w)}]:[!1,b,{}]}function eo(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function sx({page:e,...t}){let{router:r}=M6(),l=M.useMemo(()=>d6(r.routes,e,r.basename),[r.routes,e,r.basename]);return l?M.createElement(cx,{page:e,matches:l,...t}):null}function ux(e){let{manifest:t,routeModules:r}=E6(),[l,i]=M.useState([]);return M.useEffect(()=>{let s=!1;return tx(e,t,r).then(c=>{s||i(c)}),()=>{s=!0}},[e,t,r]),l}function cx({page:e,matches:t,...r}){let l=cl(),{manifest:i,routeModules:s}=E6(),{basename:c}=M6(),{loaderData:f,matches:d}=ix(),h=M.useMemo(()=>b3(e,t,d,i,l,"data"),[e,t,d,i,l]),v=M.useMemo(()=>b3(e,t,d,i,l,"assets"),[e,t,d,i,l]),g=M.useMemo(()=>{if(e===l.pathname+l.search+l.hash)return[];let E=new Set,A=!1;if(t.forEach(N=>{var R;let O=i.routes[N.route.id];!O||!O.hasLoader||(!h.some(H=>H.route.id===N.route.id)&&N.route.id in f&&((R=s[N.route.id])!=null&&R.shouldRevalidate)||O.hasClientLoader?A=!0:E.add(N.route.id))}),E.size===0)return[];let T=Wb(e,c,"data");return A&&E.size>0&&T.searchParams.set("_routes",t.filter(N=>E.has(N.route.id)).map(N=>N.route.id).join(",")),[T.pathname+T.search]},[c,f,l,i,h,t,e,s]),b=M.useMemo(()=>nx(v,i),[v,i]),w=ux(v);return M.createElement(M.Fragment,null,g.map(E=>M.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),b.map(E=>M.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),w.map(({key:E,link:A})=>M.createElement("link",{key:E,nonce:r.nonce,...A})))}function fx(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var T6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{T6&&(window.__reactRouterVersion="7.10.1")}catch{}function dx({basename:e,children:t,unstable_useTransitions:r,window:l}){let i=M.useRef();i.current==null&&(i.current=Z9({window:l,v5Compat:!0}));let s=i.current,[c,f]=M.useState({action:s.action,location:s.location}),d=M.useCallback(h=>{r===!1?f(h):M.startTransition(()=>f(h))},[r]);return M.useLayoutEffect(()=>s.listen(d),[s,d]),M.createElement(Gb,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:s,unstable_useTransitions:r===!0})}var C6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pi=M.forwardRef(function({onClick:t,discover:r="render",prefetch:l="none",relative:i,reloadDocument:s,replace:c,state:f,target:d,to:h,preventScrollReset:v,viewTransition:g,...b},w){let{basename:E,unstable_useTransitions:A}=M.useContext(mr),T=typeof h=="string"&&C6.test(h),N,O=!1;if(typeof h=="string"&&T&&(N=h,T6))try{let de=new URL(window.location.href),ce=h.startsWith("//")?new URL(de.protocol+h):new URL(h),he=fa(ce.pathname,E);ce.origin===de.origin&&he!=null?h=he+ce.search+ce.hash:O=!0}catch{rr(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=Tb(h,{relative:i}),[H,F,I]=ox(l,b),G=vx(h,{replace:c,state:f,target:d,preventScrollReset:v,relative:i,viewTransition:g,unstable_useTransitions:A});function V(de){t&&t(de),de.defaultPrevented||G(de)}let te=M.createElement("a",{...b,...I,href:N||R,onClick:O||s?t:V,ref:fx(w,F),target:d,"data-discover":!T&&r==="render"?"true":void 0});return H&&!T?M.createElement(M.Fragment,null,te,M.createElement(sx,{page:R})):te});Pi.displayName="Link";var hx=M.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:l="",end:i=!1,style:s,to:c,viewTransition:f,children:d,...h},v){let g=Do(c,{relative:h.relative}),b=cl(),w=M.useContext(nc),{navigator:E,basename:A}=M.useContext(mr),T=w!=null&&Sx(g)&&f===!0,N=E.encodeLocation?E.encodeLocation(g).pathname:g.pathname,O=b.pathname,R=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(O=O.toLowerCase(),R=R?R.toLowerCase():null,N=N.toLowerCase()),R&&A&&(R=fa(R,A)||R);const H=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let F=O===N||!i&&O.startsWith(N)&&O.charAt(H)==="/",I=R!=null&&(R===N||!i&&R.startsWith(N)&&R.charAt(N.length)==="/"),G={isActive:F,isPending:I,isTransitioning:T},V=F?t:void 0,te;typeof l=="function"?te=l(G):te=[l,F?"active":null,I?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let de=typeof s=="function"?s(G):s;return M.createElement(Pi,{...h,"aria-current":V,className:te,ref:v,style:de,to:c,viewTransition:f},typeof d=="function"?d(G):d)});hx.displayName="NavLink";var mx=M.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:l,replace:i,state:s,method:c=Eu,action:f,onSubmit:d,relative:h,preventScrollReset:v,viewTransition:g,...b},w)=>{let{unstable_useTransitions:E}=M.useContext(mr),A=xx(),T=wx(f,{relative:h}),N=c.toLowerCase()==="get"?"get":"post",O=typeof f=="string"&&C6.test(f),R=H=>{if(d&&d(H),H.defaultPrevented)return;H.preventDefault();let F=H.nativeEvent.submitter,I=(F==null?void 0:F.getAttribute("formmethod"))||c,G=()=>A(F||H.currentTarget,{fetcherKey:t,method:I,navigate:r,replace:i,state:s,relative:h,preventScrollReset:v,viewTransition:g});E&&r!==!1?M.startTransition(()=>G()):G()};return M.createElement("form",{ref:w,method:N,action:T,onSubmit:l?d:R,...b,"data-discover":!O&&e==="render"?"true":void 0})});mx.displayName="Form";function px(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function k6(e){let t=M.useContext(Ki);return At(t,px(e)),t}function vx(e,{target:t,replace:r,state:l,preventScrollReset:i,relative:s,viewTransition:c,unstable_useTransitions:f}={}){let d=w6(),h=cl(),v=Do(e,{relative:s});return M.useCallback(g=>{if(Xb(g,t)){g.preventDefault();let b=r!==void 0?r:mo(h)===mo(v),w=()=>d(e,{replace:b,state:l,preventScrollReset:i,relative:s,viewTransition:c});f?M.startTransition(()=>w()):w()}},[h,d,v,r,l,t,e,i,s,c,f])}function gx(e){rr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=M.useRef(D1(e)),r=M.useRef(!1),l=cl(),i=M.useMemo(()=>$b(l.search,r.current?null:t.current),[l.search]),s=w6(),c=M.useCallback((f,d)=>{const h=D1(typeof f=="function"?f(new URLSearchParams(i)):f);r.current=!0,s("?"+h,d)},[s,i]);return[i,c]}var yx=0,bx=()=>`__${String(++yx)}__`;function xx(){let{router:e}=k6("useSubmit"),{basename:t}=M.useContext(mr),r=Bb(),l=e.fetch,i=e.navigate;return M.useCallback(async(s,c={})=>{let{action:f,method:d,encType:h,formData:v,body:g}=Zb(s,t);if(c.navigate===!1){let b=c.fetcherKey||bx();await l(b,r,c.action||f,{preventScrollReset:c.preventScrollReset,formData:v,body:g,formMethod:c.method||d,formEncType:c.encType||h,flushSync:c.flushSync})}else await i(c.action||f,{preventScrollReset:c.preventScrollReset,formData:v,body:g,formMethod:c.method||d,formEncType:c.encType||h,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[l,i,t,r])}function wx(e,{relative:t}={}){let{basename:r}=M.useContext(mr),l=M.useContext(Or);At(l,"useFormAction must be used inside a RouteContext");let[i]=l.matches.slice(-1),s={...Do(e||".",{relative:t})},c=cl();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),d=f.getAll("index");if(d.some(v=>v==="")){f.delete("index"),d.filter(g=>g).forEach(g=>f.append("index",g));let v=f.toString();s.search=v?`?${v}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:sa([r,s.pathname])),mo(s)}function Sx(e,{relative:t}={}){let r=M.useContext(y6);At(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=k6("useViewTransitionState"),i=Do(e,{relative:t});if(!r.isTransitioning)return!1;let s=fa(r.currentLocation.pathname,l)||r.currentLocation.pathname,c=fa(r.nextLocation.pathname,l)||r.nextLocation.pathname;return Lu(i.pathname,c)!=null||Lu(i.pathname,s)!=null}var ac=f6();const Ax=c6(ac);var Mx=(e,t,r,l,i,s,c,f)=>{let d=document.documentElement,h=["light","dark"];function v(w){(Array.isArray(e)?e:[e]).forEach(E=>{let A=E==="class",T=A&&s?i.map(N=>s[N]||N):i;A?(d.classList.remove(...T),d.classList.add(s&&s[w]?s[w]:w)):d.setAttribute(E,w)}),g(w)}function g(w){f&&h.includes(w)&&(d.style.colorScheme=w)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(l)v(l);else try{let w=localStorage.getItem(t)||r,E=c&&w==="system"?b():w;v(E)}catch{}},x3=["light","dark"],N6="(prefers-color-scheme: dark)",Ex=typeof window>"u",ch=M.createContext(void 0),Tx={setTheme:e=>{},themes:[]},z6=()=>{var e;return(e=M.useContext(ch))!=null?e:Tx},Cx=e=>M.useContext(ch)?M.createElement(M.Fragment,null,e.children):M.createElement(Nx,{...e}),kx=["light","dark"],Nx=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:l=!0,storageKey:i="theme",themes:s=kx,defaultTheme:c=r?"system":"light",attribute:f="data-theme",value:d,children:h,nonce:v,scriptProps:g})=>{let[b,w]=M.useState(()=>Dx(i,c)),[E,A]=M.useState(()=>b==="system"?Kd():b),T=d?Object.values(d):s,N=M.useCallback(F=>{let I=F;if(!I)return;F==="system"&&r&&(I=Kd());let G=d?d[I]:I,V=t?Ox(v):null,te=document.documentElement,de=ce=>{ce==="class"?(te.classList.remove(...T),G&&te.classList.add(G)):ce.startsWith("data-")&&(G?te.setAttribute(ce,G):te.removeAttribute(ce))};if(Array.isArray(f)?f.forEach(de):de(f),l){let ce=x3.includes(c)?c:null,he=x3.includes(I)?I:ce;te.style.colorScheme=he}V==null||V()},[v]),O=M.useCallback(F=>{let I=typeof F=="function"?F(b):F;w(I);try{localStorage.setItem(i,I)}catch{}},[b]),R=M.useCallback(F=>{let I=Kd(F);A(I),b==="system"&&r&&!e&&N("system")},[b,e]);M.useEffect(()=>{let F=window.matchMedia(N6);return F.addListener(R),R(F),()=>F.removeListener(R)},[R]),M.useEffect(()=>{let F=I=>{I.key===i&&(I.newValue?w(I.newValue):O(c))};return window.addEventListener("storage",F),()=>window.removeEventListener("storage",F)},[O]),M.useEffect(()=>{N(e??b)},[e,b]);let H=M.useMemo(()=>({theme:b,setTheme:O,forcedTheme:e,resolvedTheme:b==="system"?E:b,themes:r?[...s,"system"]:s,systemTheme:r?E:void 0}),[b,O,e,E,r,s]);return M.createElement(ch.Provider,{value:H},M.createElement(zx,{forcedTheme:e,storageKey:i,attribute:f,enableSystem:r,enableColorScheme:l,defaultTheme:c,value:d,themes:s,nonce:v,scriptProps:g}),h)},zx=M.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:l,enableColorScheme:i,defaultTheme:s,value:c,themes:f,nonce:d,scriptProps:h})=>{let v=JSON.stringify([r,t,s,e,f,c,l,i]).slice(1,-1);return M.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(${Mx.toString()})(${v})`}})}),Dx=(e,t)=>{if(Ex)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},Ox=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},Kd=e=>(e||(e=window.matchMedia(N6)),e.matches?"dark":"light");function Rx({children:e,...t}){return k.jsx(Cx,{...t,children:e})}async function Lx(e,t){const r=t==="."?[]:t.split("/").filter(Boolean);let l=null,i=e;for(let s=0;s<r.length;s++){const c=r[s];if(s===r.length-1){const h=i.children.find(v=>v.type==="file"&&v.name===c);if(h){l=h;break}}const d=i.children.find(h=>h.type==="directory"&&h.name===c);if(!d)throw new Error(`Path not found: ${t}`);i=d}return{directory:i,file:l}}function O1(e){return e.children.find(r=>r.type==="file"&&["README.md","Readme.md","readme.md","README.mdx","Readme.mdx","readme.mdx"].includes(r.name))||null}function D6(e){return e.children.find(r=>r.type==="file"&&["SLIDES.md","Slides.md","slides.md","SLIDES.mdx","Slides.mdx","slides.mdx"].includes(r.name))||null}function fh(e="."){const[t,r]=M.useState(null),[l,i]=M.useState(null),[s,c]=M.useState(!0),[f,d]=M.useState(null);return M.useEffect(()=>(c(!0),d(null),(async()=>{try{const h=await fetch("/raw/.veslx.json");if(!h.ok){h.status===404?d({type:"config_not_found",message:".veslx.json not found"}):d({type:"fetch_error",message:`Failed to fetch: ${h.status} ${h.statusText}`});return}let v;try{v=await h.json()}catch{d({type:"parse_error",message:"Failed to parse .veslx.json"});return}let g;try{g=await Lx(v,e)}catch{d({type:"path_not_found",message:`Path not found: ${e}`,status:404});return}g.directory.children.sort((b,w)=>{let E,A;if(b.children){const T=O1(b);T&&T.frontmatter&&T.frontmatter.date&&(E=new Date(T.frontmatter.date))}if(w.children){const T=O1(w);T&&T.frontmatter&&T.frontmatter.date&&(A=new Date(T.frontmatter.date))}return E&&A?A.getTime()-E.getTime():0}),r(g.directory),i(g.file)}catch(h){d({type:"fetch_error",message:h.message||"Unknown error"})}finally{c(!1)}})(),()=>{}),[e]),{directory:t,file:l,loading:s,error:f}}function O6(e){const[t,r]=M.useState(null),[l,i]=M.useState(null),[s,c]=M.useState(!0),[f,d]=M.useState(null);return M.useEffect(()=>{const h=new AbortController;return c(!0),d(null),(async()=>{try{const v=await fetch(`/raw/${e}`,{signal:h.signal});if(!v.ok)throw new Error(`Failed to fetch: ${v.status} ${v.statusText}`);const g=await v.blob();r(g);try{const b=await g.text();i(b)}catch{i(null)}}catch(v){if(v instanceof Error&&v.name==="AbortError")return;d(v instanceof Error?v.message:"Unknown error")}finally{c(!1)}})(),()=>h.abort()},[e]),{blob:t,content:l,loading:s,error:f}}function R6(){const[e,t]=M.useState(!1);return M.useEffect(()=>{let r;const l=async()=>{const s=await(await fetch("/raw/.running")).text();t(s==="")};return l(),r=setInterval(l,1e3),()=>{clearInterval(r)}},[]),e}function dh(){return k.jsx("main",{className:"min-h-screen flex items-center justify-center bg-background",children:k.jsxs("div",{className:"flex flex-col items-center gap-6 animate-fade-in",children:[k.jsxs("div",{className:"flex items-center gap-3",children:[k.jsx("div",{className:"w-1.5 h-1.5 bg-primary/60 rounded-full animate-pulse"}),k.jsx("div",{className:"w-1.5 h-1.5 bg-primary/40 rounded-full animate-pulse",style:{animationDelay:"150ms"}}),k.jsx("div",{className:"w-1.5 h-1.5 bg-primary/20 rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),k.jsx("p",{className:"font-mono text-xs text-muted-foreground/50 tracking-widest uppercase",children:"loading"})]})})}function L6(e){var t,r,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=L6(e[t]))&&(l&&(l+=" "),l+=r)}else for(r in e)e[r]&&(l&&(l+=" "),l+=r);return l}function _6(){for(var e,t,r=0,l="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=L6(e))&&(l&&(l+=" "),l+=t);return l}const _x=(e,t)=>{const r=new Array(e.length+t.length);for(let l=0;l<e.length;l++)r[l]=e[l];for(let l=0;l<t.length;l++)r[e.length+l]=t[l];return r},jx=(e,t)=>({classGroupId:e,validator:t}),j6=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),_u="-",w3=[],Bx="arbitrary..",Hx=e=>{const t=Ux(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return qx(c);const f=c.split(_u),d=f[0]===""&&f.length>1?1:0;return B6(f,d,t)},getConflictingClassGroupIds:(c,f)=>{if(f){const d=l[c],h=r[c];return d?h?_x(h,d):d:h||w3}return r[c]||w3}}},B6=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],s=r.nextPart.get(i);if(s){const h=B6(e,t+1,s);if(h)return h}const c=r.validators;if(c===null)return;const f=t===0?e.join(_u):e.slice(t).join(_u),d=c.length;for(let h=0;h<d;h++){const v=c[h];if(v.validator(f))return v.classGroupId}},qx=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),l=t.slice(0,r);return l?Bx+l:void 0})(),Ux=e=>{const{theme:t,classGroups:r}=e;return Gx(r,t)},Gx=(e,t)=>{const r=j6();for(const l in e){const i=e[l];hh(i,r,l,t)}return r},hh=(e,t,r,l)=>{const i=e.length;for(let s=0;s<i;s++){const c=e[s];Fx(c,t,r,l)}},Fx=(e,t,r,l)=>{if(typeof e=="string"){Yx(e,t,r);return}if(typeof e=="function"){Px(e,t,r,l);return}Vx(e,t,r,l)},Yx=(e,t,r)=>{const l=e===""?t:H6(t,e);l.classGroupId=r},Px=(e,t,r,l)=>{if(Ix(e)){hh(e(l),t,r,l);return}t.validators===null&&(t.validators=[]),t.validators.push(jx(r,e))},Vx=(e,t,r,l)=>{const i=Object.entries(e),s=i.length;for(let c=0;c<s;c++){const[f,d]=i[c];hh(d,H6(t,f),r,l)}},H6=(e,t)=>{let r=e;const l=t.split(_u),i=l.length;for(let s=0;s<i;s++){const c=l[s];let f=r.nextPart.get(c);f||(f=j6(),r.nextPart.set(c,f)),r=f}return r},Ix=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Xx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),l=Object.create(null);const i=(s,c)=>{r[s]=c,t++,t>e&&(t=0,l=r,r=Object.create(null))};return{get(s){let c=r[s];if(c!==void 0)return c;if((c=l[s])!==void 0)return i(s,c),c},set(s,c){s in r?r[s]=c:i(s,c)}}},R1="!",S3=":",$x=[],A3=(e,t,r,l,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:l,isExternal:i}),Kx=e=>{const{prefix:t,experimentalParseClassName:r}=e;let l=i=>{const s=[];let c=0,f=0,d=0,h;const v=i.length;for(let A=0;A<v;A++){const T=i[A];if(c===0&&f===0){if(T===S3){s.push(i.slice(d,A)),d=A+1;continue}if(T==="/"){h=A;continue}}T==="["?c++:T==="]"?c--:T==="("?f++:T===")"&&f--}const g=s.length===0?i:i.slice(d);let b=g,w=!1;g.endsWith(R1)?(b=g.slice(0,-1),w=!0):g.startsWith(R1)&&(b=g.slice(1),w=!0);const E=h&&h>d?h-d:void 0;return A3(s,w,b,E)};if(t){const i=t+S3,s=l;l=c=>c.startsWith(i)?s(c.slice(i.length)):A3($x,!1,c,void 0,!0)}if(r){const i=l;l=s=>r({className:s,parseClassName:i})}return l},Qx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,l)=>{t.set(r,1e6+l)}),r=>{const l=[];let i=[];for(let s=0;s<r.length;s++){const c=r[s],f=c[0]==="[",d=t.has(c);f||d?(i.length>0&&(i.sort(),l.push(...i),i=[]),l.push(c)):i.push(c)}return i.length>0&&(i.sort(),l.push(...i)),l}},Zx=e=>({cache:Xx(e.cacheSize),parseClassName:Kx(e),sortModifiers:Qx(e),...Hx(e)}),Wx=/\s+/,Jx=(e,t)=>{const{parseClassName:r,getClassGroupId:l,getConflictingClassGroupIds:i,sortModifiers:s}=t,c=[],f=e.trim().split(Wx);let d="";for(let h=f.length-1;h>=0;h-=1){const v=f[h],{isExternal:g,modifiers:b,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:A}=r(v);if(g){d=v+(d.length>0?" "+d:d);continue}let T=!!A,N=l(T?E.substring(0,A):E);if(!N){if(!T){d=v+(d.length>0?" "+d:d);continue}if(N=l(E),!N){d=v+(d.length>0?" "+d:d);continue}T=!1}const O=b.length===0?"":b.length===1?b[0]:s(b).join(":"),R=w?O+R1:O,H=R+N;if(c.indexOf(H)>-1)continue;c.push(H);const F=i(N,T);for(let I=0;I<F.length;++I){const G=F[I];c.push(R+G)}d=v+(d.length>0?" "+d:d)}return d},ew=(...e)=>{let t=0,r,l,i="";for(;t<e.length;)(r=e[t++])&&(l=q6(r))&&(i&&(i+=" "),i+=l);return i},q6=e=>{if(typeof e=="string")return e;let t,r="";for(let l=0;l<e.length;l++)e[l]&&(t=q6(e[l]))&&(r&&(r+=" "),r+=t);return r},tw=(e,...t)=>{let r,l,i,s;const c=d=>{const h=t.reduce((v,g)=>g(v),e());return r=Zx(h),l=r.cache.get,i=r.cache.set,s=f,f(d)},f=d=>{const h=l(d);if(h)return h;const v=Jx(d,r);return i(d,v),v};return s=c,(...d)=>s(ew(...d))},nw=[],Ft=e=>{const t=r=>r[e]||nw;return t.isThemeGetter=!0,t},U6=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,G6=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rw=/^\d+\/\d+$/,aw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,iw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ow=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oi=e=>rw.test(e),Fe=e=>!!e&&!Number.isNaN(Number(e)),Va=e=>!!e&&Number.isInteger(Number(e)),Qd=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),ra=e=>aw.test(e),uw=()=>!0,cw=e=>lw.test(e)&&!iw.test(e),F6=()=>!1,fw=e=>ow.test(e),dw=e=>sw.test(e),hw=e=>!Me(e)&&!Ee(e),mw=e=>Qi(e,V6,F6),Me=e=>U6.test(e),Dl=e=>Qi(e,I6,cw),Zd=e=>Qi(e,bw,Fe),M3=e=>Qi(e,Y6,F6),pw=e=>Qi(e,P6,dw),iu=e=>Qi(e,X6,fw),Ee=e=>G6.test(e),to=e=>Zi(e,I6),vw=e=>Zi(e,xw),E3=e=>Zi(e,Y6),gw=e=>Zi(e,V6),yw=e=>Zi(e,P6),ou=e=>Zi(e,X6,!0),Qi=(e,t,r)=>{const l=U6.exec(e);return l?l[1]?t(l[1]):r(l[2]):!1},Zi=(e,t,r=!1)=>{const l=G6.exec(e);return l?l[1]?t(l[1]):r:!1},Y6=e=>e==="position"||e==="percentage",P6=e=>e==="image"||e==="url",V6=e=>e==="length"||e==="size"||e==="bg-size",I6=e=>e==="length",bw=e=>e==="number",xw=e=>e==="family-name",X6=e=>e==="shadow",ww=()=>{const e=Ft("color"),t=Ft("font"),r=Ft("text"),l=Ft("font-weight"),i=Ft("tracking"),s=Ft("leading"),c=Ft("breakpoint"),f=Ft("container"),d=Ft("spacing"),h=Ft("radius"),v=Ft("shadow"),g=Ft("inset-shadow"),b=Ft("text-shadow"),w=Ft("drop-shadow"),E=Ft("blur"),A=Ft("perspective"),T=Ft("aspect"),N=Ft("ease"),O=Ft("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...H(),Ee,Me],I=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],V=()=>[Ee,Me,d],te=()=>[Oi,"full","auto",...V()],de=()=>[Va,"none","subgrid",Ee,Me],ce=()=>["auto",{span:["full",Va,Ee,Me]},Va,Ee,Me],he=()=>[Va,"auto",Ee,Me],De=()=>["auto","min","max","fr",Ee,Me],we=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ce=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...V()],ne=()=>[Oi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],Q=()=>[e,Ee,Me],ie=()=>[...H(),E3,M3,{position:[Ee,Me]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",gw,mw,{size:[Ee,Me]}],W=()=>[Qd,to,Dl],le=()=>["","none","full",h,Ee,Me],se=()=>["",Fe,to,Dl],Se=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Fe,Qd,E3,M3],Be=()=>["","none",E,Ee,Me],Oe=()=>["none",Fe,Ee,Me],Ze=()=>["none",Fe,Ee,Me],Ye=()=>[Fe,Ee,Me],ye=()=>[Oi,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ra],breakpoint:[ra],color:[uw],container:[ra],"drop-shadow":[ra],ease:["in","out","in-out"],font:[hw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ra],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ra],shadow:[ra],spacing:["px",Fe],text:[ra],"text-shadow":[ra],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Oi,Me,Ee,T]}],container:["container"],columns:[{columns:[Fe,Me,Ee,f]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[Va,"auto",Ee,Me]}],basis:[{basis:[Oi,"full","auto",f,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,Oi,"auto","initial","none",Me]}],grow:[{grow:["",Fe,Ee,Me]}],shrink:[{shrink:["",Fe,Ee,Me]}],order:[{order:[Va,"first","last","none",Ee,Me]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":De()}],"auto-rows":[{"auto-rows":De()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...we(),"normal"]}],"justify-items":[{"justify-items":[...Ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ce()]}],"align-content":[{content:["normal",...we()]}],"align-items":[{items:[...Ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":we()}],"place-items":[{"place-items":[...Ce(),"baseline"]}],"place-self":[{"place-self":["auto",...Ce()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],w:[{w:[f,"screen",...ne()]}],"min-w":[{"min-w":[f,"screen","none",...ne()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",r,to,Dl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,Ee,Zd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qd,Me]}],"font-family":[{font:[vw,Me,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Ee,Me]}],"line-clamp":[{"line-clamp":[Fe,"none",Ee,Zd]}],leading:[{leading:[s,...V()]}],"list-image":[{"list-image":["none",Ee,Me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ee,Me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",Ee,Dl]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[Fe,"auto",Ee,Me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee,Me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee,Me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Va,Ee,Me],radial:["",Ee,Me],conic:[Va,Ee,Me]},yw,pw]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,Ee,Me]}],"outline-w":[{outline:["",Fe,to,Dl]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",v,ou,iu]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",g,ou,iu]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[Fe,Dl]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",b,ou,iu]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[Fe,Ee,Me]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[Ee,Me]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ee,Me]}],filter:[{filter:["","none",Ee,Me]}],blur:[{blur:Be()}],brightness:[{brightness:[Fe,Ee,Me]}],contrast:[{contrast:[Fe,Ee,Me]}],"drop-shadow":[{"drop-shadow":["","none",w,ou,iu]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",Fe,Ee,Me]}],"hue-rotate":[{"hue-rotate":[Fe,Ee,Me]}],invert:[{invert:["",Fe,Ee,Me]}],saturate:[{saturate:[Fe,Ee,Me]}],sepia:[{sepia:["",Fe,Ee,Me]}],"backdrop-filter":[{"backdrop-filter":["","none",Ee,Me]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,Ee,Me]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,Ee,Me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,Ee,Me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,Ee,Me]}],"backdrop-invert":[{"backdrop-invert":["",Fe,Ee,Me]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,Ee,Me]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,Ee,Me]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,Ee,Me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ee,Me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",Ee,Me]}],ease:[{ease:["linear","initial",N,Ee,Me]}],delay:[{delay:[Fe,Ee,Me]}],animate:[{animate:["none",O,Ee,Me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Ee,Me]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:Ze()}],"scale-x":[{"scale-x":Ze()}],"scale-y":[{"scale-y":Ze()}],"scale-z":[{"scale-z":Ze()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[Ee,Me,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee,Me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee,Me]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[Fe,to,Dl,Zd]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Sw=tw(ww);function ct(...e){return Sw(_6(e))}const $6=6048e5,Aw=864e5,T3=Symbol.for("constructDateFrom");function nl(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&T3 in e?e[T3](t):e instanceof Date?new e.constructor(t):new Date(t)}function pr(e,t){return nl(t||e,e)}let Mw={};function lc(){return Mw}function po(e,t){var f,d,h,v;const r=lc(),l=(t==null?void 0:t.weekStartsOn)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??r.weekStartsOn??((v=(h=r.locale)==null?void 0:h.options)==null?void 0:v.weekStartsOn)??0,i=pr(e,t==null?void 0:t.in),s=i.getDay(),c=(s<l?7:0)+s-l;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}function ju(e,t){return po(e,{...t,weekStartsOn:1})}function K6(e,t){const r=pr(e,t==null?void 0:t.in),l=r.getFullYear(),i=nl(r,0);i.setFullYear(l+1,0,4),i.setHours(0,0,0,0);const s=ju(i),c=nl(r,0);c.setFullYear(l,0,4),c.setHours(0,0,0,0);const f=ju(c);return r.getTime()>=s.getTime()?l+1:r.getTime()>=f.getTime()?l:l-1}function C3(e){const t=pr(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Ew(e,...t){const r=nl.bind(null,t.find(l=>typeof l=="object"));return t.map(r)}function k3(e,t){const r=pr(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function Tw(e,t,r){const[l,i]=Ew(r==null?void 0:r.in,e,t),s=k3(l),c=k3(i),f=+s-C3(s),d=+c-C3(c);return Math.round((f-d)/Aw)}function Cw(e,t){const r=K6(e,t),l=nl(e,0);return l.setFullYear(r,0,4),l.setHours(0,0,0,0),ju(l)}function kw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Nw(e){return!(!kw(e)&&typeof e!="number"||isNaN(+pr(e)))}function zw(e,t){const r=pr(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const Dw={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ow=(e,t,r)=>{let l;const i=Dw[e];return typeof i=="string"?l=i:t===1?l=i.one:l=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+l:l+" ago":l};function Wd(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Rw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_w={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jw={date:Wd({formats:Rw,defaultWidth:"full"}),time:Wd({formats:Lw,defaultWidth:"full"}),dateTime:Wd({formats:_w,defaultWidth:"full"})},Bw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Hw=(e,t,r,l)=>Bw[e];function no(e){return(t,r)=>{const l=r!=null&&r.context?String(r.context):"standalone";let i;if(l==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,f=r!=null&&r.width?String(r.width):c;i=e.formattingValues[f]||e.formattingValues[c]}else{const c=e.defaultWidth,f=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[f]||e.values[c]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}const qw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Uw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Gw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Fw={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Yw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Pw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Vw=(e,t)=>{const r=Number(e),l=r%100;if(l>20||l<10)switch(l%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Iw={ordinalNumber:Vw,era:no({values:qw,defaultWidth:"wide"}),quarter:no({values:Uw,defaultWidth:"wide",argumentCallback:e=>e-1}),month:no({values:Gw,defaultWidth:"wide"}),day:no({values:Fw,defaultWidth:"wide"}),dayPeriod:no({values:Yw,defaultWidth:"wide",formattingValues:Pw,defaultFormattingWidth:"wide"})};function ro(e){return(t,r={})=>{const l=r.width,i=l&&e.matchPatterns[l]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;const c=s[0],f=l&&e.parsePatterns[l]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(f)?$w(f,g=>g.test(c)):Xw(f,g=>g.test(c));let h;h=e.valueCallback?e.valueCallback(d):d,h=r.valueCallback?r.valueCallback(h):h;const v=t.slice(c.length);return{value:h,rest:v}}}function Xw(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function $w(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Kw(e){return(t,r={})=>{const l=t.match(e.matchPattern);if(!l)return null;const i=l[0],s=t.match(e.parsePattern);if(!s)return null;let c=e.valueCallback?e.valueCallback(s[0]):s[0];c=r.valueCallback?r.valueCallback(c):c;const f=t.slice(i.length);return{value:c,rest:f}}}const Qw=/^(\d+)(th|st|nd|rd)?/i,Zw=/\d+/i,Ww={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Jw={any:[/^b/i,/^(a|c)/i]},eS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},tS={any:[/1/i,/2/i,/3/i,/4/i]},nS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},rS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},aS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},lS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},iS={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},oS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},sS={ordinalNumber:Kw({matchPattern:Qw,parsePattern:Zw,valueCallback:e=>parseInt(e,10)}),era:ro({matchPatterns:Ww,defaultMatchWidth:"wide",parsePatterns:Jw,defaultParseWidth:"any"}),quarter:ro({matchPatterns:eS,defaultMatchWidth:"wide",parsePatterns:tS,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ro({matchPatterns:nS,defaultMatchWidth:"wide",parsePatterns:rS,defaultParseWidth:"any"}),day:ro({matchPatterns:aS,defaultMatchWidth:"wide",parsePatterns:lS,defaultParseWidth:"any"}),dayPeriod:ro({matchPatterns:iS,defaultMatchWidth:"any",parsePatterns:oS,defaultParseWidth:"any"})},uS={code:"en-US",formatDistance:Ow,formatLong:jw,formatRelative:Hw,localize:Iw,match:sS,options:{weekStartsOn:0,firstWeekContainsDate:1}};function cS(e,t){const r=pr(e,t==null?void 0:t.in);return Tw(r,zw(r))+1}function fS(e,t){const r=pr(e,t==null?void 0:t.in),l=+ju(r)-+Cw(r);return Math.round(l/$6)+1}function Q6(e,t){var v,g,b,w;const r=pr(e,t==null?void 0:t.in),l=r.getFullYear(),i=lc(),s=(t==null?void 0:t.firstWeekContainsDate)??((g=(v=t==null?void 0:t.locale)==null?void 0:v.options)==null?void 0:g.firstWeekContainsDate)??i.firstWeekContainsDate??((w=(b=i.locale)==null?void 0:b.options)==null?void 0:w.firstWeekContainsDate)??1,c=nl((t==null?void 0:t.in)||e,0);c.setFullYear(l+1,0,s),c.setHours(0,0,0,0);const f=po(c,t),d=nl((t==null?void 0:t.in)||e,0);d.setFullYear(l,0,s),d.setHours(0,0,0,0);const h=po(d,t);return+r>=+f?l+1:+r>=+h?l:l-1}function dS(e,t){var f,d,h,v;const r=lc(),l=(t==null?void 0:t.firstWeekContainsDate)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((v=(h=r.locale)==null?void 0:h.options)==null?void 0:v.firstWeekContainsDate)??1,i=Q6(e,t),s=nl((t==null?void 0:t.in)||e,0);return s.setFullYear(i,0,l),s.setHours(0,0,0,0),po(s,t)}function hS(e,t){const r=pr(e,t==null?void 0:t.in),l=+po(r,t)-+dS(r,t);return Math.round(l/$6)+1}function it(e,t){const r=e<0?"-":"",l=Math.abs(e).toString().padStart(t,"0");return r+l}const Ia={y(e,t){const r=e.getFullYear(),l=r>0?r:1-r;return it(t==="yy"?l%100:l,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):it(r+1,2)},d(e,t){return it(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return it(e.getHours()%12||12,t.length)},H(e,t){return it(e.getHours(),t.length)},m(e,t){return it(e.getMinutes(),t.length)},s(e,t){return it(e.getSeconds(),t.length)},S(e,t){const r=t.length,l=e.getMilliseconds(),i=Math.trunc(l*Math.pow(10,r-3));return it(i,t.length)}},Ri={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},N3={G:function(e,t,r){const l=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(l,{width:"abbreviated"});case"GGGGG":return r.era(l,{width:"narrow"});case"GGGG":default:return r.era(l,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const l=e.getFullYear(),i=l>0?l:1-l;return r.ordinalNumber(i,{unit:"year"})}return Ia.y(e,t)},Y:function(e,t,r,l){const i=Q6(e,l),s=i>0?i:1-i;if(t==="YY"){const c=s%100;return it(c,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):it(s,t.length)},R:function(e,t){const r=K6(e);return it(r,t.length)},u:function(e,t){const r=e.getFullYear();return it(r,t.length)},Q:function(e,t,r){const l=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(l);case"QQ":return it(l,2);case"Qo":return r.ordinalNumber(l,{unit:"quarter"});case"QQQ":return r.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(l,{width:"wide",context:"formatting"})}},q:function(e,t,r){const l=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(l);case"qq":return it(l,2);case"qo":return r.ordinalNumber(l,{unit:"quarter"});case"qqq":return r.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(l,{width:"wide",context:"standalone"})}},M:function(e,t,r){const l=e.getMonth();switch(t){case"M":case"MM":return Ia.M(e,t);case"Mo":return r.ordinalNumber(l+1,{unit:"month"});case"MMM":return r.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(l,{width:"wide",context:"formatting"})}},L:function(e,t,r){const l=e.getMonth();switch(t){case"L":return String(l+1);case"LL":return it(l+1,2);case"Lo":return r.ordinalNumber(l+1,{unit:"month"});case"LLL":return r.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(l,{width:"wide",context:"standalone"})}},w:function(e,t,r,l){const i=hS(e,l);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):it(i,t.length)},I:function(e,t,r){const l=fS(e);return t==="Io"?r.ordinalNumber(l,{unit:"week"}):it(l,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Ia.d(e,t)},D:function(e,t,r){const l=cS(e);return t==="Do"?r.ordinalNumber(l,{unit:"dayOfYear"}):it(l,t.length)},E:function(e,t,r){const l=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(l,{width:"short",context:"formatting"});case"EEEE":default:return r.day(l,{width:"wide",context:"formatting"})}},e:function(e,t,r,l){const i=e.getDay(),s=(i-l.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return it(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,l){const i=e.getDay(),s=(i-l.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return it(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const l=e.getDay(),i=l===0?7:l;switch(t){case"i":return String(i);case"ii":return it(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(l,{width:"short",context:"formatting"});case"iiii":default:return r.day(l,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const l=e.getHours();let i;switch(l===12?i=Ri.noon:l===0?i=Ri.midnight:i=l/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const l=e.getHours();let i;switch(l>=17?i=Ri.evening:l>=12?i=Ri.afternoon:l>=4?i=Ri.morning:i=Ri.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let l=e.getHours()%12;return l===0&&(l=12),r.ordinalNumber(l,{unit:"hour"})}return Ia.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Ia.H(e,t)},K:function(e,t,r){const l=e.getHours()%12;return t==="Ko"?r.ordinalNumber(l,{unit:"hour"}):it(l,t.length)},k:function(e,t,r){let l=e.getHours();return l===0&&(l=24),t==="ko"?r.ordinalNumber(l,{unit:"hour"}):it(l,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ia.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Ia.s(e,t)},S:function(e,t){return Ia.S(e,t)},X:function(e,t,r){const l=e.getTimezoneOffset();if(l===0)return"Z";switch(t){case"X":return D3(l);case"XXXX":case"XX":return Ll(l);case"XXXXX":case"XXX":default:return Ll(l,":")}},x:function(e,t,r){const l=e.getTimezoneOffset();switch(t){case"x":return D3(l);case"xxxx":case"xx":return Ll(l);case"xxxxx":case"xxx":default:return Ll(l,":")}},O:function(e,t,r){const l=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+z3(l,":");case"OOOO":default:return"GMT"+Ll(l,":")}},z:function(e,t,r){const l=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+z3(l,":");case"zzzz":default:return"GMT"+Ll(l,":")}},t:function(e,t,r){const l=Math.trunc(+e/1e3);return it(l,t.length)},T:function(e,t,r){return it(+e,t.length)}};function z3(e,t=""){const r=e>0?"-":"+",l=Math.abs(e),i=Math.trunc(l/60),s=l%60;return s===0?r+String(i):r+String(i)+t+it(s,2)}function D3(e,t){return e%60===0?(e>0?"-":"+")+it(Math.abs(e)/60,2):Ll(e,t)}function Ll(e,t=""){const r=e>0?"-":"+",l=Math.abs(e),i=it(Math.trunc(l/60),2),s=it(l%60,2);return r+i+t+s}const O3=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Z6=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},mS=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],l=r[1],i=r[2];if(!i)return O3(e,t);let s;switch(l){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",O3(l,t)).replace("{{time}}",Z6(i,t))},pS={p:Z6,P:mS},vS=/^D+$/,gS=/^Y+$/,yS=["D","DD","YY","YYYY"];function bS(e){return vS.test(e)}function xS(e){return gS.test(e)}function wS(e,t,r){const l=SS(e,t,r);if(console.warn(l),yS.includes(e))throw new RangeError(l)}function SS(e,t,r){const l=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${l} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const AS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,MS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ES=/^'([^]*?)'?$/,TS=/''/g,CS=/[a-zA-Z]/;function kS(e,t,r){var v,g,b,w;const l=lc(),i=l.locale??uS,s=l.firstWeekContainsDate??((g=(v=l.locale)==null?void 0:v.options)==null?void 0:g.firstWeekContainsDate)??1,c=l.weekStartsOn??((w=(b=l.locale)==null?void 0:b.options)==null?void 0:w.weekStartsOn)??0,f=pr(e,r==null?void 0:r.in);if(!Nw(f))throw new RangeError("Invalid time value");let d=t.match(MS).map(E=>{const A=E[0];if(A==="p"||A==="P"){const T=pS[A];return T(E,i.formatLong)}return E}).join("").match(AS).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const A=E[0];if(A==="'")return{isToken:!1,value:NS(E)};if(N3[A])return{isToken:!0,value:E};if(A.match(CS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");return{isToken:!1,value:E}});i.localize.preprocessor&&(d=i.localize.preprocessor(f,d));const h={firstWeekContainsDate:s,weekStartsOn:c,locale:i};return d.map(E=>{if(!E.isToken)return E.value;const A=E.value;(xS(A)||bS(A))&&wS(A,t,String(e));const T=N3[A[0]];return T(f,A,i.localize,h)}).join("")}function NS(e){const t=e.match(ES);return t?t[1].replace(TS,"'"):e}function W6(e){return kS(new Date(e),"dd MMM, yy")}/**
61
- * @license lucide-react v0.554.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const zS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),DS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,l)=>l?l.toUpperCase():r.toLowerCase()),R3=e=>{const t=DS(e);return t.charAt(0).toUpperCase()+t.slice(1)},J6=(...e)=>e.filter((t,r,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===r).join(" ").trim(),OS=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
66
- * @license lucide-react v0.554.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */var RS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
71
- * @license lucide-react v0.554.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const LS=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:i="",children:s,iconNode:c,...f},d)=>M.createElement("svg",{ref:d,...RS,width:t,height:t,stroke:e,strokeWidth:l?Number(r)*24/Number(t):r,className:J6("lucide",i),...!s&&!OS(f)&&{"aria-hidden":"true"},...f},[...c.map(([h,v])=>M.createElement(h,v)),...Array.isArray(s)?s:[s]]));/**
76
- * @license lucide-react v0.554.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const Nn=(e,t)=>{const r=M.forwardRef(({className:l,...i},s)=>M.createElement(LS,{ref:s,iconNode:t,className:J6(`lucide-${zS(R3(e))}`,`lucide-${e}`,l),...i}));return r.displayName=R3(e),r};/**
81
- * @license lucide-react v0.554.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const _S=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],jS=Nn("arrow-left",_S);/**
86
- * @license lucide-react v0.554.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const BS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ev=Nn("arrow-right",BS);/**
91
- * @license lucide-react v0.554.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const HS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qS=Nn("check",HS);/**
96
- * @license lucide-react v0.554.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const US=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],GS=Nn("chevron-down",US);/**
101
- * @license lucide-react v0.554.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const FS=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],YS=Nn("chevron-left",FS);/**
106
- * @license lucide-react v0.554.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const PS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],tv=Nn("chevron-right",PS);/**
111
- * @license lucide-react v0.554.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const VS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],IS=Nn("chevron-up",VS);/**
116
- * @license lucide-react v0.554.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const XS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],$S=Nn("circle",XS);/**
121
- * @license lucide-react v0.554.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const KS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],nv=Nn("image",KS);/**
126
- * @license lucide-react v0.554.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const QS=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],L3=Nn("monitor",QS);/**
131
- * @license lucide-react v0.554.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const ZS=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],_3=Nn("moon",ZS);/**
136
- * @license lucide-react v0.554.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const WS=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],JS=Nn("presentation",WS);/**
141
- * @license lucide-react v0.554.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const eA=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],j3=Nn("sun",eA);/**
146
- * @license lucide-react v0.554.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const tA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],nA=Nn("x",tA);function rA({directory:e}){const t=e.children.filter(i=>i.type==="directory");if(t.length===0)return k.jsx("div",{className:"py-24 text-center",children:k.jsx("p",{className:"text-muted-foreground font-mono text-sm tracking-wide",children:"no entries"})});let r=t.map(i=>{const s=O1(i),c=D6(i);return{...i,readme:s,slides:c}});r=r.filter(i=>{var s,c;return((c=(s=i.readme)==null?void 0:s.frontmatter)==null?void 0:c.visibility)!=="hidden"}),r=r.sort((i,s)=>{var c,f,d,h,v,g;let b=(f=(c=i.readme)==null?void 0:c.frontmatter)!=null&&f.date?new Date(i.readme.frontmatter.date):null,w=(h=(d=s.readme)==null?void 0:d.frontmatter)!=null&&h.date?new Date(s.readme.frontmatter.date):null;return!b&&i.slides&&(b=(v=i.slides.frontmatter)!=null&&v.date?new Date(i.slides.frontmatter.date):null),!w&&s.slides&&(w=(g=s.slides.frontmatter)!=null&&g.date?new Date(s.slides.frontmatter.date):null),b&&w?w.getTime()-b.getTime():b?-1:w?1:i.name.localeCompare(s.name)});const l={};return r.forEach(i=>{var s,c,f;let d=(c=(s=i.readme)==null?void 0:s.frontmatter)!=null&&c.date?new Date(i.readme.frontmatter.date):null;!d&&i.slides&&(d=(f=i.slides.frontmatter)!=null&&f.date?new Date(i.slides.frontmatter.date):null);const h=d?`${d.getFullYear()}-${d.getMonth()+1}`:"unknown";l[h]||(l[h]=[]),l[h].push(i)}),k.jsx("div",{className:"space-y-8",children:Object.entries(l).sort(([i],[s])=>i==="unknown"?1:s==="unknown"?-1:s.localeCompare(i)).map(([i,s])=>{const[c,f]=i.split("-"),d=i==="unknown"?"Unknown Date":new Date(parseInt(c),parseInt(f)-1).toLocaleDateString("en-US",{year:"numeric",month:"long"});return k.jsxs("div",{children:[k.jsx("h2",{className:"text-xs font-mono uppercase tracking-wider text-muted-foreground mb-3",children:d}),k.jsx("div",{className:"space-y-1",children:s.map(h=>{var v;let g=(v=h.readme)==null?void 0:v.frontmatter;!h.readme&&h.slides&&(g=h.slides.frontmatter);const b=(g==null?void 0:g.title)||h.name,w=g==null?void 0:g.description,E=g!=null&&g.date?new Date(g.date):null;return k.jsx(Pi,{to:h.slides&&!h.readme?`/${h.slides.path}`:`/${h.readme.path}`,className:ct("group block py-3 px-3 -mx-3 rounded-md","transition-colors duration-150"),children:k.jsxs("article",{className:"flex items-start gap-4",children:[k.jsx("time",{dateTime:E==null?void 0:E.toISOString(),className:"font-mono text-xs text-muted-foreground tabular-nums w-20 flex-shrink-0 pt-0.5",children:E?W6(E):k.jsx("span",{className:"text-muted-foreground/30",children:"—"})}),k.jsxs("div",{className:"flex-1 min-w-0",children:[k.jsxs("h3",{className:ct("text-sm font-medium text-foreground","group-hover:underline","flex items-center gap-2"),children:[k.jsx("span",{children:b}),k.jsx(ev,{className:"h-3 w-3 opacity-0 -translate-x-1 group-hover:opacity-100 group-hover:translate-x-0 transition-all duration-200 text-primary"})]}),w&&k.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1 mt-0.5",children:w})]})]})},h.path)})})]},i)})})}function aA({error:e,path:t}){const r="min-h-screen bg-background container mx-auto max-w-[var(--content-width)] py-24 px-[var(--page-padding)]";switch(e.type){case"config_not_found":return k.jsx("main",{className:r,children:k.jsxs("div",{className:"text-center space-y-4",children:[k.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Setup Required"}),k.jsxs("p",{className:"text-muted-foreground",children:["Could not find ",k.jsx("code",{className:"font-mono text-sm bg-muted px-2 py-1",children:".veslx.json"})]}),k.jsx("p",{className:"text-muted-foreground/70 text-sm",children:"Run the veslx build script to generate the directory index."})]})});case"path_not_found":return k.jsx("main",{className:r,children:k.jsxs("div",{className:"text-center space-y-4",children:[k.jsx("h1",{className:"font-mono text-6xl tracking-tighter text-muted-foreground/30",children:"404"}),k.jsx("p",{className:"text-lg text-foreground",children:"Page not found"}),k.jsx("p",{className:"text-muted-foreground text-sm",children:k.jsx("code",{className:"font-mono bg-muted px-2 py-1",children:t})})]})});case"parse_error":return k.jsx("main",{className:r,children:k.jsxs("div",{className:"text-center space-y-4",children:[k.jsx("h1",{className:"text-2xl font-semibold text-destructive",children:"Configuration Error"}),k.jsxs("p",{className:"text-muted-foreground",children:["Failed to parse ",k.jsx("code",{className:"font-mono text-sm bg-muted px-2 py-1",children:".veslx.json"})]})]})});case"fetch_error":default:return k.jsx("main",{className:r,children:k.jsxs("div",{className:"text-center space-y-4",children:[k.jsx("h1",{className:"text-2xl font-semibold text-destructive",children:"Error"}),k.jsx("p",{className:"text-muted-foreground",children:e.message})]})})}}function mh(){const e=R6();return k.jsx(k.Fragment,{children:e&&k.jsx("div",{className:"sticky top-0 z-50 px-[var(--page-padding)] py-2 bg-red-500 text-primary-foreground font-mono text-xs text-center tracking-wide",children:k.jsxs("span",{className:"inline-flex items-center gap-3",children:[k.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-current animate-pulse"}),k.jsx("span",{className:"uppercase tracking-widest",children:"simulation running"}),k.jsx("span",{className:"text-primary-foreground/60",children:"Page will auto-refresh on completion"})]})})})}function We(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function B3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Gl(...e){return t=>{let r=!1;const l=e.map(i=>{const s=B3(i,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let i=0;i<l.length;i++){const s=l[i];typeof s=="function"?s():B3(e[i],null)}}}}function kn(...e){return M.useCallback(Gl(...e),e)}function Oo(e,t=[]){let r=[];function l(s,c){const f=M.createContext(c),d=r.length;r=[...r,c];const h=g=>{var N;const{scope:b,children:w,...E}=g,A=((N=b==null?void 0:b[e])==null?void 0:N[d])||f,T=M.useMemo(()=>E,Object.values(E));return k.jsx(A.Provider,{value:T,children:w})};h.displayName=s+"Provider";function v(g,b){var A;const w=((A=b==null?void 0:b[e])==null?void 0:A[d])||f,E=M.useContext(w);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[h,v]}const i=()=>{const s=r.map(c=>M.createContext(c));return function(f){const d=(f==null?void 0:f[e])||s;return M.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])}};return i.scopeName=e,[l,lA(i,...t)]}function lA(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const l=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const c=l.reduce((f,{useScope:d,scopeName:h})=>{const g=d(s)[`__scope${h}`];return{...f,...g}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var rl=globalThis!=null&&globalThis.document?M.useLayoutEffect:()=>{},iA=rh[" useInsertionEffect ".trim().toString()]||rl;function rv({prop:e,defaultProp:t,onChange:r=()=>{},caller:l}){const[i,s,c]=oA({defaultProp:t,onChange:r}),f=e!==void 0,d=f?e:i;{const v=M.useRef(e!==void 0);M.useEffect(()=>{const g=v.current;g!==f&&console.warn(`${l} is changing from ${g?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=f},[f,l])}const h=M.useCallback(v=>{var g;if(f){const b=sA(v)?v(e):v;b!==e&&((g=c.current)==null||g.call(c,b))}else s(v)},[f,e,s,c]);return[d,h]}function oA({defaultProp:e,onChange:t}){const[r,l]=M.useState(e),i=M.useRef(r),s=M.useRef(t);return iA(()=>{s.current=t},[t]),M.useEffect(()=>{var c;i.current!==r&&((c=s.current)==null||c.call(s,r),i.current=r)},[r,i]),[r,l,s]}function sA(e){return typeof e=="function"}function uA(e){const t=cA(e),r=M.forwardRef((l,i)=>{const{children:s,...c}=l,f=M.Children.toArray(s),d=f.find(dA);if(d){const h=d.props.children,v=f.map(g=>g===d?M.Children.count(h)>1?M.Children.only(null):M.isValidElement(h)?h.props.children:null:g);return k.jsx(t,{...c,ref:i,children:M.isValidElement(h)?M.cloneElement(h,void 0,v):null})}return k.jsx(t,{...c,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}function cA(e){const t=M.forwardRef((r,l)=>{const{children:i,...s}=r;if(M.isValidElement(i)){const c=mA(i),f=hA(s,i.props);return i.type!==M.Fragment&&(f.ref=l?Gl(l,c):c),M.cloneElement(i,f)}return M.Children.count(i)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fA=Symbol("radix.slottable");function dA(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fA}function hA(e,t){const r={...t};for(const l in t){const i=e[l],s=t[l];/^on[A-Z]/.test(l)?i&&s?r[l]=(...f)=>{const d=s(...f);return i(...f),d}:i&&(r[l]=i):l==="style"?r[l]={...i,...s}:l==="className"&&(r[l]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function mA(e){var l,i;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var pA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hn=pA.reduce((e,t)=>{const r=uA(`Primitive.${t}`),l=M.forwardRef((i,s)=>{const{asChild:c,...f}=i,d=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(d,{...f,ref:s})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{});function av(e,t){e&&ac.flushSync(()=>e.dispatchEvent(t))}function H3(e){const t=vA(e),r=M.forwardRef((l,i)=>{const{children:s,...c}=l,f=M.Children.toArray(s),d=f.find(yA);if(d){const h=d.props.children,v=f.map(g=>g===d?M.Children.count(h)>1?M.Children.only(null):M.isValidElement(h)?h.props.children:null:g);return k.jsx(t,{...c,ref:i,children:M.isValidElement(h)?M.cloneElement(h,void 0,v):null})}return k.jsx(t,{...c,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}function vA(e){const t=M.forwardRef((r,l)=>{const{children:i,...s}=r;if(M.isValidElement(i)){const c=xA(i),f=bA(s,i.props);return i.type!==M.Fragment&&(f.ref=l?Gl(l,c):c),M.cloneElement(i,f)}return M.Children.count(i)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gA=Symbol("radix.slottable");function yA(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gA}function bA(e,t){const r={...t};for(const l in t){const i=e[l],s=t[l];/^on[A-Z]/.test(l)?i&&s?r[l]=(...f)=>{const d=s(...f);return i(...f),d}:i&&(r[l]=i):l==="style"?r[l]={...i,...s}:l==="className"&&(r[l]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function xA(e){var l,i;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function lv(e){const t=e+"CollectionProvider",[r,l]=Oo(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=A=>{const{scope:T,children:N}=A,O=Ka.useRef(null),R=Ka.useRef(new Map).current;return k.jsx(i,{scope:T,itemMap:R,collectionRef:O,children:N})};c.displayName=t;const f=e+"CollectionSlot",d=H3(f),h=Ka.forwardRef((A,T)=>{const{scope:N,children:O}=A,R=s(f,N),H=kn(T,R.collectionRef);return k.jsx(d,{ref:H,children:O})});h.displayName=f;const v=e+"CollectionItemSlot",g="data-radix-collection-item",b=H3(v),w=Ka.forwardRef((A,T)=>{const{scope:N,children:O,...R}=A,H=Ka.useRef(null),F=kn(T,H),I=s(v,N);return Ka.useEffect(()=>(I.itemMap.set(H,{ref:H,...R}),()=>void I.itemMap.delete(H))),k.jsx(b,{[g]:"",ref:F,children:O})});w.displayName=v;function E(A){const T=s(e+"CollectionConsumer",A);return Ka.useCallback(()=>{const O=T.collectionRef.current;if(!O)return[];const R=Array.from(O.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((I,G)=>R.indexOf(I.ref.current)-R.indexOf(G.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:c,Slot:h,ItemSlot:w},E,l]}var wA=M.createContext(void 0);function iv(e){const t=M.useContext(wA);return e||t||"ltr"}function da(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...r)=>{var l;return(l=t.current)==null?void 0:l.call(t,...r)},[])}function SA(e,t=globalThis==null?void 0:globalThis.document){const r=da(e);M.useEffect(()=>{const l=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",l,{capture:!0}),()=>t.removeEventListener("keydown",l,{capture:!0})},[r,t])}var AA="DismissableLayer",L1="dismissableLayer.update",MA="dismissableLayer.pointerDownOutside",EA="dismissableLayer.focusOutside",q3,ov=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sv=M.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:l,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...d}=e,h=M.useContext(ov),[v,g]=M.useState(null),b=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=M.useState({}),E=kn(t,G=>g(G)),A=Array.from(h.layers),[T]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),N=A.indexOf(T),O=v?A.indexOf(v):-1,R=h.layersWithOutsidePointerEventsDisabled.size>0,H=O>=N,F=kA(G=>{const V=G.target,te=[...h.branches].some(de=>de.contains(V));!H||te||(i==null||i(G),c==null||c(G),G.defaultPrevented||f==null||f())},b),I=NA(G=>{const V=G.target;[...h.branches].some(de=>de.contains(V))||(s==null||s(G),c==null||c(G),G.defaultPrevented||f==null||f())},b);return SA(G=>{O===h.layers.size-1&&(l==null||l(G),!G.defaultPrevented&&f&&(G.preventDefault(),f()))},b),M.useEffect(()=>{if(v)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(q3=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(v)),h.layers.add(v),U3(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=q3)}},[v,b,r,h]),M.useEffect(()=>()=>{v&&(h.layers.delete(v),h.layersWithOutsidePointerEventsDisabled.delete(v),U3())},[v,h]),M.useEffect(()=>{const G=()=>w({});return document.addEventListener(L1,G),()=>document.removeEventListener(L1,G)},[]),k.jsx(hn.div,{...d,ref:E,style:{pointerEvents:R?H?"auto":"none":void 0,...e.style},onFocusCapture:We(e.onFocusCapture,I.onFocusCapture),onBlurCapture:We(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:We(e.onPointerDownCapture,F.onPointerDownCapture)})});sv.displayName=AA;var TA="DismissableLayerBranch",CA=M.forwardRef((e,t)=>{const r=M.useContext(ov),l=M.useRef(null),i=kn(t,l);return M.useEffect(()=>{const s=l.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),k.jsx(hn.div,{...e,ref:i})});CA.displayName=TA;function kA(e,t=globalThis==null?void 0:globalThis.document){const r=da(e),l=M.useRef(!1),i=M.useRef(()=>{});return M.useEffect(()=>{const s=f=>{if(f.target&&!l.current){let d=function(){uv(MA,r,h,{discrete:!0})};const h={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=d,t.addEventListener("click",i.current,{once:!0})):d()}else t.removeEventListener("click",i.current);l.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>l.current=!0}}function NA(e,t=globalThis==null?void 0:globalThis.document){const r=da(e),l=M.useRef(!1);return M.useEffect(()=>{const i=s=>{s.target&&!l.current&&uv(EA,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function U3(){const e=new CustomEvent(L1);document.dispatchEvent(e)}function uv(e,t,r,{discrete:l}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),l?av(i,s):i.dispatchEvent(s)}var Jd=0;function zA(){M.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??G3()),document.body.insertAdjacentElement("beforeend",e[1]??G3()),Jd++,()=>{Jd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jd--}},[])}function G3(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var e1="focusScope.autoFocusOnMount",t1="focusScope.autoFocusOnUnmount",F3={bubbles:!1,cancelable:!0},DA="FocusScope",cv=M.forwardRef((e,t)=>{const{loop:r=!1,trapped:l=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...c}=e,[f,d]=M.useState(null),h=da(i),v=da(s),g=M.useRef(null),b=kn(t,A=>d(A)),w=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect(()=>{if(l){let A=function(R){if(w.paused||!f)return;const H=R.target;f.contains(H)?g.current=H:Qa(g.current,{select:!0})},T=function(R){if(w.paused||!f)return;const H=R.relatedTarget;H!==null&&(f.contains(H)||Qa(g.current,{select:!0}))},N=function(R){if(document.activeElement===document.body)for(const F of R)F.removedNodes.length>0&&Qa(f)};document.addEventListener("focusin",A),document.addEventListener("focusout",T);const O=new MutationObserver(N);return f&&O.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",T),O.disconnect()}}},[l,f,w.paused]),M.useEffect(()=>{if(f){P3.add(w);const A=document.activeElement;if(!f.contains(A)){const N=new CustomEvent(e1,F3);f.addEventListener(e1,h),f.dispatchEvent(N),N.defaultPrevented||(OA(BA(fv(f)),{select:!0}),document.activeElement===A&&Qa(f))}return()=>{f.removeEventListener(e1,h),setTimeout(()=>{const N=new CustomEvent(t1,F3);f.addEventListener(t1,v),f.dispatchEvent(N),N.defaultPrevented||Qa(A??document.body,{select:!0}),f.removeEventListener(t1,v),P3.remove(w)},0)}}},[f,h,v,w]);const E=M.useCallback(A=>{if(!r&&!l||w.paused)return;const T=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,N=document.activeElement;if(T&&N){const O=A.currentTarget,[R,H]=RA(O);R&&H?!A.shiftKey&&N===H?(A.preventDefault(),r&&Qa(R,{select:!0})):A.shiftKey&&N===R&&(A.preventDefault(),r&&Qa(H,{select:!0})):N===O&&A.preventDefault()}},[r,l,w.paused]);return k.jsx(hn.div,{tabIndex:-1,...c,ref:b,onKeyDown:E})});cv.displayName=DA;function OA(e,{select:t=!1}={}){const r=document.activeElement;for(const l of e)if(Qa(l,{select:t}),document.activeElement!==r)return}function RA(e){const t=fv(e),r=Y3(t,e),l=Y3(t.reverse(),e);return[r,l]}function fv(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const i=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||i?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Y3(e,t){for(const r of e)if(!LA(r,{upTo:t}))return r}function LA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _A(e){return e instanceof HTMLInputElement&&"select"in e}function Qa(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&_A(e)&&t&&e.select()}}var P3=jA();function jA(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=V3(e,t),e.unshift(t)},remove(t){var r;e=V3(e,t),(r=e[0])==null||r.resume()}}}function V3(e,t){const r=[...e],l=r.indexOf(t);return l!==-1&&r.splice(l,1),r}function BA(e){return e.filter(t=>t.tagName!=="A")}var HA=rh[" useId ".trim().toString()]||(()=>{}),qA=0;function _1(e){const[t,r]=M.useState(HA());return rl(()=>{r(l=>l??String(qA++))},[e]),t?`radix-${t}`:""}const UA=["top","right","bottom","left"],al=Math.min,Hn=Math.max,Bu=Math.round,su=Math.floor,Nr=e=>({x:e,y:e}),GA={left:"right",right:"left",bottom:"top",top:"bottom"},FA={start:"end",end:"start"};function j1(e,t,r){return Hn(e,al(t,r))}function ha(e,t){return typeof e=="function"?e(t):e}function ma(e){return e.split("-")[0]}function Wi(e){return e.split("-")[1]}function ph(e){return e==="x"?"y":"x"}function vh(e){return e==="y"?"height":"width"}const YA=new Set(["top","bottom"]);function Tr(e){return YA.has(ma(e))?"y":"x"}function gh(e){return ph(Tr(e))}function PA(e,t,r){r===void 0&&(r=!1);const l=Wi(e),i=gh(e),s=vh(i);let c=i==="x"?l===(r?"end":"start")?"right":"left":l==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=Hu(c)),[c,Hu(c)]}function VA(e){const t=Hu(e);return[B1(e),t,B1(t)]}function B1(e){return e.replace(/start|end/g,t=>FA[t])}const I3=["left","right"],X3=["right","left"],IA=["top","bottom"],XA=["bottom","top"];function $A(e,t,r){switch(e){case"top":case"bottom":return r?t?X3:I3:t?I3:X3;case"left":case"right":return t?IA:XA;default:return[]}}function KA(e,t,r,l){const i=Wi(e);let s=$A(ma(e),r==="start",l);return i&&(s=s.map(c=>c+"-"+i),t&&(s=s.concat(s.map(B1)))),s}function Hu(e){return e.replace(/left|right|bottom|top/g,t=>GA[t])}function QA(e){return{top:0,right:0,bottom:0,left:0,...e}}function dv(e){return typeof e!="number"?QA(e):{top:e,right:e,bottom:e,left:e}}function qu(e){const{x:t,y:r,width:l,height:i}=e;return{width:l,height:i,top:r,left:t,right:t+l,bottom:r+i,x:t,y:r}}function $3(e,t,r){let{reference:l,floating:i}=e;const s=Tr(t),c=gh(t),f=vh(c),d=ma(t),h=s==="y",v=l.x+l.width/2-i.width/2,g=l.y+l.height/2-i.height/2,b=l[f]/2-i[f]/2;let w;switch(d){case"top":w={x:v,y:l.y-i.height};break;case"bottom":w={x:v,y:l.y+l.height};break;case"right":w={x:l.x+l.width,y:g};break;case"left":w={x:l.x-i.width,y:g};break;default:w={x:l.x,y:l.y}}switch(Wi(t)){case"start":w[c]-=b*(r&&h?-1:1);break;case"end":w[c]+=b*(r&&h?-1:1);break}return w}const ZA=async(e,t,r)=>{const{placement:l="bottom",strategy:i="absolute",middleware:s=[],platform:c}=r,f=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:i}),{x:v,y:g}=$3(h,l,d),b=l,w={},E=0;for(let A=0;A<f.length;A++){const{name:T,fn:N}=f[A],{x:O,y:R,data:H,reset:F}=await N({x:v,y:g,initialPlacement:l,placement:b,strategy:i,middlewareData:w,rects:h,platform:c,elements:{reference:e,floating:t}});v=O??v,g=R??g,w={...w,[T]:{...w[T],...H}},F&&E<=50&&(E++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(h=F.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:i}):F.rects),{x:v,y:g}=$3(h,b,d)),A=-1)}return{x:v,y:g,placement:b,strategy:i,middlewareData:w}};async function vo(e,t){var r;t===void 0&&(t={});const{x:l,y:i,platform:s,rects:c,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:g="floating",altBoundary:b=!1,padding:w=0}=ha(t,e),E=dv(w),T=f[b?g==="floating"?"reference":"floating":g],N=qu(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(T)))==null||r?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:h,rootBoundary:v,strategy:d})),O=g==="floating"?{x:l,y:i,width:c.floating.width,height:c.floating.height}:c.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),H=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},F=qu(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:R,strategy:d}):O);return{top:(N.top-F.top+E.top)/H.y,bottom:(F.bottom-N.bottom+E.bottom)/H.y,left:(N.left-F.left+E.left)/H.x,right:(F.right-N.right+E.right)/H.x}}const WA=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:l,placement:i,rects:s,platform:c,elements:f,middlewareData:d}=t,{element:h,padding:v=0}=ha(e,t)||{};if(h==null)return{};const g=dv(v),b={x:r,y:l},w=gh(i),E=vh(w),A=await c.getDimensions(h),T=w==="y",N=T?"top":"left",O=T?"bottom":"right",R=T?"clientHeight":"clientWidth",H=s.reference[E]+s.reference[w]-b[w]-s.floating[E],F=b[w]-s.reference[w],I=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let G=I?I[R]:0;(!G||!await(c.isElement==null?void 0:c.isElement(I)))&&(G=f.floating[R]||s.floating[E]);const V=H/2-F/2,te=G/2-A[E]/2-1,de=al(g[N],te),ce=al(g[O],te),he=de,De=G-A[E]-ce,we=G/2-A[E]/2+V,Ce=j1(he,we,De),Y=!d.arrow&&Wi(i)!=null&&we!==Ce&&s.reference[E]/2-(we<he?de:ce)-A[E]/2<0,ne=Y?we<he?we-he:we-De:0;return{[w]:b[w]+ne,data:{[w]:Ce,centerOffset:we-Ce-ne,...Y&&{alignmentOffset:ne}},reset:Y}}}),JA=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,l;const{placement:i,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:h}=t,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:A=!0,...T}=ha(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const N=ma(i),O=Tr(f),R=ma(f)===f,H=await(d.isRTL==null?void 0:d.isRTL(h.floating)),F=b||(R||!A?[Hu(f)]:VA(f)),I=E!=="none";!b&&I&&F.push(...KA(f,A,E,H));const G=[f,...F],V=await vo(t,T),te=[];let de=((l=s.flip)==null?void 0:l.overflows)||[];if(v&&te.push(V[N]),g){const we=PA(i,c,H);te.push(V[we[0]],V[we[1]])}if(de=[...de,{placement:i,overflows:te}],!te.every(we=>we<=0)){var ce,he;const we=(((ce=s.flip)==null?void 0:ce.index)||0)+1,Ce=G[we];if(Ce&&(!(g==="alignment"?O!==Tr(Ce):!1)||de.every(Q=>Tr(Q.placement)===O?Q.overflows[0]>0:!0)))return{data:{index:we,overflows:de},reset:{placement:Ce}};let Y=(he=de.filter(ne=>ne.overflows[0]<=0).sort((ne,Q)=>ne.overflows[1]-Q.overflows[1])[0])==null?void 0:he.placement;if(!Y)switch(w){case"bestFit":{var De;const ne=(De=de.filter(Q=>{if(I){const ie=Tr(Q.placement);return ie===O||ie==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(ie=>ie>0).reduce((ie,be)=>ie+be,0)]).sort((Q,ie)=>Q[1]-ie[1])[0])==null?void 0:De[0];ne&&(Y=ne);break}case"initialPlacement":Y=f;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};function K3(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Q3(e){return UA.some(t=>e[t]>=0)}const eM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:l="referenceHidden",...i}=ha(e,t);switch(l){case"referenceHidden":{const s=await vo(t,{...i,elementContext:"reference"}),c=K3(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Q3(c)}}}case"escaped":{const s=await vo(t,{...i,altBoundary:!0}),c=K3(s,r.floating);return{data:{escapedOffsets:c,escaped:Q3(c)}}}default:return{}}}}},hv=new Set(["left","top"]);async function tM(e,t){const{placement:r,platform:l,elements:i}=e,s=await(l.isRTL==null?void 0:l.isRTL(i.floating)),c=ma(r),f=Wi(r),d=Tr(r)==="y",h=hv.has(c)?-1:1,v=s&&d?-1:1,g=ha(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof E=="number"&&(w=f==="end"?E*-1:E),d?{x:w*v,y:b*h}:{x:b*h,y:w*v}}const nM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,l;const{x:i,y:s,placement:c,middlewareData:f}=t,d=await tM(t,e);return c===((r=f.offset)==null?void 0:r.placement)&&(l=f.arrow)!=null&&l.alignmentOffset?{}:{x:i+d.x,y:s+d.y,data:{...d,placement:c}}}}},rM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:l,placement:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:T=>{let{x:N,y:O}=T;return{x:N,y:O}}},...d}=ha(e,t),h={x:r,y:l},v=await vo(t,d),g=Tr(ma(i)),b=ph(g);let w=h[b],E=h[g];if(s){const T=b==="y"?"top":"left",N=b==="y"?"bottom":"right",O=w+v[T],R=w-v[N];w=j1(O,w,R)}if(c){const T=g==="y"?"top":"left",N=g==="y"?"bottom":"right",O=E+v[T],R=E-v[N];E=j1(O,E,R)}const A=f.fn({...t,[b]:w,[g]:E});return{...A,data:{x:A.x-r,y:A.y-l,enabled:{[b]:s,[g]:c}}}}}},aM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:l,placement:i,rects:s,middlewareData:c}=t,{offset:f=0,mainAxis:d=!0,crossAxis:h=!0}=ha(e,t),v={x:r,y:l},g=Tr(i),b=ph(g);let w=v[b],E=v[g];const A=ha(f,t),T=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(d){const R=b==="y"?"height":"width",H=s.reference[b]-s.floating[R]+T.mainAxis,F=s.reference[b]+s.reference[R]-T.mainAxis;w<H?w=H:w>F&&(w=F)}if(h){var N,O;const R=b==="y"?"width":"height",H=hv.has(ma(i)),F=s.reference[g]-s.floating[R]+(H&&((N=c.offset)==null?void 0:N[g])||0)+(H?0:T.crossAxis),I=s.reference[g]+s.reference[R]+(H?0:((O=c.offset)==null?void 0:O[g])||0)-(H?T.crossAxis:0);E<F?E=F:E>I&&(E=I)}return{[b]:w,[g]:E}}}},lM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,l;const{placement:i,rects:s,platform:c,elements:f}=t,{apply:d=()=>{},...h}=ha(e,t),v=await vo(t,h),g=ma(i),b=Wi(i),w=Tr(i)==="y",{width:E,height:A}=s.floating;let T,N;g==="top"||g==="bottom"?(T=g,N=b===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(N=g,T=b==="end"?"top":"bottom");const O=A-v.top-v.bottom,R=E-v.left-v.right,H=al(A-v[T],O),F=al(E-v[N],R),I=!t.middlewareData.shift;let G=H,V=F;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(V=R),(l=t.middlewareData.shift)!=null&&l.enabled.y&&(G=O),I&&!b){const de=Hn(v.left,0),ce=Hn(v.right,0),he=Hn(v.top,0),De=Hn(v.bottom,0);w?V=E-2*(de!==0||ce!==0?de+ce:Hn(v.left,v.right)):G=A-2*(he!==0||De!==0?he+De:Hn(v.top,v.bottom))}await d({...t,availableWidth:V,availableHeight:G});const te=await c.getDimensions(f.floating);return E!==te.width||A!==te.height?{reset:{rects:!0}}:{}}}};function ic(){return typeof window<"u"}function Ji(e){return mv(e)?(e.nodeName||"").toLowerCase():"#document"}function Un(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rr(e){var t;return(t=(mv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mv(e){return ic()?e instanceof Node||e instanceof Un(e).Node:!1}function dr(e){return ic()?e instanceof Element||e instanceof Un(e).Element:!1}function Dr(e){return ic()?e instanceof HTMLElement||e instanceof Un(e).HTMLElement:!1}function Z3(e){return!ic()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Un(e).ShadowRoot}const iM=new Set(["inline","contents"]);function Ro(e){const{overflow:t,overflowX:r,overflowY:l,display:i}=hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+r)&&!iM.has(i)}const oM=new Set(["table","td","th"]);function sM(e){return oM.has(Ji(e))}const uM=[":popover-open",":modal"];function oc(e){return uM.some(t=>{try{return e.matches(t)}catch{return!1}})}const cM=["transform","translate","scale","rotate","perspective"],fM=["transform","translate","scale","rotate","perspective","filter"],dM=["paint","layout","strict","content"];function yh(e){const t=bh(),r=dr(e)?hr(e):e;return cM.some(l=>r[l]?r[l]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||fM.some(l=>(r.willChange||"").includes(l))||dM.some(l=>(r.contain||"").includes(l))}function hM(e){let t=ll(e);for(;Dr(t)&&!Vi(t);){if(yh(t))return t;if(oc(t))return null;t=ll(t)}return null}function bh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mM=new Set(["html","body","#document"]);function Vi(e){return mM.has(Ji(e))}function hr(e){return Un(e).getComputedStyle(e)}function sc(e){return dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ll(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Z3(e)&&e.host||Rr(e);return Z3(t)?t.host:t}function pv(e){const t=ll(e);return Vi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Dr(t)&&Ro(t)?t:pv(t)}function go(e,t,r){var l;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=pv(e),s=i===((l=e.ownerDocument)==null?void 0:l.body),c=Un(i);if(s){const f=H1(c);return t.concat(c,c.visualViewport||[],Ro(i)?i:[],f&&r?go(f):[])}return t.concat(i,go(i,[],r))}function H1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vv(e){const t=hr(e);let r=parseFloat(t.width)||0,l=parseFloat(t.height)||0;const i=Dr(e),s=i?e.offsetWidth:r,c=i?e.offsetHeight:l,f=Bu(r)!==s||Bu(l)!==c;return f&&(r=s,l=c),{width:r,height:l,$:f}}function xh(e){return dr(e)?e:e.contextElement}function Gi(e){const t=xh(e);if(!Dr(t))return Nr(1);const r=t.getBoundingClientRect(),{width:l,height:i,$:s}=vv(t);let c=(s?Bu(r.width):r.width)/l,f=(s?Bu(r.height):r.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const pM=Nr(0);function gv(e){const t=Un(e);return!bh()||!t.visualViewport?pM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vM(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Un(e)?!1:t}function Hl(e,t,r,l){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=xh(e);let c=Nr(1);t&&(l?dr(l)&&(c=Gi(l)):c=Gi(e));const f=vM(s,r,l)?gv(s):Nr(0);let d=(i.left+f.x)/c.x,h=(i.top+f.y)/c.y,v=i.width/c.x,g=i.height/c.y;if(s){const b=Un(s),w=l&&dr(l)?Un(l):l;let E=b,A=H1(E);for(;A&&l&&w!==E;){const T=Gi(A),N=A.getBoundingClientRect(),O=hr(A),R=N.left+(A.clientLeft+parseFloat(O.paddingLeft))*T.x,H=N.top+(A.clientTop+parseFloat(O.paddingTop))*T.y;d*=T.x,h*=T.y,v*=T.x,g*=T.y,d+=R,h+=H,E=Un(A),A=H1(E)}}return qu({width:v,height:g,x:d,y:h})}function uc(e,t){const r=sc(e).scrollLeft;return t?t.left+r:Hl(Rr(e)).left+r}function yv(e,t){const r=e.getBoundingClientRect(),l=r.left+t.scrollLeft-uc(e,r),i=r.top+t.scrollTop;return{x:l,y:i}}function gM(e){let{elements:t,rect:r,offsetParent:l,strategy:i}=e;const s=i==="fixed",c=Rr(l),f=t?oc(t.floating):!1;if(l===c||f&&s)return r;let d={scrollLeft:0,scrollTop:0},h=Nr(1);const v=Nr(0),g=Dr(l);if((g||!g&&!s)&&((Ji(l)!=="body"||Ro(c))&&(d=sc(l)),Dr(l))){const w=Hl(l);h=Gi(l),v.x=w.x+l.clientLeft,v.y=w.y+l.clientTop}const b=c&&!g&&!s?yv(c,d):Nr(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+v.x+b.x,y:r.y*h.y-d.scrollTop*h.y+v.y+b.y}}function yM(e){return Array.from(e.getClientRects())}function bM(e){const t=Rr(e),r=sc(e),l=e.ownerDocument.body,i=Hn(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),s=Hn(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let c=-r.scrollLeft+uc(e);const f=-r.scrollTop;return hr(l).direction==="rtl"&&(c+=Hn(t.clientWidth,l.clientWidth)-i),{width:i,height:s,x:c,y:f}}const W3=25;function xM(e,t){const r=Un(e),l=Rr(e),i=r.visualViewport;let s=l.clientWidth,c=l.clientHeight,f=0,d=0;if(i){s=i.width,c=i.height;const v=bh();(!v||v&&t==="fixed")&&(f=i.offsetLeft,d=i.offsetTop)}const h=uc(l);if(h<=0){const v=l.ownerDocument,g=v.body,b=getComputedStyle(g),w=v.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(l.clientWidth-g.clientWidth-w);E<=W3&&(s-=E)}else h<=W3&&(s+=h);return{width:s,height:c,x:f,y:d}}const wM=new Set(["absolute","fixed"]);function SM(e,t){const r=Hl(e,!0,t==="fixed"),l=r.top+e.clientTop,i=r.left+e.clientLeft,s=Dr(e)?Gi(e):Nr(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,d=i*s.x,h=l*s.y;return{width:c,height:f,x:d,y:h}}function J3(e,t,r){let l;if(t==="viewport")l=xM(e,r);else if(t==="document")l=bM(Rr(e));else if(dr(t))l=SM(t,r);else{const i=gv(e);l={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return qu(l)}function bv(e,t){const r=ll(e);return r===t||!dr(r)||Vi(r)?!1:hr(r).position==="fixed"||bv(r,t)}function AM(e,t){const r=t.get(e);if(r)return r;let l=go(e,[],!1).filter(f=>dr(f)&&Ji(f)!=="body"),i=null;const s=hr(e).position==="fixed";let c=s?ll(e):e;for(;dr(c)&&!Vi(c);){const f=hr(c),d=yh(c);!d&&f.position==="fixed"&&(i=null),(s?!d&&!i:!d&&f.position==="static"&&!!i&&wM.has(i.position)||Ro(c)&&!d&&bv(e,c))?l=l.filter(v=>v!==c):i=f,c=ll(c)}return t.set(e,l),l}function MM(e){let{element:t,boundary:r,rootBoundary:l,strategy:i}=e;const c=[...r==="clippingAncestors"?oc(t)?[]:AM(t,this._c):[].concat(r),l],f=c[0],d=c.reduce((h,v)=>{const g=J3(t,v,i);return h.top=Hn(g.top,h.top),h.right=al(g.right,h.right),h.bottom=al(g.bottom,h.bottom),h.left=Hn(g.left,h.left),h},J3(t,f,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function EM(e){const{width:t,height:r}=vv(e);return{width:t,height:r}}function TM(e,t,r){const l=Dr(t),i=Rr(t),s=r==="fixed",c=Hl(e,!0,s,t);let f={scrollLeft:0,scrollTop:0};const d=Nr(0);function h(){d.x=uc(i)}if(l||!l&&!s)if((Ji(t)!=="body"||Ro(i))&&(f=sc(t)),l){const w=Hl(t,!0,s,t);d.x=w.x+t.clientLeft,d.y=w.y+t.clientTop}else i&&h();s&&!l&&i&&h();const v=i&&!l&&!s?yv(i,f):Nr(0),g=c.left+f.scrollLeft-d.x-v.x,b=c.top+f.scrollTop-d.y-v.y;return{x:g,y:b,width:c.width,height:c.height}}function n1(e){return hr(e).position==="static"}function e5(e,t){if(!Dr(e)||hr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Rr(e)===r&&(r=r.ownerDocument.body),r}function xv(e,t){const r=Un(e);if(oc(e))return r;if(!Dr(e)){let i=ll(e);for(;i&&!Vi(i);){if(dr(i)&&!n1(i))return i;i=ll(i)}return r}let l=e5(e,t);for(;l&&sM(l)&&n1(l);)l=e5(l,t);return l&&Vi(l)&&n1(l)&&!yh(l)?r:l||hM(e)||r}const CM=async function(e){const t=this.getOffsetParent||xv,r=this.getDimensions,l=await r(e.floating);return{reference:TM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function kM(e){return hr(e).direction==="rtl"}const NM={convertOffsetParentRelativeRectToViewportRelativeRect:gM,getDocumentElement:Rr,getClippingRect:MM,getOffsetParent:xv,getElementRects:CM,getClientRects:yM,getDimensions:EM,getScale:Gi,isElement:dr,isRTL:kM};function wv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zM(e,t){let r=null,l;const i=Rr(e);function s(){var f;clearTimeout(l),(f=r)==null||f.disconnect(),r=null}function c(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),s();const h=e.getBoundingClientRect(),{left:v,top:g,width:b,height:w}=h;if(f||t(),!b||!w)return;const E=su(g),A=su(i.clientWidth-(v+b)),T=su(i.clientHeight-(g+w)),N=su(v),R={rootMargin:-E+"px "+-A+"px "+-T+"px "+-N+"px",threshold:Hn(0,al(1,d))||1};let H=!0;function F(I){const G=I[0].intersectionRatio;if(G!==d){if(!H)return c();G?c(!1,G):l=setTimeout(()=>{c(!1,1e-7)},1e3)}G===1&&!wv(h,e.getBoundingClientRect())&&c(),H=!1}try{r=new IntersectionObserver(F,{...R,root:i.ownerDocument})}catch{r=new IntersectionObserver(F,R)}r.observe(e)}return c(!0),s}function DM(e,t,r,l){l===void 0&&(l={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=l,h=xh(e),v=i||s?[...h?go(h):[],...go(t)]:[];v.forEach(N=>{i&&N.addEventListener("scroll",r,{passive:!0}),s&&N.addEventListener("resize",r)});const g=h&&f?zM(h,r):null;let b=-1,w=null;c&&(w=new ResizeObserver(N=>{let[O]=N;O&&O.target===h&&w&&(w.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=w)==null||R.observe(t)})),r()}),h&&!d&&w.observe(h),w.observe(t));let E,A=d?Hl(e):null;d&&T();function T(){const N=Hl(e);A&&!wv(A,N)&&r(),A=N,E=requestAnimationFrame(T)}return r(),()=>{var N;v.forEach(O=>{i&&O.removeEventListener("scroll",r),s&&O.removeEventListener("resize",r)}),g==null||g(),(N=w)==null||N.disconnect(),w=null,d&&cancelAnimationFrame(E)}}const OM=nM,RM=rM,LM=JA,_M=lM,jM=eM,t5=WA,BM=aM,HM=(e,t,r)=>{const l=new Map,i={platform:NM,...r},s={...i.platform,_c:l};return ZA(e,t,{...i,platform:s})};var qM=typeof document<"u",UM=function(){},Cu=qM?M.useLayoutEffect:UM;function Uu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,l,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(l=r;l--!==0;)if(!Uu(e[l],t[l]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(l=r;l--!==0;)if(!{}.hasOwnProperty.call(t,i[l]))return!1;for(l=r;l--!==0;){const s=i[l];if(!(s==="_owner"&&e.$$typeof)&&!Uu(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Sv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function n5(e,t){const r=Sv(e);return Math.round(t*r)/r}function r1(e){const t=M.useRef(e);return Cu(()=>{t.current=e}),t}function GM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:l=[],platform:i,elements:{reference:s,floating:c}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[v,g]=M.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=M.useState(l);Uu(b,l)||w(l);const[E,A]=M.useState(null),[T,N]=M.useState(null),O=M.useCallback(Q=>{Q!==I.current&&(I.current=Q,A(Q))},[]),R=M.useCallback(Q=>{Q!==G.current&&(G.current=Q,N(Q))},[]),H=s||E,F=c||T,I=M.useRef(null),G=M.useRef(null),V=M.useRef(v),te=d!=null,de=r1(d),ce=r1(i),he=r1(h),De=M.useCallback(()=>{if(!I.current||!G.current)return;const Q={placement:t,strategy:r,middleware:b};ce.current&&(Q.platform=ce.current),HM(I.current,G.current,Q).then(ie=>{const be={...ie,isPositioned:he.current!==!1};we.current&&!Uu(V.current,be)&&(V.current=be,ac.flushSync(()=>{g(be)}))})},[b,t,r,ce,he]);Cu(()=>{h===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,g(Q=>({...Q,isPositioned:!1})))},[h]);const we=M.useRef(!1);Cu(()=>(we.current=!0,()=>{we.current=!1}),[]),Cu(()=>{if(H&&(I.current=H),F&&(G.current=F),H&&F){if(de.current)return de.current(H,F,De);De()}},[H,F,De,de,te]);const Ce=M.useMemo(()=>({reference:I,floating:G,setReference:O,setFloating:R}),[O,R]),Y=M.useMemo(()=>({reference:H,floating:F}),[H,F]),ne=M.useMemo(()=>{const Q={position:r,left:0,top:0};if(!Y.floating)return Q;const ie=n5(Y.floating,v.x),be=n5(Y.floating,v.y);return f?{...Q,transform:"translate("+ie+"px, "+be+"px)",...Sv(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ie,top:be}},[r,f,Y.floating,v.x,v.y]);return M.useMemo(()=>({...v,update:De,refs:Ce,elements:Y,floatingStyles:ne}),[v,De,Ce,Y,ne])}const FM=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:l,padding:i}=typeof e=="function"?e(r):e;return l&&t(l)?l.current!=null?t5({element:l.current,padding:i}).fn(r):{}:l?t5({element:l,padding:i}).fn(r):{}}}},YM=(e,t)=>({...OM(e),options:[e,t]}),PM=(e,t)=>({...RM(e),options:[e,t]}),VM=(e,t)=>({...BM(e),options:[e,t]}),IM=(e,t)=>({...LM(e),options:[e,t]}),XM=(e,t)=>({..._M(e),options:[e,t]}),$M=(e,t)=>({...jM(e),options:[e,t]}),KM=(e,t)=>({...FM(e),options:[e,t]});var QM="Arrow",Av=M.forwardRef((e,t)=>{const{children:r,width:l=10,height:i=5,...s}=e;return k.jsx(hn.svg,{...s,ref:t,width:l,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:k.jsx("polygon",{points:"0,0 30,0 15,10"})})});Av.displayName=QM;var ZM=Av;function WM(e){const[t,r]=M.useState(void 0);return rl(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const l=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let c,f;if("borderBoxSize"in s){const d=s.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,f=h.blockSize}else c=e.offsetWidth,f=e.offsetHeight;r({width:c,height:f})});return l.observe(e,{box:"border-box"}),()=>l.unobserve(e)}else r(void 0)},[e]),t}var wh="Popper",[Mv,Ev]=Oo(wh),[JM,Tv]=Mv(wh),Cv=e=>{const{__scopePopper:t,children:r}=e,[l,i]=M.useState(null);return k.jsx(JM,{scope:t,anchor:l,onAnchorChange:i,children:r})};Cv.displayName=wh;var kv="PopperAnchor",Nv=M.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:l,...i}=e,s=Tv(kv,r),c=M.useRef(null),f=kn(t,c),d=M.useRef(null);return M.useEffect(()=>{const h=d.current;d.current=(l==null?void 0:l.current)||c.current,h!==d.current&&s.onAnchorChange(d.current)}),l?null:k.jsx(hn.div,{...i,ref:f})});Nv.displayName=kv;var Sh="PopperContent",[eE,tE]=Mv(Sh),zv=M.forwardRef((e,t)=>{var ve,Be,Oe,Ze,Ye,ye;const{__scopePopper:r,side:l="bottom",sideOffset:i=0,align:s="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:E,...A}=e,T=Tv(Sh,r),[N,O]=M.useState(null),R=kn(t,Pe=>O(Pe)),[H,F]=M.useState(null),I=WM(H),G=(I==null?void 0:I.width)??0,V=(I==null?void 0:I.height)??0,te=l+(s!=="center"?"-"+s:""),de=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},ce=Array.isArray(h)?h:[h],he=ce.length>0,De={padding:de,boundary:ce.filter(rE),altBoundary:he},{refs:we,floatingStyles:Ce,placement:Y,isPositioned:ne,middlewareData:Q}=GM({strategy:"fixed",placement:te,whileElementsMounted:(...Pe)=>DM(...Pe,{animationFrame:w==="always"}),elements:{reference:T.anchor},middleware:[YM({mainAxis:i+V,alignmentAxis:c}),d&&PM({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?VM():void 0,...De}),d&&IM({...De}),XM({...De,apply:({elements:Pe,rects:Ke,availableWidth:gt,availableHeight:qt})=>{const{width:$t,height:Kt}=Ke.reference,Mt=Pe.floating.style;Mt.setProperty("--radix-popper-available-width",`${gt}px`),Mt.setProperty("--radix-popper-available-height",`${qt}px`),Mt.setProperty("--radix-popper-anchor-width",`${$t}px`),Mt.setProperty("--radix-popper-anchor-height",`${Kt}px`)}}),H&&KM({element:H,padding:f}),aE({arrowWidth:G,arrowHeight:V}),b&&$M({strategy:"referenceHidden",...De})]}),[ie,be]=Rv(Y),j=da(E);rl(()=>{ne&&(j==null||j())},[ne,j]);const W=(ve=Q.arrow)==null?void 0:ve.x,le=(Be=Q.arrow)==null?void 0:Be.y,se=((Oe=Q.arrow)==null?void 0:Oe.centerOffset)!==0,[Se,ke]=M.useState();return rl(()=>{N&&ke(window.getComputedStyle(N).zIndex)},[N]),k.jsx("div",{ref:we.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ce,transform:ne?Ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[(Ze=Q.transformOrigin)==null?void 0:Ze.x,(Ye=Q.transformOrigin)==null?void 0:Ye.y].join(" "),...((ye=Q.hide)==null?void 0:ye.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:k.jsx(eE,{scope:r,placedSide:ie,onArrowChange:F,arrowX:W,arrowY:le,shouldHideArrow:se,children:k.jsx(hn.div,{"data-side":ie,"data-align":be,...A,ref:R,style:{...A.style,animation:ne?void 0:"none"}})})})});zv.displayName=Sh;var Dv="PopperArrow",nE={top:"bottom",right:"left",bottom:"top",left:"right"},Ov=M.forwardRef(function(t,r){const{__scopePopper:l,...i}=t,s=tE(Dv,l),c=nE[s.placedSide];return k.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:k.jsx(ZM,{...i,ref:r,style:{...i.style,display:"block"}})})});Ov.displayName=Dv;function rE(e){return e!==null}var aE=e=>({name:"transformOrigin",options:e,fn(t){var T,N,O;const{placement:r,rects:l,middlewareData:i}=t,c=((T=i.arrow)==null?void 0:T.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[h,v]=Rv(r),g={start:"0%",center:"50%",end:"100%"}[v],b=(((N=i.arrow)==null?void 0:N.x)??0)+f/2,w=(((O=i.arrow)==null?void 0:O.y)??0)+d/2;let E="",A="";return h==="bottom"?(E=c?g:`${b}px`,A=`${-d}px`):h==="top"?(E=c?g:`${b}px`,A=`${l.floating.height+d}px`):h==="right"?(E=`${-d}px`,A=c?g:`${w}px`):h==="left"&&(E=`${l.floating.width+d}px`,A=c?g:`${w}px`),{data:{x:E,y:A}}}});function Rv(e){const[t,r="center"]=e.split("-");return[t,r]}var lE=Cv,iE=Nv,oE=zv,sE=Ov,uE="Portal",Lv=M.forwardRef((e,t)=>{var f;const{container:r,...l}=e,[i,s]=M.useState(!1);rl(()=>s(!0),[]);const c=r||i&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?Ax.createPortal(k.jsx(hn.div,{...l,ref:t}),c):null});Lv.displayName=uE;function cE(e,t){return M.useReducer((r,l)=>t[r][l]??r,e)}var Lo=e=>{const{present:t,children:r}=e,l=fE(t),i=typeof r=="function"?r({present:l.isPresent}):M.Children.only(r),s=kn(l.ref,dE(i));return typeof r=="function"||l.isPresent?M.cloneElement(i,{ref:s}):null};Lo.displayName="Presence";function fE(e){const[t,r]=M.useState(),l=M.useRef(null),i=M.useRef(e),s=M.useRef("none"),c=e?"mounted":"unmounted",[f,d]=cE(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M.useEffect(()=>{const h=uu(l.current);s.current=f==="mounted"?h:"none"},[f]),rl(()=>{const h=l.current,v=i.current;if(v!==e){const b=s.current,w=uu(h);e?d("MOUNT"):w==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(v&&b!==w?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),rl(()=>{if(t){let h;const v=t.ownerDocument.defaultView??window,g=w=>{const A=uu(l.current).includes(CSS.escape(w.animationName));if(w.target===t&&A&&(d("ANIMATION_END"),!i.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",h=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},b=w=>{w.target===t&&(s.current=uu(l.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{v.clearTimeout(h),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:M.useCallback(h=>{l.current=h?getComputedStyle(h):null,r(h)},[])}}function uu(e){return(e==null?void 0:e.animationName)||"none"}function dE(e){var l,i;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var a1="rovingFocusGroup.onEntryFocus",hE={bubbles:!1,cancelable:!0},_o="RovingFocusGroup",[q1,_v,mE]=lv(_o),[pE,jv]=Oo(_o,[mE]),[vE,gE]=pE(_o),Bv=M.forwardRef((e,t)=>k.jsx(q1.Provider,{scope:e.__scopeRovingFocusGroup,children:k.jsx(q1.Slot,{scope:e.__scopeRovingFocusGroup,children:k.jsx(yE,{...e,ref:t})})}));Bv.displayName=_o;var yE=M.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:l,loop:i=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:v=!1,...g}=e,b=M.useRef(null),w=kn(t,b),E=iv(s),[A,T]=rv({prop:c,defaultProp:f??null,onChange:d,caller:_o}),[N,O]=M.useState(!1),R=da(h),H=_v(r),F=M.useRef(!1),[I,G]=M.useState(0);return M.useEffect(()=>{const V=b.current;if(V)return V.addEventListener(a1,R),()=>V.removeEventListener(a1,R)},[R]),k.jsx(vE,{scope:r,orientation:l,dir:E,loop:i,currentTabStopId:A,onItemFocus:M.useCallback(V=>T(V),[T]),onItemShiftTab:M.useCallback(()=>O(!0),[]),onFocusableItemAdd:M.useCallback(()=>G(V=>V+1),[]),onFocusableItemRemove:M.useCallback(()=>G(V=>V-1),[]),children:k.jsx(hn.div,{tabIndex:N||I===0?-1:0,"data-orientation":l,...g,ref:w,style:{outline:"none",...e.style},onMouseDown:We(e.onMouseDown,()=>{F.current=!0}),onFocus:We(e.onFocus,V=>{const te=!F.current;if(V.target===V.currentTarget&&te&&!N){const de=new CustomEvent(a1,hE);if(V.currentTarget.dispatchEvent(de),!de.defaultPrevented){const ce=H().filter(Y=>Y.focusable),he=ce.find(Y=>Y.active),De=ce.find(Y=>Y.id===A),Ce=[he,De,...ce].filter(Boolean).map(Y=>Y.ref.current);Uv(Ce,v)}}F.current=!1}),onBlur:We(e.onBlur,()=>O(!1))})})}),Hv="RovingFocusGroupItem",qv=M.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:l=!0,active:i=!1,tabStopId:s,children:c,...f}=e,d=_1(),h=s||d,v=gE(Hv,r),g=v.currentTabStopId===h,b=_v(r),{onFocusableItemAdd:w,onFocusableItemRemove:E,currentTabStopId:A}=v;return M.useEffect(()=>{if(l)return w(),()=>E()},[l,w,E]),k.jsx(q1.ItemSlot,{scope:r,id:h,focusable:l,active:i,children:k.jsx(hn.span,{tabIndex:g?0:-1,"data-orientation":v.orientation,...f,ref:t,onMouseDown:We(e.onMouseDown,T=>{l?v.onItemFocus(h):T.preventDefault()}),onFocus:We(e.onFocus,()=>v.onItemFocus(h)),onKeyDown:We(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){v.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const N=wE(T,v.orientation,v.dir);if(N!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let R=b().filter(H=>H.focusable).map(H=>H.ref.current);if(N==="last")R.reverse();else if(N==="prev"||N==="next"){N==="prev"&&R.reverse();const H=R.indexOf(T.currentTarget);R=v.loop?SE(R,H+1):R.slice(H+1)}setTimeout(()=>Uv(R))}}),children:typeof c=="function"?c({isCurrentTabStop:g,hasTabStop:A!=null}):c})})});qv.displayName=Hv;var bE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xE(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function wE(e,t,r){const l=xE(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return bE[l]}function Uv(e,t=!1){const r=document.activeElement;for(const l of e)if(l===r||(l.focus({preventScroll:t}),document.activeElement!==r))return}function SE(e,t){return e.map((r,l)=>e[(t+l)%e.length])}var AE=Bv,ME=qv;function EE(e){const t=TE(e),r=M.forwardRef((l,i)=>{const{children:s,...c}=l,f=M.Children.toArray(s),d=f.find(kE);if(d){const h=d.props.children,v=f.map(g=>g===d?M.Children.count(h)>1?M.Children.only(null):M.isValidElement(h)?h.props.children:null:g);return k.jsx(t,{...c,ref:i,children:M.isValidElement(h)?M.cloneElement(h,void 0,v):null})}return k.jsx(t,{...c,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}function TE(e){const t=M.forwardRef((r,l)=>{const{children:i,...s}=r;if(M.isValidElement(i)){const c=zE(i),f=NE(s,i.props);return i.type!==M.Fragment&&(f.ref=l?Gl(l,c):c),M.cloneElement(i,f)}return M.Children.count(i)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var CE=Symbol("radix.slottable");function kE(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===CE}function NE(e,t){const r={...t};for(const l in t){const i=e[l],s=t[l];/^on[A-Z]/.test(l)?i&&s?r[l]=(...f)=>{const d=s(...f);return i(...f),d}:i&&(r[l]=i):l==="style"?r[l]={...i,...s}:l==="className"&&(r[l]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function zE(e){var l,i;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var DE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Li=new WeakMap,cu=new WeakMap,fu={},l1=0,Gv=function(e){return e&&(e.host||Gv(e.parentNode))},OE=function(e,t){return t.map(function(r){if(e.contains(r))return r;var l=Gv(r);return l&&e.contains(l)?l:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},RE=function(e,t,r,l){var i=OE(t,Array.isArray(e)?e:[e]);fu[r]||(fu[r]=new WeakMap);var s=fu[r],c=[],f=new Set,d=new Set(i),h=function(g){!g||f.has(g)||(f.add(g),h(g.parentNode))};i.forEach(h);var v=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(b){if(f.has(b))v(b);else try{var w=b.getAttribute(l),E=w!==null&&w!=="false",A=(Li.get(b)||0)+1,T=(s.get(b)||0)+1;Li.set(b,A),s.set(b,T),c.push(b),A===1&&E&&cu.set(b,!0),T===1&&b.setAttribute(r,"true"),E||b.setAttribute(l,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return v(t),f.clear(),l1++,function(){c.forEach(function(g){var b=Li.get(g)-1,w=s.get(g)-1;Li.set(g,b),s.set(g,w),b||(cu.has(g)||g.removeAttribute(l),cu.delete(g)),w||g.removeAttribute(r)}),l1--,l1||(Li=new WeakMap,Li=new WeakMap,cu=new WeakMap,fu={})}},LE=function(e,t,r){r===void 0&&(r="data-aria-hidden");var l=Array.from(Array.isArray(e)?e:[e]),i=DE(e);return i?(l.push.apply(l,Array.from(i.querySelectorAll("[aria-live], script"))),RE(l,i,r,"aria-hidden")):function(){return null}},Er=function(){return Er=Object.assign||function(t){for(var r,l=1,i=arguments.length;l<i;l++){r=arguments[l];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Er.apply(this,arguments)};function Fv(e,t){var r={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(r[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,l=Object.getOwnPropertySymbols(e);i<l.length;i++)t.indexOf(l[i])<0&&Object.prototype.propertyIsEnumerable.call(e,l[i])&&(r[l[i]]=e[l[i]]);return r}function _E(e,t,r){if(r||arguments.length===2)for(var l=0,i=t.length,s;l<i;l++)(s||!(l in t))&&(s||(s=Array.prototype.slice.call(t,0,l)),s[l]=t[l]);return e.concat(s||Array.prototype.slice.call(t))}var ku="right-scroll-bar-position",Nu="width-before-scroll-bar",jE="with-scroll-bars-hidden",BE="--removed-body-scroll-bar-size";function i1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function HE(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(l){var i=r.value;i!==l&&(r.value=l,r.callback(l,i))}}}})[0];return r.callback=t,r.facade}var qE=typeof window<"u"?M.useLayoutEffect:M.useEffect,r5=new WeakMap;function UE(e,t){var r=HE(null,function(l){return e.forEach(function(i){return i1(i,l)})});return qE(function(){var l=r5.get(r);if(l){var i=new Set(l),s=new Set(e),c=r.current;i.forEach(function(f){s.has(f)||i1(f,null)}),s.forEach(function(f){i.has(f)||i1(f,c)})}r5.set(r,e)},[e]),r}function GE(e){return e}function FE(e,t){t===void 0&&(t=GE);var r=[],l=!1,i={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var c=t(s,l);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(s){for(l=!0;r.length;){var c=r;r=[],c.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){l=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(s),c=r}var d=function(){var v=c;c=[],v.forEach(s)},h=function(){return Promise.resolve().then(d)};h(),r={push:function(v){c.push(v),h()},filter:function(v){return c=c.filter(v),r}}}};return i}function YE(e){e===void 0&&(e={});var t=FE(null);return t.options=Er({async:!0,ssr:!1},e),t}var Yv=function(e){var t=e.sideCar,r=Fv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=t.read();if(!l)throw new Error("Sidecar medium not found");return M.createElement(l,Er({},r))};Yv.isSideCarExport=!0;function PE(e,t){return e.useMedium(t),Yv}var Pv=YE(),o1=function(){},cc=M.forwardRef(function(e,t){var r=M.useRef(null),l=M.useState({onScrollCapture:o1,onWheelCapture:o1,onTouchMoveCapture:o1}),i=l[0],s=l[1],c=e.forwardProps,f=e.children,d=e.className,h=e.removeScrollBar,v=e.enabled,g=e.shards,b=e.sideCar,w=e.noRelative,E=e.noIsolation,A=e.inert,T=e.allowPinchZoom,N=e.as,O=N===void 0?"div":N,R=e.gapMode,H=Fv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=b,I=UE([r,t]),G=Er(Er({},H),i);return M.createElement(M.Fragment,null,v&&M.createElement(F,{sideCar:Pv,removeScrollBar:h,shards:g,noRelative:w,noIsolation:E,inert:A,setCallbacks:s,allowPinchZoom:!!T,lockRef:r,gapMode:R}),c?M.cloneElement(M.Children.only(f),Er(Er({},G),{ref:I})):M.createElement(O,Er({},G,{className:d,ref:I}),f))});cc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cc.classNames={fullWidth:Nu,zeroRight:ku};var VE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=VE();return t&&e.setAttribute("nonce",t),e}function XE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $E(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var KE=function(){var e=0,t=null;return{add:function(r){e==0&&(t=IE())&&(XE(t,r),$E(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QE=function(){var e=KE();return function(t,r){M.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Vv=function(){var e=QE(),t=function(r){var l=r.styles,i=r.dynamic;return e(l,i),null};return t},ZE={left:0,top:0,right:0,gap:0},s1=function(e){return parseInt(e||"",10)||0},WE=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],l=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[s1(r),s1(l),s1(i)]},JE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ZE;var t=WE(e),r=document.documentElement.clientWidth,l=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,l-r+t[2]-t[0])}},eT=Vv(),Fi="data-scroll-locked",tT=function(e,t,r,l){var i=e.left,s=e.top,c=e.right,f=e.gap;return r===void 0&&(r="margin"),`
151
- .`.concat(jE,` {
152
- overflow: hidden `).concat(l,`;
153
- padding-right: `).concat(f,"px ").concat(l,`;
154
- }
155
- body[`).concat(Fi,`] {
156
- overflow: hidden `).concat(l,`;
157
- overscroll-behavior: contain;
158
- `).concat([t&&"position: relative ".concat(l,";"),r==="margin"&&`
159
- padding-left: `.concat(i,`px;
160
- padding-top: `).concat(s,`px;
161
- padding-right: `).concat(c,`px;
162
- margin-left:0;
163
- margin-top:0;
164
- margin-right: `).concat(f,"px ").concat(l,`;
165
- `),r==="padding"&&"padding-right: ".concat(f,"px ").concat(l,";")].filter(Boolean).join(""),`
166
- }
167
-
168
- .`).concat(ku,` {
169
- right: `).concat(f,"px ").concat(l,`;
170
- }
171
-
172
- .`).concat(Nu,` {
173
- margin-right: `).concat(f,"px ").concat(l,`;
174
- }
175
-
176
- .`).concat(ku," .").concat(ku,` {
177
- right: 0 `).concat(l,`;
178
- }
179
-
180
- .`).concat(Nu," .").concat(Nu,` {
181
- margin-right: 0 `).concat(l,`;
182
- }
183
-
184
- body[`).concat(Fi,`] {
185
- `).concat(BE,": ").concat(f,`px;
186
- }
187
- `)},a5=function(){var e=parseInt(document.body.getAttribute(Fi)||"0",10);return isFinite(e)?e:0},nT=function(){M.useEffect(function(){return document.body.setAttribute(Fi,(a5()+1).toString()),function(){var e=a5()-1;e<=0?document.body.removeAttribute(Fi):document.body.setAttribute(Fi,e.toString())}},[])},rT=function(e){var t=e.noRelative,r=e.noImportant,l=e.gapMode,i=l===void 0?"margin":l;nT();var s=M.useMemo(function(){return JE(i)},[i]);return M.createElement(eT,{styles:tT(s,!t,i,r?"":"!important")})},U1=!1;if(typeof window<"u")try{var du=Object.defineProperty({},"passive",{get:function(){return U1=!0,!0}});window.addEventListener("test",du,du),window.removeEventListener("test",du,du)}catch{U1=!1}var _i=U1?{passive:!1}:!1,aT=function(e){return e.tagName==="TEXTAREA"},Iv=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!aT(e)&&r[t]==="visible")},lT=function(e){return Iv(e,"overflowY")},iT=function(e){return Iv(e,"overflowX")},l5=function(e,t){var r=t.ownerDocument,l=t;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var i=Xv(e,l);if(i){var s=$v(e,l),c=s[1],f=s[2];if(c>f)return!0}l=l.parentNode}while(l&&l!==r.body);return!1},oT=function(e){var t=e.scrollTop,r=e.scrollHeight,l=e.clientHeight;return[t,r,l]},sT=function(e){var t=e.scrollLeft,r=e.scrollWidth,l=e.clientWidth;return[t,r,l]},Xv=function(e,t){return e==="v"?lT(t):iT(t)},$v=function(e,t){return e==="v"?oT(t):sT(t)},uT=function(e,t){return e==="h"&&t==="rtl"?-1:1},cT=function(e,t,r,l,i){var s=uT(e,window.getComputedStyle(t).direction),c=s*l,f=r.target,d=t.contains(f),h=!1,v=c>0,g=0,b=0;do{if(!f)break;var w=$v(e,f),E=w[0],A=w[1],T=w[2],N=A-T-s*E;(E||N)&&Xv(e,f)&&(g+=N,b+=E);var O=f.parentNode;f=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!d&&f!==document.body||d&&(t.contains(f)||t===f));return(v&&Math.abs(g)<1||!v&&Math.abs(b)<1)&&(h=!0),h},hu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},i5=function(e){return[e.deltaX,e.deltaY]},o5=function(e){return e&&"current"in e?e.current:e},fT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dT=function(e){return`
188
- .block-interactivity-`.concat(e,` {pointer-events: none;}
189
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
190
- `)},hT=0,ji=[];function mT(e){var t=M.useRef([]),r=M.useRef([0,0]),l=M.useRef(),i=M.useState(hT++)[0],s=M.useState(Vv)[0],c=M.useRef(e);M.useEffect(function(){c.current=e},[e]),M.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var A=_E([e.lockRef.current],(e.shards||[]).map(o5),!0).filter(Boolean);return A.forEach(function(T){return T.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),A.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var f=M.useCallback(function(A,T){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!c.current.allowPinchZoom;var N=hu(A),O=r.current,R="deltaX"in A?A.deltaX:O[0]-N[0],H="deltaY"in A?A.deltaY:O[1]-N[1],F,I=A.target,G=Math.abs(R)>Math.abs(H)?"h":"v";if("touches"in A&&G==="h"&&I.type==="range")return!1;var V=window.getSelection(),te=V&&V.anchorNode,de=te?te===I||te.contains(I):!1;if(de)return!1;var ce=l5(G,I);if(!ce)return!0;if(ce?F=G:(F=G==="v"?"h":"v",ce=l5(G,I)),!ce)return!1;if(!l.current&&"changedTouches"in A&&(R||H)&&(l.current=F),!F)return!0;var he=l.current||F;return cT(he,T,A,he==="h"?R:H)},[]),d=M.useCallback(function(A){var T=A;if(!(!ji.length||ji[ji.length-1]!==s)){var N="deltaY"in T?i5(T):hu(T),O=t.current.filter(function(F){return F.name===T.type&&(F.target===T.target||T.target===F.shadowParent)&&fT(F.delta,N)})[0];if(O&&O.should){T.cancelable&&T.preventDefault();return}if(!O){var R=(c.current.shards||[]).map(o5).filter(Boolean).filter(function(F){return F.contains(T.target)}),H=R.length>0?f(T,R[0]):!c.current.noIsolation;H&&T.cancelable&&T.preventDefault()}}},[]),h=M.useCallback(function(A,T,N,O){var R={name:A,delta:T,target:N,should:O,shadowParent:pT(N)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(H){return H!==R})},1)},[]),v=M.useCallback(function(A){r.current=hu(A),l.current=void 0},[]),g=M.useCallback(function(A){h(A.type,i5(A),A.target,f(A,e.lockRef.current))},[]),b=M.useCallback(function(A){h(A.type,hu(A),A.target,f(A,e.lockRef.current))},[]);M.useEffect(function(){return ji.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",d,_i),document.addEventListener("touchmove",d,_i),document.addEventListener("touchstart",v,_i),function(){ji=ji.filter(function(A){return A!==s}),document.removeEventListener("wheel",d,_i),document.removeEventListener("touchmove",d,_i),document.removeEventListener("touchstart",v,_i)}},[]);var w=e.removeScrollBar,E=e.inert;return M.createElement(M.Fragment,null,E?M.createElement(s,{styles:dT(i)}):null,w?M.createElement(rT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function pT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vT=PE(Pv,mT);var Kv=M.forwardRef(function(e,t){return M.createElement(cc,Er({},e,{ref:t,sideCar:vT}))});Kv.classNames=cc.classNames;var G1=["Enter"," "],gT=["ArrowDown","PageUp","Home"],Qv=["ArrowUp","PageDown","End"],yT=[...gT,...Qv],bT={ltr:[...G1,"ArrowRight"],rtl:[...G1,"ArrowLeft"]},xT={ltr:["ArrowLeft"],rtl:["ArrowRight"]},jo="Menu",[yo,wT,ST]=lv(jo),[Fl,Zv]=Oo(jo,[ST,Ev,jv]),fc=Ev(),Wv=jv(),[AT,Yl]=Fl(jo),[MT,Bo]=Fl(jo),Jv=e=>{const{__scopeMenu:t,open:r=!1,children:l,dir:i,onOpenChange:s,modal:c=!0}=e,f=fc(t),[d,h]=M.useState(null),v=M.useRef(!1),g=da(s),b=iv(i);return M.useEffect(()=>{const w=()=>{v.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>v.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),k.jsx(lE,{...f,children:k.jsx(AT,{scope:t,open:r,onOpenChange:g,content:d,onContentChange:h,children:k.jsx(MT,{scope:t,onClose:M.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:v,dir:b,modal:c,children:l})})})};Jv.displayName=jo;var ET="MenuAnchor",Ah=M.forwardRef((e,t)=>{const{__scopeMenu:r,...l}=e,i=fc(r);return k.jsx(iE,{...i,...l,ref:t})});Ah.displayName=ET;var Mh="MenuPortal",[TT,eg]=Fl(Mh,{forceMount:void 0}),tg=e=>{const{__scopeMenu:t,forceMount:r,children:l,container:i}=e,s=Yl(Mh,t);return k.jsx(TT,{scope:t,forceMount:r,children:k.jsx(Lo,{present:r||s.open,children:k.jsx(Lv,{asChild:!0,container:i,children:l})})})};tg.displayName=Mh;var nr="MenuContent",[CT,Eh]=Fl(nr),ng=M.forwardRef((e,t)=>{const r=eg(nr,e.__scopeMenu),{forceMount:l=r.forceMount,...i}=e,s=Yl(nr,e.__scopeMenu),c=Bo(nr,e.__scopeMenu);return k.jsx(yo.Provider,{scope:e.__scopeMenu,children:k.jsx(Lo,{present:l||s.open,children:k.jsx(yo.Slot,{scope:e.__scopeMenu,children:c.modal?k.jsx(kT,{...i,ref:t}):k.jsx(NT,{...i,ref:t})})})})}),kT=M.forwardRef((e,t)=>{const r=Yl(nr,e.__scopeMenu),l=M.useRef(null),i=kn(t,l);return M.useEffect(()=>{const s=l.current;if(s)return LE(s)},[]),k.jsx(Th,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:We(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),NT=M.forwardRef((e,t)=>{const r=Yl(nr,e.__scopeMenu);return k.jsx(Th,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),zT=EE("MenuContent.ScrollLock"),Th=M.forwardRef((e,t)=>{const{__scopeMenu:r,loop:l=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEntryFocus:d,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:b,onDismiss:w,disableOutsideScroll:E,...A}=e,T=Yl(nr,r),N=Bo(nr,r),O=fc(r),R=Wv(r),H=wT(r),[F,I]=M.useState(null),G=M.useRef(null),V=kn(t,G,T.onContentChange),te=M.useRef(0),de=M.useRef(""),ce=M.useRef(0),he=M.useRef(null),De=M.useRef("right"),we=M.useRef(0),Ce=E?Kv:M.Fragment,Y=E?{as:zT,allowPinchZoom:!0}:void 0,ne=ie=>{var ve,Be;const be=de.current+ie,j=H().filter(Oe=>!Oe.disabled),W=document.activeElement,le=(ve=j.find(Oe=>Oe.ref.current===W))==null?void 0:ve.textValue,se=j.map(Oe=>Oe.textValue),Se=FT(se,be,le),ke=(Be=j.find(Oe=>Oe.textValue===Se))==null?void 0:Be.ref.current;(function Oe(Ze){de.current=Ze,window.clearTimeout(te.current),Ze!==""&&(te.current=window.setTimeout(()=>Oe(""),1e3))})(be),ke&&setTimeout(()=>ke.focus())};M.useEffect(()=>()=>window.clearTimeout(te.current),[]),zA();const Q=M.useCallback(ie=>{var j,W;return De.current===((j=he.current)==null?void 0:j.side)&&PT(ie,(W=he.current)==null?void 0:W.area)},[]);return k.jsx(CT,{scope:r,searchRef:de,onItemEnter:M.useCallback(ie=>{Q(ie)&&ie.preventDefault()},[Q]),onItemLeave:M.useCallback(ie=>{var be;Q(ie)||((be=G.current)==null||be.focus(),I(null))},[Q]),onTriggerLeave:M.useCallback(ie=>{Q(ie)&&ie.preventDefault()},[Q]),pointerGraceTimerRef:ce,onPointerGraceIntentChange:M.useCallback(ie=>{he.current=ie},[]),children:k.jsx(Ce,{...Y,children:k.jsx(cv,{asChild:!0,trapped:i,onMountAutoFocus:We(s,ie=>{var be;ie.preventDefault(),(be=G.current)==null||be.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:k.jsx(sv,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:b,onDismiss:w,children:k.jsx(AE,{asChild:!0,...R,dir:N.dir,orientation:"vertical",loop:l,currentTabStopId:F,onCurrentTabStopIdChange:I,onEntryFocus:We(d,ie=>{N.isUsingKeyboardRef.current||ie.preventDefault()}),preventScrollOnEntryFocus:!0,children:k.jsx(oE,{role:"menu","aria-orientation":"vertical","data-state":yg(T.open),"data-radix-menu-content":"",dir:N.dir,...O,...A,ref:V,style:{outline:"none",...A.style},onKeyDown:We(A.onKeyDown,ie=>{const j=ie.target.closest("[data-radix-menu-content]")===ie.currentTarget,W=ie.ctrlKey||ie.altKey||ie.metaKey,le=ie.key.length===1;j&&(ie.key==="Tab"&&ie.preventDefault(),!W&&le&&ne(ie.key));const se=G.current;if(ie.target!==se||!yT.includes(ie.key))return;ie.preventDefault();const ke=H().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);Qv.includes(ie.key)&&ke.reverse(),UT(ke)}),onBlur:We(e.onBlur,ie=>{ie.currentTarget.contains(ie.target)||(window.clearTimeout(te.current),de.current="")}),onPointerMove:We(e.onPointerMove,bo(ie=>{const be=ie.target,j=we.current!==ie.clientX;if(ie.currentTarget.contains(be)&&j){const W=ie.clientX>we.current?"right":"left";De.current=W,we.current=ie.clientX}}))})})})})})})});ng.displayName=nr;var DT="MenuGroup",Ch=M.forwardRef((e,t)=>{const{__scopeMenu:r,...l}=e;return k.jsx(hn.div,{role:"group",...l,ref:t})});Ch.displayName=DT;var OT="MenuLabel",rg=M.forwardRef((e,t)=>{const{__scopeMenu:r,...l}=e;return k.jsx(hn.div,{...l,ref:t})});rg.displayName=OT;var Gu="MenuItem",s5="menu.itemSelect",dc=M.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:l,...i}=e,s=M.useRef(null),c=Bo(Gu,e.__scopeMenu),f=Eh(Gu,e.__scopeMenu),d=kn(t,s),h=M.useRef(!1),v=()=>{const g=s.current;if(!r&&g){const b=new CustomEvent(s5,{bubbles:!0,cancelable:!0});g.addEventListener(s5,w=>l==null?void 0:l(w),{once:!0}),av(g,b),b.defaultPrevented?h.current=!1:c.onClose()}};return k.jsx(ag,{...i,ref:d,disabled:r,onClick:We(e.onClick,v),onPointerDown:g=>{var b;(b=e.onPointerDown)==null||b.call(e,g),h.current=!0},onPointerUp:We(e.onPointerUp,g=>{var b;h.current||(b=g.currentTarget)==null||b.click()}),onKeyDown:We(e.onKeyDown,g=>{const b=f.searchRef.current!=="";r||b&&g.key===" "||G1.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});dc.displayName=Gu;var ag=M.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:l=!1,textValue:i,...s}=e,c=Eh(Gu,r),f=Wv(r),d=M.useRef(null),h=kn(t,d),[v,g]=M.useState(!1),[b,w]=M.useState("");return M.useEffect(()=>{const E=d.current;E&&w((E.textContent??"").trim())},[s.children]),k.jsx(yo.ItemSlot,{scope:r,disabled:l,textValue:i??b,children:k.jsx(ME,{asChild:!0,...f,focusable:!l,children:k.jsx(hn.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...s,ref:h,onPointerMove:We(e.onPointerMove,bo(E=>{l?c.onItemLeave(E):(c.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:We(e.onPointerLeave,bo(E=>c.onItemLeave(E))),onFocus:We(e.onFocus,()=>g(!0)),onBlur:We(e.onBlur,()=>g(!1))})})})}),RT="MenuCheckboxItem",lg=M.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:l,...i}=e;return k.jsx(cg,{scope:e.__scopeMenu,checked:r,children:k.jsx(dc,{role:"menuitemcheckbox","aria-checked":Fu(r)?"mixed":r,...i,ref:t,"data-state":Nh(r),onSelect:We(i.onSelect,()=>l==null?void 0:l(Fu(r)?!0:!r),{checkForDefaultPrevented:!1})})})});lg.displayName=RT;var ig="MenuRadioGroup",[LT,_T]=Fl(ig,{value:void 0,onValueChange:()=>{}}),og=M.forwardRef((e,t)=>{const{value:r,onValueChange:l,...i}=e,s=da(l);return k.jsx(LT,{scope:e.__scopeMenu,value:r,onValueChange:s,children:k.jsx(Ch,{...i,ref:t})})});og.displayName=ig;var sg="MenuRadioItem",ug=M.forwardRef((e,t)=>{const{value:r,...l}=e,i=_T(sg,e.__scopeMenu),s=r===i.value;return k.jsx(cg,{scope:e.__scopeMenu,checked:s,children:k.jsx(dc,{role:"menuitemradio","aria-checked":s,...l,ref:t,"data-state":Nh(s),onSelect:We(l.onSelect,()=>{var c;return(c=i.onValueChange)==null?void 0:c.call(i,r)},{checkForDefaultPrevented:!1})})})});ug.displayName=sg;var kh="MenuItemIndicator",[cg,jT]=Fl(kh,{checked:!1}),fg=M.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:l,...i}=e,s=jT(kh,r);return k.jsx(Lo,{present:l||Fu(s.checked)||s.checked===!0,children:k.jsx(hn.span,{...i,ref:t,"data-state":Nh(s.checked)})})});fg.displayName=kh;var BT="MenuSeparator",dg=M.forwardRef((e,t)=>{const{__scopeMenu:r,...l}=e;return k.jsx(hn.div,{role:"separator","aria-orientation":"horizontal",...l,ref:t})});dg.displayName=BT;var HT="MenuArrow",hg=M.forwardRef((e,t)=>{const{__scopeMenu:r,...l}=e,i=fc(r);return k.jsx(sE,{...i,...l,ref:t})});hg.displayName=HT;var qT="MenuSub",[QR,mg]=Fl(qT),io="MenuSubTrigger",pg=M.forwardRef((e,t)=>{const r=Yl(io,e.__scopeMenu),l=Bo(io,e.__scopeMenu),i=mg(io,e.__scopeMenu),s=Eh(io,e.__scopeMenu),c=M.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:d}=s,h={__scopeMenu:e.__scopeMenu},v=M.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return M.useEffect(()=>v,[v]),M.useEffect(()=>{const g=f.current;return()=>{window.clearTimeout(g),d(null)}},[f,d]),k.jsx(Ah,{asChild:!0,...h,children:k.jsx(ag,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":yg(r.open),...e,ref:Gl(t,i.onTriggerChange),onClick:g=>{var b;(b=e.onClick)==null||b.call(e,g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:We(e.onPointerMove,bo(g=>{s.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),v()},100))})),onPointerLeave:We(e.onPointerLeave,bo(g=>{var w,E;v();const b=(w=r.content)==null?void 0:w.getBoundingClientRect();if(b){const A=(E=r.content)==null?void 0:E.dataset.side,T=A==="right",N=T?-5:5,O=b[T?"left":"right"],R=b[T?"right":"left"];s.onPointerGraceIntentChange({area:[{x:g.clientX+N,y:g.clientY},{x:O,y:b.top},{x:R,y:b.top},{x:R,y:b.bottom},{x:O,y:b.bottom}],side:A}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(g),g.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:We(e.onKeyDown,g=>{var w;const b=s.searchRef.current!=="";e.disabled||b&&g.key===" "||bT[l.dir].includes(g.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),g.preventDefault())})})})});pg.displayName=io;var vg="MenuSubContent",gg=M.forwardRef((e,t)=>{const r=eg(nr,e.__scopeMenu),{forceMount:l=r.forceMount,...i}=e,s=Yl(nr,e.__scopeMenu),c=Bo(nr,e.__scopeMenu),f=mg(vg,e.__scopeMenu),d=M.useRef(null),h=kn(t,d);return k.jsx(yo.Provider,{scope:e.__scopeMenu,children:k.jsx(Lo,{present:l||s.open,children:k.jsx(yo.Slot,{scope:e.__scopeMenu,children:k.jsx(Th,{id:f.contentId,"aria-labelledby":f.triggerId,...i,ref:h,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:v=>{var g;c.isUsingKeyboardRef.current&&((g=d.current)==null||g.focus()),v.preventDefault()},onCloseAutoFocus:v=>v.preventDefault(),onFocusOutside:We(e.onFocusOutside,v=>{v.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:We(e.onEscapeKeyDown,v=>{c.onClose(),v.preventDefault()}),onKeyDown:We(e.onKeyDown,v=>{var w;const g=v.currentTarget.contains(v.target),b=xT[c.dir].includes(v.key);g&&b&&(s.onOpenChange(!1),(w=f.trigger)==null||w.focus(),v.preventDefault())})})})})})});gg.displayName=vg;function yg(e){return e?"open":"closed"}function Fu(e){return e==="indeterminate"}function Nh(e){return Fu(e)?"indeterminate":e?"checked":"unchecked"}function UT(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function GT(e,t){return e.map((r,l)=>e[(t+l)%e.length])}function FT(e,t,r){const i=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let c=GT(e,Math.max(s,0));i.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.toLowerCase().startsWith(i.toLowerCase()));return d!==r?d:void 0}function YT(e,t){const{x:r,y:l}=e;let i=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const f=t[s],d=t[c],h=f.x,v=f.y,g=d.x,b=d.y;v>l!=b>l&&r<(g-h)*(l-v)/(b-v)+h&&(i=!i)}return i}function PT(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return YT(r,t)}function bo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var VT=Jv,IT=Ah,XT=tg,$T=ng,KT=Ch,QT=rg,ZT=dc,WT=lg,JT=og,eC=ug,tC=fg,nC=dg,rC=hg,aC=pg,lC=gg,hc="DropdownMenu",[iC]=Oo(hc,[Zv]),mn=Zv(),[oC,bg]=iC(hc),xg=e=>{const{__scopeDropdownMenu:t,children:r,dir:l,open:i,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,d=mn(t),h=M.useRef(null),[v,g]=rv({prop:i,defaultProp:s??!1,onChange:c,caller:hc});return k.jsx(oC,{scope:t,triggerId:_1(),triggerRef:h,contentId:_1(),open:v,onOpenChange:g,onOpenToggle:M.useCallback(()=>g(b=>!b),[g]),modal:f,children:k.jsx(VT,{...d,open:v,onOpenChange:g,dir:l,modal:f,children:r})})};xg.displayName=hc;var wg="DropdownMenuTrigger",Sg=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:l=!1,...i}=e,s=bg(wg,r),c=mn(r);return k.jsx(IT,{asChild:!0,...c,children:k.jsx(hn.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":l?"":void 0,disabled:l,...i,ref:Gl(t,s.triggerRef),onPointerDown:We(e.onPointerDown,f=>{!l&&f.button===0&&f.ctrlKey===!1&&(s.onOpenToggle(),s.open||f.preventDefault())}),onKeyDown:We(e.onKeyDown,f=>{l||(["Enter"," "].includes(f.key)&&s.onOpenToggle(),f.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});Sg.displayName=wg;var sC="DropdownMenuPortal",Ag=e=>{const{__scopeDropdownMenu:t,...r}=e,l=mn(t);return k.jsx(XT,{...l,...r})};Ag.displayName=sC;var Mg="DropdownMenuContent",Eg=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=bg(Mg,r),s=mn(r),c=M.useRef(!1);return k.jsx($T,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...l,ref:t,onCloseAutoFocus:We(e.onCloseAutoFocus,f=>{var d;c.current||(d=i.triggerRef.current)==null||d.focus(),c.current=!1,f.preventDefault()}),onInteractOutside:We(e.onInteractOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0,v=d.button===2||h;(!i.modal||v)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Eg.displayName=Mg;var uC="DropdownMenuGroup",cC=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(KT,{...i,...l,ref:t})});cC.displayName=uC;var fC="DropdownMenuLabel",Tg=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(QT,{...i,...l,ref:t})});Tg.displayName=fC;var dC="DropdownMenuItem",Cg=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(ZT,{...i,...l,ref:t})});Cg.displayName=dC;var hC="DropdownMenuCheckboxItem",kg=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(WT,{...i,...l,ref:t})});kg.displayName=hC;var mC="DropdownMenuRadioGroup",Ng=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(JT,{...i,...l,ref:t})});Ng.displayName=mC;var pC="DropdownMenuRadioItem",zg=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(eC,{...i,...l,ref:t})});zg.displayName=pC;var vC="DropdownMenuItemIndicator",Dg=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(tC,{...i,...l,ref:t})});Dg.displayName=vC;var gC="DropdownMenuSeparator",Og=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(nC,{...i,...l,ref:t})});Og.displayName=gC;var yC="DropdownMenuArrow",bC=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(rC,{...i,...l,ref:t})});bC.displayName=yC;var xC="DropdownMenuSubTrigger",Rg=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(aC,{...i,...l,ref:t})});Rg.displayName=xC;var wC="DropdownMenuSubContent",Lg=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...l}=e,i=mn(r);return k.jsx(lC,{...i,...l,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Lg.displayName=wC;var SC=xg,AC=Sg,MC=Ag,_g=Eg,jg=Tg,Bg=Cg,Hg=kg,EC=Ng,qg=zg,Ug=Dg,Gg=Og,Fg=Rg,Yg=Lg;const TC=SC,CC=AC,kC=EC,NC=M.forwardRef(({className:e,inset:t,children:r,...l},i)=>k.jsxs(Fg,{ref:i,className:ct("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...l,children:[r,k.jsx(tv,{className:"ml-auto"})]}));NC.displayName=Fg.displayName;const zC=M.forwardRef(({className:e,...t},r)=>k.jsx(Yg,{ref:r,className:ct("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));zC.displayName=Yg.displayName;const Pg=M.forwardRef(({className:e,sideOffset:t=4,...r},l)=>k.jsx(MC,{children:k.jsx(_g,{ref:l,sideOffset:t,className:ct("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...r})}));Pg.displayName=_g.displayName;const DC=M.forwardRef(({className:e,inset:t,...r},l)=>k.jsx(Bg,{ref:l,className:ct("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r}));DC.displayName=Bg.displayName;const OC=M.forwardRef(({className:e,children:t,checked:r,...l},i)=>k.jsxs(Hg,{ref:i,className:ct("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...l,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(Ug,{children:k.jsx(qS,{className:"h-4 w-4"})})}),t]}));OC.displayName=Hg.displayName;const zu=M.forwardRef(({className:e,children:t,...r},l)=>k.jsxs(qg,{ref:l,className:ct("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(Ug,{children:k.jsx($S,{className:"h-2 w-2 fill-current"})})}),t]}));zu.displayName=qg.displayName;const RC=M.forwardRef(({className:e,inset:t,...r},l)=>k.jsx(jg,{ref:l,className:ct("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));RC.displayName=jg.displayName;const LC=M.forwardRef(({className:e,...t},r)=>k.jsx(Gg,{ref:r,className:ct("-mx-1 my-1 h-px bg-muted",e),...t}));LC.displayName=Gg.displayName;function _C(){const{theme:e,setTheme:t}=z6();return k.jsxs(TC,{children:[k.jsx(CC,{asChild:!0,children:k.jsxs("button",{className:"relative p-2 text-muted-foreground/70 hover:text-foreground transition-colors duration-300","aria-label":"Toggle theme",children:[k.jsx(j3,{className:`h-4 w-4 transition-all duration-300 ${e==="light"?"scale-100 rotate-0":"scale-0 -rotate-90 absolute top-2 left-2"}`}),k.jsx(_3,{className:`h-4 w-4 transition-all duration-300 ${e==="dark"?"scale-100 rotate-0":"scale-0 rotate-90 absolute top-2 left-2"}`}),k.jsx(L3,{className:`h-4 w-4 transition-all duration-300 ${e==="system"||!e?"scale-100":"scale-0 absolute top-2 left-2"}`})]})}),k.jsx(Pg,{align:"end",children:k.jsxs(kC,{value:e,onValueChange:t,children:[k.jsxs(zu,{value:"light",children:[k.jsx(j3,{className:"mr-2 h-4 w-4"}),"Light"]}),k.jsxs(zu,{value:"dark",children:[k.jsx(_3,{className:"mr-2 h-4 w-4"}),"Dark"]}),k.jsxs(zu,{value:"system",children:[k.jsx(L3,{className:"mr-2 h-4 w-4"}),"System"]})]})})]})}const jC="#181717",BC=M.forwardRef(function({title:t="GitHub",color:r="currentColor",size:l=24,...i},s){return r==="default"&&(r=jC),k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:l,fill:r,viewBox:"0 0 24 24",ref:s,...i,children:[k.jsx("title",{children:t}),k.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})});function zh({slideControls:e}={}){return k.jsx("header",{className:"print:hidden fixed top-0 left-0 right-0 z-40",children:k.jsxs("div",{className:"mx-auto w-full px-[var(--page-padding)] flex items-center gap-8 py-4",children:[k.jsx("nav",{className:"flex items-center gap-1",children:k.jsx(Pi,{to:"/",className:"rounded-lg font-mono py-1.5 text-sm font-medium text-muted-foreground hover:underline",children:"pl"})}),k.jsx("div",{className:"flex-1"}),e&&k.jsxs("nav",{className:"flex items-center gap-1",children:[k.jsx("button",{onClick:e.onPrevious,className:"p-1.5 text-muted-foreground/70 hover:text-foreground transition-colors duration-200",title:"Previous slide (↑)",children:k.jsx(IS,{className:"h-4 w-4"})}),k.jsxs("span",{className:"font-mono text-xs text-muted-foreground/70 tabular-nums min-w-[3ch] text-center",children:[e.current+1,"/",e.total]}),k.jsx("button",{onClick:e.onNext,className:"p-1.5 text-muted-foreground/70 hover:text-foreground transition-colors duration-200",title:"Next slide (↓)",children:k.jsx(GS,{className:"h-4 w-4"})})]}),k.jsxs("nav",{className:"flex items-center gap-2",children:[k.jsx(Pi,{to:"https://github.com/eoinmurray/pinglab",target:"_blank",className:"text-muted-foreground/70 hover:text-foreground transition-colors duration-300","aria-label":"GitHub",children:k.jsx(BC,{className:"h-4 w-4"})}),k.jsx(_C,{})]})]})})}function HC(){const{"*":e="."}=lh(),{directory:t,loading:r,error:l}=fh(e);return l?k.jsx(aA,{error:l,path:e}):r?k.jsx(dh,{}):k.jsxs("div",{className:"flex min-h-screen flex-col bg-background noise-overlay",children:[k.jsx(mh,{}),k.jsx(zh,{}),k.jsxs("main",{className:"flex-1 mx-auto w-full max-w-[var(--content-width)] px-[var(--page-padding)]",children:[k.jsx("title",{children:`Pinglab ${e}`}),k.jsx("main",{className:"flex flex-col gap-6 mb-32 mt-32",children:t&&k.jsx("div",{className:"animate-fade-in",children:k.jsx(rA,{directory:t})})})]})]})}function Vg({title:e,date:t,description:r,slides:l}){return k.jsx("div",{children:e&&k.jsxs("header",{className:"not-prose flex flex-col gap-2 mb-8 pt-4",children:[k.jsx("h1",{className:"text-2xl md:text-3xl font-semibold tracking-tight text-foreground mb-3",children:e}),k.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-muted-foreground",children:[t&&k.jsx("time",{className:"font-mono text-xs bg-muted px-2 py-0.5 rounded",children:W6(new Date(t))}),l&&k.jsxs(Pi,{to:`/${l.path}`,className:"font-mono text-xs px-2 py-0.5 rounded flex items-center gap-1",children:[k.jsx(JS,{className:"h-3.5 w-3.5"}),k.jsx("span",{children:"slides"})]})]}),r&&k.jsx("div",{className:"flex flex-wrap text-sm items-center gap-3 text-muted-foreground",children:r})]})})}const qC="modulepreload",UC=function(e){return"/"+e},u5={},Ig=function(t,r,l){let i=Promise.resolve();if(r&&r.length>0){let c=function(h){return Promise.all(h.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),d=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));i=c(r.map(h=>{if(h=UC(h),h in u5)return;u5[h]=!0;const v=h.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":qC,v||(b.as="script"),b.crossOrigin="",b.href=h,d&&b.setAttribute("nonce",d),document.head.appendChild(b),v)return new Promise((w,E)=>{b.addEventListener("load",w),b.addEventListener("error",()=>E(Error(`Unable to preload CSS for ${h}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return i.then(c=>{for(const f of c||[])f.status==="rejected"&&s(f.reason);return t().catch(s)})};function GC(e){const[t,r]=M.useState(null),[l,i]=M.useState(void 0),[s,c]=M.useState(!0),[f,d]=M.useState(null);return M.useEffect(()=>{let h=!1;return c(!0),d(null),Ig(async()=>{const{modules:v}=await import("./_virtual_content-modules-DK3Yb9K2.js");return{modules:v}},[]).then(({modules:v})=>{const g=Object.keys(v).find(w=>w.endsWith(`/${e}/README.mdx`)),b=g?v[g]:null;if(!b)throw new Error(`MDX module not found for path: ${e}`);return b()}).then(v=>{h||(r(()=>v.default),i(v.frontmatter),c(!1))}).catch(v=>{h||(d(v),c(!1))}),()=>{h=!0}},[e]),{Content:t,frontmatter:l,loading:s,error:f}}function FC(e){const[t,r]=M.useState(null),[l,i]=M.useState(void 0),[s,c]=M.useState(!0),[f,d]=M.useState(null);return M.useEffect(()=>{let h=!1;return c(!0),d(null),Ig(async()=>{const{slides:v}=await import("./_virtual_content-modules-DK3Yb9K2.js");return{slides:v}},[]).then(({slides:v})=>{const g=Object.keys(v).find(w=>w.endsWith(`/${e}/SLIDES.mdx`)),b=g?v[g]:null;if(!b)throw new Error(`Slides module not found for path: ${e}`);return b()}).then(v=>{h||(r(()=>v.default),i(v.frontmatter),c(!1))}).catch(v=>{h||(d(v),c(!1))}),()=>{h=!0}},[e]),{Content:t,frontmatter:l,loading:s,error:f}}const Xg="data-fullscreen-active";function YC({images:e,selectedIndex:t,onClose:r,onPrevious:l,onNext:i,showNavigation:s=!0}){const c=e[t];return ac.createPortal(k.jsxs("div",{className:"fixed inset-0 z-[9999] bg-background",onClick:r,[Xg]:"true",style:{top:0,left:0,right:0,bottom:0},children:[k.jsxs("div",{className:"fixed top-0 left-0 right-0 z-10 flex items-center justify-between px-4 py-3 bg-background/80 backdrop-blur-sm",onClick:f=>f.stopPropagation(),children:[k.jsxs("div",{className:"font-mono text-xs text-muted-foreground tabular-nums",children:[String(t+1).padStart(2,"0")," / ",String(e.length).padStart(2,"0")]}),k.jsx("button",{onClick:r,className:"p-2 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close",children:k.jsx(nA,{className:"h-5 w-5"})})]}),s&&t>0&&k.jsx("button",{onClick:f=>{f.stopPropagation(),l()},className:"fixed left-4 top-1/2 -translate-y-1/2 z-10 p-2 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Previous image",children:k.jsx(YS,{className:"h-8 w-8"})}),s&&t<e.length-1&&k.jsx("button",{onClick:f=>{f.stopPropagation(),i()},className:"fixed right-4 top-1/2 -translate-y-1/2 z-10 p-2 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Next image",children:k.jsx(tv,{className:"h-8 w-8"})}),k.jsx("div",{className:"fixed inset-0 flex items-center justify-center p-16",children:k.jsx("img",{src:c.src,alt:c.label,className:"max-w-full max-h-full object-contain",onClick:f=>f.stopPropagation()})}),k.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-10 p-4 text-center bg-background/80 backdrop-blur-sm",onClick:f=>f.stopPropagation(),children:k.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:c.label})})]}),document.body)}const $g=(e,t,r)=>{const l=e instanceof RegExp?c5(e,r):e,i=t instanceof RegExp?c5(t,r):t,s=l!==null&&i!=null&&PC(l,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+l.length,s[1]),post:r.slice(s[1]+i.length)}},c5=(e,t)=>{const r=t.match(e);return r?r[0]:null},PC=(e,t,r)=>{let l,i,s,c,f,d=r.indexOf(e),h=r.indexOf(t,d+1),v=d;if(d>=0&&h>0){if(e===t)return[d,h];for(l=[],s=r.length;v>=0&&!f;){if(v===d)l.push(v),d=r.indexOf(e,v+1);else if(l.length===1){const g=l.pop();g!==void 0&&(f=[g,h])}else i=l.pop(),i!==void 0&&i<s&&(s=i,c=h),h=r.indexOf(t,v+1);v=d<h&&d>=0?d:h}l.length&&c!==void 0&&(f=[s,c])}return f},Kg="\0SLASH"+Math.random()+"\0",Qg="\0OPEN"+Math.random()+"\0",Dh="\0CLOSE"+Math.random()+"\0",Zg="\0COMMA"+Math.random()+"\0",Wg="\0PERIOD"+Math.random()+"\0",VC=new RegExp(Kg,"g"),IC=new RegExp(Qg,"g"),XC=new RegExp(Dh,"g"),$C=new RegExp(Zg,"g"),KC=new RegExp(Wg,"g"),QC=/\\\\/g,ZC=/\\{/g,WC=/\\}/g,JC=/\\,/g,ek=/\\./g;function u1(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function tk(e){return e.replace(QC,Kg).replace(ZC,Qg).replace(WC,Dh).replace(JC,Zg).replace(ek,Wg)}function nk(e){return e.replace(VC,"\\").replace(IC,"{").replace(XC,"}").replace($C,",").replace(KC,".")}function Jg(e){if(!e)return[""];const t=[],r=$g("{","}",e);if(!r)return e.split(",");const{pre:l,body:i,post:s}=r,c=l.split(",");c[c.length-1]+="{"+i+"}";const f=Jg(s);return s.length&&(c[c.length-1]+=f.shift(),c.push.apply(c,f)),t.push.apply(t,c),t}function rk(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),oo(tk(e),!0).map(nk)):[]}function ak(e){return"{"+e+"}"}function lk(e){return/^-?0\d/.test(e)}function ik(e,t){return e<=t}function ok(e,t){return e>=t}function oo(e,t){const r=[],l=$g("{","}",e);if(!l)return[e];const i=l.pre,s=l.post.length?oo(l.post,!1):[""];if(/\$$/.test(l.pre))for(let c=0;c<s.length;c++){const f=i+"{"+l.body+"}"+s[c];r.push(f)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(l.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(l.body),d=c||f,h=l.body.indexOf(",")>=0;if(!d&&!h)return l.post.match(/,(?!,).*\}/)?(e=l.pre+"{"+l.body+Dh+l.post,oo(e)):[e];let v;if(d)v=l.body.split(/\.\./);else if(v=Jg(l.body),v.length===1&&v[0]!==void 0&&(v=oo(v[0],!1).map(ak),v.length===1))return s.map(b=>l.pre+v[0]+b);let g;if(d&&v[0]!==void 0&&v[1]!==void 0){const b=u1(v[0]),w=u1(v[1]),E=Math.max(v[0].length,v[1].length);let A=v.length===3&&v[2]!==void 0?Math.abs(u1(v[2])):1,T=ik;w<b&&(A*=-1,T=ok);const O=v.some(lk);g=[];for(let R=b;T(R,w);R+=A){let H;if(f)H=String.fromCharCode(R),H==="\\"&&(H="");else if(H=String(R),O){const F=E-H.length;if(F>0){const I=new Array(F+1).join("0");R<0?H="-"+I+H.slice(1):H=I+H}}g.push(H)}}else{g=[];for(let b=0;b<v.length;b++)g.push.apply(g,oo(v[b],!1))}for(let b=0;b<g.length;b++)for(let w=0;w<s.length;w++){const E=i+g[b]+s[w];(!t||d||E)&&r.push(E)}}return r}const sk=1024*64,Yu=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>sk)throw new TypeError("pattern is too long")},uk={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ao=e=>e.replace(/[[\]\\-]/g,"\\$&"),ck=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),f5=e=>e.join(""),fk=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const l=[],i=[];let s=r+1,c=!1,f=!1,d=!1,h=!1,v=r,g="";e:for(;s<e.length;){const A=e.charAt(s);if((A==="!"||A==="^")&&s===r+1){h=!0,s++;continue}if(A==="]"&&c&&!d){v=s+1;break}if(c=!0,A==="\\"&&!d){d=!0,s++;continue}if(A==="["&&!d){for(const[T,[N,O,R]]of Object.entries(uk))if(e.startsWith(T,s)){if(g)return["$.",!1,e.length-r,!0];s+=T.length,R?i.push(N):l.push(N),f=f||O;continue e}}if(d=!1,g){A>g?l.push(ao(g)+"-"+ao(A)):A===g&&l.push(ao(A)),g="",s++;continue}if(e.startsWith("-]",s+1)){l.push(ao(A+"-")),s+=2;continue}if(e.startsWith("-",s+1)){g=A,s+=2;continue}l.push(ao(A)),s++}if(v<s)return["",!1,0,!1];if(!l.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&l.length===1&&/^\\?.$/.test(l[0])&&!h){const A=l[0].length===2?l[0].slice(-1):l[0];return[ck(A),!1,v-r,!1]}const b="["+(h?"^":"")+f5(l)+"]",w="["+(h?"":"^")+f5(i)+"]";return[l.length&&i.length?"("+b+"|"+w+")":l.length?b:w,f,v-r,!0]},so=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):t?e.replace(/\[([^\/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),dk=new Set(["!","?","+","*","@"]),d5=e=>dk.has(e),hk="(?!(?:^|/)\\.\\.?(?:$|/))",mu="(?!\\.)",mk=new Set(["[","."]),pk=new Set(["..","."]),vk=new Set("().*{}+?[]^$\\!"),gk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Oh="[^/]",h5=Oh+"*?",m5=Oh+"+?";var Yt,Xt,ia,vt,jt,Za,_l,Wa,Ar,jl,ko,Ul,e7,tl,Du,F1,t7;const cn=class cn{constructor(t,r,l={}){An(this,Ul);Gt(this,"type");An(this,Yt);An(this,Xt);An(this,ia,!1);An(this,vt,[]);An(this,jt);An(this,Za);An(this,_l);An(this,Wa,!1);An(this,Ar);An(this,jl);An(this,ko,!1);this.type=t,t&&zt(this,Xt,!0),zt(this,jt,r),zt(this,Yt,me(this,jt)?me(me(this,jt),Yt):this),zt(this,Ar,me(this,Yt)===this?l:me(me(this,Yt),Ar)),zt(this,_l,me(this,Yt)===this?[]:me(me(this,Yt),_l)),t==="!"&&!me(me(this,Yt),Wa)&&me(this,_l).push(this),zt(this,Za,me(this,jt)?me(me(this,jt),vt).length:0)}get hasMagic(){if(me(this,Xt)!==void 0)return me(this,Xt);for(const t of me(this,vt))if(typeof t!="string"&&(t.type||t.hasMagic))return zt(this,Xt,!0);return me(this,Xt)}toString(){return me(this,jl)!==void 0?me(this,jl):this.type?zt(this,jl,this.type+"("+me(this,vt).map(t=>String(t)).join("|")+")"):zt(this,jl,me(this,vt).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof cn&&me(r,jt)===this))throw new Error("invalid part: "+r);me(this,vt).push(r)}}toJSON(){var r;const t=this.type===null?me(this,vt).slice().map(l=>typeof l=="string"?l:l.toJSON()):[this.type,...me(this,vt).map(l=>l.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===me(this,Yt)||me(me(this,Yt),Wa)&&((r=me(this,jt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(me(this,Yt)===this)return!0;if(!((r=me(this,jt))!=null&&r.isStart()))return!1;if(me(this,Za)===0)return!0;const t=me(this,jt);for(let l=0;l<me(this,Za);l++){const i=me(t,vt)[l];if(!(i instanceof cn&&i.type==="!"))return!1}return!0}isEnd(){var r,l,i;if(me(this,Yt)===this||((r=me(this,jt))==null?void 0:r.type)==="!")return!0;if(!((l=me(this,jt))!=null&&l.isEnd()))return!1;if(!this.type)return(i=me(this,jt))==null?void 0:i.isEnd();const t=me(this,jt)?me(me(this,jt),vt).length:0;return me(this,Za)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new cn(this.type,t);for(const l of me(this,vt))r.copyIn(l);return r}static fromGlob(t,r={}){var i;const l=new cn(null,void 0,r);return Pa(i=cn,tl,Du).call(i,t,l,0,r),l}toMMPattern(){if(this!==me(this,Yt))return me(this,Yt).toMMPattern();const t=this.toString(),[r,l,i,s]=this.toRegExpSource();if(!(i||me(this,Xt)||me(this,Ar).nocase&&!me(this,Ar).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return l;const f=(me(this,Ar).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,f),{_src:r,_glob:t})}get options(){return me(this,Ar)}toRegExpSource(t){var d;const r=t??!!me(this,Ar).dot;if(me(this,Yt)===this&&Pa(this,Ul,e7).call(this),!this.type){const h=this.isStart()&&this.isEnd()&&!me(this,vt).some(E=>typeof E!="string"),v=me(this,vt).map(E=>{var R;const[A,T,N,O]=typeof E=="string"?Pa(R=cn,tl,t7).call(R,E,me(this,Xt),h):E.toRegExpSource(t);return zt(this,Xt,me(this,Xt)||N),zt(this,ia,me(this,ia)||O),A}).join("");let g="";if(this.isStart()&&typeof me(this,vt)[0]=="string"&&!(me(this,vt).length===1&&pk.has(me(this,vt)[0]))){const A=mk,T=r&&A.has(v.charAt(0))||v.startsWith("\\.")&&A.has(v.charAt(2))||v.startsWith("\\.\\.")&&A.has(v.charAt(4)),N=!r&&!t&&A.has(v.charAt(0));g=T?hk:N?mu:""}let b="";return this.isEnd()&&me(me(this,Yt),Wa)&&((d=me(this,jt))==null?void 0:d.type)==="!"&&(b="(?:$|\\/)"),[g+v+b,so(v),zt(this,Xt,!!me(this,Xt)),me(this,ia)]}const l=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:";let s=Pa(this,Ul,F1).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const h=this.toString();return zt(this,vt,[h]),this.type=null,zt(this,Xt,void 0),[h,so(this.toString()),!1,!1]}let c=!l||t||r||!mu?"":Pa(this,Ul,F1).call(this,!0);c===s&&(c=""),c&&(s=`(?:${s})(?:${c})*?`);let f="";if(this.type==="!"&&me(this,ko))f=(this.isStart()&&!r?mu:"")+m5;else{const h=this.type==="!"?"))"+(this.isStart()&&!r&&!t?mu:"")+h5+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&c?")":this.type==="*"&&c?")?":`)${this.type}`;f=i+s+h}return[f,so(s),zt(this,Xt,!!me(this,Xt)),me(this,ia)]}};Yt=new WeakMap,Xt=new WeakMap,ia=new WeakMap,vt=new WeakMap,jt=new WeakMap,Za=new WeakMap,_l=new WeakMap,Wa=new WeakMap,Ar=new WeakMap,jl=new WeakMap,ko=new WeakMap,Ul=new WeakSet,e7=function(){if(this!==me(this,Yt))throw new Error("should only call on root");if(me(this,Wa))return this;this.toString(),zt(this,Wa,!0);let t;for(;t=me(this,_l).pop();){if(t.type!=="!")continue;let r=t,l=me(r,jt);for(;l;){for(let i=me(r,Za)+1;!l.type&&i<me(l,vt).length;i++)for(const s of me(t,vt)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(me(l,vt)[i])}r=l,l=me(r,jt)}}return this},tl=new WeakSet,Du=function(t,r,l,i){var w,E;let s=!1,c=!1,f=-1,d=!1;if(r.type===null){let A=l,T="";for(;A<t.length;){const N=t.charAt(A++);if(s||N==="\\"){s=!s,T+=N;continue}if(c){A===f+1?(N==="^"||N==="!")&&(d=!0):N==="]"&&!(A===f+2&&d)&&(c=!1),T+=N;continue}else if(N==="["){c=!0,f=A,d=!1,T+=N;continue}if(!i.noext&&d5(N)&&t.charAt(A)==="("){r.push(T),T="";const O=new cn(N,r);A=Pa(w=cn,tl,Du).call(w,t,O,A,i),r.push(O);continue}T+=N}return r.push(T),A}let h=l+1,v=new cn(null,r);const g=[];let b="";for(;h<t.length;){const A=t.charAt(h++);if(s||A==="\\"){s=!s,b+=A;continue}if(c){h===f+1?(A==="^"||A==="!")&&(d=!0):A==="]"&&!(h===f+2&&d)&&(c=!1),b+=A;continue}else if(A==="["){c=!0,f=h,d=!1,b+=A;continue}if(d5(A)&&t.charAt(h)==="("){v.push(b),b="";const T=new cn(A,v);v.push(T),h=Pa(E=cn,tl,Du).call(E,t,T,h,i);continue}if(A==="|"){v.push(b),b="",g.push(v),v=new cn(null,r);continue}if(A===")")return b===""&&me(r,vt).length===0&&zt(r,ko,!0),v.push(b),b="",r.push(...g,v),h;b+=A}return r.type=null,zt(r,Xt,void 0),zt(r,vt,[t.substring(l-1)]),h},F1=function(t){return me(this,vt).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[l,i,s,c]=r.toRegExpSource(t);return zt(this,ia,me(this,ia)||c),l}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},t7=function(t,r,l=!1){let i=!1,s="",c=!1;for(let f=0;f<t.length;f++){const d=t.charAt(f);if(i){i=!1,s+=(vk.has(d)?"\\":"")+d;continue}if(d==="\\"){f===t.length-1?s+="\\\\":i=!0;continue}if(d==="["){const[h,v,g,b]=fk(t,f);if(g){s+=h,c=c||v,f+=g-1,r=r||b;continue}}if(d==="*"){s+=l&&t==="*"?m5:h5,r=!0;continue}if(d==="?"){s+=Oh,r=!0;continue}s+=gk(d)}return[s,so(t),!!r,c]},An(cn,tl);let Pu=cn;const yk=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var c1={};const an=(e,t,r={})=>(Yu(t),!r.nocomment&&t.charAt(0)==="#"?!1:new mc(t,r).match(e)),bk=/^\*+([^+@!?\*\[\(]*)$/,xk=e=>t=>!t.startsWith(".")&&t.endsWith(e),wk=e=>t=>t.endsWith(e),Sk=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Ak=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Mk=/^\*+\.\*+$/,Ek=e=>!e.startsWith(".")&&e.includes("."),Tk=e=>e!=="."&&e!==".."&&e.includes("."),Ck=/^\.\*+$/,kk=e=>e!=="."&&e!==".."&&e.startsWith("."),Nk=/^\*+$/,zk=e=>e.length!==0&&!e.startsWith("."),Dk=e=>e.length!==0&&e!=="."&&e!=="..",Ok=/^\?+([^+@!?\*\[\(]*)?$/,Rk=([e,t=""])=>{const r=n7([e]);return t?(t=t.toLowerCase(),l=>r(l)&&l.toLowerCase().endsWith(t)):r},Lk=([e,t=""])=>{const r=r7([e]);return t?(t=t.toLowerCase(),l=>r(l)&&l.toLowerCase().endsWith(t)):r},_k=([e,t=""])=>{const r=r7([e]);return t?l=>r(l)&&l.endsWith(t):r},jk=([e,t=""])=>{const r=n7([e]);return t?l=>r(l)&&l.endsWith(t):r},n7=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},r7=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},a7=typeof process=="object"&&process?typeof c1=="object"&&c1&&c1.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",p5={win32:{sep:"\\"},posix:{sep:"/"}},Bk=a7==="win32"?p5.win32.sep:p5.posix.sep;an.sep=Bk;const er=Symbol("globstar **");an.GLOBSTAR=er;const Hk="[^/]",qk=Hk+"*?",Uk="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Gk="(?:(?!(?:\\/|^)\\.).)*?",Fk=(e,t={})=>r=>an(r,e,t);an.filter=Fk;const Jn=(e,t={})=>Object.assign({},e,t),Yk=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return an;const t=an;return Object.assign((l,i,s={})=>t(l,i,Jn(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,Jn(e,s))}static defaults(i){return t.defaults(Jn(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,c={}){super(i,s,Jn(e,c))}static fromGlob(i,s={}){return t.AST.fromGlob(i,Jn(e,s))}},unescape:(l,i={})=>t.unescape(l,Jn(e,i)),escape:(l,i={})=>t.escape(l,Jn(e,i)),filter:(l,i={})=>t.filter(l,Jn(e,i)),defaults:l=>t.defaults(Jn(e,l)),makeRe:(l,i={})=>t.makeRe(l,Jn(e,i)),braceExpand:(l,i={})=>t.braceExpand(l,Jn(e,i)),match:(l,i,s={})=>t.match(l,i,Jn(e,s)),sep:t.sep,GLOBSTAR:er})};an.defaults=Yk;const l7=(e,t={})=>(Yu(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:rk(e));an.braceExpand=l7;const Pk=(e,t={})=>new mc(e,t).makeRe();an.makeRe=Pk;const Vk=(e,t,r={})=>{const l=new mc(t,r);return e=e.filter(i=>l.match(i)),l.options.nonull&&!e.length&&e.push(t),e};an.match=Vk;const v5=/[?*]|[+@!]\(.*?\)|\[|\]/,Ik=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class mc{constructor(t,r={}){Gt(this,"options");Gt(this,"set");Gt(this,"pattern");Gt(this,"windowsPathsNoEscape");Gt(this,"nonegate");Gt(this,"negate");Gt(this,"comment");Gt(this,"empty");Gt(this,"preserveMultipleSlashes");Gt(this,"partial");Gt(this,"globSet");Gt(this,"globParts");Gt(this,"nocase");Gt(this,"isWindows");Gt(this,"platform");Gt(this,"windowsNoMagicRoot");Gt(this,"regexp");Yu(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||a7,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const l=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(l),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,c,f)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!v5.test(s[2]))&&!v5.test(s[3]),h=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(v=>this.parse(v))];if(h)return[s[0],...s.slice(1).map(v=>this.parse(v))]}return s.map(d=>this.parse(d))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const c=this.set[s];c[0]===""&&c[1]===""&&this.globParts[s][2]==="?"&&typeof c[3]=="string"&&/^[a-z]:$/i.test(c[3])&&(c[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let l=0;l<t.length;l++)for(let i=0;i<t[l].length;i++)t[l][i]==="**"&&(t[l][i]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let l=-1;for(;(l=r.indexOf("**",l+1))!==-1;){let i=l;for(;r[i+1]==="**";)i++;i!==l&&r.splice(l,i-l)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((l,i)=>{const s=l[l.length-1];return i==="**"&&s==="**"?l:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(l.pop(),l):(l.push(i),l)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let l=0;for(;(l=t.indexOf("..",l+1))!==-1;){const i=t[l-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(l-1,2),l-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let l of t){let i=-1;for(;(i=l.indexOf("**",i+1))!==-1;){let c=i;for(;l[c+1]==="**";)c++;c>i&&l.splice(i+1,c-i);let f=l[i+1];const d=l[i+2],h=l[i+3];if(f!==".."||!d||d==="."||d===".."||!h||h==="."||h==="..")continue;r=!0,l.splice(i,1);const v=l.slice(0);v[i]="**",t.push(v),i--}if(!this.preserveMultipleSlashes){for(let c=1;c<l.length-1;c++){const f=l[c];c===1&&f===""&&l[0]===""||(f==="."||f==="")&&(r=!0,l.splice(c,1),c--)}l[0]==="."&&l.length===2&&(l[1]==="."||l[1]==="")&&(r=!0,l.pop())}let s=0;for(;(s=l.indexOf("..",s+1))!==-1;){const c=l[s-1];if(c&&c!=="."&&c!==".."&&c!=="**"){r=!0;const d=s===1&&l[s+1]==="**"?["."]:[];l.splice(s-1,2,...d),l.length===0&&l.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let l=r+1;l<t.length;l++){const i=this.partsMatch(t[r],t[l],!this.preserveMultipleSlashes);if(i){t[r]=[],t[l]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,l=!1){let i=0,s=0,c=[],f="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])c.push(f==="b"?r[s]:t[i]),i++,s++;else if(l&&t[i]==="**"&&r[s]===t[i+1])c.push(t[i]),i++;else if(l&&r[s]==="**"&&t[i]===r[s+1])c.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(f==="b")return!1;f="a",c.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(f==="a")return!1;f="b",c.push(r[s]),i++,s++}else return!1;return t.length===r.length&&c}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,l=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,l++;l&&(this.pattern=t.slice(l)),this.negate=r}matchOne(t,r,l=!1){const i=this.options;if(this.isWindows){const A=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),T=!A&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),N=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),O=!N&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),R=T?3:A?0:void 0,H=O?3:N?0:void 0;if(typeof R=="number"&&typeof H=="number"){const[F,I]=[t[R],r[H]];F.toLowerCase()===I.toLowerCase()&&(r[H]=F,H>R?r=r.slice(H):R>H&&(t=t.slice(R)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var c=0,f=0,d=t.length,h=r.length;c<d&&f<h;c++,f++){this.debug("matchOne loop");var v=r[f],g=t[c];if(this.debug(r,v,g),v===!1)return!1;if(v===er){this.debug("GLOBSTAR",[r,v,g]);var b=c,w=f+1;if(w===h){for(this.debug("** at the end");c<d;c++)if(t[c]==="."||t[c]===".."||!i.dot&&t[c].charAt(0)===".")return!1;return!0}for(;b<d;){var E=t[b];if(this.debug(`
191
- globstar while`,t,b,r,w,E),this.matchOne(t.slice(b),r.slice(w),l))return this.debug("globstar found match!",b,d,E),!0;if(E==="."||E===".."||!i.dot&&E.charAt(0)==="."){this.debug("dot detected!",t,b,r,w);break}this.debug("globstar swallow a segment, and continue"),b++}return!!(l&&(this.debug(`
192
- >>> no match, partial?`,t,b,r,w),b===d))}let A;if(typeof v=="string"?(A=g===v,this.debug("string match",v,g,A)):(A=v.test(g),this.debug("pattern match",v,g,A)),!A)return!1}if(c===d&&f===h)return!0;if(c===d)return l;if(f===h)return c===d-1&&t[c]==="";throw new Error("wtf?")}braceExpand(){return l7(this.pattern,this.options)}parse(t){Yu(t);const r=this.options;if(t==="**")return er;if(t==="")return"";let l,i=null;(l=t.match(Nk))?i=r.dot?Dk:zk:(l=t.match(bk))?i=(r.nocase?r.dot?Ak:Sk:r.dot?wk:xk)(l[1]):(l=t.match(Ok))?i=(r.nocase?r.dot?Lk:Rk:r.dot?_k:jk)(l):(l=t.match(Mk))?i=r.dot?Tk:Ek:(l=t.match(Ck))&&(i=kk);const s=Pu.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,l=r.noglobstar?qk:r.dot?Uk:Gk,i=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const h=d.map(g=>{if(g instanceof RegExp)for(const b of g.flags.split(""))i.add(b);return typeof g=="string"?Ik(g):g===er?er:g._src});h.forEach((g,b)=>{const w=h[b+1],E=h[b-1];g!==er||E===er||(E===void 0?w!==void 0&&w!==er?h[b+1]="(?:\\/|"+l+"\\/)?"+w:h[b]=l:w===void 0?h[b-1]=E+"(?:\\/|\\/"+l+")?":w!==er&&(h[b-1]=E+"(?:\\/|\\/"+l+"\\/)"+w,h[b+1]=er))});const v=h.filter(g=>g!==er);if(this.partial&&v.length>=1){const g=[];for(let b=1;b<=v.length;b++)g.push(v.slice(0,b).join("/"));return"(?:"+g.join("|")+")"}return v.join("/")}).join("|");const[c,f]=t.length>1?["(?:",")"]:["",""];s="^"+c+s+f+"$",this.partial&&(s="^(?:\\/|"+c+s.slice(1,-1)+f+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const l=this.options;this.isWindows&&(t=t.split("\\").join("/"));const i=this.slashSplit(t);this.debug(this.pattern,"split",i);const s=this.set;this.debug(this.pattern,"set",s);let c=i[i.length-1];if(!c)for(let f=i.length-2;!c&&f>=0;f--)c=i[f];for(let f=0;f<s.length;f++){const d=s[f];let h=i;if(l.matchBase&&d.length===1&&(h=[c]),this.matchOne(h,d,r))return l.flipNegate?!0:!this.negate}return l.flipNegate?!1:this.negate}static defaults(t){return an.defaults(t).Minimatch}}an.AST=Pu;an.Minimatch=mc;an.escape=yk;an.unescape=so;function Xk(e){e.sort((t,r)=>{const l=f=>(f.match(/\d+/g)||[]).map(Number),i=l(t),s=l(r),c=Math.max(i.length,s.length);for(let f=0;f<c;f++){const d=(i[f]??0)-(s[f]??0);if(d!==0)return d}return t.localeCompare(r)})}function $k(e,t){const r=new Map;e.forEach(i=>{if(i.endsWith("_light.png")){const s=i.replace("_light.png",""),c=r.get(s)||{};c.light=i,r.set(s,c)}else if(i.endsWith("_dark.png")){const s=i.replace("_dark.png",""),c=r.get(s)||{};c.dark=i,r.set(s,c)}else r.set(i,{original:i})});const l=[];return r.forEach((i,s)=>{if(i.original)l.push(i.original);else{const c=t==="dark",f=c?i.dark:i.light,d=c?i.light:i.dark;l.push(f||d||s)}}),l}function Kk({path:e,globs:t=null,limit:r,page:l=0}){const{resolvedTheme:i}=z6();let s=e;const{directory:c}=fh(s),f=M.useMemo(()=>{if(!c)return[];let h=c.children.filter(g=>!!g.name.match(/\.(png|jpeg|gif|svg|webp)$/i)&&g.type==="file").map(g=>g.path);t&&t.length>0&&(h=h.filter(g=>t.some(b=>an(g.split("/").pop()||"",b)))),Xk(h);let v=$k(h,i);return r&&(v=v.slice(l*r,(l+1)*r)),v},[c,t,i,r,l]);return{paths:f,isLoading:!c,isEmpty:c!==void 0&&f.length===0}}function Qk(e,t={}){const{enabled:r=!0,ignoreModifiers:l=!0}=t;M.useEffect(()=>{const i=s=>{if((typeof r=="function"?r():r)&&!(l&&(s.metaKey||s.ctrlKey||s.altKey)&&!e.some(d=>{const h=d.modifiers||{};return h.meta||h.ctrl||h.alt})))for(const f of e){const d=Array.isArray(f.key)?f.key:[f.key],h=f.modifiers||{};if(d.includes(s.key)&&!(h.meta!==void 0&&h.meta!==s.metaKey)&&!(h.ctrl!==void 0&&h.ctrl!==s.ctrlKey)&&!(h.alt!==void 0&&h.alt!==s.altKey)&&!(h.shift!==void 0&&h.shift!==s.shiftKey)&&!(l&&!f.modifiers&&(s.metaKey||s.ctrlKey||s.altKey))){f.preventDefault!==!1&&s.preventDefault(),f.action();return}}};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[e,r,l])}function Zk(e){const[t,r]=M.useState(null),l=M.useCallback(f=>{r(f)},[]),i=M.useCallback(()=>{r(null)},[]),s=M.useCallback(()=>{r(f=>f!==null&&f>0?f-1:f)},[]),c=M.useCallback(()=>{r(f=>f!==null&&f<e-1?f+1:f)},[e]);return Qk([{key:"Escape",action:i},{key:"ArrowLeft",action:s},{key:"ArrowRight",action:c}],{enabled:()=>t!==null}),{selectedIndex:t,open:l,close:i,goToPrevious:s,goToNext:c,isOpen:t!==null}}function Wk({className:e,wrapperClassName:t,...r}){const[l,i]=M.useState(!0),[s,c]=M.useState(!1);return k.jsxs("div",{className:ct("relative",t),children:[l&&!s&&k.jsx("div",{className:"absolute inset-0 bg-muted/30 animate-pulse flex items-center justify-center",children:k.jsx("div",{className:"w-8 h-8 border border-border/50 rounded-sm"})}),s&&k.jsx("div",{className:"absolute inset-0 bg-muted/20 flex items-center justify-center",children:k.jsxs("div",{className:"text-center",children:[k.jsx(nv,{className:"h-5 w-5 text-muted-foreground/40 mx-auto"}),k.jsx("span",{className:"text-xs text-muted-foreground/40 mt-1.5 block font-mono",children:"failed"})]})}),k.jsx("img",{...r,className:ct(e,"transition-opacity duration-500 ease-out-expo",l&&"opacity-0",s&&"opacity-0"),onLoad:f=>{var d;i(!1),(d=r.onLoad)==null||d.call(r,f)},onError:f=>{var d;i(!1),c(!0),(d=r.onError)==null||d.call(r,f)}})]})}class En{constructor(t,r,l){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=l}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new En(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class Gn{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new Gn(r,En.range(this,t))}}class fe{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var l="KaTeX parse error: "+t,i,s,c=r&&r.loc;if(c&&c.start<=c.end){var f=c.lexer.input;i=c.start,s=c.end,i===f.length?l+=" at end of input: ":l+=" at position "+(i+1)+": ";var d=f.slice(i,s).replace(/[^]/g,"$&̲"),h;i>15?h="…"+f.slice(i-15,i):h=f.slice(0,i);var v;s+15<f.length?v=f.slice(s,s+15)+"…":v=f.slice(s),l+=h+d+v}var g=new Error(l);return g.name="ParseError",g.__proto__=fe.prototype,g.position=i,i!=null&&s!=null&&(g.length=s-i),g.rawMessage=t,g}}fe.prototype.__proto__=Error.prototype;var Jk=function(t,r){return t===void 0?r:t},eN=/([A-Z])/g,tN=function(t){return t.replace(eN,"-$1").toLowerCase()},nN={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},rN=/[&><"']/g;function aN(e){return String(e).replace(rN,t=>nN[t])}var i7=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},lN=function(t){var r=i7(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},iN=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},oN=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},nt={deflt:Jk,escape:aN,hyphenate:tN,getBaseElem:i7,isCharacterBox:lN,protocolFromUrl:oN},Ou={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function sN(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Rh{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 r in Ou)if(Ou.hasOwnProperty(r)){var l=Ou[r];this[r]=t[r]!==void 0?l.processor?l.processor(t[r]):t[r]:sN(l)}}reportNonstrict(t,r,l){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,l)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new fe("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),l);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,l){var i=this.strict;if(typeof i=="function")try{i=i(t,r,l)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=nt.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var l=typeof this.trust=="function"?this.trust(t):this.trust;return!!l}}class Xa{constructor(t,r,l){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=l}sup(){return Mr[uN[this.id]]}sub(){return Mr[cN[this.id]]}fracNum(){return Mr[fN[this.id]]}fracDen(){return Mr[dN[this.id]]}cramp(){return Mr[hN[this.id]]}text(){return Mr[mN[this.id]]}isTight(){return this.size>=2}}var Lh=0,Vu=1,Yi=2,ua=3,xo=4,tr=5,Ii=6,dn=7,Mr=[new Xa(Lh,0,!1),new Xa(Vu,0,!0),new Xa(Yi,1,!1),new Xa(ua,1,!0),new Xa(xo,2,!1),new Xa(tr,2,!0),new Xa(Ii,3,!1),new Xa(dn,3,!0)],uN=[xo,tr,xo,tr,Ii,dn,Ii,dn],cN=[tr,tr,tr,tr,dn,dn,dn,dn],fN=[Yi,ua,xo,tr,Ii,dn,Ii,dn],dN=[ua,ua,tr,tr,dn,dn,dn,dn],hN=[Vu,Vu,ua,ua,tr,tr,dn,dn],mN=[Lh,Vu,Yi,ua,Yi,ua,Yi,ua],Le={DISPLAY:Mr[Lh],TEXT:Mr[Yi],SCRIPT:Mr[xo],SCRIPTSCRIPT:Mr[Ii]},Y1=[{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 pN(e){for(var t=0;t<Y1.length;t++)for(var r=Y1[t],l=0;l<r.blocks.length;l++){var i=r.blocks[l];if(e>=i[0]&&e<=i[1])return r.name}return null}var Ru=[];Y1.forEach(e=>e.blocks.forEach(t=>Ru.push(...t)));function o7(e){for(var t=0;t<Ru.length;t+=2)if(e>=Ru[t]&&e<=Ru[t+1])return!0;return!1}var Bi=80,vN=function(t,r){return"M95,"+(622+t+r)+`
193
- c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
194
- c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
195
- 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
196
- s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
197
- c69,-144,104.5,-217.7,106.5,-221
198
- l`+t/2.075+" -"+t+`
199
- c5.3,-9.3,12,-14,20,-14
200
- H400000v`+(40+t)+`H845.2724
201
- s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
202
- c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
203
- M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},gN=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
204
- c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
205
- c340,-704.7,510.7,-1060.3,512,-1067
206
- l`+t/2.084+" -"+t+`
207
- c4.7,-7.3,11,-11,19,-11
208
- H40000v`+(40+t)+`H1012.3
209
- s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
210
- 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
211
- s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
212
- c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
213
- M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},yN=function(t,r){return"M983 "+(10+t+r)+`
214
- l`+t/3.13+" -"+t+`
215
- c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
216
- 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
217
- 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
218
- c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
219
- c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
220
- c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
221
- c53.7,-170.3,84.5,-266.8,92.5,-289.5z
222
- M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},bN=function(t,r){return"M424,"+(2398+t+r)+`
223
- c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
224
- 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
225
- s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
226
- s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
227
- l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
228
- v`+(40+t)+`H1014.6
229
- s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
230
- c-2,6,-10,9,-24,9
231
- c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
232
- h400000v`+(40+t)+"h-400000z"},xN=function(t,r){return"M473,"+(2713+t+r)+`
233
- c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
234
- c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
235
- s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
236
- 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
237
- 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
238
- s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
239
- 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},wN=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},SN=function(t,r,l){var i=l-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
240
- H742v`+i+`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
241
- h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
242
- c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
243
- 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},AN=function(t,r,l){r=1e3*r;var i="";switch(t){case"sqrtMain":i=vN(r,Bi);break;case"sqrtSize1":i=gN(r,Bi);break;case"sqrtSize2":i=yN(r,Bi);break;case"sqrtSize3":i=bN(r,Bi);break;case"sqrtSize4":i=xN(r,Bi);break;case"sqrtTall":i=SN(r,Bi,l)}return i},MN=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},g5={doubleleftarrow:`M262 157
244
- 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
245
- 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
246
- 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
247
- 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
248
- 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
249
- -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
250
- -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
251
- m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
252
- -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
253
- 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
254
- -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
255
- -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
256
- -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
257
- 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
258
- -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
259
- 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
260
- -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
261
- 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
262
- 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
263
- 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
264
- l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
265
- -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
266
- 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
267
- 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
268
- 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
269
- -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
270
- 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
271
- 435 0h399565z`,leftgroupunder:`M400000 262
272
- 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
273
- 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
274
- -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
275
- -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
276
- -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
277
- 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
278
- -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
279
- -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
280
- m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
281
- 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
282
- 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
283
- -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
284
- 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
285
- -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
286
- 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
287
- -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
288
- -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
289
- 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
290
- M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
291
- M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
292
- -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
293
- 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
294
- 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
295
- M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
296
- 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
297
- -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
298
- 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
299
- 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
300
- 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
301
- 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
302
- 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
303
- -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
304
- -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
305
- 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
306
- 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
307
- -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
308
- m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
309
- 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
310
- -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
311
- 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
312
- 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
313
- -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
314
- m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
315
- 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
316
- -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
317
- 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
318
- 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
319
- -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
320
- -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
321
- 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
322
- -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
323
- 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
324
- 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
325
- 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
326
- -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
327
- 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
328
- 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
329
- -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
330
- -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
331
- 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
332
- -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
333
- 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
334
- 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
335
- 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
336
- -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
337
- -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
338
- 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
339
- 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
340
- -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
341
- 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
342
- 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
343
- -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
344
- 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
345
- 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
346
- 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
347
- -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
348
- -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
349
- 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
350
- -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
351
- -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
352
- -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
353
- 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
354
- 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
355
- 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
356
- 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
357
- -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
358
- 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
359
- -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
360
- 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
361
- 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
362
- -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
363
- -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
364
- 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
365
- 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
366
- 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
367
- -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
368
- 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
369
- 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
370
- -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
371
- -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
372
- 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
373
- 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
374
- -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
375
- 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
376
- 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
377
- -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
378
- -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
379
- H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
380
- 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
381
- 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
382
- -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
383
- -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
384
- -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,
385
- -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,
386
- -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,
387
- -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,
388
- -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
389
- c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
390
- 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
391
- 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
392
- 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
393
- 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
394
- c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
395
- M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
396
- -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
397
- 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
398
- -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
399
- -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
400
- -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
401
- 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
402
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
403
- 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
404
- c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
405
- c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
406
- M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
407
- 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,
408
- -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
409
- 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
410
- 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
411
- 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,
412
- 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,
413
- -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
414
- 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
415
- 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,
416
- -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
417
- 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
418
- M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},EN=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
419
- H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
420
- M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
421
- c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
422
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
423
- c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
424
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
425
- M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
426
- c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
427
- c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
428
- MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
429
- MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
430
- M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
431
- M347 1759 V0 h-84 V1759 v`+r+" 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
432
- 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,
433
- -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
434
- 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
435
- 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,
436
- -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
437
- l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
438
- -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,
439
- 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
440
- c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
441
- 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
442
- 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
443
- 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
444
- c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
445
- l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
446
- -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 Ho{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(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var Cr={"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]}},pu={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]},y5={Å:"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 TN(e,t){Cr[e]=t}function _h(e,t,r){if(!Cr[t])throw new Error("Font metrics not found for font: "+t+".");var l=e.charCodeAt(0),i=Cr[t][l];if(!i&&e[0]in y5&&(l=y5[e[0]].charCodeAt(0),i=Cr[t][l]),!i&&r==="text"&&o7(l)&&(i=Cr[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var f1={};function CN(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!f1[t]){var r=f1[t]={cssEmPerMu:pu.quad[t]/18};for(var l in pu)pu.hasOwnProperty(l)&&(r[l]=pu[l][t])}return f1[t]}var kN=[[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]],b5=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],x5=function(t,r){return r.size<2?t:kN[t-1][r.size-1]};class la{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||la.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=b5[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={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 l in t)t.hasOwnProperty(l)&&(r[l]=t[l]);return new la(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:x5(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:b5[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=x5(la.BASESIZE,t);return this.size===r&&this.textSize===la.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}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!==la.BASESIZE?["sizing","reset-size"+this.size,"size"+la.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=CN(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}la.BASESIZE=6;var P1={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},NN={ex:!0,em:!0,mu:!0},s7=function(t){return typeof t!="string"&&(t=t.unit),t in P1||t in NN||t==="ex"},wt=function(t,r){var l;if(t.unit in P1)l=P1[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")l=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")l=i.fontMetrics().xHeight;else if(t.unit==="em")l=i.fontMetrics().quad;else throw new fe("Invalid unit: '"+t.unit+"'");i!==r&&(l*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*l,r.maxSize)},pe=function(t){return+t.toFixed(4)+"em"},il=function(t){return t.filter(r=>r).join(" ")},u7=function(t,r,l){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=l||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},c7=function(t){var r=document.createElement(t);r.className=il(this.classes);for(var l in this.style)this.style.hasOwnProperty(l)&&(r.style[l]=this.style[l]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var s=0;s<this.children.length;s++)r.appendChild(this.children[s].toNode());return r},zN=/[\s"'>/=\x00-\x1f]/,f7=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+nt.escape(il(this.classes))+'"');var l="";for(var i in this.style)this.style.hasOwnProperty(i)&&(l+=nt.hyphenate(i)+":"+this.style[i]+";");l&&(r+=' style="'+nt.escape(l)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(zN.test(s))throw new fe("Invalid attribute name '"+s+"'");r+=" "+s+'="'+nt.escape(this.attributes[s])+'"'}r+=">";for(var c=0;c<this.children.length;c++)r+=this.children[c].toMarkup();return r+="</"+t+">",r};class qo{constructor(t,r,l,i){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,u7.call(this,t,l,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return c7.call(this,"span")}toMarkup(){return f7.call(this,"span")}}class jh{constructor(t,r,l,i){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,u7.call(this,r,i),this.children=l||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return c7.call(this,"a")}toMarkup(){return f7.call(this,"a")}}class DN{constructor(t,r,l){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=r,this.src=t,this.classes=["mord"],this.style=l}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 r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+nt.escape(this.src)+'"'+(' alt="'+nt.escape(this.alt)+'"'),r="";for(var l in this.style)this.style.hasOwnProperty(l)&&(r+=nt.hyphenate(l)+":"+this.style[l]+";");return r&&(t+=' style="'+nt.escape(r)+'"'),t+="'/>",t}}var ON={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class ar{constructor(t,r,l,i,s,c,f,d){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=r||0,this.depth=l||0,this.italic=i||0,this.skew=s||0,this.width=c||0,this.classes=f||[],this.style=d||{},this.maxFontSize=0;var h=pN(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=ON[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=pe(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=il(this.classes));for(var l in this.style)this.style.hasOwnProperty(l)&&(r=r||document.createElement("span"),r.style[l]=this.style[l]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=nt.escape(il(this.classes)),r+='"');var l="";this.italic>0&&(l+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(l+=nt.hyphenate(i)+":"+this.style[i]+";");l&&(t=!0,r+=' style="'+nt.escape(l)+'"');var s=nt.escape(this.text);return t?(r+=">",r+=s,r+="</span>",r):s}}class pa{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var l in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,l)&&r.setAttribute(l,this.attributes[l]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+nt.escape(this.attributes[r])+'"');t+=">";for(var l=0;l<this.children.length;l++)t+=this.children[l].toMarkup();return t+="</svg>",t}}class ol{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",g5[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+nt.escape(this.alternate)+'"/>':'<path d="'+nt.escape(g5[this.pathName])+'"/>'}}class V1{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var l in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,l)&&r.setAttribute(l,this.attributes[l]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+nt.escape(this.attributes[r])+'"');return t+="/>",t}}function w5(e){if(e instanceof ar)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function RN(e){if(e instanceof qo)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var LN={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_N={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ht={math:{},text:{}};function y(e,t,r,l,i,s){ht[e][i]={font:t,group:r,replace:l},s&&l&&(ht[e][l]=ht[e][i])}var x="math",oe="text",C="main",L="ams",bt="accent-token",xe="bin",pn="close",e0="inner",Re="mathord",Ht="op-token",Fn="open",pc="punct",_="rel",ya="spacing",U="textord";y(x,C,_,"≡","\\equiv",!0);y(x,C,_,"≺","\\prec",!0);y(x,C,_,"≻","\\succ",!0);y(x,C,_,"∼","\\sim",!0);y(x,C,_,"⊥","\\perp");y(x,C,_,"⪯","\\preceq",!0);y(x,C,_,"⪰","\\succeq",!0);y(x,C,_,"≃","\\simeq",!0);y(x,C,_,"∣","\\mid",!0);y(x,C,_,"≪","\\ll",!0);y(x,C,_,"≫","\\gg",!0);y(x,C,_,"≍","\\asymp",!0);y(x,C,_,"∥","\\parallel");y(x,C,_,"⋈","\\bowtie",!0);y(x,C,_,"⌣","\\smile",!0);y(x,C,_,"⊑","\\sqsubseteq",!0);y(x,C,_,"⊒","\\sqsupseteq",!0);y(x,C,_,"≐","\\doteq",!0);y(x,C,_,"⌢","\\frown",!0);y(x,C,_,"∋","\\ni",!0);y(x,C,_,"∝","\\propto",!0);y(x,C,_,"⊢","\\vdash",!0);y(x,C,_,"⊣","\\dashv",!0);y(x,C,_,"∋","\\owns");y(x,C,pc,".","\\ldotp");y(x,C,pc,"⋅","\\cdotp");y(x,C,U,"#","\\#");y(oe,C,U,"#","\\#");y(x,C,U,"&","\\&");y(oe,C,U,"&","\\&");y(x,C,U,"ℵ","\\aleph",!0);y(x,C,U,"∀","\\forall",!0);y(x,C,U,"ℏ","\\hbar",!0);y(x,C,U,"∃","\\exists",!0);y(x,C,U,"∇","\\nabla",!0);y(x,C,U,"♭","\\flat",!0);y(x,C,U,"ℓ","\\ell",!0);y(x,C,U,"♮","\\natural",!0);y(x,C,U,"♣","\\clubsuit",!0);y(x,C,U,"℘","\\wp",!0);y(x,C,U,"♯","\\sharp",!0);y(x,C,U,"♢","\\diamondsuit",!0);y(x,C,U,"ℜ","\\Re",!0);y(x,C,U,"♡","\\heartsuit",!0);y(x,C,U,"ℑ","\\Im",!0);y(x,C,U,"♠","\\spadesuit",!0);y(x,C,U,"§","\\S",!0);y(oe,C,U,"§","\\S");y(x,C,U,"¶","\\P",!0);y(oe,C,U,"¶","\\P");y(x,C,U,"†","\\dag");y(oe,C,U,"†","\\dag");y(oe,C,U,"†","\\textdagger");y(x,C,U,"‡","\\ddag");y(oe,C,U,"‡","\\ddag");y(oe,C,U,"‡","\\textdaggerdbl");y(x,C,pn,"⎱","\\rmoustache",!0);y(x,C,Fn,"⎰","\\lmoustache",!0);y(x,C,pn,"⟯","\\rgroup",!0);y(x,C,Fn,"⟮","\\lgroup",!0);y(x,C,xe,"∓","\\mp",!0);y(x,C,xe,"⊖","\\ominus",!0);y(x,C,xe,"⊎","\\uplus",!0);y(x,C,xe,"⊓","\\sqcap",!0);y(x,C,xe,"∗","\\ast");y(x,C,xe,"⊔","\\sqcup",!0);y(x,C,xe,"◯","\\bigcirc",!0);y(x,C,xe,"∙","\\bullet",!0);y(x,C,xe,"‡","\\ddagger");y(x,C,xe,"≀","\\wr",!0);y(x,C,xe,"⨿","\\amalg");y(x,C,xe,"&","\\And");y(x,C,_,"⟵","\\longleftarrow",!0);y(x,C,_,"⇐","\\Leftarrow",!0);y(x,C,_,"⟸","\\Longleftarrow",!0);y(x,C,_,"⟶","\\longrightarrow",!0);y(x,C,_,"⇒","\\Rightarrow",!0);y(x,C,_,"⟹","\\Longrightarrow",!0);y(x,C,_,"↔","\\leftrightarrow",!0);y(x,C,_,"⟷","\\longleftrightarrow",!0);y(x,C,_,"⇔","\\Leftrightarrow",!0);y(x,C,_,"⟺","\\Longleftrightarrow",!0);y(x,C,_,"↦","\\mapsto",!0);y(x,C,_,"⟼","\\longmapsto",!0);y(x,C,_,"↗","\\nearrow",!0);y(x,C,_,"↩","\\hookleftarrow",!0);y(x,C,_,"↪","\\hookrightarrow",!0);y(x,C,_,"↘","\\searrow",!0);y(x,C,_,"↼","\\leftharpoonup",!0);y(x,C,_,"⇀","\\rightharpoonup",!0);y(x,C,_,"↙","\\swarrow",!0);y(x,C,_,"↽","\\leftharpoondown",!0);y(x,C,_,"⇁","\\rightharpoondown",!0);y(x,C,_,"↖","\\nwarrow",!0);y(x,C,_,"⇌","\\rightleftharpoons",!0);y(x,L,_,"≮","\\nless",!0);y(x,L,_,"","\\@nleqslant");y(x,L,_,"","\\@nleqq");y(x,L,_,"⪇","\\lneq",!0);y(x,L,_,"≨","\\lneqq",!0);y(x,L,_,"","\\@lvertneqq");y(x,L,_,"⋦","\\lnsim",!0);y(x,L,_,"⪉","\\lnapprox",!0);y(x,L,_,"⊀","\\nprec",!0);y(x,L,_,"⋠","\\npreceq",!0);y(x,L,_,"⋨","\\precnsim",!0);y(x,L,_,"⪹","\\precnapprox",!0);y(x,L,_,"≁","\\nsim",!0);y(x,L,_,"","\\@nshortmid");y(x,L,_,"∤","\\nmid",!0);y(x,L,_,"⊬","\\nvdash",!0);y(x,L,_,"⊭","\\nvDash",!0);y(x,L,_,"⋪","\\ntriangleleft");y(x,L,_,"⋬","\\ntrianglelefteq",!0);y(x,L,_,"⊊","\\subsetneq",!0);y(x,L,_,"","\\@varsubsetneq");y(x,L,_,"⫋","\\subsetneqq",!0);y(x,L,_,"","\\@varsubsetneqq");y(x,L,_,"≯","\\ngtr",!0);y(x,L,_,"","\\@ngeqslant");y(x,L,_,"","\\@ngeqq");y(x,L,_,"⪈","\\gneq",!0);y(x,L,_,"≩","\\gneqq",!0);y(x,L,_,"","\\@gvertneqq");y(x,L,_,"⋧","\\gnsim",!0);y(x,L,_,"⪊","\\gnapprox",!0);y(x,L,_,"⊁","\\nsucc",!0);y(x,L,_,"⋡","\\nsucceq",!0);y(x,L,_,"⋩","\\succnsim",!0);y(x,L,_,"⪺","\\succnapprox",!0);y(x,L,_,"≆","\\ncong",!0);y(x,L,_,"","\\@nshortparallel");y(x,L,_,"∦","\\nparallel",!0);y(x,L,_,"⊯","\\nVDash",!0);y(x,L,_,"⋫","\\ntriangleright");y(x,L,_,"⋭","\\ntrianglerighteq",!0);y(x,L,_,"","\\@nsupseteqq");y(x,L,_,"⊋","\\supsetneq",!0);y(x,L,_,"","\\@varsupsetneq");y(x,L,_,"⫌","\\supsetneqq",!0);y(x,L,_,"","\\@varsupsetneqq");y(x,L,_,"⊮","\\nVdash",!0);y(x,L,_,"⪵","\\precneqq",!0);y(x,L,_,"⪶","\\succneqq",!0);y(x,L,_,"","\\@nsubseteqq");y(x,L,xe,"⊴","\\unlhd");y(x,L,xe,"⊵","\\unrhd");y(x,L,_,"↚","\\nleftarrow",!0);y(x,L,_,"↛","\\nrightarrow",!0);y(x,L,_,"⇍","\\nLeftarrow",!0);y(x,L,_,"⇏","\\nRightarrow",!0);y(x,L,_,"↮","\\nleftrightarrow",!0);y(x,L,_,"⇎","\\nLeftrightarrow",!0);y(x,L,_,"△","\\vartriangle");y(x,L,U,"ℏ","\\hslash");y(x,L,U,"▽","\\triangledown");y(x,L,U,"◊","\\lozenge");y(x,L,U,"Ⓢ","\\circledS");y(x,L,U,"®","\\circledR");y(oe,L,U,"®","\\circledR");y(x,L,U,"∡","\\measuredangle",!0);y(x,L,U,"∄","\\nexists");y(x,L,U,"℧","\\mho");y(x,L,U,"Ⅎ","\\Finv",!0);y(x,L,U,"⅁","\\Game",!0);y(x,L,U,"‵","\\backprime");y(x,L,U,"▲","\\blacktriangle");y(x,L,U,"▼","\\blacktriangledown");y(x,L,U,"■","\\blacksquare");y(x,L,U,"⧫","\\blacklozenge");y(x,L,U,"★","\\bigstar");y(x,L,U,"∢","\\sphericalangle",!0);y(x,L,U,"∁","\\complement",!0);y(x,L,U,"ð","\\eth",!0);y(oe,C,U,"ð","ð");y(x,L,U,"╱","\\diagup");y(x,L,U,"╲","\\diagdown");y(x,L,U,"□","\\square");y(x,L,U,"□","\\Box");y(x,L,U,"◊","\\Diamond");y(x,L,U,"¥","\\yen",!0);y(oe,L,U,"¥","\\yen",!0);y(x,L,U,"✓","\\checkmark",!0);y(oe,L,U,"✓","\\checkmark");y(x,L,U,"ℶ","\\beth",!0);y(x,L,U,"ℸ","\\daleth",!0);y(x,L,U,"ℷ","\\gimel",!0);y(x,L,U,"ϝ","\\digamma",!0);y(x,L,U,"ϰ","\\varkappa");y(x,L,Fn,"┌","\\@ulcorner",!0);y(x,L,pn,"┐","\\@urcorner",!0);y(x,L,Fn,"└","\\@llcorner",!0);y(x,L,pn,"┘","\\@lrcorner",!0);y(x,L,_,"≦","\\leqq",!0);y(x,L,_,"⩽","\\leqslant",!0);y(x,L,_,"⪕","\\eqslantless",!0);y(x,L,_,"≲","\\lesssim",!0);y(x,L,_,"⪅","\\lessapprox",!0);y(x,L,_,"≊","\\approxeq",!0);y(x,L,xe,"⋖","\\lessdot");y(x,L,_,"⋘","\\lll",!0);y(x,L,_,"≶","\\lessgtr",!0);y(x,L,_,"⋚","\\lesseqgtr",!0);y(x,L,_,"⪋","\\lesseqqgtr",!0);y(x,L,_,"≑","\\doteqdot");y(x,L,_,"≓","\\risingdotseq",!0);y(x,L,_,"≒","\\fallingdotseq",!0);y(x,L,_,"∽","\\backsim",!0);y(x,L,_,"⋍","\\backsimeq",!0);y(x,L,_,"⫅","\\subseteqq",!0);y(x,L,_,"⋐","\\Subset",!0);y(x,L,_,"⊏","\\sqsubset",!0);y(x,L,_,"≼","\\preccurlyeq",!0);y(x,L,_,"⋞","\\curlyeqprec",!0);y(x,L,_,"≾","\\precsim",!0);y(x,L,_,"⪷","\\precapprox",!0);y(x,L,_,"⊲","\\vartriangleleft");y(x,L,_,"⊴","\\trianglelefteq");y(x,L,_,"⊨","\\vDash",!0);y(x,L,_,"⊪","\\Vvdash",!0);y(x,L,_,"⌣","\\smallsmile");y(x,L,_,"⌢","\\smallfrown");y(x,L,_,"≏","\\bumpeq",!0);y(x,L,_,"≎","\\Bumpeq",!0);y(x,L,_,"≧","\\geqq",!0);y(x,L,_,"⩾","\\geqslant",!0);y(x,L,_,"⪖","\\eqslantgtr",!0);y(x,L,_,"≳","\\gtrsim",!0);y(x,L,_,"⪆","\\gtrapprox",!0);y(x,L,xe,"⋗","\\gtrdot");y(x,L,_,"⋙","\\ggg",!0);y(x,L,_,"≷","\\gtrless",!0);y(x,L,_,"⋛","\\gtreqless",!0);y(x,L,_,"⪌","\\gtreqqless",!0);y(x,L,_,"≖","\\eqcirc",!0);y(x,L,_,"≗","\\circeq",!0);y(x,L,_,"≜","\\triangleq",!0);y(x,L,_,"∼","\\thicksim");y(x,L,_,"≈","\\thickapprox");y(x,L,_,"⫆","\\supseteqq",!0);y(x,L,_,"⋑","\\Supset",!0);y(x,L,_,"⊐","\\sqsupset",!0);y(x,L,_,"≽","\\succcurlyeq",!0);y(x,L,_,"⋟","\\curlyeqsucc",!0);y(x,L,_,"≿","\\succsim",!0);y(x,L,_,"⪸","\\succapprox",!0);y(x,L,_,"⊳","\\vartriangleright");y(x,L,_,"⊵","\\trianglerighteq");y(x,L,_,"⊩","\\Vdash",!0);y(x,L,_,"∣","\\shortmid");y(x,L,_,"∥","\\shortparallel");y(x,L,_,"≬","\\between",!0);y(x,L,_,"⋔","\\pitchfork",!0);y(x,L,_,"∝","\\varpropto");y(x,L,_,"◀","\\blacktriangleleft");y(x,L,_,"∴","\\therefore",!0);y(x,L,_,"∍","\\backepsilon");y(x,L,_,"▶","\\blacktriangleright");y(x,L,_,"∵","\\because",!0);y(x,L,_,"⋘","\\llless");y(x,L,_,"⋙","\\gggtr");y(x,L,xe,"⊲","\\lhd");y(x,L,xe,"⊳","\\rhd");y(x,L,_,"≂","\\eqsim",!0);y(x,C,_,"⋈","\\Join");y(x,L,_,"≑","\\Doteq",!0);y(x,L,xe,"∔","\\dotplus",!0);y(x,L,xe,"∖","\\smallsetminus");y(x,L,xe,"⋒","\\Cap",!0);y(x,L,xe,"⋓","\\Cup",!0);y(x,L,xe,"⩞","\\doublebarwedge",!0);y(x,L,xe,"⊟","\\boxminus",!0);y(x,L,xe,"⊞","\\boxplus",!0);y(x,L,xe,"⋇","\\divideontimes",!0);y(x,L,xe,"⋉","\\ltimes",!0);y(x,L,xe,"⋊","\\rtimes",!0);y(x,L,xe,"⋋","\\leftthreetimes",!0);y(x,L,xe,"⋌","\\rightthreetimes",!0);y(x,L,xe,"⋏","\\curlywedge",!0);y(x,L,xe,"⋎","\\curlyvee",!0);y(x,L,xe,"⊝","\\circleddash",!0);y(x,L,xe,"⊛","\\circledast",!0);y(x,L,xe,"⋅","\\centerdot");y(x,L,xe,"⊺","\\intercal",!0);y(x,L,xe,"⋒","\\doublecap");y(x,L,xe,"⋓","\\doublecup");y(x,L,xe,"⊠","\\boxtimes",!0);y(x,L,_,"⇢","\\dashrightarrow",!0);y(x,L,_,"⇠","\\dashleftarrow",!0);y(x,L,_,"⇇","\\leftleftarrows",!0);y(x,L,_,"⇆","\\leftrightarrows",!0);y(x,L,_,"⇚","\\Lleftarrow",!0);y(x,L,_,"↞","\\twoheadleftarrow",!0);y(x,L,_,"↢","\\leftarrowtail",!0);y(x,L,_,"↫","\\looparrowleft",!0);y(x,L,_,"⇋","\\leftrightharpoons",!0);y(x,L,_,"↶","\\curvearrowleft",!0);y(x,L,_,"↺","\\circlearrowleft",!0);y(x,L,_,"↰","\\Lsh",!0);y(x,L,_,"⇈","\\upuparrows",!0);y(x,L,_,"↿","\\upharpoonleft",!0);y(x,L,_,"⇃","\\downharpoonleft",!0);y(x,C,_,"⊶","\\origof",!0);y(x,C,_,"⊷","\\imageof",!0);y(x,L,_,"⊸","\\multimap",!0);y(x,L,_,"↭","\\leftrightsquigarrow",!0);y(x,L,_,"⇉","\\rightrightarrows",!0);y(x,L,_,"⇄","\\rightleftarrows",!0);y(x,L,_,"↠","\\twoheadrightarrow",!0);y(x,L,_,"↣","\\rightarrowtail",!0);y(x,L,_,"↬","\\looparrowright",!0);y(x,L,_,"↷","\\curvearrowright",!0);y(x,L,_,"↻","\\circlearrowright",!0);y(x,L,_,"↱","\\Rsh",!0);y(x,L,_,"⇊","\\downdownarrows",!0);y(x,L,_,"↾","\\upharpoonright",!0);y(x,L,_,"⇂","\\downharpoonright",!0);y(x,L,_,"⇝","\\rightsquigarrow",!0);y(x,L,_,"⇝","\\leadsto");y(x,L,_,"⇛","\\Rrightarrow",!0);y(x,L,_,"↾","\\restriction");y(x,C,U,"‘","`");y(x,C,U,"$","\\$");y(oe,C,U,"$","\\$");y(oe,C,U,"$","\\textdollar");y(x,C,U,"%","\\%");y(oe,C,U,"%","\\%");y(x,C,U,"_","\\_");y(oe,C,U,"_","\\_");y(oe,C,U,"_","\\textunderscore");y(x,C,U,"∠","\\angle",!0);y(x,C,U,"∞","\\infty",!0);y(x,C,U,"′","\\prime");y(x,C,U,"△","\\triangle");y(x,C,U,"Γ","\\Gamma",!0);y(x,C,U,"Δ","\\Delta",!0);y(x,C,U,"Θ","\\Theta",!0);y(x,C,U,"Λ","\\Lambda",!0);y(x,C,U,"Ξ","\\Xi",!0);y(x,C,U,"Π","\\Pi",!0);y(x,C,U,"Σ","\\Sigma",!0);y(x,C,U,"Υ","\\Upsilon",!0);y(x,C,U,"Φ","\\Phi",!0);y(x,C,U,"Ψ","\\Psi",!0);y(x,C,U,"Ω","\\Omega",!0);y(x,C,U,"A","Α");y(x,C,U,"B","Β");y(x,C,U,"E","Ε");y(x,C,U,"Z","Ζ");y(x,C,U,"H","Η");y(x,C,U,"I","Ι");y(x,C,U,"K","Κ");y(x,C,U,"M","Μ");y(x,C,U,"N","Ν");y(x,C,U,"O","Ο");y(x,C,U,"P","Ρ");y(x,C,U,"T","Τ");y(x,C,U,"X","Χ");y(x,C,U,"¬","\\neg",!0);y(x,C,U,"¬","\\lnot");y(x,C,U,"⊤","\\top");y(x,C,U,"⊥","\\bot");y(x,C,U,"∅","\\emptyset");y(x,L,U,"∅","\\varnothing");y(x,C,Re,"α","\\alpha",!0);y(x,C,Re,"β","\\beta",!0);y(x,C,Re,"γ","\\gamma",!0);y(x,C,Re,"δ","\\delta",!0);y(x,C,Re,"ϵ","\\epsilon",!0);y(x,C,Re,"ζ","\\zeta",!0);y(x,C,Re,"η","\\eta",!0);y(x,C,Re,"θ","\\theta",!0);y(x,C,Re,"ι","\\iota",!0);y(x,C,Re,"κ","\\kappa",!0);y(x,C,Re,"λ","\\lambda",!0);y(x,C,Re,"μ","\\mu",!0);y(x,C,Re,"ν","\\nu",!0);y(x,C,Re,"ξ","\\xi",!0);y(x,C,Re,"ο","\\omicron",!0);y(x,C,Re,"π","\\pi",!0);y(x,C,Re,"ρ","\\rho",!0);y(x,C,Re,"σ","\\sigma",!0);y(x,C,Re,"τ","\\tau",!0);y(x,C,Re,"υ","\\upsilon",!0);y(x,C,Re,"ϕ","\\phi",!0);y(x,C,Re,"χ","\\chi",!0);y(x,C,Re,"ψ","\\psi",!0);y(x,C,Re,"ω","\\omega",!0);y(x,C,Re,"ε","\\varepsilon",!0);y(x,C,Re,"ϑ","\\vartheta",!0);y(x,C,Re,"ϖ","\\varpi",!0);y(x,C,Re,"ϱ","\\varrho",!0);y(x,C,Re,"ς","\\varsigma",!0);y(x,C,Re,"φ","\\varphi",!0);y(x,C,xe,"∗","*",!0);y(x,C,xe,"+","+");y(x,C,xe,"−","-",!0);y(x,C,xe,"⋅","\\cdot",!0);y(x,C,xe,"∘","\\circ",!0);y(x,C,xe,"÷","\\div",!0);y(x,C,xe,"±","\\pm",!0);y(x,C,xe,"×","\\times",!0);y(x,C,xe,"∩","\\cap",!0);y(x,C,xe,"∪","\\cup",!0);y(x,C,xe,"∖","\\setminus",!0);y(x,C,xe,"∧","\\land");y(x,C,xe,"∨","\\lor");y(x,C,xe,"∧","\\wedge",!0);y(x,C,xe,"∨","\\vee",!0);y(x,C,U,"√","\\surd");y(x,C,Fn,"⟨","\\langle",!0);y(x,C,Fn,"∣","\\lvert");y(x,C,Fn,"∥","\\lVert");y(x,C,pn,"?","?");y(x,C,pn,"!","!");y(x,C,pn,"⟩","\\rangle",!0);y(x,C,pn,"∣","\\rvert");y(x,C,pn,"∥","\\rVert");y(x,C,_,"=","=");y(x,C,_,":",":");y(x,C,_,"≈","\\approx",!0);y(x,C,_,"≅","\\cong",!0);y(x,C,_,"≥","\\ge");y(x,C,_,"≥","\\geq",!0);y(x,C,_,"←","\\gets");y(x,C,_,">","\\gt",!0);y(x,C,_,"∈","\\in",!0);y(x,C,_,"","\\@not");y(x,C,_,"⊂","\\subset",!0);y(x,C,_,"⊃","\\supset",!0);y(x,C,_,"⊆","\\subseteq",!0);y(x,C,_,"⊇","\\supseteq",!0);y(x,L,_,"⊈","\\nsubseteq",!0);y(x,L,_,"⊉","\\nsupseteq",!0);y(x,C,_,"⊨","\\models");y(x,C,_,"←","\\leftarrow",!0);y(x,C,_,"≤","\\le");y(x,C,_,"≤","\\leq",!0);y(x,C,_,"<","\\lt",!0);y(x,C,_,"→","\\rightarrow",!0);y(x,C,_,"→","\\to");y(x,L,_,"≱","\\ngeq",!0);y(x,L,_,"≰","\\nleq",!0);y(x,C,ya," ","\\ ");y(x,C,ya," ","\\space");y(x,C,ya," ","\\nobreakspace");y(oe,C,ya," ","\\ ");y(oe,C,ya," "," ");y(oe,C,ya," ","\\space");y(oe,C,ya," ","\\nobreakspace");y(x,C,ya,null,"\\nobreak");y(x,C,ya,null,"\\allowbreak");y(x,C,pc,",",",");y(x,C,pc,";",";");y(x,L,xe,"⊼","\\barwedge",!0);y(x,L,xe,"⊻","\\veebar",!0);y(x,C,xe,"⊙","\\odot",!0);y(x,C,xe,"⊕","\\oplus",!0);y(x,C,xe,"⊗","\\otimes",!0);y(x,C,U,"∂","\\partial",!0);y(x,C,xe,"⊘","\\oslash",!0);y(x,L,xe,"⊚","\\circledcirc",!0);y(x,L,xe,"⊡","\\boxdot",!0);y(x,C,xe,"△","\\bigtriangleup");y(x,C,xe,"▽","\\bigtriangledown");y(x,C,xe,"†","\\dagger");y(x,C,xe,"⋄","\\diamond");y(x,C,xe,"⋆","\\star");y(x,C,xe,"◃","\\triangleleft");y(x,C,xe,"▹","\\triangleright");y(x,C,Fn,"{","\\{");y(oe,C,U,"{","\\{");y(oe,C,U,"{","\\textbraceleft");y(x,C,pn,"}","\\}");y(oe,C,U,"}","\\}");y(oe,C,U,"}","\\textbraceright");y(x,C,Fn,"{","\\lbrace");y(x,C,pn,"}","\\rbrace");y(x,C,Fn,"[","\\lbrack",!0);y(oe,C,U,"[","\\lbrack",!0);y(x,C,pn,"]","\\rbrack",!0);y(oe,C,U,"]","\\rbrack",!0);y(x,C,Fn,"(","\\lparen",!0);y(x,C,pn,")","\\rparen",!0);y(oe,C,U,"<","\\textless",!0);y(oe,C,U,">","\\textgreater",!0);y(x,C,Fn,"⌊","\\lfloor",!0);y(x,C,pn,"⌋","\\rfloor",!0);y(x,C,Fn,"⌈","\\lceil",!0);y(x,C,pn,"⌉","\\rceil",!0);y(x,C,U,"\\","\\backslash");y(x,C,U,"∣","|");y(x,C,U,"∣","\\vert");y(oe,C,U,"|","\\textbar",!0);y(x,C,U,"∥","\\|");y(x,C,U,"∥","\\Vert");y(oe,C,U,"∥","\\textbardbl");y(oe,C,U,"~","\\textasciitilde");y(oe,C,U,"\\","\\textbackslash");y(oe,C,U,"^","\\textasciicircum");y(x,C,_,"↑","\\uparrow",!0);y(x,C,_,"⇑","\\Uparrow",!0);y(x,C,_,"↓","\\downarrow",!0);y(x,C,_,"⇓","\\Downarrow",!0);y(x,C,_,"↕","\\updownarrow",!0);y(x,C,_,"⇕","\\Updownarrow",!0);y(x,C,Ht,"∐","\\coprod");y(x,C,Ht,"⋁","\\bigvee");y(x,C,Ht,"⋀","\\bigwedge");y(x,C,Ht,"⨄","\\biguplus");y(x,C,Ht,"⋂","\\bigcap");y(x,C,Ht,"⋃","\\bigcup");y(x,C,Ht,"∫","\\int");y(x,C,Ht,"∫","\\intop");y(x,C,Ht,"∬","\\iint");y(x,C,Ht,"∭","\\iiint");y(x,C,Ht,"∏","\\prod");y(x,C,Ht,"∑","\\sum");y(x,C,Ht,"⨂","\\bigotimes");y(x,C,Ht,"⨁","\\bigoplus");y(x,C,Ht,"⨀","\\bigodot");y(x,C,Ht,"∮","\\oint");y(x,C,Ht,"∯","\\oiint");y(x,C,Ht,"∰","\\oiiint");y(x,C,Ht,"⨆","\\bigsqcup");y(x,C,Ht,"∫","\\smallint");y(oe,C,e0,"…","\\textellipsis");y(x,C,e0,"…","\\mathellipsis");y(oe,C,e0,"…","\\ldots",!0);y(x,C,e0,"…","\\ldots",!0);y(x,C,e0,"⋯","\\@cdots",!0);y(x,C,e0,"⋱","\\ddots",!0);y(x,C,U,"⋮","\\varvdots");y(oe,C,U,"⋮","\\varvdots");y(x,C,bt,"ˊ","\\acute");y(x,C,bt,"ˋ","\\grave");y(x,C,bt,"¨","\\ddot");y(x,C,bt,"~","\\tilde");y(x,C,bt,"ˉ","\\bar");y(x,C,bt,"˘","\\breve");y(x,C,bt,"ˇ","\\check");y(x,C,bt,"^","\\hat");y(x,C,bt,"⃗","\\vec");y(x,C,bt,"˙","\\dot");y(x,C,bt,"˚","\\mathring");y(x,C,Re,"","\\@imath");y(x,C,Re,"","\\@jmath");y(x,C,U,"ı","ı");y(x,C,U,"ȷ","ȷ");y(oe,C,U,"ı","\\i",!0);y(oe,C,U,"ȷ","\\j",!0);y(oe,C,U,"ß","\\ss",!0);y(oe,C,U,"æ","\\ae",!0);y(oe,C,U,"œ","\\oe",!0);y(oe,C,U,"ø","\\o",!0);y(oe,C,U,"Æ","\\AE",!0);y(oe,C,U,"Œ","\\OE",!0);y(oe,C,U,"Ø","\\O",!0);y(oe,C,bt,"ˊ","\\'");y(oe,C,bt,"ˋ","\\`");y(oe,C,bt,"ˆ","\\^");y(oe,C,bt,"˜","\\~");y(oe,C,bt,"ˉ","\\=");y(oe,C,bt,"˘","\\u");y(oe,C,bt,"˙","\\.");y(oe,C,bt,"¸","\\c");y(oe,C,bt,"˚","\\r");y(oe,C,bt,"ˇ","\\v");y(oe,C,bt,"¨",'\\"');y(oe,C,bt,"˝","\\H");y(oe,C,bt,"◯","\\textcircled");var d7={"--":!0,"---":!0,"``":!0,"''":!0};y(oe,C,U,"–","--",!0);y(oe,C,U,"–","\\textendash");y(oe,C,U,"—","---",!0);y(oe,C,U,"—","\\textemdash");y(oe,C,U,"‘","`",!0);y(oe,C,U,"‘","\\textquoteleft");y(oe,C,U,"’","'",!0);y(oe,C,U,"’","\\textquoteright");y(oe,C,U,"“","``",!0);y(oe,C,U,"“","\\textquotedblleft");y(oe,C,U,"”","''",!0);y(oe,C,U,"”","\\textquotedblright");y(x,C,U,"°","\\degree",!0);y(oe,C,U,"°","\\degree");y(oe,C,U,"°","\\textdegree",!0);y(x,C,U,"£","\\pounds");y(x,C,U,"£","\\mathsterling",!0);y(oe,C,U,"£","\\pounds");y(oe,C,U,"£","\\textsterling",!0);y(x,L,U,"✠","\\maltese");y(oe,L,U,"✠","\\maltese");var S5='0123456789/@."';for(var d1=0;d1<S5.length;d1++){var A5=S5.charAt(d1);y(x,C,U,A5,A5)}var M5='0123456789!@*()-=+";:?/.,';for(var h1=0;h1<M5.length;h1++){var E5=M5.charAt(h1);y(oe,C,U,E5,E5)}var Iu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var m1=0;m1<Iu.length;m1++){var vu=Iu.charAt(m1);y(x,C,Re,vu,vu),y(oe,C,U,vu,vu)}y(x,L,U,"C","ℂ");y(oe,L,U,"C","ℂ");y(x,L,U,"H","ℍ");y(oe,L,U,"H","ℍ");y(x,L,U,"N","ℕ");y(oe,L,U,"N","ℕ");y(x,L,U,"P","ℙ");y(oe,L,U,"P","ℙ");y(x,L,U,"Q","ℚ");y(oe,L,U,"Q","ℚ");y(x,L,U,"R","ℝ");y(oe,L,U,"R","ℝ");y(x,L,U,"Z","ℤ");y(oe,L,U,"Z","ℤ");y(x,C,Re,"h","ℎ");y(oe,C,Re,"h","ℎ");var je="";for(var un=0;un<Iu.length;un++){var Ct=Iu.charAt(un);je=String.fromCharCode(55349,56320+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je),je=String.fromCharCode(55349,56372+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je),je=String.fromCharCode(55349,56424+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je),je=String.fromCharCode(55349,56580+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je),je=String.fromCharCode(55349,56684+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je),je=String.fromCharCode(55349,56736+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je),je=String.fromCharCode(55349,56788+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je),je=String.fromCharCode(55349,56840+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je),je=String.fromCharCode(55349,56944+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je),un<26&&(je=String.fromCharCode(55349,56632+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je),je=String.fromCharCode(55349,56476+un),y(x,C,Re,Ct,je),y(oe,C,U,Ct,je))}je="𝕜";y(x,C,Re,"k",je);y(oe,C,U,"k",je);for(var Ol=0;Ol<10;Ol++){var $a=Ol.toString();je=String.fromCharCode(55349,57294+Ol),y(x,C,Re,$a,je),y(oe,C,U,$a,je),je=String.fromCharCode(55349,57314+Ol),y(x,C,Re,$a,je),y(oe,C,U,$a,je),je=String.fromCharCode(55349,57324+Ol),y(x,C,Re,$a,je),y(oe,C,U,$a,je),je=String.fromCharCode(55349,57334+Ol),y(x,C,Re,$a,je),y(oe,C,U,$a,je)}var I1="ÐÞþ";for(var p1=0;p1<I1.length;p1++){var gu=I1.charAt(p1);y(x,C,Re,gu,gu),y(oe,C,U,gu,gu)}var yu=[["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"]],T5=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],jN=function(t,r){var l=t.charCodeAt(0),i=t.charCodeAt(1),s=(l-55296)*1024+(i-56320)+65536,c=r==="math"?0:1;if(119808<=s&&s<120484){var f=Math.floor((s-119808)/26);return[yu[f][2],yu[f][c]]}else if(120782<=s&&s<=120831){var d=Math.floor((s-120782)/10);return[T5[d][2],T5[d][c]]}else{if(s===120485||s===120486)return[yu[0][2],yu[0][c]];if(120486<s&&s<120782)return["",""];throw new fe("Unsupported character: "+t)}},vc=function(t,r,l){return ht[l][t]&&ht[l][t].replace&&(t=ht[l][t].replace),{value:t,metrics:_h(t,r,l)}},cr=function(t,r,l,i,s){var c=vc(t,r,l),f=c.metrics;t=c.value;var d;if(f){var h=f.italic;(l==="text"||i&&i.font==="mathit")&&(h=0),d=new ar(t,f.height,f.depth,h,f.skew,f.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+l+"'")),d=new ar(t,0,0,0,0,0,s);if(i){d.maxFontSize=i.sizeMultiplier,i.style.isTight()&&d.classes.push("mtight");var v=i.getColor();v&&(d.style.color=v)}return d},BN=function(t,r,l,i){return i===void 0&&(i=[]),l.font==="boldsymbol"&&vc(t,"Main-Bold",r).metrics?cr(t,"Main-Bold",r,l,i.concat(["mathbf"])):t==="\\"||ht[r][t].font==="main"?cr(t,"Main-Regular",r,l,i):cr(t,"AMS-Regular",r,l,i.concat(["amsrm"]))},HN=function(t,r,l,i,s){return s!=="textord"&&vc(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},qN=function(t,r,l){var i=t.mode,s=t.text,c=["mord"],f=i==="math"||i==="text"&&r.font,d=f?r.font:r.fontFamily,h="",v="";if(s.charCodeAt(0)===55349&&([h,v]=jN(s,i)),h.length>0)return cr(s,h,i,r,c.concat(v));if(d){var g,b;if(d==="boldsymbol"){var w=HN(s,i,r,c,l);g=w.fontName,b=[w.fontClass]}else f?(g=p7[d].fontName,b=[d]):(g=bu(d,r.fontWeight,r.fontShape),b=[d,r.fontWeight,r.fontShape]);if(vc(s,g,i).metrics)return cr(s,g,i,r,c.concat(b));if(d7.hasOwnProperty(s)&&g.slice(0,10)==="Typewriter"){for(var E=[],A=0;A<s.length;A++)E.push(cr(s[A],g,i,r,c.concat(b)));return m7(E)}}if(l==="mathord")return cr(s,"Math-Italic",i,r,c.concat(["mathnormal"]));if(l==="textord"){var T=ht[i][s]&&ht[i][s].font;if(T==="ams"){var N=bu("amsrm",r.fontWeight,r.fontShape);return cr(s,N,i,r,c.concat("amsrm",r.fontWeight,r.fontShape))}else if(T==="main"||!T){var O=bu("textrm",r.fontWeight,r.fontShape);return cr(s,O,i,r,c.concat(r.fontWeight,r.fontShape))}else{var R=bu(T,r.fontWeight,r.fontShape);return cr(s,R,i,r,c.concat(R,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+l+" in makeOrd")},UN=(e,t)=>{if(il(e.classes)!==il(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var l in e.style)if(e.style.hasOwnProperty(l)&&e.style[l]!==t.style[l])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},GN=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],l=e[t+1];r instanceof ar&&l instanceof ar&&UN(r,l)&&(r.text+=l.text,r.height=Math.max(r.height,l.height),r.depth=Math.max(r.depth,l.depth),r.italic=l.italic,e.splice(t+1,1),t--)}return e},Bh=function(t){for(var r=0,l=0,i=0,s=0;s<t.children.length;s++){var c=t.children[s];c.height>r&&(r=c.height),c.depth>l&&(l=c.depth),c.maxFontSize>i&&(i=c.maxFontSize)}t.height=r,t.depth=l,t.maxFontSize=i},Mn=function(t,r,l,i){var s=new qo(t,r,l,i);return Bh(s),s},h7=(e,t,r,l)=>new qo(e,t,r,l),FN=function(t,r,l){var i=Mn([t],[],r);return i.height=Math.max(l||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=pe(i.height),i.maxFontSize=1,i},YN=function(t,r,l,i){var s=new jh(t,r,l,i);return Bh(s),s},m7=function(t){var r=new Ho(t);return Bh(r),r},PN=function(t,r){return t instanceof Ho?Mn([],[t],r):t},VN=function(t){if(t.positionType==="individualShift"){for(var r=t.children,l=[r[0]],i=-r[0].shift-r[0].elem.depth,s=i,c=1;c<r.length;c++){var f=-r[c].shift-s-r[c].elem.depth,d=f-(r[c-1].elem.height+r[c-1].elem.depth);s=s+f,l.push({type:"kern",size:d}),l.push(r[c])}return{children:l,depth:i}}var h;if(t.positionType==="top"){for(var v=t.positionData,g=0;g<t.children.length;g++){var b=t.children[g];v-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}h=v}else if(t.positionType==="bottom")h=-t.positionData;else{var w=t.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")h=-w.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")h=-w.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:h}},IN=function(t,r){for(var{children:l,depth:i}=VN(t),s=0,c=0;c<l.length;c++){var f=l[c];if(f.type==="elem"){var d=f.elem;s=Math.max(s,d.maxFontSize,d.height)}}s+=2;var h=Mn(["pstrut"],[]);h.style.height=pe(s);for(var v=[],g=i,b=i,w=i,E=0;E<l.length;E++){var A=l[E];if(A.type==="kern")w+=A.size;else{var T=A.elem,N=A.wrapperClasses||[],O=A.wrapperStyle||{},R=Mn(N,[h,T],void 0,O);R.style.top=pe(-s-w-T.depth),A.marginLeft&&(R.style.marginLeft=A.marginLeft),A.marginRight&&(R.style.marginRight=A.marginRight),v.push(R),w+=T.height+T.depth}g=Math.min(g,w),b=Math.max(b,w)}var H=Mn(["vlist"],v);H.style.height=pe(b);var F;if(g<0){var I=Mn([],[]),G=Mn(["vlist"],[I]);G.style.height=pe(-g);var V=Mn(["vlist-s"],[new ar("​")]);F=[Mn(["vlist-r"],[H,V]),Mn(["vlist-r"],[G])]}else F=[Mn(["vlist-r"],[H])];var te=Mn(["vlist-t"],F);return F.length===2&&te.classes.push("vlist-t2"),te.height=b,te.depth=-g,te},XN=(e,t)=>{var r=Mn(["mspace"],[],t),l=wt(e,t);return r.style.marginRight=pe(l),r},bu=function(t,r,l){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var s;return r==="textbf"&&l==="textit"?s="BoldItalic":r==="textbf"?s="Bold":r==="textit"?s="Italic":s="Regular",i+"-"+s},p7={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"}},v7={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},$N=function(t,r){var[l,i,s]=v7[t],c=new ol(l),f=new pa([c],{width:pe(i),height:pe(s),style:"width:"+pe(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),d=h7(["overlay"],[f],r);return d.height=s,d.style.height=pe(s),d.style.width=pe(i),d},$={fontMap:p7,makeSymbol:cr,mathsym:BN,makeSpan:Mn,makeSvgSpan:h7,makeLineSpan:FN,makeAnchor:YN,makeFragment:m7,wrapFragment:PN,makeVList:IN,makeOrd:qN,makeGlue:XN,staticSvg:$N,svgData:v7,tryCombineChars:GN},xt={number:3,unit:"mu"},Rl={number:4,unit:"mu"},aa={number:5,unit:"mu"},KN={mord:{mop:xt,mbin:Rl,mrel:aa,minner:xt},mop:{mord:xt,mop:xt,mrel:aa,minner:xt},mbin:{mord:Rl,mop:Rl,mopen:Rl,minner:Rl},mrel:{mord:aa,mop:aa,mopen:aa,minner:aa},mopen:{},mclose:{mop:xt,mbin:Rl,mrel:aa,minner:xt},mpunct:{mord:xt,mop:xt,mrel:aa,mopen:xt,mclose:xt,mpunct:xt,minner:xt},minner:{mord:xt,mop:xt,mbin:Rl,mrel:aa,mopen:xt,mpunct:xt,minner:xt}},QN={mord:{mop:xt},mop:{mord:xt,mop:xt},mbin:{},mrel:{},mopen:{},mclose:{mop:xt},mpunct:{},minner:{mop:xt}},g7={},Xu={},$u={};function ge(e){for(var{type:t,names:r,props:l,handler:i,htmlBuilder:s,mathmlBuilder:c}=e,f={type:t,numArgs:l.numArgs,argTypes:l.argTypes,allowedInArgument:!!l.allowedInArgument,allowedInText:!!l.allowedInText,allowedInMath:l.allowedInMath===void 0?!0:l.allowedInMath,numOptionalArgs:l.numOptionalArgs||0,infix:!!l.infix,primitive:!!l.primitive,handler:i},d=0;d<r.length;++d)g7[r[d]]=f;t&&(s&&(Xu[t]=s),c&&($u[t]=c))}function Pl(e){var{type:t,htmlBuilder:r,mathmlBuilder:l}=e;ge({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:l})}var Ku=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Dt=function(t){return t.type==="ordgroup"?t.body:[t]},va=$.makeSpan,ZN=["leftmost","mbin","mopen","mrel","mop","mpunct"],WN=["rightmost","mrel","mclose","mpunct"],JN={display:Le.DISPLAY,text:Le.TEXT,script:Le.SCRIPT,scriptscript:Le.SCRIPTSCRIPT},ez={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Pt=function(t,r,l,i){i===void 0&&(i=[null,null]);for(var s=[],c=0;c<t.length;c++){var f=Je(t[c],r);if(f instanceof Ho){var d=f.children;s.push(...d)}else s.push(f)}if($.tryCombineChars(s),!l)return s;var h=r;if(t.length===1){var v=t[0];v.type==="sizing"?h=r.havingSize(v.size):v.type==="styling"&&(h=r.havingStyle(JN[v.style]))}var g=va([i[0]||"leftmost"],[],r),b=va([i[1]||"rightmost"],[],r),w=l==="root";return C5(s,(E,A)=>{var T=A.classes[0],N=E.classes[0];T==="mbin"&&WN.includes(N)?A.classes[0]="mord":N==="mbin"&&ZN.includes(T)&&(E.classes[0]="mord")},{node:g},b,w),C5(s,(E,A)=>{var T=X1(A),N=X1(E),O=T&&N?E.hasClass("mtight")?QN[T][N]:KN[T][N]:null;if(O)return $.makeGlue(O,h)},{node:g},b,w),s},C5=function e(t,r,l,i,s){i&&t.push(i);for(var c=0;c<t.length;c++){var f=t[c],d=y7(f);if(d){e(d.children,r,l,null,s);continue}var h=!f.hasClass("mspace");if(h){var v=r(f,l.node);v&&(l.insertAfter?l.insertAfter(v):(t.unshift(v),c++))}h?l.node=f:s&&f.hasClass("newline")&&(l.node=va(["leftmost"])),l.insertAfter=(g=>b=>{t.splice(g+1,0,b),c++})(c)}i&&t.pop()},y7=function(t){return t instanceof Ho||t instanceof jh||t instanceof qo&&t.hasClass("enclosing")?t:null},tz=function e(t,r){var l=y7(t);if(l){var i=l.children;if(i.length){if(r==="right")return e(i[i.length-1],"right");if(r==="left")return e(i[0],"left")}}return t},X1=function(t,r){return t?(r&&(t=tz(t,r)),ez[t.classes[0]]||null):null},wo=function(t,r){var l=["nulldelimiter"].concat(t.baseSizingClasses());return va(r.concat(l))},Je=function(t,r,l){if(!t)return va();if(Xu[t.type]){var i=Xu[t.type](t,r);if(l&&r.size!==l.size){i=va(r.sizingClasses(l),[i],r);var s=r.sizeMultiplier/l.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new fe("Got group of unknown type: '"+t.type+"'")};function xu(e,t){var r=va(["base"],e,t),l=va(["strut"]);return l.style.height=pe(r.height+r.depth),r.depth&&(l.style.verticalAlign=pe(-r.depth)),r.children.unshift(l),r}function $1(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var l=Pt(e,t,"root"),i;l.length===2&&l[1].hasClass("tag")&&(i=l.pop());for(var s=[],c=[],f=0;f<l.length;f++)if(c.push(l[f]),l[f].hasClass("mbin")||l[f].hasClass("mrel")||l[f].hasClass("allowbreak")){for(var d=!1;f<l.length-1&&l[f+1].hasClass("mspace")&&!l[f+1].hasClass("newline");)f++,c.push(l[f]),l[f].hasClass("nobreak")&&(d=!0);d||(s.push(xu(c,t)),c=[])}else l[f].hasClass("newline")&&(c.pop(),c.length>0&&(s.push(xu(c,t)),c=[]),s.push(l[f]));c.length>0&&s.push(xu(c,t));var h;r?(h=xu(Pt(r,t,!0)),h.classes=["tag"],s.push(h)):i&&s.push(i);var v=va(["katex-html"],s);if(v.setAttribute("aria-hidden","true"),h){var g=h.children[0];g.style.height=pe(v.height+v.depth),v.depth&&(g.style.verticalAlign=pe(-v.depth))}return v}function b7(e){return new Ho(e)}class qn{constructor(t,r,l){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=l||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=il(this.classes));for(var l=0;l<this.children.length;l++)if(this.children[l]instanceof kr&&this.children[l+1]instanceof kr){for(var i=this.children[l].toText()+this.children[++l].toText();this.children[l+1]instanceof kr;)i+=this.children[++l].toText();t.appendChild(new kr(i).toNode())}else t.appendChild(this.children[l].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=nt.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+nt.escape(il(this.classes))+'"'),t+=">";for(var l=0;l<this.children.length;l++)t+=this.children[l].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class kr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return nt.escape(this.toText())}toText(){return this.text}}class nz{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",pe(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+pe(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var ue={MathNode:qn,TextNode:kr,SpaceNode:nz,newDocumentFragment:b7},lr=function(t,r,l){return ht[r][t]&&ht[r][t].replace&&t.charCodeAt(0)!==55349&&!(d7.hasOwnProperty(t)&&l&&(l.fontFamily&&l.fontFamily.slice(4,6)==="tt"||l.font&&l.font.slice(4,6)==="tt"))&&(t=ht[r][t].replace),new ue.TextNode(t)},Hh=function(t){return t.length===1?t[0]:new ue.MathNode("mrow",t)},qh=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var l=r.font;if(!l||l==="mathnormal")return null;var i=t.mode;if(l==="mathit")return"italic";if(l==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(l==="mathbf")return"bold";if(l==="mathbb")return"double-struck";if(l==="mathsfit")return"sans-serif-italic";if(l==="mathfrak")return"fraktur";if(l==="mathscr"||l==="mathcal")return"script";if(l==="mathsf")return"sans-serif";if(l==="mathtt")return"monospace";var s=t.text;if(["\\imath","\\jmath"].includes(s))return null;ht[i][s]&&ht[i][s].replace&&(s=ht[i][s].replace);var c=$.fontMap[l].fontName;return _h(s,c,i)?$.fontMap[l].variant:null};function v1(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof kr&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof kr&&r.text===","}else return!1}var zn=function(t,r,l){if(t.length===1){var i=dt(t[0],r);return l&&i instanceof qn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],c,f=0;f<t.length;f++){var d=dt(t[f],r);if(d instanceof qn&&c instanceof qn){if(d.type==="mtext"&&c.type==="mtext"&&d.getAttribute("mathvariant")===c.getAttribute("mathvariant")){c.children.push(...d.children);continue}else if(d.type==="mn"&&c.type==="mn"){c.children.push(...d.children);continue}else if(v1(d)&&c.type==="mn"){c.children.push(...d.children);continue}else if(d.type==="mn"&&v1(c))d.children=[...c.children,...d.children],s.pop();else if((d.type==="msup"||d.type==="msub")&&d.children.length>=1&&(c.type==="mn"||v1(c))){var h=d.children[0];h instanceof qn&&h.type==="mn"&&(h.children=[...c.children,...h.children],s.pop())}else if(c.type==="mi"&&c.children.length===1){var v=c.children[0];if(v instanceof kr&&v.text==="̸"&&(d.type==="mo"||d.type==="mi"||d.type==="mn")){var g=d.children[0];g instanceof kr&&g.text.length>0&&(g.text=g.text.slice(0,1)+"̸"+g.text.slice(1),s.pop())}}}s.push(d),c=d}return s},sl=function(t,r,l){return Hh(zn(t,r,l))},dt=function(t,r){if(!t)return new ue.MathNode("mrow");if($u[t.type]){var l=$u[t.type](t,r);return l}else throw new fe("Got group of unknown type: '"+t.type+"'")};function k5(e,t,r,l,i){var s=zn(e,r),c;s.length===1&&s[0]instanceof qn&&["mrow","mtable"].includes(s[0].type)?c=s[0]:c=new ue.MathNode("mrow",s);var f=new ue.MathNode("annotation",[new ue.TextNode(t)]);f.setAttribute("encoding","application/x-tex");var d=new ue.MathNode("semantics",[c,f]),h=new ue.MathNode("math",[d]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),l&&h.setAttribute("display","block");var v=i?"katex":"katex-mathml";return $.makeSpan([v],[h])}var x7=function(t){return new la({style:t.displayMode?Le.DISPLAY:Le.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},w7=function(t,r){if(r.displayMode){var l=["katex-display"];r.leqno&&l.push("leqno"),r.fleqn&&l.push("fleqn"),t=$.makeSpan(l,[t])}return t},rz=function(t,r,l){var i=x7(l),s;if(l.output==="mathml")return k5(t,r,i,l.displayMode,!0);if(l.output==="html"){var c=$1(t,i);s=$.makeSpan(["katex"],[c])}else{var f=k5(t,r,i,l.displayMode,!1),d=$1(t,i);s=$.makeSpan(["katex"],[f,d])}return w7(s,l)},az=function(t,r,l){var i=x7(l),s=$1(t,i),c=$.makeSpan(["katex"],[s]);return w7(c,l)},lz={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":"="},iz=function(t){var r=new ue.MathNode("mo",[new ue.TextNode(lz[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},oz={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]},sz=function(t){return t.type==="ordgroup"?t.body.length:1},uz=function(t,r){function l(){var f=4e5,d=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(d)){var h=t,v=sz(h.base),g,b,w;if(v>5)d==="widehat"||d==="widecheck"?(g=420,f=2364,w=.42,b=d+"4"):(g=312,f=2340,w=.34,b="tilde4");else{var E=[1,1,2,2,3,3][v];d==="widehat"||d==="widecheck"?(f=[0,1062,2364,2364,2364][E],g=[0,239,300,360,420][E],w=[0,.24,.3,.3,.36,.42][E],b=d+E):(f=[0,600,1033,2339,2340][E],g=[0,260,286,306,312][E],w=[0,.26,.286,.3,.306,.34][E],b="tilde"+E)}var A=new ol(b),T=new pa([A],{width:"100%",height:pe(w),viewBox:"0 0 "+f+" "+g,preserveAspectRatio:"none"});return{span:$.makeSvgSpan([],[T],r),minWidth:0,height:w}}else{var N=[],O=oz[d],[R,H,F]=O,I=F/1e3,G=R.length,V,te;if(G===1){var de=O[3];V=["hide-tail"],te=[de]}else if(G===2)V=["halfarrow-left","halfarrow-right"],te=["xMinYMin","xMaxYMin"];else if(G===3)V=["brace-left","brace-center","brace-right"],te=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
447
- `+G+" children.");for(var ce=0;ce<G;ce++){var he=new ol(R[ce]),De=new pa([he],{width:"400em",height:pe(I),viewBox:"0 0 "+f+" "+F,preserveAspectRatio:te[ce]+" slice"}),we=$.makeSvgSpan([V[ce]],[De],r);if(G===1)return{span:we,minWidth:H,height:I};we.style.height=pe(I),N.push(we)}return{span:$.makeSpan(["stretchy"],N,r),minWidth:H,height:I}}}var{span:i,minWidth:s,height:c}=l();return i.height=c,i.style.height=pe(c),s>0&&(i.style.minWidth=pe(s)),i},cz=function(t,r,l,i,s){var c,f=t.height+t.depth+l+i;if(/fbox|color|angl/.test(r)){if(c=$.makeSpan(["stretchy",r],[],s),r==="fbox"){var d=s.color&&s.getColor();d&&(c.style.borderColor=d)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new V1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new V1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var v=new pa(h,{width:"100%",height:pe(f)});c=$.makeSvgSpan([],[v],s)}return c.height=f,c.style.height=pe(f),c},ga={encloseSpan:cz,mathMLnode:iz,svgSpan:uz};function Ge(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Uh(e){var t=gc(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function gc(e){return e&&(e.type==="atom"||_N.hasOwnProperty(e.type))?e:null}var Gh=(e,t)=>{var r,l,i;e&&e.type==="supsub"?(l=Ge(e.base,"accent"),r=l.base,e.base=r,i=RN(Je(e,t)),e.base=l):(l=Ge(e,"accent"),r=l.base);var s=Je(r,t.havingCrampedStyle()),c=l.isShifty&&nt.isCharacterBox(r),f=0;if(c){var d=nt.getBaseElem(r),h=Je(d,t.havingCrampedStyle());f=w5(h).skew}var v=l.label==="\\c",g=v?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),b;if(l.isStretchy)b=ga.svgSpan(l,t),b=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+pe(2*f)+")",marginLeft:pe(2*f)}:void 0}]},t);else{var w,E;l.label==="\\vec"?(w=$.staticSvg("vec",t),E=$.svgData.vec[1]):(w=$.makeOrd({mode:l.mode,text:l.label},t,"textord"),w=w5(w),w.italic=0,E=w.width,v&&(g+=w.depth)),b=$.makeSpan(["accent-body"],[w]);var A=l.label==="\\textcircled";A&&(b.classes.push("accent-full"),g=s.height);var T=f;A||(T-=E/2),b.style.left=pe(T),l.label==="\\textcircled"&&(b.style.top=".2em"),b=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-g},{type:"elem",elem:b}]},t)}var N=$.makeSpan(["mord","accent"],[b],t);return i?(i.children[0]=N,i.height=Math.max(N.height,i.height),i.classes[0]="mord",i):N},S7=(e,t)=>{var r=e.isStretchy?ga.mathMLnode(e.label):new ue.MathNode("mo",[lr(e.label,e.mode)]),l=new ue.MathNode("mover",[dt(e.base,t),r]);return l.setAttribute("accent","true"),l},fz=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ge({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Ku(t[0]),l=!fz.test(e.funcName),i=!l||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:l,isShifty:i,base:r}},htmlBuilder:Gh,mathmlBuilder:S7});ge({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],l=e.parser.mode;return l==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),l="text"),{type:"accent",mode:l,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Gh,mathmlBuilder:S7});ge({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:l}=e,i=t[0];return{type:"accentUnder",mode:r.mode,label:l,base:i}},htmlBuilder:(e,t)=>{var r=Je(e.base,t),l=ga.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,s=$.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},t);return $.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=ga.mathMLnode(e.label),l=new ue.MathNode("munder",[dt(e.base,t),r]);return l.setAttribute("accentunder","true"),l}});var wu=e=>{var t=new ue.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ge({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:l,funcName:i}=e;return{type:"xArrow",mode:l.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,l=t.havingStyle(r.sup()),i=$.wrapFragment(Je(e.body,l,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var c;e.below&&(l=t.havingStyle(r.sub()),c=$.wrapFragment(Je(e.below,l,t),t),c.classes.push(s+"-arrow-pad"));var f=ga.svgSpan(e,t),d=-t.fontMetrics().axisHeight+.5*f.height,h=-t.fontMetrics().axisHeight-.5*f.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(h-=i.depth);var v;if(c){var g=-t.fontMetrics().axisHeight+c.height+.5*f.height+.111;v=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:f,shift:d},{type:"elem",elem:c,shift:g}]},t)}else v=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:f,shift:d}]},t);return v.children[0].children[0].children[1].classes.push("svg-align"),$.makeSpan(["mrel","x-arrow"],[v],t)},mathmlBuilder(e,t){var r=ga.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var l;if(e.body){var i=wu(dt(e.body,t));if(e.below){var s=wu(dt(e.below,t));l=new ue.MathNode("munderover",[r,s,i])}else l=new ue.MathNode("mover",[r,i])}else if(e.below){var c=wu(dt(e.below,t));l=new ue.MathNode("munder",[r,c])}else l=wu(),l=new ue.MathNode("mover",[r,l]);return l}});var dz=$.makeSpan;function A7(e,t){var r=Pt(e.body,t,!0);return dz([e.mclass],r,t)}function M7(e,t){var r,l=zn(e.body,t);return e.mclass==="minner"?r=new ue.MathNode("mpadded",l):e.mclass==="mord"?e.isCharacterBox?(r=l[0],r.type="mi"):r=new ue.MathNode("mi",l):(e.isCharacterBox?(r=l[0],r.type="mo"):r=new ue.MathNode("mo",l),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ge({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:l}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+l.slice(5),body:Dt(i),isCharacterBox:nt.isCharacterBox(i)}},htmlBuilder:A7,mathmlBuilder:M7});var yc=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ge({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:yc(t[0]),body:Dt(t[1]),isCharacterBox:nt.isCharacterBox(t[1])}}});ge({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:l}=e,i=t[1],s=t[0],c;l!=="\\stackrel"?c=yc(i):c="mrel";var f={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:l!=="\\stackrel",body:Dt(i)},d={type:"supsub",mode:s.mode,base:f,sup:l==="\\underset"?null:s,sub:l==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:c,body:[d],isCharacterBox:nt.isCharacterBox(d)}},htmlBuilder:A7,mathmlBuilder:M7});ge({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:yc(t[0]),body:Dt(t[0])}},htmlBuilder(e,t){var r=Pt(e.body,t,!0),l=$.makeSpan([e.mclass],r,t);return l.style.textShadow="0.02em 0.01em 0.04px",l},mathmlBuilder(e,t){var r=zn(e.body,t),l=new ue.MathNode("mstyle",r);return l.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),l}});var hz={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},N5=()=>({type:"styling",body:[],mode:"math",style:"display"}),z5=e=>e.type==="textord"&&e.text==="@",mz=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function pz(e,t,r){var l=hz[e];switch(l){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(l,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:l,mode:"math",family:"rel"},c=r.callFunction("\\Big",[s],[]),f=r.callFunction("\\\\cdright",[t[1]],[]),d={type:"ordgroup",mode:"math",body:[i,c,f]};return r.callFunction("\\\\cdparent",[d],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function vz(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new fe("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var l=[],i=[l],s=0;s<t.length;s++){for(var c=t[s],f=N5(),d=0;d<c.length;d++)if(!z5(c[d]))f.body.push(c[d]);else{l.push(f),d+=1;var h=Uh(c[d]).text,v=new Array(2);if(v[0]={type:"ordgroup",mode:"math",body:[]},v[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(h)>-1))if("<>AV".indexOf(h)>-1)for(var g=0;g<2;g++){for(var b=!0,w=d+1;w<c.length;w++){if(mz(c[w],h)){b=!1,d=w;break}if(z5(c[w]))throw new fe("Missing a "+h+" character to complete a CD arrow.",c[w]);v[g].body.push(c[w])}if(b)throw new fe("Missing a "+h+" character to complete a CD arrow.",c[d])}else throw new fe('Expected one of "<>AV=|." after @',c[d]);var E=pz(h,v,e),A={type:"styling",body:[E],mode:"math",style:"display"};l.push(A),f=N5()}s%2===0?l.push(f):l.shift(),l=[],i.push(l)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ge({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:l}=e;return{type:"cdlabel",mode:r.mode,side:l.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),l=$.wrapFragment(Je(e.label,r,t),t);return l.classes.push("cd-label-"+e.side),l.style.bottom=pe(.8-l.depth),l.height=0,l.depth=0,l},mathmlBuilder(e,t){var r=new ue.MathNode("mrow",[dt(e.label,t)]);return r=new ue.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new ue.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ge({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=$.wrapFragment(Je(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new ue.MathNode("mrow",[dt(e.fragment,t)])}});ge({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,l=Ge(t[0],"ordgroup"),i=l.body,s="",c=0;c<i.length;c++){var f=Ge(i[c],"textord");s+=f.text}var d=parseInt(s),h;if(isNaN(d))throw new fe("\\@char has non-numeric argument "+s);if(d<0||d>=1114111)throw new fe("\\@char with invalid code point "+s);return d<=65535?h=String.fromCharCode(d):(d-=65536,h=String.fromCharCode((d>>10)+55296,(d&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});var E7=(e,t)=>{var r=Pt(e.body,t.withColor(e.color),!1);return $.makeFragment(r)},T7=(e,t)=>{var r=zn(e.body,t.withColor(e.color)),l=new ue.MathNode("mstyle",r);return l.setAttribute("mathcolor",e.color),l};ge({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,l=Ge(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:l,body:Dt(i)}},htmlBuilder:E7,mathmlBuilder:T7});ge({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:l}=e,i=Ge(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var s=r.parseExpression(!0,l);return{type:"color",mode:r.mode,color:i,body:s}},htmlBuilder:E7,mathmlBuilder:T7});ge({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:l}=e,i=l.gullet.future().text==="["?l.parseSizeGroup(!0):null,s=!l.settings.displayMode||!l.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:l.mode,newLine:s,size:i&&Ge(i,"size").value}},htmlBuilder(e,t){var r=$.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=pe(wt(e.size,t)))),r},mathmlBuilder(e,t){var r=new ue.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",pe(wt(e.size,t)))),r}});var K1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},C7=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new fe("Expected a control sequence",e);return t},gz=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},k7=(e,t,r,l)=>{var i=e.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,l)};ge({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var l=t.fetch();if(K1[l.text])return(r==="\\global"||r==="\\\\globallong")&&(l.text=K1[l.text]),Ge(t.parseFunction(),"internal");throw new fe("Invalid token after macro prefix",l)}});ge({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,l=t.gullet.popToken(),i=l.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new fe("Expected a control sequence",l);for(var s=0,c,f=[[]];t.gullet.future().text!=="{";)if(l=t.gullet.popToken(),l.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),f[s].push("{");break}if(l=t.gullet.popToken(),!/^[1-9]$/.test(l.text))throw new fe('Invalid argument number "'+l.text+'"');if(parseInt(l.text)!==s+1)throw new fe('Argument number "'+l.text+'" out of order');s++,f.push([])}else{if(l.text==="EOF")throw new fe("Expected a macro definition");f[s].push(l.text)}var{tokens:d}=t.gullet.consumeArg();return c&&d.unshift(c),(r==="\\edef"||r==="\\xdef")&&(d=t.gullet.expandTokens(d),d.reverse()),t.gullet.macros.set(i,{tokens:d,numArgs:s,delimiters:f},r===K1[r]),{type:"internal",mode:t.mode}}});ge({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,l=C7(t.gullet.popToken());t.gullet.consumeSpaces();var i=gz(t);return k7(t,l,i,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ge({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,l=C7(t.gullet.popToken()),i=t.gullet.popToken(),s=t.gullet.popToken();return k7(t,l,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var uo=function(t,r,l){var i=ht.math[t]&&ht.math[t].replace,s=_h(i||t,r,l);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return s},Fh=function(t,r,l,i){var s=l.havingBaseStyle(r),c=$.makeSpan(i.concat(s.sizingClasses(l)),[t],l),f=s.sizeMultiplier/l.sizeMultiplier;return c.height*=f,c.depth*=f,c.maxFontSize=s.sizeMultiplier,c},N7=function(t,r,l){var i=r.havingBaseStyle(l),s=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=pe(s),t.height-=s,t.depth+=s},yz=function(t,r,l,i,s,c){var f=$.makeSymbol(t,"Main-Regular",s,i),d=Fh(f,r,i,c);return l&&N7(d,i,r),d},bz=function(t,r,l,i){return $.makeSymbol(t,"Size"+r+"-Regular",l,i)},z7=function(t,r,l,i,s,c){var f=bz(t,r,s,i),d=Fh($.makeSpan(["delimsizing","size"+r],[f],i),Le.TEXT,i,c);return l&&N7(d,i,Le.TEXT),d},g1=function(t,r,l){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=$.makeSpan(["delimsizinginner",i],[$.makeSpan([],[$.makeSymbol(t,r,l)])]);return{type:"elem",elem:s}},y1=function(t,r,l){var i=Cr["Size4-Regular"][t.charCodeAt(0)]?Cr["Size4-Regular"][t.charCodeAt(0)][4]:Cr["Size1-Regular"][t.charCodeAt(0)][4],s=new ol("inner",MN(t,Math.round(1e3*r))),c=new pa([s],{width:pe(i),height:pe(r),style:"width:"+pe(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),f=$.makeSvgSpan([],[c],l);return f.height=r,f.style.height=pe(r),f.style.width=pe(i),{type:"elem",elem:f}},Q1=.008,Su={type:"kern",size:-1*Q1},xz=["|","\\lvert","\\rvert","\\vert"],wz=["\\|","\\lVert","\\rVert","\\Vert"],D7=function(t,r,l,i,s,c){var f,d,h,v,g="",b=0;f=h=v=t,d=null;var w="Size1-Regular";t==="\\uparrow"?h=v="⏐":t==="\\Uparrow"?h=v="‖":t==="\\downarrow"?f=h="⏐":t==="\\Downarrow"?f=h="‖":t==="\\updownarrow"?(f="\\uparrow",h="⏐",v="\\downarrow"):t==="\\Updownarrow"?(f="\\Uparrow",h="‖",v="\\Downarrow"):xz.includes(t)?(h="∣",g="vert",b=333):wz.includes(t)?(h="∥",g="doublevert",b=556):t==="["||t==="\\lbrack"?(f="⎡",h="⎢",v="⎣",w="Size4-Regular",g="lbrack",b=667):t==="]"||t==="\\rbrack"?(f="⎤",h="⎥",v="⎦",w="Size4-Regular",g="rbrack",b=667):t==="\\lfloor"||t==="⌊"?(h=f="⎢",v="⎣",w="Size4-Regular",g="lfloor",b=667):t==="\\lceil"||t==="⌈"?(f="⎡",h=v="⎢",w="Size4-Regular",g="lceil",b=667):t==="\\rfloor"||t==="⌋"?(h=f="⎥",v="⎦",w="Size4-Regular",g="rfloor",b=667):t==="\\rceil"||t==="⌉"?(f="⎤",h=v="⎥",w="Size4-Regular",g="rceil",b=667):t==="("||t==="\\lparen"?(f="⎛",h="⎜",v="⎝",w="Size4-Regular",g="lparen",b=875):t===")"||t==="\\rparen"?(f="⎞",h="⎟",v="⎠",w="Size4-Regular",g="rparen",b=875):t==="\\{"||t==="\\lbrace"?(f="⎧",d="⎨",v="⎩",h="⎪",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(f="⎫",d="⎬",v="⎭",h="⎪",w="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(f="⎧",v="⎩",h="⎪",w="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(f="⎫",v="⎭",h="⎪",w="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(f="⎧",v="⎭",h="⎪",w="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(f="⎫",v="⎩",h="⎪",w="Size4-Regular");var E=uo(f,w,s),A=E.height+E.depth,T=uo(h,w,s),N=T.height+T.depth,O=uo(v,w,s),R=O.height+O.depth,H=0,F=1;if(d!==null){var I=uo(d,w,s);H=I.height+I.depth,F=2}var G=A+R+H,V=Math.max(0,Math.ceil((r-G)/(F*N))),te=G+V*F*N,de=i.fontMetrics().axisHeight;l&&(de*=i.sizeMultiplier);var ce=te/2-de,he=[];if(g.length>0){var De=te-A-R,we=Math.round(te*1e3),Ce=EN(g,Math.round(De*1e3)),Y=new ol(g,Ce),ne=(b/1e3).toFixed(3)+"em",Q=(we/1e3).toFixed(3)+"em",ie=new pa([Y],{width:ne,height:Q,viewBox:"0 0 "+b+" "+we}),be=$.makeSvgSpan([],[ie],i);be.height=we/1e3,be.style.width=ne,be.style.height=Q,he.push({type:"elem",elem:be})}else{if(he.push(g1(v,w,s)),he.push(Su),d===null){var j=te-A-R+2*Q1;he.push(y1(h,j,i))}else{var W=(te-A-R-H)/2+2*Q1;he.push(y1(h,W,i)),he.push(Su),he.push(g1(d,w,s)),he.push(Su),he.push(y1(h,W,i))}he.push(Su),he.push(g1(f,w,s))}var le=i.havingBaseStyle(Le.TEXT),se=$.makeVList({positionType:"bottom",positionData:ce,children:he},le);return Fh($.makeSpan(["delimsizing","mult"],[se],le),Le.TEXT,i,c)},b1=80,x1=.08,w1=function(t,r,l,i,s){var c=AN(t,i,l),f=new ol(t,c),d=new pa([f],{width:"400em",height:pe(r),viewBox:"0 0 400000 "+l,preserveAspectRatio:"xMinYMin slice"});return $.makeSvgSpan(["hide-tail"],[d],s)},Sz=function(t,r){var l=r.havingBaseSizing(),i=_7("\\surd",t*l.sizeMultiplier,L7,l),s=l.sizeMultiplier,c=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),f,d=0,h=0,v=0,g;return i.type==="small"?(v=1e3+1e3*c+b1,t<1?s=1:t<1.4&&(s=.7),d=(1+c+x1)/s,h=(1+c)/s,f=w1("sqrtMain",d,v,c,r),f.style.minWidth="0.853em",g=.833/s):i.type==="large"?(v=(1e3+b1)*fo[i.size],h=(fo[i.size]+c)/s,d=(fo[i.size]+c+x1)/s,f=w1("sqrtSize"+i.size,d,v,c,r),f.style.minWidth="1.02em",g=1/s):(d=t+c+x1,h=t+c,v=Math.floor(1e3*t+c)+b1,f=w1("sqrtTall",d,v,c,r),f.style.minWidth="0.742em",g=1.056),f.height=h,f.style.height=pe(d),{span:f,advanceWidth:g,ruleWidth:(r.fontMetrics().sqrtRuleThickness+c)*s}},O7=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Az=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],R7=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],fo=[0,1.2,1.8,2.4,3],Mz=function(t,r,l,i,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),O7.includes(t)||R7.includes(t))return z7(t,r,!1,l,i,s);if(Az.includes(t))return D7(t,fo[r],!1,l,i,s);throw new fe("Illegal delimiter: '"+t+"'")},Ez=[{type:"small",style:Le.SCRIPTSCRIPT},{type:"small",style:Le.SCRIPT},{type:"small",style:Le.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Tz=[{type:"small",style:Le.SCRIPTSCRIPT},{type:"small",style:Le.SCRIPT},{type:"small",style:Le.TEXT},{type:"stack"}],L7=[{type:"small",style:Le.SCRIPTSCRIPT},{type:"small",style:Le.SCRIPT},{type:"small",style:Le.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Cz=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.")},_7=function(t,r,l,i){for(var s=Math.min(2,3-i.style.size),c=s;c<l.length&&l[c].type!=="stack";c++){var f=uo(t,Cz(l[c]),"math"),d=f.height+f.depth;if(l[c].type==="small"){var h=i.havingBaseStyle(l[c].style);d*=h.sizeMultiplier}if(d>r)return l[c]}return l[l.length-1]},j7=function(t,r,l,i,s,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var f;R7.includes(t)?f=Ez:O7.includes(t)?f=L7:f=Tz;var d=_7(t,r,f,i);return d.type==="small"?yz(t,d.style,l,i,s,c):d.type==="large"?z7(t,d.size,l,i,s,c):D7(t,r,l,i,s,c)},kz=function(t,r,l,i,s,c){var f=i.fontMetrics().axisHeight*i.sizeMultiplier,d=901,h=5/i.fontMetrics().ptPerEm,v=Math.max(r-f,l+f),g=Math.max(v/500*d,2*v-h);return j7(t,g,!0,i,s,c)},ca={sqrtImage:Sz,sizedDelim:Mz,sizeToMaxHeight:fo,customSizedDelim:j7,leftRightDelim:kz},D5={"\\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}},Nz=["(","\\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 bc(e,t){var r=gc(e);if(r&&Nz.includes(r.text))return r;throw r?new fe("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new fe("Invalid delimiter type '"+e.type+"'",e)}ge({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=bc(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:D5[e.funcName].size,mclass:D5[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?$.makeSpan([e.mclass]):ca.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(lr(e.delim,e.mode));var r=new ue.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var l=pe(ca.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",l),r.setAttribute("maxsize",l),r}});function O5(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ge({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new fe("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:bc(t[0],e).text,color:r}}});ge({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=bc(t[0],e),l=e.parser;++l.leftrightDepth;var i=l.parseExpression(!1);--l.leftrightDepth,l.expect("\\right",!1);var s=Ge(l.parseFunction(),"leftright-right");return{type:"leftright",mode:l.mode,body:i,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{O5(e);for(var r=Pt(e.body,t,!0,["mopen","mclose"]),l=0,i=0,s=!1,c=0;c<r.length;c++)r[c].isMiddle?s=!0:(l=Math.max(r[c].height,l),i=Math.max(r[c].depth,i));l*=t.sizeMultiplier,i*=t.sizeMultiplier;var f;if(e.left==="."?f=wo(t,["mopen"]):f=ca.leftRightDelim(e.left,l,i,t,e.mode,["mopen"]),r.unshift(f),s)for(var d=1;d<r.length;d++){var h=r[d],v=h.isMiddle;v&&(r[d]=ca.leftRightDelim(v.delim,l,i,v.options,e.mode,[]))}var g;if(e.right===".")g=wo(t,["mclose"]);else{var b=e.rightColor?t.withColor(e.rightColor):t;g=ca.leftRightDelim(e.right,l,i,b,e.mode,["mclose"])}return r.push(g),$.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{O5(e);var r=zn(e.body,t);if(e.left!=="."){var l=new ue.MathNode("mo",[lr(e.left,e.mode)]);l.setAttribute("fence","true"),r.unshift(l)}if(e.right!=="."){var i=new ue.MathNode("mo",[lr(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return Hh(r)}});ge({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=bc(t[0],e);if(!e.parser.leftrightDepth)throw new fe("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=wo(t,[]);else{r=ca.sizedDelim(e.delim,1,t,e.mode,[]);var l={delim:e.delim,options:t};r.isMiddle=l}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?lr("|","text"):lr(e.delim,e.mode),l=new ue.MathNode("mo",[r]);return l.setAttribute("fence","true"),l.setAttribute("lspace","0.05em"),l.setAttribute("rspace","0.05em"),l}});var Yh=(e,t)=>{var r=$.wrapFragment(Je(e.body,t),t),l=e.label.slice(1),i=t.sizeMultiplier,s,c=0,f=nt.isCharacterBox(e.body);if(l==="sout")s=$.makeSpan(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/i,c=-.5*t.fontMetrics().xHeight;else if(l==="phase"){var d=wt({number:.6,unit:"pt"},t),h=wt({number:.35,unit:"ex"},t),v=t.havingBaseSizing();i=i/v.sizeMultiplier;var g=r.height+r.depth+d+h;r.style.paddingLeft=pe(g/2+d);var b=Math.floor(1e3*g*i),w=wN(b),E=new pa([new ol("phase",w)],{width:"400em",height:pe(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});s=$.makeSvgSpan(["hide-tail"],[E],t),s.style.height=pe(g),c=r.depth+d+h}else{/cancel/.test(l)?f||r.classes.push("cancel-pad"):l==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var A=0,T=0,N=0;/box/.test(l)?(N=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),A=t.fontMetrics().fboxsep+(l==="colorbox"?0:N),T=A):l==="angl"?(N=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),A=4*N,T=Math.max(0,.25-r.depth)):(A=f?.2:0,T=A),s=ga.encloseSpan(r,l,A,T,t),/fbox|boxed|fcolorbox/.test(l)?(s.style.borderStyle="solid",s.style.borderWidth=pe(N)):l==="angl"&&N!==.049&&(s.style.borderTopWidth=pe(N),s.style.borderRightWidth=pe(N)),c=r.depth+T,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var O;if(e.backgroundColor)O=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:c},{type:"elem",elem:r,shift:0}]},t);else{var R=/cancel|phase/.test(l)?["svg-align"]:[];O=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:c,wrapperClasses:R}]},t)}return/cancel/.test(l)&&(O.height=r.height,O.depth=r.depth),/cancel/.test(l)&&!f?$.makeSpan(["mord","cancel-lap"],[O],t):$.makeSpan(["mord"],[O],t)},Ph=(e,t)=>{var r=0,l=new ue.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[dt(e.body,t)]);switch(e.label){case"\\cancel":l.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":l.setAttribute("notation","downdiagonalstrike");break;case"\\phase":l.setAttribute("notation","phasorangle");break;case"\\sout":l.setAttribute("notation","horizontalstrike");break;case"\\fbox":l.setAttribute("notation","box");break;case"\\angl":l.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,l.setAttribute("width","+"+2*r+"pt"),l.setAttribute("height","+"+2*r+"pt"),l.setAttribute("lspace",r+"pt"),l.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);l.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":l.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&l.setAttribute("mathbackground",e.backgroundColor),l};ge({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:l,funcName:i}=e,s=Ge(t[0],"color-token").color,c=t[1];return{type:"enclose",mode:l.mode,label:i,backgroundColor:s,body:c}},htmlBuilder:Yh,mathmlBuilder:Ph});ge({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:l,funcName:i}=e,s=Ge(t[0],"color-token").color,c=Ge(t[1],"color-token").color,f=t[2];return{type:"enclose",mode:l.mode,label:i,backgroundColor:c,borderColor:s,body:f}},htmlBuilder:Yh,mathmlBuilder:Ph});ge({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});ge({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:l}=e,i=t[0];return{type:"enclose",mode:r.mode,label:l,body:i}},htmlBuilder:Yh,mathmlBuilder:Ph});ge({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var B7={};function Lr(e){for(var{type:t,names:r,props:l,handler:i,htmlBuilder:s,mathmlBuilder:c}=e,f={type:t,numArgs:l.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},d=0;d<r.length;++d)B7[r[d]]=f;s&&(Xu[t]=s),c&&($u[t]=c)}var H7={};function D(e,t){H7[e]=t}function R5(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var xc=e=>{var t=e.parser.settings;if(!t.displayMode)throw new fe("{"+e.envName+"} can be used only in display mode.")};function Vh(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function fl(e,t,r){var{hskipBeforeAndAfter:l,addJot:i,cols:s,arraystretch:c,colSeparationType:f,autoTag:d,singleRow:h,emptySingleRow:v,maxNumCols:g,leqno:b}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)c=1;else if(c=parseFloat(w),!c||c<0)throw new fe("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var E=[],A=[E],T=[],N=[],O=d!=null?[]:void 0;function R(){d&&e.gullet.macros.set("\\@eqnsw","1",!0)}function H(){O&&(e.gullet.macros.get("\\df@tag")?(O.push(e.subparse([new Gn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):O.push(!!d&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),N.push(R5(e));;){var F=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),F={type:"ordgroup",mode:e.mode,body:F},r&&(F={type:"styling",mode:e.mode,style:r,body:[F]}),E.push(F);var I=e.fetch().text;if(I==="&"){if(g&&E.length===g){if(h||f)throw new fe("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(I==="\\end"){H(),E.length===1&&F.type==="styling"&&F.body[0].body.length===0&&(A.length>1||!v)&&A.pop(),N.length<A.length+1&&N.push([]);break}else if(I==="\\\\"){e.consume();var G=void 0;e.gullet.future().text!==" "&&(G=e.parseSizeGroup(!0)),T.push(G?G.value:null),H(),N.push(R5(e)),E=[],A.push(E),R()}else throw new fe("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:c,body:A,cols:s,rowGaps:T,hskipBeforeAndAfter:l,hLinesBeforeRow:N,colSeparationType:f,tags:O,leqno:b}}function Ih(e){return e.slice(0,1)==="d"?"display":"text"}var _r=function(t,r){var l,i,s=t.body.length,c=t.hLinesBeforeRow,f=0,d=new Array(s),h=[],v=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),g=1/r.fontMetrics().ptPerEm,b=5*g;if(t.colSeparationType&&t.colSeparationType==="small"){var w=r.havingStyle(Le.SCRIPT).sizeMultiplier;b=.2778*(w/r.sizeMultiplier)}var E=t.colSeparationType==="CD"?wt({number:3,unit:"ex"},r):12*g,A=3*g,T=t.arraystretch*E,N=.7*T,O=.3*T,R=0;function H(Kt){for(var Mt=0;Mt<Kt.length;++Mt)Mt>0&&(R+=.25),h.push({pos:R,isDashed:Kt[Mt]})}for(H(c[0]),l=0;l<t.body.length;++l){var F=t.body[l],I=N,G=O;f<F.length&&(f=F.length);var V=new Array(F.length);for(i=0;i<F.length;++i){var te=Je(F[i],r);G<te.depth&&(G=te.depth),I<te.height&&(I=te.height),V[i]=te}var de=t.rowGaps[l],ce=0;de&&(ce=wt(de,r),ce>0&&(ce+=O,G<ce&&(G=ce),ce=0)),t.addJot&&(G+=A),V.height=I,V.depth=G,R+=I,V.pos=R,R+=G+ce,d[l]=V,H(c[l+1])}var he=R/2+r.fontMetrics().axisHeight,De=t.cols||[],we=[],Ce,Y,ne=[];if(t.tags&&t.tags.some(Kt=>Kt))for(l=0;l<s;++l){var Q=d[l],ie=Q.pos-he,be=t.tags[l],j=void 0;be===!0?j=$.makeSpan(["eqn-num"],[],r):be===!1?j=$.makeSpan([],[],r):j=$.makeSpan([],Pt(be,r,!0),r),j.depth=Q.depth,j.height=Q.height,ne.push({type:"elem",elem:j,shift:ie})}for(i=0,Y=0;i<f||Y<De.length;++i,++Y){for(var W=De[Y]||{},le=!0;W.type==="separator";){if(le||(Ce=$.makeSpan(["arraycolsep"],[]),Ce.style.width=pe(r.fontMetrics().doubleRuleSep),we.push(Ce)),W.separator==="|"||W.separator===":"){var se=W.separator==="|"?"solid":"dashed",Se=$.makeSpan(["vertical-separator"],[],r);Se.style.height=pe(R),Se.style.borderRightWidth=pe(v),Se.style.borderRightStyle=se,Se.style.margin="0 "+pe(-v/2);var ke=R-he;ke&&(Se.style.verticalAlign=pe(-ke)),we.push(Se)}else throw new fe("Invalid separator type: "+W.separator);Y++,W=De[Y]||{},le=!1}if(!(i>=f)){var ve=void 0;(i>0||t.hskipBeforeAndAfter)&&(ve=nt.deflt(W.pregap,b),ve!==0&&(Ce=$.makeSpan(["arraycolsep"],[]),Ce.style.width=pe(ve),we.push(Ce)));var Be=[];for(l=0;l<s;++l){var Oe=d[l],Ze=Oe[i];if(Ze){var Ye=Oe.pos-he;Ze.depth=Oe.depth,Ze.height=Oe.height,Be.push({type:"elem",elem:Ze,shift:Ye})}}Be=$.makeVList({positionType:"individualShift",children:Be},r),Be=$.makeSpan(["col-align-"+(W.align||"c")],[Be]),we.push(Be),(i<f-1||t.hskipBeforeAndAfter)&&(ve=nt.deflt(W.postgap,b),ve!==0&&(Ce=$.makeSpan(["arraycolsep"],[]),Ce.style.width=pe(ve),we.push(Ce)))}}if(d=$.makeSpan(["mtable"],we),h.length>0){for(var ye=$.makeLineSpan("hline",r,v),Pe=$.makeLineSpan("hdashline",r,v),Ke=[{type:"elem",elem:d,shift:0}];h.length>0;){var gt=h.pop(),qt=gt.pos-he;gt.isDashed?Ke.push({type:"elem",elem:Pe,shift:qt}):Ke.push({type:"elem",elem:ye,shift:qt})}d=$.makeVList({positionType:"individualShift",children:Ke},r)}if(ne.length===0)return $.makeSpan(["mord"],[d],r);var $t=$.makeVList({positionType:"individualShift",children:ne},r);return $t=$.makeSpan(["tag"],[$t],r),$.makeFragment([d,$t])},zz={c:"center ",l:"left ",r:"right "},jr=function(t,r){for(var l=[],i=new ue.MathNode("mtd",[],["mtr-glue"]),s=new ue.MathNode("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var f=t.body[c],d=[],h=0;h<f.length;h++)d.push(new ue.MathNode("mtd",[dt(f[h],r)]));t.tags&&t.tags[c]&&(d.unshift(i),d.push(i),t.leqno?d.unshift(s):d.push(s)),l.push(new ue.MathNode("mtr",d))}var v=new ue.MathNode("mtable",l),g=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);v.setAttribute("rowspacing",pe(g));var b="",w="";if(t.cols&&t.cols.length>0){var E=t.cols,A="",T=!1,N=0,O=E.length;E[0].type==="separator"&&(b+="top ",N=1),E[E.length-1].type==="separator"&&(b+="bottom ",O-=1);for(var R=N;R<O;R++)E[R].type==="align"?(w+=zz[E[R].align],T&&(A+="none "),T=!0):E[R].type==="separator"&&T&&(A+=E[R].separator==="|"?"solid ":"dashed ",T=!1);v.setAttribute("columnalign",w.trim()),/[sd]/.test(A)&&v.setAttribute("columnlines",A.trim())}if(t.colSeparationType==="align"){for(var H=t.cols||[],F="",I=1;I<H.length;I++)F+=I%2?"0em ":"1em ";v.setAttribute("columnspacing",F.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?v.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?v.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?v.setAttribute("columnspacing","0.5em"):v.setAttribute("columnspacing","1em");var G="",V=t.hLinesBeforeRow;b+=V[0].length>0?"left ":"",b+=V[V.length-1].length>0?"right ":"";for(var te=1;te<V.length-1;te++)G+=V[te].length===0?"none ":V[te][0]?"dashed ":"solid ";return/[sd]/.test(G)&&v.setAttribute("rowlines",G.trim()),b!==""&&(v=new ue.MathNode("menclose",[v]),v.setAttribute("notation",b.trim())),t.arraystretch&&t.arraystretch<1&&(v=new ue.MathNode("mstyle",[v]),v.setAttribute("scriptlevel","1")),v},q7=function(t,r){t.envName.indexOf("ed")===-1&&xc(t);var l=[],i=t.envName.indexOf("at")>-1?"alignat":"align",s=t.envName==="split",c=fl(t.parser,{cols:l,addJot:!0,autoTag:s?void 0:Vh(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),f,d=0,h={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var v="",g=0;g<r[0].body.length;g++){var b=Ge(r[0].body[g],"textord");v+=b.text}f=Number(v),d=f*2}var w=!d;c.body.forEach(function(N){for(var O=1;O<N.length;O+=2){var R=Ge(N[O],"styling"),H=Ge(R.body[0],"ordgroup");H.body.unshift(h)}if(w)d<N.length&&(d=N.length);else{var F=N.length/2;if(f<F)throw new fe("Too many math in a row: "+("expected "+f+", but got "+F),N[0])}});for(var E=0;E<d;++E){var A="r",T=0;E%2===1?A="l":E>0&&w&&(T=1),l[E]={type:"align",align:A,pregap:T,postgap:0}}return c.colSeparationType=w?"align":"alignat",c};Lr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=gc(t[0]),l=r?[t[0]]:Ge(t[0],"ordgroup").body,i=l.map(function(c){var f=Uh(c),d=f.text;if("lcr".indexOf(d)!==-1)return{type:"align",align:d};if(d==="|")return{type:"separator",separator:"|"};if(d===":")return{type:"separator",separator:":"};throw new fe("Unknown column alignment: "+d,c)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return fl(e.parser,s,Ih(e.envName))},htmlBuilder:_r,mathmlBuilder:jr});Lr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",l={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,"lcr".indexOf(r)===-1)throw new fe("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),l.cols=[{type:"align",align:r}]}}var s=fl(e.parser,l,Ih(e.envName)),c=Math.max(0,...s.body.map(f=>f.length));return s.cols=new Array(c).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:_r,mathmlBuilder:jr});Lr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=fl(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:_r,mathmlBuilder:jr});Lr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=gc(t[0]),l=r?[t[0]]:Ge(t[0],"ordgroup").body,i=l.map(function(c){var f=Uh(c),d=f.text;if("lc".indexOf(d)!==-1)return{type:"align",align:d};throw new fe("Unknown column alignment: "+d,c)});if(i.length>1)throw new fe("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=fl(e.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new fe("{subarray} can contain only one column");return s},htmlBuilder:_r,mathmlBuilder:jr});Lr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=fl(e.parser,t,Ih(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:_r,mathmlBuilder:jr});Lr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:q7,htmlBuilder:_r,mathmlBuilder:jr});Lr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&xc(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Vh(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return fl(e.parser,t,"display")},htmlBuilder:_r,mathmlBuilder:jr});Lr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:q7,htmlBuilder:_r,mathmlBuilder:jr});Lr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){xc(e);var t={autoTag:Vh(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return fl(e.parser,t,"display")},htmlBuilder:_r,mathmlBuilder:jr});Lr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return xc(e),vz(e.parser)},htmlBuilder:_r,mathmlBuilder:jr});D("\\nonumber","\\gdef\\@eqnsw{0}");D("\\notag","\\nonumber");ge({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new fe(e.funcName+" valid only within array environment")}});var L5=B7;ge({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:l}=e,i=t[0];if(i.type!=="ordgroup")throw new fe("Invalid environment name",i);for(var s="",c=0;c<i.body.length;++c)s+=Ge(i.body[c],"textord").text;if(l==="\\begin"){if(!L5.hasOwnProperty(s))throw new fe("No such environment: "+s,i);var f=L5[s],{args:d,optArgs:h}=r.parseArguments("\\begin{"+s+"}",f),v={mode:r.mode,envName:s,parser:r},g=f.handler(v,d,h);r.expect("\\end",!1);var b=r.nextToken,w=Ge(r.parseFunction(),"environment");if(w.name!==s)throw new fe("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",b);return g}return{type:"environment",mode:r.mode,name:s,nameGroup:i}}});var U7=(e,t)=>{var r=e.font,l=t.withFont(r);return Je(e.body,l)},G7=(e,t)=>{var r=e.font,l=t.withFont(r);return dt(e.body,l)},_5={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ge({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:l}=e,i=Ku(t[0]),s=l;return s in _5&&(s=_5[s]),{type:"font",mode:r.mode,font:s.slice(1),body:i}},htmlBuilder:U7,mathmlBuilder:G7});ge({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,l=t[0],i=nt.isCharacterBox(l);return{type:"mclass",mode:r.mode,mclass:yc(l),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:l}],isCharacterBox:i}}});ge({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:l,breakOnTokenText:i}=e,{mode:s}=r,c=r.parseExpression(!0,i),f="math"+l.slice(1);return{type:"font",mode:s,font:f,body:{type:"ordgroup",mode:r.mode,body:c}}},htmlBuilder:U7,mathmlBuilder:G7});var F7=(e,t)=>{var r=t;return e==="display"?r=r.id>=Le.SCRIPT.id?r.text():Le.DISPLAY:e==="text"&&r.size===Le.DISPLAY.size?r=Le.TEXT:e==="script"?r=Le.SCRIPT:e==="scriptscript"&&(r=Le.SCRIPTSCRIPT),r},Xh=(e,t)=>{var r=F7(e.size,t.style),l=r.fracNum(),i=r.fracDen(),s;s=t.havingStyle(l);var c=Je(e.numer,s,t);if(e.continued){var f=8.5/t.fontMetrics().ptPerEm,d=3.5/t.fontMetrics().ptPerEm;c.height=c.height<f?f:c.height,c.depth=c.depth<d?d:c.depth}s=t.havingStyle(i);var h=Je(e.denom,s,t),v,g,b;e.hasBarLine?(e.barSize?(g=wt(e.barSize,t),v=$.makeLineSpan("frac-line",t,g)):v=$.makeLineSpan("frac-line",t),g=v.height,b=v.height):(v=null,g=0,b=t.fontMetrics().defaultRuleThickness);var w,E,A;r.size===Le.DISPLAY.size||e.size==="display"?(w=t.fontMetrics().num1,g>0?E=3*b:E=7*b,A=t.fontMetrics().denom1):(g>0?(w=t.fontMetrics().num2,E=b):(w=t.fontMetrics().num3,E=3*b),A=t.fontMetrics().denom2);var T;if(v){var O=t.fontMetrics().axisHeight;w-c.depth-(O+.5*g)<E&&(w+=E-(w-c.depth-(O+.5*g))),O-.5*g-(h.height-A)<E&&(A+=E-(O-.5*g-(h.height-A)));var R=-(O-.5*g);T=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:A},{type:"elem",elem:v,shift:R},{type:"elem",elem:c,shift:-w}]},t)}else{var N=w-c.depth-(h.height-A);N<E&&(w+=.5*(E-N),A+=.5*(E-N)),T=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:A},{type:"elem",elem:c,shift:-w}]},t)}s=t.havingStyle(r),T.height*=s.sizeMultiplier/t.sizeMultiplier,T.depth*=s.sizeMultiplier/t.sizeMultiplier;var H;r.size===Le.DISPLAY.size?H=t.fontMetrics().delim1:r.size===Le.SCRIPTSCRIPT.size?H=t.havingStyle(Le.SCRIPT).fontMetrics().delim2:H=t.fontMetrics().delim2;var F,I;return e.leftDelim==null?F=wo(t,["mopen"]):F=ca.customSizedDelim(e.leftDelim,H,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?I=$.makeSpan([]):e.rightDelim==null?I=wo(t,["mclose"]):I=ca.customSizedDelim(e.rightDelim,H,!0,t.havingStyle(r),e.mode,["mclose"]),$.makeSpan(["mord"].concat(s.sizingClasses(t)),[F,$.makeSpan(["mfrac"],[T]),I],t)},$h=(e,t)=>{var r=new ue.MathNode("mfrac",[dt(e.numer,t),dt(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var l=wt(e.barSize,t);r.setAttribute("linethickness",pe(l))}var i=F7(e.size,t.style);if(i.size!==t.style.size){r=new ue.MathNode("mstyle",[r]);var s=i.size===Le.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",s),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var c=[];if(e.leftDelim!=null){var f=new ue.MathNode("mo",[new ue.TextNode(e.leftDelim.replace("\\",""))]);f.setAttribute("fence","true"),c.push(f)}if(c.push(r),e.rightDelim!=null){var d=new ue.MathNode("mo",[new ue.TextNode(e.rightDelim.replace("\\",""))]);d.setAttribute("fence","true"),c.push(d)}return Hh(c)}return r};ge({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:l}=e,i=t[0],s=t[1],c,f=null,d=null,h="auto";switch(l){case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,f="(",d=")";break;case"\\\\bracefrac":c=!1,f="\\{",d="\\}";break;case"\\\\brackfrac":c=!1,f="[",d="]";break;default:throw new Error("Unrecognized genfrac command")}switch(l){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:s,hasBarLine:c,leftDelim:f,rightDelim:d,size:h,barSize:null}},htmlBuilder:Xh,mathmlBuilder:$h});ge({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:l}=e,i=t[0],s=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:i,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ge({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:l}=e,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:l}}});var j5=["display","text","script","scriptscript"],B5=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ge({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,l=t[4],i=t[5],s=Ku(t[0]),c=s.type==="atom"&&s.family==="open"?B5(s.text):null,f=Ku(t[1]),d=f.type==="atom"&&f.family==="close"?B5(f.text):null,h=Ge(t[2],"size"),v,g=null;h.isBlank?v=!0:(g=h.value,v=g.number>0);var b="auto",w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var E=Ge(w.body[0],"textord");b=j5[Number(E.text)]}}else w=Ge(w,"textord"),b=j5[Number(w.text)];return{type:"genfrac",mode:r.mode,numer:l,denom:i,continued:!1,hasBarLine:v,barSize:g,leftDelim:c,rightDelim:d,size:b}},htmlBuilder:Xh,mathmlBuilder:$h});ge({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:l,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ge(t[0],"size").value,token:i}}});ge({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:l}=e,i=t[0],s=iN(Ge(t[1],"infix").size),c=t[2],f=s.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:c,continued:!1,hasBarLine:f,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Xh,mathmlBuilder:$h});var Y7=(e,t)=>{var r=t.style,l,i;e.type==="supsub"?(l=e.sup?Je(e.sup,t.havingStyle(r.sup()),t):Je(e.sub,t.havingStyle(r.sub()),t),i=Ge(e.base,"horizBrace")):i=Ge(e,"horizBrace");var s=Je(i.base,t.havingBaseStyle(Le.DISPLAY)),c=ga.svgSpan(i,t),f;if(i.isOver?(f=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c}]},t),f.children[0].children[0].children[1].classes.push("svg-align")):(f=$.makeVList({positionType:"bottom",positionData:s.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:s}]},t),f.children[0].children[0].children[0].classes.push("svg-align")),l){var d=$.makeSpan(["mord",i.isOver?"mover":"munder"],[f],t);i.isOver?f=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:.2},{type:"elem",elem:l}]},t):f=$.makeVList({positionType:"bottom",positionData:d.depth+.2+l.height+l.depth,children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:d}]},t)}return $.makeSpan(["mord",i.isOver?"mover":"munder"],[f],t)},Dz=(e,t)=>{var r=ga.mathMLnode(e.label);return new ue.MathNode(e.isOver?"mover":"munder",[dt(e.base,t),r])};ge({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:l}=e;return{type:"horizBrace",mode:r.mode,label:l,isOver:/^\\over/.test(l),base:t[0]}},htmlBuilder:Y7,mathmlBuilder:Dz});ge({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,l=t[1],i=Ge(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:Dt(l)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Pt(e.body,t,!1);return $.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=sl(e.body,t);return r instanceof qn||(r=new qn("mrow",[r])),r.setAttribute("href",e.href),r}});ge({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,l=Ge(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:l}))return r.formatUnsupportedCmd("\\url");for(var i=[],s=0;s<l.length;s++){var c=l[s];c==="~"&&(c="\\textasciitilde"),i.push({type:"textord",mode:"text",text:c})}var f={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:l,body:Dt(f)}}});ge({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Dt(t[0])}},htmlBuilder(e,t){var r=Pt(e.body,t,!1);return $.makeFragment(r)},mathmlBuilder(e,t){return new ue.MathNode("mrow",zn(e.body,t))}});ge({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:l,token:i}=e,s=Ge(t[0],"raw").string,c=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var f,d={};switch(l){case"\\htmlClass":d.class=s,f={command:"\\htmlClass",class:s};break;case"\\htmlId":d.id=s,f={command:"\\htmlId",id:s};break;case"\\htmlStyle":d.style=s,f={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var h=s.split(","),v=0;v<h.length;v++){var g=h[v],b=g.indexOf("=");if(b<0)throw new fe("\\htmlData key/value '"+g+"' missing equals sign");var w=g.slice(0,b),E=g.slice(b+1);d["data-"+w.trim()]=E}f={command:"\\htmlData",attributes:d};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(f)?{type:"html",mode:r.mode,attributes:d,body:Dt(c)}:r.formatUnsupportedCmd(l)},htmlBuilder:(e,t)=>{var r=Pt(e.body,t,!1),l=["enclosing"];e.attributes.class&&l.push(...e.attributes.class.trim().split(/\s+/));var i=$.makeSpan(l,r,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&i.setAttribute(s,e.attributes[s]);return i},mathmlBuilder:(e,t)=>sl(e.body,t)});ge({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Dt(t[0]),mathml:Dt(t[1])}},htmlBuilder:(e,t)=>{var r=Pt(e.html,t,!1);return $.makeFragment(r)},mathmlBuilder:(e,t)=>sl(e.mathml,t)});var S1=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new fe("Invalid size: '"+t+"' in \\includegraphics");var l={number:+(r[1]+r[2]),unit:r[3]};if(!s7(l))throw new fe("Invalid unit: '"+l.unit+"' in \\includegraphics.");return l};ge({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:l}=e,i={number:0,unit:"em"},s={number:.9,unit:"em"},c={number:0,unit:"em"},f="";if(r[0])for(var d=Ge(r[0],"raw").string,h=d.split(","),v=0;v<h.length;v++){var g=h[v].split("=");if(g.length===2){var b=g[1].trim();switch(g[0].trim()){case"alt":f=b;break;case"width":i=S1(b);break;case"height":s=S1(b);break;case"totalheight":c=S1(b);break;default:throw new fe("Invalid key: '"+g[0]+"' in \\includegraphics.")}}}var w=Ge(t[0],"url").url;return f===""&&(f=w,f=f.replace(/^.*[\\/]/,""),f=f.substring(0,f.lastIndexOf("."))),l.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:l.mode,alt:f,width:i,height:s,totalheight:c,src:w}:l.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=wt(e.height,t),l=0;e.totalheight.number>0&&(l=wt(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=wt(e.width,t));var s={height:pe(r+l)};i>0&&(s.width=pe(i)),l>0&&(s.verticalAlign=pe(-l));var c=new DN(e.src,e.alt,s);return c.height=r,c.depth=l,c},mathmlBuilder:(e,t)=>{var r=new ue.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var l=wt(e.height,t),i=0;if(e.totalheight.number>0&&(i=wt(e.totalheight,t)-l,r.setAttribute("valign",pe(-i))),r.setAttribute("height",pe(l+i)),e.width.number>0){var s=wt(e.width,t);r.setAttribute("width",pe(s))}return r.setAttribute("src",e.src),r}});ge({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:l}=e,i=Ge(t[0],"size");if(r.settings.strict){var s=l[1]==="m",c=i.value.unit==="mu";s?(c||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+l+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+l+" works only in math mode")):c&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+l+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return $.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=wt(e.dimension,t);return new ue.SpaceNode(r)}});ge({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:l}=e,i=t[0];return{type:"lap",mode:r.mode,alignment:l.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=$.makeSpan([],[Je(e.body,t)]),r=$.makeSpan(["inner"],[r],t)):r=$.makeSpan(["inner"],[Je(e.body,t)]);var l=$.makeSpan(["fix"],[]),i=$.makeSpan([e.alignment],[r,l],t),s=$.makeSpan(["strut"]);return s.style.height=pe(i.height+i.depth),i.depth&&(s.style.verticalAlign=pe(-i.depth)),i.children.unshift(s),i=$.makeSpan(["thinbox"],[i],t),$.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new ue.MathNode("mpadded",[dt(e.body,t)]);if(e.alignment!=="rlap"){var l=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",l+"width")}return r.setAttribute("width","0px"),r}});ge({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:l}=e,i=l.mode;l.switchMode("math");var s=r==="\\("?"\\)":"$",c=l.parseExpression(!1,s);return l.expect(s),l.switchMode(i),{type:"styling",mode:l.mode,style:"text",body:c}}});ge({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new fe("Mismatched "+e.funcName)}});var H5=(e,t)=>{switch(t.style.size){case Le.DISPLAY.size:return e.display;case Le.TEXT.size:return e.text;case Le.SCRIPT.size:return e.script;case Le.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ge({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Dt(t[0]),text:Dt(t[1]),script:Dt(t[2]),scriptscript:Dt(t[3])}},htmlBuilder:(e,t)=>{var r=H5(e,t),l=Pt(r,t,!1);return $.makeFragment(l)},mathmlBuilder:(e,t)=>{var r=H5(e,t);return sl(r,t)}});var P7=(e,t,r,l,i,s,c)=>{e=$.makeSpan([],[e]);var f=r&&nt.isCharacterBox(r),d,h;if(t){var v=Je(t,l.havingStyle(i.sup()),l);h={elem:v,kern:Math.max(l.fontMetrics().bigOpSpacing1,l.fontMetrics().bigOpSpacing3-v.depth)}}if(r){var g=Je(r,l.havingStyle(i.sub()),l);d={elem:g,kern:Math.max(l.fontMetrics().bigOpSpacing2,l.fontMetrics().bigOpSpacing4-g.height)}}var b;if(h&&d){var w=l.fontMetrics().bigOpSpacing5+d.elem.height+d.elem.depth+d.kern+e.depth+c;b=$.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:l.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:pe(-s)},{type:"kern",size:d.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:pe(s)},{type:"kern",size:l.fontMetrics().bigOpSpacing5}]},l)}else if(d){var E=e.height-c;b=$.makeVList({positionType:"top",positionData:E,children:[{type:"kern",size:l.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:pe(-s)},{type:"kern",size:d.kern},{type:"elem",elem:e}]},l)}else if(h){var A=e.depth+c;b=$.makeVList({positionType:"bottom",positionData:A,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:pe(s)},{type:"kern",size:l.fontMetrics().bigOpSpacing5}]},l)}else return e;var T=[b];if(d&&s!==0&&!f){var N=$.makeSpan(["mspace"],[],l);N.style.marginRight=pe(s),T.unshift(N)}return $.makeSpan(["mop","op-limits"],T,l)},V7=["\\smallint"],t0=(e,t)=>{var r,l,i=!1,s;e.type==="supsub"?(r=e.sup,l=e.sub,s=Ge(e.base,"op"),i=!0):s=Ge(e,"op");var c=t.style,f=!1;c.size===Le.DISPLAY.size&&s.symbol&&!V7.includes(s.name)&&(f=!0);var d;if(s.symbol){var h=f?"Size2-Regular":"Size1-Regular",v="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(v=s.name.slice(1),s.name=v==="oiint"?"\\iint":"\\iiint"),d=$.makeSymbol(s.name,h,"math",t,["mop","op-symbol",f?"large-op":"small-op"]),v.length>0){var g=d.italic,b=$.staticSvg(v+"Size"+(f?"2":"1"),t);d=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:b,shift:f?.08:0}]},t),s.name="\\"+v,d.classes.unshift("mop"),d.italic=g}}else if(s.body){var w=Pt(s.body,t,!0);w.length===1&&w[0]instanceof ar?(d=w[0],d.classes[0]="mop"):d=$.makeSpan(["mop"],w,t)}else{for(var E=[],A=1;A<s.name.length;A++)E.push($.mathsym(s.name[A],s.mode,t));d=$.makeSpan(["mop"],E,t)}var T=0,N=0;return(d instanceof ar||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(T=(d.height-d.depth)/2-t.fontMetrics().axisHeight,N=d.italic),i?P7(d,r,l,t,c,N,T):(T&&(d.style.position="relative",d.style.top=pe(T)),d)},Uo=(e,t)=>{var r;if(e.symbol)r=new qn("mo",[lr(e.name,e.mode)]),V7.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new qn("mo",zn(e.body,t));else{r=new qn("mi",[new kr(e.name.slice(1))]);var l=new qn("mo",[lr("⁡","text")]);e.parentIsSupSub?r=new qn("mrow",[r,l]):r=b7([r,l])}return r},Oz={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ge({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:l}=e,i=l;return i.length===1&&(i=Oz[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:t0,mathmlBuilder:Uo});ge({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,l=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Dt(l)}},htmlBuilder:t0,mathmlBuilder:Uo});var Rz={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ge({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:t0,mathmlBuilder:Uo});ge({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:t0,mathmlBuilder:Uo});ge({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,l=r;return l.length===1&&(l=Rz[l]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:l}},htmlBuilder:t0,mathmlBuilder:Uo});var I7=(e,t)=>{var r,l,i=!1,s;e.type==="supsub"?(r=e.sup,l=e.sub,s=Ge(e.base,"operatorname"),i=!0):s=Ge(e,"operatorname");var c;if(s.body.length>0){for(var f=s.body.map(g=>{var b=g.text;return typeof b=="string"?{type:"textord",mode:g.mode,text:b}:g}),d=Pt(f,t.withFont("mathrm"),!0),h=0;h<d.length;h++){var v=d[h];v instanceof ar&&(v.text=v.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=$.makeSpan(["mop"],d,t)}else c=$.makeSpan(["mop"],[],t);return i?P7(c,r,l,t,t.style,0,0):c},Lz=(e,t)=>{for(var r=zn(e.body,t.withFont("mathrm")),l=!0,i=0;i<r.length;i++){var s=r[i];if(!(s instanceof ue.SpaceNode))if(s instanceof ue.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var c=s.children[0];s.children.length===1&&c instanceof ue.TextNode?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):l=!1;break}default:l=!1}else l=!1}if(l){var f=r.map(v=>v.toText()).join("");r=[new ue.TextNode(f)]}var d=new ue.MathNode("mi",r);d.setAttribute("mathvariant","normal");var h=new ue.MathNode("mo",[lr("⁡","text")]);return e.parentIsSupSub?new ue.MathNode("mrow",[d,h]):ue.newDocumentFragment([d,h])};ge({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:l}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:Dt(i),alwaysHandleSupSub:l==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:I7,mathmlBuilder:Lz});D("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Pl({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?$.makeFragment(Pt(e.body,t,!1)):$.makeSpan(["mord"],Pt(e.body,t,!0),t)},mathmlBuilder(e,t){return sl(e.body,t,!0)}});ge({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,l=t[0];return{type:"overline",mode:r.mode,body:l}},htmlBuilder(e,t){var r=Je(e.body,t.havingCrampedStyle()),l=$.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,s=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:l},{type:"kern",size:i}]},t);return $.makeSpan(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new ue.MathNode("mo",[new ue.TextNode("‾")]);r.setAttribute("stretchy","true");var l=new ue.MathNode("mover",[dt(e.body,t),r]);return l.setAttribute("accent","true"),l}});ge({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,l=t[0];return{type:"phantom",mode:r.mode,body:Dt(l)}},htmlBuilder:(e,t)=>{var r=Pt(e.body,t.withPhantom(),!1);return $.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=zn(e.body,t);return new ue.MathNode("mphantom",r)}});ge({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,l=t[0];return{type:"hphantom",mode:r.mode,body:l}},htmlBuilder:(e,t)=>{var r=$.makeSpan([],[Je(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var l=0;l<r.children.length;l++)r.children[l].height=0,r.children[l].depth=0;return r=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),$.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=zn(Dt(e.body),t),l=new ue.MathNode("mphantom",r),i=new ue.MathNode("mpadded",[l]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ge({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,l=t[0];return{type:"vphantom",mode:r.mode,body:l}},htmlBuilder:(e,t)=>{var r=$.makeSpan(["inner"],[Je(e.body,t.withPhantom())]),l=$.makeSpan(["fix"],[]);return $.makeSpan(["mord","rlap"],[r,l],t)},mathmlBuilder:(e,t)=>{var r=zn(Dt(e.body),t),l=new ue.MathNode("mphantom",r),i=new ue.MathNode("mpadded",[l]);return i.setAttribute("width","0px"),i}});ge({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,l=Ge(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:l,body:i}},htmlBuilder(e,t){var r=Je(e.body,t),l=wt(e.dy,t);return $.makeVList({positionType:"shift",positionData:-l,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new ue.MathNode("mpadded",[dt(e.body,t)]),l=e.dy.number+e.dy.unit;return r.setAttribute("voffset",l),r}});ge({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ge({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:l}=e,i=r[0],s=Ge(t[0],"size"),c=Ge(t[1],"size");return{type:"rule",mode:l.mode,shift:i&&Ge(i,"size").value,width:s.value,height:c.value}},htmlBuilder(e,t){var r=$.makeSpan(["mord","rule"],[],t),l=wt(e.width,t),i=wt(e.height,t),s=e.shift?wt(e.shift,t):0;return r.style.borderRightWidth=pe(l),r.style.borderTopWidth=pe(i),r.style.bottom=pe(s),r.width=l,r.height=i+s,r.depth=-s,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=wt(e.width,t),l=wt(e.height,t),i=e.shift?wt(e.shift,t):0,s=t.color&&t.getColor()||"black",c=new ue.MathNode("mspace");c.setAttribute("mathbackground",s),c.setAttribute("width",pe(r)),c.setAttribute("height",pe(l));var f=new ue.MathNode("mpadded",[c]);return i>=0?f.setAttribute("height",pe(i)):(f.setAttribute("height",pe(i)),f.setAttribute("depth",pe(-i))),f.setAttribute("voffset",pe(i)),f}});function X7(e,t,r){for(var l=Pt(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,s=0;s<l.length;s++){var c=l[s].classes.indexOf("sizing");c<0?Array.prototype.push.apply(l[s].classes,t.sizingClasses(r)):l[s].classes[c+1]==="reset-size"+t.size&&(l[s].classes[c+1]="reset-size"+r.size),l[s].height*=i,l[s].depth*=i}return $.makeFragment(l)}var q5=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],_z=(e,t)=>{var r=t.havingSize(e.size);return X7(e.body,r,t)};ge({type:"sizing",names:q5,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:l,parser:i}=e,s=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:q5.indexOf(l)+1,body:s}},htmlBuilder:_z,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),l=zn(e.body,r),i=new ue.MathNode("mstyle",l);return i.setAttribute("mathsize",pe(r.sizeMultiplier)),i}});ge({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:l}=e,i=!1,s=!1,c=r[0]&&Ge(r[0],"ordgroup");if(c)for(var f="",d=0;d<c.body.length;++d){var h=c.body[d];if(f=h.text,f==="t")i=!0;else if(f==="b")s=!0;else{i=!1,s=!1;break}}else i=!0,s=!0;var v=t[0];return{type:"smash",mode:l.mode,body:v,smashHeight:i,smashDepth:s}},htmlBuilder:(e,t)=>{var r=$.makeSpan([],[Je(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var l=0;l<r.children.length;l++)r.children[l].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var i=0;i<r.children.length;i++)r.children[i].depth=0;var s=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return $.makeSpan(["mord"],[s],t)},mathmlBuilder:(e,t)=>{var r=new ue.MathNode("mpadded",[dt(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ge({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:l}=e,i=r[0],s=t[0];return{type:"sqrt",mode:l.mode,body:s,index:i}},htmlBuilder(e,t){var r=Je(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=$.wrapFragment(r,t);var l=t.fontMetrics(),i=l.defaultRuleThickness,s=i;t.style.id<Le.TEXT.id&&(s=t.fontMetrics().xHeight);var c=i+s/4,f=r.height+r.depth+c+i,{span:d,ruleWidth:h,advanceWidth:v}=ca.sqrtImage(f,t),g=d.height-h;g>r.height+r.depth+c&&(c=(c+g-r.height-r.depth)/2);var b=d.height-r.height-c-h;r.style.paddingLeft=pe(v);var w=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+b)},{type:"elem",elem:d},{type:"kern",size:h}]},t);if(e.index){var E=t.havingStyle(Le.SCRIPTSCRIPT),A=Je(e.index,E,t),T=.6*(w.height-w.depth),N=$.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:A}]},t),O=$.makeSpan(["root"],[N]);return $.makeSpan(["mord","sqrt"],[O,w],t)}else return $.makeSpan(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:r,index:l}=e;return l?new ue.MathNode("mroot",[dt(r,t),dt(l,t)]):new ue.MathNode("msqrt",[dt(r,t)])}});var U5={display:Le.DISPLAY,text:Le.TEXT,script:Le.SCRIPT,scriptscript:Le.SCRIPTSCRIPT};ge({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:l,parser:i}=e,s=i.parseExpression(!0,r),c=l.slice(1,l.length-5);return{type:"styling",mode:i.mode,style:c,body:s}},htmlBuilder(e,t){var r=U5[e.style],l=t.havingStyle(r).withFont("");return X7(e.body,l,t)},mathmlBuilder(e,t){var r=U5[e.style],l=t.havingStyle(r),i=zn(e.body,l),s=new ue.MathNode("mstyle",i),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=c[e.style];return s.setAttribute("scriptlevel",f[0]),s.setAttribute("displaystyle",f[1]),s}});var jz=function(t,r){var l=t.base;if(l)if(l.type==="op"){var i=l.limits&&(r.style.size===Le.DISPLAY.size||l.alwaysHandleSupSub);return i?t0:null}else if(l.type==="operatorname"){var s=l.alwaysHandleSupSub&&(r.style.size===Le.DISPLAY.size||l.limits);return s?I7:null}else{if(l.type==="accent")return nt.isCharacterBox(l.base)?Gh:null;if(l.type==="horizBrace"){var c=!t.sub;return c===l.isOver?Y7:null}else return null}else return null};Pl({type:"supsub",htmlBuilder(e,t){var r=jz(e,t);if(r)return r(e,t);var{base:l,sup:i,sub:s}=e,c=Je(l,t),f,d,h=t.fontMetrics(),v=0,g=0,b=l&&nt.isCharacterBox(l);if(i){var w=t.havingStyle(t.style.sup());f=Je(i,w,t),b||(v=c.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(s){var E=t.havingStyle(t.style.sub());d=Je(s,E,t),b||(g=c.depth+E.fontMetrics().subDrop*E.sizeMultiplier/t.sizeMultiplier)}var A;t.style===Le.DISPLAY?A=h.sup1:t.style.cramped?A=h.sup3:A=h.sup2;var T=t.sizeMultiplier,N=pe(.5/h.ptPerEm/T),O=null;if(d){var R=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(c instanceof ar||R)&&(O=pe(-c.italic))}var H;if(f&&d){v=Math.max(v,A,f.depth+.25*h.xHeight),g=Math.max(g,h.sub2);var F=h.defaultRuleThickness,I=4*F;if(v-f.depth-(d.height-g)<I){g=I-(v-f.depth)+d.height;var G=.8*h.xHeight-(v-f.depth);G>0&&(v+=G,g-=G)}var V=[{type:"elem",elem:d,shift:g,marginRight:N,marginLeft:O},{type:"elem",elem:f,shift:-v,marginRight:N}];H=$.makeVList({positionType:"individualShift",children:V},t)}else if(d){g=Math.max(g,h.sub1,d.height-.8*h.xHeight);var te=[{type:"elem",elem:d,marginLeft:O,marginRight:N}];H=$.makeVList({positionType:"shift",positionData:g,children:te},t)}else if(f)v=Math.max(v,A,f.depth+.25*h.xHeight),H=$.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:f,marginRight:N}]},t);else throw new Error("supsub must have either sup or sub.");var de=X1(c,"right")||"mord";return $.makeSpan([de],[c,$.makeSpan(["msupsub"],[H])],t)},mathmlBuilder(e,t){var r=!1,l,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(r=!0,l=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[dt(e.base,t)];e.sub&&s.push(dt(e.sub,t)),e.sup&&s.push(dt(e.sup,t));var c;if(r)c=l?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===Le.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===Le.DISPLAY||h.limits)?c="munderover":c="msubsup"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===Le.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===Le.DISPLAY)?c="munder":c="msub"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Le.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Le.DISPLAY)?c="mover":c="msup"}return new ue.MathNode(c,s)}});Pl({type:"atom",htmlBuilder(e,t){return $.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new ue.MathNode("mo",[lr(e.text,e.mode)]);if(e.family==="bin"){var l=qh(e,t);l==="bold-italic"&&r.setAttribute("mathvariant",l)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var $7={mi:"italic",mn:"normal",mtext:"normal"};Pl({type:"mathord",htmlBuilder(e,t){return $.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new ue.MathNode("mi",[lr(e.text,e.mode,t)]),l=qh(e,t)||"italic";return l!==$7[r.type]&&r.setAttribute("mathvariant",l),r}});Pl({type:"textord",htmlBuilder(e,t){return $.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=lr(e.text,e.mode,t),l=qh(e,t)||"normal",i;return e.mode==="text"?i=new ue.MathNode("mtext",[r]):/[0-9]/.test(e.text)?i=new ue.MathNode("mn",[r]):e.text==="\\prime"?i=new ue.MathNode("mo",[r]):i=new ue.MathNode("mi",[r]),l!==$7[i.type]&&i.setAttribute("mathvariant",l),i}});var A1={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},M1={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Pl({type:"spacing",htmlBuilder(e,t){if(M1.hasOwnProperty(e.text)){var r=M1[e.text].className||"";if(e.mode==="text"){var l=$.makeOrd(e,t,"textord");return l.classes.push(r),l}else return $.makeSpan(["mspace",r],[$.mathsym(e.text,e.mode,t)],t)}else{if(A1.hasOwnProperty(e.text))return $.makeSpan(["mspace",A1[e.text]],[],t);throw new fe('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(M1.hasOwnProperty(e.text))r=new ue.MathNode("mtext",[new ue.TextNode(" ")]);else{if(A1.hasOwnProperty(e.text))return new ue.MathNode("mspace");throw new fe('Unknown type of space "'+e.text+'"')}return r}});var G5=()=>{var e=new ue.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Pl({type:"tag",mathmlBuilder(e,t){var r=new ue.MathNode("mtable",[new ue.MathNode("mtr",[G5(),new ue.MathNode("mtd",[sl(e.body,t)]),G5(),new ue.MathNode("mtd",[sl(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var F5={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Y5={"\\textbf":"textbf","\\textmd":"textmd"},Bz={"\\textit":"textit","\\textup":"textup"},P5=(e,t)=>{var r=e.font;if(r){if(F5[r])return t.withTextFontFamily(F5[r]);if(Y5[r])return t.withTextFontWeight(Y5[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Bz[r])};ge({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:l}=e,i=t[0];return{type:"text",mode:r.mode,body:Dt(i),font:l}},htmlBuilder(e,t){var r=P5(e,t),l=Pt(e.body,r,!0);return $.makeSpan(["mord","text"],l,r)},mathmlBuilder(e,t){var r=P5(e,t);return sl(e.body,r)}});ge({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Je(e.body,t),l=$.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,s=$.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:l},{type:"kern",size:3*i},{type:"elem",elem:r}]},t);return $.makeSpan(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new ue.MathNode("mo",[new ue.TextNode("‾")]);r.setAttribute("stretchy","true");var l=new ue.MathNode("munder",[dt(e.body,t),r]);return l.setAttribute("accentunder","true"),l}});ge({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Je(e.body,t),l=t.fontMetrics().axisHeight,i=.5*(r.height-l-(r.depth+l));return $.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new ue.MathNode("mpadded",[dt(e.body,t)],["vcenter"])}});ge({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new fe("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=V5(e),l=[],i=t.havingStyle(t.style.text()),s=0;s<r.length;s++){var c=r[s];c==="~"&&(c="\\textasciitilde"),l.push($.makeSymbol(c,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return $.makeSpan(["mord","text"].concat(i.sizingClasses(t)),$.tryCombineChars(l),i)},mathmlBuilder(e,t){var r=new ue.TextNode(V5(e)),l=new ue.MathNode("mtext",[r]);return l.setAttribute("mathvariant","monospace"),l}});var V5=e=>e.body.replace(/ /g,e.star?"␣":" "),Ja=g7,K7=`[ \r
448
- ]`,Hz="\\\\[a-zA-Z@]+",qz="\\\\[^\uD800-\uDFFF]",Uz="("+Hz+")"+K7+"*",Gz=`\\\\(
449
- |[ \r ]+
450
- ?)[ \r ]*`,Z1="[̀-ͯ]",Fz=new RegExp(Z1+"+$"),Yz="("+K7+"+)|"+(Gz+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Z1+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Z1+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Uz)+("|"+qz+")");class I5{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(Yz,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Gn("EOF",new En(this,r,r));var l=this.tokenRegex.exec(t);if(l===null||l.index!==r)throw new fe("Unexpected character: '"+t[r]+"'",new Gn(t[r],new En(this,r,r+1)));var i=l[6]||l[3]||(l[2]?"\\ ":" ");if(this.catcodes[i]===14){var s=t.indexOf(`
451
- `,this.tokenRegex.lastIndex);return s===-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=s+1,this.lex()}return new Gn(i,new En(this,r,this.tokenRegex.lastIndex))}}class Pz{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new fe("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}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,r,l){if(l===void 0&&(l=!1),l){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var Vz=H7;D("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});D("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});D("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});D("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});D("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});D("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");D("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var X5={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};D("\\char",function(e){var t=e.popToken(),r,l="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")l=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new fe("\\char` missing argument");l=t.text.charCodeAt(0)}else r=10;if(r){if(l=X5[t.text],l==null||l>=r)throw new fe("Invalid base-"+r+" digit "+t.text);for(var i;(i=X5[e.future().text])!=null&&i<r;)l*=r,l+=i,e.popToken()}return"\\@char{"+l+"}"});var Kh=(e,t,r,l)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new fe("\\newcommand's first argument must be a macro name");var s=i[0].text,c=e.isDefined(s);if(c&&!t)throw new fe("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!c&&!r)throw new fe("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var f=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var d="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)d+=h.text,h=e.expandNextToken();if(!d.match(/^\s*[0-9]+\s*$/))throw new fe("Invalid number of arguments: "+d);f=parseInt(d),i=e.consumeArg().tokens}return c&&l||e.macros.set(s,{tokens:i,numArgs:f}),""};D("\\newcommand",e=>Kh(e,!1,!0,!1));D("\\renewcommand",e=>Kh(e,!0,!1,!1));D("\\providecommand",e=>Kh(e,!0,!0,!0));D("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});D("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});D("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Ja[r],ht.math[r],ht.text[r]),""});D("\\bgroup","{");D("\\egroup","}");D("~","\\nobreakspace");D("\\lq","`");D("\\rq","'");D("\\aa","\\r a");D("\\AA","\\r A");D("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");D("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");D("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");D("ℬ","\\mathscr{B}");D("ℰ","\\mathscr{E}");D("ℱ","\\mathscr{F}");D("ℋ","\\mathscr{H}");D("ℐ","\\mathscr{I}");D("ℒ","\\mathscr{L}");D("ℳ","\\mathscr{M}");D("ℛ","\\mathscr{R}");D("ℭ","\\mathfrak{C}");D("ℌ","\\mathfrak{H}");D("ℨ","\\mathfrak{Z}");D("\\Bbbk","\\Bbb{k}");D("·","\\cdotp");D("\\llap","\\mathllap{\\textrm{#1}}");D("\\rlap","\\mathrlap{\\textrm{#1}}");D("\\clap","\\mathclap{\\textrm{#1}}");D("\\mathstrut","\\vphantom{(}");D("\\underbar","\\underline{\\text{#1}}");D("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');D("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");D("\\ne","\\neq");D("≠","\\neq");D("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");D("∉","\\notin");D("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");D("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");D("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");D("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");D("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");D("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");D("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");D("⟂","\\perp");D("‼","\\mathclose{!\\mkern-0.8mu!}");D("∌","\\notni");D("⌜","\\ulcorner");D("⌝","\\urcorner");D("⌞","\\llcorner");D("⌟","\\lrcorner");D("©","\\copyright");D("®","\\textregistered");D("️","\\textregistered");D("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');D("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');D("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');D("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');D("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");D("⋮","\\vdots");D("\\varGamma","\\mathit{\\Gamma}");D("\\varDelta","\\mathit{\\Delta}");D("\\varTheta","\\mathit{\\Theta}");D("\\varLambda","\\mathit{\\Lambda}");D("\\varXi","\\mathit{\\Xi}");D("\\varPi","\\mathit{\\Pi}");D("\\varSigma","\\mathit{\\Sigma}");D("\\varUpsilon","\\mathit{\\Upsilon}");D("\\varPhi","\\mathit{\\Phi}");D("\\varPsi","\\mathit{\\Psi}");D("\\varOmega","\\mathit{\\Omega}");D("\\substack","\\begin{subarray}{c}#1\\end{subarray}");D("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");D("\\boxed","\\fbox{$\\displaystyle{#1}$}");D("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");D("\\implies","\\DOTSB\\;\\Longrightarrow\\;");D("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");D("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");D("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var $5={",":"\\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"};D("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in $5?t=$5[r]:(r.slice(0,4)==="\\not"||r in ht.math&&["bin","rel"].includes(ht.math[r].group))&&(t="\\dotsb"),t});var Qh={")":!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};D("\\dotso",function(e){var t=e.future().text;return t in Qh?"\\ldots\\,":"\\ldots"});D("\\dotsc",function(e){var t=e.future().text;return t in Qh&&t!==","?"\\ldots\\,":"\\ldots"});D("\\cdots",function(e){var t=e.future().text;return t in Qh?"\\@cdots\\,":"\\@cdots"});D("\\dotsb","\\cdots");D("\\dotsm","\\cdots");D("\\dotsi","\\!\\cdots");D("\\dotsx","\\ldots\\,");D("\\DOTSI","\\relax");D("\\DOTSB","\\relax");D("\\DOTSX","\\relax");D("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");D("\\,","\\tmspace+{3mu}{.1667em}");D("\\thinspace","\\,");D("\\>","\\mskip{4mu}");D("\\:","\\tmspace+{4mu}{.2222em}");D("\\medspace","\\:");D("\\;","\\tmspace+{5mu}{.2777em}");D("\\thickspace","\\;");D("\\!","\\tmspace-{3mu}{.1667em}");D("\\negthinspace","\\!");D("\\negmedspace","\\tmspace-{4mu}{.2222em}");D("\\negthickspace","\\tmspace-{5mu}{.277em}");D("\\enspace","\\kern.5em ");D("\\enskip","\\hskip.5em\\relax");D("\\quad","\\hskip1em\\relax");D("\\qquad","\\hskip2em\\relax");D("\\tag","\\@ifstar\\tag@literal\\tag@paren");D("\\tag@paren","\\tag@literal{({#1})}");D("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new fe("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});D("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");D("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");D("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");D("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");D("\\newline","\\\\\\relax");D("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Q7=pe(Cr["Main-Regular"][84][1]-.7*Cr["Main-Regular"][65][1]);D("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Q7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");D("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Q7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");D("\\hspace","\\@ifstar\\@hspacer\\@hspace");D("\\@hspace","\\hskip #1\\relax");D("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");D("\\ordinarycolon",":");D("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");D("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');D("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');D("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');D("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');D("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');D("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');D("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');D("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');D("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');D("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');D("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');D("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');D("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');D("∷","\\dblcolon");D("∹","\\eqcolon");D("≔","\\coloneqq");D("≕","\\eqqcolon");D("⩴","\\Coloneqq");D("\\ratio","\\vcentcolon");D("\\coloncolon","\\dblcolon");D("\\colonequals","\\coloneqq");D("\\coloncolonequals","\\Coloneqq");D("\\equalscolon","\\eqqcolon");D("\\equalscoloncolon","\\Eqqcolon");D("\\colonminus","\\coloneq");D("\\coloncolonminus","\\Coloneq");D("\\minuscolon","\\eqcolon");D("\\minuscoloncolon","\\Eqcolon");D("\\coloncolonapprox","\\Colonapprox");D("\\coloncolonsim","\\Colonsim");D("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");D("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");D("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");D("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");D("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");D("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");D("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");D("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");D("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");D("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");D("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");D("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");D("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");D("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");D("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");D("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");D("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");D("\\nleqq","\\html@mathml{\\@nleqq}{≰}");D("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");D("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");D("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");D("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");D("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");D("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");D("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");D("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");D("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");D("\\imath","\\html@mathml{\\@imath}{ı}");D("\\jmath","\\html@mathml{\\@jmath}{ȷ}");D("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");D("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");D("⟦","\\llbracket");D("⟧","\\rrbracket");D("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");D("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");D("⦃","\\lBrace");D("⦄","\\rBrace");D("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");D("⦵","\\minuso");D("\\darr","\\downarrow");D("\\dArr","\\Downarrow");D("\\Darr","\\Downarrow");D("\\lang","\\langle");D("\\rang","\\rangle");D("\\uarr","\\uparrow");D("\\uArr","\\Uparrow");D("\\Uarr","\\Uparrow");D("\\N","\\mathbb{N}");D("\\R","\\mathbb{R}");D("\\Z","\\mathbb{Z}");D("\\alef","\\aleph");D("\\alefsym","\\aleph");D("\\Alpha","\\mathrm{A}");D("\\Beta","\\mathrm{B}");D("\\bull","\\bullet");D("\\Chi","\\mathrm{X}");D("\\clubs","\\clubsuit");D("\\cnums","\\mathbb{C}");D("\\Complex","\\mathbb{C}");D("\\Dagger","\\ddagger");D("\\diamonds","\\diamondsuit");D("\\empty","\\emptyset");D("\\Epsilon","\\mathrm{E}");D("\\Eta","\\mathrm{H}");D("\\exist","\\exists");D("\\harr","\\leftrightarrow");D("\\hArr","\\Leftrightarrow");D("\\Harr","\\Leftrightarrow");D("\\hearts","\\heartsuit");D("\\image","\\Im");D("\\infin","\\infty");D("\\Iota","\\mathrm{I}");D("\\isin","\\in");D("\\Kappa","\\mathrm{K}");D("\\larr","\\leftarrow");D("\\lArr","\\Leftarrow");D("\\Larr","\\Leftarrow");D("\\lrarr","\\leftrightarrow");D("\\lrArr","\\Leftrightarrow");D("\\Lrarr","\\Leftrightarrow");D("\\Mu","\\mathrm{M}");D("\\natnums","\\mathbb{N}");D("\\Nu","\\mathrm{N}");D("\\Omicron","\\mathrm{O}");D("\\plusmn","\\pm");D("\\rarr","\\rightarrow");D("\\rArr","\\Rightarrow");D("\\Rarr","\\Rightarrow");D("\\real","\\Re");D("\\reals","\\mathbb{R}");D("\\Reals","\\mathbb{R}");D("\\Rho","\\mathrm{P}");D("\\sdot","\\cdot");D("\\sect","\\S");D("\\spades","\\spadesuit");D("\\sub","\\subset");D("\\sube","\\subseteq");D("\\supe","\\supseteq");D("\\Tau","\\mathrm{T}");D("\\thetasym","\\vartheta");D("\\weierp","\\wp");D("\\Zeta","\\mathrm{Z}");D("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");D("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");D("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");D("\\bra","\\mathinner{\\langle{#1}|}");D("\\ket","\\mathinner{|{#1}\\rangle}");D("\\braket","\\mathinner{\\langle{#1}\\rangle}");D("\\Bra","\\left\\langle#1\\right|");D("\\Ket","\\left|#1\\right\\rangle");var Z7=e=>t=>{var r=t.consumeArg().tokens,l=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.consumeArg().tokens,c=t.macros.get("|"),f=t.macros.get("\\|");t.macros.beginGroup();var d=g=>b=>{e&&(b.macros.set("|",c),i.length&&b.macros.set("\\|",f));var w=g;if(!g&&i.length){var E=b.future();E.text==="|"&&(b.popToken(),w=!0)}return{tokens:w?i:l,numArgs:0}};t.macros.set("|",d(!1)),i.length&&t.macros.set("\\|",d(!0));var h=t.consumeArg().tokens,v=t.expandTokens([...s,...h,...r]);return t.macros.endGroup(),{tokens:v.reverse(),numArgs:0}};D("\\bra@ket",Z7(!1));D("\\bra@set",Z7(!0));D("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");D("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");D("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");D("\\angln","{\\angl n}");D("\\blue","\\textcolor{##6495ed}{#1}");D("\\orange","\\textcolor{##ffa500}{#1}");D("\\pink","\\textcolor{##ff00af}{#1}");D("\\red","\\textcolor{##df0030}{#1}");D("\\green","\\textcolor{##28ae7b}{#1}");D("\\gray","\\textcolor{gray}{#1}");D("\\purple","\\textcolor{##9d38bd}{#1}");D("\\blueA","\\textcolor{##ccfaff}{#1}");D("\\blueB","\\textcolor{##80f6ff}{#1}");D("\\blueC","\\textcolor{##63d9ea}{#1}");D("\\blueD","\\textcolor{##11accd}{#1}");D("\\blueE","\\textcolor{##0c7f99}{#1}");D("\\tealA","\\textcolor{##94fff5}{#1}");D("\\tealB","\\textcolor{##26edd5}{#1}");D("\\tealC","\\textcolor{##01d1c1}{#1}");D("\\tealD","\\textcolor{##01a995}{#1}");D("\\tealE","\\textcolor{##208170}{#1}");D("\\greenA","\\textcolor{##b6ffb0}{#1}");D("\\greenB","\\textcolor{##8af281}{#1}");D("\\greenC","\\textcolor{##74cf70}{#1}");D("\\greenD","\\textcolor{##1fab54}{#1}");D("\\greenE","\\textcolor{##0d923f}{#1}");D("\\goldA","\\textcolor{##ffd0a9}{#1}");D("\\goldB","\\textcolor{##ffbb71}{#1}");D("\\goldC","\\textcolor{##ff9c39}{#1}");D("\\goldD","\\textcolor{##e07d10}{#1}");D("\\goldE","\\textcolor{##a75a05}{#1}");D("\\redA","\\textcolor{##fca9a9}{#1}");D("\\redB","\\textcolor{##ff8482}{#1}");D("\\redC","\\textcolor{##f9685d}{#1}");D("\\redD","\\textcolor{##e84d39}{#1}");D("\\redE","\\textcolor{##bc2612}{#1}");D("\\maroonA","\\textcolor{##ffbde0}{#1}");D("\\maroonB","\\textcolor{##ff92c6}{#1}");D("\\maroonC","\\textcolor{##ed5fa6}{#1}");D("\\maroonD","\\textcolor{##ca337c}{#1}");D("\\maroonE","\\textcolor{##9e034e}{#1}");D("\\purpleA","\\textcolor{##ddd7ff}{#1}");D("\\purpleB","\\textcolor{##c6b9fc}{#1}");D("\\purpleC","\\textcolor{##aa87ff}{#1}");D("\\purpleD","\\textcolor{##7854ab}{#1}");D("\\purpleE","\\textcolor{##543b78}{#1}");D("\\mintA","\\textcolor{##f5f9e8}{#1}");D("\\mintB","\\textcolor{##edf2df}{#1}");D("\\mintC","\\textcolor{##e0e5cc}{#1}");D("\\grayA","\\textcolor{##f6f7f7}{#1}");D("\\grayB","\\textcolor{##f0f1f2}{#1}");D("\\grayC","\\textcolor{##e3e5e6}{#1}");D("\\grayD","\\textcolor{##d6d8da}{#1}");D("\\grayE","\\textcolor{##babec2}{#1}");D("\\grayF","\\textcolor{##888d93}{#1}");D("\\grayG","\\textcolor{##626569}{#1}");D("\\grayH","\\textcolor{##3b3e40}{#1}");D("\\grayI","\\textcolor{##21242c}{#1}");D("\\kaBlue","\\textcolor{##314453}{#1}");D("\\kaGreen","\\textcolor{##71B307}{#1}");var W7={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Iz{constructor(t,r,l){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=r,this.expansionCount=0,this.feed(t),this.macros=new Pz(Vz,r.macros),this.mode=l,this.stack=[]}feed(t){this.lexer=new I5(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 r,l,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:l}=this.consumeArg(["]"])}else({tokens:i,start:r,end:l}=this.consumeArg());return this.pushToken(new Gn("EOF",l.loc)),this.pushTokens(i),new Gn("",En.range(r,l))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],l=t&&t.length>0;l||this.consumeSpaces();var i=this.future(),s,c=0,f=0;do{if(s=this.popToken(),r.push(s),s.text==="{")++c;else if(s.text==="}"){if(--c,c===-1)throw new fe("Extra }",s)}else if(s.text==="EOF")throw new fe("Unexpected end of input in a macro argument, expected '"+(t&&l?t[f]:"}")+"'",s);if(t&&l)if((c===0||c===1&&t[f]==="{")&&s.text===t[f]){if(++f,f===t.length){r.splice(-f,f);break}}else f=0}while(c!==0||l);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:s}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new fe("The length of delimiters doesn't match the number of args!");for(var l=r[0],i=0;i<l.length;i++){var s=this.popToken();if(l[i]!==s.text)throw new fe("Use of the macro doesn't match its definition",s)}}for(var c=[],f=0;f<t;f++)c.push(this.consumeArg(r&&r[f+1]).tokens);return c}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new fe("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),l=r.text,i=r.noexpand?null:this._getExpansion(l);if(i==null||t&&i.unexpandable){if(t&&i==null&&l[0]==="\\"&&!this.isDefined(l))throw new fe("Undefined control sequence: "+l);return this.pushToken(r),!1}this.countExpansion(1);var s=i.tokens,c=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var f=s.length-1;f>=0;--f){var d=s[f];if(d.text==="#"){if(f===0)throw new fe("Incomplete placeholder at end of macro body",d);if(d=s[--f],d.text==="#")s.splice(f+1,1);else if(/^[1-9]$/.test(d.text))s.splice(f,2,...c[+d.text-1]);else throw new fe("Not a valid argument number",d)}}}return this.pushTokens(s),s.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 Gn(t)]):void 0}expandTokens(t){var r=[],l=this.stack.length;for(this.pushTokens(t);this.stack.length>l;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(l=>l.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var l=this.lexer.catcodes[t];if(l!=null&&l!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var s=0;if(i.indexOf("#")!==-1)for(var c=i.replace(/##/g,"");c.indexOf("#"+(s+1))!==-1;)++s;for(var f=new I5(i,this.settings),d=[],h=f.lex();h.text!=="EOF";)d.push(h),h=f.lex();d.reverse();var v={tokens:d,numArgs:s};return v}return i}isDefined(t){return this.macros.has(t)||Ja.hasOwnProperty(t)||ht.math.hasOwnProperty(t)||ht.text.hasOwnProperty(t)||W7.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Ja.hasOwnProperty(t)&&!Ja[t].primitive}}var K5=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Au=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),E1={"́":{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"}},Q5={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class wc{constructor(t,r){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 Iz(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new fe("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&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 r=this.nextToken;this.consume(),this.gullet.pushToken(new Gn("}")),this.gullet.pushTokens(t);var l=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,l}parseExpression(t,r){for(var l=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(wc.endOfExpression.indexOf(i.text)!==-1||r&&i.text===r||t&&Ja[i.text]&&Ja[i.text].infix)break;var s=this.parseAtom(r);if(s){if(s.type==="internal")continue}else break;l.push(s)}return this.mode==="text"&&this.formLigatures(l),this.handleInfixNodes(l)}handleInfixNodes(t){for(var r=-1,l,i=0;i<t.length;i++)if(t[i].type==="infix"){if(r!==-1)throw new fe("only one infix operator per group",t[i].token);r=i,l=t[i].replaceWith}if(r!==-1&&l){var s,c,f=t.slice(0,r),d=t.slice(r+1);f.length===1&&f[0].type==="ordgroup"?s=f[0]:s={type:"ordgroup",mode:this.mode,body:f},d.length===1&&d[0].type==="ordgroup"?c=d[0]:c={type:"ordgroup",mode:this.mode,body:d};var h;return l==="\\\\abovefrac"?h=this.callFunction(l,[s,t[r],c],[]):h=this.callFunction(l,[s,c],[]),[h]}else return t}handleSupSubscript(t){var r=this.fetch(),l=r.text;this.consume(),this.consumeSpaces();var i;do{var s;i=this.parseGroup(t)}while(((s=i)==null?void 0:s.type)==="internal");if(!i)throw new fe("Expected group after '"+l+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],l=0;l<t.length;l++)r.push({type:"textord",mode:"text",text:t[l]});var i={type:"text",mode:this.mode,body:r},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return s}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var l,i;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(r&&r.type==="op"){var c=s.text==="\\limits";r.limits=c,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=s.text==="\\limits");else throw new fe("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(l)throw new fe("Double superscript",s);l=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(i)throw new fe("Double subscript",s);i=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(l)throw new fe("Double superscript",s);var f={type:"textord",mode:this.mode,text:"\\prime"},d=[f];for(this.consume();this.fetch().text==="'";)d.push(f),this.consume();this.fetch().text==="^"&&d.push(this.handleSupSubscript("superscript")),l={type:"ordgroup",mode:this.mode,body:d}}else if(Au[s.text]){var h=K5.test(s.text),v=[];for(v.push(new Gn(Au[s.text])),this.consume();;){var g=this.fetch().text;if(!Au[g]||K5.test(g)!==h)break;v.unshift(new Gn(Au[g])),this.consume()}var b=this.subparse(v);h?i={type:"ordgroup",mode:"math",body:b}:l={type:"ordgroup",mode:"math",body:b}}else break}return l||i?{type:"supsub",mode:this.mode,base:r,sup:l,sub:i}:r}parseFunction(t,r){var l=this.fetch(),i=l.text,s=Ja[i];if(!s)return null;if(this.consume(),r&&r!=="atom"&&!s.allowedInArgument)throw new fe("Got function '"+i+"' with no arguments"+(r?" as "+r:""),l);if(this.mode==="text"&&!s.allowedInText)throw new fe("Can't use function '"+i+"' in text mode",l);if(this.mode==="math"&&s.allowedInMath===!1)throw new fe("Can't use function '"+i+"' in math mode",l);var{args:c,optArgs:f}=this.parseArguments(i,s);return this.callFunction(i,c,f,l,t)}callFunction(t,r,l,i,s){var c={funcName:t,parser:this,token:i,breakOnTokenText:s},f=Ja[t];if(f&&f.handler)return f.handler(c,r,l);throw new fe("No function handler for "+t)}parseArguments(t,r){var l=r.numArgs+r.numOptionalArgs;if(l===0)return{args:[],optArgs:[]};for(var i=[],s=[],c=0;c<l;c++){var f=r.argTypes&&r.argTypes[c],d=c<r.numOptionalArgs;(r.primitive&&f==null||r.type==="sqrt"&&c===1&&s[0]==null)&&(f="primitive");var h=this.parseGroupOfType("argument to '"+t+"'",f,d);if(d)s.push(h);else if(h!=null)i.push(h);else throw new fe("Null argument, please report this as a bug")}return{args:i,optArgs:s}}parseGroupOfType(t,r,l){switch(r){case"color":return this.parseColorGroup(l);case"size":return this.parseSizeGroup(l);case"url":return this.parseUrlGroup(l);case"math":case"text":return this.parseArgumentGroup(l,r);case"hbox":{var i=this.parseArgumentGroup(l,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",l);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(l)throw new fe("A primitive argument cannot be optional");var c=this.parseGroup(t);if(c==null)throw new fe("Expected group as "+t,this.fetch());return c}case"original":case null:case void 0:return this.parseArgumentGroup(l);default:throw new fe("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var l=this.gullet.scanArgument(r);if(l==null)return null;for(var i="",s;(s=this.fetch()).text!=="EOF";)i+=s.text,this.consume();return this.consume(),l.text=i,l}parseRegexGroup(t,r){for(var l=this.fetch(),i=l,s="",c;(c=this.fetch()).text!=="EOF"&&t.test(s+c.text);)i=c,s+=i.text,this.consume();if(s==="")throw new fe("Invalid "+r+": '"+l.text+"'",l);return l.range(i,s)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var l=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!l)throw new fe("Invalid color: '"+r.text+"'",r);var i=l[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,l=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",l=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new fe("Invalid size: '"+r.text+"'",r);var s={number:+(i[1]+i[2]),unit:i[3]};if(!s7(s))throw new fe("Invalid unit: '"+s.unit+"'",r);return{type:"size",mode:this.mode,value:s,isBlank:l}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var l=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:l}}parseArgumentGroup(t,r){var l=this.gullet.scanArgument(t);if(l==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var c={type:"ordgroup",mode:this.mode,loc:l.loc,body:s};return r&&this.switchMode(i),c}parseGroup(t,r){var l=this.fetch(),i=l.text,s;if(i==="{"||i==="\\begingroup"){this.consume();var c=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var f=this.parseExpression(!1,c),d=this.fetch();this.expect(c),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:En.range(l,d),body:f,semisimple:i==="\\begingroup"||void 0}}else if(s=this.parseFunction(r,t)||this.parseSymbol(),s==null&&i[0]==="\\"&&!W7.hasOwnProperty(i)){if(this.settings.throwOnError)throw new fe("Undefined control sequence: "+i,l);s=this.formatUnsupportedCmd(i),this.consume()}return s}formLigatures(t){for(var r=t.length-1,l=0;l<r;++l){var i=t[l],s=i.text;s==="-"&&t[l+1].text==="-"&&(l+1<r&&t[l+2].text==="-"?(t.splice(l,3,{type:"textord",mode:"text",loc:En.range(i,t[l+2]),text:"---"}),r-=2):(t.splice(l,2,{type:"textord",mode:"text",loc:En.range(i,t[l+1]),text:"--"}),r-=1)),(s==="'"||s==="`")&&t[l+1].text===s&&(t.splice(l,2,{type:"textord",mode:"text",loc:En.range(i,t[l+1]),text:s+s}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var l=r.slice(5),i=l.charAt(0)==="*";if(i&&(l=l.slice(1)),l.length<2||l.charAt(0)!==l.slice(-1))throw new fe(`\\verb assertion failed --
452
- please report what input caused this bug`);return l=l.slice(1,-1),{type:"verb",mode:"text",body:l,star:i}}Q5.hasOwnProperty(r[0])&&!ht[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=Q5[r[0]]+r.slice(1));var s=Fz.exec(r);s&&(r=r.substring(0,s.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var c;if(ht[this.mode][r]){this.settings.strict&&this.mode==="math"&&I1.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var f=ht[this.mode][r].group,d=En.range(t),h;if(LN.hasOwnProperty(f)){var v=f;h={type:"atom",mode:this.mode,family:v,loc:d,text:r}}else h={type:f,mode:this.mode,loc:d,text:r};c=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(o7(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),c={type:"textord",mode:"text",loc:En.range(t),text:r};else return null;if(this.consume(),s)for(var g=0;g<s[0].length;g++){var b=s[0][g];if(!E1[b])throw new fe("Unknown accent ' "+b+"'",t);var w=E1[b][this.mode]||E1[b].text;if(!w)throw new fe("Accent "+b+" unsupported in "+this.mode+" mode",t);c={type:"accent",mode:this.mode,loc:En.range(t),label:w,isStretchy:!1,isShifty:!0,base:c}}return c}}wc.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Zh=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var l=new wc(t,r);delete l.gullet.macros.current["\\df@tag"];var i=l.parse();if(delete l.gullet.macros.current["\\current@color"],delete l.gullet.macros.current["\\color"],l.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new fe("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:l.subparse([new Gn("\\df@tag")])}]}return i},J7=function(t,r,l){r.textContent="";var i=Wh(t,l).toNode();r.appendChild(i)};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."),J7=function(){throw new fe("KaTeX doesn't work in quirks mode.")});var Xz=function(t,r){var l=Wh(t,r).toMarkup();return l},$z=function(t,r){var l=new Rh(r);return Zh(t,l)},e8=function(t,r,l){if(l.throwOnError||!(t instanceof fe))throw t;var i=$.makeSpan(["katex-error"],[new ar(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+l.errorColor),i},Wh=function(t,r){var l=new Rh(r);try{var i=Zh(t,l);return rz(i,t,l)}catch(s){return e8(s,t,l)}},Kz=function(t,r){var l=new Rh(r);try{var i=Zh(t,l);return az(i,t,l)}catch(s){return e8(s,t,l)}},Qz="0.16.27",Zz={Span:qo,Anchor:jh,SymbolNode:ar,SvgNode:pa,PathNode:ol,LineNode:V1},Wz={version:Qz,render:J7,renderToString:Xz,ParseError:fe,SETTINGS_SCHEMA:Ou,__parse:$z,__renderToDomTree:Wh,__renderToHTMLTree:Kz,__setFontMetrics:TN,__defineSymbol:y,__defineFunction:ge,__defineMacro:D,__domTree:Zz};function W1(e){const t=[];let r=0;const l=/\$\$([^$]+)\$\$|\$([^$]+)\$/g;let i,s=0;for(;(i=l.exec(e))!==null;){i.index>r&&t.push(e.slice(r,i.index));const c=i[1]!==void 0,f=i[1]||i[2];try{const d=Wz.renderToString(f,{displayMode:c,throwOnError:!1});t.push(k.jsx("span",{dangerouslySetInnerHTML:{__html:d}},s++))}catch{t.push(i[0])}r=i.index+i[0].length}return r<e.length&&t.push(e.slice(r)),t.length===1&&typeof t[0]=="string"?t[0]:k.jsx(k.Fragment,{children:t})}function Jz({title:e,subtitle:t}){return!e&&!t?null:k.jsxs("div",{className:"mx-auto max-w-md",children:[e&&k.jsx("h3",{className:"text-sm md:text-base font-medium tracking-tight text-foreground text-left",children:W1(e)}),t&&k.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed text-left mt-1",children:W1(t)})]})}function eD({caption:e,label:t}){return!e&&!t?null:k.jsx("div",{className:"mx-auto max-w-md",children:k.jsxs("div",{className:"text-sm text-muted-foreground leading-relaxed text-left",children:[t&&k.jsx("span",{className:"font-medium text-foreground",children:t}),t&&e&&k.jsx("span",{className:"mx-1",children:"—"}),e&&W1(e)]})})}function tD(e){return Object.prototype.toString.call(e)==="[object Object]"}function Z5(e){return tD(e)||Array.isArray(e)}function nD(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Jh(e,t){const r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==s?!1:r.every(c=>{const f=e[c],d=t[c];return typeof f=="function"?`${f}`==`${d}`:!Z5(f)||!Z5(d)?f===d:Jh(f,d)})}function W5(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function rD(e,t){if(e.length!==t.length)return!1;const r=W5(e),l=W5(t);return r.every((i,s)=>{const c=l[s];return Jh(i,c)})}function em(e){return typeof e=="number"}function J1(e){return typeof e=="string"}function Sc(e){return typeof e=="boolean"}function J5(e){return Object.prototype.toString.call(e)==="[object Object]"}function St(e){return Math.abs(e)}function tm(e){return Math.sign(e)}function ho(e,t){return St(e-t)}function aD(e,t){if(e===0||t===0||St(e)<=St(t))return 0;const r=ho(St(e),St(t));return St(r/e)}function lD(e){return Math.round(e*100)/100}function So(e){return Ao(e).map(Number)}function fr(e){return e[Go(e)]}function Go(e){return Math.max(0,e.length-1)}function nm(e,t){return t===Go(e)}function e6(e,t=0){return Array.from(Array(e),(r,l)=>t+l)}function Ao(e){return Object.keys(e)}function t8(e,t){return[e,t].reduce((r,l)=>(Ao(l).forEach(i=>{const s=r[i],c=l[i],f=J5(s)&&J5(c);r[i]=f?t8(s,c):c}),r),{})}function eh(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function iD(e,t){const r={start:l,center:i,end:s};function l(){return 0}function i(d){return s(d)/2}function s(d){return t-d}function c(d,h){return J1(e)?r[e](d):e(t,d,h)}return{measure:c}}function Mo(){let e=[];function t(i,s,c,f={passive:!0}){let d;if("addEventListener"in i)i.addEventListener(s,c,f),d=()=>i.removeEventListener(s,c,f);else{const h=i;h.addListener(c),d=()=>h.removeListener(c)}return e.push(d),l}function r(){e=e.filter(i=>i())}const l={add:t,clear:r};return l}function oD(e,t,r,l){const i=Mo(),s=1e3/60;let c=null,f=0,d=0;function h(){i.add(e,"visibilitychange",()=>{e.hidden&&E()})}function v(){w(),i.clear()}function g(T){if(!d)return;c||(c=T,r(),r());const N=T-c;for(c=T,f+=N;f>=s;)r(),f-=s;const O=f/s;l(O),d&&(d=t.requestAnimationFrame(g))}function b(){d||(d=t.requestAnimationFrame(g))}function w(){t.cancelAnimationFrame(d),c=null,f=0,d=0}function E(){c=null,f=0}return{init:h,destroy:v,start:b,stop:w,update:r,render:l}}function sD(e,t){const r=t==="rtl",l=e==="y",i=l?"y":"x",s=l?"x":"y",c=!l&&r?-1:1,f=v(),d=g();function h(E){const{height:A,width:T}=E;return l?A:T}function v(){return l?"top":r?"right":"left"}function g(){return l?"bottom":r?"left":"right"}function b(E){return E*c}return{scroll:i,cross:s,startEdge:f,endEdge:d,measureSize:h,direction:b}}function ql(e=0,t=0){const r=St(e-t);function l(h){return h<e}function i(h){return h>t}function s(h){return l(h)||i(h)}function c(h){return s(h)?l(h)?e:t:h}function f(h){return r?h-r*Math.ceil((h-t)/r):h}return{length:r,max:t,min:e,constrain:c,reachedAny:s,reachedMax:i,reachedMin:l,removeOffset:f}}function n8(e,t,r){const{constrain:l}=ql(0,e),i=e+1;let s=c(t);function c(b){return r?St((i+b)%i):l(b)}function f(){return s}function d(b){return s=c(b),g}function h(b){return v().set(f()+b)}function v(){return n8(e,f(),r)}const g={get:f,set:d,add:h,clone:v};return g}function uD(e,t,r,l,i,s,c,f,d,h,v,g,b,w,E,A,T,N,O){const{cross:R,direction:H}=e,F=["INPUT","SELECT","TEXTAREA"],I={passive:!1},G=Mo(),V=Mo(),te=ql(50,225).constrain(w.measure(20)),de={mouse:300,touch:400},ce={mouse:500,touch:600},he=E?43:25;let De=!1,we=0,Ce=0,Y=!1,ne=!1,Q=!1,ie=!1;function be(ye){if(!O)return;function Pe(gt){(Sc(O)||O(ye,gt))&&ke(gt)}const Ke=t;G.add(Ke,"dragstart",gt=>gt.preventDefault(),I).add(Ke,"touchmove",()=>{},I).add(Ke,"touchend",()=>{}).add(Ke,"touchstart",Pe).add(Ke,"mousedown",Pe).add(Ke,"touchcancel",Be).add(Ke,"contextmenu",Be).add(Ke,"click",Oe,!0)}function j(){G.clear(),V.clear()}function W(){const ye=ie?r:t;V.add(ye,"touchmove",ve,I).add(ye,"touchend",Be).add(ye,"mousemove",ve,I).add(ye,"mouseup",Be)}function le(ye){const Pe=ye.nodeName||"";return F.includes(Pe)}function se(){return(E?ce:de)[ie?"mouse":"touch"]}function Se(ye,Pe){const Ke=g.add(tm(ye)*-1),gt=v.byDistance(ye,!E).distance;return E||St(ye)<te?gt:T&&Pe?gt*.5:v.byIndex(Ke.get(),0).distance}function ke(ye){const Pe=eh(ye,l);ie=Pe,Q=E&&Pe&&!ye.buttons&&De,De=ho(i.get(),c.get())>=2,!(Pe&&ye.button!==0)&&(le(ye.target)||(Y=!0,s.pointerDown(ye),h.useFriction(0).useDuration(0),i.set(c),W(),we=s.readPoint(ye),Ce=s.readPoint(ye,R),b.emit("pointerDown")))}function ve(ye){if(!eh(ye,l)&&ye.touches.length>=2)return Be(ye);const Ke=s.readPoint(ye),gt=s.readPoint(ye,R),qt=ho(Ke,we),$t=ho(gt,Ce);if(!ne&&!ie&&(!ye.cancelable||(ne=qt>$t,!ne)))return Be(ye);const Kt=s.pointerMove(ye);qt>A&&(Q=!0),h.useFriction(.3).useDuration(.75),f.start(),i.add(H(Kt)),ye.preventDefault()}function Be(ye){const Ke=v.byDistance(0,!1).index!==g.get(),gt=s.pointerUp(ye)*se(),qt=Se(H(gt),Ke),$t=aD(gt,qt),Kt=he-10*$t,Mt=N+$t/50;ne=!1,Y=!1,V.clear(),h.useDuration(Kt).useFriction(Mt),d.distance(qt,!E),ie=!1,b.emit("pointerUp")}function Oe(ye){Q&&(ye.stopPropagation(),ye.preventDefault(),Q=!1)}function Ze(){return Y}return{init:be,destroy:j,pointerDown:Ze}}function cD(e,t){let l,i;function s(g){return g.timeStamp}function c(g,b){const E=`client${(b||e.scroll)==="x"?"X":"Y"}`;return(eh(g,t)?g:g.touches[0])[E]}function f(g){return l=g,i=g,c(g)}function d(g){const b=c(g)-c(i),w=s(g)-s(l)>170;return i=g,w&&(l=g),b}function h(g){if(!l||!i)return 0;const b=c(i)-c(l),w=s(g)-s(l),E=s(g)-s(i)>170,A=b/w;return w&&!E&&St(A)>.1?A:0}return{pointerDown:f,pointerMove:d,pointerUp:h,readPoint:c}}function fD(){function e(r){const{offsetTop:l,offsetLeft:i,offsetWidth:s,offsetHeight:c}=r;return{top:l,right:i+s,bottom:l+c,left:i,width:s,height:c}}return{measure:e}}function dD(e){function t(l){return e*(l/100)}return{measure:t}}function hD(e,t,r,l,i,s,c){const f=[e].concat(l);let d,h,v=[],g=!1;function b(T){return i.measureSize(c.measure(T))}function w(T){if(!s)return;h=b(e),v=l.map(b);function N(O){for(const R of O){if(g)return;const H=R.target===e,F=l.indexOf(R.target),I=H?h:v[F],G=b(H?e:l[F]);if(St(G-I)>=.5){T.reInit(),t.emit("resize");break}}}d=new ResizeObserver(O=>{(Sc(s)||s(T,O))&&N(O)}),r.requestAnimationFrame(()=>{f.forEach(O=>d.observe(O))})}function E(){g=!0,d&&d.disconnect()}return{init:w,destroy:E}}function mD(e,t,r,l,i,s){let c=0,f=0,d=i,h=s,v=e.get(),g=0;function b(){const I=l.get()-e.get(),G=!d;let V=0;return G?(c=0,r.set(l),e.set(l),V=I):(r.set(e),c+=I/d,c*=h,v+=c,e.add(c),V=v-g),f=tm(V),g=v,F}function w(){const I=l.get()-t.get();return St(I)<.001}function E(){return d}function A(){return f}function T(){return c}function N(){return R(i)}function O(){return H(s)}function R(I){return d=I,F}function H(I){return h=I,F}const F={direction:A,duration:E,velocity:T,seek:b,settled:w,useBaseFriction:O,useBaseDuration:N,useFriction:H,useDuration:R};return F}function pD(e,t,r,l,i){const s=i.measure(10),c=i.measure(50),f=ql(.1,.99);let d=!1;function h(){return!(d||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function v(w){if(!h())return;const E=e.reachedMin(t.get())?"min":"max",A=St(e[E]-t.get()),T=r.get()-t.get(),N=f.constrain(A/c);r.subtract(T*N),!w&&St(T)<s&&(r.set(e.constrain(r.get())),l.useDuration(25).useBaseFriction())}function g(w){d=!w}return{shouldConstrain:h,constrain:v,toggleActive:g}}function vD(e,t,r,l,i){const s=ql(-t+e,0),c=g(),f=v(),d=b();function h(E,A){return ho(E,A)<=1}function v(){const E=c[0],A=fr(c),T=c.lastIndexOf(E),N=c.indexOf(A)+1;return ql(T,N)}function g(){return r.map((E,A)=>{const{min:T,max:N}=s,O=s.constrain(E),R=!A,H=nm(r,A);return R?N:H||h(T,O)?T:h(N,O)?N:O}).map(E=>parseFloat(E.toFixed(3)))}function b(){if(t<=e+i)return[s.max];if(l==="keepSnaps")return c;const{min:E,max:A}=f;return c.slice(E,A)}return{snapsContained:d,scrollContainLimit:f}}function gD(e,t,r){const l=t[0],i=r?l-e:fr(t);return{limit:ql(i,l)}}function yD(e,t,r,l){const s=t.min+.1,c=t.max+.1,{reachedMin:f,reachedMax:d}=ql(s,c);function h(b){return b===1?d(r.get()):b===-1?f(r.get()):!1}function v(b){if(!h(b))return;const w=e*(b*-1);l.forEach(E=>E.add(w))}return{loop:v}}function bD(e){const{max:t,length:r}=e;function l(s){const c=s-t;return r?c/-r:0}return{get:l}}function xD(e,t,r,l,i){const{startEdge:s,endEdge:c}=e,{groupSlides:f}=i,d=g().map(t.measure),h=b(),v=w();function g(){return f(l).map(A=>fr(A)[c]-A[0][s]).map(St)}function b(){return l.map(A=>r[s]-A[s]).map(A=>-St(A))}function w(){return f(h).map(A=>A[0]).map((A,T)=>A+d[T])}return{snaps:h,snapsAligned:v}}function wD(e,t,r,l,i,s){const{groupSlides:c}=i,{min:f,max:d}=l,h=v();function v(){const b=c(s),w=!e||t==="keepSnaps";return r.length===1?[s]:w?b:b.slice(f,d).map((E,A,T)=>{const N=!A,O=nm(T,A);if(N){const R=fr(T[0])+1;return e6(R)}if(O){const R=Go(s)-fr(T)[0]+1;return e6(R,fr(T)[0])}return E})}return{slideRegistry:h}}function SD(e,t,r,l,i){const{reachedAny:s,removeOffset:c,constrain:f}=l;function d(E){return E.concat().sort((A,T)=>St(A)-St(T))[0]}function h(E){const A=e?c(E):f(E),T=t.map((O,R)=>({diff:v(O-A,0),index:R})).sort((O,R)=>St(O.diff)-St(R.diff)),{index:N}=T[0];return{index:N,distance:A}}function v(E,A){const T=[E,E+r,E-r];if(!e)return E;if(!A)return d(T);const N=T.filter(O=>tm(O)===A);return N.length?d(N):fr(T)-r}function g(E,A){const T=t[E]-i.get(),N=v(T,A);return{index:E,distance:N}}function b(E,A){const T=i.get()+E,{index:N,distance:O}=h(T),R=!e&&s(T);if(!A||R)return{index:N,distance:E};const H=t[N]-O,F=E+v(H,0);return{index:N,distance:F}}return{byDistance:b,byIndex:g,shortcut:v}}function AD(e,t,r,l,i,s,c){function f(g){const b=g.distance,w=g.index!==t.get();s.add(b),b&&(l.duration()?e.start():(e.update(),e.render(1),e.update())),w&&(r.set(t.get()),t.set(g.index),c.emit("select"))}function d(g,b){const w=i.byDistance(g,b);f(w)}function h(g,b){const w=t.clone().set(g),E=i.byIndex(w.get(),b);f(E)}return{distance:d,index:h}}function MD(e,t,r,l,i,s,c,f){const d={passive:!0,capture:!0};let h=0;function v(w){if(!f)return;function E(A){if(new Date().getTime()-h>10)return;c.emit("slideFocusStart"),e.scrollLeft=0;const O=r.findIndex(R=>R.includes(A));em(O)&&(i.useDuration(0),l.index(O,0),c.emit("slideFocus"))}s.add(document,"keydown",g,!1),t.forEach((A,T)=>{s.add(A,"focus",N=>{(Sc(f)||f(w,N))&&E(T)},d)})}function g(w){w.code==="Tab"&&(h=new Date().getTime())}return{init:v}}function co(e){let t=e;function r(){return t}function l(d){t=c(d)}function i(d){t+=c(d)}function s(d){t-=c(d)}function c(d){return em(d)?d:d.get()}return{get:r,set:l,add:i,subtract:s}}function r8(e,t){const r=e.scroll==="x"?c:f,l=t.style;let i=null,s=!1;function c(b){return`translate3d(${b}px,0px,0px)`}function f(b){return`translate3d(0px,${b}px,0px)`}function d(b){if(s)return;const w=lD(e.direction(b));w!==i&&(l.transform=r(w),i=w)}function h(b){s=!b}function v(){s||(l.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:v,to:d,toggleActive:h}}function ED(e,t,r,l,i,s,c,f,d){const v=So(i),g=So(i).reverse(),b=N().concat(O());function w(G,V){return G.reduce((te,de)=>te-i[de],V)}function E(G,V){return G.reduce((te,de)=>w(te,V)>0?te.concat([de]):te,[])}function A(G){return s.map((V,te)=>({start:V-l[te]+.5+G,end:V+t-.5+G}))}function T(G,V,te){const de=A(V);return G.map(ce=>{const he=te?0:-r,De=te?r:0,we=te?"end":"start",Ce=de[ce][we];return{index:ce,loopPoint:Ce,slideLocation:co(-1),translate:r8(e,d[ce]),target:()=>f.get()>Ce?he:De}})}function N(){const G=c[0],V=E(g,G);return T(V,r,!1)}function O(){const G=t-c[0]-1,V=E(v,G);return T(V,-r,!0)}function R(){return b.every(({index:G})=>{const V=v.filter(te=>te!==G);return w(V,t)<=.1})}function H(){b.forEach(G=>{const{target:V,translate:te,slideLocation:de}=G,ce=V();ce!==de.get()&&(te.to(ce),de.set(ce))})}function F(){b.forEach(G=>G.translate.clear())}return{canLoop:R,clear:F,loop:H,loopPoints:b}}function TD(e,t,r){let l,i=!1;function s(d){if(!r)return;function h(v){for(const g of v)if(g.type==="childList"){d.reInit(),t.emit("slidesChanged");break}}l=new MutationObserver(v=>{i||(Sc(r)||r(d,v))&&h(v)}),l.observe(e,{childList:!0})}function c(){l&&l.disconnect(),i=!0}return{init:s,destroy:c}}function CD(e,t,r,l){const i={};let s=null,c=null,f,d=!1;function h(){f=new IntersectionObserver(E=>{d||(E.forEach(A=>{const T=t.indexOf(A.target);i[T]=A}),s=null,c=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:l}),t.forEach(E=>f.observe(E))}function v(){f&&f.disconnect(),d=!0}function g(E){return Ao(i).reduce((A,T)=>{const N=parseInt(T),{isIntersecting:O}=i[N];return(E&&O||!E&&!O)&&A.push(N),A},[])}function b(E=!0){if(E&&s)return s;if(!E&&c)return c;const A=g(E);return E&&(s=A),E||(c=A),A}return{init:h,destroy:v,get:b}}function kD(e,t,r,l,i,s){const{measureSize:c,startEdge:f,endEdge:d}=e,h=r[0]&&i,v=E(),g=A(),b=r.map(c),w=T();function E(){if(!h)return 0;const O=r[0];return St(t[f]-O[f])}function A(){if(!h)return 0;const O=s.getComputedStyle(fr(l));return parseFloat(O.getPropertyValue(`margin-${d}`))}function T(){return r.map((O,R,H)=>{const F=!R,I=nm(H,R);return F?b[R]+v:I?b[R]+g:H[R+1][f]-O[f]}).map(St)}return{slideSizes:b,slideSizesWithGaps:w,startGap:v,endGap:g}}function ND(e,t,r,l,i,s,c,f,d){const{startEdge:h,endEdge:v,direction:g}=e,b=em(r);function w(N,O){return So(N).filter(R=>R%O===0).map(R=>N.slice(R,R+O))}function E(N){return N.length?So(N).reduce((O,R,H)=>{const F=fr(O)||0,I=F===0,G=R===Go(N),V=i[h]-s[F][h],te=i[h]-s[R][v],de=!l&&I?g(c):0,ce=!l&&G?g(f):0,he=St(te-ce-(V+de));return H&&he>t+d&&O.push(R),G&&O.push(N.length),O},[]).map((O,R,H)=>{const F=Math.max(H[R-1]||0);return N.slice(F,O)}):[]}function A(N){return b?w(N,r):E(N)}return{groupSlides:A}}function zD(e,t,r,l,i,s,c){const{align:f,axis:d,direction:h,startIndex:v,loop:g,duration:b,dragFree:w,dragThreshold:E,inViewThreshold:A,slidesToScroll:T,skipSnaps:N,containScroll:O,watchResize:R,watchSlides:H,watchDrag:F,watchFocus:I}=s,G=2,V=fD(),te=V.measure(t),de=r.map(V.measure),ce=sD(d,h),he=ce.measureSize(te),De=dD(he),we=iD(f,he),Ce=!g&&!!O,Y=g||!!O,{slideSizes:ne,slideSizesWithGaps:Q,startGap:ie,endGap:be}=kD(ce,te,de,r,Y,i),j=ND(ce,he,T,g,te,de,ie,be,G),{snaps:W,snapsAligned:le}=xD(ce,we,te,de,j),se=-fr(W)+fr(Q),{snapsContained:Se,scrollContainLimit:ke}=vD(he,se,le,O,G),ve=Ce?Se:le,{limit:Be}=gD(se,ve,g),Oe=n8(Go(ve),v,g),Ze=Oe.clone(),Ye=So(r),ye=({dragHandler:Hr,scrollBody:i0,scrollBounds:o0,options:{loop:vr}})=>{vr||o0.constrain(Hr.pointerDown()),i0.seek()},Pe=({scrollBody:Hr,translate:i0,location:o0,offsetLocation:vr,previousLocation:ln,scrollLooper:gr,slideLooper:on,dragHandler:Ec,animation:Tc,eventHandler:Po,scrollBounds:Il,options:{loop:dl}},hl)=>{const yr=Hr.settled(),Xl=!Il.shouldConstrain(),ba=dl?yr:yr&&Xl,Vo=ba&&!Ec.pointerDown();Vo&&Tc.stop();const Io=o0.get()*hl+ln.get()*(1-hl);vr.set(Io),dl&&(gr.loop(Hr.direction()),on.loop()),i0.to(vr.get()),Vo&&Po.emit("settle"),ba||Po.emit("scroll")},Ke=oD(l,i,()=>ye(l0),Hr=>Pe(l0,Hr)),gt=.68,qt=ve[Oe.get()],$t=co(qt),Kt=co(qt),Mt=co(qt),ir=co(qt),Br=mD($t,Mt,Kt,ir,b,gt),n0=SD(g,ve,se,Be,ir),r0=AD(Ke,Oe,Ze,Br,n0,ir,c),tn=bD(Be),Fo=Mo(),Yo=CD(t,r,c,A),{slideRegistry:a0}=wD(Ce,O,ve,ke,j,Ye),Vl=MD(e,r,a0,r0,Br,Fo,c,I),l0={ownerDocument:l,ownerWindow:i,eventHandler:c,containerRect:te,slideRects:de,animation:Ke,axis:ce,dragHandler:uD(ce,e,l,i,ir,cD(ce,i),$t,Ke,r0,Br,n0,Oe,c,De,w,E,N,gt,F),eventStore:Fo,percentOfView:De,index:Oe,indexPrevious:Ze,limit:Be,location:$t,offsetLocation:Mt,previousLocation:Kt,options:s,resizeHandler:hD(t,c,i,r,ce,R,V),scrollBody:Br,scrollBounds:pD(Be,Mt,ir,Br,De),scrollLooper:yD(se,Be,Mt,[$t,Mt,Kt,ir]),scrollProgress:tn,scrollSnapList:ve.map(tn.get),scrollSnaps:ve,scrollTarget:n0,scrollTo:r0,slideLooper:ED(ce,he,se,ne,Q,W,ve,Mt,r),slideFocus:Vl,slidesHandler:TD(t,c,H),slidesInView:Yo,slideIndexes:Ye,slideRegistry:a0,slidesToScroll:j,target:ir,translate:r8(ce,t)};return l0}function DD(){let e={},t;function r(h){t=h}function l(h){return e[h]||[]}function i(h){return l(h).forEach(v=>v(t,h)),d}function s(h,v){return e[h]=l(h).concat([v]),d}function c(h,v){return e[h]=l(h).filter(g=>g!==v),d}function f(){e={}}const d={init:r,emit:i,off:c,on:s,clear:f};return d}const OD={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function RD(e){function t(s,c){return t8(s,c||{})}function r(s){const c=s.breakpoints||{},f=Ao(c).filter(d=>e.matchMedia(d).matches).map(d=>c[d]).reduce((d,h)=>t(d,h),{});return t(s,f)}function l(s){return s.map(c=>Ao(c.breakpoints||{})).reduce((c,f)=>c.concat(f),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:l}}function LD(e){let t=[];function r(s,c){return t=c.filter(({options:f})=>e.optionsAtMedia(f).active!==!1),t.forEach(f=>f.init(s,e)),c.reduce((f,d)=>Object.assign(f,{[d.name]:d}),{})}function l(){t=t.filter(s=>s.destroy())}return{init:r,destroy:l}}function Qu(e,t,r){const l=e.ownerDocument,i=l.defaultView,s=RD(i),c=LD(s),f=Mo(),d=DD(),{mergeOptions:h,optionsAtMedia:v,optionsMediaQueries:g}=s,{on:b,off:w,emit:E}=d,A=ce;let T=!1,N,O=h(OD,Qu.globalOptions),R=h(O),H=[],F,I,G;function V(){const{container:Ye,slides:ye}=R;I=(J1(Ye)?e.querySelector(Ye):Ye)||e.children[0];const Ke=J1(ye)?I.querySelectorAll(ye):ye;G=[].slice.call(Ke||I.children)}function te(Ye){const ye=zD(e,I,G,l,i,Ye,d);if(Ye.loop&&!ye.slideLooper.canLoop()){const Pe=Object.assign({},Ye,{loop:!1});return te(Pe)}return ye}function de(Ye,ye){T||(O=h(O,Ye),R=v(O),H=ye||H,V(),N=te(R),g([O,...H.map(({options:Pe})=>Pe)]).forEach(Pe=>f.add(Pe,"change",ce)),R.active&&(N.translate.to(N.location.get()),N.animation.init(),N.slidesInView.init(),N.slideFocus.init(Ze),N.eventHandler.init(Ze),N.resizeHandler.init(Ze),N.slidesHandler.init(Ze),N.options.loop&&N.slideLooper.loop(),I.offsetParent&&G.length&&N.dragHandler.init(Ze),F=c.init(Ze,H)))}function ce(Ye,ye){const Pe=j();he(),de(h({startIndex:Pe},Ye),ye),d.emit("reInit")}function he(){N.dragHandler.destroy(),N.eventStore.clear(),N.translate.clear(),N.slideLooper.clear(),N.resizeHandler.destroy(),N.slidesHandler.destroy(),N.slidesInView.destroy(),N.animation.destroy(),c.destroy(),f.clear()}function De(){T||(T=!0,f.clear(),he(),d.emit("destroy"),d.clear())}function we(Ye,ye,Pe){!R.active||T||(N.scrollBody.useBaseFriction().useDuration(ye===!0?0:R.duration),N.scrollTo.index(Ye,Pe||0))}function Ce(Ye){const ye=N.index.add(1).get();we(ye,Ye,-1)}function Y(Ye){const ye=N.index.add(-1).get();we(ye,Ye,1)}function ne(){return N.index.add(1).get()!==j()}function Q(){return N.index.add(-1).get()!==j()}function ie(){return N.scrollSnapList}function be(){return N.scrollProgress.get(N.offsetLocation.get())}function j(){return N.index.get()}function W(){return N.indexPrevious.get()}function le(){return N.slidesInView.get()}function se(){return N.slidesInView.get(!1)}function Se(){return F}function ke(){return N}function ve(){return e}function Be(){return I}function Oe(){return G}const Ze={canScrollNext:ne,canScrollPrev:Q,containerNode:Be,internalEngine:ke,destroy:De,off:w,on:b,emit:E,plugins:Se,previousScrollSnap:W,reInit:A,rootNode:ve,scrollNext:Ce,scrollPrev:Y,scrollProgress:be,scrollSnapList:ie,scrollTo:we,selectedScrollSnap:j,slideNodes:Oe,slidesInView:le,slidesNotInView:se};return de(t,r),setTimeout(()=>d.emit("init"),0),Ze}Qu.globalOptions=void 0;function rm(e={},t=[]){const r=M.useRef(e),l=M.useRef(t),[i,s]=M.useState(),[c,f]=M.useState(),d=M.useCallback(()=>{i&&i.reInit(r.current,l.current)},[i]);return M.useEffect(()=>{Jh(r.current,e)||(r.current=e,d())},[e,d]),M.useEffect(()=>{rD(l.current,t)||(l.current=t,d())},[t,d]),M.useEffect(()=>{if(nD()&&c){Qu.globalOptions=rm.globalOptions;const h=Qu(c,r.current,l.current);return s(h),()=>h.destroy()}else s(void 0)},[c,s]),[f,i]}rm.globalOptions=void 0;var _D=Symbol.for("react.lazy"),Zu=rh[" use ".trim().toString()];function jD(e){return typeof e=="object"&&e!==null&&"then"in e}function a8(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_D&&"_payload"in e&&jD(e._payload)}function BD(e){const t=qD(e),r=M.forwardRef((l,i)=>{let{children:s,...c}=l;a8(s)&&typeof Zu=="function"&&(s=Zu(s._payload));const f=M.Children.toArray(s),d=f.find(GD);if(d){const h=d.props.children,v=f.map(g=>g===d?M.Children.count(h)>1?M.Children.only(null):M.isValidElement(h)?h.props.children:null:g);return k.jsx(t,{...c,ref:i,children:M.isValidElement(h)?M.cloneElement(h,void 0,v):null})}return k.jsx(t,{...c,ref:i,children:s})});return r.displayName=`${e}.Slot`,r}var HD=BD("Slot");function qD(e){const t=M.forwardRef((r,l)=>{let{children:i,...s}=r;if(a8(i)&&typeof Zu=="function"&&(i=Zu(i._payload)),M.isValidElement(i)){const c=YD(i),f=FD(s,i.props);return i.type!==M.Fragment&&(f.ref=l?Gl(l,c):c),M.cloneElement(i,f)}return M.Children.count(i)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var UD=Symbol("radix.slottable");function GD(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===UD}function FD(e,t){const r={...t};for(const l in t){const i=e[l],s=t[l];/^on[A-Z]/.test(l)?i&&s?r[l]=(...f)=>{const d=s(...f);return i(...f),d}:i&&(r[l]=i):l==="style"?r[l]={...i,...s}:l==="className"&&(r[l]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function YD(e){var l,i;let t=(l=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:l.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const t6=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,n6=_6,PD=(e,t)=>r=>{var l;if((t==null?void 0:t.variants)==null)return n6(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:s}=t,c=Object.keys(i).map(h=>{const v=r==null?void 0:r[h],g=s==null?void 0:s[h];if(v===null)return null;const b=t6(v)||t6(g);return i[h][b]}),f=r&&Object.entries(r).reduce((h,v)=>{let[g,b]=v;return b===void 0||(h[g]=b),h},{}),d=t==null||(l=t.compoundVariants)===null||l===void 0?void 0:l.reduce((h,v)=>{let{class:g,className:b,...w}=v;return Object.entries(w).every(E=>{let[A,T]=E;return Array.isArray(T)?T.includes({...s,...f}[A]):{...s,...f}[A]===T})?[...h,g,b]:h},[]);return n6(e,c,d,r==null?void 0:r.class,r==null?void 0:r.className)},VD=PD("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),am=M.forwardRef(({className:e,variant:t,size:r,asChild:l=!1,...i},s)=>{const c=l?HD:"button";return k.jsx(c,{className:ct(VD({variant:t,size:r,className:e})),ref:s,...i})});am.displayName="Button";const l8=M.createContext(null);function Ac(){const e=M.useContext(l8);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const i8=M.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:l,className:i,children:s,...c},f)=>{const[d,h]=rm({...t,axis:e==="horizontal"?"x":"y"},l),[v,g]=M.useState(!1),[b,w]=M.useState(!1),E=M.useCallback(O=>{O&&(g(O.canScrollPrev()),w(O.canScrollNext()))},[]),A=M.useCallback(()=>{h==null||h.scrollPrev()},[h]),T=M.useCallback(()=>{h==null||h.scrollNext()},[h]),N=M.useCallback(O=>{O.key==="ArrowLeft"?(O.preventDefault(),A()):O.key==="ArrowRight"&&(O.preventDefault(),T())},[A,T]);return M.useEffect(()=>{!h||!r||r(h)},[h,r]),M.useEffect(()=>{if(h)return E(h),h.on("reInit",E),h.on("select",E),()=>{h==null||h.off("select",E)}},[h,E]),k.jsx(l8.Provider,{value:{carouselRef:d,api:h,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:A,scrollNext:T,canScrollPrev:v,canScrollNext:b},children:k.jsx("div",{ref:f,onKeyDownCapture:N,className:ct("relative",i),role:"region","aria-roledescription":"carousel",...c,children:s})})});i8.displayName="Carousel";const o8=M.forwardRef(({className:e,...t},r)=>{const{carouselRef:l,orientation:i}=Ac();return k.jsx("div",{ref:l,className:"overflow-hidden",children:k.jsx("div",{ref:r,className:ct("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});o8.displayName="CarouselContent";const s8=M.forwardRef(({className:e,...t},r)=>{const{orientation:l}=Ac();return k.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:ct("min-w-0 shrink-0 grow-0 basis-full",l==="horizontal"?"pl-4":"pt-4",e),...t})});s8.displayName="CarouselItem";const u8=M.forwardRef(({className:e,variant:t="outline",size:r="icon",...l},i)=>{const{orientation:s,scrollPrev:c,canScrollPrev:f}=Ac();return k.jsxs(am,{ref:i,variant:t,size:r,className:ct("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!f,onClick:c,...l,children:[k.jsx(jS,{className:"h-4 w-4"}),k.jsx("span",{className:"sr-only",children:"Previous slide"})]})});u8.displayName="CarouselPrevious";const c8=M.forwardRef(({className:e,variant:t="outline",size:r="icon",...l},i)=>{const{orientation:s,scrollNext:c,canScrollNext:f}=Ac();return k.jsxs(am,{ref:i,variant:t,size:r,className:ct("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!f,onClick:c,...l,children:[k.jsx(ev,{className:"h-4 w-4"}),k.jsx("span",{className:"sr-only",children:"Next slide"})]})});c8.displayName="CarouselNext";function ID(e){return(e.split("/").pop()||e).replace(/\.(png|jpg|jpeg|gif|svg|webp)$/i,"").replace(/[_-]/g," ").replace(/\s+/g," ").trim()}function XD(e){return`/raw/${e}`}function $D({path:e,globs:t=null,caption:r,captionLabel:l,title:i,subtitle:s,limit:c=null,page:f=0}){const{paths:d,isLoading:h,isEmpty:v}=Kk({path:e,globs:t,limit:c,page:f}),g=Zk(d.length),b=M.useMemo(()=>d.map(w=>({src:XD(w),label:ID(w)})),[d]);return h?k.jsx("div",{className:"not-prose py-4 md:py-6",children:k.jsx("div",{className:"grid grid-cols-3 gap-2 sm:gap-4 max-w-[var(--gallery-width)] mx-auto",children:[...Array(3)].map((w,E)=>k.jsx("div",{className:"aspect-[4/3] bg-muted/30 animate-pulse",style:{animationDelay:`${E*100}ms`}},E))})}):v?k.jsx("div",{className:"not-prose py-16 text-center",children:k.jsxs("div",{className:"inline-flex items-center gap-3 text-muted-foreground/60",children:[k.jsx(nv,{className:"h-4 w-4"}),k.jsx("span",{className:"font-mono text-sm tracking-wide",children:"no image(s) found"})]})}):k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"rounded-lg not-prose flex flex-col gap-0 relative p-4 -mx-[calc((var(--gallery-width)-var(--content-width))/2+var(--page-padding))]",children:[k.jsx(Jz,{title:i,subtitle:s}),k.jsxs(i8,{children:[k.jsx(o8,{children:b.map((w,E)=>k.jsx(s8,{className:"mx-auto md:basis-1/2 lg:basis-1/3 cursor-pointer transition-transform duration-700 ease-out-expo hover:scale-[1.02]",onClick:()=>g.open(E),children:k.jsx(Wk,{src:w.src,alt:w.label})},E))}),b.length>3&&k.jsxs(k.Fragment,{children:[k.jsx(u8,{}),k.jsx(c8,{})]})]}),k.jsx(eD,{caption:r,label:l})]}),g.isOpen&&g.selectedIndex!==null&&k.jsx(YC,{images:b,selectedIndex:g.selectedIndex,onClose:g.close,onPrevious:g.goToPrevious,onNext:g.goToNext})]})}/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function f8(e){return typeof e>"u"||e===null}function KD(e){return typeof e=="object"&&e!==null}function QD(e){return Array.isArray(e)?e:f8(e)?[]:[e]}function ZD(e,t){var r,l,i,s;if(t)for(s=Object.keys(t),r=0,l=s.length;r<l;r+=1)i=s[r],e[i]=t[i];return e}function WD(e,t){var r="",l;for(l=0;l<t;l+=1)r+=e;return r}function JD(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var eO=f8,tO=KD,nO=QD,rO=WD,aO=JD,lO=ZD,fn={isNothing:eO,isObject:tO,toArray:nO,repeat:rO,isNegativeZero:aO,extend:lO};function d8(e,t){var r="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
453
-
454
- `+e.mark.snippet),l+" "+r):l}function Eo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=d8(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Eo.prototype=Object.create(Error.prototype);Eo.prototype.constructor=Eo;Eo.prototype.toString=function(t){return this.name+": "+d8(this,t)};var oa=Eo;function T1(e,t,r,l,i){var s="",c="",f=Math.floor(i/2)-1;return l-t>f&&(s=" ... ",t=l-f+s.length),r-l>f&&(c=" ...",r=l+f-c.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+c,pos:l-t+s.length}}function C1(e,t){return fn.repeat(" ",t-e.length)+e}function iO(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,l=[0],i=[],s,c=-1;s=r.exec(e.buffer);)i.push(s.index),l.push(s.index+s[0].length),e.position<=s.index&&c<0&&(c=l.length-2);c<0&&(c=l.length-1);var f="",d,h,v=Math.min(e.line+t.linesAfter,i.length).toString().length,g=t.maxLength-(t.indent+v+3);for(d=1;d<=t.linesBefore&&!(c-d<0);d++)h=T1(e.buffer,l[c-d],i[c-d],e.position-(l[c]-l[c-d]),g),f=fn.repeat(" ",t.indent)+C1((e.line-d+1).toString(),v)+" | "+h.str+`
455
- `+f;for(h=T1(e.buffer,l[c],i[c],e.position,g),f+=fn.repeat(" ",t.indent)+C1((e.line+1).toString(),v)+" | "+h.str+`
456
- `,f+=fn.repeat("-",t.indent+v+3+h.pos)+`^
457
- `,d=1;d<=t.linesAfter&&!(c+d>=i.length);d++)h=T1(e.buffer,l[c+d],i[c+d],e.position-(l[c]-l[c+d]),g),f+=fn.repeat(" ",t.indent)+C1((e.line+d+1).toString(),v)+" | "+h.str+`
458
- `;return f.replace(/\n$/,"")}var oO=iO,sO=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],uO=["scalar","sequence","mapping"];function cO(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(l){t[String(l)]=r})}),t}function fO(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(sO.indexOf(r)===-1)throw new oa('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=cO(t.styleAliases||null),uO.indexOf(this.kind)===-1)throw new oa('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var rn=fO;function r6(e,t){var r=[];return e[t].forEach(function(l){var i=r.length;r.forEach(function(s,c){s.tag===l.tag&&s.kind===l.kind&&s.multi===l.multi&&(i=c)}),r[i]=l}),r}function dO(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function l(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(l);return e}function th(e){return this.extend(e)}th.prototype.extend=function(t){var r=[],l=[];if(t instanceof rn)l.push(t);else if(Array.isArray(t))l=l.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(l=l.concat(t.explicit));else throw new oa("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof rn))throw new oa("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new oa("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new oa("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(s){if(!(s instanceof rn))throw new oa("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(th.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(l),i.compiledImplicit=r6(i,"implicit"),i.compiledExplicit=r6(i,"explicit"),i.compiledTypeMap=dO(i.compiledImplicit,i.compiledExplicit),i};var hO=th,mO=new rn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),pO=new rn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),vO=new rn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),gO=new hO({explicit:[mO,pO,vO]});function yO(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function bO(){return null}function xO(e){return e===null}var wO=new rn("tag:yaml.org,2002:null",{kind:"scalar",resolve:yO,construct:bO,predicate:xO,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function SO(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function AO(e){return e==="true"||e==="True"||e==="TRUE"}function MO(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var EO=new rn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:SO,construct:AO,predicate:MO,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function TO(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function CO(e){return 48<=e&&e<=55}function kO(e){return 48<=e&&e<=57}function NO(e){if(e===null)return!1;var t=e.length,r=0,l=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;l=!0}return l&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!TO(e.charCodeAt(r)))return!1;l=!0}return l&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!CO(e.charCodeAt(r)))return!1;l=!0}return l&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!kO(e.charCodeAt(r)))return!1;l=!0}return!(!l||i==="_")}function zO(e){var t=e,r=1,l;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),l=t[0],(l==="-"||l==="+")&&(l==="-"&&(r=-1),t=t.slice(1),l=t[0]),t==="0")return 0;if(l==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function DO(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!fn.isNegativeZero(e)}var OO=new rn("tag:yaml.org,2002:int",{kind:"scalar",resolve:NO,construct:zO,predicate:DO,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),RO=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function LO(e){return!(e===null||!RO.test(e)||e[e.length-1]==="_")}function _O(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var jO=/^[-+]?[0-9]+e/;function BO(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(fn.isNegativeZero(e))return"-0.0";return r=e.toString(10),jO.test(r)?r.replace("e",".e"):r}function HO(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||fn.isNegativeZero(e))}var qO=new rn("tag:yaml.org,2002:float",{kind:"scalar",resolve:LO,construct:_O,predicate:HO,represent:BO,defaultStyle:"lowercase"}),UO=gO.extend({implicit:[wO,EO,OO,qO]}),GO=UO,h8=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),m8=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function FO(e){return e===null?!1:h8.exec(e)!==null||m8.exec(e)!==null}function YO(e){var t,r,l,i,s,c,f,d=0,h=null,v,g,b;if(t=h8.exec(e),t===null&&(t=m8.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],l=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,l,i));if(s=+t[4],c=+t[5],f=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(v=+t[10],g=+(t[11]||0),h=(v*60+g)*6e4,t[9]==="-"&&(h=-h)),b=new Date(Date.UTC(r,l,i,s,c,f,d)),h&&b.setTime(b.getTime()-h),b}function PO(e){return e.toISOString()}var VO=new rn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:FO,construct:YO,instanceOf:Date,represent:PO});function IO(e){return e==="<<"||e===null}var XO=new rn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:IO}),lm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
459
- \r`;function $O(e){if(e===null)return!1;var t,r,l=0,i=e.length,s=lm;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;l+=6}return l%8===0}function KO(e){var t,r,l=e.replace(/[\r\n=]/g,""),i=l.length,s=lm,c=0,f=[];for(t=0;t<i;t++)t%4===0&&t&&(f.push(c>>16&255),f.push(c>>8&255),f.push(c&255)),c=c<<6|s.indexOf(l.charAt(t));return r=i%4*6,r===0?(f.push(c>>16&255),f.push(c>>8&255),f.push(c&255)):r===18?(f.push(c>>10&255),f.push(c>>2&255)):r===12&&f.push(c>>4&255),new Uint8Array(f)}function QO(e){var t="",r=0,l,i,s=e.length,c=lm;for(l=0;l<s;l++)l%3===0&&l&&(t+=c[r>>18&63],t+=c[r>>12&63],t+=c[r>>6&63],t+=c[r&63]),r=(r<<8)+e[l];return i=s%3,i===0?(t+=c[r>>18&63],t+=c[r>>12&63],t+=c[r>>6&63],t+=c[r&63]):i===2?(t+=c[r>>10&63],t+=c[r>>4&63],t+=c[r<<2&63],t+=c[64]):i===1&&(t+=c[r>>2&63],t+=c[r<<4&63],t+=c[64],t+=c[64]),t}function ZO(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var WO=new rn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:$O,construct:KO,predicate:ZO,represent:QO}),JO=Object.prototype.hasOwnProperty,eR=Object.prototype.toString;function tR(e){if(e===null)return!0;var t=[],r,l,i,s,c,f=e;for(r=0,l=f.length;r<l;r+=1){if(i=f[r],c=!1,eR.call(i)!=="[object Object]")return!1;for(s in i)if(JO.call(i,s))if(!c)c=!0;else return!1;if(!c)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function nR(e){return e!==null?e:[]}var rR=new rn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:tR,construct:nR}),aR=Object.prototype.toString;function lR(e){if(e===null)return!0;var t,r,l,i,s,c=e;for(s=new Array(c.length),t=0,r=c.length;t<r;t+=1){if(l=c[t],aR.call(l)!=="[object Object]"||(i=Object.keys(l),i.length!==1))return!1;s[t]=[i[0],l[i[0]]]}return!0}function iR(e){if(e===null)return[];var t,r,l,i,s,c=e;for(s=new Array(c.length),t=0,r=c.length;t<r;t+=1)l=c[t],i=Object.keys(l),s[t]=[i[0],l[i[0]]];return s}var oR=new rn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:lR,construct:iR}),sR=Object.prototype.hasOwnProperty;function uR(e){if(e===null)return!0;var t,r=e;for(t in r)if(sR.call(r,t)&&r[t]!==null)return!1;return!0}function cR(e){return e!==null?e:{}}var fR=new rn("tag:yaml.org,2002:set",{kind:"mapping",resolve:uR,construct:cR}),dR=GO.extend({implicit:[VO,XO],explicit:[WO,rR,oR,fR]}),ul=Object.prototype.hasOwnProperty,Wu=1,p8=2,v8=3,Ju=4,k1=1,hR=2,a6=3,mR=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,pR=/[\x85\u2028\u2029]/,vR=/[,\[\]\{\}]/,g8=/^(?:!|!!|![a-z\-]+!)$/i,y8=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function l6(e){return Object.prototype.toString.call(e)}function zr(e){return e===10||e===13}function Bl(e){return e===9||e===32}function Tn(e){return e===9||e===32||e===10||e===13}function qi(e){return e===44||e===91||e===93||e===123||e===125}function gR(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function yR(e){return e===120?2:e===117?4:e===85?8:0}function bR(e){return 48<=e&&e<=57?e-48:-1}function i6(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
460
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function xR(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function b8(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var x8=new Array(256),w8=new Array(256);for(var Hi=0;Hi<256;Hi++)x8[Hi]=i6(Hi)?1:0,w8[Hi]=i6(Hi);function wR(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||dR,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function S8(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=oO(r),new oa(t,r)}function Ne(e,t){throw S8(e,t)}function ec(e,t){e.onWarning&&e.onWarning.call(null,S8(e,t))}var o6={YAML:function(t,r,l){var i,s,c;t.version!==null&&Ne(t,"duplication of %YAML directive"),l.length!==1&&Ne(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),i===null&&Ne(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),c=parseInt(i[2],10),s!==1&&Ne(t,"unacceptable YAML version of the document"),t.version=l[0],t.checkLineBreaks=c<2,c!==1&&c!==2&&ec(t,"unsupported YAML version of the document")},TAG:function(t,r,l){var i,s;l.length!==2&&Ne(t,"TAG directive accepts exactly two arguments"),i=l[0],s=l[1],g8.test(i)||Ne(t,"ill-formed tag handle (first argument) of the TAG directive"),ul.call(t.tagMap,i)&&Ne(t,'there is a previously declared suffix for "'+i+'" tag handle'),y8.test(s)||Ne(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Ne(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function el(e,t,r,l){var i,s,c,f;if(t<r){if(f=e.input.slice(t,r),l)for(i=0,s=f.length;i<s;i+=1)c=f.charCodeAt(i),c===9||32<=c&&c<=1114111||Ne(e,"expected valid JSON character");else mR.test(f)&&Ne(e,"the stream contains non-printable characters");e.result+=f}}function s6(e,t,r,l){var i,s,c,f;for(fn.isObject(r)||Ne(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),c=0,f=i.length;c<f;c+=1)s=i[c],ul.call(t,s)||(b8(t,s,r[s]),l[s]=!0)}function Ui(e,t,r,l,i,s,c,f,d){var h,v;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),h=0,v=i.length;h<v;h+=1)Array.isArray(i[h])&&Ne(e,"nested arrays are not supported inside keys"),typeof i=="object"&&l6(i[h])==="[object Object]"&&(i[h]="[object Object]");if(typeof i=="object"&&l6(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(h=0,v=s.length;h<v;h+=1)s6(e,t,s[h],r);else s6(e,t,s,r);else!e.json&&!ul.call(r,i)&&ul.call(t,i)&&(e.line=c||e.line,e.lineStart=f||e.lineStart,e.position=d||e.position,Ne(e,"duplicated mapping key")),b8(t,i,s),delete r[i];return t}function im(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Ne(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Bt(e,t,r){for(var l=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Bl(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(zr(i))for(im(e),i=e.input.charCodeAt(e.position),l++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&l!==0&&e.lineIndent<r&&ec(e,"deficient indentation"),l}function Mc(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Tn(r)))}function om(e,t){t===1?e.result+=" ":t>1&&(e.result+=fn.repeat(`
461
- `,t-1))}function SR(e,t,r){var l,i,s,c,f,d,h,v,g=e.kind,b=e.result,w;if(w=e.input.charCodeAt(e.position),Tn(w)||qi(w)||w===35||w===38||w===42||w===33||w===124||w===62||w===39||w===34||w===37||w===64||w===96||(w===63||w===45)&&(i=e.input.charCodeAt(e.position+1),Tn(i)||r&&qi(i)))return!1;for(e.kind="scalar",e.result="",s=c=e.position,f=!1;w!==0;){if(w===58){if(i=e.input.charCodeAt(e.position+1),Tn(i)||r&&qi(i))break}else if(w===35){if(l=e.input.charCodeAt(e.position-1),Tn(l))break}else{if(e.position===e.lineStart&&Mc(e)||r&&qi(w))break;if(zr(w))if(d=e.line,h=e.lineStart,v=e.lineIndent,Bt(e,!1,-1),e.lineIndent>=t){f=!0,w=e.input.charCodeAt(e.position);continue}else{e.position=c,e.line=d,e.lineStart=h,e.lineIndent=v;break}}f&&(el(e,s,c,!1),om(e,e.line-d),s=c=e.position,f=!1),Bl(w)||(c=e.position+1),w=e.input.charCodeAt(++e.position)}return el(e,s,c,!1),e.result?!0:(e.kind=g,e.result=b,!1)}function AR(e,t){var r,l,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(el(e,l,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)l=e.position,e.position++,i=e.position;else return!0;else zr(r)?(el(e,l,i,!0),om(e,Bt(e,!1,t)),l=i=e.position):e.position===e.lineStart&&Mc(e)?Ne(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Ne(e,"unexpected end of the stream within a single quoted scalar")}function MR(e,t){var r,l,i,s,c,f;if(f=e.input.charCodeAt(e.position),f!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=l=e.position;(f=e.input.charCodeAt(e.position))!==0;){if(f===34)return el(e,r,e.position,!0),e.position++,!0;if(f===92){if(el(e,r,e.position,!0),f=e.input.charCodeAt(++e.position),zr(f))Bt(e,!1,t);else if(f<256&&x8[f])e.result+=w8[f],e.position++;else if((c=yR(f))>0){for(i=c,s=0;i>0;i--)f=e.input.charCodeAt(++e.position),(c=gR(f))>=0?s=(s<<4)+c:Ne(e,"expected hexadecimal character");e.result+=xR(s),e.position++}else Ne(e,"unknown escape sequence");r=l=e.position}else zr(f)?(el(e,r,l,!0),om(e,Bt(e,!1,t)),r=l=e.position):e.position===e.lineStart&&Mc(e)?Ne(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}Ne(e,"unexpected end of the stream within a double quoted scalar")}function ER(e,t){var r=!0,l,i,s,c=e.tag,f,d=e.anchor,h,v,g,b,w,E=Object.create(null),A,T,N,O;if(O=e.input.charCodeAt(e.position),O===91)v=93,w=!1,f=[];else if(O===123)v=125,w=!0,f={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),O=e.input.charCodeAt(++e.position);O!==0;){if(Bt(e,!0,t),O=e.input.charCodeAt(e.position),O===v)return e.position++,e.tag=c,e.anchor=d,e.kind=w?"mapping":"sequence",e.result=f,!0;r?O===44&&Ne(e,"expected the node content, but found ','"):Ne(e,"missed comma between flow collection entries"),T=A=N=null,g=b=!1,O===63&&(h=e.input.charCodeAt(e.position+1),Tn(h)&&(g=b=!0,e.position++,Bt(e,!0,t))),l=e.line,i=e.lineStart,s=e.position,Xi(e,t,Wu,!1,!0),T=e.tag,A=e.result,Bt(e,!0,t),O=e.input.charCodeAt(e.position),(b||e.line===l)&&O===58&&(g=!0,O=e.input.charCodeAt(++e.position),Bt(e,!0,t),Xi(e,t,Wu,!1,!0),N=e.result),w?Ui(e,f,E,T,A,N,l,i,s):g?f.push(Ui(e,null,E,T,A,N,l,i,s)):f.push(A),Bt(e,!0,t),O=e.input.charCodeAt(e.position),O===44?(r=!0,O=e.input.charCodeAt(++e.position)):r=!1}Ne(e,"unexpected end of the stream within a flow collection")}function TR(e,t){var r,l,i=k1,s=!1,c=!1,f=t,d=0,h=!1,v,g;if(g=e.input.charCodeAt(e.position),g===124)l=!1;else if(g===62)l=!0;else return!1;for(e.kind="scalar",e.result="";g!==0;)if(g=e.input.charCodeAt(++e.position),g===43||g===45)k1===i?i=g===43?a6:hR:Ne(e,"repeat of a chomping mode identifier");else if((v=bR(g))>=0)v===0?Ne(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?Ne(e,"repeat of an indentation width identifier"):(f=t+v-1,c=!0);else break;if(Bl(g)){do g=e.input.charCodeAt(++e.position);while(Bl(g));if(g===35)do g=e.input.charCodeAt(++e.position);while(!zr(g)&&g!==0)}for(;g!==0;){for(im(e),e.lineIndent=0,g=e.input.charCodeAt(e.position);(!c||e.lineIndent<f)&&g===32;)e.lineIndent++,g=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>f&&(f=e.lineIndent),zr(g)){d++;continue}if(e.lineIndent<f){i===a6?e.result+=fn.repeat(`
462
- `,s?1+d:d):i===k1&&s&&(e.result+=`
463
- `);break}for(l?Bl(g)?(h=!0,e.result+=fn.repeat(`
464
- `,s?1+d:d)):h?(h=!1,e.result+=fn.repeat(`
465
- `,d+1)):d===0?s&&(e.result+=" "):e.result+=fn.repeat(`
466
- `,d):e.result+=fn.repeat(`
467
- `,s?1+d:d),s=!0,c=!0,d=0,r=e.position;!zr(g)&&g!==0;)g=e.input.charCodeAt(++e.position);el(e,r,e.position,!1)}return!0}function u6(e,t){var r,l=e.tag,i=e.anchor,s=[],c,f=!1,d;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),d=e.input.charCodeAt(e.position);d!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Ne(e,"tab characters must not be used in indentation")),!(d!==45||(c=e.input.charCodeAt(e.position+1),!Tn(c))));){if(f=!0,e.position++,Bt(e,!0,-1)&&e.lineIndent<=t){s.push(null),d=e.input.charCodeAt(e.position);continue}if(r=e.line,Xi(e,t,v8,!1,!0),s.push(e.result),Bt(e,!0,-1),d=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&d!==0)Ne(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return f?(e.tag=l,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function CR(e,t,r){var l,i,s,c,f,d,h=e.tag,v=e.anchor,g={},b=Object.create(null),w=null,E=null,A=null,T=!1,N=!1,O;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=g),O=e.input.charCodeAt(e.position);O!==0;){if(!T&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Ne(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),s=e.line,(O===63||O===58)&&Tn(l))O===63?(T&&(Ui(e,g,b,w,E,null,c,f,d),w=E=A=null),N=!0,T=!0,i=!0):T?(T=!1,i=!0):Ne(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,O=l;else{if(c=e.line,f=e.lineStart,d=e.position,!Xi(e,r,p8,!1,!0))break;if(e.line===s){for(O=e.input.charCodeAt(e.position);Bl(O);)O=e.input.charCodeAt(++e.position);if(O===58)O=e.input.charCodeAt(++e.position),Tn(O)||Ne(e,"a whitespace character is expected after the key-value separator within a block mapping"),T&&(Ui(e,g,b,w,E,null,c,f,d),w=E=A=null),N=!0,T=!1,i=!1,w=e.tag,E=e.result;else if(N)Ne(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=h,e.anchor=v,!0}else if(N)Ne(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=h,e.anchor=v,!0}if((e.line===s||e.lineIndent>t)&&(T&&(c=e.line,f=e.lineStart,d=e.position),Xi(e,t,Ju,!0,i)&&(T?E=e.result:A=e.result),T||(Ui(e,g,b,w,E,A,c,f,d),w=E=A=null),Bt(e,!0,-1),O=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&O!==0)Ne(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return T&&Ui(e,g,b,w,E,null,c,f,d),N&&(e.tag=h,e.anchor=v,e.kind="mapping",e.result=g),N}function kR(e){var t,r=!1,l=!1,i,s,c;if(c=e.input.charCodeAt(e.position),c!==33)return!1;if(e.tag!==null&&Ne(e,"duplication of a tag property"),c=e.input.charCodeAt(++e.position),c===60?(r=!0,c=e.input.charCodeAt(++e.position)):c===33?(l=!0,i="!!",c=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do c=e.input.charCodeAt(++e.position);while(c!==0&&c!==62);e.position<e.length?(s=e.input.slice(t,e.position),c=e.input.charCodeAt(++e.position)):Ne(e,"unexpected end of the stream within a verbatim tag")}else{for(;c!==0&&!Tn(c);)c===33&&(l?Ne(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),g8.test(i)||Ne(e,"named tag handle cannot contain such characters"),l=!0,t=e.position+1)),c=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),vR.test(s)&&Ne(e,"tag suffix cannot contain flow indicator characters")}s&&!y8.test(s)&&Ne(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Ne(e,"tag name is malformed: "+s)}return r?e.tag=s:ul.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:Ne(e,'undeclared tag handle "'+i+'"'),!0}function NR(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Ne(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Tn(r)&&!qi(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Ne(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function zR(e){var t,r,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),t=e.position;l!==0&&!Tn(l)&&!qi(l);)l=e.input.charCodeAt(++e.position);return e.position===t&&Ne(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ul.call(e.anchorMap,r)||Ne(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Bt(e,!0,-1),!0}function Xi(e,t,r,l,i){var s,c,f,d=1,h=!1,v=!1,g,b,w,E,A,T;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=c=f=Ju===r||v8===r,l&&Bt(e,!0,-1)&&(h=!0,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)),d===1)for(;kR(e)||NR(e);)Bt(e,!0,-1)?(h=!0,f=s,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)):f=!1;if(f&&(f=h||i),(d===1||Ju===r)&&(Wu===r||p8===r?A=t:A=t+1,T=e.position-e.lineStart,d===1?f&&(u6(e,T)||CR(e,T,A))||ER(e,A)?v=!0:(c&&TR(e,A)||AR(e,A)||MR(e,A)?v=!0:zR(e)?(v=!0,(e.tag!==null||e.anchor!==null)&&Ne(e,"alias node should not have any properties")):SR(e,A,Wu===r)&&(v=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):d===0&&(v=f&&u6(e,T))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Ne(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),g=0,b=e.implicitTypes.length;g<b;g+=1)if(E=e.implicitTypes[g],E.resolve(e.result)){e.result=E.construct(e.result),e.tag=E.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ul.call(e.typeMap[e.kind||"fallback"],e.tag))E=e.typeMap[e.kind||"fallback"][e.tag];else for(E=null,w=e.typeMap.multi[e.kind||"fallback"],g=0,b=w.length;g<b;g+=1)if(e.tag.slice(0,w[g].tag.length)===w[g].tag){E=w[g];break}E||Ne(e,"unknown tag !<"+e.tag+">"),e.result!==null&&E.kind!==e.kind&&Ne(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+E.kind+'", not "'+e.kind+'"'),E.resolve(e.result,e.tag)?(e.result=E.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Ne(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||v}function DR(e){var t=e.position,r,l,i,s=!1,c;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(c=e.input.charCodeAt(e.position))!==0&&(Bt(e,!0,-1),c=e.input.charCodeAt(e.position),!(e.lineIndent>0||c!==37));){for(s=!0,c=e.input.charCodeAt(++e.position),r=e.position;c!==0&&!Tn(c);)c=e.input.charCodeAt(++e.position);for(l=e.input.slice(r,e.position),i=[],l.length<1&&Ne(e,"directive name must not be less than one character in length");c!==0;){for(;Bl(c);)c=e.input.charCodeAt(++e.position);if(c===35){do c=e.input.charCodeAt(++e.position);while(c!==0&&!zr(c));break}if(zr(c))break;for(r=e.position;c!==0&&!Tn(c);)c=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}c!==0&&im(e),ul.call(o6,l)?o6[l](e,l,i):ec(e,'unknown document directive "'+l+'"')}if(Bt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Bt(e,!0,-1)):s&&Ne(e,"directives end mark is expected"),Xi(e,e.lineIndent-1,Ju,!1,!0),Bt(e,!0,-1),e.checkLineBreaks&&pR.test(e.input.slice(t,e.position))&&ec(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Mc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Bt(e,!0,-1));return}if(e.position<e.length-1)Ne(e,"end of the stream or a document separator is expected");else return}function OR(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
468
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new wR(e,t),l=e.indexOf("\0");for(l!==-1&&(r.position=l,Ne(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)DR(r);return r.documents}function RR(e,t){var r=OR(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new oa("expected a single document in the stream, but found more")}}var LR=RR,_R={load:LR},jR=_R.load;function A8(e,t){if(!t||t===".")return e;const r=t.startsWith(".")?t.slice(1):t;if(!r)return e;const l=[];let i="",s=0;for(;s<r.length;){const f=r[s];if(f===".")i&&(l.push({type:"key",value:i}),i=""),s++;else if(f==="["){i&&(l.push({type:"key",value:i}),i="");const d=r.indexOf("]",s);if(d===-1)return;const h=r.slice(s+1,d);if(h==="")l.push({type:"all",value:0});else{const v=parseInt(h,10);if(isNaN(v))return;l.push({type:"index",value:v})}s=d+1}else i+=f,s++}i&&l.push({type:"key",value:i});let c=e;for(const f of l){if(c==null)return;if(f.type==="key"){if(typeof c!="object"||Array.isArray(c))return;c=c[f.value]}else if(f.type==="index"){if(!Array.isArray(c))return;c=c[f.value]}else if(f.type==="all"&&!Array.isArray(c))return}return c}function Cn(e){return e===null?"null":Array.isArray(e)?"array":typeof e=="object"?"object":typeof e=="boolean"?"boolean":typeof e=="number"?"number":"string"}function BR(e){if(Math.abs(e)<1e-4&&e!==0||Math.abs(e)>=1e4)return e.toExponential(1);if(Number.isInteger(e))return e.toString();const t=e.toString();return t.length>6?e.toPrecision(4):t}function To(e){return e===null?"null":typeof e=="boolean"?e?"true":"false":typeof e=="number"?BR(e):Array.isArray(e)?`[${e.length}]`:typeof e=="object"?"{...}":String(e)}function M8(e,t){if(t.endsWith(".yaml")||t.endsWith(".yml"))try{return jR(e)}catch{return null}if(t.endsWith(".json"))try{return JSON.parse(e)}catch{return null}return null}function HR(e){const r=(e.startsWith(".")?e.slice(1):e).split(".");return r[r.length-1].replace(/\[\d+\]/g,"")}function qR(e,t){const r={};for(const l of t){const i=A8(e,l);if(i===void 0)continue;const s=l.startsWith(".")?l.slice(1):l;let c;if(s.includes("["))c=s.replace(/\[\]/g,"").replace(/\[(\d+)\]/g,"_$1");else{const f=s.split(".");c=f[f.length-1]}r[c]=i}return r}function E8({entries:e}){return e.length===0?null:k.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(180px,1fr))] gap-x-6 gap-y-px",children:e.map(([t,r])=>{const l=Cn(r);return k.jsxs("div",{className:"flex items-baseline justify-between gap-2 py-1 group hover:bg-muted/30 -mx-1.5 px-1.5 rounded-sm transition-colors",children:[k.jsx("span",{className:"text-[11px] text-muted-foreground font-mono truncate",children:t}),k.jsx("span",{className:ct("text-[11px] font-mono tabular-nums font-medium shrink-0",l==="number"&&"text-foreground",l==="string"&&"text-amber-600 dark:text-amber-500",l==="boolean"&&"text-cyan-600 dark:text-cyan-500",l==="null"&&"text-muted-foreground/50"),children:l==="string"?`"${To(r)}"`:To(r)})]},t)})})}function tc({name:e,data:t,depth:r=0}){const[l,i]=M.useState(!1),s=Object.entries(t),c=s.filter(([,d])=>{const h=Cn(d);return h!=="object"&&h!=="array"}),f=s.filter(([,d])=>{const h=Cn(d);return h==="object"||h==="array"});return k.jsxs("div",{className:ct(r===0&&"mb-4 last:mb-0"),children:[k.jsxs("button",{onClick:()=>i(!l),className:ct("flex items-center gap-2 w-full text-left group mb-1.5",r===0&&"pb-1 border-b border-border/50"),children:[k.jsx("span",{className:ct("text-[10px] text-muted-foreground/60 transition-transform duration-150 select-none",l&&"-rotate-90"),children:l?"+":"-"}),k.jsx("span",{className:ct("font-mono text-[11px] uppercase tracking-widest",r===0?"text-foreground/80 font-semibold":"text-muted-foreground/70"),children:e.replace(/_/g," ")}),k.jsx("span",{className:"text-[9px] font-mono text-muted-foreground/40 ml-auto",children:s.length})]}),!l&&k.jsxs("div",{className:ct(r>0&&"pl-3 ml-1 border-l border-border/40"),children:[c.length>0&&k.jsx("div",{className:ct(f.length>0&&"mb-3"),children:k.jsx(E8,{entries:c})}),f.map(([d,h])=>{if(Cn(h)==="array"){const g=h;return k.jsxs("div",{className:"mb-2 last:mb-0",children:[k.jsxs("div",{className:"text-[10px] font-mono text-muted-foreground/60 uppercase tracking-wider mb-1",children:[d," [",g.length,"]"]}),k.jsx("div",{className:"pl-3 ml-1 border-l border-border/40",children:g.map((b,w)=>Cn(b)==="object"?k.jsx(tc,{name:`${w}`,data:b,depth:r+1},w):k.jsxs("div",{className:"text-[11px] font-mono text-foreground py-0.5",children:["[",w,"] ",To(b)]},w))})]},d)}return k.jsx(tc,{name:d,data:h,depth:r+1},d)})]})]})}function Co(e,t=0){const r=Object.entries(e);let l=0;for(const[,i]of r){const s=Cn(i);if(s==="object")l+=28+Co(i,t+1);else if(s==="array"){const c=i;l+=28;for(const f of c)Cn(f)==="object"?l+=24+Co(f,t+1):l+=24}else l+=24}return l}function UR(e,t){if(t<=1)return[e];const r=e.map(([,d])=>{const h=Cn(d);if(h==="object")return 28+Co(d);if(h==="array"){const v=d;let g=28;for(const b of v)Cn(b)==="object"?g+=24+Co(b):g+=24;return g}return 24}),i=r.reduce((d,h)=>d+h,0)/t,s=[];let c=[],f=0;for(let d=0;d<e.length;d++){const h=e[d],v=r[d];f>=i&&s.length<t-1&&c.length>0&&(s.push(c),c=[],f=0),c.push(h),f+=v}return c.length>0&&s.push(c),s}function GR({path:e,keys:t}){const{content:r,loading:l,error:i}=O6(e),s=M.useMemo(()=>{if(!r)return null;const A=M8(r,e);return A?t&&t.length>0?qR(A,t):A:null},[r,e,t]);if(l)return k.jsx("div",{className:"my-6 p-4 rounded border border-border/50 bg-card/30",children:k.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground/60",children:[k.jsx("div",{className:"w-3 h-3 border border-current border-t-transparent rounded-full animate-spin"}),k.jsx("span",{className:"text-[11px] font-mono",children:"loading parameters..."})]})});if(i)return k.jsx("div",{className:"my-6 p-3 rounded border border-destructive/30 bg-destructive/5",children:k.jsx("p",{className:"text-[11px] font-mono text-destructive",children:i})});if(!s)return k.jsx("div",{className:"my-6 p-3 rounded border border-border/50 bg-card/30",children:k.jsx("p",{className:"text-[11px] font-mono text-muted-foreground",children:"unable to parse config"})});const c=Object.entries(s),f=c.filter(([,A])=>{const T=Cn(A);return T!=="object"&&T!=="array"}),d=c.filter(([,A])=>{const T=Cn(A);return T==="object"||T==="array"}),h=Co(s),v=500,g=h>v?Math.min(Math.ceil(h/v),3):1,b=g>1&&d.length>1,w=b?UR(d,g):[d];e.split("/").pop();const E=([A,T])=>{if(Cn(T)==="array"){const O=T;return k.jsxs("div",{className:"mb-4 last:mb-0",children:[k.jsxs("div",{className:"text-[11px] font-mono text-foreground/80 uppercase tracking-widest font-semibold mb-1.5 pb-1 border-b border-border/50",children:[A.replace(/_/g," ")," [",O.length,"]"]}),k.jsx("div",{className:"pl-3 ml-1 border-l border-border/40",children:O.map((R,H)=>Cn(R)==="object"?k.jsx(tc,{name:`${H}`,data:R,depth:1},H):k.jsxs("div",{className:"text-[11px] font-mono text-foreground py-0.5",children:["[",H,"] ",To(R)]},H))})]},A)}return k.jsx(tc,{name:A,data:T,depth:0},A)};return k.jsx("div",{className:"my-6 not-prose",children:k.jsxs("div",{className:"rounded border border-border/60 bg-card/20 p-3 overflow-hidden",children:[f.length>0&&k.jsx("div",{className:ct(d.length>0&&"mb-4 pb-3 border-b border-border/30"),children:k.jsx(E8,{entries:f})}),b?k.jsx("div",{className:"grid gap-6",style:{gridTemplateColumns:`repeat(${w.length}, 1fr)`},children:w.map((A,T)=>k.jsx("div",{className:ct(T>0&&"border-l border-border/30 pl-6"),children:A.map(E)},T))}):d.map(E)]})})}function FR({path:e,keyPath:t,label:r,unit:l}){const{content:i,loading:s,error:c}=O6(e),{value:f,displayLabel:d}=M.useMemo(()=>{if(!i)return{value:void 0,displayLabel:""};const g=M8(i,e);if(!g)return{value:void 0,displayLabel:""};const b=A8(g,t),w=r||HR(t);return{value:b,displayLabel:w}},[i,e,t,r]);if(s)return k.jsx("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-muted/50 border border-border/50",children:k.jsx("span",{className:"w-2 h-2 border border-muted-foreground/40 border-t-transparent rounded-full animate-spin"})});if(c||f===void 0)return k.jsx("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-destructive/10 border border-destructive/30",children:k.jsx("span",{className:"text-[10px] font-mono text-destructive",children:"—"})});const h=Cn(f),v=To(f);return k.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md font-mono text-[11px]",children:[k.jsx("span",{className:"text-muted-foreground",children:d}),k.jsx("span",{className:"text-muted-foreground/40",children:"="}),k.jsx("span",{className:ct("font-medium tabular-nums",h==="number"&&"text-foreground",h==="string"&&"text-amber-600 dark:text-amber-500",h==="boolean"&&"text-cyan-600 dark:text-cyan-500",h==="null"&&"text-muted-foreground/50",h==="array"&&"text-purple-600 dark:text-purple-400",h==="object"&&"text-purple-600 dark:text-purple-400"),children:h==="string"?`"${v}"`:v}),l&&k.jsx("span",{className:"text-muted-foreground/60",children:l})]})}function lo(e){return(e==null?void 0:e.toString().toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-"))??""}const T8={Gallery:$D,ParameterTable:GR,ParameterBadge:FR,h1:e=>{const t=lo(e.children);return k.jsx("h1",{id:t,className:"text-2xl font-semibold tracking-tight mt-12 mb-4 first:mt-0",...e})},h2:e=>{const t=lo(e.children);return k.jsx("h2",{id:t,className:"text-xl font-semibold tracking-tight mt-10 mb-3 pb-2 border-b border-border",...e})},h3:e=>{const t=lo(e.children);return k.jsx("h3",{id:t,className:"text-lg font-medium tracking-tight mt-8 mb-2",...e})},h4:e=>{const t=lo(e.children);return k.jsx("h4",{id:t,className:"text-base font-medium mt-6 mb-2",...e})},h5:e=>{const t=lo(e.children);return k.jsx("h5",{id:t,className:"text-sm font-medium mt-4 mb-1",...e})},pre:e=>k.jsx("pre",{className:"not-prose w-full overflow-x-auto p-4 text-sm bg-muted/50 border border-border rounded-md font-mono my-6",...e}),code:e=>{var t;return(t=e.className)!=null&&t.includes("language-")?k.jsx("code",{...e}):k.jsx("code",{className:"font-mono text-[0.85em] bg-muted px-1.5 py-0.5 rounded text-primary",...e})},blockquote:e=>k.jsx("blockquote",{className:"border-l-2 border-primary pl-4 my-6 text-muted-foreground",...e}),ul:e=>k.jsx("ul",{className:"my-4 ml-6 list-disc marker:text-muted-foreground",...e}),ol:e=>k.jsx("ol",{className:"my-4 ml-6 list-decimal marker:text-muted-foreground",...e}),li:e=>k.jsx("li",{className:"mt-1.5",...e}),a:e=>k.jsx("a",{className:"text-primary hover:underline underline-offset-2",...e}),table:e=>k.jsx("div",{className:"not-prose my-6 overflow-x-auto border border-border rounded-md",children:k.jsx("table",{className:"w-full text-sm border-collapse",...e})}),thead:e=>k.jsx("thead",{className:"bg-muted/50",...e}),tbody:e=>k.jsx("tbody",{...e}),tr:e=>k.jsx("tr",{className:"border-b border-border last:border-b-0",...e}),th:e=>k.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",...e}),td:e=>k.jsx("td",{className:"px-4 py-3 align-top",...e}),hr:e=>k.jsx("hr",{className:"my-8 border-t border-border",...e}),p:e=>k.jsx("p",{className:"leading-relaxed mb-4 last:mb-0",...e}),strong:e=>k.jsx("strong",{className:"font-semibold",...e}),em:e=>k.jsx("em",{className:"italic",...e})};function YR(){const{path:e="."}=lh(),t=`${e}/README.mdx`,{directory:r,loading:l}=fh(t),{Content:i,frontmatter:s,loading:c,error:f}=GC(e),d=R6();let h=null;return r&&(h=D6(r)),l||c?k.jsx(dh,{}):f?k.jsx("main",{className:"min-h-screen bg-background container mx-auto max-w-4xl py-12",children:k.jsx("p",{className:"text-center text-red-600",children:f.message})}):k.jsxs("div",{className:"flex min-h-screen flex-col bg-background noise-overlay",children:[k.jsx("title",{children:s==null?void 0:s.title}),k.jsx(mh,{}),k.jsx(zh,{}),k.jsxs("main",{className:"flex-1 mx-auto w-full max-w-[var(--content-width)] px-[var(--page-padding)]",children:[d&&k.jsx("div",{className:"sticky top-0 z-50 px-[var(--page-padding)] py-2 bg-red-500 text-primary-foreground font-mono text-xs text-center tracking-wide",children:k.jsxs("span",{className:"inline-flex items-center gap-3",children:[k.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-current animate-pulse"}),k.jsx("span",{className:"uppercase tracking-widest",children:"simulation running"}),k.jsx("span",{className:"text-primary-foreground/60",children:"Page will auto-refresh on completion"})]})}),i&&k.jsxs("article",{className:"my-24 prose dark:prose-invert prose-headings:tracking-tight prose-p:leading-relaxed prose-a:text-primary prose-a:no-underline hover:prose-a:underline max-w-[var(--prose-width)] animate-fade-in",children:[k.jsx(Vg,{title:s==null?void 0:s.title,date:s==null?void 0:s.date,description:s==null?void 0:s.description,slides:h}),k.jsx(i,{components:T8})]})]})]})}function PR({Content:e,frontmatter:t}){return{slides:M.useMemo(()=>{if(!e)return[];const i={...T8,hr:()=>k.jsx("hr",{"data-slide-break":"true"})};return VR(k.jsx(e,{components:i}))},[e]),frontmatter:t}}function VR(e){var t;const r=[[]];function l(i){var s;if(i){if(Array.isArray(i)){i.forEach(l);return}if(M.isValidElement(i)){if(i.type==="hr"||i.props&&i.props["data-slide-break"]==="true"){r.push([]);return}const c=i.type;if(typeof c=="function"&&c.name==="SlideBreak"){r.push([]);return}if((s=i.props)!=null&&s.children){const f=M.Children.toArray(i.props.children);f.some(h=>M.isValidElement(h)&&(h.type==="hr"||h.props&&h.props["data-slide-break"]==="true"))?f.forEach(h=>{M.isValidElement(h)&&(h.type==="hr"||h.props&&h.props["data-slide-break"]==="true")?r.push([]):r[r.length-1].push(h)}):r[r.length-1].push(i);return}}r[r.length-1].push(i)}}return M.isValidElement(e)&&((t=e.props)!=null&&t.children)?M.Children.toArray(e.props.children).forEach(l):l(e),r.filter(i=>i.length>0)}function IR({children:e}){return k.jsx("div",{className:"slide-content prose dark:prose-invert prose-headings:tracking-tight prose-p:leading-relaxed max-w-xl",children:e})}function XR(){const{path:e="."}=lh(),[t,r]=gx(),{Content:l,frontmatter:i,loading:s,error:c}=FC(e),{slides:f}=PR({Content:l,frontmatter:i}),d=f.length+1,h=Math.max(0,Math.min(parseInt(t.get("slide")||"0",10),d-1)),[v,g]=M.useState(h),b=M.useRef([]),w=M.useCallback(T=>{const N=Math.max(0,Math.min(T,d-1)),O=b.current[N];if(O){const R=O.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:R,behavior:"smooth"})}},[d]),E=M.useCallback(()=>{w(v-1)},[v,w]),A=M.useCallback(()=>{w(v+1)},[v,w]);return M.useEffect(()=>{const T=N=>{N.key==="ArrowUp"||N.key==="k"?(N.preventDefault(),E()):(N.key==="ArrowDown"||N.key==="j")&&(N.preventDefault(),A())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[E,A]),M.useEffect(()=>{let T=null;const N=setTimeout(()=>{T=new IntersectionObserver(O=>{for(const R of O)if(R.isIntersecting){const H=b.current.findIndex(F=>F===R.target);H!==-1&&(g(H),r(H>0?{slide:String(H)}:{},{replace:!0}))}},{threshold:.5}),b.current.forEach(O=>{O&&T.observe(O)})},100);return()=>{clearTimeout(N),T==null||T.disconnect()}},[f.length,r]),s?k.jsx(dh,{}):c?k.jsx("main",{className:"min-h-screen bg-background container mx-auto max-w-4xl py-12",children:k.jsx("p",{className:"text-center text-red-600",children:c.message})}):f.length===0?k.jsx("div",{className:"flex items-center justify-center p-12 text-muted-foreground font-mono text-sm",children:'no slides found — use "---" to separate slides'}):k.jsxs("main",{className:"slides-container",children:[k.jsx("title",{children:i==null?void 0:i.title}),k.jsx(mh,{}),k.jsx(zh,{slideControls:{current:v,total:d,onPrevious:E,onNext:A}}),k.jsxs("div",{[Xg]:"true",children:[k.jsx("div",{ref:T=>{b.current[0]=T},className:"slide-page max-w-xl min-h-[50vh] sm:min-h-[70vh] md:min-h-screen flex items-center justify-center py-8 sm:py-12 md:py-16 px-4 mx-auto",children:k.jsx(Vg,{title:i==null?void 0:i.title,date:i==null?void 0:i.date,description:i==null?void 0:i.description})}),k.jsx("hr",{className:"print:hidden"}),f.map((T,N)=>k.jsxs("div",{children:[k.jsx("div",{ref:O=>{b.current[N+1]=O},className:"slide-page min-h-[50vh] sm:min-h-[70vh] md:min-h-screen flex items-center justify-center py-8 sm:py-12 md:py-16 px-4 mx-auto",children:k.jsx(IR,{children:T})}),N<f.length-1&&k.jsx("hr",{className:"print:hidden"})]},N))]})]})}function $R(){return k.jsx(Rx,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:k.jsx(dx,{children:k.jsxs(Fb,{children:[k.jsx(Mu,{path:":path/SLIDES.mdx",element:k.jsx(XR,{})}),k.jsx(Mu,{path:":path/README.mdx",element:k.jsx(YR,{})}),k.jsx(Mu,{path:"/*",element:k.jsx(HC,{})})]})})})}Q9.createRoot(document.getElementById("root")).render(k.jsx(M.StrictMode,{children:k.jsx($R,{})}));export{Ka as R,Ig as _,k as j,M as r};